Bubble
메시지 버블에 대화 내용을 표시합니다.
기본 사용법
astro
<Bubble variant="default" align="start">
Hello there! What's up?
</Bubble> 변형
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> 정렬
astro
<BubbleGroup class="w-full">
<Bubble variant="default" align="start">Start aligned</Bubble>
<Bubble variant="secondary" align="end">End aligned</Bubble>
</BubbleGroup> 반응
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> 속성
| 속성 | 설명 | 타입 | 기본값 |
|---|---|---|---|
| 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 속성
| 속성 | 설명 | 타입 | 기본값 |
|---|---|---|---|
| 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 |