@mantine-vue/code-highlight 1.1.2 → 1.1.4

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.
Files changed (2) hide show
  1. package/README.md +43 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # @mantine-vue/code-highlight
2
+
3
+ Code highlighting components built with highlight.js, equivalent to `@mantine/code-highlight`.
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/code-highlight @mantine-vue/core @mantine-vue/hooks
11
+
12
+ # or with npm
13
+ npm i @mantine-vue/code-highlight @mantine-vue/core @mantine-vue/hooks
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ```vue
19
+ <script setup>
20
+ import { CodeHighlight } from '@mantine-vue/code-highlight'
21
+ import '@mantine-vue/code-highlight/styles.css'
22
+
23
+ const code = `function sum(a, b) {\n return a + b\n}`
24
+ </script>
25
+
26
+ <template>
27
+ <CodeHighlight :code="code" language="js" />
28
+ </template>
29
+ ```
30
+
31
+ ## Documentation
32
+
33
+ Full API and examples: [mantine-vue.dev/x/code-highlight](https://mantine-vue.dev/x/code-highlight/)
34
+
35
+ ## Peer dependencies
36
+
37
+ - `vue` ^3.5.0
38
+ - `@mantine-vue/core`
39
+ - `@mantine-vue/hooks`
40
+
41
+ ## License
42
+
43
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantine-vue/code-highlight",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Vue code highlight components equivalent to @mantine/code-highlight",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -39,8 +39,8 @@
39
39
  "vue": "^3.5.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@mantine-vue/core": "1.1.1",
43
- "@mantine-vue/hooks": "1.1.2",
42
+ "@mantine-vue/core": "1.1.4",
43
+ "@mantine-vue/hooks": "1.1.4",
44
44
  "vue": "^3.5.0"
45
45
  }
46
46
  }