From cf1a18afaaa39ecd820c1b3d56d8228108da4c5c Mon Sep 17 00:00:00 2001 From: MinamiFunakoshiTR Date: Thu, 6 Mar 2025 14:13:47 -0800 Subject: [PATCH] migrated infobox, working on documentation --- .../{InfoBox.stories.mdx => InfoBox.mdx} | 50 +++++++++++++++++-- src/components/InfoBox/InfoBox.stories.svelte | 15 +++--- 2 files changed, 54 insertions(+), 11 deletions(-) rename src/components/InfoBox/{InfoBox.stories.mdx => InfoBox.mdx} (51%) 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." /> - - - - +