Checkbox

Designer doc
Checkbox component allows users to select one or more options.

Example

Basic usage
View code
Checkbox Group
Checkbox group

View code

Accessbility

API

Checkbox
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
checkedValue
Controlled value of the checkbox. Pass null to indicates intermediate check for tri-state checkbox.
disabledboolean
Equivalent to button's disabled property.
iconReactElement<CheckboxIconProps, any><CheckboxIcon />
Specify custom icon element or use CheckboxIcon with a certain custom props.
initialCheckedValue
Uncontrolled value of the checkbox. Note that passing null to this prop may lead to weird behaviour. Because internally, checked state only switches between true and false.
invalidboolean
keyboardClickKeysstring[][' ']
onBlurFocusEventHandler<HTMLDivElement>
onChange(checked: Value) => void
onClickMouseEventHandler<HTMLDivElement>
onKeyDownKeyboardEventHandler<HTMLDivElement>
onKeyUpKeyboardEventHandler<HTMLDivElement>
onMouseDownMouseEventHandler<HTMLDivElement>
onMouseLeaveMouseEventHandler<HTMLDivElement>
onMouseUpMouseEventHandler<HTMLDivElement>
onReleaseEventHandler<SyntheticEvent<HTMLDivElement, Event>>
Callback that's triggered after click i.e. mouseup and keyup of enter or space.
onTouchEndTouchEventHandler<HTMLDivElement>
onTouchStartTouchEventHandler<HTMLDivElement>
CheckboxIcon
Prop nameTypeDefaultDescription
asvoid | WebTarget
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
forwardedAsvoid | WebTarget
themeDefaultTheme
    Example
    Example
    Basic usage
    Basic usage
    Checkbox Group
    Checkbox Group
    Accessbility
    Accessbility
    API
    API
    Checkbox
    Checkbox
    CheckboxIcon
    CheckboxIcon
Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.

Copyright © 2018-2025 Sea Labs