import type { SidebarItemProps } from "./Sidebar.types"; /** * Componente item de navegación del Sidebar * * @description * Item individual de navegación dentro del sidebar. * Renderiza un `` por defecto, pero puede ser cualquier elemento * o componente (ej: React Router Link, Next.js Link). * * Características: * - Soporta iconos y labels * - Gestiona estados de hover y focus * - Se registra automáticamente para navegación por teclado * - Aplica data attributes para styling * - Soporta render props para control total * - Compatible con React Router, Next.js, etc. via prop `as` * - Label oculto automáticamente cuando sidebar está colapsado (via CSS container queries) * * @example * ```tsx * // Uso básico * } * label="Home" * /> * ``` * * @example * ```tsx * // Con React Router * } * label="Dashboard" * /> * ``` * * @example * ```tsx * // Con Next.js Link * } * label="Profile" * /> * ``` * * @example * ```tsx * // Con render props * * {({ focused, hovered, disabled }) => ( *
* * Settings *
* )} *
* ``` * * @example * ```tsx * // Con callbacks * } * label="Analytics" * onHover={() => prefetchAnalytics()} * onClick={() => trackNavigation('analytics')} * /> * ``` */ export declare const SidebarItem: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=SidebarItem.d.ts.map