@openshift-console/dynamic-plugin-sdk
Version:
Provides core APIs, types and utilities used by dynamic plugins at runtime.
23 lines (22 loc) • 879 B
TypeScript
import * as React from 'react';
import { StatusComponentProps } from '../../../extensions/console-types';
export type StatusProps = StatusComponentProps & {
status: string;
children?: React.ReactNode;
};
/**
* Component for displaying a status message
* @param {string} status - type of status to be displayed
* @param {string} [title] - (optional) status text
* @param {boolean} [iconOnly] - (optional) if true, only displays icon
* @param {boolean} [noTooltip] - (optional) if true, tooltip won't be displayed
* @param {string} [className] - (optional) additional class name for the component
* @param {string} [popoverTitle] - (optional) title for popover
* @param {ReactNode} [children] - (optional) children for the component
* @example
* ```tsx
* <Status status='Warning' />
* ```
*/
declare const Status: React.FC<StatusProps>;
export default Status;