tag editor

This commit is contained in:
ari committed 2022-07-27 21:09:30 -04:00
1 parent 5d9c04072b
commit 104882cb25
10 files changed
+186 -19

No files matched your search

@@ -0,0 +1,29 @@
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"],
},
} as ComponentMeta<typeof InputAutoText>;
const Template: ComponentStory<typeof InputAutoText> = (args) => {
return (
<Page>
<InputAutoText {...args} />
</Page>
);
};
export const Basic = Template.bind({});
export const WithError = Template.bind({});
WithError.args = {
...WithError.args,
error: "Oh no!",
};