FollowerLine
The follower total and the glyph of each platform, each glyph's count in its tooltip and read out.
import { FollowerLine } from '@ergasti/bricks';Examples
Find creators
A discover card: avatar, tier, niche, score, a highlight, the follower line and last-90-day numbers, with Invite (and "Invited" afterwards). The card opens the profile.
Code
import { useState } from 'react';
import { FindCreatorCard, useLanguage } from '@ergasti/bricks';
import { blocksData } from './sample-data';
function Cards() {
const language = useLanguage();
const [invited, setInvited] = useState<number[]>([]);
const find = (c: (typeof blocksData.DISCOVER)[number]) => ({ ...c, niche: language === 'ar' ? c.nicheAr : c.niche, highlight: c.highlight && { ...c.highlight, text: language === 'ar' ? blocksData.HIGHLIGHT_AR[c.highlight.text] ?? c.highlight.text : c.highlight.text } });
return (
<div style={{ display: 'grid', gap: 16, gridTemplateColumns: 'repeat(auto-fill, minmax(min(100%, 280px), 1fr))' }}>
{blocksData.DISCOVER.slice(0, 3).map((c) => (
<FindCreatorCard key={c.id} creator={find(c)} invited={invited.includes(c.id)} onOpen={() => {}} onInvite={() => setInvited((v) => [...v, c.id])} />
))}
</div>
);
}Follower line
Followers by platform on one line, as used inside the card.
Code
import { FollowerLine } from '@ergasti/bricks';
function Followers() {
return <FollowerLine followers={{ instagram: 143000, tiktok: 310000, youtube: 56000 }} />;
}No seats left
inviteDisabled keeps Invite visible but not pressable (the brand's plan is full); an invited card shows "Invited" instead.
Code
import { FindCreatorCard } from '@ergasti/bricks';
import { blocksData } from './sample-data';
function SeatsFull() {
const c = blocksData.DISCOVER[0];
return (
<div style={{ display: 'grid', gap: 16, gridTemplateColumns: 'repeat(auto-fill, minmax(min(100%, 280px), 1fr))' }}>
<FindCreatorCard creator={{ ...c, highlight: undefined }} onOpen={() => {}} onInvite={() => {}} inviteDisabled />
<FindCreatorCard creator={{ ...c, highlight: undefined }} onOpen={() => {}} invited />
</div>
);
}Your own stats, invite states
stats replaces the stat row (here no cross-store figures: Engagement, Followers, On TRNDR since) or edits it as a function; a creator without sales90 / orders90 shows Engagement only. inviting makes Invite busy; inviteDisabledReason explains a disabled Invite.
Code
import { FindCreatorCard } from '@ergasti/bricks';
import { blocksData } from './sample-data';
function PoolCards() {
const c = blocksData.DISCOVER[0];
const stats = [{ key: 'eng', label: 'Engagement', value: '3.4%' }, { key: 'fol', label: 'Followers', value: '24.3K' }, { key: 'since', label: 'On TRNDR since', value: 'Mar 2026' }];
return (
<div style={{ display: 'grid', gap: 16, gridTemplateColumns: 'repeat(auto-fill, minmax(min(100%, 290px), 1fr))' }}>
<FindCreatorCard creator={c} stats={stats} onOpen={() => {}} onInvite={() => {}} inviting />
<FindCreatorCard creator={{ ...c, sales90: null, orders90: null }} onOpen={() => {}} onInvite={() => {}} inviteDisabled inviteDisabledReason="No seats left" />
</div>
);
}The mock's stat columns
Set the CSS hook --fc-cols on the card's parent to fix the stat row's columns: 1.35fr 1fr 1fr draws the brand mock's three figures, with Orders and Engagement the same width. Leave it unset (the first card) and each stat takes the width of its words.
Code
import { type CSSProperties } from 'react';
import { FindCreatorCard, useLanguage } from '@ergasti/bricks';
import { blocksData } from './sample-data';
function StatColumns() {
const language = useLanguage();
const c = blocksData.DISCOVER[0];
const creator = { ...c, niche: language === 'ar' ? c.nicheAr : c.niche };
return (
<div style={{ display: 'grid', gap: 16, gridTemplateColumns: 'repeat(auto-fill, minmax(min(100%, 290px), 1fr))' }}>
<FindCreatorCard creator={creator} onOpen={() => {}} onInvite={() => {}} />
<div style={{ '--fc-cols': '1.35fr 1fr 1fr' } as CSSProperties}>
<FindCreatorCard creator={creator} onOpen={() => {}} onInvite={() => {}} />
</div>
</div>
);
}Props
Prop
Type
Labels
Every word this component draws, in both languages. Override one per component and language with BricksProvider labels under the key findCreatorCard, or with the component's own prop where it has one. A {name} is a value the component fills in.
| Key | English | Arabic |
|---|---|---|
score | Score | التقييم |
sold | Sold · 90 days | اتباع · 90 يوم |
orders | Orders | الطلبات |
engagement | Engagement | التفاعل |
followers | followers | متابع |
invite | Invite | ادعُ |
invited | Invited ✓ | تمت الدعوة ✓ |
inviteName | Invite {n} | ادعُ {n} |
invitedName | {n} is invited | {n} اتبعتله دعوة |
Design guidance
How the BRICKS design system uses FollowerLine. Written in docs/content/components/FollowerLine.md; the props above are read from the code, which wins where the two disagree.
A one-line follower summary: the compact total, the word "followers" and a glyph per platform (each glyph's count in its tooltip and read out); use it in a card footer.
It is the footer line of the mock's Find creators card (.fc). FindCreatorCard draws it beside Invite. Platforms come from the provider's list; only platforms with a count get a glyph.
Anatomy
- Line:
span.kit-blk-fol, flex, 6px gap. - Total: bold, display 16px,
dir="ltr"("453K"). - Word:
.kit-blk-fol-w, 13px muted ("followers"). - Glyphs:
.kit-mplats, one platform icon each withtitle"Instagram 143K" and the same text visually hidden.
Variants
| Setup | When |
|---|---|
| Several platforms | Total of all, a glyph each. |
| One platform | One glyph. |
States
Static; hovering a glyph shows its count as a tooltip.
Usage
<div className="kit-blk-fc-ft">
<FollowerLine followers={{ instagram: 143000, tiktok: 310000 }} />
<Button size="sm" variant="ink" onClick={invite}>Invite</Button>
</div>Where it appears
- Brand › Find creators › creator card footer (inside
FindCreatorCard) (BrandFindCreators).
Guidelines
Do
- Use it where space is tight; use
FollowerBarsin a drawer.
Don't
- Don't rely on the tooltip alone for counts that matter; the profile shows them.
RTL and Arabic
- Mirrors; the total stays LTR. Arabic word: "متابع".
Tokens
--ink-3, --font-family-display.
Accessibility
- Each glyph has hidden text with its platform and count, so screen readers get the breakdown.
Found in the source
- ARIA attributes set:
aria-label,aria-hidden,aria-disabled,aria-busy,aria-describedby.
Read from the component's source and tests. See Accessibility for the patterns the library follows.
Related
See also: Avatar · Icon · MoneyNote · Money · Pill · ScoreRing · TierChip · Button · HighlightBadge · useBricks · useLanguage · useMoneyDisplay · FindCreatorCard · CreatorProfilePanel
Source
src/blocks/creators/FindCreatorCard.tsx (line 72) on GitHub.