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.
π StorybookPreviewβ
Live previewβ Open in Storybook
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β
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | β | Section heading |
fields | Array<{ label: string; value: ReactNode }> | β | List of label/value pairs to render |
columns | number | 2 | Number of columns in the grid |
sx | SxProps<Theme> | β | Root element style overrides |