import { InformationIcon } from '@blocksuite/icons/rc'; import type { Meta, StoryFn } from '@storybook/react'; import type { InputProps } from './index'; import { Input } from './index'; export default { title: 'UI/Input', component: Input, } satisfies Meta; const Template: StoryFn = args => (
); export const Default: StoryFn = Template.bind(undefined); Default.args = { defaultValue: 'This is a default input', }; export const WithPrefix: StoryFn = Template.bind(undefined); WithPrefix.args = { defaultValue: 'This is a input with prefix', preFix: , }; export const Large: StoryFn = Template.bind(undefined); Large.args = { placeholder: 'This is a large input', size: 'large', }; export const ExtraLarge: StoryFn = Template.bind(undefined); ExtraLarge.args = { placeholder: 'This is a extraLarge input', size: 'extraLarge', }; export const CustomWidth: StoryFn = Template.bind(undefined); CustomWidth.args = { width: 300, placeholder: 'This is a custom width input, default is 100%', }; export const ErrorStatus: StoryFn = Template.bind(undefined); ErrorStatus.args = { status: 'error', placeholder: 'This is a error status input', }; export const WarningStatus: StoryFn = Template.bind(undefined); WarningStatus.args = { status: 'warning', placeholder: 'This is a warning status input', }; export const Disabled: StoryFn = Template.bind(undefined); Disabled.args = { disabled: true, placeholder: 'This is a disabled input', };