Svelte · Workspace
ShellSectionMenu
A section's entries as a menu: one row per navigation item, in the layout's order with the user's renames (hidden entries are left out). Used on a section's own page when the shell shows only sections (`navMode: 'sections'`). Hosts add per-row content with `meta(entry)` (e.g. "8 records") and `actions(entry)` (e.g. a "New course" link).Public export
typescript
import { ShellSectionMenu } from '@happyvertical/smrt-svelte/workspace';- Import path
@happyvertical/smrt-svelte/workspace- Props
- 8
- Props described
- 8 of 8
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
sectionIdstringYesThe section's id (`ShellNavGroup.id ?? heading`).controllerShellLayoutControllerNoThe layout API; defaults to the nearest `AppShell`'s.aria-labelstringNoAccessible name for the list (default "<section> entries").iconComponentComponent<{ name: string; size?: number; }>NoRenders host icon names, as for `TenantNav`.metaSnippet<[ShellSectionMenuEntry]>NoContent after the label, e.g. a record count.actionsSnippet<[ShellSectionMenuEntry]>NoTrailing links or buttons, e.g. "New <noun>". Not shown while editing.layout'list' | 'cards'No`list` (default): compact rows. `cards`: a responsive grid of cards, each with a large icon, the label, the item's `description`, then `meta` and `actions` along the bottom.onNavigate() => voidNoCalled when the user follows a row link.Bindable state
This component has no bindable public state.
Callback events
onNavigate() => void