editable title

This commit is contained in:
ari committed 2022-07-15 21:21:15 -04:00
1 parent 2ea96973ad
commit 1719148c58
6 files changed
+155 -5

No files matched your search

@@ -0,0 +1,30 @@
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { Page } from "components/Page";
import InputText from "./InputText";
import { InputTextView } from "./InputTextView";
export default {
title: "Inputs/InputTextView",
component: InputTextView,
parameters: { actions: { argTypesRegex: "^on.*" } },
args: {
value: "example",
},
} as ComponentMeta<typeof InputTextView>;
export const Basic: ComponentStory<typeof InputTextView> = (args) => (
<Page>
<div
style={{
display: "flex",
flexDirection: "column",
gap: "1em",
padding: "1em",
}}
>
<InputTextView {...args} />
<InputText {...args} />
</div>
</Page>
);