Skip to content

SideBarLink

SideBarLink: object

Type declaration

optional dropdownItems: SideBarLink[]

Dropdown items for dropdown links (Requires type: 'dropdown')

href

href: string

URL to redirect to

icon

icon: string

Icon to display for the link ( icon: ‘data:image/svg+xml;base64,PH…)

id

id: string

Unique link ID

minPermissionLevel

minPermissionLevel: string

Minimum permission level required to view the link (unknown/visitor/editor/admin)

text

text: string

Text to display for the link

type

type: "link" | "dropdown"

Type of link (link/dropdown)

Param

The unique identifier for the link

Param

The URL to redirect to

Param

The text to display for the link

Param

The minimum permission level required to view the link (unknown, visitor, editor, admin)

Param

The icon to display for the link ( see https://shoelace.style/components/icon )

Defined in

packages/studiocms_core/src/types/sideBarLinkType.ts:9