Info
Inline status callouts with optional action links.
Demo
Your transaction is ready for review.
You need to deposit $25.00 to continue.
The transaction simulation failed.View details
Your session was restored.
Usage
import { Info } from 'regen-ui'
export function BalanceWarning() {
return (
<Info
action={{ external: false, href: '/deposit', label: 'Add funds' }}
message="You need to deposit $25.00 to continue."
type="warning"
/>
)
}API Reference
Info.Props
| Name | Type | Default | Description |
|---|---|---|---|
action | Action | None | Optional trailing action rendered inline. |
className | string | None | Additional class names. |
message | ReactNode | None | Message body. |
type | 'error' | 'info' | 'warning' | 'info' | Visual variant. |
actionType
ActionDefaultNone
Optional trailing action rendered inline.classNameType
stringDefaultNone
Additional class names.messageType
ReactNodeDefaultNone
Message body.typeType
'error' | 'info' | 'warning'Default
Visual variant.'info'Info.Action
Optional trailing action rendered inline on an info callout.
| Name | Type | Default | Description |
|---|---|---|---|
external | boolean | true | Whether the link opens in a new tab. |
href | string | None | Link target. |
label | ReactNode | None | Link text.Button text. |
onClick | () => void | None | Called when the link is clicked.Called when the button is clicked. |
externalType
booleanDefault
Whether the link opens in a new tab.truehrefType
stringDefaultNone
Link target.labelType
ReactNodeDefaultNone
Link text.Button text.onClickType
() => voidDefaultNone
Called when the link is clicked.Called when the button is clicked.