Augeo AI Docs
Augeo Design SystemComponents

FavoriteButton

A heart toggle for saving an item, which renders the effect phase a host handed it.

FavoriteButton

A heart toggle for saving an item. It renders the effect phase a host handed it and never advances that phase itself. saved is the last value a host confirmed, so the host moves it on the acknowledgement and not on the press. The overlay appearance draws no border and no hover fill, so it reads only on an image behind it.

Interaction Phases

State space: effect. 1 of 5 covered phases has a Figma frame; 4 have not been drawn.

PhaseSpaceWhat it rendersFigma frame
idleeffectNo mutation in flight.1500:17402
pendingeffectRequested, awaiting an answer. Where pendingValue renders.MISSING
confirmedeffectThe host committed it, and said so.MISSING
rejectedeffectThe host refused it, with a class and a reason.MISSING
unacknowledgedeffectNo answer arrived inside the bound. The absence of an answer, not a refusal.MISSING

Politeness is handed down — the resolved state chooses it and this item renders 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-border-default
  • --augds-border-subtle
  • --augds-button-radius-button-radius
  • --augds-color-alpha-black-10
  • --augds-color-alpha-black-20
  • --augds-color-monochrome-pure-white
  • --augds-foreground-brand
  • --augds-foreground-secondary
  • --augds-interaction-focus-ring
  • --augds-interaction-hover-light
  • --augds-status-error-fg
  • --augds-status-warning-fg

Source

  • src/components/ui/favorite-button/favorite-button.tsx