chore: add Selector stories
parent
0509cc21f7
commit
195ce6e4c0
|
@ -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"],
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue