beta-parity-react
Version:
Beta Parity React Components
46 lines • 1.24 kB
TypeScript
import React from 'react';
import './variables.css';
import './index.css';
/**
* Props for the ToastContainer component.
*
* Extends properties from the `div` element.
*/
export interface ToastContainerProps {
/**
* The maximum number of toasts that can be displayed simultaneously.
*
* If not specified, the default limit is `1`.
*
* @default 1
* @memberof ToastContainerProps
*/
limit?: number;
/**
* Whether to stack the toasts on top of each other.
*
* If set to true, toasts will be stacked vertically.
*
* @default true
* @memberof ToastContainerProps
*/
stacked?: boolean;
/**
* Whether to sort toasts based on their importance.
*
* If true, more important toasts will be displayed first.
*
* @default true
* @memberof ToastContainerProps
*/
sortImportance?: boolean;
}
/**
* **Parity Toast Container**.
*
* A container that listens for toast events and displays toast notifications dynamically.
*
* @see {@link https://beta-parity-react.vercel.app/toast Parity Toast Container}
*/
export declare const ToastContainer: React.FC<ToastContainerProps>;
//# sourceMappingURL=ToastContainer.d.ts.map