UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

20 lines (19 loc) 767 B
import React from 'react'; import type { SpacingProps } from '../../shared/types'; import type { TypographySize, TypographyWeight } from '../../elements/typography/Typography'; import type { SkeletonShow } from '../skeleton/Skeleton'; type LabelOwnProps = { element?: React.ElementType; srOnly?: boolean; fontSize?: TypographySize; fontWeight?: TypographyWeight; variant?: 'plain' | 'subtle'; skeleton?: SkeletonShow; }; export type LabelProps = Omit<React.HTMLProps<HTMLElement>, keyof LabelOwnProps | 'ref'> & LabelOwnProps & SpacingProps; declare function Label(props: LabelProps): import("react/jsx-runtime").JSX.Element; declare namespace Label { var _supportsSpacingProps: boolean; var _statRole: string; } export default Label;