Profile card
A profile at a glance — a portrait, a name, a headline gauge, a few stats with their values in words, a line and actions: a creator, a match, a member, a plan. ProfileBanner is the top of a person's or a place's page: a cover, the avatar overlapping it, the name, its facts, the actions.
- Domain
- Identity & people
- Support level
- Size
- 2.3 kB gzip, budget 1.7 kB
- Who uses it
- No live product imports it yet Counted in the dated inventory of 2026-11-23.
import { ProfileCard, ProfileBanner, StatGauge } from "@krizaka/ui/profile-card";Web and mobile — the same component for React and React Native. Beta: its API may still change in a minor version.
Why it is here. Its only users were products that left the organisation (2026-10-29): kept until the next major's audit decides.
When to use
- A creator's card in a directory or beside their content (profile completeness, challenges met, response time).
- A match in a dating app: what two people share, said in words.
ProfileBanner: the top of a client's, a shop's, a creator's or a building's page — orDetailLayoutwithcover, the same banner as its header.- A team member, a product, a plan presented with a few measured strengths — and, on a told page, a character (
variant="arcade").
When not to use
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { ProfileCard, ProfileBanner, StatGauge } from "@krizaka/ui/profile-card";Examples
A creator
A creator's card: profile completeness, two stats in words, follow and message.
A match
In a dating app's brand: what two people share, never a score alone.
Profile banner
A client's page: the brand's tinted cover, the family's default avatar overlapping it, the name, a status, its facts and two actions.
Arcade flavour
The fighter card of a told page: the brand's gradient, a breathing aura, a skewed gauge.
Props
ProfileBanner
A person's or a place's banner: cover, overlapping avatar, eyebrow, name (h1), facts and actions — the words never on the cover.
| Prop | Type | Default | Description |
|---|---|---|---|
avatarrequired | ReactNode | — | The avatar overlapping the cover: Avatar with the family's default (defaultAvatar: { brand, seed }, #598) when there is no photo. |
titlerequired | ReactNode | — | The name: the page's heading. |
actions | ReactNode | — | The actions (message, book, edit): at the right from sm, under the name on a phone. |
banner | ReactNode | — | The cover: an <img alt=""> (decorative) or your framework's image. Absent: a tint of the brand's accent. |
brand | string | — | A brand scope (folioviv → .brand-folioviv): the default cover takes that brand's accent. |
eyebrow | ReactNode | — | A mono line above the name: what it is (« Client », « Shop »), an id. |
meta | ReactNode | — | Under the name: its facts (a handle, a city, « client since 2024 »). |
status | ReactNode | — | Beside the name: a status (Badge), a verified mark. |
titleAs | "h1" | "h2" | h1 | The level of the name. |
ProfileCard
A profile at a glance: portrait, name, a headline gauge, stats with their values in words, a line and actions.
| Prop | Type | Default | Description |
|---|---|---|---|
namerequired | ReactNode | — | The name (the card's heading). |
visualrequired | ReactNode | — | The portrait: an image, an avatar, a mark. Decorative — the name carries the meaning. |
brand | string | — | A brand scope (sovkora → .brand-sovkora): the accent and gradient become that brand's. |
caption | ReactNode | — | One line under the gauges: where they come from, what they do. |
figure | ReactNode | — | What shows as the headline figure instead of valueText: a NumberTicker that climbs. Decorative. |
icon | ReactNode | — | A small glyph before the name (decorative): a verified mark, an emblem. |
nameAs | "h2" | "h3" | "h4" | "p" | h3 | The level of the name. |
statLabel | string | — | The headline gauge's label (“Profile complete”, arcade “Power”); without it, no headline gauge. |
stats | readonly ProfileStat[] | — | More gauges under the headline one: two to four, each with its value in words. |
value | number | 100 | The headline gauge's value, 0–100. |
valueText | string | — | The headline value in words; default: the percentage. |
variant | StoryVariant | default | default: a sober card. arcade: the fighter card — the brand's light, a ring and a breathing aura, a skewed gauge. |
visualSize | number | 132 (arcade 196) | The diameter of the portrait, in pixels. |
StatGauge
A measured strength: label, figure and bar; role="meter" with aria-valuetext.
| Prop | Type | Default | Description |
|---|---|---|---|
labelrequired | string | — | What it measures (“Profile complete”, “Creator share”) — passed translated; the meter's accessible name. |
figure | ReactNode | — | What shows as the figure instead of valueText: a NumberTicker that climbs, a formatted amount. Decorative. |
hideLabel | boolean | false | Hides the label and the figure (the bar alone, named for assistive technology). |
max | number | 100 | The top of the range. |
value | number | 100 | The value, between 0 and max. |
valueText | string | — | The value in words (“12 of 15”); default: the percentage. Read by assistive technology, shown without figure. |
Accessibility
- An
articleheaded by the name; each gauge is ameternamed by its label, witharia-valuetext. - The portrait is decorative: the name carries the meaning.
ProfileBanneris asectionheaded by the name (h1by default,titleAs); no word is ever drawn on the cover, so a photo never costs the text its contrast, and a scrim fades the photo into the page.- In a stage, the card arrives and its gauges fill once; under
prefers-reduced-motionthey are drawn full at once.
Best practices
- Two to four stats, each with
valueTextin the person's words (“12 of 15”, “replies within a day”): a bar alone says nothing. - Never reduce a person to a score: in a dating or social product, show what is shared, not a ranking.
- One or two actions under the card, the main one first.
ProfileBanner: give it the family's default avatar (defaultAvatar: { brand, seed }) when there is no photo, never initials on grey; the cover is decorative (alt=""), a tint of the brand's accent by default; one or two actions.nameAsfollows the page's outline:h3in a list under anh2,pwhen a heading follows the card.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub