Mixins / foldkit-mixins-ui

SidebarLeaf

interface · packages/mixins-ui/src/sidebar.ts:72

interface SidebarLeaf extends Pick<
  RowContent,
  'label' | 'icon' | 'content' | 'trailing'
> {
  readonly href: string
  readonly current?: boolean | undefined
}

A link nested under a branch, with the same parts as a row but its id.

Members

SidebarLeaf.href

property · packages/mixins-ui/src/sidebar.ts:73

readonly href: string

SidebarLeaf.current

property · packages/mixins-ui/src/sidebar.ts:75

readonly current?: boolean | undefined

Whether it leads to the page shown, aria-current="page".