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
<Table>
  <Table.Header>
    <Table.Row>
      <Table.HeaderCell>
        #
      </Table.HeaderCell>
      <Table.HeaderCell>
        Customer
      </Table.HeaderCell>
      <Table.HeaderCell>
        Email
      </Table.HeaderCell>
    </Table.Row>
  </Table.Header>
  <Table.Body>
    <Table.Row>
      <Table.Cell>1</Table.Cell>
      <Table.Cell>Emil Larsson</Table.Cell>
      <Table.Cell>emil2738@gmail.com</Table.Cell>
    </Table.Row>
  </Table.Body>
</Table>

API Reference#


Examples#

Table with Pagination#

Was this guide helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Docs 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
⇧↵