amankaushik481

SQL Result Table

Component

About

A compact, scrollable table for rendering SQL query results with uppercase column headers, monospace cells and dimmed NULL values.

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

Code

How SQL Result Table is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SqlResultTable } from "@/components/ui/sql-result-table";

export default function SqlResultTableDemo() {
  return (
    <div className="flex w-full max-w-xl items-center justify-center p-8">
      <SqlResultTable
        caption="users, 3 rows"
        columns={["id", "email", "plan"]}
        rows={[
          ["1", "maya@acme.com", "studio"],
          ["2", "casey@acme.com", "premium"],
          ["3", null, "free"],
        ]}
      />
    </div>
  );
}

More by amankaushik481

View all
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    13
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2