import { Meta , Story } from '@storybook/react' ; import { EyeOff , EyeOn } from '../icons' ; import { PasswordInput , IPasswordInputProps } from './PasswordInput' ; import React from 'react' ; export default { title : 'Components/forms/PasswordInput' , component : PasswordInput } as Meta ; const Template = ( args ) => ( < PasswordInput { ... args } / > ) ; export const PasswordInputView = Template . bind ( { } ) ; PasswordInputView . args = { showIcon : < EyeOn />, hideIcon : < EyeOff /> } ;