Code Preview
Pair a rendered example with its source code.
On this page
Usage
Use the preview slot for the rendered example and code for its source.
vue
<UiButton color="primary">Get started</UiButton>
md
export default defineAppConfig({
indocio: {
docs: {
content: { width: '42rem' },
sidebar: { enabled: true, width: 240, collapsible: false },
toc: { enabled: true, position: 'content', depth: 3 },
breadcrumbs: true,
footer: true,
navigation: true,
search: true,
actions: { copyLink: true },
},
spaces: { switcher: 'dropdown' },
},
})
title defaults to Preview. The default slot can also supply the preview. This displays authored content; it does not execute code strings.