File size: 402 Bytes
6ce4ca6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<script lang="ts">
	import { Container } from "threlte-uikit";

	interface Props {
		color?: string;
		size?: number;
		type?: 'dot' | 'pulse';
		visible?: boolean;
	}

	let {
		color = "rgb(139, 69, 219)",
		size = 8,
		type = 'dot',
		visible = true
	}: Props = $props();
</script>

{#if visible}
	<Container 
		width={size} 
		height={size} 
		borderRadius="50%" 
		backgroundColor={color}
	/>
{/if}