UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

28 lines (27 loc) 1.04 kB
import type { FlexItemAllProps as FlexItemProps } from '../flex/Item'; import type { SkeletonShow } from '../Skeleton'; /** * Props for List.Cell.Start (ItemStart). * Extends Flex.Item; supports spacing props. */ export type ItemStartProps = FlexItemProps & { /** * Font size of the start 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 ItemStart({ className, fontSize, fontWeight, skeleton, children, ...rest }: ItemStartProps): import("react/jsx-runtime").JSX.Element; declare namespace ItemStart { var _supportsSpacingProps: boolean; } export default ItemStart;