Skip to main content

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.

πŸ“– Storybook

Preview​

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​

PropTypeDefaultDescription
titlestringβ€”Page/form title
subtitlestringβ€”Descriptive sub-heading
onBack() => voidβ€”If provided, renders a back icon button
actionsReactNodeβ€”Extra controls in the trailing corner (e.g. a save button)
sxSxProps<Theme>β€”Root element style overrides