- Import relevant components from
@primer/doctocat-nextjs
:
import {DoDontContainer, Do, Dont} from '@primer/doctocat-nextjs'
- Use the components in your Markdown file, but ensure that you wrap the component in a
div
with thecustom-component
class. This will ensure that article formatting isn’t applied to the custom component.
Loading
Will render:
Do

Don’t

Stacked
Use the stacked
option to vertically stack the Do and Don’t images.
Loading
Do

Don’t
