Augeo AI Docs
Augeo Design SystemComponents

Modal

Centered overlay dialog built on @radix-ui/react-dialog, as a composable set with a token-driven panel, a dimming backdrop and a built-in close.

Modal

Modal is a centered overlay dialog built on @radix-ui/react-dialog. It is a composable set that you assemble like the underlying primitive, with Augeo tokens already applied. Pass the same container to Modal and ModalContent when the host is a shadow root. That path does not use Radix hideOthers, so it aria-hides the shadow host's light-DOM siblings instead.

Modal — confirmation dialog
Backdrop
Controlled — consumer owns open state
Backdrop
open: false
Sizes — sm / md / lg
Backdrop

Interaction Phases

State space: none. This item renders no phase treatment of its own.

Politeness is not announced — this item carries no live region.

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
  • --augds-border-default
  • --augds-foreground-primary
  • --augds-foreground-secondary
  • --augds-foreground-tertiary
  • --augds-interaction-focus-ring
  • --augds-radius-primitive-12
  • --augds-spacing-32
  • --augds-surface-current
  • --augds-surface-scrim
  • --augds-surface-scrim-blur
  • --augds-surface-sunken
  • --augds-surface-surface-1

Source

  • src/components/ui/modal/modal.tsx