사용법
variant
softfilloutline
color
PrimaryNeutralAccentDanger
size
SmallMedium
스타일 커스터마이징
Tag는 className과 style prop으로 루트 스타일을 덮어쓸 수 있어요.
<Tag className="rounded-full px-4" style={{ opacity: 0.9 }} />인터페이스
TagProps
| 속성 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| variant | "fill" | "outline" | "soft" | soft | 스타일 |
| size | "sm" | "md" | md | 크기 |
| color | "primary" | "neutral" | "accent" | "danger" | primary | 색상 |
| className | string | — | 루트 요소 클래스. Tailwind·커스텀 CSS 적용 |
| style | CSSProperties | — | 인라인 스타일·CSS 변수(--gtd-*) 오버라이드 |
Tag 컴포넌트 Props 표
가져오기
import { Tag } from "@/components/ui/Tag";