import { useState } from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { TextInput } from './TextInput'; import { Icon } from '../../general/Icon/Icon'; import { Button } from '../../general/Button/Button'; export default { component: TextInput, } as ComponentMeta; export const Default: ComponentStory = () => ( ); export const FullProps: ComponentStory = () => ( ) => { console.log(evt.target.value); }} onFocus={() => console.log('Focused')} onBlur={() => console.log('Blurred')} /> ); export const Password: ComponentStory = () => { const [showPassword, setShowPassword] = useState(false); return ( setShowPassword((prev) => !prev)}> } /> ); };