@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
33 lines • 1.09 kB
TypeScript
import * as React from "react";
/**
* Represents the configurable props for the Label component.
*
* @remarks
* Extends native `<label>` attributes so the component can participate in accessible
* form relationships while exposing a documented class override.
*/
export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
/**
* Additional CSS classes merged with the default label typography.
*/
className?: string;
}
/**
* An accessible text label for form controls and field groups.
*
* @remarks
* **Rendering Context**: Client Component.
*
* Renders a styled `<label>` element that pairs naturally with form inputs through
* `htmlFor`. Use it to provide clear, clickable context for interactive controls.
*
* @example
* ```tsx
* <Label htmlFor="email">Email address</Label>
* ```
*
* @see {@link https://base-ui.com/react/components/label Base UI Label docs}
*/
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
export { Label };
//# sourceMappingURL=label.d.ts.map