flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
21 lines (20 loc) • 555 B
TypeScript
import type { ComponentProps, FC } from "react";
import type { DeepPartial } from "../../types";
import type { Duration } from "./ToastContext";
export interface FlowbiteToastTheme {
root: {
base: string;
closed: string;
};
toggle: {
base: string;
icon: string;
};
}
export interface ToastProps extends ComponentProps<"div"> {
duration?: Duration;
theme?: DeepPartial<FlowbiteToastTheme>;
}
export declare const Toast: FC<ToastProps> & {
Toggle: FC<import("./ToastToggle").ToastToggleProps>;
};