Skip to content

Commit

Permalink
21980: Generics to support additional controls and information for pr…
Browse files Browse the repository at this point in the history
…ojects page, MINOR (#30)

- @howso/react-tailwind-flowbite-components@^6.1.0
- Added TraineeIdentifiers
- Fixed the display of TraineeCreationStepper
- npx storybook@latest upgrade
  • Loading branch information
lancegliser authored Oct 29, 2024
1 parent 05ba589 commit 877cea7
Show file tree
Hide file tree
Showing 9 changed files with 528 additions and 275 deletions.
9 changes: 9 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
import type { StorybookConfig } from "@storybook/react-vite";
const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-a11y",
"@chromatic-com/storybook",
],

framework: {
name: "@storybook/react-vite",
options: {},
},

docs: {},

// staticDirs: ["../public"], //👈 Configures the static asset folder in Storybook
features: {
viewportStoryGlobals: true,
},

refs: {
"react-tailwind-flowbite-components": {
title: "Howso components",
Expand All @@ -29,5 +34,9 @@ const config: StorybookConfig = {
expanded: false, // Optional, true by default
},
},

typescript: {
reactDocgen: "react-docgen-typescript"
}
};
export default config;
3 changes: 3 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const preview: Preview = {
viewport: { value: undefined },
},
},

decorators: [
(Story: StoryFn, context) => {
const mode: ThemeMode =
Expand Down Expand Up @@ -80,6 +81,8 @@ const preview: Preview = {
/>
),
],

tags: ["autodocs"]
};
export default preview;
``;
Loading

0 comments on commit 877cea7

Please sign in to comment.