Skip to content

KBreadcrumb

Displays the location of the current page, making it easier to browser back.

Install

bash
pnpm add @ikun-ui/breadcrumb @ikun-ui/breadcrumb-item
bash
yarn add @ikun-ui/breadcrumb @ikun-ui/breadcrumb-item
bash
npm install @ikun-ui/breadcrumb @ikun-ui/breadcrumb-item

Basic usage

In KBreadcrumb, each KBreadcrumbItem is a tag that stands for every level starting from homepage. This component has a String attribute separator, and it determines the separator. Its default value is '/'.

Icon separator

Set separatorIcon to use KIcon as the separator, it will cover separator.

NameTypeDefaultDescription
separatorstring/separator character
separatorIconstring''The class name of the icon, following the unocss standard.
clsstring''Additional class for component
attrsRecord<string, string>{}Additional attributes
NameDescription
defaultCustomize default content
NameTypeDefaultDescription
hrefstring''The URL that the hyperlink points to, same as href
clsstring''Additional class for component
attrsRecord<string, string>{}Additional attributes
NameDescription
defaultCustomize default content

MIT Licensed