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-message

Installation

1 · Add registry to components.json

2 · Install component

Examples

All variants

Neutral, info, warning, and destructive variants with default icons.

API Reference

PropTypeDescription
messagereq
stringThe message text to display.
variant
"neutral" | "info" | "warning" | "destructive"Visual tone. Warning uses amber palette (no base shadcn token for warning).
icon
React.ReactNode | nullOverrides the default icon. Pass null to suppress the icon entirely.
className
stringAdditional classes applied to the container.