Skip to content

KPageHeader

If path of the page is simple, it is recommended to use PageHeader instead of the Breadcrumb.

Install

bash
pnpm add @ikun-ui/page-header
bash
yarn add @ikun-ui/page-header
bash
npm install @ikun-ui/page-header

Basic usage

Additional operation section

The header can be as complicated as needed, you may add additional sections to the header, to allow rich interactions.

Main content

Sometimes we want the head to show with some co-responding content, we can utilize the default slot for doing so.

Page header allows you to add breadcrumbs for giving route information to the users by breadcrumb slot.

Custom icon

You can customize the icon through the slot or icon attribute

No icon

PageHeader without icon is also possible

Complete example

PageHeader Props

NameTypeDefaultDescription
iconstringi-carbon-arrow-leftIcon component of page header.following the unocss standard
titlestring''Title of page header.
contentstring''Content of page header.
clsstring''Additional class for component
attrsany{}Additional attributes

PageHeader Events

NameDescriptionType
backTriggers when right side is clicked.()=> void

PageHeader Slots

NameDescription
defaultMain content.
titleContent of the title.
iconContent of the icon.
contentContent.
extraExtra.
breadcrumbContent as breadcrumb.

MIT Licensed