컴포넌트로 돌아가기
단일 또는 슬라이드 모드, 그라디언트/비디오/이미지 배경, 반응형 크기를 지원하는 히어로 섹션입니다.
설치
Import
@hua-labs/ui의 UI 컴포넌트를 @hua-labs/hua에서 통합 제공합니다.
UI 컴포넌트, 모션 훅, i18n을 하나의 패키지로 사용할 수 있습니다.
Pro 컴포넌트입니다. Pro 라이선스가 필요합니다.
Pro
크기 옵션
- •
sm: 400px - •
md: 500px - •
lg: 600px - •
xl: 700px - •
full: 100vh (전체 화면)
Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
title | string | - | Main title text |
subtitle | string | - | Subtitle text |
description | string | - | Description paragraph |
primaryAction | { label, href, icon? } | - | Primary CTA button |
secondaryAction | { label, href, icon? } | - | Secondary CTA button |
slides | HeroSlide[] | - | Enable slide mode with multiple slides |
size | "sm" | "md" | "lg" | "xl" | "full" | "lg" | Section height (full = 100vh) |
background | "none" | "gradient" | "particles" | "video" | "image" | "gradient" | Background style |
autoPlay | boolean | false | Auto-play slides |
indicator | "dots" | "line" | "numbers" | "none" | "dots" | Slide indicator style |
interval | number | 5000 | Auto-play interval in ms |
showControls | boolean | true | Show navigation controls |
pauseOnHover | boolean | true | Pause auto-play on hover |
customBackground | string | - | Custom background URL (image or video) |
fullBleed | boolean | false | Remove horizontal padding |
Code Examples
접근성
- •시맨틱 HTML: <section> 요소 사용
- •슬라이드 컨트롤: 이전/다음 버튼에 aria-label 포함