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

17 lines
424 B
Svelte
Raw Normal View History

2022-03-24 07:36:07 +08:00
<script lang="ts">
export let elem_id: string = "";
export let variant: "default" | "panel" = "default";
export let parent: string | null = null;
2022-03-25 14:03:47 +08:00
</script>
2022-03-24 07:36:07 +08:00
<div
id={elem_id}
class:bg-gray-50={variant === "panel"}
class:p-2={variant === "panel"}
class:rounded-lg={variant === "panel"}
class="flex flex-col gr-gap gr-form-gap relative col overflow-auto"
class:flex-1={parent === "row" || !parent}
>
<slot />
</div>