사용법
포인터를 올리거나 키보드로 이동한 가로 카드가 넓게 확장돼요.
인터페이스
ExpandOnHoverProps
| 속성 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| items* | readonly ExpandOnHoverItem[] | — | 확장형 패널 항목 |
| ariaLabel | string | 확장형 가로 캐러셀 | 접근성 라벨 |
| initialIndex | number | — | 초기 활성 인덱스 |
| onActiveIndexChange | (index: number) => void | — | 활성 인덱스 변경 콜백 |
| className | string | — | 루트 클래스 |
| style | CSSProperties | — | 인라인 스타일·CSS 변수 |
ExpandOnHover 컴포넌트 Props 표
가져오기
모션 CSS는 @goldtreedev/ui/motion.css를 함께 import해요.
@import "@goldtreedev/ui/motion.css";
import { ExpandOnHover } from "@goldtreedev/ui";