UI kit reference
components/Callout
import { … } from 'zidane-ui'ui/src/components/Callout.tsx
Components#
CalloutComponent#
Renders a note on a soft wash of its tone (or beside a bar of it), with a glyph and an optional title.
function Callout(props: CalloutProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | CalloutProps |
Returns
ElementProps
| Name | Type | Default | Description |
|---|---|---|---|
| children? | ReactNode | The note. | |
| className? | string | Extra classes on the root element. | |
| style? | CSSProperties | Inline styles on the root element. | |
| title? | ReactNode | A bold first line. | |
| tone? | CalloutTone | 'neutral' | The color and the glyph. |
| variant? | CalloutVariant | 'wash' |
|
Interfaces#
CalloutPropsInterface#
Props for Callout.
interface CalloutPropsProperties
| Name | Type | Default | Description |
|---|---|---|---|
| children? | ReactNode | The note. | |
| className? | string | Extra classes on the root element. | |
| style? | CSSProperties | Inline styles on the root element. | |
| title? | ReactNode | A bold first line. | |
| tone? | CalloutTone | 'neutral' | The color and the glyph. |
| variant? | CalloutVariant | 'wash' |
|
Types#
CalloutToneType#
The tone of a Callout.
type CalloutTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger'CalloutVariantType#
How a Callout sets itself apart: a soft wash of its tone, or a bar of its tone on the left.
type CalloutVariant = 'wash' | 'bar'