ui: beta flag

This commit is contained in:
Andras Bacsai
2022-09-28 10:41:32 +02:00
parent 3c29eaa1b1
commit b4501fe52d
6 changed files with 45 additions and 35 deletions

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import Beta from './Beta.svelte';
import Explaner from './Explainer.svelte';
import Tooltip from './Tooltip.svelte';
@@ -6,6 +7,7 @@
export let customClass: any = null;
export let setting: any;
export let title: any;
export let isBeta: any = false;
export let description: any;
export let isCenter = true;
export let disabled = false;
@@ -19,6 +21,9 @@
<!-- svelte-ignore a11y-label-has-associated-control -->
<label>
{title}
{#if isBeta}
<Beta />
{/if}
{#if description && description !== ''}
<Explaner explanation={description} />
{/if}