Components / Toast

Feedback

Toast

beta

Brief, non-blocking notifications with actions and promise states.

since v3.63.2 kB gzip

Preview

Installation

npx @strata/cli add toast

Usage

import { toast } from "@/components/strata";

toast.success("Theme published", {
  description: "aurora is now the default for 3 apps.",
});

Props

PropTypeDefault
title

Main message.

string—
description

Secondary line.

string—
duration

Auto-dismiss delay in ms.

number4000
action

Optional inline action.

{ label: string; onClick: () => void }—

Accessibility

Was this page helpful?

Documented since v3.6 · components/toast.mdx