moved back the components

This commit is contained in:
ari committed 2021-12-01 16:38:30 -05:00
1 parent 24afb602cb
commit 0764feb432
18 files changed
+786

No files matched your search

@@ -0,0 +1,29 @@
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { useState } from "react";
import { usePageTheme } from "styles/page";
import InputList from "./InputList";
export default {
title: 'Inputs/InputList',
component: InputList,
parameters: { actions: { argTypesRegex: '^on.*' } },
} as ComponentMeta<typeof InputList>;
const Template: ComponentStory<typeof InputList> = args => {
const { classes } = usePageTheme({});
const [value, setValue] = useState('')
return <div className={classes.page}>
<InputList {...args} current={value} onChange={setValue} />
</div>
}
export const SimpleText = Template.bind({})
SimpleText.args = {
label: "Entity ID",
options: [
'Bob',
'Martin',
"Toots"
]
}