From 8ac755e0241818dc62ff2837cfe3109aab42a50f Mon Sep 17 00:00:00 2001 From: pereag Date: Mon, 26 Feb 2024 16:48:21 +0100 Subject: [PATCH] feat: add itemList --- docs/components/01-item-list.mdx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/components/01-item-list.mdx b/docs/components/01-item-list.mdx index 3eebf33..5a07d22 100644 --- a/docs/components/01-item-list.mdx +++ b/docs/components/01-item-list.mdx @@ -5,8 +5,8 @@ import { GitHubLogo } from '../../src/icons/GitHubLogo'; , }, ]} @@ -29,9 +29,16 @@ import { GitHubLogo } from '../../src/icons/GitHubLogo'; ## Props -ItemList takes a `` generic type that extends `Record`, to be used by [ActionRowOverflow](./action-row-overflow). - | Name | Type | Default | Description | | ----------------- | --------- | ------- | ------------------------------------------------------------------------------ | -| items | `IItem[]` | | An array of elements of type IItem that allows you to populate the list items. | -| ... | - | - | extends [`ICardListProps`](./card-list#props) | +| items | `IItem[]` | - | An array of elements of type IItem that allows you to populate the list items. | +| ... | - | - | Extends [`ICardListProps`](./card-list#props) | + +## IItem + +| Attribute | Type | Description | +| ----------------- | -------- | --------------------------------------- | +| color | `string` | Color displayed to the left of the text | +| description | `string` | Element below the title | +| details | `string` | Element element below details | +| title | `string` | Item title |