Skip to content

Commit

Permalink
Merge pull request #67 from uswds/jm/add-manifest
Browse files Browse the repository at this point in the history
USWDS - Web components: Improve component docs with custom elements manifest
  • Loading branch information
heymatthenry authored Sep 6, 2024
2 parents f1e8652 + 223726a commit ea6e25d
Show file tree
Hide file tree
Showing 5 changed files with 1,550 additions and 138 deletions.
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const config = {
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-docs",
"@chromatic-com/storybook",
"@storybook/addon-a11y",
],
Expand Down
19 changes: 17 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
/**
* Custom elements for component docs generation.
*/
import { setCustomElementsManifest } from "@storybook/web-components";
import customElements from "../custom-elements.json";

setCustomElementsManifest(customElements);

/**
*
* StorybookJS theme
*
*/

// Custom theme.
import UswdsTheme from "./UswdsTheme";

// Global component styles.
// Global styles.
import "../storybook/index.css";
// Theme overrides.
// Documentation overrides.
import "./index.css";

/** @type { import('@storybook/web-components').Preview } */
Expand Down
Loading

0 comments on commit ea6e25d

Please sign in to comment.