Files
windmill/frontend/src/lib/components/Required.svelte
Ádám Kovács 2c1cd7eea8 feat(frontend): Typography update (#725)
* feat(frontend): Add new font face

* feat(frontend): Typography update

* fix(frontend): Import Inter font

* fix(frontend): Font fixes

* fix(front): Fix spacing and font inconsistencies

* fix(frontend): Visual changes and fixes

* fix(frontend): Minor visual fixes

* fix(frontend): Remove comment
2022-10-13 14:04:26 +02:00

13 lines
306 B
Svelte

<script lang="ts">
export let required: boolean
export let detail = ''
</script>
{#if required}
<span class="text-red-700 font-normal {$$props.class}">*</span>
{:else}
<span class="text-sm text-gray-500 ml-2 font-normal {$$props.class}"
>(optional{detail != '' ? `, ${detail}` : ''})</span
>
{/if}