@stratakit/bricks
Version:
Small, modular components for StrataKit
19 lines (18 loc) • 626 B
TypeScript
import type { BaseProps } from "@stratakit/foundations/secret-internals";
interface LabelProps extends BaseProps<"label"> {
}
/**
* A styled wrapper over the HTML `<label>` element, used for labelling form
* controls.
*
* Example usage:
* ```tsx
* <Label htmlFor="my-input">Label</Label>
* <TextBox.Input id="my-input" />
* ```
*
* See `Field.Label` for convenient usage with form controls (e.g. automatic
* association with adjacent form control).
*/
declare const Label: import("react").ForwardRefExoticComponent<LabelProps & import("react").RefAttributes<HTMLElement | HTMLLabelElement>>;
export default Label;