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

Chip

사용자가 선택하거나 입력하는 값을 표시하는 컴포넌트입니다.

사용 가능 버전@seed-design/[email protected], @seed-design/[email protected]

Installation

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

Props

Chip.Button

Prop

Type

asChild?boolean | undefined

Whether the element should be rendered as a child of a slot.

Default

false

variant?"outlineStrong" | "outlineWeak" | "solid" | undefined
  • solid: 기본 스타일입니다.
  • outlineStrong: 명확한 구분이 필요한 경우 사용합니다.
  • outlineWeak: Selection 사용 시 주목도가 낮은 스타일로 권장됩니다.

Default

"solid"

size?"large" | "medium" | "small" | undefined

Default

"medium"

layout?"iconOnly" | "withText" | undefined

Default

"withText"

Chip.Toggle

Prop

Type

inputProps?React.InputHTMLAttributes<HTMLInputElement> | undefined
rootRef?React.Ref<HTMLLabelElement> | undefined
checked?boolean | undefined
defaultChecked?boolean | undefined
onCheckedChange?((checked: boolean) => void) | undefined
indeterminate?boolean | undefined
disabled?boolean | undefined
invalid?boolean | undefined
required?boolean | undefined
variant?"outlineStrong" | "outlineWeak" | "solid" | undefined
  • solid: 기본 스타일입니다.
  • outlineStrong: 명확한 구분이 필요한 경우 사용합니다.
  • outlineWeak: Selection 사용 시 주목도가 낮은 스타일로 권장됩니다.

Default

"solid"

size?"large" | "medium" | "small" | undefined

Default

"medium"

layout?"iconOnly" | "withText" | undefined

Default

"withText"

Chip.RadioRoot

Prop

Type

asChild?boolean | undefined

Whether the element should be rendered as a child of a slot.

Default

false

value?string | undefined
defaultValue?string | undefined
onValueChange?((value: string) => void) | undefined
disabled?boolean | undefined

Default

false

invalid?boolean | undefined

Default

false

name?string | undefined
form?string | undefined

Chip.RadioItem

Prop

Type

inputProps?React.InputHTMLAttributes<HTMLInputElement> | undefined
rootRef?React.Ref<HTMLLabelElement> | undefined
variant?"outlineStrong" | "outlineWeak" | "solid" | undefined
  • solid: 기본 스타일입니다.
  • outlineStrong: 명확한 구분이 필요한 경우 사용합니다.
  • outlineWeak: Selection 사용 시 주목도가 낮은 스타일로 권장됩니다.

Default

"solid"

size?"large" | "medium" | "small" | undefined

Default

"medium"

layout?"iconOnly" | "withText" | undefined

Default

"withText"

valuestring
disabled?boolean | undefined

Examples

Sizes

Small

Medium

Large

Variants

Solid

Outline Strong

Outline Weak

Prefix Icon

Suffix Icon

Icon Only

Prefix Avatar

Avatar와 함께 사용할 수 있습니다.

Listening to Value Changes

  • Chip.Toggle
    • onCheckedChange를 사용하여 토글 상태 변경을 감지할 수 있습니다.
    • 이벤트를 활용해야 하는 경우 inputProps를 통해 내부 <input> 요소에 직접 이벤트 핸들러를 추가할 수 있습니다.
  • Chip.RadioRoot / Chip.RadioItem
    • Chip.RadioRoot의 onValueChange를 사용하여 라디오 버튼의 선택 값 변경을 감지할 수 있습니다.
    • 이벤트를 활용해야 하는 경우 Chip.RadioItem의 inputProps를 통해 내부 <input> 요소에 직접 이벤트 핸들러를 추가할 수 있습니다.
onCheckedChange called: 0 times, last value: -
onValueChange called: 0 times, last value: -

Migrating from ActionChip/ControlChip

@seed-design/[email protected]에서 제거된 ActionChip과 ControlChip을 대체합니다.

ActionChip → Chip.Button

// Before
import { ActionChip } from "@seed-design/react";

<ActionChip size="medium">Label</ActionChip>

// After
import { Chip } from "@seed-design/react";

<Chip.Button size="medium" variant="solid">
  <Chip.Label>Label</Chip.Label>
</Chip.Button>

ControlChip → Chip.Toggle

// Before
import { ControlChip } from "@seed-design/react";

<ControlChip size="medium">Label</ControlChip>

// After
import { Chip } from "@seed-design/react";

<Chip.Toggle size="medium" variant="outlineStrong">
  <Chip.Label>Label</Chip.Label>
</Chip.Toggle>

Last updated on 2026. 9. 17.