Files
Shortumation/webapp/src/components/Inputs/AutoComplete/InputTimeEntity.stories.tsx
T
2022-08-30 21:50:43 -04:00

34 lines
655 B
TypeScript

import { useState } from "react";
import { InputTimeEntity } from "./InputTimeEntity";
import { makeStory } from "devUtils";
const { make, componentMeta } = makeStory({
Component: InputTimeEntity,
meta: {
title: "Inputs/InputTimeEntity",
},
BaseTemplate: (args) => {
const [value, setValue] = useState("");
return (
<div
style={{
padding: "1em",
}}
>
<InputTimeEntity
{...args}
value={value}
onChange={(t) => {
setValue(t);
args.onChange(t);
}}
/>
</div>
);
},
});
export const SimpleText = make({});