EEnterUI
DocsComponentsThemesDonation
Get Started
  • Component onboarding
    • Text
    • List
    • DescriptionList
    • Alert
    • Avatar
    • AvatarGroup
    • Separator
EnterUIDocsFoundationsContentAlert
FoundationsUpdated 6 May 2026

Alert

Semantic feedback with restrained surfaces.

Alert defines how EnterUI handles semantic feedback with restrained surfaces, including default structure, accessible states, and token-driven styling.

#Default usage

Alert variants

Alerts use semantic border signals instead of loud fills.

Token driven

Components inherit FroggDesign variables.

Check release notes

Public API changes should include migration notes.

Code
<div className="docs-preview-stack">
  <Alert variant="info"><AlertTitle>Token driven</AlertTitle><AlertDescription>Components inherit FroggDesign variables.</AlertDescription></Alert>
  <Alert variant="warning"><AlertTitle>Check release notes</AlertTitle><AlertDescription>Public API changes should include migration notes.</AlertDescription></Alert>
</div>

#Import

Code
import { Alert, AlertDescription, AlertTitle } from "@froggdesign/enter-ui-react";

#Patterns

Error alert

Error alerts use role alert by default.

Build failed

Fix type errors before publishing the package.

#Accessibility

Alert uses role="status" by default and role="alert" for error variants unless you pass a custom role.

#API

  • variant: info, success, warning, or error.
  • AlertTitle and AlertDescription provide consistent text hierarchy.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousDescriptionList
NextAvatar

On this page

  1. Default usage
  2. Import
  3. Patterns
  4. Accessibility
  5. API
  6. Styling