PHP Classes

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

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/components/inputs/Select2Input.stories.tsx   Download  
File: src/components/inputs/Select2Input.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: 641 bytes


Class file image Download
import { ComponentStory, ComponentMeta } from '@storybook/react'; import Select2Input from './Select2Input'; export default { title: 'Common/Input/Select2Input', component: Select2Input, } as ComponentMeta<typeof Select2Input>; const Template: ComponentStory<typeof Select2Input> = (args) => ( <Select2Input {...args} /> ); export const DefaultSelect2Input = Template.bind({}); DefaultSelect2Input.args = { options: [ { label: 'Apple', value: 'apple', }, { label: 'Banana', value: 'banana', }, ], placeholder: 'Select Fruits...', };