Spaces:
Running
Running
File size: 849 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
<script lang="ts">
import { Container, SVG, Text } from "threlte-uikit";
interface Props {
icon: string;
text: string;
color?: string;
opacity?: number;
iconSize?: number;
fontSize?: number;
letterSpacing?: number;
marginBottom?: number;
}
let {
icon,
text,
color = "rgb(139, 69, 219)",
opacity = 1,
iconSize = 8,
fontSize = 14,
letterSpacing = 0.8,
marginBottom = 6
}: Props = $props();
</script>
<!--
@component
Status header component with icon and text.
Used for consistent headers across all status boxes.
-->
<Container flexDirection="row" alignItems="center" gap={6} {marginBottom}>
<SVG
width={iconSize}
height={iconSize}
{color}
{opacity}
src={icon}
/>
<Text
{text}
{fontSize}
fontWeight="bold"
{color}
{opacity}
textTransform="uppercase"
{letterSpacing}
/>
</Container> |