Mixins / foldkit-mixins-ui

SidebarLink

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

interface SidebarLink<Message = never> extends RowParts {
  readonly href: string
  readonly current?: boolean | undefined
  readonly action?: SidebarAction<Message> | undefined
  readonly items?: undefined
}

A row that leads to a page.

In the guides

Members

SidebarLink.href

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

readonly href: string

SidebarLink.current

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

readonly current?: boolean | undefined

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

SidebarLink.action

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

readonly action?: SidebarAction<Message> | undefined

At the row's end, shown while the row is hovered or holds focus, in place of its badge.

SidebarLink.items

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

readonly items?: undefined