UNPKG

@carbon/react

Version:

React components for the Carbon Design System

33 lines (32 loc) 1.1 kB
/** * Copyright IBM Corp. 2016, 2023 * * 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 SideNavDetailsProps { children?: React.ReactNode; className?: string; title: string; } declare const SideNavDetails: { ({ children, className: customClassName, title, ...rest }: SideNavDetailsProps): import("react/jsx-runtime").JSX.Element; propTypes: { /** * Provide optional children to render in `SideNavDetails`. Useful for * rendering the `SideNavSwitcher` component. */ children: PropTypes.Requireable<PropTypes.ReactNodeLike>; /** * Optionally provide a custom class to apply to the underlying `<li>` node */ className: PropTypes.Requireable<string>; /** * Provide the text that will be rendered as the title in the component */ title: PropTypes.Validator<string>; }; }; export default SideNavDetails;