smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Svelte · Workspace

PhoneBottomBar

Phone bottom bar: 56px plus the safe-area inset, an icon and a short label per item. Items are data: a link (`href`) or a button (`onclick`), with an active state, an optional count badge, and an optional dot. Render it in AdminShell's `phoneBottomBar` snippet: the shell hides it while a form's action bar is on screen or the keyboard is open.

Public export

typescript
import { PhoneBottomBar } from '@happyvertical/smrt-svelte/workspace';
Import path
@happyvertical/smrt-svelte/workspace
Props
3
Props described
3 of 3
Bindable state
0
Callback events
0
Verified release
0.62.10

Props

NameTypeRequiredDescription
items(PhoneBottomBarItem | PhoneBottomBarEntry)[]YesBar entries, left to right.
iconComponentComponent<{ name: string; size?: number; }>NoRenders icon names (`icon` as a string, or `iconName`) that are not built-in shell icons, the same contract as `TenantNav`'s `iconComponent`: built-in names draw as shell icons, any other name goes to it with `size`.
labelstringNoAccessible name of the nav landmark (default "Main").

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation