mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
1419538ea7
* 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>
46 lines
866 B
Svelte
46 lines
866 B
Svelte
<script>
|
|
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
|
|
import Dropdown from "./shared/Dropdown.svelte";
|
|
</script>
|
|
|
|
<Meta
|
|
title="Components/Dropdown"
|
|
component={Dropdown}
|
|
argTypes={{
|
|
multiselect: {
|
|
control: [true, false],
|
|
description: "Whether to autoplay the video on load",
|
|
name: "multiselect",
|
|
value: false
|
|
}
|
|
}}
|
|
/>
|
|
|
|
<Template let:args>
|
|
<Dropdown {...args} />
|
|
</Template>
|
|
|
|
<Story
|
|
name="Default"
|
|
args={{ value: "swim", choices: ["run", "swim", "jump"], label: "Dropdown" }}
|
|
/>
|
|
<Story
|
|
name="Multiselect"
|
|
args={{
|
|
value: ["swim", "run"],
|
|
choices: ["run", "swim", "jump"],
|
|
label: "Multiselect Dropdown",
|
|
multiselect: true
|
|
}}
|
|
/>
|
|
<Story
|
|
name="Multiselect Static"
|
|
args={{
|
|
value: ["swim", "run"],
|
|
choices: ["run", "swim", "jump"],
|
|
label: "Multiselect Dropdown",
|
|
multiselect: true,
|
|
disabled: true
|
|
}}
|
|
/>
|