Info displays a message with a blue or danger accent. Supply buttonTitle with onClick for an action, or with href for a link. When both are supplied, href takes precedence.
accent="danger" for an error. render customizes the link action when href is supplied. The message has no automatic dismissal or announcement behavior.
Props
"blue" | "danger"
default:"blue"
Information or danger styling.
string
Visible label for the optional action. Requires href or onClick.
string
Action destination. Takes precedence over onClick.
((event: MouseEvent<HTMLButtonElement, MouseEvent>) => void)
Action callback when href is absent.
ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ButtonState>
Custom render element for the link action, forwarded to Button when href is supplied.
string
required
Message displayed beside the information icon.