mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +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>
32 lines
551 B
Svelte
32 lines
551 B
Svelte
<script lang="ts">
|
|
import { createEventDispatcher } from "svelte";
|
|
|
|
export let elem_id = "";
|
|
export let elem_classes: string[] = [];
|
|
export let value: string;
|
|
export let visible = true;
|
|
export let min_height = false;
|
|
|
|
const dispatch = createEventDispatcher<{ change: undefined }>();
|
|
|
|
$: value, dispatch("change");
|
|
</script>
|
|
|
|
<div
|
|
class="prose {elem_classes.join(' ')}"
|
|
class:min={min_height}
|
|
id={elem_id}
|
|
class:hide={!visible}
|
|
>
|
|
{@html value}
|
|
</div>
|
|
|
|
<style>
|
|
.min {
|
|
min-height: var(--size-24);
|
|
}
|
|
.hide {
|
|
display: none;
|
|
}
|
|
</style>
|