Callout
A callout to add eye-catching context to your content.
Usage
Use the default slot to display a callout component with full markdown support.
This is a
callout
with full markdown support. It can be used to link to another page.::callout
This is a `callout` with full **markdown** support. It can be used to link to [another page](/pro/components/prose/card).
::
Icon
You can add an icon
prop to display an icon on the left of the callout:
This suggests a helpful tip.
::callout{icon="i-heroicons-light-bulb"}
This suggests a helpful tip.
::
Color
You can use the color
prop to change the color of the callout:
This raises a warning to watch out for.
::callout{icon="i-heroicons-exclamation-triangle" color="amber"}
This raises a warning to watch out for.
::
Link
You can add a to
prop to make it a link, an external icon will be displayed when the link is external:
::callout{icon="i-heroicons-light-bulb" to="https://nuxt.com" target="_blank"}
Check out this documentation.
::
Props
icon
string
undefined
color
string
"primary"
to
string
undefined
target
string
undefined
ui
{}
{}