mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-03 01:50:59 +08:00
1419538ea7
* 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>
44 lines
870 B
Svelte
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>
|