UNPKG

@grafana/ui

Version:
26 lines (25 loc) 1.23 kB
import { type ReactNode } from 'react'; import { SidebarPaneHeader } from './SidebarPaneHeader'; import { type SidebarContextValue } from './useSidebar'; export interface Props { children?: ReactNode; contextValue: SidebarContextValue; } declare function SidebarComp({ children, contextValue }: Props): import("react/jsx-runtime").JSX.Element; interface SiderbarToolbarProps { children?: ReactNode; } declare function SiderbarToolbar({ children }: SiderbarToolbarProps): import("react/jsx-runtime").JSX.Element; declare function SidebarDivider(): import("react/jsx-runtime").JSX.Element; interface SidebarOpenPaneProps { children?: ReactNode; } declare function SidebarOpenPane({ children }: SidebarOpenPaneProps): import("react/jsx-runtime").JSX.Element; export declare const Sidebar: typeof SidebarComp & { Toolbar: typeof SiderbarToolbar; Button: import("react").ForwardRefExoticComponent<import("./SidebarButton").Props & import("react").RefAttributes<HTMLButtonElement>>; OpenPane: typeof SidebarOpenPane; Divider: typeof SidebarDivider; PaneHeader: typeof SidebarPaneHeader; }; export { useSidebar, useSidebarContext, type SidebarContextValue, type SidebarPosition } from './useSidebar';