import React from "react"; import TextArea from "../../app/components/controls/TextArea"; import { INPUT_STATE_OPTIONS, LABEL_VARIANT_OPTIONS, SMALL_MEDIUM_LARGE_OPTIONS, TEXT_AREA_APPEARANCE_OPTIONS, } from "../../lib/propNormalization"; export default { title: "Components/Controls/TextArea", component: TextArea, parameters: { layout: "centered", }, argTypes: { size: { control: { type: "select" }, options: [...SMALL_MEDIUM_LARGE_OPTIONS], }, labelVariant: { control: { type: "select" }, options: [...LABEL_VARIANT_OPTIONS], }, appearance: { control: { type: "select" }, options: [...TEXT_AREA_APPEARANCE_OPTIONS], }, state: { control: { type: "select" }, options: [...INPUT_STATE_OPTIONS], }, disabled: { control: { type: "boolean" }, }, error: { control: { type: "boolean" }, }, }, }; const Template = (args) =>