| Name | Role | ||
|---|---|---|---|
| Sarah Chen | sarah.chen@example.com | Admin | |
| Marcus Rodriguez | marcus.rodriguez@example.com | User | |
| Priya Patel | priya.patel@example.com | User | |
| David Kim | david.kim@example.com | Editor |
Checkbox
사용자가 선택/해제 상태를 전환할 수 있는 컨트롤입니다.
부가적인 설명이 들어갑니다.
부가적인 설명이 들어갑니다.
설치
사용법
import { Checkbox } from "@/components/ui/checkbox"<Checkbox />선택 상태
Use defaultChecked for uncontrolled checkboxes, or checked and
onCheckedChange to control the state.
import * as React from "react"
export function Example() {
const [checked, setChecked] = React.useState(false)
return <Checkbox checked={checked} onCheckedChange={setChecked} />
}유효하지 않은 상태
Set aria-invalid on the checkbox and data-invalid on the field wrapper to
show the invalid styles.
예제
Basic
Pair the checkbox with Field and FieldLabel for proper layout and labeling.
Description
Use FieldContent and FieldDescription for helper text.
By clicking this checkbox, you agree to the terms and conditions.
Disabled
Use the disabled prop 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
RTL 지원을 활성화하려면 RTL 설정 가이드를 참고하세요.
بالنقر على هذا المربع، فإنك توافق على الشروط.
API 참조
Radix UI 문서를 참고하세요.