Skip to content
duxt

Callout

An aside the reader is meant to stop at — a tip, a warning, a danger.

An aside in one of four flavours. The body is Markdown, so links, code and lists all work inside one.

Usage

Types

API

Props

PropTypeDefaultNotes
typeinfo · tip · warning · dangerinfoPicks the colour, the icon and the role
titlestringBold first line; the body follows
iconstringper typeAny Iconify name, overriding the default

Slots

SlotWhat goes in it
defaultThe body, as Markdown

Notes

A danger callout carries role="alert"; the others do not. An alert interrupts a screen reader mid-sentence, which is right for "this deletes your data" and wrong for a tip.

Was this page helpful?