1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- import { Story } from '@storybook/vue3'
- import { FormKit } from '@formkit/vue'
- import defaultArgTypes from '@stories/support/form/field/defaultArgTypes'
- import { FieldArgs } from '@stories/types/form'
- export default {
- title: 'Form/Field/Inputs/Time',
- component: FormKit,
- argTypes: {
- ...defaultArgTypes,
- min: {
- name: 'min',
- type: { name: 'number', required: false },
- desciption: '',
- table: {
- type: { summary: 'number' },
- },
- control: {
- type: 'number',
- },
- },
- max: {
- name: 'max',
- type: { name: 'number', required: false },
- desciption: '',
- table: {
- type: { summary: 'number' },
- },
- control: {
- type: 'number',
- },
- },
- step: {
- name: 'step',
- type: { name: 'number', required: false },
- desciption: '',
- table: {
- type: { summary: 'number' },
- defaultValue: {
- summary: 'auto',
- },
- },
- control: {
- type: 'number',
- },
- },
- },
- parameters: {
- docs: {
- description: {
- component: '[FormKit Built-In - Time](https://formkit.com/inputs/time)',
- },
- },
- },
- }
- const Template: Story<FieldArgs> = (args: FieldArgs) => ({
- components: { FormKit },
- setup() {
- return { args }
- },
- template: '<FormKit type="time" v-bind="args"/>',
- })
- export const Default = Template.bind({})
- Default.args = {
- label: 'Time',
- name: 'time',
- }
|