Skip to content

Commit f5e4729

Browse files
committed
changes
1 parent 673be9f commit f5e4729

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/recipes/ui/add-shadcn.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# How do I add shadcn to a SAFE project?
22

3+
> Note: The SAFE.Template has recently been updated to move `package.json` and `package-lock.json`. If you are using a version of the template prior to this change, you will need to move those files into the `src/Client` directory. For reference, here is the [PR](https://github.com/SAFE-Stack/SAFE-template/pull/658) detailing this change.
4+
35
Integrating Feliz.Shadcn into your SAFE Stack application is straightforward. The following example demonstrates how to integrate Shadcn copmonents within an existing SAFE app.
46

57
We will be using the [Feliz.Shadcn](https://github.com/reaptor/feliz.shadcn) wrapper written by [reaptor](https://github.com/reaptor)
@@ -47,6 +49,7 @@ export default defineConfig({
4749

4850
> Note: ensure your node version is > 20.5.0
4951
52+
Inside the `/src/Client` directory run:
5053
```
5154
npx shadcn@latest init
5255
```
@@ -56,7 +59,6 @@ You will be asked a few questions to configure components.json
5659
#### 5. Add Feliz.Shadcn
5760

5861
Inside the `/src/Client` directory run:
59-
6062
```
6163
dotnet add package Feliz.Shadcn
6264
```
@@ -66,6 +68,7 @@ dotnet add package Feliz.Shadcn
6668
Specify first which components you want to use.
6769
You can find the list of available components [here](https://reaptor.github.io/Feliz.Shadcn/):
6870

71+
Inside the `/src/Client` directory run:
6972
```
7073
npx shadcn@latest add button
7174
```

0 commit comments

Comments
 (0)