import { Dock, Workbench } from '@hanzo/ui/product'
No examples yet.
export type Side = 'left' | 'right' | 'bottom'
export type Tab = {id: stringtitle: stringicon?: ReactNodecontent: ReactNode/** Closable unless a surface says otherwise; the console usually is not. */closable?: boolean}
export type DockProps = {side: Sidetabs: Tab[]/** Controlled active tab; omit and the dock keeps its own. */activeId?: stringdefaultActiveId?: stringonActivate?: (id: string) => voidonClose?: (id: string) => void/** End of the strip — the surface's own control, e.g. a new-tab menu. */actions?: ReactNode/** Extent across the docked edge: width for left/right, height for bottom. */size?: numberonResize?: (size: number) => voidminSize?: numbermaxSize?: number}
export type WorkbenchProps = {left?: Omit<DockProps, 'side'>right?: Omit<DockProps, 'side'>bottom?: Omit<DockProps, 'side'>/** The center view — the work itself, and the lowest sheet. */children: ReactNode}