Section Bar
The heading of a section or card. A title with a rolling count and a badge, tabs with a sliding marker, a search that folds into an icon when the bar is narrow, and actions that wrap under the title.
pixikit.com/docs/app-ui/headings/section-bar
Customize
Count
Tabs placement
Search
Divider
Surface
Level
Props
18| Name | Type | Default | Description |
|---|---|---|---|
title | string | "Members" | The heading text. |
description | string | None | A line of quiet text under the title. |
count | number | None | A quiet number after the title; it rolls when it changes. |
badge | string | None | A small label after the title. |
actions | ReactNode | None | Buttons or links on the right side. |
tabs | SectionTab[] | None | Tabs under the title, or on its row. |
tab | string | None | The open tab's id, when you hold the state. |
defaultTab | string | None | The tab open at first, when the bar holds the state. |
onTabChange | (id: string) => void | None | Called with the id of the tab the user opens. |
tabsPlacement | "below" | "inline" | "below" | `below` puts the tabs under the title, `inline` on the title's row. |
search | boolean | false | Shows a search field; it folds into an icon when the bar is narrow. |
searchValue | string | None | The search text, when you hold the state. |
onSearchChange | (value: string) => void | None | Called with the search text as it changes. |
searchPlaceholder | string | "Search" | Placeholder, and the name screen readers read for the field. |
divider | boolean | false | Draws a line along the bottom edge. |
surface | "plain" | "card" | "plain" | `card` pads the bar and boxes it, for the heading of a card. |
level | 2 | 3 | 4 | 2 | Which heading element the title is: h2, h3 or h4. |
className | string | None |