UNPKG

@carbon/react

Version:

React components for the Carbon Design System

24 lines (23 loc) 816 B
/** * 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 { type ComponentProps } from 'react'; export type ListItemProps = Omit<ComponentProps<'li'>, 'ref'>; declare function ListItem({ className, children, ...other }: ListItemProps): import("react/jsx-runtime").JSX.Element; declare namespace ListItem { var propTypes: { /** * Specify the content for the ListItem */ children: PropTypes.Requireable<PropTypes.ReactNodeLike>; /** * Specify an optional className to apply to the underlying `<li>` node */ className: PropTypes.Requireable<string>; }; } export default ListItem;