@mantine-vue/utils 1.1.2 → 1.1.3
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 +29 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @mantine-vue/utils
|
|
2
|
+
|
|
3
|
+
Framework-independent utilities ported from the Mantine foundation (`rem`, `em`, `keys`, `getDefaultZIndex`, style-value helpers, and more).
|
|
4
|
+
|
|
5
|
+
> Mantine Vue is an independent community port of [Mantine](https://mantine.dev/) for Vue 3. It is not affiliated with or endorsed by the Mantine team.
|
|
6
|
+
|
|
7
|
+
This package has no Vue-specific code — it is the shared, low-level foundation consumed by `@mantine-vue/core` and other `@mantine-vue/*` packages. Most consumers won't need to install or import it directly; it's documented here for completeness and for anyone building on top of the Mantine Vue foundation.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
yarn add @mantine-vue/utils
|
|
13
|
+
|
|
14
|
+
# or with npm
|
|
15
|
+
npm i @mantine-vue/utils
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { rem, getDefaultZIndex } from '@mantine-vue/utils'
|
|
22
|
+
|
|
23
|
+
rem(16) // '1rem'
|
|
24
|
+
getDefaultZIndex('modal') // 200
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT
|