FEA-Bench / testbed /gradio-app__gradio /js /dropdown /Multiselect.stories.svelte
hc99's picture
Add files using upload-large-folder tool
8766bc5 verified
raw
history blame
761 Bytes
<script>
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
import Multiselect from "./shared/Multiselect.svelte";
</script>
<Meta
title="Components/Multiselect"
component={Multiselect}
argTypes={{
multiselect: {
control: [true, false],
name: "multiselect",
value: false
}
}}
/>
<Template let:args>
<Multiselect {...args} />
</Template>
<Story
name="Multiselect"
args={{
value: ["swim", "run"],
choices: [
["run", "run"],
["swim", "swim"],
["jump", "jump"]
],
label: "Multiselect Dropdown"
}}
/>
<Story
name="Multiselect Static"
args={{
value: ["swim", "run"],
choices: [
["run", "run"],
["swim", "swim"],
["jump", "jump"]
],
label: "Multiselect Dropdown",
disabled: true
}}
/>