Ballmac UI home

Inline Alert

A short in-context message with semantic live priority and an optional corrective action.

Your changes were saved. Everyone on the team has the latest version.

Installation

$ pnpm dlx shadcn@latest add @ballmac/inline-alert

Usage

import { InlineAlert } from "@/components/ballmac/inline-alert"

The full example is in the Code tab above.

Examples

States and variants

You can invite more members after setup.

API reference

PropTypeDefault
message*

Concise status or validation message.

string—
tone

Message tone and announcement priority.

"info" | "success" | "error""info"
action

Optional corrective link or button.

React.ReactNode—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Tab / EnterFocus and activate an optional action

Use with AI

A short in-context message with semantic live priority and an optional corrective action. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Inline Alert (@ballmac/inline-alert) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Explain a field or form outcome
  • Show a small inline confirmation

Not for

  • Use alert for a larger callout

Registry JSON: https://ui.ballmac.com/r/inline-alert.json

Credits

Free to use in personal and commercial projects.

Registry
shadcn/utils