@nexa-ui-kit/core 1.0.0
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 +32 -0
- package/dist/index.cjs +8257 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2763 -0
- package/dist/index.d.ts +2763 -0
- package/dist/index.mjs +7875 -0
- package/dist/index.mjs.map +1 -0
- package/dist/utils/index.cjs +14 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +13 -0
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/index.mjs +12 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +113 -0
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @nexa-ui-kit/core
|
|
2
|
+
|
|
3
|
+
Unstyled, accessible React components for building design systems.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @nexa-ui-kit/core
|
|
9
|
+
# or
|
|
10
|
+
bun add @nexa-ui-kit/core
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { cn, Slot } from '@nexa-ui-kit/core'
|
|
17
|
+
|
|
18
|
+
// Use cn() for merging Tailwind classes
|
|
19
|
+
<div className={cn('px-4 py-2', props.className)} />
|
|
20
|
+
|
|
21
|
+
// Use Slot for asChild pattern
|
|
22
|
+
<Slot>{children}</Slot>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Peer Dependencies
|
|
26
|
+
|
|
27
|
+
- React 17, 18 or 19
|
|
28
|
+
- React DOM 17, 18 or 19
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
MIT
|