Krizaka UI
Krizaka UI

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.

Web · ✓Mobile · ✓Desktop · ✓BetaData display
Support level
Beta
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 — or DetailLayout with cover, 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

  • A single figure with its trend.Use instead: Stat
  • A usage against a limit with thresholds.Use instead: Meter
  • A plain avatar and a name in a list row.Use instead: Avatar

Installation

Install

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@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.

PropTypeDefaultDescription
avatarrequiredReactNode—The avatar overlapping the cover: Avatar with the family's default (defaultAvatar: { brand, seed }, #598) when there is no photo.
titlerequiredReactNode—The name: the page's heading.
actionsReactNode—The actions (message, book, edit): at the right from sm, under the name on a phone.
bannerReactNode—The cover: an <img alt=""> (decorative) or your framework's image. Absent: a tint of the brand's accent.
brandstring—A brand scope (folioviv → .brand-folioviv): the default cover takes that brand's accent.
eyebrowReactNode—A mono line above the name: what it is (« Client », « Shop »), an id.
metaReactNode—Under the name: its facts (a handle, a city, « client since 2024 »).
statusReactNode—Beside the name: a status (Badge), a verified mark.
titleAs"h1" | "h2"h1The 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.

PropTypeDefaultDescription
namerequiredReactNode—The name (the card's heading).
visualrequiredReactNode—The portrait: an image, an avatar, a mark. Decorative — the name carries the meaning.
brandstring—A brand scope (sovkora → .brand-sovkora): the accent and gradient become that brand's.
captionReactNode—One line under the gauges: where they come from, what they do.
figureReactNode—What shows as the headline figure instead of valueText: a NumberTicker that climbs. Decorative.
iconReactNode—A small glyph before the name (decorative): a verified mark, an emblem.
nameAs"h2" | "h3" | "h4" | "p"h3The level of the name.
statLabelstring—The headline gauge's label (“Profile complete”, arcade “Power”); without it, no headline gauge.
statsreadonly ProfileStat[]—More gauges under the headline one: two to four, each with its value in words.
valuenumber100The headline gauge's value, 0–100.
valueTextstring—The headline value in words; default: the percentage.
variantStoryVariantdefaultdefault: a sober card. arcade: the fighter card — the brand's light, a ring and a breathing aura, a skewed gauge.
visualSizenumber132 (arcade 196)The diameter of the portrait, in pixels.

StatGauge

A measured strength: label, figure and bar; role="meter" with aria-valuetext.

PropTypeDefaultDescription
labelrequiredstring—What it measures (“Profile complete”, “Creator share”) — passed translated; the meter's accessible name.
figureReactNode—What shows as the figure instead of valueText: a NumberTicker that climbs, a formatted amount. Decorative.
hideLabelbooleanfalseHides the label and the figure (the bar alone, named for assistive technology).
maxnumber100The top of the range.
valuenumber100The value, between 0 and max.
valueTextstring—The value in words (“12 of 15”); default: the percentage. Read by assistive technology, shown without figure.

Accessibility

  • An article headed by the name; each gauge is a meter named by its label, with aria-valuetext.
  • The portrait is decorative: the name carries the meaning.
  • ProfileBanner is a section headed by the name (h1 by 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-motion they are drawn full at once.

Best practices

  • Two to four stats, each with valueText in 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.
  • nameAs follows the page's outline: h3 in a list under an h2, p when a heading follows the card.

Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page