Skip to content
PixiKit

Deck Shell

A top navigation app frame. A marker glides to the current link, links that do not fit move into a More menu, the bar can slide away on scroll, and on a narrow frame the links open as a panel under the bar.

pixikit.com/docs/app-ui/shells/deck-shell

Customize

Search
Contained
Height640px
Tone
Link style
Overlap
Hide on scroll
Breakpoint760px
Content width

Props

26
NameTypeDefaultDescription
navDeckNavItem[]RequiredThe main links, in order. Links that do not fit move into a More menu.
groupsDeckGroup[][]Secondary labelled lists, shown in the collapsed panel.
currentstringNoneThe id of the current page, when you hold the state.
defaultCurrentstringNoneThe id of the current page at first, when the shell holds the state.
onNavigate(id: string) => voidNoneCalled with the id of the link the user picks.
brandReactNodeNoneThe logo or name at the start of the bar.
userDeckUserNoneThe signed-in person.
userMenuMenuEntry[]NoneThe rows of the menu the user button opens.
searchbooleanfalseShows a search button with its shortcut hint.
onSearch() => voidNoneCalled when the search button is pressed or Cmd or Ctrl plus K is used inside the shell.
actionsReactNodeNoneExtra controls in the bar, such as a notifications button.
childrenReactNodeNoneThe page.
containedbooleanfalseKeeps menus and tooltips inside the shell instead of on the page.
heightnumber | string640The height of the shell: px or any CSS length. It fills this, never the window.
tone"plain" | "muted" | "inverted""plain"The bar surface: the page colour, muted, or inverted.
linkStyle"underline" | "pill""underline"How the current link is marked: a line under it or a soft pill behind it.
titlestringNoneA page heading shown in a band under the bar.
titleActionsReactNodeNoneControls at the end of the heading band, such as a button.
overlapbooleanfalseMakes the heading band tall and tinted, and lets the page card rise over its lower edge.
secondaryDeckSecondaryItem[][]A second row of links under the bar.
secondaryCurrentstringNoneThe id of the current secondary link, when you hold the state.
onSecondaryNavigate(id: string) => voidNoneCalled with the id of the secondary link the user picks.
hideOnScrollbooleanfalseSlides the bar away when the page scrolls down and back when it scrolls up.
breakpointnumber760Below this width in px the links collapse into a panel under the bar.
contentWidth"full" | "contained""full"Centres the page in a maximum width.
classNamestringNone

More shells blocks in Pro

View all

Related