-
Notifications
You must be signed in to change notification settings - Fork 66
Admonitions (tip boxes)
Laura Kalbag edited this page May 23, 2023
·
1 revision
Admonitions are a way to draw attention to special types of content including tips and warnings. These boxes have borders, background colors and icons representing the type of content.
These admonitions come default with Docusaurus, but have custom markup and styling.
:::tip
This is a tip admonition with no heading.
:::
:::caution
## Warning
This is a caution admonition with an h2 heading.
:::
:::note
This is a note admonition with no heading.
:::
:::danger
### Danger
This is a danger admonition with an h3 heading.
:::
:::info
This is an info admonition with no heading.
:::
These are custom admonitions created for Stately.
:::studio
This is a studio admonition with no heading.
:::
:::xstate
## How its done in XState
This is an XState admonition with an h2 heading.
:::
:::warningxstate
## XState v5 Alpha
`X feature` is only available in XState version 5. [Check out XState v5 Alpha on NPM](https://www.npmjs.com/package/xstate/v/5.0.0-alpha.1).
:::
:::typescript
This is a TypeScript admonition with no heading.
:::
:::new
This is a new admonition with no heading.
:::
:::video
This is a video admonition with no heading.
:::