Bubble

The speech bubble used inside a message.

Bubble rendered by Tarve Bubble rendered by Tarve
Native render. The live version loads when this comes into view.

Import

import { Bubble } from "@tarve/core";

Usage

Bubble.tsx
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

PropTypeDefault
maxWidth number | `${number}%`"80%"
side BubbleSide"incoming"
variant BubbleVariant"default"

Common props

Shared by every component. See descriptions →

childrenclassclassNamehighlightidkeymotionFromonHighlightonPasteonPointerLeaveonPointerMoveonSizeonTransitionEndrovingGroupstyle

Types

BubbleSide
type BubbleSide = "incoming" | "outgoing";
BubbleVariant
type BubbleVariant = "default" | "secondary" | "destructive";