@ntragas/pouncejstest
Version:
A collection of UI components from Panther labs
22 lines (21 loc) • 980 B
TypeScript
import React from 'react';
export interface ControlledAlertProps {
/** The main text of the the alert */
title?: string;
/** Whether the alert is visible */
open: boolean;
/** When the alert is discardable, this is the callback that gets fired on discard */
onClose: () => void;
/** The style of the ControlledAlert */
variant?: 'success' | 'info' | 'warning' | 'error' | 'default';
/** A secondary text to further explain the title */
description?: React.ReactNode;
/** A react component containing available actions for the ControlledAlert */
actions?: React.ReactNode | ((helpers: {
close: () => void;
}) => React.ReactNode);
/** Whether the ControlledAlert should have a close button in order to remove itself */
discardable?: boolean;
}
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ControlledAlertProps & React.RefAttributes<HTMLDivElement>>>;
export default _default;