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 |