@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
23 lines (22 loc) • 1.13 kB
TypeScript
import { type Props as FlexItemProps } from '../flex/Item';
import type { SkeletonShow } from '../Skeleton';
export type ItemSublineVariant = 'description';
/**
* Props for List.Cell.Title.Subline (ItemSubline).
* Secondary line under the title; pairs with List.Cell.Title.Overline (above the row).
*/
export type ItemSublineProps = FlexItemProps & {
/** Visual variant. Use `description` for smaller, muted text. */
variant?: ItemSublineVariant;
/** Font size of the subline content. Defaults to `small`. When `variant="description"`, defaults to `x-small`. */
fontSize?: 'basis' | 'small' | 'x-small';
/** Font weight of the subline 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 ItemSubline({ className, variant, fontSize, fontWeight, skeleton, children, ...rest }: ItemSublineProps): import("react/jsx-runtime").JSX.Element;
declare namespace ItemSubline {
var _supportsSpacingProps: boolean;
}
export default ItemSubline;