<Aside>
component.
Include nonessential, supplementary information in a regular
<Aside>
. If some information is important or might lead to bad cases when not taken into consideration, specify a different type
, such as "caution"
or "danger"
.Import
Usage
Display an aside (also known as “admonitions” or “callouts”) using the<Aside>
component.
An <Aside>
can have an optional type
attribute, which controls the aside’s color, icon, and default title.
Use custom titles
Override the default aside titles by using thetitle
attribute.
Watch out!
<Aside>
props
Implementation: aside.jsx
The <Aside>
component accepts the following props:
type
type: "note" | "tip" | "caution" | "danger"
default:
"note"
The type of aside to display:
note
asides (the default) are blue and display an information icon.tip
asides are purple and display a rocket icon.caution
asides are yellow and display a triangular warning icon.danger
asides are red and display an octagonal warning icon.
title
type: string
The title of the aside to display. If title
is not set, the default title for the current aside type
will be used.