Skip to Content
BBRICKSv0.7.4
BlocksCreators

MyCreatorPanel

The creator drawer for one of your creators: a tinted head (photo, name, handle · niche), tier and TRNDR score, followers by platform, the program figures (orders, sales, commission, status, coupon, joined), their groups with "+ Add to group", Copy coupon (when there is a coupon) and the caller's actions, then the privacy note. facts replaces or edits "In your program".

import { MyCreatorPanel } from '@ergasti/bricks';

Examples

One of your creators

The drawer body for a creator already in the program: figures, coupon with a copy button, the groups they are in and the ones they could join. The status words come from the TRNDR preset, so this example is pinned to it.

Pinned to TRNDR preset
Code
import { MyCreatorPanel, useLanguage } from '@ergasti/bricks';
import { blocksData } from './sample-data';

function Panel() {
  const language = useLanguage();
  return (
    <div style={{ maxWidth: 400 }}>
      <MyCreatorPanel
        creator={{ ...blocksData.KARIM, niche: language === 'ar' ? 'موضة' : 'Fashion' }} tone="lime"
        groups={[{ id: 'g2', name: 'TikTok first' }]} otherGroups={[{ id: 'g1', name: 'Top sellers' }, { id: 'g3', name: 'New this month' }]}
        onOpenGroup={() => {}} onAddToGroup={() => {}} onCopyCoupon={() => {}}
      />
    </div>
  );
}

No coupon, more facts, your buttons

A creator without a code has no Coupon row and no "Copy coupon"; facts as a function adds to "In your program" (a money fact keeps its "?" with figure); actions adds buttons after "Copy coupon".

Pinned to TRNDR preset
Code
import { Button, ButtonLink, MyCreatorPanel } from '@ergasti/bricks';
import { blocksData } from './sample-data';

function WithActions() {
  return (
    <div style={{ maxWidth: 400 }}>
      <MyCreatorPanel
        creator={{ ...blocksData.KARIM, coupon: null }} tone="sky" groups={[]}
        facts={(builtIn) => [...builtIn, { key: 'sold90', label: 'Sold in your store · 90 days', figure: 'creator_sales', value: 'EGP 9,800.00' }]}
        actions={<><Button variant="danger">Remove creator</Button><ButtonLink href="#profile">Open full profile</ButtonLink></>}
      />
    </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 myCreatorPanel, or with the component's own prop where it has one. A {name} is a value the component fills in.

myCreatorPanel
KeyEnglishArabic
tierTierالمستوى
scoreTRNDR scoreتقييم TRNDR
outOf/ 100من 100
followersFollowers by platform · {t} totalالمتابعين حسب المنصة · {t} إجمالي
inProgramIn your programفي برنامجك
ordersOrdersالطلبات
salesSalesالمبيعات
commissionCommissionالعمولة
statusStatusالحالة
couponCouponالكوبون
joinedJoinedانضم
groupsGroupsالمجموعات
noGroupNot in a group yetلسه مش في أي مجموعة
addToGroup+ Add to group+ ضيف لمجموعة
copyCouponCopy couponانسخ الكوبون
privacyPhone and address stay private to the creator.التليفون والعنوان بيفضلوا خاصين بصانع المحتوى.

Design guidance

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

The drawer body for one of the brand's own creators: tinted head, tier and TRNDR score, followers by platform, the program figures, groups with "+ Add to group", Copy coupon and the privacy note; open it from the My creators table.

It is the mock's openCreator() drawer on Brand › Creators. Everything is the server's: 2-dp money strings, a status key from the provider's status table, the coupon code. A handle shows only where the identity rules allow it (no "@" otherwise). facts replaces or edits "In your program"; actions adds buttons after "Copy coupon" (the console adds "Remove creator" and "Open full profile").

Anatomy

  1. Head: DrawerHead with tone, 56px photo, name, "@handle · niche".
  2. Tier and score: KeyValue (Tier → TierChip; TRNDR score → big number "/ 100", or "—").
  3. Followers: h3 "Followers by platform · 453K total" + RowItems (platform glyph + name, full count).
  4. In your program: h3 + KeyValue: Orders, Sales (creator_sales "?"), Commission (earned "?"), Status (StatusPill), Coupon (CouponChip, when set), Joined.
  5. Groups: h3 + GroupTags (openable) or "Not in a group yet", and a "+ Add to group" select of otherGroups.
  6. Actions: "Copy coupon" (when a coupon and onCopyCoupon) + your actions.
  7. Note: "Phone and address stay private to the creator."

Variants

PropValuesWhen
tone'lime' | 'rasp' | 'butter' | 'sky' | 'lilac'Head tint.
factsdefault / list / functionAdd store figures ("Sold in your store · 90 days" with figure: 'creator_sales').
actionsnodeExtra buttons (Remove creator, Open full profile).
moneyMoneyDisplaySales / commission display; default compact "EGP 184.3K".

States

StateTrigger
In groupsgroups non-empty: tags.
No groupsgroups=[]: "Not in a group yet".
Can addonAddToGroup and otherGroups non-empty: select shown.
Paused / removedcreator.status drives the StatusPill.
No couponcoupon null: no Coupon row, no Copy coupon.
No scorescore: null: "—".

Types

MyCreator: id, name, avatarUrl?, handle? (only when allowed), niche?, tier, score, followers, orders: number, sales: string, commission: string (2-dp), status: string (status key), coupon?: string | null, joined: string ("6 Jun 2026").

Usage

// Brand › Creators › creator drawer
<Drawer open={!!creator} onClose={close} title={<span className="kit-sr">{creator.name}</span>}>
  <MyCreatorPanel tone="lime"
    creator={{ id: 7, name: 'Karim Hosny', niche: 'Fashion', tier: 'established', score: 74,
      followers: { instagram: 58200, tiktok: 121000 }, orders: 201, sales: '184300.00', commission: '18430.00',
      status: 'active', coupon: 'KARI0329', joined: '6 Jun 2026' }}
    groups={[{ id: 'g2', name: 'TikTok first' }]}
    otherGroups={[{ id: 'g1', name: 'Top sellers' }, { id: 'g3', name: 'New this month' }]}
    onOpenGroup={openGroup} onAddToGroup={(id) => addToGroup(7, id)}
    onCopyCoupon={() => { copy('KARI0329'); setToast({ message: 'Coupon copied' }); }}
  />
</Drawer>

Where it appears

  • Brand › Creators › My creators › creator drawer (openCreator()) (BrandCreators).

Guidelines

Do

  • Use the tone of the row's tier or the screen's accent consistently.
  • Confirm copy and add-to-group with a toast ("Added to Top sellers").

Don't

  • Don't pass a handle the identity rules hide.
  • Don't put destructive actions first in actions; keep Copy coupon first.

RTL and Arabic

  • Mirrors; counts and money LTR. Arabic: "في برنامجك", "+ ضيف لمجموعة", "انسخ الكوبون", "التليفون والعنوان بيفضلوا خاصين بصانع المحتوى."

Tokens

Through its parts: DrawerHead tones (--lime-50, --olive, …), KeyValue (--soft, --ink-3), --line, --ink-3.

Accessibility

  • Section headings are h3 under the drawer's title; follower rows are a named list.
  • "+ Add to group" is a native select named by its label; choosing fires once and resets.
  • Money labels keep their "?" notes.

Found in the source

  • ARIA attributes set: aria-label.

Read from the component's source and tests. See Accessibility for the patterns the library follows.

See also: KeyValue · Avatar · Button · CouponChip · GroupTag · Icon · Money · StatusPill · TierChip · DrawerHead · RowItems · useBricks · useLanguage · useMoneyDisplay

Source

src/blocks/creators/MyCreatorPanel.tsx (line 106) on GitHub.

On this page