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>
);
}







