gradio/ui/packages/app/src/components/Column/Column.svelte

16 lines
291 B
Svelte
Raw Normal View History

2022-03-24 07:36:07 +08:00
<script lang="ts">
export let value: boolean = true;
export let default_value: boolean;
2022-03-25 14:03:47 +08:00
export let style: string = "";
if (default_value) value = default_value;
2022-03-25 14:03:47 +08:00
</script>
2022-03-24 07:36:07 +08:00
<div
{style}
class:hidden={!value}
class="flex flex-1 flex-col gr-gap gr-form-gap relative"
>
<slot />
</div>