About
Renders an Astryx token chip outside the contentEditable input while preserving correct serialization and visual consistency.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Chat Composer Token Element to your project and fits it to your theme.
Code
How Astryx Chat Composer Token Element is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import {ChatComposerTokenElement} from '@/components/ui/astryx-chat-composer-token-element';
export default function ChatComposerTokenElementShowcase() {
return (
<div
data-astryx-theme="neutral"
data-theme="light"
style={{colorScheme: 'light', display: 'contents'}}>
<ChatComposerTokenElement
token={{value: '@astryx', label: '@astryx', variant: 'blue'}}
/>
</div>
);
}






