import classnames from 'classnames'; import { Flex, Text } from 'morphe'; import styles from './HelperText.css'; type SizeType = 'sm' | 'md' | 'lg'; type Props = { id?: string; text: string | null | undefined; noPadding?: boolean; size?: SizeType; disabled?: boolean; }; export default function FormHelperText({ disabled, id, text, size, noPadding: noStartPadding, }: Props) { const isSM = size === 'sm'; const isMD = size === 'md'; const isLG = size === 'lg'; return ( // id is required for all helper texts accompanying an individual form element, not for groups of form elements such as RadioGroup.