Bubble
Muestra contenido conversacional en una burbuja de mensaje.
Uso Básico
astro
<Bubble variant="default" align="start">
Hello there! What's up?
</Bubble> Variantes
astro
<BubbleGroup>
<Bubble variant="default">Default variant</Bubble>
<Bubble variant="secondary">Secondary variant</Bubble>
<Bubble variant="muted">Muted variant</Bubble>
<Bubble variant="tinted">Tinted variant</Bubble>
<Bubble variant="outline">Outline variant</Bubble>
<Bubble variant="ghost">Ghost variant</Bubble>
<Bubble variant="destructive">Destructive variant</Bubble>
</BubbleGroup> Alineación
astro
<BubbleGroup class="w-full">
<Bubble variant="default" align="start">Start aligned</Bubble>
<Bubble variant="secondary" align="end">End aligned</Bubble>
</BubbleGroup> Reacciones
astro
<Bubble variant="default" align="start">
I don't need tests, I know my code works.
<BubbleReactions side="bottom" align="end">
<span>👍</span><span>😮</span>
</BubbleReactions>
</Bubble> Propiedades
| Propiedad | Descripción | Tipo | Por defecto |
|---|---|---|---|
| variant | The visual style of the bubble. | 'default' | 'secondary' | 'muted' | 'tinted' | 'outline' | 'ghost' | 'destructive' | 'default' |
| align | The inline alignment of the bubble. | 'start' | 'end' | 'start' |
| class | Additional CSS classes. | string | undefined |
BubbleReactions Propiedades
| Propiedad | Descripción | Tipo | Por defecto |
|---|---|---|---|
| side | The side of the bubble to anchor the reactions. | 'top' | 'bottom' | 'bottom' |
| align | The inline alignment of the reactions. | 'start' | 'end' | 'end' |
| class | Additional CSS classes. | string | undefined |