With Label Prop

Pass a string label directly via the label prop.

AgreedNot agreed

With Children

Wrap label text as children for richer content.

Subscribed

Checkbox Group

Multiple checkboxes for multi-select scenarios.

Preferences Panel

Settings-style checkbox group with status indicators.

ONOFF
ONOFF
ONOFF

Sign Up Consent

Checkboxes used in registration forms.

Task Checklist

Use checkboxes as a simple to-do list.

Usage

agreed = false// With label prop<Checkbox bind={agreed} label="I agree to the terms" />// With children<Checkbox bind={newsletter}>Subscribe to newsletter</Checkbox>// Conditional display{if agreed}<Badge type="success">Agreed</Badge>{/if}

Props

PropTypeDefaultDescription
bindbinding-Two-way boolean binding
labeltext""Label text next to checkbox
childrencontent-Alternative to label prop