Props for providing functions to open and close any sidebar.

interface SidebarProps {
    close: (() => void);
    open: boolean;
}

Properties

Properties

close: (() => void)

Callback function to close the sidebar.

Type declaration

    • (): void
    • Returns void

open: boolean

Indicates whether the sidebar is open or closed.

Generated using TypeDoc