컴포넌트로 돌아가기
타임스탬프, 아이콘, 선택적 뱃지가 포함된 활동 내역을 표시하는 컴포넌트입니다.
설치
Import
@hua-labs/ui의 UI 컴포넌트를 @hua-labs/hua에서 통합 제공합니다.
UI 컴포넌트, 모션 훅, i18n을 하나의 패키지로 사용할 수 있습니다.
Pro 컴포넌트입니다. Pro 라이선스가 필요합니다.
라이브 데모
기본 사용법
최대 항목 수 제한
메타데이터 포함
빈 상태
Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
items* | ActivityItem[] | - | Array of activity items to display |
title | string | - | Feed title |
emptyMessage | string | "활동 내역이 없습니다." | Message when no items |
showHeader | boolean | true | Whether to show header |
maxItems | number | - | Maximum items to display |
onViewAll | () => void | - | View all callback |
viewAllLabel | string | "View All" | View all button label |
emptyState | React.ReactNode | - | Custom empty state component |
ActivityItem
Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
id* | string | - | Unique item identifier |
title* | string | - | Feed title |
description | string | - | Activity description |
timestamp* | Date | string | - | Activity timestamp |
icon | IconName | React.ReactNode | - | Activity icon |
badge | string | React.ReactNode | - | Optional badge |
onClick | () => void | - | 클릭 핸들러 |
metadata | Record<string, unknown> | - | Additional metadata |