@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
16 lines (15 loc) • 526 B
TypeScript
import { ReactNode } from 'react';
import { BadgeProps } from '../Badge';
export interface ErrorStateProps extends BadgeProps {
/**
* Name of the presented missing data entity.
* Provide pluralized and lowercased.
* @example "users"
*/
entityName?: ReactNode;
}
/**
* Component for surfacing operational errors.
* Most often used for data queries and form mutation errors.
*/
export declare const ErrorState: ({ children, entityName, ...props }: ErrorStateProps) => import("react").JSX.Element;