Checkbox

Our Checkbox makes option selection a cakewalk. One or many, pick what you fancy!

Example

1import { Checkbox, FlexBox } from '@sugarcoat/ui'
2
3<FlexBox gap='3' justify='center'>
4 <Checkbox label='Check me' />
5</FlexBox>
6

API Reference

ComponentDescription
Checkbox

The decision maker. The small clickable box that lets users toggle between choices, perfect for when you need to pick any number of options from a set.

Component Properties

Checkbox
PropTypeDefaultExplanation
sizestringsm

The size of the checkbox.

colorstringdefault

The color theme of the checkbox.

radiusstringdefault

The border radius of the checkbox.

shadowstringnone

The shadow depth of the checkbox.

checkedbooleanfalse

The checked state of the checkbox.

labelstring-

The label text for the checkbox.

onChange(checked: boolean) => void-

Callback function when the checked state changes.

Customize The Look
Check out these sample themes
Or create your ownBrand color
Accent color
Neutral color
Border radius