mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
30 lines
544 B
Svelte
30 lines
544 B
Svelte
|
<script context="module">
|
||
|
import { Template, Story } from "@storybook/addon-svelte-csf";
|
||
|
import Label from "./Index.svelte";
|
||
|
|
||
|
export const meta = {
|
||
|
title: "Components/Label",
|
||
|
component: Label
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<Template let:args>
|
||
|
<Label {...args} />
|
||
|
</Template>
|
||
|
|
||
|
<Story
|
||
|
name="Long and space-separated label text"
|
||
|
args={{
|
||
|
value: {
|
||
|
label: "Label",
|
||
|
confidences: [
|
||
|
{
|
||
|
label:
|
||
|
"Long space separated label text, long space separated label text, long space separated label text",
|
||
|
confidence: 0.8
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}}
|
||
|
/>
|