UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

35 lines (34 loc) 1.3 kB
import type { FlexItemAllProps as FlexItemProps } from '../flex/Item'; import ItemOverline from './ItemOverline'; import ItemSubline from './ItemSubline'; import type { SkeletonShow } from '../Skeleton'; /** * Props for List.Cell.Title (ItemTitle). * Extends Flex.Item; supports spacing props. */ export type ItemTitleProps = FlexItemProps & { /** * Font size of the title content. Defaults to `basis`. Use `small` for smaller text. * Default: `"basis"` */ fontSize?: 'small' | 'basis'; /** * Font weight of the start content. Defaults to `regular`. * Default: `"regular"` */ 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 ItemTitleBase({ className, fontSize, fontWeight, skeleton, children, ...rest }: ItemTitleProps): import("react/jsx-runtime").JSX.Element; declare namespace ItemTitleBase { var _supportsSpacingProps: boolean; } type ItemTitleComponent = typeof ItemTitleBase & { Overline: typeof ItemOverline; Subline: typeof ItemSubline; }; declare const ItemTitle: ItemTitleComponent; export default ItemTitle;