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.
Example#
Use SectionRow inside a container in a widget or UI route:
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?