⛹️‍♂️ Simplifies layout handling

This commit is contained in:
Rune Harlyk
2024-08-18 13:00:21 +02:00
committed by Rune Harlyk
parent 00c56a2d68
commit 296adfee51
13 changed files with 142 additions and 166 deletions
@@ -1,8 +0,0 @@
<script lang="ts">
import ChartBase from "./ChartBase.svelte";
let CpuData:number[] = [1,2,3,4,5,6,7,8,9,]
</script>
<ChartBase data={CpuData} label="CPU usage" title="CPU usage"></ChartBase>
@@ -0,0 +1,10 @@
<script lang="ts">
export let options: string[] = [];
export let selectedOption: string = '';
</script>
<select bind:value={selectedOption} on:change class="select select-bordered sm:select-sm max-w-xs {$$restProps.class || ''}">
{#each options as option}
<option value={option}>{option}</option>
{/each}