FormHeader
A standardised form or page header with a title, optional subtitle, and back navigation. Use at the top of create/edit form pages to maintain consistent visual structure.
π StorybookPreviewβ
Live previewβ Open in Storybook
Importβ
import { FormHeader } from "@xocialive/ui-components";
Basic usageβ
<FormHeader title="Create User" subtitle="Fill in the details below to add a new user." onBack={() => navigate(-1)} />
Propsβ
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | β | Page/form title |
subtitle | string | β | Descriptive sub-heading |
onBack | () => void | β | If provided, renders a back icon button |
actions | ReactNode | β | Extra controls in the trailing corner (e.g. a save button) |
sx | SxProps<Theme> | β | Root element style overrides |