import type { Meta, StoryObj } from "@storybook/react"; import { excludeControls } from "../../utils"; import { StoryContainer } from "../../utils/StoryContainer"; import type { PasswordFieldProps } from "./PasswordField"; import { PasswordField } from "./PasswordField"; type StoryType = StoryObj; const meta: Meta = { title: "Forms/PasswordField", component: PasswordField, argTypes: { type: { control: { type: "radio" }, options: ["text", "password"], }, ...excludeControls("description", "validationState"), }, args: { isReadOnly: false, }, decorators: [ Story => ( ), ], }; export const Default: StoryType = { render: (args: PasswordFieldProps) => , args: { label: "Password", placeholder: "", isDisabled: false, errorMessage: "", type: "password", isRequired: false, }, }; export default meta;