Skip to content

ShowToastOptions

type ShowToastOptions = {
description: ReactNode;
distanceToBottom?: ConditionalValue<ThemeSpace | (string & {})>;
duration?: number | null;
title?: string;
type?: AlertType;
};
Property Type Description
description ReactNode Main text content to display in Toast. Required.
distanceToBottom? ConditionalValue< | ThemeSpace | string & { }> Distance from the bottom of the screen to the toast. Defaults to 48px on larger screens and 8px on smaller screens.
duration? number | null Duration in milliseconds for which the toast is visible. Set to null for indefinite duration.
title? string Optional title for Toast.
type? AlertType Type of status the toast indicates. Defined by AlertType (Toast is visually presented using the Alert component).