FollowerBars
Followers by platform (.mp-fol): the glyph and name, a bar against the largest, the count. Bars are decoration.
import { FollowerBars } 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 FollowerBars. Written in docs/content/components/FollowerBars.md; the props above are read from the code, which wins where the two disagree.
Followers by platform as a short bar list (glyph and name, a bar against the largest platform, the compact count); use it in a creator profile under "Followers · N total".
It is the mock's .mp-fol in the Find creators mini profile. Platforms come from the provider's platform list, and only platforms with a count are shown. Bars are decoration; the count is the text.
Anatomy
- List:
ul.kit-blk-folbars. - Row: grid
110px 1fr 56px, 12px gap, 7px vertical padding. - Label: 15px platform icon + localized platform name, 600.
- Bar: 8px
--tracktrack,--raspfill as a share of the largest platform,aria-hidden. - Count: bold, end-aligned,
dir="ltr", compact ("143K").
Variants
| Setup | When |
|---|---|
| Several platforms | The largest fills the bar; others are relative. |
| One platform | One full bar. |
States
Platforms with 0, null or no count are not drawn.
Usage
<h3 className="kit-blk-h3">Followers · 453K total</h3>
<FollowerBars followers={{ instagram: 143000, tiktok: 310000, youtube: null }} />Where it appears
- Brand › Find creators › creator mini profile › Followers (inside
CreatorProfilePanel) (BrandFindCreators).
Guidelines
Do
- Show the total in the heading above it.
Don't
- Don't use it to compare creators; it compares one creator's platforms.
RTL and Arabic
- Columns and bars mirror (bars grow from the right); counts stay LTR.
Tokens
--track, --rasp.
Accessibility
- A
<ul>; each<li>reads as "Instagram 143K": the platform name is text and its glyph is anaria-hiddensvg. - The bars are
aria-hiddendecoration (relative to the largest platform); the compact count is the only figure, so never hide it. - Counts are compact ("143K"): when the exact number matters, show it elsewhere (the drawer's heading gives the total).
- Not interactive; no keyboard behaviour.
- Contrast: count and label
--inkon white 18.4:1; the--raspbar on--track4.4:1 (non-text).
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
FollowerLine: the compact total + glyphs line on cards.DetailsBars: the generic labelled bars.FollowersCell: the table cell.
See also: Avatar · Button · Icon · MoneyNote · Money · Pill · ScoreRing · TierChip · HighlightBadge · useBricks · useLanguage · useMoneyDisplay · CreatorProfilePanel · ScoreCard
Source
src/blocks/creators/CreatorProfilePanel.tsx (line 71) on GitHub.