> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-feature-card-builder.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sticker Bubble

> A self-extracting bubble that renders a sticker image from a sticker custom message.

<Accordion title="AI Integration Quick Reference">
  ```json theme={null}
  {
    "component": "CometChatStickerBubble",
    "package": "@cometchat/chat-uikit-react",
    "import": "import { CometChatStickerBubble } from \"@cometchat/chat-uikit-react\";",
    "description": "Self-extracting sticker bubble. Extracts the sticker image URL and name from the message metadata.",
    "cssRootClass": ".cometchat-sticker-bubble",
    "selfExtracting": true,
    "props": {
      "data": {
        "message": { "type": "CometChat.CustomMessage", "required": true, "note": "The sticker custom message; drives extraction of the image URL and name." },
        "alignment": { "type": "\"left\" | \"right\"", "note": "Defaults to sender-vs-logged-in-user." },
        "className": { "type": "string" }
      }
    }
  }
  ```
</Accordion>

## Overview

`CometChatStickerBubble` renders a sticker. It is **self-extracting**: pass the SDK custom `message` and the bubble extracts the sticker image URL and name from its metadata, so it works standalone.

<Info>
  **Live Preview** — interact with the sticker bubble.

  [Open in Storybook ↗](https://storybook.cometchat.io/react/?path=/story/components-bubbles-message-bubble--sticker-message)
</Info>

<iframe src="https://storybook.cometchat.io/react/iframe.html?id=components-bubbles-message-bubble--sticker-message&viewMode=story&shortcuts=false&singleStory=true" className="w-full rounded-xl" loading="lazy" style={{height: "500px", border: "1px solid #e0e0e0"}} title="CometChat Sticker Bubble — Default" allow="clipboard-write" />

***

## Usage

```tsx theme={null}
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatStickerBubble } from "@cometchat/chat-uikit-react";

function StickerMessage({ message }: { message: CometChat.CustomMessage }) {
  return <CometChatStickerBubble message={message} />;
}
```

***

## Props

### message

The sticker custom message. The bubble extracts the image URL and name from its metadata. **Required.**

|          |                           |
| -------- | ------------------------- |
| Type     | `CometChat.CustomMessage` |
| Required | Yes                       |

***

### alignment

Override incoming/outgoing alignment. Defaults to sender-vs-logged-in-user.

|         |                     |
| ------- | ------------------- |
| Type    | `"left" \| "right"` |
| Default | derived             |

***

### className

Additional CSS class applied to the root element.

|         |             |
| ------- | ----------- |
| Type    | `string`    |
| Default | `undefined` |

***

## CSS Selectors

| Target              | Selector                                                                      |
| ------------------- | ----------------------------------------------------------------------------- |
| Root                | `.cometchat-sticker-bubble`                                                   |
| Incoming / outgoing | `.cometchat-sticker-bubble--incoming` / `.cometchat-sticker-bubble--outgoing` |
| Sticker image       | `.cometchat-sticker-bubble__image`                                            |

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Stickers Plugin" icon="face-smile" href="/ui-kit/react/plugins/overview#built-in-plugins">
    Plugin behavior, keyboard, and conversation preview
  </Card>

  <Card title="Poll Bubble" icon="square-poll-vertical" href="/ui-kit/react/components/poll-bubble">
    Render poll messages
  </Card>

  <Card title="Message Bubble" icon="comment" href="/ui-kit/react/components/message-bubble">
    The wrapper that hosts bubble content
  </Card>

  <Card title="Theming" icon="paintbrush" href="/ui-kit/react/theming">
    Customize colors, fonts, and spacing
  </Card>
</CardGroup>
