@nextworks/blocks-sections 0.1.0-alpha.14 → 0.1.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -12
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,14 +8,22 @@ Examples include:
|
|
|
8
8
|
- FAQ, Contact, Newsletter
|
|
9
9
|
- Portfolio, Services, Team, Trust badges
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Recommended: install via the nextworks CLI
|
|
12
|
+
|
|
13
|
+
Most developers should install Blocks via the **nextworks** CLI (copy-in / shadcn-style) rather than consuming this package directly.
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx nextworks@latest add blocks --sections --templates
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- npm (CLI): https://www.npmjs.com/package/nextworks
|
|
20
|
+
|
|
21
|
+
## Direct installation (advanced)
|
|
22
|
+
|
|
23
|
+
If you want to consume the compiled sections as a package:
|
|
12
24
|
|
|
13
25
|
```bash
|
|
14
26
|
npm install @nextworks/blocks-sections @nextworks/blocks-core
|
|
15
|
-
# or
|
|
16
|
-
pnpm add @nextworks/blocks-sections @nextworks/blocks-core
|
|
17
|
-
# or
|
|
18
|
-
yarn add @nextworks/blocks-sections @nextworks/blocks-core
|
|
19
27
|
```
|
|
20
28
|
|
|
21
29
|
## Usage
|
|
@@ -35,10 +43,4 @@ export default function Page() {
|
|
|
35
43
|
}
|
|
36
44
|
```
|
|
37
45
|
|
|
38
|
-
These components assume you have
|
|
39
|
-
|
|
40
|
-
For a copy-based workflow (files under `components/` and `app/` in your own app), use the CLI:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npx nextworks add blocks
|
|
44
|
-
```
|
|
46
|
+
These components assume you have Tailwind + React + Next.js configured and that you wrap your app with the appropriate theme provider from `@nextworks/blocks-core`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextworks/blocks-sections",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist-types/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build": "npx tsc -p tsconfig.json && npx tsc -p tsconfig.json --emitDeclarationOnly --declaration --outDir dist-types"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@nextworks/blocks-core": "0.1.0-alpha.
|
|
24
|
+
"@nextworks/blocks-core": "0.1.0-alpha.16",
|
|
25
25
|
"lucide-react": "^0.542.0",
|
|
26
26
|
"motion": "^12.23.12"
|
|
27
27
|
},
|