UNPKG

@carbon/react

Version:

React components for the Carbon Design System

43 lines (42 loc) 1.32 kB
/** * Copyright IBM Corp. 2016, 2025 * * 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 PropTypes from 'prop-types'; import React from 'react'; export interface SideNavItemProps { /** * Provide a single icon as the child to `SideNavItem` to render in the * container */ children: React.ReactNode; /** * Provide an optional class to be applied to the containing node */ className?: string; /** * Specify if this is a large variation of the SideNavItem */ large?: boolean; } declare const SideNavItem: { ({ className: customClassName, children, large, }: SideNavItemProps): import("react/jsx-runtime").JSX.Element; propTypes: { /** * Provide a single icon as the child to `SideNavItem` to render in the * container */ children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>; /** * Provide an optional class to be applied to the containing node */ className: PropTypes.Requireable<string>; /** * Specify if this is a large variation of the SideNavItem */ large: PropTypes.Requireable<boolean>; }; }; export default SideNavItem;