사용법
인터페이스
MotionWidgetProps
| 속성 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| label* | string | — | 위젯 제목 |
| description | string | — | 보조 설명 |
| imageSrc | string | — | 썸네일 이미지 URL |
| icon | ReactNode | — | 아이콘 (imageSrc 없을 때) |
| badge | string | — | 뱃지 텍스트 |
| active | boolean | false | 활성 상태 |
| className | string | — | 루트 클래스 |
| style | CSSProperties | — | 인라인 스타일·CSS 변수 |
MotionWidget 컴포넌트 Props 표
가져오기
모션 CSS는 @goldtreedev/ui/motion.css를 함께 import해요.
@import "@goldtreedev/ui/motion.css";
import { MotionWidget } from "@goldtreedev/ui";