UNPKG

@geneui/components

Version:

The Gene UI components library designed for BI tools

40 lines (39 loc) 1.34 kB
import { FC, HTMLAttributes, ReactNode } from 'react'; import './Empty.scss'; interface IEmptyProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> { /** * Available style varieties of Empty atom to display <br/> * Possible values: `with-circles | without-circles | greyscale | transparent` */ appearance?: 'with-circles' | 'without-circles' | 'greyscale' | 'transparent'; /** * Types of data Empty atom should represent <br/> * Possible values: `data | image | search | message` */ type?: 'data' | 'image' | 'search' | 'message'; /** * Empty atom size <br/> * Possible values: `big | medium | small` */ size?: 'big' | 'medium' | 'small'; /** * Will add a title to the Empty atom. Any valid React node <br/> * Possible values: `ReactNode | string` */ title?: ReactNode | string; /** * Will add a subtitle to the Empty atom. Any valid React node <br/> * Possible values: `ReactNode | string` */ subTitle?: ReactNode | string; /** * When set to "true" Empty atom will show a predefined image based on "appearance" and "type" props */ withImage?: boolean; /** * Additional className */ className?: string; } declare const Empty: FC<IEmptyProps>; export { IEmptyProps, Empty as default };