Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Card
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Dialog
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Native Select
- Pagination
- Popover
- Progress
- Radio Group
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Typography
Get Started
@shadcn/react
@shadcn/helpers
Force UI registry
Utilities
Installation#
pnpm dlx shadcn@latest add @force-ui-ember/checkbox
Usage#
import { Checkbox } from '@/ember-ui/checkbox';<Checkbox />Checked State#
Use @checked to set the initial state, or handle @onCheckedChange to
control it reactively.
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { Checkbox } from '@/ember-ui/checkbox';
export default class Example extends Component {
@tracked checked = false;
handleCheckedChange = (value: boolean) => {
this.checked = value;
};
<template>
<Checkbox @checked={{this.checked}} @onCheckedChange={{this.handleCheckedChange}} />
</template>
}Invalid State#
Set aria-invalid on the checkbox and data-invalid on the field wrapper to
show the invalid styles.
Examples#
Basic#
Pair the checkbox with Field and FieldLabel for proper layout and labeling.
Description#
Use FieldContent and FieldDescription for helper text.
Disabled#
Use @disabled={{true}} to prevent interaction and add the data-disabled attribute to the <Field> component for disabled styles.
Group#
Use multiple fields to create a checkbox list.
Table#
RTL#
To enable RTL support in Force UI, see the RTL configuration guide.
API Reference#
See the Radix UI documentation for more information.
Deploy your shadcn/ui app on Vercel
Trusted by OpenAI, Sonos, Adobe, and more.
Vercel provides tools and infrastructure to deploy apps and features at scale.
Deploy to Vercel