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.
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".
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.
| Key | English | Arabic |
|---|---|---|
tier | Tier | المستوى |
score | TRNDR score | تقييم TRNDR |
outOf | / 100 | من 100 |
followers | Followers by platform · {t} total | المتابعين حسب المنصة · {t} إجمالي |
inProgram | In your program | في برنامجك |
orders | Orders | الطلبات |
sales | Sales | المبيعات |
commission | Commission | العمولة |
status | Status | الحالة |
coupon | Coupon | الكوبون |
joined | Joined | انضم |
groups | Groups | المجموعات |
noGroup | Not in a group yet | لسه مش في أي مجموعة |
addToGroup | + Add to group | + ضيف لمجموعة |
copyCoupon | Copy coupon | انسخ الكوبون |
privacy | Phone 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
- Head:
DrawerHeadwithtone, 56px photo, name, "@handle · niche". - Tier and score:
KeyValue(Tier →TierChip; TRNDR score → big number "/ 100", or "—"). - Followers: h3 "Followers by platform · 453K total" +
RowItems(platform glyph + name, full count). - In your program: h3 +
KeyValue: Orders, Sales (creator_sales"?"), Commission (earned"?"), Status (StatusPill), Coupon (CouponChip, when set), Joined. - Groups: h3 +
GroupTags (openable) or "Not in a group yet", and a "+ Add to group" select ofotherGroups. - Actions: "Copy coupon" (when a coupon and
onCopyCoupon) + youractions. - Note: "Phone and address stay private to the creator."
Variants
| Prop | Values | When |
|---|---|---|
tone | 'lime' | 'rasp' | 'butter' | 'sky' | 'lilac' | Head tint. |
facts | default / list / function | Add store figures ("Sold in your store · 90 days" with figure: 'creator_sales'). |
actions | node | Extra buttons (Remove creator, Open full profile). |
money | MoneyDisplay | Sales / commission display; default compact "EGP 184.3K". |
States
| State | Trigger |
|---|---|
| In groups | groups non-empty: tags. |
| No groups | groups=[]: "Not in a group yet". |
| Can add | onAddToGroup and otherGroups non-empty: select shown. |
| Paused / removed | creator.status drives the StatusPill. |
| No coupon | coupon null: no Coupon row, no Copy coupon. |
| No score | score: 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
h3under 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.
Related
CreatorProfilePanel: a creator not yet in the program.GroupPanel: what a group tag opens.CreatorCell: the table row that opens it.
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.