---
title: Chip
description: 사용자가 선택하거나 입력하는 값을 표시하는 컴포넌트입니다.
---
```json doc-gen:file
{
"file": "examples/react/chip/preview.tsx",
"codeblock": true
}
```
## Installation
```package-install
npx @seed-design/cli@latest add ui:chip
```
## Props
### `Chip.Button`
### `Chip.Toggle`
### `Chip.RadioRoot`
### `Chip.RadioItem`
## Examples
### Sizes
#### Small
```json doc-gen:file
{
"file": "examples/react/chip/small.tsx",
"codeblock": true
}
```
#### Medium
```json doc-gen:file
{
"file": "examples/react/chip/medium.tsx",
"codeblock": true
}
```
#### Large
```json doc-gen:file
{
"file": "examples/react/chip/large.tsx",
"codeblock": true
}
```
### Variants
#### Solid
```json doc-gen:file
{
"file": "examples/react/chip/solid.tsx",
"codeblock": true
}
```
#### Outline Strong
```json doc-gen:file
{
"file": "examples/react/chip/outline-strong.tsx",
"codeblock": true
}
```
#### Outline Weak
```json doc-gen:file
{
"file": "examples/react/chip/outline-weak.tsx",
"codeblock": true
}
```
### Prefix Icon
```json doc-gen:file
{
"file": "examples/react/chip/prefix-icon.tsx",
"codeblock": true
}
```
### Suffix Icon
```json doc-gen:file
{
"file": "examples/react/chip/suffix-icon.tsx",
"codeblock": true
}
```
### Icon Only
```json doc-gen:file
{
"file": "examples/react/chip/icon-only.tsx",
"codeblock": true
}
```
### Prefix Avatar
[Avatar](/react/components/avatar)와 함께 사용할 수 있습니다.
```json doc-gen:file
{
"file": "examples/react/chip/prefix-avatar.tsx",
"codeblock": true
}
```
### Listening to Value Changes
- `Chip.Toggle`
- `onCheckedChange`를 사용하여 토글 상태 변경을 감지할 수 있습니다.
- 이벤트를 활용해야 하는 경우 `inputProps`를 통해 내부 `` 요소에 직접 이벤트 핸들러를 추가할 수 있습니다.
- `Chip.RadioRoot` / `Chip.RadioItem`
- `Chip.RadioRoot`의 `onValueChange`를 사용하여 라디오 버튼의 선택 값 변경을 감지할 수 있습니다.
- 이벤트를 활용해야 하는 경우 `Chip.RadioItem`의 `inputProps`를 통해 내부 `` 요소에 직접 이벤트 핸들러를 추가할 수 있습니다.
```json doc-gen:file
{
"file": "examples/react/chip/value-changes.tsx",
"codeblock": true
}
```
## Migrating from ActionChip/ControlChip
`@seed-design/react@3.0.0`에서 제거된 `ActionChip`과 `ControlChip`을 대체합니다.
### ActionChip → Chip.Button
```tsx
// Before
import { ActionChip } from "@seed-design/react";
Label
// After
import { Chip } from "@seed-design/react";
Label
```
### ControlChip → Chip.Toggle
```tsx
// Before
import { ControlChip } from "@seed-design/react";
Label
// After
import { Chip } from "@seed-design/react";
Label
```