AwardTemplateCard
One award template, with its badge, category and reward. It either picks the template, as a toggle, or opens it, as a plain press.
AwardTemplateCard
AwardTemplateCard is one template in a gallery. It shows the badge the template carries and what the reward comes to, so an admin can tell two templates apart without opening either. Give picks a template with it, and the template library opens one for editing. The reward amount is on the card, so use it only where the viewer may see amounts.
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-brand-subtle--augds-background-sunken--augds-border-brand--augds-border-default--augds-border-subtle--augds-foreground-brand--augds-foreground-primary--augds-foreground-secondary--augds-foreground-tertiary--augds-interaction-focus-ring--augds-radius-primitive-16--augds-surface-elevated--augds-surface-page
Source
src/components/ui/award-template-card/award-template-card.tsx