Skip to content

Table

Flex-based table primitives.

Terminal window
npx github:truongnat/rnui#cli add table

or directly via the shadcn CLI:

Terminal window
npx shadcn add https://<registry-base>/r/nativewind/table.json # or /uniwind/
<Table>
<TableHeader>
<TableRow>
<TableHead>Name</TableHead>
<TableHead flex={2}>Email</TableHead>
</TableRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell>Ana</TableCell>
<TableCell flex={2}>ana@ex.co</TableCell>
</TableRow>
</TableBody>
</Table>
  • components/ui/table.tsx

Installs together with: utils, text, theme