Skip to content

Commit

Permalink
feat: update ItemList component to EventList component
Browse files Browse the repository at this point in the history
  • Loading branch information
pereag committed Feb 28, 2024
1 parent de874a4 commit 6f953ec
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 44 deletions.
30 changes: 30 additions & 0 deletions docs/components/01-event-list.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { GitHubLogo } from '../../src/icons/GitHubLogo';

# Event list

<Description
extendsInfo={[]}
importExample="import { EventList } from '@smile/react-front-kit';"
packageInfo={{
label: '@smile/react-front-kit',
link: 'https://www.npmjs.com/package/@smile/react-front-kit',
}}
sourceInfo={{
link: 'https://github.com/Smile-SA/react-front-kit/blob/main/packages/react-front-kit/src/Components/EventList/EventList.tsx',
}}
>
Simple item with a title, a color, a details section, and a description.
</Description>

## Storybook Docs

<StorybookEmbed storyId="3-custom-components-EventList--docs" height="820" />

## Props

| Name | Type | Default | Description |
| ----------------- | ----------- | ------- | --------------------------------------- |
| color | `string` | - | Color displayed to the left of the text |
| description | `ReactNode` | - | Element below the title |
| details | `ReactNode` | - | Element below details |
| title <required/> | `ReactNode` | - | Item title |
44 changes: 0 additions & 44 deletions docs/components/01-item-list.mdx

This file was deleted.

0 comments on commit 6f953ec

Please sign in to comment.