Alok Srivastava

Astryx Chat Composer Input

Component

About

A rich Astryx chat input supporting trigger menus, inline tokens, message history, file handling, and accessible submission.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Chat Composer Input to your project and fits it to your theme.

Code

How Astryx Chat Composer Input is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client';

import {ChatComposer, ChatComposerInput} from '@/components/ui/astryx-chat-composer-input';
import {Stack} from '@astryxdesign/core/Layout';

export default function ChatComposerInputShowcase() {
  return (
    <div
      data-astryx-theme="neutral"
      data-theme="light"
      style={{colorScheme: 'light', display: 'contents'}}>
      <Stack direction="vertical" width={450} maxWidth="100%">
        <ChatComposer
          onSubmit={() => {}}
          input={
            <ChatComposerInput placeholder="Ask me anything about Astryx..." />
          }
        />
      </Stack>
    </div>
  );
}

Dependencies

More by Alok Srivastava

View all
  • Glossy Slider Call Button

    Glossy Slider Call Button

    25
  • Dot Graph Card

    Dot Graph Card

    21
  • Profile Menu Expander

    Profile Menu Expander

    4
  • Astryx Base Typeahead

    Astryx Base Typeahead

    2
  • Pixel Perfect Command Palette

    Pixel Perfect Command Palette

    1
  • Astryx Checkbox Input

    Astryx Checkbox Input

  • Astryx Chat Tool Calls

    Astryx Chat Tool Calls

  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text