Skip to content
PixiKit

Trio Shell

A three pane workspace for mail or tickets: navigation, a list and a detail, plus an optional inspector. The dividers resize by drag or keys, the inspector slides in, and on narrow widths one pane shows at a time.

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

Customize

Search
Nav style
Contained
Height640px
Default list width320px
Default inspector width300px
Min list width240px
Max list width520px
Default inspector open

Props

35
NameTypeDefaultDescription
navTrioNavItem[]RequiredThe main links, in order.
groupsTrioGroup[][]Secondary labelled lists under the main links, such as labels or teams.
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 item the user picks.
brandReactNodeNoneThe logo or name at the top of the navigation. Put the mark first: it is what stays in the rail.
userTrioUserNoneThe signed-in person.
userMenuMenuEntry[]NoneThe rows of the menu the user block opens.
searchbooleanfalseShows a search button with its shortcut hint in the navigation.
onSearch() => voidNoneCalled when the search button is pressed or Cmd or Ctrl plus K is used inside the shell.
actionsReactNodeNoneExtra controls at the end of the list header, such as a compose button.
childrenReactNodeNoneThe detail pane: the item chosen in the list.
listReactNodeNoneThe list pane: rows to choose from.
listTitlestringNoneThe heading of the list pane.
inspectorReactNodeNoneThe inspector pane, shown beside the detail.
inspectorTitlestringNoneThe heading of the inspector pane.
navStyle"rail" | "sidebar""sidebar"The navigation as an icon rail with tooltips, or a full sidebar.
containedbooleanfalseKeeps drawers, sheets, 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.
listWidthnumberNoneThe list width in px, when you hold the state.
defaultListWidthnumber320The list width in px at first, when the shell holds the state. Double click on its divider returns to it.
onListWidthChange(width: number) => voidNoneCalled with the next list width.
inspectorWidthnumberNoneThe inspector width in px, when you hold the state.
defaultInspectorWidthnumber300The inspector width in px at first, when the shell holds the state. Double click on its divider returns to it.
onInspectorWidthChange(width: number) => voidNoneCalled with the next inspector width.
minListWidthnumber240The smallest list width in px.
maxListWidthnumber520The largest list width in px.
persistKeystringNoneRemembers the widths in local storage under this key.
inspectorOpenbooleanNoneWhether the inspector is open, when you hold the state.
defaultInspectorOpenbooleanfalseWhether the inspector starts open, when the shell holds the state.
onInspectorOpenChange(open: boolean) => voidNoneCalled with the next inspector state.
detailOpenbooleanNoneOn a compact width: whether the detail covers the list. Set it when an item is chosen.
onDetailOpenChange(open: boolean) => voidNoneCalled when the Back button closes the detail.
breakpointsTrioBreakpoints{ compact: 640, medium: 980 }The widths where the layout changes: all panes, then rail and sheet, then one pane.
classNamestringNone

Related