Genesis
@beta

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

Import
Subpath export: @marktiderman/genesis-ui
import { InlineAlert } from "@marktiderman/genesis-ui";
Components
Auto-generated from TypeScript source via 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.

PropTypeDefaultDescription
actionsReactNode—A row of buttons under the content ("Retry", "Review").
childrenReactNode—Content under the description (a list of the fields to fix, a status line).
classNamestring—
descriptionReactNode—
dismissLabelstring—The dismiss button's accessible name. Default "Dismiss".
iconReactNode—An icon before the text.
onDismiss(() => void)—Shows a dismiss button.
testIDstring—
titleReactNode—
variantenum—

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.

PropTypeDefaultDescription
actionsReactNode—A row of buttons under the content ("Retry", "Review").
childrenReactNode—Content under the description (a list of the fields to fix, a status line).
classNamestring—
descriptionReactNode—
dismissLabelstring—The dismiss button's accessible name. Default "Dismiss".
iconReactNode—An icon before the text.
onDismiss(() => void)—Shows a dismiss button.
testIDstring—
titleReactNode—
variantenum—
Storybook
Storybook hosts the canonical visual reference with controls for every variant.