import React, { JSX } from "react"; import { FlexColumnProps } from "../FlexColumn"; import { LabelProps } from "../Label"; import { TextBodyProps } from "../Text"; export type FormControlProps = FlexColumnProps & Pick & { /** Input for this control. */ children: JSX.Element; /** * Labels should always be specified for inputs for a11y - they are read by * screen readers when navigating to and focusing the input. * If the label should be visually hidden, set `hideLabel` to true. * - When set to `string` will be wrapped with `