Files
windmill/frontend/src/lib/components/SchemaEditorProperty.svelte
T
2022-08-07 10:02:00 +02:00

17 lines
487 B
Svelte

<script lang="ts">
import type { SchemaProperty } from '$lib/common'
import { Badge } from 'flowbite-svelte'
export let property: SchemaProperty
</script>
<div class="flex flex-row flex-wrap gap-1">
<Badge color="blue">{property.type?.toUpperCase() ?? 'ANY'}</Badge>
{#if property.format}
<Badge color="green">{property.format?.toUpperCase()}</Badge>
{/if}
{#if property.contentEncoding}
<Badge color="indigo">{property.contentEncoding?.toUpperCase()}</Badge>
{/if}
</div>