Astryx

Astryx Chat Composer

Component 3

About

An Astryx chat-composer shell arranging input, drawer, header, footer, send actions, status, and keyboard focus behavior.

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

Code

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

Usage.tsx

'use client';

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

export default function ChatComposerSimple() {
  return (
    <div
      data-astryx-theme="neutral"
      data-theme="light"
      style={{colorScheme: 'light', display: 'contents'}}>
      <Stack direction="vertical" width={450} maxWidth="100%">
        <ChatComposer
          onSubmit={value => {
            console.log('Sent:', value);
          }}
        />
      </Stack>
    </div>
  );
}

Dependencies

More by Astryx

View all
  • Astryx Banner

    Astryx Banner

    61
  • Astryx Avatar

    Astryx Avatar

    32
  • Astryx Aspect Ratio

    Astryx Aspect Ratio

    32
  • Astryx Badge

    Astryx Badge

    29
  • Astryx Button Group

    Astryx Button Group

    28
  • Astryx Chat Composer Drawer

    Astryx Chat Composer Drawer

    25
  • Astryx Toggle Button

    Astryx Toggle Button

    17
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    9