GoldTreeDevGTD UI

문서 제목, 아이콘 이름, 앱 이름으로 검색할 수 있어요.

전체 문서 보기 이동 · Enter 열기 · Esc 닫기

IconButton

아이콘 전용 버튼

사용법

변형

아이콘만 표시하는 버튼이에요. aria-label은 필수예요. variant로 시각적 계층을 맞춰요.

스타일 커스터마이징

IconButtonclassNamestyle prop으로 루트 스타일을 덮어쓸 수 있어요.

<IconButton className="rounded-full px-4" style={{ opacity: 0.9 }} />

인터페이스

IconButtonProps

속성타입기본값설명
icon*ReactNode표시 아이콘
aria-label*string접근성 레이블
variantButtonVariantghost버튼 변형

IconButton 컴포넌트 Props 표

가져오기

import { IconButton } from "@/components/ui/IconButton";
IconButton · GTD UI | GoldTreeDev Docs