File size: 720 Bytes
6ce4ca6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3cdf7b9
6ce4ca6
 
 
 
 
 
 
 
 
3cdf7b9
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
<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>

<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>