UNPKG

lightswind

Version:

A collection of beautifully crafted React Components, Blocks & Templates for Modern Developers. Create stunning web applications effortlessly by using our 160+ professional and animated react components.

43 lines (42 loc) 2.8 kB
import * as React from "react"; interface SidebarContextType { expanded: boolean; setExpanded: (expanded: boolean) => void; activeMenuItem: string | null; setActiveMenuItem: (id: string | null) => void; } interface SidebarProviderProps { defaultExpanded?: boolean; expanded?: boolean; onExpandedChange?: (expanded: boolean) => void; children: React.ReactNode; } export declare function SidebarProvider({ defaultExpanded, expanded: controlledExpanded, onExpandedChange, children, }: SidebarProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useSidebar(): SidebarContextType; interface SidebarProps extends React.HTMLAttributes<HTMLDivElement> { } export declare function Sidebar({ className, children, ...props }: SidebarProps): import("react/jsx-runtime").JSX.Element; interface SidebarTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { } export declare function SidebarTrigger({ className, ...props }: SidebarTriggerProps): import("react/jsx-runtime").JSX.Element; interface SidebarHeaderProps extends React.HTMLAttributes<HTMLDivElement> { } export declare function SidebarHeader({ className, children, ...props }: SidebarHeaderProps): import("react/jsx-runtime").JSX.Element; interface SidebarContentProps extends React.HTMLAttributes<HTMLDivElement> { } export declare function SidebarContent({ className, children, ...props }: SidebarContentProps): import("react/jsx-runtime").JSX.Element; export declare function SidebarGroup({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; export declare function SidebarGroupLabel({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; export declare function SidebarGroupContent({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; export declare function SidebarMenu({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; export declare function SidebarMenuItem({ className, children, value, ...props }: React.HTMLAttributes<HTMLDivElement> & { value?: string; }): import("react/jsx-runtime").JSX.Element; interface SidebarMenuButtonProps extends React.HTMLAttributes<HTMLDivElement> { asChild?: boolean; value?: string; isActive?: boolean; } export declare function SidebarMenuButton({ className, children, asChild, value, isActive: propIsActive, ...props }: SidebarMenuButtonProps): import("react/jsx-runtime").JSX.Element; export declare function SidebarFooter({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; export { Sidebar as SidebarRoot };