settings -> dark/light mode

This commit is contained in:
ari committed 2022-08-30 21:50:43 -04:00
1 parent 416d88b965
commit 03a735b281
47 files changed
+867 -736

No files matched your search

@@ -4,22 +4,21 @@ import { useState } from "react";
import InputText from "./InputText";
export default {
title: 'Inputs/InputText',
component: InputText,
parameters: { actions: { argTypesRegex: '^on.*' } },
} as ComponentMeta<typeof InputText>;
import { makeStory } from "devUtils";
const { make, componentMeta } = makeStory({
Component: InputText,
meta: {
title: "Inputs/InputText",
},
BaseTemplate: (args) => {
const [value, setValue] = useState("");
return <InputText {...args} value={value} onChange={setValue} />;
},
});
const Template: ComponentStory<typeof InputText> = args => {
export default componentMeta;
const [value, setValue] = useState('')
return <Page>
<InputText {...args} value={value} onChange={setValue} />
</Page>
}
export const SimpleText = Template.bind({})
SimpleText.args = {
export const SimpleText = make({
label: "Entity ID",
}
});