Skip to content

Edit Header ​

A header component specifically designed for edit pages, providing navigation and context information.

Usage ​

html
<edit-header 
  title="Edit User"
  :breadcrumb-items="breadcrumbItems"
  :show-save="true"
  @save="handleSave"
  @cancel="handleCancel"
></edit-header>

Props ​

PropTypeDefaultDescription
titlestringRequiredThe main title displayed in the header
breadcrumbItemsArray<BreadcrumbItem>[]Array of breadcrumb items for navigation
showSavebooleanfalseWhether to show the save button
showCancelbooleantrueWhether to show the cancel button
saveTextstring'Save'Text for the save button
cancelTextstring'Cancel'Text for the cancel button
loadingbooleanfalseLoading state for the save button

Events ​

EventPayloadDescription
savenoneEmitted when the save button is clicked
cancelnoneEmitted when the cancel button is clicked

Features ​

  • Breadcrumb Navigation: Supports multi-level breadcrumb navigation
  • Action Buttons: Configurable save and cancel buttons
  • Loading States: Built-in loading state for async operations
  • Responsive Design: Adapts to different screen sizes

Examples ​

Basic Edit Header ​

html
<edit-header 
  title="Edit Product"
  @save="saveProduct"
  @cancel="goBack"
></edit-header>

With Breadcrumbs ​

html
<edit-header 
  title="Edit User"
  :breadcrumb-items="[
    { text: 'Dashboard', to: '/dashboard' },
    { text: 'Users', to: '/users' },
    { text: 'Edit' }
  ]"
  :show-save="true"
  :loading="saving"
  @save="saveUser"
  @cancel="navigateToUsers"
></edit-header>

© Velocitech LTD. All rights reserved.

Build SaaS Products Without Limits.