This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2022-09-15 11:56:14 +00:00
|
|
|
<template>
|
|
|
|
<span
|
|
|
|
:style="{backgroundColor: color }"
|
|
|
|
class="color-bubble"
|
|
|
|
></span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2022-09-15 12:32:29 +00:00
|
|
|
import type { Color } from 'csstype'
|
|
|
|
|
|
|
|
defineProps< {
|
|
|
|
color: Color,
|
|
|
|
}>()
|
2022-09-15 11:56:14 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.color-bubble {
|
|
|
|
display: inline-block;
|
|
|
|
border-radius: 100%;
|
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
</style>
|