gradio/js/group/static/Group.svelte
pngwn 1419538ea7
Refactor component directories (#5074)
* asd

* changes

* fix everything

* cleanup

* add changeset

* fix casing

* lockfile

* fix casing

* fix ci, enable linting

* fix test

* add changeset

* add changeset

* delete changeset

* fix dirs

* fix casing

* fix notebooks

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00

44 lines
870 B
Svelte

<script lang="ts">
export let elem_id = "";
export let elem_classes: string[] = [];
export let visible = true;
</script>
<div
id={elem_id}
class="gr-group {elem_classes.join(' ')}"
class:hide={!visible}
>
<div
class="styler"
style:--block-radius="0px"
style:--block-border-width="0px"
style:--layout-gap="1px"
style:--form-gap-width="1px"
style:--button-border-width="0px"
style:--button-large-radius="0px"
style:--button-small-radius="0px"
>
<slot />
</div>
</div>
<style>
div {
border: var(--block-border-width) solid var(--border-color-primary);
background: var(--border-color-primary);
border-radius: var(--block-radius);
display: flex;
flex-direction: column;
gap: var(--form-gap-width);
overflow: hidden;
}
div > :global(*:not(.absolute)) {
border: none;
border-radius: 0;
}
.hide {
display: none;
}
</style>