로고SEED Design

Control Chip

Control Chip은 사용자가 선택, 필터링, 전환과 같은 제어 작업을 수행할 수 있도록 돕는 Pill 형태의 컴포넌트입니다.

Installation

npx @seed-design/cli@latest add control-chip

Props

ControlChip.Button

PropTypeDefault
layout?
"withText" | "iconOnly"
withText
size?
"medium" | "small"
medium
asChild?
boolean
false

ControlChip.Toggle

PropTypeDefault
indeterminate?
boolean
-
onCheckedChange?
((checked: boolean) => void)
-
defaultChecked?
boolean
-
checked?
boolean
-
required?
boolean
-
invalid?
boolean
-
disabled?
boolean
-
layout?
"withText" | "iconOnly"
withText
size?
"medium" | "small"
medium
asChild?
boolean
false
rootRef?
Ref<HTMLLabelElement>
-
inputProps?
InputHTMLAttributes<HTMLInputElement>
-

ControlChip.RadioRoot

PropTypeDefault
asChild?
boolean
false
onValueChange?
((value: string) => void)
-
defaultValue?
string
-
value?
string
-
form?
string
-
name?
string
-
disabled?
boolean
-

ControlChip.RadioItem

PropTypeDefault
invalid?
boolean
-
disabled?
boolean
-
value?
string
-
layout?
"withText" | "iconOnly"
withText
size?
"medium" | "small"
medium
asChild?
boolean
false
rootRef?
Ref<HTMLLabelElement>
-
inputProps?
InputHTMLAttributes<HTMLInputElement>
-

Examples

Medium

Small

Icon Only

Prefix Icon

Suffix Icon

On this page