--- title: 'previewBody' sidebar: order: 16 title: previewBody --- Parent: [main.js|ts configuration](./main-config.mdx) Type: `(body: string) => string` Programmatically adjust the [preview `
`](../../configure/story-rendering.mdx#adding-to-body) of your Storybook. Most often used by [addon authors](../../addons/writing-presets.mdx#ui-configuration).