| 1 |
/// <reference types="react" /> |
| 2 |
export declare enum EmptyStateVariant { |
| 3 |
'xs' = "xs", |
| 4 |
sm = "sm", |
| 5 |
lg = "lg", |
| 6 |
'xl' = "xl", |
| 7 |
full = "full" |
| 8 |
} |
| 9 |
export declare enum EmptyStateStatus { |
| 10 |
danger = "danger", |
| 11 |
warning = "warning", |
| 12 |
success = "success", |
| 13 |
info = "info", |
| 14 |
custom = "custom" |
| 15 |
} |
| 16 |
export interface EmptyStateProps extends React.HTMLProps<HTMLDivElement> { |
| 17 |
/** Additional classes added to the empty state */ |
| 18 |
className?: string; |
| 19 |
/** Content rendered inside the empty state */ |
| 20 |
children?: React.ReactNode; |
| 21 |
/** Modifies empty state max-width and sizes of icon, title and body */ |
| 22 |
variant?: 'xs' | 'sm' | 'lg' | 'xl' | 'full'; |
| 23 |
/** Cause component to consume the available height of its container */ |
| 24 |
isFullHeight?: boolean; |
| 25 |
/** Status of the empty state, will set a default status icon and color. Icon can be overwritten using the icon prop */ |
| 26 |
status?: 'danger' | 'warning' | 'success' | 'info' | 'custom'; |
| 27 |
/** Additional class names to apply to the empty state header */ |
| 28 |
headerClassName?: string; |
| 29 |
/** Additional classes added to the title inside empty state header */ |
| 30 |
titleClassName?: string; |
| 31 |
/** Text of the title inside empty state header, will be wrapped in headingLevel */ |
| 32 |
titleText?: React.ReactNode; |
| 33 |
/** Empty state icon element to be rendered. Can also be a spinner component */ |
| 34 |
icon?: React.ComponentType<any>; |
| 35 |
/** The heading level to use, default is h1 */ |
| 36 |
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; |
| 37 |
} |
| 38 |
export declare const EmptyState: React.FunctionComponent<EmptyStateProps>; |
| 39 |
//# sourceMappingURL=EmptyState.d.ts.map |