reablocks
Version:
Component library for React
23 lines (22 loc) • 536 B
TypeScript
import { FC, ReactNode } from 'react';
import { CalloutTheme } from './CalloutTheme';
export interface CalloutProps {
/**
* The text of the callout.
*/
text: string | ReactNode;
/**
* The icon of the callout.
*/
icon?: ReactNode;
/**
* The variant of the callout.
* @default 'default'
*/
variant?: 'default' | 'success' | 'error' | 'warning' | 'info';
/**
* The theme of the callout.
*/
theme?: CalloutTheme;
}
export declare const Callout: FC<CalloutProps>;