Skip to content
aq-ui
Back to ComponentsComponent

Table

Open-code aq-ui accessible component family for Table.

Preview

This is a live example. Interact with the available controls and use the keyboard to inspect the component's states and behavior.

Loading interactive preview…

Installation

pnpm dlx aq-ui@alpha add table

API reference

Client module

Import the parts you need, then jump to an export for its contract.

View full source

Quick start

"use client"

import { Table } from "@/components/ui/table"

<Table />

Table

constSource L7

Open-code aq-ui accessible component family for Table.

const Table = React.forwardRef<React.ComponentRef<"table">, React.ComponentProps<"table">>(…)
Props type
React.ComponentProps<"table">
<Table />

TableBody

constSource L42

Public const export from Table.

const TableBody = React.forwardRef<React.ComponentRef<"tbody">, React.ComponentProps<"tbody">>(…)
Props type
React.ComponentProps<"tbody">
<TableBody />

TableCaption

constSource L129

Public const export from Table.

const TableCaption = React.forwardRef<React.ComponentRef<"caption">, React.ComponentProps<"caption">>(…)
Props type
React.ComponentProps<"caption">
<TableCaption />

TableCell

constSource L111

Public const export from Table.

const TableCell = React.forwardRef<React.ComponentRef<"td">, React.ComponentProps<"td">>(…)
Props type
React.ComponentProps<"td">
<TableCell />

TableHead

constSource L93

Public const export from Table.

const TableHead = React.forwardRef<React.ComponentRef<"th">, React.ComponentProps<"th">>(…)
Props type
React.ComponentProps<"th">
<TableHead />

TableHeader

constSource L27

Header export for composing Table.

const TableHeader = React.forwardRef<React.ComponentRef<"thead">, React.ComponentProps<"thead">>(…)
Props type
React.ComponentProps<"thead">
<TableHeader />

TableRow

constSource L75

Public const export from Table.

const TableRow = React.forwardRef<React.ComponentRef<"tr">, React.ComponentProps<"tr">>(…)
Props type
React.ComponentProps<"tr">
<TableRow />

Registry dependencies

utils

Files

  • components/ui/table.tsx

Source