InlineAlert
InlineAlert — a message that sits with what it is about (between form fields, over a list): the twin of genesis-ui-native's NativeInlineAlert, with the same variants (info, success, warning, destructive), dismiss, content and actions. It is the Alert, tinted. Warnings and errors are announced (`role="alert"`); info and success are a polite status.
packages/ui/src/components/ui/inline-alert.tsx
@marktiderman/genesis-uiimport { InlineAlert } from "@marktiderman/genesis-ui";react-docgen-typescript.InlineAlert
InlineAlert — a message that sits with what it is about (between form fields, over a list): the twin of genesis-ui-native's NativeInlineAlert, with the same variants (info, success, warning, destructive), dismiss, content and actions. It is the Alert, tinted. Warnings and errors are announced (`role="alert"`); info and success are a polite status.
| Prop | Type | Default | Description |
|---|---|---|---|
| actions | ReactNode | — | A row of buttons under the content ("Retry", "Review"). |
| children | ReactNode | — | Content under the description (a list of the fields to fix, a status line). |
| className | string | — | |
| description | ReactNode | — | |
| dismissLabel | string | — | The dismiss button's accessible name. Default "Dismiss". |
| icon | ReactNode | — | An icon before the text. |
| onDismiss | (() => void) | — | Shows a dismiss button. |
| testID | string | — | |
| title | ReactNode | — | |
| variant | enum | — |
Banner
Banner — a full-width system message across the top of a page ("You're offline"): the twin of genesis-ui-native's NativeBanner. It stays until dismissed or until its condition clears, and is announced politely. For a passing confirmation use a toast; for something blocking, a dialog.
| Prop | Type | Default | Description |
|---|---|---|---|
| actions | ReactNode | — | A row of buttons under the content ("Retry", "Review"). |
| children | ReactNode | — | Content under the description (a list of the fields to fix, a status line). |
| className | string | — | |
| description | ReactNode | — | |
| dismissLabel | string | — | The dismiss button's accessible name. Default "Dismiss". |
| icon | ReactNode | — | An icon before the text. |
| onDismiss | (() => void) | — | Shows a dismiss button. |
| testID | string | — | |
| title | ReactNode | — | |
| variant | enum | — |