Table

A component that displays data in a structured table format.

In this guide, you'll learn how to use the Table component.

Note: If you're looking to add a table to your Medusa Admin customizations with advanced features like filters, search, sorting, and bulk actions, refer to the DataTable component instead.
Was this example helpful?

Usage#

Code
import { Table } from "@medusajs/ui"
Code
1<Table>2  <Table.Header>3    <Table.Row>4      <Table.HeaderCell>5        #6      </Table.HeaderCell>7      <Table.HeaderCell>8        Customer9      </Table.HeaderCell>10      <Table.HeaderCell>11        Email12      </Table.HeaderCell>13    </Table.Row>14  </Table.Header>15  <Table.Body>16    <Table.Row>17      <Table.Cell>1</Table.Cell>18      <Table.Cell>Emil Larsson</Table.Cell>19      <Table.Cell>emil2738@gmail.com</Table.Cell>20    </Table.Row>21  </Table.Body>22</Table>

API Reference#


Examples#

Table with Pagination#

Was this guide helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Medusa MCP server in Cursor, VSCode, etc...FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break
⇧↵