UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

28 lines (27 loc) 1.1 kB
import type { FlexItemAllProps 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`. * Default: `"x-small"` */ fontSize?: 'basis' | 'small' | 'x-small'; /** * Font weight of the overline content. Defaults to `medium`. * Default: `"medium"` */ fontWeight?: 'regular' | 'medium'; /** * When `true`, applies skeleton font styling to all child items inside the scroll view. Propagated via context so nested `List.Container` and items inherit it. */ 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;