Skip to content

Commit 856e3d8

Browse files
committed
2 parents 54b920c + 97b528a commit 856e3d8

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
import { toast } from "solid-sonner"
22

33
import { Button } from "~/registry/ui/button"
4+
import { Toaster } from "~/registry/ui/sonner"
45

56
export default function SonnerDemo() {
67
return (
7-
<Button
8-
variant="outline"
9-
onClick={() =>
10-
toast("Event has been created", {
11-
description: "Sunday, December 03, 2023 at 9:00 AM",
12-
action: {
13-
label: "Undo",
14-
onClick: () => console.log("Undo")
15-
}
16-
})
17-
}
18-
>
19-
Show Toast
20-
</Button>
8+
<>
9+
<Button
10+
variant="outline"
11+
onClick={() =>
12+
toast("Event has been created", {
13+
description: "Sunday, December 03, 2023 at 9:00 AM",
14+
action: {
15+
label: "Undo",
16+
onClick: () => console.log("Undo")
17+
}
18+
})
19+
}
20+
>
21+
Show Toast
22+
</Button>
23+
<Toaster />
24+
</>
2125
)
2226
}

apps/docs/src/routes/(app)/docs/installation/vite.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ When asked make sure to use Solid:
2323
Install `tailwindcss` and its peer dependencies, then generate your `tailwind.config.js` and `postcss.config.js` files:
2424

2525
```bash
26-
npm install -D tailwindcss postcss autoprefixer
26+
npm install -D tailwindcss@3 postcss autoprefixer
2727
npx tailwindcss init -p
2828
```
2929

0 commit comments

Comments
 (0)