Skip to content
Back to Components

bash
npm install @hua-labs/hua
tsx
import { MerchantList } from "@hua-labs/ui/advanced/dashboard";

가맹점이 없습니다

검색어를 변경하거나 새로운 가맹점을 온보딩하세요.

Props

items*MerchantListItem[]-Array of merchant items
isLoadingbooleanfalseShow loading state
filtersReact.ReactNode-Filter components
emptyStateReact.ReactNode-Custom empty state component
onMerchantSelect(merchant: MerchantListItem) => void-Merchant selection handler
localestring"ko-KR"Locale for formatting
defaultCurrencystring"KRW"Default currency

MerchantListItem

id*string-Unique merchant identifier
name*string-Merchant name
statusstring-Merchant status
health"normal" | "warning" | "critical"-Health status indicator
approvalRatenumber-Approval rate (0-100)
volumenumber-Transaction volume
currencystring-Currency code
categorystring-Business category
regionstring-Region/location
updatedAtstring | Date-Last updated time
tagstring-Custom tag
iconIconName | React.ReactNode-Merchant icon
metadataArray<{ label: string; value: React.ReactNode }>-Additional metadata

BasicMerchantList.tsxtsx
import { MerchantList } from "@hua-labs/ui/advanced/dashboard";

export function BasicMerchantList() {
  const merchants = [
    {
      id: "1",
      name: "Merchant A",
      health: "normal" as const,
      approvalRate: 98.5,
      volume: 15000000,
      currency: "KRW",
      category: "Restaurant",
      region: "Seoul"
    },
    {
      id: "2",
      name: "Merchant B",
      health: "warning" as const,
      approvalRate: 92.3,
      volume: 8500000,
      currency: "KRW",
      category: "Retail",
      region: "Busan"
    }
  ];

  return (
    <MerchantList
      items={merchants}
      onMerchantSelect={(merchant) => console.log(merchant)}
    />
  );
}