Augeo AI Docs
Augeo Design SystemComponents

TemplateEditor

The controlled editor for an award template, with its fields on one side and a live summary of what it sends on the other.

TemplateEditor

TemplateEditor is where an admin writes an award template: its name, category, badge, reward and default message. The summary beside the form restates what the template sends as the choices change, and the host raises any guidance there as a notice that never blocks a save. The editor checks nothing itself, so the host must validate the value and pass back each error before it saves.

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-1
  • --augds-border-brand
  • --augds-border-default
  • --augds-border-strong
  • --augds-foreground-brand-readable
  • --augds-foreground-primary
  • --augds-foreground-secondary
  • --augds-foreground-tertiary
  • --augds-interaction-focus-ring
  • --augds-interaction-hover-light
  • --augds-radius-primitive-12
  • --augds-radius-primitive-16
  • --augds-surface-surface-1

Source

  • src/components/ui/template-editor/template-editor.tsx