mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-14 10:42:13 +00:00
PoC
This commit is contained in:
22
apps/login/.storybook/main.ts
Normal file
22
apps/login/.storybook/main.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { StorybookConfig } from "@storybook/nextjs";
|
||||
const config: StorybookConfig = {
|
||||
stories: [ "../**!(node_modules)/*.stories.@(js|jsx|ts|tsx|md|mdx)"],
|
||||
addons: [
|
||||
"@storybook/addon-links",
|
||||
"@storybook/addon-essentials",
|
||||
"@storybook/addon-interactions",
|
||||
'storybook-css-modules-preset',
|
||||
],
|
||||
framework: {
|
||||
name: "@storybook/nextjs",
|
||||
options: {},
|
||||
},
|
||||
docs: {
|
||||
autodocs: "tag",
|
||||
},
|
||||
core: {
|
||||
disableTelemetry: true,
|
||||
},
|
||||
|
||||
};
|
||||
export default config;
|
||||
15
apps/login/.storybook/preview.ts
Normal file
15
apps/login/.storybook/preview.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { Preview } from "@storybook/react";
|
||||
|
||||
const preview: Preview = {
|
||||
parameters: {
|
||||
actions: { argTypesRegex: "^on[A-Z].*" },
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
date: /Date$/,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default preview;
|
||||
Reference in New Issue
Block a user