diff --git a/protocol-designer/src/atoms/TextAreaField/index.tsx b/protocol-designer/src/atoms/TextAreaField/index.tsx new file mode 100644 index 00000000000..03f449f0b9a --- /dev/null +++ b/protocol-designer/src/atoms/TextAreaField/index.tsx @@ -0,0 +1,334 @@ +import { forwardRef } from 'react' +import styled, { css } from 'styled-components' +import { + ALIGN_CENTER, + BORDERS, + COLORS, + DIRECTION_COLUMN, + DIRECTION_ROW, + Flex, + Icon, + RESPONSIVENESS, + SPACING, + StyledText, + TEXT_ALIGN_RIGHT, + Tooltip, + TYPOGRAPHY, + useHoverTooltip, +} from '@opentrons/components' + +import type { + ChangeEventHandler, + FocusEvent, + MouseEvent, + MutableRefObject, + ReactNode, +} from 'react' +import type { IconName } from '@opentrons/components' + +const COLOR_WARNING_DARK = '#9e5e00' // ToDo (kk:08/13/2024) replace this with COLORS + +export interface TextAreaFieldProps { + /** field is disabled if value is true */ + disabled?: boolean + /** change handler */ + onChange?: ChangeEventHandler + /** name of field in form */ + name?: string + /** optional ID of