@molecule/app-wiki-page-header-vue
Feature · wiki-page-header · App (browser) · v1.1.2 · Apache-2.0
Wiki / docs page header with title, breadcrumbs, version, last-updated, edit/history actions, tags
npm install @molecule/app-wiki-page-header-vueHow it works
@molecule/app-wiki-page-header-vue is a ready-made wiki-page-header feature for the app (browser) side. It composes the core interfaces it needs, so it works with whichever providers your app has bonded.
import { h } from 'vue'
import { WikiPageHeader } from '@molecule/app-wiki-page-header-vue'
h(WikiPageHeader, {
title: 'Getting Started',
breadcrumb: () => [h('span', 'Docs / Guides')],
version: 'v3',
updatedAt: '2 days ago',
updatedBy: 'Alice',
tags: () => [h('span', 'guide'), h('span', 'setup')],
onEdit: () => console.log('edit'),
onHistory: () => console.log('history'),
})Works with: @molecule/app-ui, @molecule/app-ui-vue, @molecule/app-vue
Reference
Wiki / docs page header — the Vue counterpart of
@molecule/app-wiki-page-header-react, with the same props and the same
DOM for the same input.
Exports <WikiPageHeader> — breadcrumb + title + meta row (version,
updated time/by, tags) + Edit/History action buttons.
Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit
src/index.tsJSDoc, not this file.
Quick Start
import { h } from 'vue'
import { WikiPageHeader } from '@molecule/app-wiki-page-header-vue'
h(WikiPageHeader, {
title: 'Getting Started',
breadcrumb: () => [h('span', 'Docs / Guides')],
version: 'v3',
updatedAt: '2 days ago',
updatedBy: 'Alice',
tags: () => [h('span', 'guide'), h('span', 'setup')],
onEdit: () => console.log('edit'),
onHistory: () => console.log('history'),
})
Type
feature
Installation
npm install @molecule/app-wiki-page-header-vue @molecule/app-ui @molecule/app-ui-vue @molecule/app-vue vue
API
Interfaces
WikiPageHeaderProps
Props accepted by the WikiPageHeader component (React's names).
interface WikiPageHeaderProps {
/** Page title. */
title: VNodeChild
/** Optional breadcrumb trail above the title. */
breadcrumb?: VNodeChild | null
/** Version label ("v23", "rev. 2025-04-12"). */
version?: VNodeChild | null
/** Last-updated display (relative or absolute). */
updatedAt?: VNodeChild | null
/** Updated-by author display. */
updatedBy?: VNodeChild | null
/** Tag chips. */
tags?: VNodeChild | null
/** Called when the user clicks Edit. */
onEdit?: () => void
/** Called when the user clicks History. */
onHistory?: () => void
/** Optional extra right-side actions. */
extraActions?: VNodeChild | null
/** Extra classes. */
className?: string
}
Constants
WikiPageHeader
Wiki / docs / knowledge-base page header — breadcrumb + title + meta row (version, updated time/by, tags) + Edit/History action buttons.
Vue counterpart of @molecule/app-wiki-page-header-react's
WikiPageHeader — the same props (React names), the same DOM for the same
input. The Edit / History buttons render only when onEdit / onHistory
are provided; their labels and the 'Updated' meta prefix go through
useTranslation() with React's exact keys and English defaults.
const WikiPageHeader: DefineComponent<
ExtractPropTypes<{
title: { type: null; required: true }
breadcrumb: null
version: null
updatedAt: null
updatedBy: null
tags: null
extraActions: null
onEdit: PropType<() => void>
onHistory: PropType<() => void>
className: StringConstructor
}>,
() => VNode,
{},
{},
{},
ComponentOptionsMixin,
ComponentOptionsMixin,
{},
string,
PublicProps,
Readonly<
ExtractPropTypes<{
title: { type: null; required: true }
breadcrumb: null
version: null
updatedAt: null
updatedBy: null
tags: null
extraActions: null
onEdit: PropType<() => void>
onHistory: PropType<() => void>
className: StringConstructor
}>
> &
Readonly<{}>,
{},
{},
{},
{},
string,
ComponentProvideOptions,
true,
{},
any
>
props— Component props (seeWikiPageHeaderPropsin./types.js).
Returns: The header component.
Injection Notes
Requirements
Peer dependencies:
@molecule/app-ui^1.0.1@molecule/app-ui-vue^1.1.0@molecule/app-vue^3.13.0 || ^4.0.0vue^3.4.0
Runtime Dependencies
@molecule/app-ui@molecule/app-ui-vue@molecule/app-vuevue
The Edit / History buttons render only when onEdit / onHistory are
provided. Their labels and the 'Updated' meta prefix go through
t('wiki.edit') / t('wiki.history') / t('wiki.updatedAt') with
English fallbacks — translations live in
@molecule/app-locales-wiki-page-header, which exists on disk but is not
yet registered in mlcl's registry; register it or add the keys to app
translations. Everything else (breadcrumb, version, updatedAt/By, tags,
extraActions) is a pre-formatted node slot — pass it as a prop or as the
same-named Vue slot (the prop wins when both are given). Props (documented
on the exported WikiPageHeaderProps interface): title, breadcrumb,
version, updatedAt, updatedBy, tags, onEdit, onHistory, extraActions,
className.
Translations
Translation strings are provided by @molecule/app-locales-wiki-page-header.