Repository navigation
hx components Callout
github-actions[bot] edited this page Jul 1, 2026
·
2 revisions
Inline alert message with icon and text.
<HxCallout kind="info" message="Changes saved." />
<HxCallout kind="success" message="Operation completed." />
<HxCallout kind="warn" message="Subscription expires in 3 days." />
<HxCallout kind="error" message="Payment failed." />
<HxCallout kind="question" message="Proceed with deletion?" />
// Custom icon
<HxCallout kind={<CustomWarning />} message="Custom callout" />| Prop | Type | Default | Description |
|---|---|---|---|
kind |
HxCalloutKind | ReactNode |
— |
'info', 'success', 'question', 'warn', 'error', or custom icon element |
message |
ReactNode |
— | Message content |
kind |
Icon | Color |
|---|---|---|
'info' |
Info |
blue |
'success' |
Success |
green |
'question' |
Question |
neutral |
'warn' |
Exclamation |
yellow |
'error' |
Error |
red |
All standard <div> events forwarded. Callout is a display-only element — rarely needs event listeners in practice.
- Overview
- Common Concepts
- I18n
- Data Attributes
- Form Components
- Layout Components
- Display Components
- Overlay Components
- Structure Components
- Validation
- Hooks
- Utilities