SectionRow - Admin Components

Note: This component is available since Medusa v2.21.0.

The SectionRow component shows a title and its value side by side in a row. The Medusa Admin uses it in the detail sections of its pages, such as a product's general section.

Code
import { SectionRow } from "@medusajs/dashboard/components"

Example#

Use SectionRow inside a container in a widget or UI route:

Code
1import { SectionRow } from "@medusajs/dashboard/components"2import { Container, Heading } from "@medusajs/ui"3
4const BrandGeneralSection = ({ brand }) => {5  return (6    <Container className="divide-y p-0">7      <div className="px-6 py-4">8        <Heading level="h2">Brand</Heading>9      </div>10      <SectionRow title="Name" value={brand.name} />11      <SectionRow title="Handle" value={brand.handle} />12    </Container>13  )14}

Medusa shows a dash when you pass an empty value.


Props#

The component accepts the SectionRowProps type:

Loading...
Was this page 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
⇧↵