Components
ToastPromise
ToastPromise is a token-driven Sigil component in the feedback and status group.
Import
import { ToastPromise } from "@sigil-ui/components";Preview
Usage
<CodeBlock code={`ToastPromise(Promise.resolve(), {
loading: "Saving...",
success: "Saved",
error: "Failed",
});`} language="tsx" />CLI
npx @sigil-ui/cli add toast-promiseToken Integration
ToastPromise follows the Sigil component rules: styles resolve from var(--s-*), class names are mergeable through className, and the component is exported from @sigil-ui/components.