mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 09:59:22 +08:00
sync code of fastrtc, add text support through datachannel, fix safari connect problem support chat without camera or mic
14 lines
269 B
Svelte
14 lines
269 B
Svelte
<script lang="ts">
|
|
export let color;
|
|
export let fontSize = "16px";
|
|
export let icon: any = undefined;
|
|
</script>
|
|
|
|
<span style={`color: ${color}; font-size: ${fontSize}`}>
|
|
{#if icon}
|
|
<svelte:component this={icon} />
|
|
{:else}
|
|
<slot></slot>
|
|
{/if}
|
|
</span>
|