Skip to content
Preview

Ask to read @src/billing/tax.ts and the @docs/ folder, then compare it with@Fix smoke e2e in@act, following@repo-hygiene.

MentionPill

labelrequired
string
The target's name, as the text reads it after its @.
tone
MentionPillTone
Default: "neutral"
muted
boolean
The target no longer exists: the pill steps down and says so in its tooltip.
picture
{ avatar: AgentAvatarValue; photoSrc?: string } | { src: string }
The face before the @, at the line's height: an agent's stored avatar and a photo's still (never the animated one), or a picture of its own (an app's icon), whose pill reads as one without it when it fails to load. A muted pill draws none.
you
boolean | "tinted"
Default: false
href
string
Its target's page (a profile): the pill is then that link.
linkStyle
"chip"
onClick
(e: MouseEvent<HTMLElement>) => void
Opens the target. The pill renders as a button; without it, a span.
rootStyle
RootStyle<MentionPillKnobs>
Typed StyleX override: layout and the --mention-pill-* knobs.

Rest props go to HTMLAttributes<HTMLElement>.

State machine

PreviewThe mention names its target.
@Scout