@grafana/ui
Version:
Grafana Components Library
33 lines (32 loc) • 1.03 kB
TypeScript
import { AriaRole, ReactNode } from 'react';
import * as React from 'react';
interface Props {
/**
* Provide a button to render below the message
*/
button?: ReactNode;
hideImage?: boolean;
/**
* Override the default image for the variant
*/
image?: ReactNode;
/**
* Message to display to the user
*/
message: string;
/**
* Which variant to use. Affects the default image shown.
*/
variant: 'call-to-action' | 'not-found' | 'completed';
/**
* Use to set `alert` when needed. See documentation for the use case
*/
role?: AriaRole;
}
/**
* The EmptyState component consists of a message and optionally an image, button, and additional information.
*
* https://developers.grafana.com/ui/latest/index.html?path=/docs/information-emptystate--docs
*/
export declare const EmptyState: ({ button, children, image, message, hideImage, variant, role, }: React.PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
export {};