mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-24 05:29:51 +03:00
wip
This commit is contained in:
parent
7a6787ff5a
commit
74ddc05509
17
src/lib/components/ButtonGroup.svelte
Normal file
17
src/lib/components/ButtonGroup.svelte
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
export let leftLabel: string;
|
||||||
|
export let leftAction: function;
|
||||||
|
export let wide = false;
|
||||||
|
</script>
|
||||||
|
{#if $$slots.middle}
|
||||||
|
<div>
|
||||||
|
<slot name="left" />
|
||||||
|
<slot name="middle" />
|
||||||
|
<slot name="right" />
|
||||||
|
</div>
|
||||||
|
{:else}
|
||||||
|
<div>
|
||||||
|
<slot name="left" />
|
||||||
|
<slot name="right" />
|
||||||
|
</div>
|
||||||
|
{/if}
|
Loading…
Reference in New Issue
Block a user