Capgemini / dcx-react-library

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

Blockquote #499

Closed Ibabalola closed 1 year ago

Ibabalola commented 1 year ago

As a developer I want to be able use a Blockquote component so that I can easily add a blockquote

The component should contain:

Blockquote behind the scenes is a blockquote tag:

<blockquote>
    <p>For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.</p>
    <footer>From WWF's website</footer>
  </blockquote>

 <blockquote class="blockquote-reverse">
    <p>For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.</p>
    <footer>From WWF's website</footer>
  </blockquote>

The final user will use in this way:

<Blockquote 
   class="blockquote-reverse"
   text="For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally."
   footer="From WWF's websit"
/>

and the outcome will be something like this:

 <blockquote class="blockquote-reverse">
    <p>For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.</p>
    <footer>From WWF's website</footer>
  </blockquote>

Tasks:

Please follow the below to create your branch

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

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