valaxy-theme-hairy 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- package/components/HairyCodepen.vue +40 -0
- package/package.json +1 -1
@@ -0,0 +1,40 @@
|
|
1
|
+
<script lang="ts" setup>
|
2
|
+
import { useScriptTag } from '@vueuse/core'
|
3
|
+
import { defineProps, withDefaults } from 'vue'
|
4
|
+
|
5
|
+
withDefaults(
|
6
|
+
defineProps<{
|
7
|
+
height: number | string
|
8
|
+
defaultTab: string
|
9
|
+
slugHash: string
|
10
|
+
user?: string
|
11
|
+
prefill?: Record<string, any>
|
12
|
+
title?: string
|
13
|
+
placeholder?: string
|
14
|
+
theme?: string
|
15
|
+
}>(),
|
16
|
+
{
|
17
|
+
height: 300,
|
18
|
+
defaultTab: 'html',
|
19
|
+
},
|
20
|
+
)
|
21
|
+
|
22
|
+
useScriptTag('https://cpwebassets.codepen.io/assets/embed/ei.js')
|
23
|
+
</script>
|
24
|
+
|
25
|
+
<template>
|
26
|
+
<div
|
27
|
+
class="codepen"
|
28
|
+
:data-height="300"
|
29
|
+
:data-default-tab="defaultTab"
|
30
|
+
:data-slug-hash="slugHash"
|
31
|
+
:data-user="user"
|
32
|
+
:data-prefill="prefill"
|
33
|
+
:data-pen-title="title"
|
34
|
+
:data-placeholder="placeholder"
|
35
|
+
:data-theme-id="theme"
|
36
|
+
/>
|
37
|
+
</template>
|
38
|
+
|
39
|
+
<style lang="scss" scoped>
|
40
|
+
</style>
|