You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/web/content/docs/customize/custom-components.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ The Flowbite React theming system can be used to create your own themeable compo
10
10
The easiest way to create a new custom component is to use the Flowbite React CLI:
11
11
12
12
```bash
13
-
npx flowbite-react create MyComponent
13
+
npx flowbite-react@latest create my-component
14
14
```
15
15
16
16
This will generate a new component with the proper structure and theming setup. The CLI uses the configuration from `.flowbite-react/config.json` to determine:
17
17
18
18
1. Where to create the component (`path`)
19
-
2. Whether to include the "use client" directive (`rsc`)
19
+
2. Whether to include the `"use client"` directive (`rsc`)
20
20
3. Whether to use TypeScript or JavaScript (`tsx`)
21
21
22
22
You can customize these options in your config file `.flowbite-react/config.json`:
0 commit comments