PolyHunter

GuildCardDiscovery

A full-width guild summary with any number of evenly sized columns. Each has an icon beside a caller-supplied value, with a centered label below. Vertical Separator atoms divide the columns.

Playground

Live preview

24
1,280
4.8

Value slot colors

Default values

24
1,280
4.8

Guild accent value

24
1,280
4.8

Warning value

24
1,280
12

Four metrics

24
1,280
4.8
$10k

Paid value ranges

Below one thousand: $240

4
$240
120

No payments: $0

4
$0
120

States and responsive width

Zero and unavailable

0
12,450
—

Narrow mobile width

24
1,280
4.8

Code

import {
  GuildCardDiscovery,
  GamificationMetricMissionsTarget,
  GamificationMetricUserGroup,
  GamificationMetricCupStar,
  GamificationMetricWallet,
} from "@npolyhunter/ui";

<GuildCardDiscovery
  className="w-full"
  aria-label="Guild activity"
  metrics={[
    {
      icon: <GamificationMetricMissionsTarget />,
      value: <span className="text-role-guild-accent">24</span>,
      label: "Missions",
    },
    {
      icon: <GamificationMetricUserGroup />,
      value: "1,280",
      label: "Members",
    },
    {
      icon: <GamificationMetricCupStar />,
      value: "4.8",
      label: "Rating",
    },
    {
      icon: <GamificationMetricWallet />,
      value: "$10k",
      label: "Rewards",
    },
  ]}
/>

Used in

Includes use through shared UI components.

App