@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
24 lines (23 loc) • 949 B
TypeScript
import type { FlexItemAllProps as FlexItemProps } from '../flex/Item';
import type { SkeletonShow } from '../Skeleton';
export type ItemCenterProps = FlexItemProps & {
/**
* Font size of the center content. Defaults to `basis`. Use `small` for smaller text.
* Default: `"basis"`
*/
fontSize?: 'small' | 'basis';
/**
* Font weight of the center 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 ItemCenter({ className, fontSize, fontWeight, skeleton, children, ...rest }: ItemCenterProps): import("react/jsx-runtime").JSX.Element;
declare namespace ItemCenter {
var _supportsSpacingProps: boolean;
}
export default ItemCenter;