Sql Result Table

SQL query result table with uppercase column headers, monospace cells and horizontal scroll for wide results. Built for database consoles and admin tools.

src/registry/ui/sql-result-table.tsx/r/sql-result-table.json

Installation#

bash
npx shadcn@latest add @minidev/sql-result-table

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/sql-result-table.json

Usage#

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

export function Example() {
  return (
    <SqlResultTable />
  )
}

API reference#

SqlResultTable props
PropTypeDefault
columnsstring[]["id", "email", "plan"]
rowsstring[][][ ["1", "aman@minidev.pro", "studio"]...
classNamestring-

Examples#

All Developer tool UI components for React