Skip to content

Commit

Permalink
improve input template
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Dec 18, 2023
1 parent 4575260 commit 660d2e7
Showing 1 changed file with 80 additions and 2 deletions.
82 changes: 80 additions & 2 deletions templates/Input/TemplateName.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Meta, StoryObj} from '@storybook/react';
// import {fn} from '@storybook/test';
import {fn} from '@storybook/test';

import {TemplateName} from './TemplateName.tsx';

Expand All @@ -10,13 +10,91 @@ const meta = {
// More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
layout: 'centered',
},
args: {},
args: {
onClick: fn(),
onBlur: fn(),
onFocus: fn(),
onKeyDown: fn(),
onKeyUp: fn(),
},
argTypes: {
value: {control: 'text'},
defaultValue: {control: 'text'},
onClick: {
table: {
disable: true,
},
},
onBlur: {
table: {
disable: true,
},
},
onFocus: {
table: {
disable: true,
},
},
onKeyDown: {
table: {
disable: true,
},
},
onKeyUp: {
table: {
disable: true,
},
},
id: {
table: {
disable: true,
},
},
role: {
table: {
disable: true,
},
},
dataAttributes: {
table: {
disable: true,
},
},
className: {
table: {
disable: true,
},
},
name: {
table: {
disable: true,
},
},
autoFocus: {
table: {
disable: true,
},
},
form: {
table: {
disable: true,
},
},
onChange: {
table: {
disable: true,
},
},
validatorFn: {
table: {
disable: true,
},
},
prefix: {
table: {
disable: true,
},
},
},
} as Meta<typeof TemplateName>;

Expand Down

0 comments on commit 660d2e7

Please sign in to comment.