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
sizestringmd

The size of the checkbox component.

colorstringdefault

The color variant of Checkbox components.

checkedbooleanfalse

Checkbox's state

labelstring-

Text to be used as Label alongside Checkbox

onCheckedChangefunction-

Callback function that is called when check state changes.

radiusstringsm

The radius of the Checkbox

shadowstringnone

The shadow of the Checkbox

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