Admonition
Import
import { Admonition } from '@redocly/theme/components/Admonition/Admonition';
Properties
Prop | Type | Description |
---|---|---|
type | enum (warning | success | danger | info ) | Sets the type of admonition. By default info . |
name | string | Heading for admonition. |
children | React.ReactNode | Passes content between the opening and closing tags of a component. |
className | string | Adds custom CSS classes to the component for styling purposes. |
Resources
- For a list of all components you can customize, see List of customizable components.