@grafana/ui
Version:
Grafana Components Library
22 lines (21 loc) • 901 B
TypeScript
import { Side } from '@floating-ui/react';
import * as React from 'react';
import { IconName } from '../../types/icon';
export interface InlineToastProps {
children: React.ReactNode;
suffixIcon?: IconName;
referenceElement: HTMLElement | null;
placement: Side;
/**
* @deprecated
* Placement to use if there is not enough space to show the full toast with the original placement
* This is now done automatically.
*/
alternativePlacement?: Side;
}
/**
* Used to indicate temporal status near fields/components, such as a *Saved* indicator next to a field, or a little *Copied!* indicator above a button.
*
* https://developers.grafana.com/ui/latest/index.html?path=/docs/information-inlinetoast--docs
*/
export declare function InlineToast({ referenceElement, children, suffixIcon, placement }: InlineToastProps): import("react/jsx-runtime").JSX.Element;