() => {
const [open, setOpen] = createSignal(false);
return <Toast.Provider swipeDirection="right">
<Button onClick={() => setOpen(true)}>Show notification</Button>
<Toast.Root open={open()} onOpenChange={setOpen} style={{ display: "grid", "grid-template-columns": "1fr auto", "align-items": "center", gap: "var(--space-1) var(--space-3)", padding: "var(--space-3)", "border-radius": "var(--radius-4)", background: "var(--color-panel-solid)", "box-shadow": "var(--shadow-5)" }}>
<Toast.Title asChild>{target => target(Text, { size: "2", weight: "bold", children: "Example notification" })}</Toast.Title>
<Toast.Description asChild>{target => target(Text, { size: "2", color: "gray", style: { "grid-column": "1" }, children: "Dismiss it, swipe it right or let the timer close it." })}</Toast.Description>
<Toast.Close asChild>{target => target(Button, { size: "1", variant: "soft", style: { "grid-column": "2", "grid-row": "1 / span 2" }, children: "Dismiss" })}</Toast.Close>
</Toast.Root>
<Toast.Viewport style={{ position: "fixed", bottom: "0", right: "0", display: "flex", "flex-direction": "column", gap: "var(--space-3)", padding: "var(--space-5)", width: "360px", "max-width": "100vw", margin: "0", "list-style": "none", "z-index": "2147483647", outline: "none" }} />
</Toast.Provider>;
}