Skip to main content

NativeHeader

One header component for every surface. In a mobile or desktop shell it configures the native header (through the SDK’s setHeader and useHeaderAction) and renders nothing in the page. In a browser and on TV it renders an in-page Header.
string
Header title.
{ icon: string; id?: string; onPress: () => void }
Right-hand button. icon is an Ionicons name for the native bar.
string
Native bar colors (mobile and desktop).
() => void
Browser and TV fallback: show a back chevron.
boolean
Browser and TV fallback: show the close button.

TabBar

A fixed bottom tab bar. Like Header, it is safe-area aware and renders a spacer of its own height, so content never hides behind it.
Each item has key, label?, icon? (an icon name or node) and badge? (a number, or true for a dot). Also takes haptic? (default true).

Tabs

In-page tabs, separate from the bottom TabBar.
A fixed side navigation that can collapse to icons only. Place it as the first child of a flex row; it reserves its own width.
number
default:"244"
Expanded width in px.
number
default:"68"
Icon-only width in px.
…
Controlled or uncontrolled collapsed state.
boolean
While collapsed, expand temporarily on hover as an overlay, without moving the content.
boolean
The same on focus, for keyboard and TV remote.
'left' | 'right'
default:"'left'"
Edge to pin to.
number | string
default:"0"
Offsets, to sit under a top bar.
SidebarItem takes icon?, label, active? and href?. While collapsed, the label becomes the item’s tooltip. SidebarToggle collapses and expands the sidebar. On narrow screens, use a TabBar instead:
Each crumb has label and either href or onClick. The last one is the current page.
For a web page that needs a tab bar on a phone and a sidebar on a computer, use AppShell. It switches between them in CSS.

PlatformMenu

Shows the visitor’s own cskn menu on a user page while it is mounted, and hides it again when it unmounts. It draws nothing of its own: the platform draws the menu, and this component tells it where and how. Off a user page it renders nothing. See Platform menu for what the menu contains.
'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'inline'
default:"'top-right'"
A corner of the viewport, or inline: the button sits right where you render the component, like any other element.
boolean
default:"true"
Use your app’s theme: colors, radius and font come from the kit’s tokens, and light or dark follows the provider. style wins over it key by key.
PlatformMenuStyle
Colors and shape. See Style.
({ id, item }) => void
One of items was chosen.
(open: boolean) => void
The panel opened or closed.
string / CSSProperties
For inline: applied to the wrapper the button is put in.
It also takes sections, items, offset, zIndex, size, variant and labels, with the same meaning as the SDK options. Mount only one at a time; the last one configured wins.