컴포넌트로 돌아가기
제목, 설명, 날짜 범위 선택, 필터, 액션이 포함된 대시보드 페이지용 툴바 컴포넌트입니다.
설치
Import
@hua-labs/ui의 UI 컴포넌트를 @hua-labs/hua에서 통합 제공합니다.
UI 컴포넌트, 모션 훅, i18n을 하나의 패키지로 사용할 수 있습니다.
Pro 컴포넌트입니다. Pro 라이선스가 필요합니다.
라이브 데모
기본 사용법
Transactions Dashboard
View all transaction data
액션 포함
Revenue Analytics
업데이트: 2 minutes ago
날짜 범위
Settlement History
변형
variant="cards"
Card Style
With border and shadow
variant="plain"
Plain Style
Simple style without border
Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
title | React.ReactNode | - | Toolbar title |
description | React.ReactNode | - | Toolbar description |
meta | React.ReactNode | - | Meta information |
variant | "plain" | "cards" | "cards" | 시각적 스타일 변형 |
dateRange | DateRangeConfig | - | Date range configuration |
filters | React.ReactNode | - | Filter components |
actions | ToolbarAction[] | - | Action buttons |
onRefresh | () => void | - | Refresh callback |
lastUpdated | string | - | Last updated timestamp |
ToolbarAction
Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
label* | string | - | Action label |
onClick | () => void | - | 클릭 핸들러 |
href | string | - | Link URL |
icon | IconName | React.ReactNode | - | Action icon |
appearance | "primary" | "secondary" | "ghost" | "secondary" | Button appearance |
loading | boolean | - | Loading state |
DateRangeConfig
Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
value | { from: Date; to: Date } | null | - | Selected date range |
presets | DatePreset[] | - | Preset options |
onSelectPreset | (preset: DatePreset) => void | - | Preset selection callback |
onCustomRange | () => void | - | Custom range callback |
display | string | - | Display text |