Feedback

Alert API

Alert communicates inline feedback, warnings, and success states with a strong Foundry signal marker.

Preview

Info
Use alerts for inline notes and guidance.
Beta
APIs may change before 1.0.
Ready
The package is installed correctly.

Import

import { Alert } from "@axonyx/react";

Props

PropTypeDefaultDescription
tone"info" | "warning" | "danger" | "success""info"Controls semantic feedback color.
titleReactNodeundefinedOptional strong title above alert content.
childrenReactNodeundefinedAlert body content.

CSS contract

.ax-alert
.ax-alert__marker
.ax-alert__body
.ax-alert__title
.ax-alert__content
[data-tone]
Server-safeNo JS required