Files
windmill/frontend/src/lib/components/Section.svelte
Faton Ramadani 11e0bc76c4 feat(frontend): App polish (#2397)
* fix(frontend): app polish

* wip

* fix(frontend): rework schedule drawer

* fix(frontend): add Label wrapper for consistency

* fix(frontend): fix tab inconstiencies

* fix(frontend): make kbd modifier visible + fix spacings

* fix(frontend): add spinning animation when assistant is loading

* wip

* fix(frontend): add inner border

* feat(frontend): reorganised metadata fields

* feat(frontend): fix merge

* feat(frontend): fix build

* feat(frontend): fix build

* Update CenteredPage.svelte

* feat(frontend): fix inner-border dark

* wip

* feat(frontend): Fix buttons

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2023-10-08 23:31:53 +02:00

23 lines
480 B
Svelte

<script lang="ts">
import Tooltip from './Tooltip.svelte'
export let label: string | undefined = undefined
export let tooltip: string | undefined = undefined
</script>
<div>
<div class="flex flex-row justify-between">
<h2 class="text-base font-semibold mb-2 flex flex-row gap-1">
{label}
<slot name="header" />
{#if tooltip}
<Tooltip>{tooltip}</Tooltip>
{/if}
</h2>
<slot name="action" />
</div>
<div class={$$props.class}>
<slot />
</div>
</div>