/** * Copyright IBM Corp. 2016, 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { type WeakValidationMap } from 'prop-types'; import React, { type ElementType, type JSX } from 'react'; import { type LinkProps } from './Link'; export type SideNavMenuItemProps = LinkProps & { /** * Specify the children to be rendered inside of the `SideNavMenuItem` */ children?: React.ReactNode; /** * Provide an optional class to be applied to the containing node */ className?: string; /** * Optionally specify whether the link is "active". An active link is one that * has an href that is the same as the current page. When `true`, the link * also receives `aria-current="page"` unless `aria-current` is passed * explicitly. */ isActive?: boolean; /** * The `href` for the rendered link. */ href?: string; /** * Optional component to render instead of default Link */ as?: ElementType; }; export interface SideNavMenuItemComponent { (props: SideNavMenuItemProps): JSX.Element | null; displayName?: string; propTypes?: WeakValidationMap>; } declare const SideNavMenuItem: SideNavMenuItemComponent; export default SideNavMenuItem;