1
0
Fork 0
activist/src/components/QRCode.vue
Brian DeRocher 5b48c5a8c5 Resolve issues from 'npm run build'.
One of them needed a patch in primevue 4.4.2 which was release only 2 weeks ago.
2025-10-19 00:56:36 -04:00

34 lines
560 B
Vue

<script setup lang="ts">
import { defineProps } from 'vue';
import { renderSVG } from 'uqr';
const { content } = defineProps({
content: {
type: String,
required: true,
},
});
const svg = renderSVG(content);
</script>
<template>
<div class="qr-code">
<!-- <span class="uuid">1337-9339</span>-->
<div :innerHTML="svg"></div>
</div>
</template>
<style scoped>
.qr-code {
aspect-ratio: 1 / 1;
background-color: white;
padding: 3px;
}
.uuid {
color: rgba(51, 51, 51, 0.91);
font-size: 90%;
font-family: monospace;
}
</style>