Assistant badge

The assistant's staff badge from sign-up, as the package ships it: large on the assistant screen, small on the payment step, the caller card without its slot, and a back it can turn to. Each specimen below is the package's own component, drawn in both schemes, so what you see is what the app gets. On a computer, move the mouse over a badge to lean it, and press the large one to turn it over.

Use it

import { AssistantBadge, AssistantBadgeBack } from '@marbling-hq/airmond-brandkit/components';

It draws with the theme of the nearest BrandkitThemeProvider, like the Controls kit and the cards on the Card kit. Every state is a story in Storybook, under Controls/AssistantBadge.

The badge

Her staff badge, as sign-up draws it (MAR-3903): her portrait full-bleed, the slot cut through the top with the page showing through, the region's flag round in a 2px white ring, her name and "Personal AI assistant to" the member over a dark fade. A member's name too long for its line keeps the first name and shortens the surname to its initial. large is screen 2's 312 by 416 at 22, small the docked 165 by 210 at 18, the app's signupPage numbers; width and height set an exact box for a size that is computed (the badge springing down as it docks, a caller card drawn to fit), and under 200 wide it takes the small look. On the web it leans up to 12° toward a mouse anywhere over the view leanArea points at, on the moderate tier, and over the card lifts to 1.03 with a sheen on the fast tier; what goes away takes Fluid's exit for its tier. Given a back it is one button that turns over on the slow tier and says which side now shows (AssistantBadgeBack draws the standard back: what she does, and that she is an AI assistant, not a person). The back holds no controls: nothing on it can take a press. While the back shows, the front's corners take no focus and no press. Under Reduce Motion nothing leans or turns and the faces swap with a fade. A portrait that is missing or does not load is the wash and her monogram, ringed by the rule hairline as the back is, and is tried again as Avatar's is. No coral, no green.

Neutral light · AssistantBadge · from the package
Large, screen 2: lean toward it, press it to turn it over
Small, the docked card; still, as on the payment step
The caller card (no slot), and no portrait: the wash and her monogram
Neutral dark · AssistantBadge · from the package
Large, screen 2: lean toward it, press it to turn it over
Small, the docked card; still, as on the payment step
The caller card (no slot), and no portrait: the wash and her monogram

Props

PropTypeWhat it does
name, ownerstring, string | nullHer name; the member's full name, or "you".
portrait, renderImagestring | null, functionAs Avatar's; the image is also handed the card's size and clearOf, the slot's lower edge, so the app can frame each face.
sizelarge | smallThe inner numbers: radius, inset, flag, slot and type. 312 by 416 (default) or 165 by 210.
width, heightnumberAn exact box, for a size that is computed, not chosen; with no size, under 200 wide takes the small look.
slot, slotColorboolean, colourThe slot (default on; off is the caller card) and what shows through it (default the ground).
flag{ source, label }The region's flag, top right; its label joins the badge's name.
lean, leanAreaboolean, refThe lean, lift and sheen (default on, web only, a mouse or a pen; the app's still is lean={false}), and the view whose box it answers to, read on every move (default the card).
back, flipped, defaultFlipped, onFlippedChangenode, boolean, boolean, functionThe back makes the card one button that turns over; controlled or not. The back holds no controls.
topLeft, bottomRightnodeThe app's voice button and edit pencil on the front's corners, on the flag's lines, with room for a 44 hitSlop, on a layer of their own beside the button; inert while the back shows. The caption keeps clear of bottomRight.
wordsobject"Personal AI assistant to", "you", the spoken name, the turn's words and the back's eyebrow and last line, for another language.