2023-08-15 00:42:10 +00:00
|
|
|
import { Canvas, Meta, Story, ArgsTable } from "@storybook/addon-docs";
|
|
|
|
|
|
|
|
import { Examples, Example, Note, Title, CustomArgsTable } from "@calcom/storybook/components";
|
|
|
|
|
|
|
|
import TokenHandler from "./TokenHandler";
|
2023-07-01 18:40:19 +00:00
|
|
|
|
|
|
|
<Meta title="UI/TokenHandler" component={TokenHandler} />
|
2023-07-10 19:52:15 +00:00
|
|
|
|
2023-08-15 00:42:10 +00:00
|
|
|
<Title title="TokenHandler" subtitle="Version 0.1" />
|
2023-07-01 18:40:19 +00:00
|
|
|
|
|
|
|
## Structure
|
|
|
|
|
2023-08-15 00:42:10 +00:00
|
|
|
<TokenHandler
|
|
|
|
digits={[
|
2023-07-01 18:40:19 +00:00
|
|
|
{
|
|
|
|
value: "1",
|
|
|
|
onChange: (e) => {},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "2",
|
|
|
|
onChange: (e) => {},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "3",
|
|
|
|
onChange: (e) => {},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "4",
|
|
|
|
onChange: (e) => {},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "5",
|
|
|
|
onChange: (e) => {},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "6",
|
|
|
|
onChange: (e) => {},
|
|
|
|
},
|
2023-08-15 00:42:10 +00:00
|
|
|
]}
|
|
|
|
digitClassName="digit-input"
|
|
|
|
/>
|
2023-07-01 18:40:19 +00:00
|
|
|
|
2023-07-10 19:52:15 +00:00
|
|
|
#all the numbers should be visible while the first one is focused
|