UNPKG

@carbon/react

Version:

React components for the Carbon Design System

35 lines (34 loc) 1.23 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 { type ComponentProps } from 'react'; export interface UnorderedListProps extends ComponentProps<'ul'> { nested?: boolean | undefined; isExpressive?: boolean | undefined; } declare function UnorderedList({ className, nested, isExpressive, ...other }: UnorderedListProps): import("react/jsx-runtime").JSX.Element; declare namespace UnorderedList { var propTypes: { /** * Specify a collection of ListItem's to be rendered in the UnorderedList */ children: PropTypes.Requireable<PropTypes.ReactNodeLike>; /** * Specify an optional className to be applied to the underlying `<ul>` node */ className: PropTypes.Requireable<string>; /** * Specify whether this ordered list expressive or not */ isExpressive: PropTypes.Requireable<boolean>; /** * Specify whether the list is nested, or not */ nested: PropTypes.Requireable<boolean>; }; } export default UnorderedList;