Skip to content
PixiKit

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
NameTypeDefaultDescription
titlestring"Members"The heading text.
descriptionstringNoneA line of quiet text under the title.
countnumberNoneA quiet number after the title; it rolls when it changes.
badgestringNoneA small label after the title.
actionsReactNodeNoneButtons or links on the right side.
tabsSectionTab[]NoneTabs under the title, or on its row.
tabstringNoneThe open tab's id, when you hold the state.
defaultTabstringNoneThe tab open at first, when the bar holds the state.
onTabChange(id: string) => voidNoneCalled 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.
searchbooleanfalseShows a search field; it folds into an icon when the bar is narrow.
searchValuestringNoneThe search text, when you hold the state.
onSearchChange(value: string) => voidNoneCalled with the search text as it changes.
searchPlaceholderstring"Search"Placeholder, and the name screen readers read for the field.
dividerbooleanfalseDraws a line along the bottom edge.
surface"plain" | "card""plain"`card` pads the bar and boxes it, for the heading of a card.
level2 | 3 | 42Which heading element the title is: h2, h3 or h4.
classNamestringNone

More headings blocks in Pro

View all

Related