mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 02:08:12 +08:00
Consolidate MenuListButton into TextButton (#1470)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
export let condition: boolean;
|
||||
export let wrapperClass = "";
|
||||
</script>
|
||||
|
||||
{#if condition}
|
||||
<div class={wrapperClass}>
|
||||
<slot />
|
||||
</div>
|
||||
{:else}
|
||||
<slot />
|
||||
{/if}
|
||||
|
||||
<style lang="scss" global></style>
|
||||
Reference in New Issue
Block a user