shadcn.io is an independent project built on shadcn/ui
The box starts checked. Beside it: Sync Desktop & Documents folders, then a note that those folders sync with iCloud Drive and can be opened from other devices.
It fits a checkbox that needs a sentence, not only a name. An on or off setting that applies immediately is a Switch. In React, Ark UI does not sync the folders.
Installation
Anatomy

Usage
<Field className="max-w-md" orientation="horizontal">
<Checkbox defaultChecked />
<FieldContent>
<FieldLabel>Sync Desktop & Documents folders</FieldLabel>
<FieldDescription>
Your Desktop & Documents folders are being synced with iCloud Drive. You
can access them from other devices.
</FieldDescription>
</FieldContent>
</Field>FAQ
How are the box and the sentences arranged?
orientation is horizontal. The Checkbox is first, and FieldContent holds the FieldLabel and the FieldDescription beside it.
What does the description say?
The label reads Sync Desktop & Documents folders. The description says those folders are being synced with iCloud Drive and can be opened from other devices.
Does the box start checked?
Yes. The checkbox sets defaultChecked, so the row starts on. max-w-md caps the row.
How does the label connect to the box?
FieldLabel names the checkbox. Field connects the two for you, with no ids to write. FieldContent only groups that label with the description so they stack beside the box.
API Reference
Field
Sets orientation="horizontal". The rest is on the Field page.
Checkbox
Sets defaultChecked. The rest is on the Checkbox page.





