Back to Storybook

managerHead

docs/api/main-config/main-config-manager-head.mdx

10.3.6613 B
Original Source

Parent: main.js|ts configuration

Type: (head: string) => string

Programmatically adjust the manager's <head> of your Storybook. For example, load a custom font or add a script. Most often used by addon authors.

<Callout variant="info" icon="💡">

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

</Callout>

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

<CodeSnippets path="main-config-manager-head.md" />