chore: add Selector stories

feat/type-attributes
Tomáš Mládek 2023-01-21 20:25:50 +01:00
parent 0509cc21f7
commit 195ce6e4c0
1 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,49 @@
import type { Meta, StoryObj } from "@storybook/svelte";
import Selector from "../components/utils/Selector.svelte";
const meta: Meta<Selector> = {
title: "Widgets/Selector",
component: Selector,
tags: ["autodocs"],
argTypes: {
onInput: {
action: "input",
},
},
};
export default meta;
type Story = StoryObj<Selector>;
export const Attribute: Story = {
args: {
type: "attribute",
},
};
export const AllValues: Story = {
args: {
type: "value",
},
};
export const Entities: Story = {
args: {
type: "value",
valueTypes: ["Address"],
},
};
export const Strings: Story = {
args: {
type: "value",
valueTypes: ["String"],
},
};
export const Numbers: Story = {
args: {
type: "value",
valueTypes: ["Number"],
},
};