Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
113 stars 6 forks source link

Description List #502

Closed Ibabalola closed 10 months ago

Ibabalola commented 1 year ago

As a developer I want to be able use a DescriptionList component so that I can easily add keyboard shortcuts

The component should contain:

DescriptionList behind the scenes is a dl tag:

<dl>
    <dt>Coffee</dt>
    <dd>- black hot drink</dd>
    <dt>Milk</dt>
    <dd>- white cold drink</dd>
</dl> 

The final user will use in this way:

<DescriptionList>
 <Term>Coffee</Term>
 <Detail>- black hot drink</Detail>
 <Term>Milk</Term>
 <Detail>- white cold drink</Detail>
</DescriptionList>

and the outcome will be something like this:

<dl>
    <dt>Coffee</dt>
    <dd>- black hot drink</dd>
    <dt>Milk</dt>
    <dd>- white cold drink</dd>
</dl> 

Tasks:

Please follow the below to create your branch

git checkout release/0.8
git pull
git checkout -b 'feature/description-list'
daniele-zurico commented 10 months ago

closed by #522