import { FC } from 'react'; import styles from './label.module.scss'; export type LabelProps = { /** * Add classnames to the label. */ className?: string; /** * The field id. */ htmlFor?: string; /** * Is the field required? Default: false. */ required?: boolean; /** * The label size. Default: small. */ size?: 'medium' | 'small'; }; /** * Label Component * * Render a HTML label element. */ const Label: FC = ({ children, className = '', required = false, size = 'small', ...props }) => { const sizeClass = styles[`label--${size}`]; return ( ); }; export default Label;