-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom favicon (and customize layout in general) #581
Comments
Hi @jcarbo You can use the "scripts": {
"storybook": "start-storybook -s ./my-dir-with-favicon",
"build-storybook": "build-storybook -s ./my-dir-with-favicon"
} You can use the options addon to customize some parts of the UI. You can change the header text and the link with this addon. We're using inline-styles for our React Components (chrome) so it'll be difficult to customize them with custom CSS. If it's a relatively small and general customization, maybe we could add it to the options addon. |
Thanks for the response! I got the options working but Another question: is there an option to update the main document title (not the iframe, the main document)? |
It doesn't have an option to change the title for now. I think we can add this feature to the options addon. I've opened an issue there storybook-eol/storybook-addon-options#7 . |
@mnmtanish - I realized the favicon issue wasn't resolved via the hard refresh. I had been messing around internally with the node module and something I changed fixed it. I wound up digging in further and just opened a PR with a fix (see #592). |
Couldn't get the favicon working but to change options such as the title follow these steps from the docs: Add this line to your addons.js file (create this file inside your storybook config directory if needed).
Then Import and use the setOptions function in your config.js file.
I had to change the final line to
|
My specific question: how can you add a custom favicon (like http://airbnb.io/react-dates). I'm using a webpack config if it makes any difference.
More general question: Is it possible to customize the CSS/layout at all? I'd like to add my company name/logo in place of the
REACT STORYBOOK
header in the top left. I could also see it being useful to customize the CSS of the "chrome" around the examples. Is this possible now or are there any plans to support this?BTW I'm a huge fan of this project. We recently switched to it from a home-grown version which:
faker
in prod.The text was updated successfully, but these errors were encountered: