UNPKG

@chief-editor/ui

Version:

UI Component for chief editor

15 lines (14 loc) 573 B
import { HTMLAttributes } from 'react'; import { UnionOmit } from '@co-hooks/util'; import { ISidebarItem, SidebarType } from './SidebarTab'; export declare type SidebarPlacement = 'left' | 'right'; export interface ISidebar { tabs: ISidebarItem[]; type?: SidebarType; closeable?: boolean; placement?: SidebarPlacement; activeTab?: string; onActiveTabChange?: (activeTab?: string) => void; } export declare type ISidebarProps = UnionOmit<ISidebar, HTMLAttributes<HTMLDivElement>>; export declare function Sidebar(props: ISidebarProps): JSX.Element;