UNPKG

@porsche-design-system/components-react

Version:

Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.

24 lines (23 loc) 746 B
import type { FC } from 'react'; import type { JSX } from 'react'; import { type LabelTag } from '@porsche-design-system/components/dist/utils'; type LabelProps = { hasLabel: boolean; hasDescription: boolean; children?: JSX.Element; htmlFor?: string; tag?: LabelTag; isRequired?: boolean; host: HTMLElement; label: string; description?: string; isLoading?: boolean; isDisabled?: boolean; /** * If true, clicks on the label use `htmlFor` only and do not bubble to the host. * Clicks on the `label-after` slot are also stopped so they do not trigger host handlers (e.g. radio selection). */ stopClickPropagation?: boolean; }; export declare const Label: FC<LabelProps>; export {};