Files
web-temp/layers/components/atoms/Video.vue
2025-10-22 11:14:07 +09:00

17 lines
303 B
Vue

<script setup lang="ts">
interface Props {
src: string
type?: 'mp4' | 'webm'
}
const props = withDefaults(defineProps<Props>(), {
type: 'mp4',
})
</script>
<template>
<video v-if="props.src" v-bind="$attrs">
<source :src="props.src" :type="`video/${props.type}`" />
</video>
</template>