Skip to main content

Callout

A callout component to highlight important information.

Callouts (also known as admonitions) are used to highlight a block of text. There are five types of callouts available: 'note', 'warning', 'danger', 'tip', and 'success'.

You can override the default icon for the callout by passing a component via the icon prop.

Usage

document.md
		<script>
	import { Callout } from "$lib/components";
</script>
 
<Callout type="note" title="Note">
	<!-- Space here-->
	This is a note, used to highlight important information or provide additional context. You can use
	markdown in here as well! Just ensure you include a space between the component and the content in
	your Markdown file.
	<!-- Space here-->
</Callout>
	

Examples

Warning

Note

Danger

Tip

Success

Custom Icon

Custom Title