Preview
Preview
Use Preview to show a rendered example and its source in standard Basecoat tabs. In MDX documentation pages, the Code tab shows the source written inside the component.
Usage
<Preview lang="html">
<button type="button" class="btn">Save changes</button>
</Preview>Options
Outside MDX documentation pages, pass the source explicitly with code. Use ordinary classes such as flex items-center justify-center to position the example. Scripts and other example behavior are authored by the page, using normal MDX or imported components.
Examples
Button
<button type="button" class="btn">Save changes</button>