@mantine-vue/spotlight 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 +48 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# @mantine-vue/spotlight
|
|
2
|
+
|
|
3
|
+
Command center (`Ctrl + K`) component for Vue applications, equivalent to `@mantine/spotlight`.
|
|
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
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
yarn add @mantine-vue/spotlight @mantine-vue/core @mantine-vue/hooks @mantine-vue/store
|
|
11
|
+
|
|
12
|
+
# or with npm
|
|
13
|
+
npm i @mantine-vue/spotlight @mantine-vue/core @mantine-vue/hooks @mantine-vue/store
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```vue
|
|
19
|
+
<script setup>
|
|
20
|
+
import { Spotlight, spotlight } from '@mantine-vue/spotlight'
|
|
21
|
+
import '@mantine-vue/spotlight/styles.css'
|
|
22
|
+
|
|
23
|
+
const actions = [
|
|
24
|
+
{ id: 'home', label: 'Home', onClick: () => console.log('Home') },
|
|
25
|
+
{ id: 'settings', label: 'Settings', onClick: () => console.log('Settings') },
|
|
26
|
+
]
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<Spotlight :actions="actions" />
|
|
31
|
+
<button @click="spotlight.open()">Open spotlight</button>
|
|
32
|
+
</template>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Documentation
|
|
36
|
+
|
|
37
|
+
Full API and examples: [mantine-vue.dev/x/spotlight](https://mantine-vue.dev/x/spotlight)
|
|
38
|
+
|
|
39
|
+
## Peer dependencies
|
|
40
|
+
|
|
41
|
+
- `vue` ^3.5.0
|
|
42
|
+
- `@mantine-vue/core`
|
|
43
|
+
- `@mantine-vue/hooks`
|
|
44
|
+
- `@mantine-vue/store`
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/spotlight",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Vue command center components equivalent to @mantine/spotlight",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"vue": "^3.5.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@mantine-vue/core": "1.1.
|
|
40
|
-
"@mantine-vue/hooks": "1.1.
|
|
41
|
-
"@mantine-vue/store": "1.1.
|
|
39
|
+
"@mantine-vue/core": "1.1.3",
|
|
40
|
+
"@mantine-vue/hooks": "1.1.3",
|
|
41
|
+
"@mantine-vue/store": "1.1.3",
|
|
42
42
|
"vue": "^3.5.0"
|
|
43
43
|
}
|
|
44
44
|
}
|