ComponentsBlocks
Figure Cards
Headline numbers in cards, each with an icon, a change from last period and an optional explanation.
Chip
"use client";
import { Eye, Mail, UserMinus, Users } from "lucide-react";
import { FigureCard, FigureCardGroup } from "@/components/miyuki-ui/figure-cards";
export default function FigureCardsDemo() {
return (
<FigureCardGroup className="max-w-4xl">
<FigureCard
label="Subscribers"
value="12,840"
delta={0.16}
icon={<Users />}
info="Accounts on a paid plan on the last day of the month."
/>
<FigureCard
label="Forecast views"
value="1.94M"
delta={0.128}
icon={<Eye />}
info="Forecast pages and widgets opened, across web and app."
/>
<FigureCard
label="Bulletins sent"
value="1,286"
delta={0.052}
icon={<Mail />}
info="Avalanche and storm bulletins delivered by email and push."
/>
<FigureCard
label="Churn"
value="1.24%"
delta={-0.003}
invertDelta
icon={<UserMinus />}
info="Share of subscribers who cancelled during the month. Lower is better."
/>
</FigureCardGroup>
);
}Footer band
"use client";
import { Eye, Mail, UserMinus, Users } from "lucide-react";
import { FigureCard, FigureCardGroup } from "@/components/miyuki-ui/figure-cards";
export default function FigureCardsBandDemo() {
return (
<FigureCardGroup className="max-w-4xl">
<FigureCard
variant="band"
label="Subscribers"
value="12,840"
delta={0.16}
icon={<Users />}
info="Accounts on a paid plan on the last day of the month."
/>
<FigureCard
variant="band"
label="Forecast views"
value="1.94M"
delta={0.128}
icon={<Eye />}
info="Forecast pages and widgets opened, across web and app."
/>
<FigureCard
variant="band"
label="Bulletins sent"
value="1,286"
delta={0.052}
icon={<Mail />}
info="Avalanche and storm bulletins delivered by email and push."
/>
<FigureCard
variant="band"
label="Churn"
value="1.24%"
delta={-0.003}
invertDelta
icon={<UserMinus />}
info="Share of subscribers who cancelled during the month. Lower is better."
/>
</FigureCardGroup>
);
}Install
npx shadcn@latest add @miyuki-ui/figure-cardsThis needs the @miyuki-ui registry in your components.json. See Using the shadcn CLI.
Props
FigureCard
Prop
Type
FigureCardGroup
Prop
Type
Field Notes
An article set to a comfortable measure with notes in a wide margin, each level with the words it refers to and joined to them by a thin hand-drawn line.
Floating sidebar
App navigation in a floating panel with a team switcher, quick search, a sliding current-page highlight and an icon-only mode.