Capgemini / dcx-react-library

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

Preformatted Text #503

Closed Ibabalola closed 1 year ago

Ibabalola commented 1 year ago

As a developer I want to be able use a PreformattedText component so that I can easily add a preformatted text element

The component should contain:

PreformattedText behind the scenes is a pre tag:

<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks.
</pre>

The final user will use in this way:

<PreformattedText class="">Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks.</PreformattedText>

and the outcome will be something like this:

<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks.
</pre>

Tasks:

Please follow the below to create your branch

git checkout release/0.8
git pull
git checkout -b 'feature/pre'
daniele-zurico commented 1 year ago

closed by https://github.com/Capgemini/dcx-react-library/pull/511