PHP Classes

File: src/components/date-picker/DatePicker.stories.tsx

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


Class file image Download
import { ComponentStory, ComponentMeta } from '@storybook/react'; import DatePicker from './DatePicker'; export default { title: 'Common/DatePicker', component: DatePicker, } as ComponentMeta<typeof DatePicker>; const Template: ComponentStory<typeof DatePicker> = (args) => ( <DatePicker {...args} /> ); export const DefaultDatePicker = Template.bind({}); DefaultDatePicker.args = { type: 'date-picker', }; export const DateRangePicker = Template.bind({}); DateRangePicker.args = { type: 'date-range-picker', };