@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
20 lines (19 loc) • 828 B
TypeScript
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?: keyof JSX.IntrinsicElements;
srOnly?: boolean;
fontSize?: TypographySize;
fontWeight?: TypographyWeight;
variant?: 'plain' | 'subtle' | /** @deprecated Use "plain" instead */ 'default';
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;