Waqar H. Syed

Mixed Script Composer

Forms

About

React message composer for mixed English and Arabic text with direction controls, mentions, attachments, reply context, and a live preview, useful for bilingual chat and team collaboration interfaces.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";
import MixedScriptComposer from "../components/ui/mixed-script-composer";

export default function MixedScriptComposerDemo() {
  const [failure, setFailure] = React.useState(false);
  const id = React.useId();
  return <div className="flex min-h-[460px] w-full flex-col items-center justify-center bg-background p-4 text-foreground sm:p-8"><div className="w-full max-w-4xl"><div className="mb-4 flex flex-wrap items-center justify-between gap-2 text-xs text-muted-foreground"><span>Workspace / Messages</span><label htmlFor={id} className="flex cursor-pointer items-center gap-2"><input id={id} type="checkbox" checked={failure} onChange={event => setFailure(event.target.checked)} className="h-3.5 w-3.5 accent-primary" /> Simulate send failure</label></div><MixedScriptComposer onSend={async () => { await new Promise(resolve => window.setTimeout(resolve, 500)); if (failure) throw new Error("Simulated send failure"); }} /></div></div>;
}

Dependencies

More by Waqar H. Syed

View all
  • Build Pipeline

    Build Pipeline

    153
  • Focus City

    Focus City

    118
  • Scroll animated timeline

    Scroll animated timeline

    116
  • Storage District

    Storage District

    65
  • Glowing Pricing Tiers

    Glowing Pricing Tiers

    45
  • Thumbnail image viewer

    Thumbnail image viewer

    43
  • Before after comparison

    Before after comparison

    33
  • Featured Project Hero

    Featured Project Hero

    29

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 1

    Login 1

    52
  • Book A Demo 3

    Book A Demo 3

    83
  • Authentication Card

    Authentication Card

    47
  • Book A Demo 1

    Book A Demo 1

    69
  • Contact Card

    Contact Card

    1K
  • Login Card

    Login Card

    32
  • Login 2

    Login 2

    7