@carbon/react
Version:
React components for the Carbon Design System
40 lines (39 loc) • 1.45 kB
TypeScript
/**
* 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 OrderedListProps extends ComponentProps<'ol'> {
nested?: boolean | undefined;
native?: boolean | undefined;
isExpressive?: boolean | undefined;
}
declare function OrderedList({ className, nested, native, isExpressive, ...other }: OrderedListProps): import("react/jsx-runtime").JSX.Element;
declare namespace OrderedList {
var propTypes: {
/**
* Provide list items to be rendered in the ordered list
*/
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
/**
* Provide an optional className to be applied to the containing <ol> node
*/
className: PropTypes.Requireable<string>;
/**
* Specify whether this ordered list expressive or not
*/
isExpressive: PropTypes.Requireable<boolean>;
/**
* Specify whether this ordered list should use native list styles instead of custom counter
*/
native: PropTypes.Requireable<boolean>;
/**
* Specify whether this ordered list is nested inside of another nested list
*/
nested: PropTypes.Requireable<boolean>;
};
}
export default OrderedList;