CoolFace
Datasetpublic

gradio/frontend

sourceHugging Faceupdated 2h agoView on Hugging Face
1likes413kdownloads
Example.svelte30 linesDownload Raw Back to shared
1<script lang="ts">2	export let value: (string | number)[][];3</script>4 5<table class="input-dataframe-example">6	{#each value.slice(0, 3) as row}7		<tr>8			{#each row.slice(0, 3) as cell}9				<td class="p-2">{cell}</td>10			{/each}11			{#if row.length > 3}12				<td class="p-2">...</td>13			{/if}14		</tr>15	{/each}16	{#if value.length > 3}17		<tr>18			{#each Array(Math.min(4, value[0].length)) as _}19				<td class="p-2">...</td>20			{/each}21		</tr>22	{/if}23</table>24 25<style>26	table {27		border-collapse: separate;28	}29</style>30 
gradio/frontend · CoolFace