Augeo Design SystemComponents
RewardCode
A reward code in monospace with a copy button, for an item that arrives as a code.
RewardCode
RewardCode shows a code a recipient types in somewhere else, with one control to copy it. The host writes to the clipboard and decides how long the copied state lasts. The code stays selectable, so it still works when the clipboard refuses.
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-border-strong--augds-font-size-2xl--augds-foreground-primary--augds-foreground-secondary--augds-foreground-tertiary--augds-radius-primitive-16--augds-surface-sunken
Source
src/components/ui/reward-code/reward-code.tsx