import TrailingInput from '@/components/TrailingInput'; import { Meta, StoryObj } from '@storybook/react'; import { HiEye, HiLockClosed } from 'react-icons/hi'; const meta: Meta = { title: 'Trailing Input', component: TrailingInput, tags: ['autodocs'], }; export default meta; type Story = StoryObj; export const Default: Story = { args: { btnIcon: HiEye, label: 'Password', input: { placeholder: '••••••••', id: 'login-password', name: 'password', type: 'password', autoComplete: 'off', required: true, }, helpText: '', }, render: (args) => , }; export const WithIcon: Story = { args: { icon: HiLockClosed, ...Default.args, }, render: (args) => , }; export const TrailingInputText: Story = { args: { btnLabel: 'See', ...WithIcon.args, }, render: (args) => , }; export const WithError: Story = { args: { ...WithIcon.args, errors: ['Password must be at least 8 characters.'], }, render: (args) => , };