import clsx from 'clsx' import type { ComponentProps, ElementType, ReactNode } from 'react' export interface FormControlProps extends ComponentProps<'div'> { title: string subtitle?: ReactNode htmlId?: string isRequired?: boolean labelAs?: ElementType } export const FormControl = (props: FormControlProps) => { const { title, subtitle, htmlId, isRequired, children, className, labelAs: Label = 'label', ...rest } = props return (
{children}
) }