import { cloneElement, isValidElement, useId, type ReactNode } from 'react'; import { cn } from '@/lib/utils'; import { Label } from '@/components/ui'; type ControlProps = { id?: string; 'aria-label'?: string; 'aria-describedby'?: string }; /** * A labelled control. * * The id is cloned onto the *control*, never onto a wrapper: a `