프리뷰 또는 이전 버전의 문서를 보고 있습니다.seed-design.io 방문
우리는 왜 디자인 엔지니어를 찾게 됐을까
Skip to Content
React

Checkbox

사용자가 하나 이상의 옵션을 선택할 수 있게 해주는 컴포넌트입니다. 목록에서 여러 항목을 선택하거나 약관 동의와 같은 선택적 작업에 사용됩니다.

사용 가능 버전@seed-design/[email protected], @seed-design/[email protected]
관심 분야선택

Installation

npx @seed-design/cli@latest add ui:checkbox

Props

CheckboxGroup

Prop

Type

label?React.ReactNode
labelWeight?"bold" | "medium" | undefined

Default

"medium"

indicator?React.ReactNode
showRequiredIndicator?boolean | undefined
description?React.ReactNode
errorMessage?React.ReactNode

Checkbox

Prop

Type

inputProps?React.InputHTMLAttributes<HTMLInputElement> | undefined
rootRef?React.Ref<HTMLLabelElement> | undefined
label?React.ReactNode
weight?"bold" | "regular" | undefined

Default

"regular"

size?"large" | "medium" | undefined

Default

"medium"

variant?"ghost" | "square" | undefined
  • square: 필수 선택 항목이고 사용자가 해당 내용을 인지해야 하는 경우 사용합니다.
  • ghost: 필수 선택 항목이 아니고, 3개 이하 항목으로 구성되는 경우 사용하는 것을 권장합니다.

Default

"square"

tone?"brand" | "neutral" | undefined

Default

"brand"

checked?boolean | undefined
defaultChecked?boolean | undefined
onCheckedChange?((checked: boolean) => void) | undefined
indeterminate?boolean | undefined
disabled?boolean | undefined
invalid?boolean | undefined
required?boolean | undefined

Checkmark

Prop

Type

variant?"ghost" | "square" | undefined
  • square: 필수 선택 항목이고 사용자가 해당 내용을 인지해야 하는 경우 사용합니다.
  • ghost: 필수 선택 항목이 아니고, 3개 이하 항목으로 구성되는 경우 사용하는 것을 권장합니다.

Default

"square"

tone?"brand" | "neutral" | undefined

Default

"brand"

size?"large" | "medium" | undefined

Default

"medium"

Examples

Sizes

Tones and Variants

Brand

Neutral

Indeterminate

Weights

Deprecated Props

weight="default"와 weight="stronger"는 더 이상 사용되지 않습니다. 대신 weight="regular"와 weight="bold"를 사용하세요.

Long Label

Disabled

Listening to Value Changes

onCheckedChange를 사용하여 체크박스의 선택 상태 변경을 감지할 수 있습니다.

이벤트를 활용해야 하는 경우 inputProps를 통해 내부 <input> 요소에 직접 이벤트 핸들러를 추가할 수 있습니다.

onCheckedChange called: 0 times, last value: -

Use Cases

React Hook Form

Using Checkmark

Checkmark는 독립적인 체크 마크 컴포넌트로, Checkbox Primitive 컴포넌트와 조합하여 커스텀 레이아웃을 위해 사용할 수 있습니다.

Fieldset Integration

CheckboxGroup을 사용하여 여러 체크박스를 그룹화하고 label, description, errorMessage 등의 Fieldset 관련 prop을 사용할 수 있습니다.

좋아하는 과일선택
약관 동의

Scale Feedback

Checkbox는 눌렸을 때 Checkmark가 살짝 줄어드는 피드백을 제공합니다.

Checkmark를 감싸는 요소에 Scale Feedback을 직접 적용하는 경우, 바깥 요소와 Checkmark가 함께 줄어들어 축소가 이중으로 나타납니다. Checkmark의 상위 요소에서 --seed-checkmark-feedback-scale을 1로 설정하면 Checkmark의 축소만 끌 수 있습니다. 이 변수는 상속되므로 Checkbox 전체를 감싸는 요소에 설정해도 됩니다.

MyRow.css
.my-row {
  --seed-checkmark-feedback-scale: 1;
}

Last updated on 2026. 8. 25.