diff --git a/src/components/InfoBox/InfoBox.stories.mdx b/src/components/InfoBox/InfoBox.mdx similarity index 51% rename from src/components/InfoBox/InfoBox.stories.mdx rename to src/components/InfoBox/InfoBox.mdx index ee571ae6..85db0094 100644 --- a/src/components/InfoBox/InfoBox.stories.mdx +++ b/src/components/InfoBox/InfoBox.mdx @@ -1,11 +1,13 @@ +import { Meta, Canvas } from '@storybook/blocks'; + +import * as InfoBoxStories from './InfoBox.stories.svelte'; + + + # InfoBox InfoBox is used to provide additional information that needs to be visually set aside from the main content flowm, such as methodology, detailed notes about data, and extra context as text stories. -Switch the theme prop to `dark` for a dark page infobox. - -Use [snippets](https://svelte.dev/docs/svelte/snippet) to customise the content as needed, e.g. adding icons and thumbnail images. - ```svelte + +# Graphics Kit +{#each content.blocks as block} + {#if block.type === 'text'} + + + {/if} +{/each} +``` + +## List + +## Theme + +Switch the theme prop to `dark` for a dark page infobox. + +## Customisation + +Use [snippets](https://svelte.dev/docs/svelte/snippet) to customise the content as needed, e.g. adding icons and thumbnail images. diff --git a/src/components/InfoBox/InfoBox.stories.svelte b/src/components/InfoBox/InfoBox.stories.svelte index 2ebb2125..dcc39d58 100644 --- a/src/components/InfoBox/InfoBox.stories.svelte +++ b/src/components/InfoBox/InfoBox.stories.svelte @@ -33,10 +33,11 @@ text="In case you don't read Twitter, the news, or just can't get enough of The Apprentice host's legendary oration, try this Trump lorem ipsum generator on for size." /> - - - - +