Reaction
How colleagues react to something someone wrote, the affordance to add one, and the picker behind it.
Reaction
How colleagues answer something a person wrote. The design system draws the chip, the add affordance and the picker, and routes every press. The host owns every count and every reacted value, and this component moves neither.
The reactor panel
A count says how many and never says who, and who is what a reader wants. A
chip given reactors names them on hover and on focus, in the light tone of
the shared Tooltip rather than a second floating surface.
The chip's count stays the truth. A host that knows four of nine names
passes nine, and the panel names four and counts the rest in one line. That
settles both gaps at once — names the host lacks, and names past maxReactors.
A hover hint never opens for a finger, so the panel is supplemental. Nothing a reader must have goes in it.
Storybook
Loading
Props
Prop
Type
Also takes the attributes of the element it renders.
Tokens
Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.
--augds-background-sunken-1--augds-background-sunken-2--augds-border-default--augds-border-solid-neutral--augds-foreground-primary--augds-foreground-secondary--augds-foreground-tertiary--augds-interaction-focus-ring--augds-interaction-hover--augds-interaction-pressed--augds-radius-primitive-16--augds-radius-primitive-999--augds-shadow-2--augds-surface-current--augds-surface-sunken
Source
src/components/ui/reaction/emoji-picker.tsxsrc/components/ui/reaction/reaction.tsx