diff --git a/packages/lsd-react/.storybook/preview.tsx b/packages/lsd-react/.storybook/preview.tsx index 15da8bc..f8beb21 100644 --- a/packages/lsd-react/.storybook/preview.tsx +++ b/packages/lsd-react/.storybook/preview.tsx @@ -38,7 +38,7 @@ const useGlobals = () => { themeFont: { defaultValue: 'sans-serif', description: 'Theme font', - name: 'Theme Font', + name: 'Theme font', toolbar: { icon: '', items: [ @@ -148,6 +148,9 @@ const preview: Preview = { typeof meta?.parameters?.docs?.controls === 'undefined' || meta?.parameters?.docs?.controls === true + const storyId = new URLSearchParams(window.location.search).get( + 'storyId', + ) as string const embedded = new URLSearchParams(window.location.search).get('embedded') === 'true' const globalControls = @@ -193,7 +196,13 @@ const preview: Preview = { ))} )} - + {controls && !hideControls && } = { render: (args) => { return (
- + Colour - + - + Spacing - + - - Typography - + + TypographyComponent +
) @@ -54,3 +54,48 @@ export const Root: StoryObj = { args: {}, } + +export const Colors: StoryObj = { + render: (args) => { + return + }, + parameters: { + docs: { + source: { + code: null, + }, + }, + }, + + args: {}, +} + +export const Spacing: StoryObj = { + render: (args) => { + return + }, + parameters: { + docs: { + source: { + code: null, + }, + }, + }, + + args: {}, +} + +export const Typography: StoryObj = { + render: (args) => { + return + }, + parameters: { + docs: { + source: { + code: null, + }, + }, + }, + + args: {}, +}