import * as React from 'react'; import * as LabelPrimitive from '@radix-ui/react-label'; /** * Accessible form field label. * * @description * Styled label with built-in support for error and disabled peer states. * Renders as a Radix UI label for full accessibility semantics. * Supports the standard size scale (`sm`, `md`, `lg`) for consistent form alignment. * * @ai-rules * 1. Always associate with the input using matching `htmlFor` and `id` props. * 2. Inside a `