import React, { FC } from 'react'; import { IconProps, IconPropsStrict } from '../Icon'; import { CollapsibleListItemProps } from '../../internal'; export interface SideNavItemPropsStrict { /** Controls if this is the currently active item in SideNav */ active?: boolean; /** Adds one or more classnames for an element */ className?: string; children?: React.ReactNode; /** * If provided, item to be rendered as collapsible menu (accordion). * In this case one nested SideNav must be provided inside children. */ collapsible?: CollapsibleListItemProps['collapsible'] | true; /** Indicates whether the SideNav.Item is disabled or not. */ disabled?: boolean; /** Add a href attribute so right click context menus work (open in new tab, etc) */ href?: string; /** Name of icon to render on right side of SideNav.Item */ icon?: IconPropsStrict['name'] | IconProps; /** Action for when SideNav.Item is clicked */ onClick?: (e: React.SyntheticEvent) => void; /** To be rendered on the right side of SideNav.Item */ prefix?: React.ReactElement; /** To be rendered on the left side of SideNav.Item */ suffix?: React.ReactElement; } export interface SideNavItemProps extends SideNavItemPropsStrict { /** Unstrict Props */ [propName: string]: any; } export declare const SideNavItem: FC; export declare const SideNavItemContext: React.Context;