Skip to Content
BBRICKSv0.7.4
BlocksCreators

ScoreCard

The profile's score card (.mp-sc): the ring, "TRNDR score 81 / 100" and what it is based on.

import { ScoreCard } 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

Labels

Every word this component draws, in both languages. Override one per component and language with BricksProvider labels under the key creatorProfilePanel, or with the component's own prop where it has one. A {name} is a value the component fills in.

creatorProfilePanel
KeyEnglishArabic
soldSold on TRNDR · 90 daysاتباع على TRNDR · 90 يوم
ordersOrders · 90 daysالطلبات · 90 يوم
engagementEngagementالتفاعل
brandsBrands worked withبراندات اشتغل معاها
scoreTitleTRNDR score {n} / 100تقييم TRNDR {n} من 100
noScoreNo TRNDR score yetلسه مفيش تقييم TRNDR
scoreWhyBased on sales, content quality and on-time postingمحسوب من المبيعات وجودة المحتوى والالتزام بمواعيد النشر
followersFollowers · {t} totalالمتابعين · {t} إجمالي
highlightsHighlightsأبرز الأرقام
averageOrderAverage orderمتوسط الطلب
growthSales this monthمبيعات الشهر ده
winsChallenges wonتحديات كسبها
sinceOn TRNDR sinceعلى TRNDR من
inviteInvite {f}ادعُ {f}
invitedInvited ✓تمت الدعوة ✓
noteThe invite holds one seat until they reply. TRNDR handles all contact. Usernames, phone and address stay private.الدعوة بتحجز مكان لحد ما يرد. TRNDR بيتولى كل التواصل. اسم المستخدم والتليفون والعنوان بيفضلوا سرّيين.

Design guidance

How the BRICKS design system uses ScoreCard. Written in docs/content/components/ScoreCard.md; the props above are read from the code, which wins where the two disagree.

A bordered row with the creator's TRNDR score ring, "TRNDR score 81 / 100" and what the score is based on; use it in a creator profile drawer.

It is the mock's .mp-sc card in the Find creators mini profile, under the figure tiles. With no score it says "No TRNDR score yet".

Anatomy

  1. Row: .kit-blk-sc, flex, 12px gap, padding 12 14, 1px line, radius 18, 10px above.
  2. Ring: ScoreRing with the value.
  3. Text: bold title ("TRNDR score 81 / 100", rounded) and a muted line "Based on sales, content quality and on-time posting".

Variants

scoreLook
numberFilled ring + title.
nullEmpty ring + "No TRNDR score yet".

States

Static.

Types

ProfileCopy (labels): this card reads scoreTitle(n), noScore, scoreWhy.

Usage

<ScoreCard score={81} />
<h3 className="kit-blk-h3">Followers · 453K total</h3>
<FollowerBars followers={creator.followers} />

Where it appears

  • Brand › Find creators › creator mini profile (inside CreatorProfilePanel) (BrandFindCreators).

Guidelines

Do

  • Keep the explanation line; the score means little without it.

Don't

  • Don't show a made-up score for new creators; pass null.

RTL and Arabic

  • Mirrors. Arabic: "تقييم TRNDR 81 من 100", "لسه مفيش تقييم TRNDR".

Tokens

--line; ring colours from ScoreRing.

Accessibility

  • Not interactive and not focusable; it is a div read in order.
  • The ring is ScoreRing: role="img" named "Score: 81" (or "No score yet" for null); its visible digits are aria-hidden so the score is read once from the ring, then again in the bold title "TRNDR score 81 / 100".
  • The muted line ("Based on sales, content quality and on-time posting") is plain text after the title; keep it, it is the only explanation of the number.
  • Contrast: title --ink on white 18.4:1; muted line --ink-3 on white 5.1:1.

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.

See also: Avatar · Button · Icon · MoneyNote · Money · Pill · TierChip · HighlightBadge · useBricks · useLanguage · useMoneyDisplay · CreatorProfilePanel · FollowerBars

Source

src/blocks/creators/CreatorProfilePanel.tsx (line 59) on GitHub.

On this page