Created
April 6, 2023 14:09
-
-
Save LayZeeDK/9d3cc147b0bbf1dd52052e440610f73e to your computer and use it in GitHub Desktop.
Custom Storybook Angular DocsPage.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
// ArgsTable, | |
Description, | |
Primary, | |
// PRIMARY_STORY, | |
Stories, | |
Subtitle, | |
Title, | |
} from '@storybook/addon-docs'; | |
import { createElement } from 'react'; | |
export const DocsPage = () => [ | |
createElement(Title), | |
createElement(Subtitle), | |
createElement(Description), | |
createElement(Primary), | |
// Disable ArgsTable since the controls don't work for Angular stories in | |
// iframes on the DocsPage. | |
// createElement(ArgsTable, { story: PRIMARY_STORY }), | |
createElement(Stories), | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { addParameters } from '@storybook/angular'; | |
import { DocsPage } from './docs-page'; | |
addParameters({ | |
docs: { | |
page: DocsPage, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment