Bubble
The speech bubble used inside a message.
Import
import { Bubble } from "@tarve/core";Usage
import { Bubble, Column, Row, Text } from "@tarve/core";
<Column gap={8} style={{ width: 320 }}>
<Row>
<Bubble side="incoming">
<Text>Is the release ready?</Text>
</Bubble>
</Row>
<Row justify="end">
<Bubble side="outgoing">
<Text>Shipping it now.</Text>
</Bubble>
</Row>
</Column>Props
| Prop | Type | Default |
|---|---|---|
maxWidth | number | `${number}%` | "80%" |
side | BubbleSide | "incoming" |
variant | BubbleVariant | "default" |
Common props
Shared by every component. See descriptions →
childrenclassclassNamehighlightidkeymotionFromonHighlightonPasteonPointerLeaveonPointerMoveonSizeonTransitionEndrovingGroupstyleTypes
type BubbleSide = "incoming" | "outgoing";type BubbleVariant = "default" | "secondary" | "destructive";