settings -> dark/light mode
This commit is contained in:
1 parent
416d88b965
commit
03a735b281
47 files changed
+867
-736
No files matched your search
@@ -1,29 +1,22 @@
|
||||
import { ComponentMeta, ComponentStory } from "@storybook/react";
|
||||
import { Page } from "components/Page";
|
||||
import InputAutoText from "./InputAutoText";
|
||||
|
||||
export default {
|
||||
title: "Inputs/InputAutoText",
|
||||
component: InputAutoText,
|
||||
parameters: { actions: { argTypesRegex: "^on.*" } },
|
||||
args: {
|
||||
label: "Something",
|
||||
value: "",
|
||||
options: ["test", "usa", "canada"],
|
||||
import { makeStory } from "devUtils";
|
||||
|
||||
const { make, componentMeta } = makeStory({
|
||||
Component: InputAutoText,
|
||||
meta: {
|
||||
title: "Inputs/InputAutoText",
|
||||
args: {
|
||||
label: "Something",
|
||||
value: "",
|
||||
options: ["test", "usa", "canada"],
|
||||
},
|
||||
},
|
||||
} as ComponentMeta<typeof InputAutoText>;
|
||||
});
|
||||
|
||||
const Template: ComponentStory<typeof InputAutoText> = (args) => {
|
||||
return (
|
||||
<Page>
|
||||
<InputAutoText {...args} />
|
||||
</Page>
|
||||
);
|
||||
};
|
||||
export default componentMeta;
|
||||
export const Example = make({});
|
||||
|
||||
export const Basic = Template.bind({});
|
||||
export const WithError = Template.bind({});
|
||||
WithError.args = {
|
||||
...WithError.args,
|
||||
export const WithError = make({
|
||||
error: "Oh no!",
|
||||
};
|
||||
});
|
||||
Reference in new issue
Block a user