17 lines
436 B
TypeScript
17 lines
436 B
TypeScript
import * as React from "react";
|
|
|
|
export interface ToastProps {
|
|
tone?: "info" | "ok" | "warn" | "error";
|
|
title?: React.ReactNode;
|
|
message?: React.ReactNode;
|
|
/** Show a dismiss button. */
|
|
onClose?: () => void;
|
|
style?: React.CSSProperties;
|
|
}
|
|
|
|
/**
|
|
* Toast / inline alert with a tone-colored accent edge — save confirmations,
|
|
* scan results, playout-build failures.
|
|
*/
|
|
export function Toast(props: ToastProps): JSX.Element;
|