UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

27 lines (26 loc) 1.1 kB
import { type Props 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`. */ fontSize?: 'small' | 'basis'; /** Font weight of the title content. Defaults to `regular`. */ fontWeight?: 'regular' | 'medium'; /** If `true`, applies skeleton loading state. Inherits from parent List context when not set. */ 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;