@molecule/app-detail-header-solid
Feature · detail-header · App (browser) · v1.1.2 · Apache-2.0
Detail-page top bar with title, subtitle, status, actions, breadcrumb, optional search
npm install @molecule/app-detail-header-solidHow it works
@molecule/app-detail-header-solid is a ready-made detail-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 { DetailHeader } from '@molecule/app-detail-header-solid'
import { Button } from '@molecule/app-ui-solid'
import { StatusBadge } from '@molecule/app-status-badge-solid'
export function OrderHeader() {
return (
<DetailHeader
title="Project Alpha"
subtitle="Last updated 2 hours ago"
status={<StatusBadge kind="success">Active</StatusBadge>}
actions={
<Button variant="solid" onClick={handleEdit}>
Edit
</Button>
}
meta={<span>Owner: Alice</span>}
sticky
/>
)
}Works with: @molecule/app-solid, @molecule/app-ui, @molecule/app-ui-solid
Reference
Solid detail-page header.
Exports DetailHeader — the Solid counterpart of
@molecule/app-detail-header-react with the same props and the same DOM:
leading slot + title/subtitle + status + right-aligned actions, with an
optional meta row and an optional search slot. Different from
<PageHeader> (top of list/index pages) in prioritising status + search +
stickiness for long-scrolling detail screens. All slots are JSX props —
compose any components.
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 { DetailHeader } from '@molecule/app-detail-header-solid'
import { Button } from '@molecule/app-ui-solid'
import { StatusBadge } from '@molecule/app-status-badge-solid'
export function OrderHeader() {
return (
<DetailHeader
title="Project Alpha"
subtitle="Last updated 2 hours ago"
status={<StatusBadge kind="success">Active</StatusBadge>}
actions={
<Button variant="solid" onClick={handleEdit}>
Edit
</Button>
}
meta={<span>Owner: Alice</span>}
sticky
/>
)
}
Type
feature
Installation
npm install @molecule/app-detail-header-solid @molecule/app-solid @molecule/app-ui @molecule/app-ui-solid solid-js
API
Interfaces
DetailHeaderProps
Props accepted by the DetailHeader component.
interface DetailHeaderProps {
/** Primary heading. */
title: JSX.Element
/** Optional subtitle shown below the title. */
subtitle?: JSX.Element
/** Optional leading avatar / icon / logo. */
leading?: JSX.Element
/** Optional status indicator (e.g. `<StatusBadge>` or `<StatusPill>`). */
status?: JSX.Element
/** Right-aligned actions. */
actions?: JSX.Element
/** Optional metadata row rendered below the main row (chips / secondary fields). */
meta?: JSX.Element
/** Optional search slot (rendered to the left of the actions). */
search?: JSX.Element
/** Whether to render with a sticky-top style (position: sticky). */
sticky?: boolean
/** Extra classes. */
className?: string
/** `data-mol-id` for AI-agent selectors. */
dataMolId?: string
}
Functions
DetailHeader(props)
Header row for a detail page — leading slot + title/subtitle + status + actions, with optional meta row and search slot.
Different from <PageHeader> (used at the top of list/index pages)
in prioritising status + search + stickiness.
function DetailHeader(props: DetailHeaderProps): JSX.Element
props— Component props (seeDetailHeaderProps).
Returns: The rendered detail header.
Injection Notes
Requirements
Peer dependencies:
@molecule/app-solid^3.14.0 || ^4.0.0@molecule/app-ui^1.0.1@molecule/app-ui-solid^1.1.0solid-js^1.8.0
Runtime Dependencies
-
@molecule/app-solid -
@molecule/app-ui -
@molecule/app-ui-solid -
solid-js -
stickyappliesposition: sticky; top: 0but adds NO background — pass a surface class viaclassName(e.g. your ClassMap's surface helper) or content will scroll visibly through the header. -
There is no breadcrumb prop; put a breadcrumb in the
leadingslot or render one above the header (see@molecule/app-detail-page-layout-react, which has a breadcrumb slot). -
Styling resolves through
getClassMap()— requires a wired ClassMap bond (standard molecule app setup). No text of its own, so no locale bond is needed; translate the values you pass in.