# Astryx Chat Tokenized Text

> Renders a text string with token patterns replaced by inline token content. Wrap any message body inside ChatMessageBubble to turn raw @mentions, #tags, or /commands into styled content. When no non-empty token matches or none are provided, the text renders as-is, so you can use ChatTokenizedText unconditionally on every message.

- Author: [Alok Srivastava](https://21st.dev/@aloksivastava1025)
- License: mit
- Tags: Text, Chat
- npm dependencies: @astryxdesign/core
- Live preview: https://21st.dev/@aloksivastava1025/components/astryx-chat-tokenized-text

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/aloksivastava1025/astryx-chat-tokenized-text?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/text.md
