PHP Classes

File: src/components/inputs/Input.stories.tsx

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/components/inputs/Input.stories.tsx   Download  
File: src/components/inputs/Input.stories.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 470 bytes
 

Contents

Class file image Download
import { ComponentStory, ComponentMeta } from '@storybook/react'; import Input from './Input'; export default { title: 'Common/Input/Input', component: Input, } as ComponentMeta<typeof Input>; const Template: ComponentStory<typeof Input> = (args) => <Input {...args} />; export const DefaultInput = Template.bind({}); DefaultInput.args = { type: 'text', }; export const TextareaInput = Template.bind({}); TextareaInput.args = { type: 'textarea', };