ham7a311

Word Bank

Forms

About

A sentence-building exercise where learners tap word tiles to assemble an answer on a ruled line, then check it against accepted answers with an animated correct/incorrect verdict bar.

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

Code

How Word Bank is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import WordBank from "@/components/ui/word-bank";
import { useState } from "react";

const EXERCISES = [
  {
    prompt: "القهوة ساخنة جداً",
    answers: ["The coffee is very hot"],
    words: ["hot", "tea", "is", "The", "very", "cold", "coffee", "not"],
  },
  {
    prompt: "أين محطة الحافلات؟",
    answers: ["Where is the bus station?", "Where's the bus station?"],
    words: ["station", "the", "Where", "bus", "is", "train", "when"],
  },
];

export default function Demo() {
  const [n, setN] = useState(0);
  const ex = EXERCISES[n % EXERCISES.length];
  return (
    <div className="flex min-h-screen w-full flex-col bg-white">
      <WordBank
        key={n}
        prompt={ex.prompt}
        promptLang="ar"
        words={ex.words}
        answers={ex.answers}
        theme="light"
        onContinue={() => setN((x) => x + 1)}
        onSkip={() => setN((x) => x + 1)}
      />
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    13
  • Wave Mesh

    Wave Mesh

    8
  • Uptime Ribbon

    Uptime Ribbon

    6
  • Glass Carousel

    Glass Carousel

    6
  • Glass Tiles

    Glass Tiles

    6
  • Streak Field Stats

    Streak Field Stats

    5
  • Wind Map

    Wind Map

    5
  • Time Window

    Time Window

    4

More in Forms

View all
  • Premium Auth

    Premium Auth

    496
  • Authentication Card

    Authentication Card

    44
  • Login 1

    Login 1

    52
  • Login 2

    Login 2

    7
  • Form

    Form

    32
  • Card Studio

    Card Studio

    41
  • Login Card

    Login Card

    32
  • Form

    Form

    136