Skip to content

Instantly share code, notes, and snippets.

@LayZeeDK
Created April 6, 2023 14:09
Show Gist options
  • Save LayZeeDK/9d3cc147b0bbf1dd52052e440610f73e to your computer and use it in GitHub Desktop.
Save LayZeeDK/9d3cc147b0bbf1dd52052e440610f73e to your computer and use it in GitHub Desktop.
Custom Storybook Angular DocsPage.
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),
];
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