@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
28 lines (27 loc) • 959 B
TypeScript
import { ComponentProps, ReactNode } from 'react';
export interface EmptyStateProps extends Omit<ComponentProps<"div">, "children" | "action"> {
/**
* Provide `children` only if you wish to customize empty message.
* If children is not provided, default message is constructed.
* */
children?: ReactNode;
/**
* Name of the presented missing data entity
* Provide pluralized and lowercased
* @example "users"
* */
entityName?: ReactNode;
/**
* Provide text filter that data is filtered by
* */
textFilter?: string;
/**
* Provide whether data is filtered by other filters, excluding global text filter
* */
hasFilters?: boolean;
/**
* Slot to render action buttons
* */
actions?: ReactNode;
}
export declare const EmptyState: ({ entityName, textFilter, hasFilters, className, children, actions, ...props }: EmptyStateProps) => import("react").JSX.Element;