Skip to content

FormHeader

A section header for form pages that automatically generates "Create {title}" or "Edit {title}" text based on the current mode. Includes an actions slot for buttons.

Create Mode

Demo

Create Patient

Edit Mode

Edit Mode

Edit Patient

Custom Title (validtitle: false)

Custom Title

Patient Profile — Advanced Settings

Props

Props
PropTypeDefaultDescription
titlerequiredstringEntity name used to generate the header text (e.g. 'User', 'Patient').
isEditModerequiredbooleanWhen true renders 'Edit {title}', when false renders 'Create {title}'.
validtitlebooleantrueWhen false, renders the title prop as-is without Create/Edit prefix.

Slots

Slots
SlotDescription
actionsContent rendered on the right side of the header — use for action buttons like Save, Cancel, or History.

Built with VitePress