@baseplate-dev/ui-components
Version:
Shared UI component library
30 lines • 1.06 kB
TypeScript
import type React from 'react';
import type { IconElement } from '#src/types/react.js';
interface EmptyDisplayProps {
/**
* Optional class name to be applied to the empty state div
*/
className?: string;
/**
* Optional icon to be displayed (if not passed, a generic empty state icon will be displayed)
*/
icon?: IconElement;
/**
* Header to be displayed (if not passed, a generic empty header will be displayed)
*/
header?: React.ReactNode;
/**
* Subtitle to be displayed (if a string is passed, it will be displayed as-is, otherwise a generic empty message will be displayed)
*/
subtitle?: React.ReactNode;
/**
* Optional actions to be displayed below the empty message
*/
actions?: React.ReactNode;
}
/**
* Displays a generic empty state with a header and subtitle.
*/
declare function EmptyDisplay({ className, icon: Icon, header, subtitle, actions, }: EmptyDisplayProps): React.ReactElement;
export { EmptyDisplay };
//# sourceMappingURL=empty-display.d.ts.map