-
Notifications
You must be signed in to change notification settings - Fork 233
docs: add storybook plugins (barebones) #5737
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ import '../tokens/light-vars.css'; | |
import '../tokens/medium-vars.css'; | ||
import '../tokens/global-vars.css'; | ||
|
||
import { html } from 'lit'; | ||
import { setCustomElementsManifest } from '@storybook/web-components'; | ||
import customElements from './custom-elements.json'; | ||
|
||
|
@@ -14,6 +13,7 @@ setCustomElementsManifest(customElements); | |
|
||
const preview = { | ||
parameters: { | ||
layout: 'centered', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think centered or padded are nice customer experiences. The downside of making every component fullscreen is that the smaller components get squashed into the top left corner. |
||
controls: { | ||
expanded: true, | ||
matchers: { | ||
|
@@ -29,6 +29,7 @@ const preview = { | |
}, | ||
}, | ||
}, | ||
tags: ['autodocs'], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Automatically triggers documentation pages for every component. Components can opt-out using |
||
}; | ||
|
||
export default preview; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,9 @@ | |
"devDependencies": { | ||
"@axe-core/playwright": "^4.10.2", | ||
"@custom-elements-manifest/analyzer": "^0.10.5", | ||
"@storybook/addon-a11y": "9.1.3", | ||
"@storybook/addon-designs": "10.0.2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This lets us bring over the Figma resources that we have linked in CSS. |
||
"@storybook/addon-docs": "9.1.3", | ||
"@storybook/test-runner": "^0.23.0", | ||
"@storybook/web-components-vite": "9.1.3", | ||
"@types/react": "^19", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't actually being used in this file so the import wasn't needed.