diff --git a/src/components/InfoBox/InfoBox.stories.mdx b/src/components/InfoBox/InfoBox.stories.mdx new file mode 100644 index 00000000..ee571ae6 --- /dev/null +++ b/src/components/InfoBox/InfoBox.stories.mdx @@ -0,0 +1,19 @@ +# 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 + + + +``` diff --git a/src/components/InfoBox/InfoBox.stories.svelte b/src/components/InfoBox/InfoBox.stories.svelte index 6ccd3d47..2ebb2125 100644 --- a/src/components/InfoBox/InfoBox.stories.svelte +++ b/src/components/InfoBox/InfoBox.stories.svelte @@ -1,15 +1,12 @@ - - - - - + diff --git a/src/components/InfoBox/InfoBox.svelte b/src/components/InfoBox/InfoBox.svelte index 98ddbd0a..f52a6fe8 100644 --- a/src/components/InfoBox/InfoBox.svelte +++ b/src/components/InfoBox/InfoBox.svelte @@ -1,47 +1,59 @@ - - - -```