RobotHub-Frontend / src /lib /components /3d /ui /StatusIndicator.svelte
blanchon's picture
Update
6ce4ca6
raw
history blame
402 Bytes
<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}