Spaces:
Running
Running
File size: 381 Bytes
6ce4ca6 3cdf7b9 6ce4ca6 3cdf7b9 6ce4ca6 3cdf7b9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<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}
|