패턴
Key Value List
세로 라벨-값. 변경 전 → 후.
- 구분
- 오후 외근
- 날짜
- 2026. 11. 18 (수)
- 장소
- 성수 본사판교 고객사
- 직무
- UI/UX DesignerProduct Designer
import { KeyValueList } from '@zest/patterns/KeyValueList.js'
export default function Demo() {
return <KeyValueList className="w-full max-w-[480px]" items={[{ label: '구분', value: '오후 외근' }, { label: '날짜', value: '2026. 11. 18 (수)' }, { label: '장소', value: '판교 고객사', before: '성수 본사' }, { label: '직무', value: 'Product Designer', before: 'UI/UX Designer' }]} />
}설치
shadcn CLI 로 소스를 프로젝트에 가져와요. 테마·유틸·의존 부품이 함께 설치돼요.
npx shadcn@latest add @zest/key-value-list패키지로 쓰려면 @zest-im/ui 에서 가져와요. 설치 안내
사용법
import { KeyValueList } from '@/components/zest/key-value-list'위 미리보기의 「코드」 탭이 실제로 동작하는 예제예요.
API
| prop | 타입 | 설명 |
|---|---|---|
items | KeyValueItem[] | — |
className? | string | — |
표에 없는 HTML·Radix 속성은 그대로 전달돼요.