gradio/js/markdown/Markdown.stories.svelte
pngwn 1419538ea7
Refactor component directories (#5074)
* asd

* changes

* fix everything

* cleanup

* add changeset

* fix casing

* lockfile

* fix casing

* fix ci, enable linting

* fix test

* add changeset

* add changeset

* delete changeset

* fix dirs

* fix casing

* fix notebooks

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00

28 lines
633 B
Svelte

<script>
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
import Markdown from "./static";
</script>
<Meta
title="Components/Markdown"
component={Markdown}
argTypes={{
rtl: {
options: [true, false],
description: "Whether to render right-to-left",
control: { type: "boolean" },
defaultValue: false
}
}}
/>
<Template let:args>
<Markdown
{...args}
value="Here's some <strong>bold</strong> text. And some <em>italics</em> and some <code>code</code>"
/>
</Template>
<Story name="Simple inline Markdown with HTML" />
<Story name="Right aligned Markdown with HTML" args={{ rtl: true }} />