UNPKG

@kobalte/core

Version:

Unstyled components and primitives for building accessible web apps and design systems with SolidJS.

22 lines (19 loc) 1.07 kB
import * as solid_js from 'solid-js'; import { ValidComponent } from 'solid-js'; import { ElementOf, PolymorphicProps } from './polymorphic/index.js'; import { e as FormControlDataSet } from './form-control-description-b958eb98.js'; interface FormControlLabelOptions { } interface FormControlLabelCommonProps<T extends HTMLElement = HTMLElement> { id: string; ref: T | ((el: T) => void); } interface FormControlLabelRenderProps extends FormControlLabelCommonProps, FormControlDataSet { for: string | undefined; } type FormControlLabelProps<T extends ValidComponent | HTMLElement = HTMLElement> = FormControlLabelOptions & Partial<FormControlLabelCommonProps<ElementOf<T>>>; /** * The label that gives the user information on the form control. */ declare function FormControlLabel<T extends ValidComponent = "label">(props: PolymorphicProps<T, FormControlLabelProps<T>>): solid_js.JSX.Element; export { FormControlLabel as F, FormControlLabelCommonProps as a, FormControlLabelOptions as b, FormControlLabelProps as c, FormControlLabelRenderProps as d };