LiftDesign System
Beta
한국어 Get started
  1. Components
  2. Product
  3. Toast

Components / Product

Toast — Implementation

Brief result notification

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 c54e7d23adba…
Source language
KO · not translated

Supported environment

The Lift 1.2.3 reference implementation is a React 18 function component with inline styles referencing Product tokens (hsl(var(--*))), so styles.product.css must be loaded. The mapping to an npm package could not be verified in this repository.

API

Copied from ToastProps in components/_types.d.ts.

proptypedefaultdoc
tone"success" | "warning" | "info" | "error"info
titleReact.ReactNode—
childrenReact.ReactNode—
actionReact.ReactNode—
onClose() => void—
durationnumber5000
styleReact.CSSProperties—

Code

One import line plus the example code from the usage note.

jsx · import
import { Toast } from "./components/overlays/Toast.jsx";
jsx · Toast.prompt.md
<ToastStack>
  {list.map(t => <Toast key={t.id} tone={t.tone} title={t.title} onClose={() => dismiss(t.id)}>{t.body}</Toast>)}
</ToastStack>

Token bindings

Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.

--font-sans, --foreground, --motion-toast-in, --muted-foreground, --popover, --popover-border, --shadow-lg, --state-, --z-toast

Source