mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-05 11:10:03 +08:00
* 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>
28 lines
633 B
Svelte
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 }} />
|