FactsGrid
The highlights grid (.mp-hl): two columns of label / value cells split by 1px lines.
import { FactsGrid } from '@ergasti/bricks';Examples
Creator profile
The drawer body for a creator you can invite: score, followers by platform, key facts, a highlight and the invite button.
Code
import { CreatorProfilePanel, useLanguage } from '@ergasti/bricks';
import { blocksData } from './sample-data';
function Profile() {
const language = useLanguage();
const c = blocksData.DISCOVER[0];
return (
<div style={{ maxWidth: 400 }}>
<CreatorProfilePanel creator={{ ...c, niche: language === 'ar' ? c.nicheAr : c.niche }} tone="sky" onInvite={() => {}} />
</div>
);
}The parts
The profile is built from ScoreCard, FollowerBars and FactsGrid, which you can use alone.
Code
import { FactsGrid, FollowerBars, ScoreCard } from '@ergasti/bricks';
function Parts() {
return (
<div style={{ display: 'grid', gap: 16, maxWidth: 400 }}>
<ScoreCard score={74} />
<FollowerBars followers={{ instagram: 143000, tiktok: 310000, youtube: 56000 }} />
<FactsGrid items={[{ label: 'Orders (90 days)', value: 785 }, { label: 'Engagement', value: '3.1%' }, { label: 'Brands', value: 8 }]} />
</div>
);
}Your own highlights, and money
facts replaces the highlights grid with your list, or takes a function of the built-in list to add to or reorder it; a fact with figure gets that figure's "?" note. money sets how the two money slots show: sales90 (compact by default) and averageOrder (two decimals). averageOrder on the creator is optional; without it the built-in fact is left out.
Code
import { CreatorProfilePanel, useLanguage } from '@ergasti/bricks';
import { blocksData } from './sample-data';
function FactsAndMoney() {
const language = useLanguage();
const c = blocksData.DISCOVER[0];
return (
<div style={{ maxWidth: 400 }}>
<CreatorProfilePanel
creator={{ ...c, niche: language === 'ar' ? c.nicheAr : c.niche }}
tone="sky"
onInvite={() => {}}
money={{ sales90: { decimals: 0, compact: false }, averageOrder: { decimals: 'auto' } }}
facts={(builtIn) => [{ key: 'response', label: 'Replies within', value: '4 hours' }, ...builtIn.filter((f) => f.key !== 'since')]}
/>
</div>
);
}Sending, invited, and no seats left
inviting makes Invite busy while the request is out (it keeps focus); invited swaps the button for "Invited"; inviteDisabled keeps Invite visible but not pressable when the plan has no seats left. All three use aria-disabled, so the button stays reachable and says why.
Code
import { CreatorProfilePanel, useLanguage } from '@ergasti/bricks';
import { blocksData } from './sample-data';
function InviteStates() {
const language = useLanguage();
const c = { ...blocksData.DISCOVER[1], niche: language === 'ar' ? blocksData.DISCOVER[1].nicheAr : blocksData.DISCOVER[1].niche };
return (
<div style={{ display: 'grid', gap: 16, gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))' }}>
<CreatorProfilePanel creator={c} tone="sky" inviting onInvite={() => {}} />
<CreatorProfilePanel creator={c} tone="lime" invited onInvite={() => {}} />
<CreatorProfilePanel creator={c} tone="butter" inviteDisabled onInvite={() => {}} />
</div>
);
}The pool profile
tiles replaces the coloured figures (two rows of two: Engagement, Followers, TRNDR score, On TRNDR since); fields left out of the creator (brands, growth, wins, since) drop their built-in tile or fact; note replaces the sentence under Invite.
Code
import { CreatorProfilePanel } from '@ergasti/bricks';
import { blocksData } from './sample-data';
function PoolProfile() {
const c = blocksData.DISCOVER[0];
return (
<div style={{ maxWidth: 400 }}>
<CreatorProfilePanel tone="lilac" creator={{ ...c, sales90: null, orders90: null, brands: null, growth: undefined, wins: null }}
tiles={[{ key: 'eng', label: 'Engagement', value: '3.4%', tone: 'butter' }, { key: 'fol', label: 'Followers', value: '24.3K', tone: 'sky' }, { key: 'score', label: 'TRNDR score', value: '55', tone: 'lime' }, { key: 'since', label: 'On TRNDR since', value: 'Mar 2026', tone: 'lilac' }]}
onInvite={() => {}} inviteDisabled note="No seats left. Ask TRNDR to raise your creator limit." />
</div>
);
}Props
Prop
Type
Design guidance
How the BRICKS design system uses FactsGrid. Written in docs/content/components/FactsGrid.md; the props above are read from the code, which wins where the two disagree.
A two-column grid of label / value cells split by hairlines; use it for a creator's highlights (average order, sales this month, challenges won, on TRNDR since) inside a profile drawer.
It is the mock's .mp-hl highlights grid in the Find creators mini profile. CreatorProfilePanel draws it under the "Highlights" heading; it is exported for other drawers. A money fact takes a figure so its label becomes the figure's "?" term.
Anatomy
- List:
dl.kit-blk-facts, 2 equal columns, 1px gaps over a--linebackground (hairlines), 1px border, radius 18. - Cell: white, padding 12 14, 2px gap.
- Label:
dt, muted (aMoneyNotewithfigure). - Value:
dd, 700.
Variants
| Setup | When |
|---|---|
| Plain facts | Counts, dates. |
figure on an item | Money facts (average_order, creator_sales). |
| Odd count | The last row has one cell. |
States
Static. Long values wrap inside their cell.
Usage
<h3 className="kit-blk-h3">Highlights</h3>
<FactsGrid items={[
{ label: 'Average order', value: <Money value="270.00" />, figure: 'average_order' },
{ label: 'Sales this month', value: <span dir="ltr">+64%</span> },
{ label: 'Challenges won', value: '2' },
{ label: 'On TRNDR since', value: 'Mar 2025' },
]} />Where it appears
- Brand › Find creators › creator mini profile › Highlights (inside
CreatorProfilePanel) (BrandFindCreators).
Guidelines
Do
- Use an even number of facts (2 or 4).
- Keep labels to two or three words.
Don't
- Don't use it for editable values or long text; use
KeyValue.
RTL and Arabic
- Columns mirror. Arabic labels: "متوسط الطلب", "مبيعات الشهر ده", "تحديات كسبها", "على TRNDR من".
Tokens
--line, --card.
Accessibility
- A real description list:
<dl>with adt/ddpair per cell, so screen readers announce it as a list and pair each label with its value. - Not interactive, except a money label: with
figurethedtholds aMoneyNoteterm button ("Average order, what's included") in the Tab order, which opens its note on focus, click or hover and closes on Escape. - Order follows the grid row by row (start to end), the same as the visual order in both directions.
- Contrast: labels
--ink-3on white 5.1:1; values--ink18.4:1; the hairlines are decorative.
Found in the source
- ARIA attributes set:
aria-hidden,aria-disabled,aria-busy. - Keys the code handles: string.
Read from the component's source and tests. See Accessibility for the patterns the library follows.
Related
KeyValue: the soft-tile key / value list used across drawers.CreatorProfilePanel: its home.
See also: Avatar · Button · Icon · MoneyNote · Money · Pill · ScoreRing · TierChip · HighlightBadge · useBricks · useLanguage · useMoneyDisplay · ScoreCard
Source
src/blocks/creators/CreatorProfilePanel.tsx (line 92) on GitHub.