Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SideBarOpen

SideBarOpen requests that a sidebar expand.

Usage

import { SideBarOpen } from "@artisansdk/workbench"

workbench.emit(new SideBarOpen({ target: "secondary" }))

Payload

type Options = {
    target: "primary" | "secondary"
}

If target is omitted, the event defaults to the primary sidebar.

Behavior

The React Sidebar component listens for this event and expands the matching sidebar when it is received.