sigilUI

Checkbox

Toggle an independent option, with support for mixed and disabled states.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Checkbox } from "@sigil-ui/components";

Usage

<div className="flex flex-col gap-3">
    <Checkbox label="Subscribe to product updates" defaultChecked />
    <Checkbox label="Send weekly digest" />
    <Checkbox label="Beta features" disabled />
  </div>

Props

PropTypeDefaultDescription
labelstring—Readable label for the component.

Token integration

CSS VariablePurpose
--s-border-styleBorder style
--s-borderBorder
--s-backgroundBackground
--s-radius-smRadius sm
--s-duration-fastDuration fast
--s-primaryPrimary
--s-primary-contrastPrimary contrast
--s-ringRing
--s-ring-offsetRing offset
--s-textText