- Import relevant components from
@primer/doctocat-nextjs:
import {Note} from '@primer/doctocat-nextjs'- Use the components in your Markdown file, but ensure that you wrap the component in a
divwith thecustom-componentclass. This will ensure that article formatting isn’t applied to the custom component.
Loading
Will render:
Example of a note
Variants
Use the variant option to change the style of the note. The default variant is info.
Loading
Will render:
Example of an info note
Example of a warning note