Skip to content
PixiKit

Outline Nav

A progress outline for a course, guide or checklist. Groups of steps hang on a rail with a state marker each: the check draws itself, the connector fills, one highlight glides to the current row and the progress counts up.

pixikit.com/docs/app-ui/navigation/outline-nav

Customize

Collapsible
Show progress
Density
Loading

Props

19
NameTypeDefaultDescription
groupsOutlineGroup[]DEFAULT_GROUPSThe groups of steps, in order.
currentstringNoneThe id of the current item, when you hold the state.
defaultCurrentstringNoneThe current item at first, when the outline holds the state.
onNavigate(id: string) => voidNoneCalled with the id of the item the user opens.
completedstring[]NoneThe ids of the finished items, when you hold the state. Item states are then derived from it.
defaultCompletedstring[]NoneThe finished items at first, when the outline holds the state.
onCompletedChange(ids: string[]) => voidNoneCalled with the finished ids when the user toggles a marker or presses Space on a row.
collapsiblebooleantrueGroups open and close; off keeps them all open.
openstring[]NoneThe ids of the open groups, when you hold the state.
defaultOpenstring[]NoneThe open groups at first; default is the group with the current item.
onOpenChange(ids: string[]) => voidNoneCalled with the ids of the open groups after a change.
showProgressbooleantrueShows the progress header and the count on each group.
titlestringNoneA heading above the progress.
subtitlestringNoneA line under the heading.
lockedHintstringNoneText shown on a locked row when it is hovered or focused.
onLockedSelect(id: string) => voidNoneCalled with the id of a locked item the user tries to open.
density"compact" | "comfortable""comfortable"The height of a row.
loadingbooleanfalseShows placeholder rows instead of the outline.
classNamestringNone

Related