coyotte508's picture
coyotte508 HF staff
🍱 Copy folders from huggingface.js
b2ecf7d
raw
history blame
281 Bytes
<script lang="ts">
export let position: "left" | "right";
export let text: string;
</script>
<div
class="rounded-2xl px-3 py-2 {position === 'right'
? 'ml-7 bg-blue-600 text-white'
: 'mr-7 place-self-start bg-gray-50 dark:bg-gray-850 dark:text-gray-200'}"
>
{text}
</div>