Constraint Message
Compact inline message for booking constraints and policy notes. Four variants: neutral (muted), info (primary tint), warning (amber — no base token exists), and destructive. Defaults icons per variant; icon can be overridden or suppressed.
core/constraint-messageInstallation
1 · Add registry to components.json
2 · Install component
Examples
All variants
Neutral, info, warning, and destructive variants with default icons.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
messagereq | string | — | The message text to display. |
variant | "neutral" | "info" | "warning" | "destructive" | "neutral" | Visual tone. Warning uses amber palette (no base shadcn token for warning). |
icon | React.ReactNode | null | — | Overrides the default icon. Pass null to suppress the icon entirely. |
className | string | — | Additional classes applied to the container. |