UNPKG

@gzup/macaw-ui-4

Version:

Gzup's UI component library

28 lines (24 loc) 620 B
import React from "react"; export interface SidebarMenuItem { label: string; id: string; ariaLabel?: string; children?: SidebarMenuItem[]; iconSrc?: string; url?: string; external?: boolean; onClick?: () => void; } export type CustomLinkComponent = React.ForwardRefExoticComponent<{ href?: string; onClick?: (...params: any) => void; className?: string; }>; export interface BaseSidebarProps { className?: string; menuItems: SidebarMenuItem[]; toolbar?: React.ReactNode; onMenuItemClick: (menuItem: SidebarMenuItem) => void; linkComponent?: CustomLinkComponent; logoHref?: string; }