Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 819 Bytes

main-config-preview-head.md

File metadata and controls

28 lines (18 loc) · 819 Bytes
title
previewHead

Parent: main.js|ts configuration

Type: (head: string) => string

Programmatically adjust the preview <head> of your Storybook. Most often used by addon authors.

If you don't need to programmatically adjust the preview head, you can add scripts and styles to preview-head.html instead.

For example, you can conditionally add scripts or styles, depending on the environment:

<CodeSnippets paths={[ 'common/main-config-preview-head.js.mdx', 'common/main-config-preview-head.ts.mdx', ]} />