Skip to main content

GenericViewSection

A read-only data display layout that renders a list of label/value pairs in a responsive grid. Ideal for detail/view pages where you need to show entity attributes consistently.

πŸ“– Storybook

Preview​

Import​

import { GenericViewSection } from "@xocialive/ui-components";

Basic usage​

<GenericViewSection
title="Personal Information"
fields={[
{ label: "Full Name", value: user.name },
{ label: "Email", value: user.email },
{ label: "Role", value: user.role },
{ label: "Status", value: <StatusChip status={user.status} /> },
]}
/>

Props​

PropTypeDefaultDescription
titlestringβ€”Section heading
fieldsArray<{ label: string; value: ReactNode }>β€”List of label/value pairs to render
columnsnumber2Number of columns in the grid
sxSxProps<Theme>β€”Root element style overrides