@leafygreen-ui/ordered-list
v3.0.10
Published
LeafyGreen UI Kit Ordered List
Keywords
Readme
Ordered List
View on MongoDB.design
Installation
PNPM
pnpm add @leafygreen-ui/ordered-listYarn
yarn add @leafygreen-ui/ordered-listNPM
npm install @leafygreen-ui/ordered-listExample
<OrderedList>
<OrderedListItem
title="Title"
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna."
/>
<OrderedListItem
title="Title"
description={
<>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna. <Link>Learn more.</Link>
</>
}
/>
<OrderedListItem
title="Title"
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna."
/>
</OrderedList>OrderedList
| Prop | Type | Description | Default |
| ---------- | --------- | ------------------------------------------------ | ------- |
| darkMode | boolean | Determines if the component renders in dark mode | false |
OrderedListItem
| Prop | Type | Description | Default |
| ----------- | ----------------- | ------------------------------------------------------------------- | ------- |
| title | React.ReactNode | The title of the list item. | |
| description | React.ReactNode | The description of the list item. This will render below the title. | |
