UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

20 lines (19 loc) 928 B
import { type Props as FlexItemProps } from '../flex/Item'; import type { SkeletonShow } from '../Skeleton'; /** * Props for List.Cell.Title.Overline (ItemOverline). * Secondary line above the main row; pairs with List.Cell.Title.Subline (below title). */ export type ItemOverlineProps = FlexItemProps & { /** Font size of the overline content. Defaults to `x-small`. */ fontSize?: 'basis' | 'small' | 'x-small'; /** Font weight of the overline content. Defaults to `medium`. */ fontWeight?: 'regular' | 'medium'; /** If `true`, applies skeleton loading state. Inherits from parent List context when not set. */ skeleton?: SkeletonShow; }; declare function ItemOverline({ className, fontSize, fontWeight, skeleton, children, ...rest }: ItemOverlineProps): import("react/jsx-runtime").JSX.Element; declare namespace ItemOverline { var _supportsSpacingProps: boolean; } export default ItemOverline;