<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sampson Ovuoba</title>
    <description>The latest articles on DEV Community by Sampson Ovuoba (@speedwares).</description>
    <link>https://dev.to/speedwares</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F564593%2F001bfad3-0f0e-4d33-b080-efa34ccfeb72.jpg</url>
      <title>DEV Community: Sampson Ovuoba</title>
      <link>https://dev.to/speedwares</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/speedwares"/>
    <language>en</language>
    <item>
      <title>Visually building Tailwind CSS components using Flowbite and Daisy UI</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Wed, 14 Aug 2024 13:55:02 +0000</pubDate>
      <link>https://dev.to/devwares/visually-building-tailwind-css-components-using-flowbite-and-daisy-ui-9f7</link>
      <guid>https://dev.to/devwares/visually-building-tailwind-css-components-using-flowbite-and-daisy-ui-9f7</guid>
      <description>&lt;p&gt;I recently posted about building this in the tailwindcss &lt;a href="https://www.reddit.com/r/tailwindcss/comments/1ehfcb2/visual_editor_for_flowbite_and_daisy_ui/" rel="noopener noreferrer"&gt;subreddit&lt;/a&gt;, and it got a lot of attention. So, I decided to write a step-by-step process on how to do this and provide a better tutorial.&lt;/p&gt;

&lt;p&gt;Tailwind CSS is a powerful utility-first framework that makes building custom designs fast and efficient. With component libraries like Flowbite and Daisy UI, you can speed up development even further by using pre-designed, customizable components.&lt;/p&gt;

&lt;p&gt;Now combined with a visual builder, you can achieve faster development times and higher design consistency, while also reducing the need for extensive coding.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/" rel="noopener noreferrer"&gt;&lt;strong&gt;Flowbite&lt;/strong&gt;&lt;/a&gt; offers a wide range of ready-to-use components like buttons, modals, and navigation bars, all fully responsive and customizable to fit your design needs. Its extensive documentation ensures you can quickly integrate these components into your projects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://daisyui.com/" rel="noopener noreferrer"&gt;&lt;strong&gt;DaisyUI&lt;/strong&gt;&lt;/a&gt; simplifies your code by reducing the need for long class names. It offers customizable components with built-in dark mode and multiple themes, making it easier to build and style web projects efficiently.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://windframe.dev" rel="noopener noreferrer"&gt;&lt;strong&gt;Windframe&lt;/strong&gt;&lt;/a&gt; ties it all together with its powerful visual editor, allowing you to easily drag and drop Flowbite and Daisy UI components to create your designs intuitively. With real-time visualization and feedback, you can effortlessly customize your interfaces on the fly, significantly reducing the need for extensive coding. This streamlined process makes it quicker and easier to craft visually appealing and highly functional interfaces.&lt;/p&gt;

&lt;p&gt;Here’s how to visually build Flowbite and Daisy UI components using Windframe:&lt;/p&gt;

&lt;h3&gt;
  
  
  Tutorial: How to Visually Build Flowbite and Daisy UI Components Using Windframe
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Access the Windframe Visual Builder&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start by opening the &lt;a href="https://windframe.devwares.com/" rel="noopener noreferrer"&gt;Windframe&lt;/a&gt; Editor and creating a new project&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F42z34ujlq0jjxzcwxwj6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F42z34ujlq0jjxzcwxwj6.png" alt="Step 1" width="800" height="307"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:  Install Flowbite and Daisy UI&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click the &lt;strong&gt;Import&lt;/strong&gt; button within the Windframe interface to access the library options.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwxyfzczosrwtfq5jojea.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwxyfzczosrwtfq5jojea.png" alt="step 2" width="800" height="517"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click on &lt;strong&gt;Install Flowbite&lt;/strong&gt; or &lt;strong&gt;Install Daisy UI&lt;/strong&gt; to add either of these component libraries to your project. The selected library will be automatically installed in the editor.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7gtnsyqj1ismkeemftw2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7gtnsyqj1ismkeemftw2.png" alt="step 2 of 2" width="800" height="775"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:  Import Flowbite and Daisy UI&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;With Flowbite or Daisy UI installed, you can import their components into the editor and visually edit them. We will be using Flowbite in this example and importing a component from the &lt;a href="https://flowbite.com/blocks/marketing/team/" rel="noopener noreferrer"&gt;team block section.&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First, copy the code of the block from Flowbite. Then, click the import button and select the HTML import option.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F92am2e0pm3044l179n7f.png" alt="step 1 of 3" width="800" height="706"&gt;
&lt;/li&gt;
&lt;li&gt;Paste the copied code from Flowbite into the modal. Finally, click the import button again to import it into the editor. The component should now be imported into the editor.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F17id7naerl13efqufjrp.png" alt="step 2 of 3" width="800" height="449"&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Start Visual building and editing&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Customize the components using the visual editor, adjusting styles, and properties to fit your design requirements.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdtdu56vg2jleko5a5xb3.png" alt="step 4" width="800" height="420"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Export Your Project&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When you’re satisfied with your design, you can also export the project to continue working on it outside the platform or share it with others.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F943tw7dh6hpdbn410pyg.png" alt="step 5" width="800" height="474"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Integrating Flowbite and Daisy UI components into your projects with Windframe is super easy! Just follow these steps, and you'll be up and running in no time. If you need more help, check out this short video.&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/u7mqf5HspRY"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
Pairing Tailwind CSS with Flowbite, Daisy UI, and Windframe's visual builder significantly enhances your development workflow. Flowbite and Daisy UI offer pre-designed, customizable components, while Windframe allows for intuitive, real-time interface customization. This powerful combination reduces coding time, ensures design consistency, and enables developers to quickly create visually appealing and functional interfaces. &lt;/p&gt;

&lt;p&gt;Comment any other libraries you would like to see added next &lt;/p&gt;

&lt;p&gt;Other Reads &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://windframe.dev/docs/adding-flowbite-daisyui" rel="noopener noreferrer"&gt;Adding flowbite and daisyUI to windframe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://windframe.dev/blog/how-to-build-landing-pages-using-windframe" rel="noopener noreferrer"&gt;How to build a landing page using windframe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://windframe.dev/blog/windframe-supports-daisyui" rel="noopener noreferrer"&gt;Windframe supports the new update on daisyui and flowbite&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>frontend</category>
      <category>tailwindcss</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Tailwind 3.0 is finally available. here are all the major Changes</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Mon, 10 Jan 2022 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/tailwind-30-is-finally-available-here-are-all-the-major-4lh9</link>
      <guid>https://dev.to/devwares/tailwind-30-is-finally-available-here-are-all-the-major-4lh9</guid>
      <description>&lt;p&gt;Tailwind 3.0 version is finally available. The Tailwind 3.0 version addresses some issues found on the version 1 and 2 and includes a variety of features that are in handy when creating any project.&lt;/p&gt;

&lt;p&gt;These features include upgrade on the Just-in-Time, all the time. It also boosts browser performance with less build time, stackable variety, arbitrary value support and lots of more functionality.&lt;/p&gt;

&lt;p&gt;We are going to look at some of these features, new utilities that were introduced in the Tailwind 3.0 version and how to upgrade from your version to it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Feature of the new Tailwind 3.0
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Just-in-Time, all the time
&lt;/h2&gt;

&lt;p&gt;This feature was introduced last year March. This feature allows you to use Tailwind CSS in your project without having to install it. Just-in-Time engine brought so many changes including arbitrary values and made complex configuration a thing of the past. The new Tailwind 3.0 has made the engine more stable and improved its performance. This in turn has improved all Tailwind projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Colored box shadow
&lt;/h2&gt;

&lt;p&gt;This is a new feature in the Tailwind 3.0 version. This allows you to add shadows to your colored buttons or cards while building your project. You can check out the Tailwind documentation to learn more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Multi-column layout
&lt;/h2&gt;

&lt;p&gt;The Tailwind 3.0 has a multi-column layout that is especially useful when building footers. You can now easily add different styles for your footer and get it looking unique. You can check the Tailwind docs for more information.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scroll snap API
&lt;/h2&gt;

&lt;p&gt;Among the new features added are a set of utilities that you can use to make CSS scroll snap module. This will give you the tool to build rich snap scroll on your HTML. Giving you the experience of a life time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every color out of the box
&lt;/h2&gt;

&lt;p&gt;Before now, other versions of Tailwind had a restricted color palette. Because the developers worried about the size of these feature. Now with the new Tailwind 3.0 they can use all variety of colors. This color palette will be enabled by default when you upgrade to the tailwind 3.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  Native form control styling
&lt;/h2&gt;

&lt;p&gt;It was a bit tricky to customize the native form controls in the previous versions. This problem has been tackled well in the tailwind 3.0 version which included support for the new accent-color property, as well as a modifier for customizing file input buttons.&lt;/p&gt;

&lt;h2&gt;
  
  
  Print modifier
&lt;/h2&gt;

&lt;p&gt;The new print features allow you to style how you want your website to appear to people when they print it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Modern aspect ratio API
&lt;/h2&gt;

&lt;p&gt;Tailwind support the aspect ratio property in It’s previous version but in order to use it you need to customize it. However, with its growing browser support, the new Tailwind 3.0 now have support for the new native property.&lt;/p&gt;

&lt;h2&gt;
  
  
  RTL and LTR modifiers
&lt;/h2&gt;

&lt;p&gt;One of the interesting utilities that were added with this new Tailwind 3.0 version is the experimental support for multi-directional layouts. This property allows you to move objects either right or left using the property ‘rtl’ and ‘ltr’ modifiers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Arbitrary properties
&lt;/h2&gt;

&lt;p&gt;The most exciting part of these Tailwind 3.0 version is adding the arbitrary properties. You can now use arbitrary CSS which you can combine with other properties such as ‘hover’, ‘sm’, and any other properties you wish.&lt;/p&gt;

&lt;h2&gt;
  
  
  CDN tailwind
&lt;/h2&gt;

&lt;p&gt;In the new Tailwind 3.0 version one of the new features that makes it different is the addition of CSS-based CDN. So instead of building some kind of CSS library they instead made of JavaScript library for Tailwind which is really exciting. So, for all your HTML documents you can easily add a CDN for tailwind and begin to use all Tailwind CSS features immediately.&lt;/p&gt;

&lt;p&gt;Other interesting utilities that were added include landscape and portrait properties, touch-action, will-change, flex-basis, text-indent, scroll-behavior, fancy underline properties, and more.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to upgrade to the new Tailwind 3.0 version
&lt;/h2&gt;

&lt;p&gt;To upgrade your Tailwind v2 or v1 to the v3.0 is as easy as possible and you can be ready to start using it in less than 40 minutes. I will walk you through upgrading any of the version you have to the Tailwind v3.0 here.&lt;/p&gt;

&lt;p&gt;You can upgrade your Tailwind CSS, PostCSS and autoprefixer using the following npm command&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Tailwind 3.0 actually uses a PostCSS 8 no longer the PostCSS 7. So, you need to upgrade to the PostCSS 8 in order to use this. It is recommended you use the Tailwind CLI to opposed to installing Tailwind as a PostCSS plugin.&lt;/p&gt;

&lt;p&gt;You can visit the official Tailwind CSS documentation upgrade website to see all the changes that have been made on the Tailwind plugins, using the CDN and migrating to JIT engine.&lt;/p&gt;

&lt;p&gt;You can of course take a look at their github to see in details all the changes they have made for this Tailwind 3.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The Tailwind CSS version 3.0 is a leap in the framework. It was done with incredible care and with the other users in mind. The migration from the other versions is as smoothly as possible.&lt;br&gt;
It will be a shame not to try this new Tailwind 3.0 because it comes with a lot of utilities other versions didn’t have and will make your work flow a lot easier.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create Stunning Websites and Web Apps
&lt;/h3&gt;

&lt;p&gt;Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking &lt;a href="https://cdbootstrap-demo.netlify.app"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyuz057uo4vkmvma7bdom.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyuz057uo4vkmvma7bdom.png" alt="Contrast" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented &lt;br&gt;
template and UI components. Learn more about &lt;a href="https://www.devwares.com/product/bootstrap-contrast-pro"&gt;contrast&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;p&gt;You may also find the following resources useful&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good"&gt;Why tailwind CSS is good&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-in-nextjs"&gt;How to use Tailwind CSS in Nextjs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-components-for-your-website"&gt;How to create Tailwind CSS Components for your Website&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-animation-with-tailwind-css/"&gt;How to create Tailwind CSS Animation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-grid-to-your-project/"&gt;Tailwind grid-How to use tailwind CSS grid templates in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;Tailwind form-How to create and style a Responsive Form using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-flex/"&gt;Tailwind CSS Flex: How to use Tailwind CSS Flex&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-padding-margin-and-border-in-your-project/"&gt;How to use tailwind CSS padding, margin and border in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/Tailwind-width/"&gt;How to use Tailwind CSS Width&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-the-tailwind-css-JIT-CDN/"&gt;Tailwind CSS CDN-How to use the Tailwind CSS JIT CDN&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML/"&gt;How to use Tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-tables/"&gt;Tailwind CSS table-How to Create Tailwind CSS tables&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good/"&gt;Why is tailwind CSS better than other CSS framework&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-10-templates-and-themes/"&gt;10 tailwind CSS templates and themes&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-colors-and-fonts-to-your-project/"&gt;How to add tailwind CSS colors and Fonts to your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/differences-between-tailwind-css-and-sass/"&gt;Differences between Tailwind CSS and SASS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/diffrences-between-tailwind-css-and-bootstrap/"&gt;Differences Between Tailwind CSS and Bootstrap&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/awesome-10-projects-built-with-tailwind/"&gt;10 Awesome projects built with Tailwind CSS&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-vuejs/"&gt;How to install Tailwind CSS in Vue.js&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-react/"&gt;How to use Tailwind CSS in React&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-laravel/"&gt;How to install Tailwind CSS with Laravel&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-datepicker-with-contrast/"&gt;How to create react date picker&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;React bootstrap 5 form-How to create React forms&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-multiselect-with-contrast/"&gt;How to create a beautiful React multiselect&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-progress-with-contrast/"&gt;How to create a beautiful React Bootstrap progress bar&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-select-with-contrast/"&gt;How to create a beautiful React Bootstrap select with icons&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-stepper-with-contrast/"&gt;How to create a beautiful Bootstrap 5 stepper&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tables-with-contrast/"&gt;How to create a beautiful React Bootstrap table&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tabs-with-contrast/"&gt;How to create beautiful React Bootstrap tabs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-react-modal-using-tailwind-css/"&gt;Tailwind Modal-How to create a React Modal using Tailwind CSS.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-bootstrap5-modal/"&gt;How to create a Bootstrap 5 Modal.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-react-tabs-with-tailwind-css/"&gt;How to Create React Tabs with Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-dark-mode-in-tailwind-css/"&gt;How to implement dark mode in React using tailwind css&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-a-react-step-progress-bar-using-tailwind-css/"&gt;How to Implement a React Step Progress Bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/How-to-add-color-to-Tailwind/"&gt;Tailwind CSS Colors&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tailwindcss</category>
      <category>frontend</category>
      <category>tutorial</category>
      <category>development</category>
    </item>
    <item>
      <title>How to create a beautiful tabs using bootstrap and Contrast</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/how-to-create-a-beautiful-tabs-using-bootstrap-and-contrast-3g9m</link>
      <guid>https://dev.to/devwares/how-to-create-a-beautiful-tabs-using-bootstrap-and-contrast-3g9m</guid>
      <description>&lt;h2&gt;
  
  
  How to Create a beautiful tab component in react using bootstrap and Contrast.
&lt;/h2&gt;

&lt;p&gt;Tabs are components which separate content placed in the same wrapper, but in the separate pane. Only one pane can be displayed at the time.&lt;br&gt;
Today, we’ll be creating a tab in react using a react library knows as Contrast. Contrast also known as CDBReact is a react library which is an Elegant UI kit with full bootstrap support that has reusable components for building mobile-first, responsive websites, and web apps.&lt;br&gt;
CDB Tabs are compatible with ReactRouter, meaning that &lt;code&gt;&amp;lt;NavLink&amp;gt;&lt;/code&gt; components inside can be used both for one-page tabs and general routing solution for main navigation. Make sure to include the wrapping &lt;code&gt;&amp;lt;BrowserRouter&amp;gt;&lt;/code&gt;.&lt;br&gt;
If you are using navs to provide a navigation bar, be sure to add an appropriate role attributes to the &lt;code&gt;&amp;lt;NavLinks&amp;gt;&lt;/code&gt; (role="tab").&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The tab would be built using React, Bootstrap, and CDBReact. You don’t need to have any previous knowledge of CDBReact but the following are necessary:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JavaScript Knowledge&lt;/li&gt;
&lt;li&gt;Basic React Knowledge&lt;/li&gt;
&lt;li&gt;Basic Bootstrap Knowledge&lt;/li&gt;
&lt;li&gt;JavaScript Knowledge&lt;/li&gt;
&lt;li&gt;NPM installed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The tab we are going to build requires the pro version and it will look like the image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ENOs5oqT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/v1/./images/tab.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ENOs5oqT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/v1/./images/tab.png" alt="Tabs" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Setup&lt;br&gt;
First Check that you have node installed. To do this, run the following command in your terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;node&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This should show you the current version of node you have installed on your machine.&lt;br&gt;
If you don’t have node.js installed, download it here.&lt;br&gt;
Installing node also installs npm on your PC but you can still confirm using npm-v. Now that we have node installed, we can start up our React project by going to the directory of our choice and running&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;create&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;react&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="nx"&gt;tab&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I named the project tab-app but you can use whatever name of your choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing CDBReact-pro
&lt;/h2&gt;

&lt;p&gt;Before we install our CDBReact we have to download the pro version first. Then, we can go ahead to install them in our project. It is advised to add the file to the root of the project by running.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="nx"&gt;save&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;the&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;cdbreact&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;pro&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;tgz&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or using Yarn&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;yarn&lt;/span&gt; &lt;span class="nx"&gt;add&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;the&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;cdbreact&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;pro&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;tgz&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note that we don’t need to install bootstrap or add it anywhere in our project as CDBReact does that for us upon installation.&lt;/p&gt;

&lt;p&gt;Our tab would be making use of the Navlink component from React router, so let us install it by running the command below.&lt;/p&gt;

&lt;p&gt;Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="nx"&gt;react&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;router&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;dom&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now run &lt;code&gt;npm start&lt;/code&gt; to make sure that everything works well and there are no errors.&lt;br&gt;
Before we proceed, let’s go ahead and wrap our app with the BrowserRouter component from react-router-dom as Navlinks can’t work outside it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;import './App.css';
import Tab from './tab';
import { BrowserRouter as Router } from 'react-router-dom';

function App() {
  return (
    &lt;span class="nt"&gt;&amp;lt;Router&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"App"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/Router&amp;gt;&lt;/span&gt;
  );
}

export default App;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;TAB&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;At the stage we will have to create a file named tab.js which would contain our Tab component. Import the various tab components that we’ll be using.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;import React from "react";
import { CDBNav, CDBTabLink, CDBTabContent, CDBTabPane, CDBContainer } from "cdbreact";
import { NavLink } from react-router-dom;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;in the file above, we imported some CDBReact for the tab.&lt;br&gt;
-CDBNav for the navigation of the web.&lt;br&gt;
-CDBTabLink for links in the tab.&lt;br&gt;
-CDBTabContent contains the main body of the tab.&lt;br&gt;
-CDBTabPane contains the pane of the tab.&lt;br&gt;
-CDBContainer wraps the entire components of the tab.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;const Tab = () =&amp;gt; {
  return (
    &lt;span class="nt"&gt;&amp;lt;CDBContainer&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;CDBContainer&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBNav&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"nav-tabs mt-5"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBTabLink&lt;/span&gt;
              &lt;span class="na"&gt;link&lt;/span&gt;
              &lt;span class="na"&gt;to=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;
              &lt;span class="na"&gt;active=&lt;/span&gt;&lt;span class="s"&gt;{this.state.activeItem&lt;/span&gt; &lt;span class="err"&gt;===&lt;/span&gt; &lt;span class="err"&gt;"1"}&lt;/span&gt;
              &lt;span class="na"&gt;onClick=&lt;/span&gt;&lt;span class="s"&gt;{this.toggle("1")}&lt;/span&gt;
              &lt;span class="na"&gt;role=&lt;/span&gt;&lt;span class="s"&gt;"tab"&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              Label 1
            &lt;span class="nt"&gt;&amp;lt;/CDBTabLink&amp;gt;&lt;/span&gt;

            &lt;span class="nt"&gt;&amp;lt;CDBTabLink&lt;/span&gt;
              &lt;span class="na"&gt;link&lt;/span&gt;
              &lt;span class="na"&gt;to=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;
              &lt;span class="na"&gt;active=&lt;/span&gt;&lt;span class="s"&gt;{this.state.activeItem&lt;/span&gt; &lt;span class="err"&gt;===&lt;/span&gt; &lt;span class="err"&gt;"2"}&lt;/span&gt;
              &lt;span class="na"&gt;onClick=&lt;/span&gt;&lt;span class="s"&gt;{this.toggle("2")}&lt;/span&gt;
              &lt;span class="na"&gt;role=&lt;/span&gt;&lt;span class="s"&gt;"tab"&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              Label 2
            &lt;span class="nt"&gt;&amp;lt;/CDBTabLink&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBTabLink&lt;/span&gt;
              &lt;span class="na"&gt;link&lt;/span&gt;
              &lt;span class="na"&gt;to=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;
              &lt;span class="na"&gt;active=&lt;/span&gt;&lt;span class="s"&gt;{this.state.activeItem&lt;/span&gt; &lt;span class="err"&gt;===&lt;/span&gt; &lt;span class="err"&gt;"3"}&lt;/span&gt;
              &lt;span class="na"&gt;onClick=&lt;/span&gt;&lt;span class="s"&gt;{this.toggle("3")}&lt;/span&gt;
              &lt;span class="na"&gt;role=&lt;/span&gt;&lt;span class="s"&gt;"tab"&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              Label 3
            &lt;span class="nt"&gt;&amp;lt;/CDBTabLink&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/CDBNav&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBTabContent&lt;/span&gt; &lt;span class="na"&gt;activeItem=&lt;/span&gt;&lt;span class="s"&gt;{this.state.activeItem}&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBTabPane&lt;/span&gt; &lt;span class="na"&gt;tabId=&lt;/span&gt;&lt;span class="s"&gt;"1"&lt;/span&gt; &lt;span class="na"&gt;role=&lt;/span&gt;&lt;span class="s"&gt;"tabpanel"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"mt-2"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                Lorem ipsum dolor sit amet, consectetur adipisicing elit.
                Nihil odit magnam minima, soluta doloribus reiciendis
                molestiae placeat unde eos molestias. Quisquam aperiam,
                pariatur. Tempora, placeat ratione porro voluptate odit
                minima.
              &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/CDBTabPane&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBTabPane&lt;/span&gt; &lt;span class="na"&gt;tabId=&lt;/span&gt;&lt;span class="s"&gt;"2"&lt;/span&gt; &lt;span class="na"&gt;role=&lt;/span&gt;&lt;span class="s"&gt;"tabpanel"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"mt-2"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                Quisquam aperiam, pariatur. Tempora, placeat ratione porro
                voluptate odit minima. Lorem ipsum dolor sit amet,
                consectetur adipisicing elit. Nihil odit magnam minima,
                soluta doloribus reiciendis molestiae placeat unde eos
                molestias.
              &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
                Quisquam aperiam, pariatur. Tempora, placeat ratione porro
                voluptate odit minima. Lorem ipsum dolor sit amet,
                consectetur adipisicing elit. Nihil odit magnam minima,
                soluta doloribus reiciendis molestiae placeat unde eos
                molestias.
              &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/CDBTabPane&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBTabPane&lt;/span&gt; &lt;span class="na"&gt;tabId=&lt;/span&gt;&lt;span class="s"&gt;"3"&lt;/span&gt; &lt;span class="na"&gt;role=&lt;/span&gt;&lt;span class="s"&gt;"tabpanel"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"mt-2"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                Quisquam aperiam, pariatur. Tempora, placeat ratione porro
                voluptate odit minima. Lorem ipsum dolor sit amet,
                consectetur adipisicing elit. Nihil odit magnam minima,
                soluta doloribus reiciendis molestiae placeat unde eos
                molestias.
              &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/CDBTabPane&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/CDBTabContent&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/CDBContainer&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/CDBContainer&amp;gt;&lt;/span&gt;
  );
};
export default Tab;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we used CDBNav, CDBTabLink, CDBTabContent, CDBTabPane, CDBContainer to create the tab, add contents with some bootstrap styling which beautifies the tab.&lt;br&gt;
Let us go ahead to import the created tab component into our app component&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;import './App.css';
import Tab from './tab';
import { BrowserRouter as Router } from 'react-router-dom';

function App() {
  return (
    &lt;span class="nt"&gt;&amp;lt;Router&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"App"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
       &lt;span class="nt"&gt;&amp;lt;Tab&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/Router&amp;gt;&lt;/span&gt;
  );
}

export default App;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The tab we created will look like the image below &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ENOs5oqT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/v1/./images/tab.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ENOs5oqT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/v1/./images/tab.png" alt="Tabs" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Building a tab using contrast is quite simple and allows you to use several tools including bootstrap styling without installing bootstrap to create your tab. You can also  check out some other features you can use in CDBReact Tab Docs . you can also check the code here in our github.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create Stunning Websites and Web Apps
&lt;/h3&gt;

&lt;p&gt;Building different custom components in react for your web apps or websites can get very stressful. Thats why we decided to build contrast. We have put together a UI kit with over 10000+ components, 5 admin dashboards and 23 additional different pages template for building almost any type of web app or webpage into a single product called Contrast Pro. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Try contrast pro!&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---UwZjfC5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---UwZjfC5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" alt="Contrast Design Boostrap" width="635" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contrast React Bootstrap PRO is a Multipurpose pro template, UI kit to build your next landing, admin, SAAS, prelaunch, etc. project with a clean, well documented, well crafted template and UI components. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Learn more about Contrast Pro&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/Iheanacho-ai/Tailwind-react-modal"&gt;Link to the Github Code&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://tailwindui.com/components/application-ui/overlays/modals"&gt;Link to the Tailwind CSS Modals Docs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://tailwindui.com/pricing"&gt;Get Tailwind CSS PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/modal"&gt;Link to the modal documentation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-modal"&gt;How to create Tailwind CSS Modal&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML"&gt;How to use tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good"&gt;Why tailwind CSS is good&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-in-nextjs"&gt;How to use Tailwind CSS in Nextjs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-components-for-your-website"&gt;How to create Tailwind CSS Components for your Website&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-animation-with-tailwind-css/"&gt;How to create Tailwind CSS Animation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-grid-to-your-project/"&gt;Tailwind grid-How to use tailwind CSS grid templates in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;Tailwind form-How to create and style a Responsive Form using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-flex/"&gt;Tailwind CSS Flex: How to use Tailwind CSS Flex&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-padding-margin-and-border-in-your-project/"&gt;How to use tailwind CSS padding, margin and border in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-the-tailwind-css-JIT-CDN/"&gt;Tailwind CSS CDN-How to use the Tailwind CSS JIT CDN&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML/"&gt;How to use Tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-tables/"&gt;Tailwind CSS table-How to Create Tailwind CSS tables&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good/"&gt;Why is tailwind CSS better than other CSS framework&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-10-templates-and-themes/"&gt;10 tailwind CSS templates and themes&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-colors-and-fonts-to-your-project/"&gt;How to add tailwind CSS colors and Fonts to your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/differences-between-tailwind-css-and-sass/"&gt;Differences between Tailwind CSS and SASS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/diffrences-between-tailwind-css-and-bootstrap/"&gt;Differences Between Tailwind CSS and Bootstrap&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/awesome-10-projects-built-with-tailwind/"&gt;10 Awesome projects built with Tailwind CSS&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-vuejs/"&gt;How to install Tailwind CSS in Vue.js&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-react/"&gt;How to use Tailwind CSS in React&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-laravel/"&gt;How to install Tailwind CSS with Laravel&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-datepicker-with-contrast/"&gt;How to create react date picker&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;React bootstrap 5 form-How to create React forms&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-multiselect-with-contrast/"&gt;How to create a beautiful React multiselect&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-progress-with-contrast/"&gt;How to create a beautiful React Bootstrap progress bar&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-select-with-contrast/"&gt;How to create a beautiful React Bootstrap select with icons&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-stepper-with-contrast/"&gt;How to create a beautiful Bootstrap 5 stepper&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tables-with-contrast/"&gt;How to create a beautiful React Bootstrap table&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tabs-with-contrast/"&gt;How to create beautiful React Bootstrap tabs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-react-modal-using-tailwind-css/"&gt;Tailwind Modal-How to create a React Modal using Tailwind CSS.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-bootstrap5-modal/"&gt;How to create a Bootstrap 5 Modal.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-react-tabs-with-tailwind-css/"&gt;How to Create React Tabs with Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-dark-mode-in-tailwind-css/"&gt;How to implement dark mode in React using tailwind css&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-a-react-step-progress-bar-using-tailwind-css/"&gt;How to Implement a React Step Progress Bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Tutorial: CSS Grid</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/tutorial-css-grid-50h</link>
      <guid>https://dev.to/devwares/tutorial-css-grid-50h</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuggx1zagx6cyzvhhj5el.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuggx1zagx6cyzvhhj5el.png" alt="Cover image" width="800" height="670"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  CSS Grid
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-grid/"&gt;CSS Grid&lt;/a&gt; is a powerful layout system available in CSS. It is a 2-dimensional system, meaning it can handle both columns and rows, unlike flexbox which is largely a 1-dimensional system.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdpgy3obdsklle9xrqx8u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdpgy3obdsklle9xrqx8u.png" alt="grid image" width="688" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Basic Terminology
&lt;/h2&gt;

&lt;p&gt;Before diving into the details of CSS Grid, it's important to understand some basic terminology:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Grid Container:&lt;/strong&gt; The element on which display: grid is applied. It's the direct parent of all the grid items. In our example we’ll be referring to .container as our grid container.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Grid Item:&lt;/strong&gt; The children (direct descendants) of the grid container.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Grid Line:&lt;/strong&gt; The dividing lines that make up the structure of the grid. They can be either vertical ("column grid lines") or horizontal ("row grid lines").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Grid Cell:&lt;/strong&gt; A single unit of the grid.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Grid Track:&lt;/strong&gt; The space between two adjacent grid lines. This can be a row or a column.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Grid Area:&lt;/strong&gt; Any area of the grid bound by four grid lines.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Basic Grid Structure
&lt;/h2&gt;

&lt;p&gt;To get started with CSS Grid, we need to define a grid container. We do this by using the display property with the value of grid.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Defining Columns and Rows
&lt;/h2&gt;

&lt;p&gt;Inside the grid container, you define your &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-grid-column-start-end/"&gt;columns&lt;/a&gt; and &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-grid-row-start-end/"&gt;rows&lt;/a&gt;. You can do this using &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-grid-column/"&gt;grid-template-columns&lt;/a&gt; and &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-grid-row/"&gt;grid-template-rows&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;200px&lt;/span&gt; &lt;span class="m"&gt;400px&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-template-rows&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, the grid will have three columns; the first will be 200px wide, the second 400px, and the third will automatically take up the remaining space. For the rows, the first row's height will be as large as its content, and the second row will be 100px.&lt;/p&gt;

&lt;h2&gt;
  
  
  Grid Gaps
&lt;/h2&gt;

&lt;p&gt;To create some space between your grid items, you can use &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-grid-auto-flow/"&gt;grid-gap&lt;/a&gt;, grid-row-gap, and grid-column-gap.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;200px&lt;/span&gt; &lt;span class="m"&gt;400px&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-template-rows&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;20px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Grid Auto Flow
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-grid-auto-flow/"&gt;grid-auto-flow&lt;/a&gt; property controls how the auto placement algorithm works. It specifies exactly how auto-placed items get flowed into the grid.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;200px&lt;/span&gt; &lt;span class="m"&gt;400px&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-template-rows&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;20px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;grid-auto-flow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, the grid items will be placed from left to right across the &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-grid-auto-rows/"&gt;rows&lt;/a&gt;. If you set grid-auto-flow to column, the items would be placed from top to bottom down the &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-grid-auto-columns/"&gt;columns&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyuz057uo4vkmvma7bdom.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyuz057uo4vkmvma7bdom.png" alt="Contrast" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc. project with a clean, prebuilt and well documented template and UI components. Learn more about &lt;a href="https://www.devwares.com/product/bootstrap-contrast-pro"&gt;contrast&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/index/"&gt;Contrast Design Bootstrap&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/accordion/"&gt;Accordion&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/alert/"&gt;Alert&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/animations/"&gt;Animation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/autocomplete/"&gt;Autocomplete&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/badge/"&gt;Badges&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/box/"&gt;Box&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/breadcrumb/"&gt;Breadcrumb&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttonGroup/"&gt;ButtonGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttons/"&gt;Button&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttonToolbar/"&gt;ButtonToolbar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/card/"&gt;Card&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/carousel/"&gt;Carousel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/checkbox/"&gt;Checkbox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/collapse/"&gt;Collapse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/datatables/"&gt;DataTable&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/datepicker/"&gt;DatePicker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/dropdown/"&gt;DropDown&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/footer/"&gt;Footer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/forms/"&gt;Forms&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/icon/"&gt;Icon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/iframe/"&gt;Iframe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/input/"&gt;Input&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/inputgroup/"&gt;InputGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/listgroup/"&gt;ListGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/mask/"&gt;Mask&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/modal/"&gt;Modal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/multiselect/"&gt;Multiselect&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/notification/"&gt;Notification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/pane/"&gt;Pane&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/panels/"&gt;Panel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/popover/"&gt;Pop Over&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/progress/"&gt;Progress&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/radio/"&gt;Radio&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/rating/"&gt;Rating&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/select/"&gt;Select&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/select2/"&gt;Select 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/slider/"&gt;Slider&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/spinner/"&gt;Spinner&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/stepper/"&gt;Stepper&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/switch/"&gt;Switch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/table/"&gt;Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/forms/"&gt;Forms&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/navbar/"&gt;Navbar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/pagination/"&gt;Pagination&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/tabs/"&gt;Tab&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/sidebar/"&gt;Sidebar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/sections/timepicker/"&gt;Time Picker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/datatables/"&gt;Data Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/fixed_datatables/"&gt;Fixed Data Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/table/"&gt;Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/widgets/"&gt;Widgets&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Introduction to CSS Animations</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/introduction-to-css-animations-1dca</link>
      <guid>https://dev.to/devwares/introduction-to-css-animations-1dca</guid>
      <description>&lt;p&gt;&lt;strong&gt;CSS Animations&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An animation lets an element gradually change from one style to another. CSS allows animation of HTML elements without using JavaScript or Flash.&lt;/p&gt;

&lt;p&gt;An animation lets an element gradually change from one style to another. You can change as many CSS properties you want, as many times you want. To use CSS animation, you must first specify some keyframes for the animation. Keyframes hold what styles the element will have at certain times.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The @keyframes Rule&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you specify CSS styles inside the @keyframes rule, the animation will gradually change from the current style to the new style at certain times. To get an animation to work, you must bind the animation to an element. The following example binds the "example" animation to the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element. The animation will last for 4 seconds, and it will gradually change the background-color of the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element from "red" to "yellow":&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="c"&gt;/* The animation code */&lt;/span&gt;

&lt;span class="k"&gt;@keyframes&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nt"&gt;from&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
  &lt;span class="nt"&gt;to&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;yellow&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;/* The element to apply the animation to */&lt;/span&gt;

&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The animation-duration property defines how long time an animation should take to complete. If the animation-duration property is not specified, no animation will occur, because the default value is 0s (0 seconds). The following example will change the background-color of the '&lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element when the animation is 25% complete, 50% complete, and again when the animation is 100% complete:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="c"&gt;/* The animation code */&lt;/span&gt;

&lt;span class="k"&gt;@keyframes&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="err"&gt;0&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
  &lt;span class="err"&gt;25&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;yellow&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
  &lt;span class="err"&gt;50&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
  &lt;span class="err"&gt;100&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;green&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;/* The element to apply the animation to */&lt;/span&gt;

&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The following example will change both the background-color and the position of the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element when the animation is 25% complete, 50% complete, and again when the animation is 100% complete:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="c"&gt;/* The animation code */&lt;/span&gt;
&lt;span class="k"&gt;@keyframes&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="err"&gt;0&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;0px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;0px&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
  &lt;span class="err"&gt;25&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;yellow&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;0px&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
  &lt;span class="err"&gt;50&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
  &lt;span class="err"&gt;75&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;green&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;0px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
  &lt;span class="err"&gt;100&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;0px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;0px&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c"&gt;/* The element to apply the animation to */&lt;/span&gt;
&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Delay an Animation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The animation-delay property specifies a delay for the start of an animation. The following example has a 2 seconds delay before starting the animation:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Negative values are also allowed. If using negative values, the animation will start as if it had already been playing for N seconds. In the following example, the animation will start as if it had already been playing for 2 seconds:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;-2s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Set How Many Times an Animation Should Run:&lt;/strong&gt; The animation-iteration-count property specifies the number of times an animation should run.&lt;/p&gt;

&lt;p&gt;The following example will run the animation 3 times before it stops:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-iteration-count&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Run Animation in Reverse Direction or Alternate Cycles:&lt;/strong&gt; The animation-direction property specifies whether an animation should be played forwards, backwards or in alternate cycles. The animation-direction property can have the following values:&lt;/p&gt;

&lt;p&gt;normal - The animation is played as normal (forwards). This is default&lt;/p&gt;

&lt;p&gt;reverse - The animation is played in reverse direction (backwards)&lt;/p&gt;

&lt;p&gt;alternate - The animation is played forwards first, then backwards&lt;/p&gt;

&lt;p&gt;alternate-reverse - The animation is played backwards first, then forwards&lt;/p&gt;

&lt;p&gt;The following example will run the animation in reverse direction (backwards):&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;reverse&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Specify the fill-mode For an Animation&lt;/strong&gt; CSS animations do not affect an element before the first keyframe is played or after the last keyframe is played. The animation-fill-mode property can override this behavior.&lt;/p&gt;

&lt;p&gt;The animation-fill-mode property specifies a style for the target element when the animation is not playing (before it starts, after it ends, or both). The animation-fill-mode property can have the following values:&lt;/p&gt;

&lt;p&gt;none - Default value. Animation will not apply any styles to the element before or after it is executing&lt;/p&gt;

&lt;p&gt;forwards - The element will retain the style values that is set by the last keyframe (depends on animation-direction and animation-iteration-count)&lt;/p&gt;

&lt;p&gt;backwards - The element will get the style values that is set by the first keyframe (depends on animation-direction), and retain this during the animation-delay period&lt;/p&gt;

&lt;p&gt;both - The animation will follow the rules for both forwards and backwards, extending the animation properties in both directions&lt;/p&gt;

&lt;p&gt;The following example lets the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element retain the style values from the last keyframe when the animation ends:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-fill-mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;forwards&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The following example lets the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element get the style values set by the first keyframe before the animation starts (during the animation-delay period).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-fill-mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;backwards&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The following example lets the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element get the style values set by the first keyframe before the animation starts, and retain the style values from the last keyframe when the animation ends.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;animation-fill-mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;both&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://www.devwares.com/product/bootstrap-contrast-pro"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2GI1Lma7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.devwares.com/static/6b149e3d75b230f7e8452ace9e21bb05/587b0/banner-ad-1.png" alt="Contrast Bootstrap UI Kit" title="Contrast Bootstrap UI Kit" width="880" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;p&gt;You may find the following resources useful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/blog/css-syntax-and-selector"&gt;CSS Syntax and Selector&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/blog/css-text-and-layout"&gt;CSS Text and Layout&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/blog/css-tutorial-1"&gt;Introduction to CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/blog/css-icons"&gt;Tutorial: CSS Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>programming</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>All you need to know about Html Elements</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/all-you-need-to-know-about-html-elements-515i</link>
      <guid>https://dev.to/devwares/all-you-need-to-know-about-html-elements-515i</guid>
      <description>&lt;p&gt;&lt;strong&gt;HTML ELEMENT:&lt;/strong&gt; An HTML element is defined by a start tag, an end tag and some content in-between the tags.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.devwares.com/product/bootstrap-contrast-pro"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3cscVfH1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/http://github.com/static/6b149e3d75b230f7e8452ace9e21bb05/587b0/banner-ad-1.png" alt="Contrast Bootstrap UI Kit" title="Contrast Bootstrap UI Kit" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EXAMPLE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;tagname&amp;gt; content goes here &amp;lt;tagname&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The html element is everything from the start tag to the end tag:&lt;/p&gt;

&lt;p&gt;Starting tag Element content End Tag&lt;/p&gt;

&lt;p&gt;h1 My first statement h1&lt;/p&gt;

&lt;p&gt;The HTML element without content are called empty element. Empty elements do not have an end tag, such as &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; (this is a line break).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nested HTML Element&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;HTML element can contain element inside it or can be nested with element. All HTML documents contain nested element&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML Code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;my first web heading&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;CODE EXPLAINED&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; element defines the whole document and represent the root element. It has a start tag &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; and an end tag &lt;code&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;. Then, inside the &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; element there is &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; element nested within the &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; element. &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag defines the body of the web. Inside the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag is the &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; element nested inside it. Never forget the end tag Some editor will help you put your end tag when you write the code. However, sometimes this may not be the case and when you forget to put the tag, unexpected error will occur. Empty HTML ELEMENTS As we stated earlier HTML element with no content are called empty elements. The &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; tag is an example of an empty element and it defines a line break.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Html code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
  This is a &lt;span class="nt"&gt;&amp;lt;br&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt; paragraph with a line break.
&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is how the code looks like:&lt;/p&gt;

&lt;p&gt;This is a&lt;br&gt;&lt;br&gt;
 paragraph with a line break.&lt;/p&gt;

&lt;p&gt;HTML is not case sensitive HTML tags are not case sensitive. For example, the &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; means the same as &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;. it is always better if you use the lower case when you write HTML tags.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML ATTRIBUTES&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;HTML attributes are always specified at the beginning of a tag and it usually provides additional information about the element. It usually come in name/value pairs: name="value"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The href Attribute:&lt;/strong&gt; The html links are usually defined with &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag while the link address is specified in the href attribute:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Html code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://google.com"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The src Attribute:&lt;/strong&gt; The &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag used to embed an image in an HTML page. The src attributes provides additional information such as providing the path of the image to be displayed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Html code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"img-home.jpg"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are two ways to specify the url in the src attribute: The absolute URL – link to external images that are hosted on another website. eg &lt;code&gt;src="http://www.google.com/images/img-girl.jpg"&lt;/code&gt;. Relative URL- links to an image that is hosted within the website. eg &lt;code&gt;src="img-girl.jpg"&lt;/code&gt;. Its usually best to use the relative Urls. They will not break if you change domain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The width and height Attribute:&lt;/strong&gt; Images are known to have a set of size attributes, which specifies the width and height of the image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Html code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"img-gril.jpg"&lt;/span&gt; &lt;span class="na"&gt;width=&lt;/span&gt;&lt;span class="s"&gt;"250"&lt;/span&gt; &lt;span class="na"&gt;height=&lt;/span&gt;&lt;span class="s"&gt;"500"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The alt Attribute:&lt;/strong&gt; The alt attributes specify the alternative message to display if the message is not shown there. The value of the attribute can be read by screen readers. This way, someone with impaired vision listening will hear the value of the element.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Html code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://gooogle.com/img/logo/gooogle.jpg"&lt;/span&gt; &lt;span class="na"&gt;alt=&lt;/span&gt;&lt;span class="s"&gt;"google image with white background"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The style Attribute:&lt;/strong&gt; This is used to defined the styling of an element such as color, font, size etc.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Html code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;h1&lt;/span&gt; &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;"color : blue"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Attributes in html&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The lang Attribute:&lt;/strong&gt; The language of the html document can be declared with the lang attribute This is important for accessibility application and search engines.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Html code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en-US"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;home all&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first two letter shows the language(en). And if there is a dialect, you can add it (US).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The title Attribute:&lt;/strong&gt; The title attribute can be added to a &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; element. The title attributes add more information about that element.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Html code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;title=&lt;/span&gt;&lt;span class="s"&gt;"Im unstoppable"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is a track record.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://www.devwares.com/product/bootstrap-contrast-pro"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3cscVfH1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/http://github.com/static/6b149e3d75b230f7e8452ace9e21bb05/587b0/banner-ad-1.png" alt="Contrast Bootstrap UI Kit" title="Contrast Bootstrap UI Kit" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/index/"&gt;Contrast Design Bootstrap&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/accordion/"&gt;Accordion&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/alert/"&gt;Alert&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/animations/"&gt;Animation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/autocomplete/"&gt;Autocomplete&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/badge/"&gt;Badges&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/box/"&gt;Box&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/breadcrumb/"&gt;Breadcrumb&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttonGroup/"&gt;ButtonGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttons/"&gt;Button&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttonToolbar/"&gt;ButtonToolbar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/card/"&gt;Card&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/carousel/"&gt;Carousel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/checkbox/"&gt;Checkbox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/collapse/"&gt;Collapse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/datatables/"&gt;DataTable&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/datepicker/"&gt;DatePicker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/dropdown/"&gt;DropDown&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/footer/"&gt;Footer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/forms/"&gt;Forms&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/icon/"&gt;Icon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/iframe/"&gt;Iframe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/input/"&gt;Input&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/inputgroup/"&gt;InputGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/listgroup/"&gt;ListGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/mask/"&gt;Mask&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/modal/"&gt;Modal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/multiselect/"&gt;Multiselect&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/notification/"&gt;Notification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/pane/"&gt;Pane&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/panels/"&gt;Panel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/popover/"&gt;Pop Over&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/progress/"&gt;Progress&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/radio/"&gt;Radio&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/rating/"&gt;Rating&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/select/"&gt;Select&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/select2/"&gt;Select 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/slider/"&gt;Slider&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/spinner/"&gt;Spinner&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/stepper/"&gt;Stepper&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/switch/"&gt;Switch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/table/"&gt;Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/forms/"&gt;Forms&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/navbar/"&gt;Navbar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/pagination/"&gt;Pagination&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/tabs/"&gt;Tab&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/sidebar/"&gt;Sidebar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/sections/timepicker/"&gt;Time Picker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/datatables/"&gt;Data Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/fixed_datatables/"&gt;Fixed Data Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/table/"&gt;Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/widgets/"&gt;Widgets&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>html</category>
      <category>programming</category>
      <category>codenewbie</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Introduction to CSS</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/introduction-to-css-5025</link>
      <guid>https://dev.to/devwares/introduction-to-css-5025</guid>
      <description>&lt;p&gt;&lt;strong&gt;CSS TUTORIAL&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt; stands for cascading style sheet. It is normally used to control the style of the web document in a simple and easy way. CSS also describes how HTML elements are to be displayed on screen. In this tutorial we are going to look at how to use CSS to style and beautiful your web pages.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--c1kDWjYV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/41meil9ho9yx2ulb535m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--c1kDWjYV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/41meil9ho9yx2ulb535m.png" alt="AD-BANNER" width="880" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why use CSS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;CSS is used to style your web pages, including its designs, layouts and variations in display of different screens and devices. CSS is one of the compulsory technologies you must get familiar with if you wish to be a web developer. CSS has solved the problem of repeating a style all over the documents. It enabled one to easily style several HTML elements at the same time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Application of CSS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS saves time:&lt;/strong&gt; It saves a lot of time as only one style sheet can be used on multiple pages, there is no need to write same code in all the pages. A single file can be used to write the code for same styling of the web page. this helps to decrease the page loading time as the file transfer size get reduced.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Improves HTML functionality:&lt;/strong&gt; CSS has a larger number of attributes than HTML which only provides limited number of styling attributes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multiple Device Compatibility:&lt;/strong&gt; CSS can optimize the same webpage to adapt different viewports. This makes the webpages compatible with any device.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pages load faster&lt;/strong&gt; When a single file is used for the styling of several webpages, the loading of the pages is faster because of the reusing of code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="py"&gt;background-colors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;lightblue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;white&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;verdana&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;20px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Create Stunning Websites and Web Apps
&lt;/h3&gt;

&lt;p&gt;Building different custom components in react for your web apps or websites can get very stressful. That's why we decided to build contrast. We have put together a UI kit with over 10000+ components, 5 admin dashboards and 23 additional different pages template for building almost any type of web app or webpage into a single product called Contrast Pro. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Try contrast pro!&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HmPIBlKY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HmPIBlKY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" alt="Contrast Design Boostrap" width="635" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contrast React Bootstrap PRO is a Multipurpose pro template, UI kit to build your next landing, admin, SAAS, prelaunch, etc. project with a clean, well documented, well crafted template and UI components. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Learn more about Contrast Pro&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/index/"&gt;Contrast Design Bootstrap&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/accordion/"&gt;Accordion&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/alert/"&gt;Alert&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/animations/"&gt;Animation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/autocomplete/"&gt;Autocomplete&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/badge/"&gt;Badges&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/box/"&gt;Box&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/breadcrumb/"&gt;Breadcrumb&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttonGroup/"&gt;ButtonGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttons/"&gt;Button&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttonToolbar/"&gt;ButtonToolbar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/card/"&gt;Card&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/carousel/"&gt;Carousel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/checkbox/"&gt;Checkbox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/collapse/"&gt;Collapse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/datatables/"&gt;DataTable&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/datepicker/"&gt;DatePicker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/dropdown/"&gt;DropDown&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/footer/"&gt;Footer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/forms/"&gt;Forms&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/icon/"&gt;Icon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/iframe/"&gt;Iframe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/input/"&gt;Input&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/inputgroup/"&gt;InputGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/listgroup/"&gt;ListGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/mask/"&gt;Mask&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/modal/"&gt;Modal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/multiselect/"&gt;Multiselect&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/notification/"&gt;Notification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/pane/"&gt;Pane&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/panels/"&gt;Panel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/popover/"&gt;Pop Over&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/progress/"&gt;Progress&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/radio/"&gt;Radio&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/rating/"&gt;Rating&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/select/"&gt;Select&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/select2/"&gt;Select 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/slider/"&gt;Slider&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/spinner/"&gt;Spinner&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/stepper/"&gt;Stepper&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/switch/"&gt;Switch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/table/"&gt;Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/forms/"&gt;Forms&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/navbar/"&gt;Navbar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/pagination/"&gt;Pagination&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/tabs/"&gt;Tab&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/sidebar/"&gt;Sidebar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/sections/timepicker/"&gt;Time Picker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/datatables/"&gt;Data Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/fixed_datatables/"&gt;Fixed Data Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/table/"&gt;Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/widgets/"&gt;Widgets&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>CSS Fonts</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/tutorial-css-fonts-1g7g</link>
      <guid>https://dev.to/devwares/tutorial-css-fonts-1g7g</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foudvpxz83me15a6ut3bp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foudvpxz83me15a6ut3bp.png" alt="CSS-Font" width="800" height="670"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  CSS Font
&lt;/h2&gt;

&lt;p&gt;Choosing the right &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-font-weight/"&gt;font&lt;/a&gt; has a huge impact on how the readers experience a website. The right font can create a strong identity for your brand.&lt;/p&gt;

&lt;p&gt;Using a &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-font-size/"&gt;font&lt;/a&gt; that is easy to read is important. The font adds value to your text. It is also important to choose the correct color and text size for the font.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Generic Font Families&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In CSS there are five generic &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-font-family/"&gt;font families&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;Serif fonts have a small stroke at the edges of each letter. They create a sense of formality and elegance.&lt;/p&gt;

&lt;p&gt;Sans-serif fonts have clean lines (no small strokes attached). They create a modern and minimalistic look.&lt;/p&gt;

&lt;p&gt;Monospace fonts - here all the letters have the same fixed width. They create a mechanical look.&lt;/p&gt;

&lt;p&gt;Cursive fonts imitate human handwriting.&lt;/p&gt;

&lt;p&gt;Fantasy fonts are decorative/playful fonts.&lt;/p&gt;

&lt;p&gt;All the different font names belong to one of the generic font families.&lt;/p&gt;

&lt;h2&gt;
  
  
  The CSS font-family Property
&lt;/h2&gt;

&lt;p&gt;In CSS, we use the font-family property to specify the font of a text. The font-family property should hold several font names as a fallback system, to ensure maximum compatibility between browsers/operating systems. Start with the &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-font-family/"&gt;font&lt;/a&gt; you want, and end with a generic family (to let the browser pick a similar font in the generic family, if no other fonts are available). The font names should be separated with comma. If the font name is more than one word, it must be in quotation marks, like: "Times New Roman".&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.p1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;"Times New Roman"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Times&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.p2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Arial&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Helvetica&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;sans-serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.p3&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;"Lucida Console"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;"Courier New"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;monospace&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Font Style:&lt;/strong&gt; The font-style property is mostly used to specify italic text. This property has three values:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Normal - The text is shown normally&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Italic - The text is shown in italics&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Oblique - The text is "leaning" (oblique is very similar to italic, but less supported).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="nc"&gt;.normal&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-style&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;normal&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="nc"&gt;.italic&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-style&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;italic&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="nc"&gt;.oblique&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-style&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;oblique&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Font Weight:&lt;/strong&gt; The &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-font-weight/"&gt;font weight&lt;/a&gt; property specifies the weight of a font.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="nc"&gt;.normal&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;normal&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="nc"&gt;.thick&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;bold&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Font Variant
&lt;/h2&gt;

&lt;p&gt;The font-variant property specifies whether or not a text should be displayed in a small-caps font. In a small-caps font, all lowercase letters are converted to uppercase letters. However, the converted uppercase letters appear in a smaller font size than the original uppercase letters in the text.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="nc"&gt;.normal&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-variant&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;normal&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="nc"&gt;.small&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-variant&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;small-caps&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  CSS Font Size
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.devwares.com/tailwindcss/classes/tailwind-font-size/"&gt;font size&lt;/a&gt; property sets the size of the text. Being able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs. Always use the proper HTML tags, like &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; - &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt; for headings and &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; for paragraphs. The font-size value can be an absolute, or relative size.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Absolute size:&lt;/strong&gt; Sets the text to a specified size. Does not allow a user to change the text size in all browsers (bad for accessibility reasons). Absolute size is useful when the physical size of the output is known&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Relative size:&lt;/strong&gt; Sets the size relative to surrounding elements. Allows a user to change the text size in browsers. If you do not specify a font size, the default size for normal text, like paragraphs, is 16px (16px=1em).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2.5em&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c"&gt;/* 40px/16=2.5em */&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;h2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;40px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;P&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2.5em&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Google Fonts:&lt;/strong&gt; If you do not want to use any of the standard fonts in HTML, you can use Google Fonts. Google Fonts are free to use, and have more than 1000 fonts to choose from.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create Stunning Websites and Web Apps
&lt;/h3&gt;

&lt;p&gt;Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking &lt;a href="https://cdbootstrap-demo.netlify.app"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyuz057uo4vkmvma7bdom.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyuz057uo4vkmvma7bdom.png" alt="Contrast" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc. project with a clean, prebuilt and well documented template and UI components. Learn more about &lt;a href="https://www.devwares.com/product/bootstrap-contrast-pro"&gt;contrast&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/index/"&gt;Contrast Design Bootstrap&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/accordion/"&gt;Accordion&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/alert/"&gt;Alert&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/animations/"&gt;Animation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/autocomplete/"&gt;Autocomplete&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/badge/"&gt;Badges&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/box/"&gt;Box&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/breadcrumb/"&gt;Breadcrumb&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttonGroup/"&gt;ButtonGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttons/"&gt;Button&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/buttonToolbar/"&gt;ButtonToolbar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/card/"&gt;Card&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/carousel/"&gt;Carousel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/checkbox/"&gt;Checkbox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/collapse/"&gt;Collapse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/datatables/"&gt;DataTable&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/datepicker/"&gt;DatePicker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/dropdown/"&gt;DropDown&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/footer/"&gt;Footer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/forms/"&gt;Forms&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/icon/"&gt;Icon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/iframe/"&gt;Iframe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/input/"&gt;Input&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/inputgroup/"&gt;InputGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/listgroup/"&gt;ListGroup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/mask/"&gt;Mask&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/modal/"&gt;Modal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/multiselect/"&gt;Multiselect&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/notification/"&gt;Notification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/pane/"&gt;Pane&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/panels/"&gt;Panel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/popover/"&gt;Pop Over&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/progress/"&gt;Progress&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/radio/"&gt;Radio&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/rating/"&gt;Rating&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/select/"&gt;Select&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/select2/"&gt;Select 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/slider/"&gt;Slider&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/spinner/"&gt;Spinner&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/stepper/"&gt;Stepper&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/switch/"&gt;Switch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/table/"&gt;Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/forms/"&gt;Forms&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/navbar/"&gt;Navbar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/pagination/"&gt;Pagination&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/tabs/"&gt;Tab&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/navigation/sidebar/"&gt;Sidebar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/sections/timepicker/"&gt;Time Picker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/datatables/"&gt;Data Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/fixed_datatables/"&gt;Fixed Data Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/table/table/"&gt;Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/widgets/"&gt;Widgets&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>css3</category>
      <category>cssfonts</category>
      <category>csstutorial</category>
    </item>
    <item>
      <title>How to create beautiful forms using Contrast in React.</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/how-to-create-beautiful-forms-using-contrast-in-react-4efa</link>
      <guid>https://dev.to/devwares/how-to-create-beautiful-forms-using-contrast-in-react-4efa</guid>
      <description>&lt;p&gt;React Bootstrap forms are input-based components which are designed to collect user data. Used as login, subscribe or contact form, all can be easily customized.&lt;/p&gt;

&lt;p&gt;While creating CDB, we were aware of their importance in almost every project, so we have put a lot of effort to get them right.&lt;/p&gt;

&lt;p&gt;Such constructions like predefined Form logins, Form registers, Form subscriptions or Form contacts and other layout forms varying in their design are all at your disposal. Each of them offers a different type of functionality.&lt;/p&gt;

&lt;p&gt;We are going to look at how to create this multi-select drop-down with search today using a react library known as contrast. &lt;/p&gt;

&lt;p&gt;Contrast also known as CDBReact is a react library which is an Elegant UI kit with full bootstrap support that has reusable components for building mobile-first, responsive websites, and web apps.&lt;br&gt;
To use the contact forms you need to download the pro version &lt;a href="https://devwares.com/product/contrast-pro"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The contact forms would be built using React, Bootstrap, and CDBReact. You don’t need to have any previous knowledge of CDBReact but the following are necessary:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Basic React Knowledge&lt;/li&gt;
&lt;li&gt;JavaScript knowledge&lt;/li&gt;
&lt;li&gt;Basic Bootstrap knowledge&lt;/li&gt;
&lt;li&gt;NPM installed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The page will look like the image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yjOZpsa3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wohjr9oevcngfpw5lb45.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yjOZpsa3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wohjr9oevcngfpw5lb45.png" alt="Alt Text" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setup&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First Check that you have node installed. To do this, run the following command in your terminal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;node&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This should show you the current version of node you have installed on your machine.&lt;br&gt;
If you don’t have nodejs installed, download it here.&lt;br&gt;
Installing node also installs npm on your PC but you can still confirm using npm-v. Now that we have node installed, we can start up our React project by going to the directory of our choice and running&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;create&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;react&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="nx"&gt;signin&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I named the project signin-app but you can use any name of your choice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install CDBReact&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, we have to install CDBReact in our project&lt;/p&gt;

&lt;p&gt;Run the following command to install CBDReact using NPM&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="nx"&gt;save&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;the&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;cdbreact&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;pro&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;tgz&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or using Yarn&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;yarn&lt;/span&gt; &lt;span class="nx"&gt;add&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;the&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;cdbreact&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;pro&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;tgz&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note that we don’t need to install bootstrap or add it anywhere in our project as CDBReact does that for us upon installation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sign in&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let us go ahead to create a file named signin.js which would contain our signin component. We will be writing our code here. Import the various signin components that we’ll be using.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;import React from "react";
import { 
  CDBInput, 
  CDBCard, 
  CDBCardBody, 
  CDBIcon, 
  CDBBtn,
  CDBLink, 
  CDBContainer } from "cdbreact-pro";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we imported the react from react and we also imported&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CDBInput is used to build the input component&lt;/li&gt;
&lt;li&gt;CDBCard is used to build the card structure of the sign in&lt;/li&gt;
&lt;li&gt;CDBCardBody used to build the body of the sign in &lt;/li&gt;
&lt;li&gt;CDBIcon is component allows you to add icons to the sign in&lt;/li&gt;
&lt;li&gt;CDBBtn is the component that is used to build buttons in the sign in&lt;/li&gt;
&lt;li&gt;CDBLink is the component that is used to build links for the sign in&lt;/li&gt;
&lt;li&gt;CDBContainer is component holds the entire components used in building the sign in
components from contrast.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;const Forms = () =&amp;gt; {
  return (
    &lt;span class="nt"&gt;&amp;lt;CDBContainer&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;CDBCard&lt;/span&gt; &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;{{&lt;/span&gt; &lt;span class="na"&gt;width:&lt;/span&gt; &lt;span class="err"&gt;"30&lt;/span&gt;&lt;span class="na"&gt;rem&lt;/span&gt;&lt;span class="err"&gt;"&lt;/span&gt; &lt;span class="err"&gt;}}&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;CDBCardBody&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"mx-4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center mt-4 mb-2"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"h4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; Sign in &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;material&lt;/span&gt; &lt;span class="na"&gt;hint=&lt;/span&gt;&lt;span class="s"&gt;"E-mail"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;material&lt;/span&gt; &lt;span class="na"&gt;hint=&lt;/span&gt;&lt;span class="s"&gt;"Password"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"password"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
              &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"d-flex flex-wrap justify-content-center align-items-center"&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"Checkbox"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"m-0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Remember me&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;CDBLink&lt;/span&gt; &lt;span class="na"&gt;to=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Forgot Password ?&lt;span class="nt"&gt;&amp;lt;/CDBLink&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBBtn&lt;/span&gt;
              &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"dark"&lt;/span&gt;
              &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"btn-block my-3 mx-0"&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              Sign in
          &lt;span class="nt"&gt;&amp;lt;/CDBBtn&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Not a member?
            &lt;span class="nt"&gt;&amp;lt;CDBLink&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"d-inline p-0"&lt;/span&gt; &lt;span class="na"&gt;to=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              Register
            &lt;span class="nt"&gt;&amp;lt;/CDBLink&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; or sign in with&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"row my-3 d-flex justify-content-center"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBBtn&lt;/span&gt;
                &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"white"&lt;/span&gt;
                &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;{{&lt;/span&gt; &lt;span class="na"&gt;boxShadow:&lt;/span&gt; &lt;span class="err"&gt;"&lt;/span&gt;&lt;span class="na"&gt;none&lt;/span&gt;&lt;span class="err"&gt;"&lt;/span&gt; &lt;span class="err"&gt;}}&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;CDBIcon&lt;/span&gt; &lt;span class="na"&gt;fab&lt;/span&gt; &lt;span class="na"&gt;icon=&lt;/span&gt;&lt;span class="s"&gt;"facebook-f"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/CDBBtn&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBBtn&lt;/span&gt;
                &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"white"&lt;/span&gt;
                &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"m-0"&lt;/span&gt;
                &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;{{&lt;/span&gt; &lt;span class="na"&gt;boxShadow:&lt;/span&gt; &lt;span class="err"&gt;"&lt;/span&gt;&lt;span class="na"&gt;none&lt;/span&gt;&lt;span class="err"&gt;"&lt;/span&gt; &lt;span class="err"&gt;}}&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;CDBIcon&lt;/span&gt; &lt;span class="na"&gt;fab&lt;/span&gt; &lt;span class="na"&gt;icon=&lt;/span&gt;&lt;span class="s"&gt;"twitter"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/CDBBtn&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBBtn&lt;/span&gt;
                &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"white"&lt;/span&gt;
                &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;{{&lt;/span&gt; &lt;span class="na"&gt;boxShadow:&lt;/span&gt; &lt;span class="err"&gt;"&lt;/span&gt;&lt;span class="na"&gt;none&lt;/span&gt;&lt;span class="err"&gt;"&lt;/span&gt; &lt;span class="err"&gt;}}&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;CDBIcon&lt;/span&gt; &lt;span class="na"&gt;fab&lt;/span&gt; &lt;span class="na"&gt;icon=&lt;/span&gt;&lt;span class="s"&gt;"google-plus-g"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/CDBBtn&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/CDBCardBody&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/CDBCard&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/CDBContainer&amp;gt;&lt;/span&gt;
  );
};

export default Forms;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we created the sign in form and included some styling in the different components in order to make them more appealing.&lt;/p&gt;

&lt;p&gt;However, we must first render our component before we can see it display on our screen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;import './App.css';
import Forms from './signin';
import Reactdom from "react-dom";
import { BrowserRouter as Router } from 'react-router-dom';

function App() {
  return (
    &lt;span class="nt"&gt;&amp;lt;Router&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"App"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;Forms&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/Router&amp;gt;&lt;/span&gt;
  );
}

export default App;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The final page should look like the image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yjOZpsa3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wohjr9oevcngfpw5lb45.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yjOZpsa3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wohjr9oevcngfpw5lb45.png" alt="Alt Text" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Sign up form
&lt;/h2&gt;

&lt;p&gt;The sign up form is used in several web apps to register for anything or even to recognize users on a platform.&lt;/p&gt;

&lt;p&gt;Let's go ahead to create a file named signup.js which would contain our signup component. We will be writing our code here. Import the various signup components that we’ll be using.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;import React from "react";
import { 
  CDBInput, 
  CDBCard, 
  CDBCardBody, 
  CDBIcon, 
  CDBBtn, 
  CDBLink,
  CDBContainer } from "cdbreact-pro";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we imported the react from react and we also imported&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CDBInput&lt;/li&gt;
&lt;li&gt;CDBCard&lt;/li&gt;
&lt;li&gt;CDBCardBody&lt;/li&gt;
&lt;li&gt;CDBIcon&lt;/li&gt;
&lt;li&gt;CDBBtn&lt;/li&gt;
&lt;li&gt;CDBLink &lt;/li&gt;
&lt;li&gt;CDBContainer 
components from contrast&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;const Forms = () =&amp;gt; {
  return (
    &lt;span class="nt"&gt;&amp;lt;CDBContainer&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;CDBCard&lt;/span&gt; &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;{{&lt;/span&gt; &lt;span class="na"&gt;width:&lt;/span&gt; &lt;span class="err"&gt;"30&lt;/span&gt;&lt;span class="na"&gt;rem&lt;/span&gt;&lt;span class="err"&gt;"&lt;/span&gt; &lt;span class="err"&gt;}}&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;CDBCardBody&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"mx-4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center mt-4 mb-2"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"h4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; Sign up &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"form-row mb-n4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"col"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;material&lt;/span&gt; &lt;span class="na"&gt;hint=&lt;/span&gt;&lt;span class="s"&gt;"First name"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"col"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;material&lt;/span&gt; &lt;span class="na"&gt;hint=&lt;/span&gt;&lt;span class="s"&gt;"Last name"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;material&lt;/span&gt; &lt;span class="na"&gt;hint=&lt;/span&gt;&lt;span class="s"&gt;"E-mail"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-muted text-center small mt-n4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            At least 8 characters and 1 digit
          &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;material&lt;/span&gt; &lt;span class="na"&gt;hint=&lt;/span&gt;&lt;span class="s"&gt;"Password"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"password"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;material&lt;/span&gt; &lt;span class="na"&gt;hint=&lt;/span&gt;&lt;span class="s"&gt;"Phone number"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-muted text-center small mt-n4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            Optional - for two step authentication
          &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; 
            &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"d-flex justify-content-center align-items-center mt-4"&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"Forms"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"m-0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Subscribe to our newsletter&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBBtn&lt;/span&gt;
            &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"dark"&lt;/span&gt;
            &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"btn-block my-3 mx-0"&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              Sign up
          &lt;span class="nt"&gt;&amp;lt;/CDBBtn&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; or sign up with&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"row mb-3 d-flex justify-content-center"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBBtn&lt;/span&gt;
              &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"white"&lt;/span&gt;
              &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"m-0"&lt;/span&gt;
              &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;{{boxShadow:"none"}}&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;CDBIcon&lt;/span&gt; &lt;span class="na"&gt;fab&lt;/span&gt; &lt;span class="na"&gt;icon=&lt;/span&gt;&lt;span class="s"&gt;"facebook-f"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/CDBBtn&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBBtn&lt;/span&gt;
              &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"white"&lt;/span&gt;
              &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"m-0"&lt;/span&gt;
              &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;{{boxShadow:"none"}}&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;CDBIcon&lt;/span&gt; &lt;span class="na"&gt;fab&lt;/span&gt; &lt;span class="na"&gt;icon=&lt;/span&gt;&lt;span class="s"&gt;"twitter"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/CDBBtn&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;CDBBtn&lt;/span&gt;
              &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"white"&lt;/span&gt;
              &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"m-0"&lt;/span&gt;
              &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;{{boxShadow:"none"}}&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nt"&gt;&amp;lt;CDBIcon&lt;/span&gt; &lt;span class="na"&gt;fab&lt;/span&gt; &lt;span class="na"&gt;icon=&lt;/span&gt;&lt;span class="s"&gt;"google-plus-g"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/CDBBtn&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center m-0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              Already have an account? 
              &lt;span class="nt"&gt;&amp;lt;CDBLink&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"d-inline p-0"&lt;/span&gt; &lt;span class="na"&gt;to=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                Sign In
              &lt;span class="nt"&gt;&amp;lt;/CDBLink&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;hr/&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            By clicking &lt;span class="nt"&gt;&amp;lt;em&amp;gt;&lt;/span&gt;Sign up&lt;span class="nt"&gt;&amp;lt;/em&amp;gt;&lt;/span&gt; you agree to our 
            &lt;span class="nt"&gt;&amp;lt;CDBLink&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"d-inline p-0"&lt;/span&gt; &lt;span class="na"&gt;to=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              terms of service
            &lt;span class="nt"&gt;&amp;lt;/CDBLink&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/CDBCardBody&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/CDBCard&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/CDBContainer&amp;gt;&lt;/span&gt;
  );
};

export default Forms;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, the different components are used to create the body of the sign up contact form.  We also included some styling and added social media contact in the sign up page.&lt;/p&gt;

&lt;p&gt;The next step is to render the signup form in our app.js file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;import './App.css';
import Forms from './signup';
import Reactdom from "react-dom";
import { BrowserRouter as Router } from 'react-router-dom';

function App() {
  return (
    &lt;span class="nt"&gt;&amp;lt;Router&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"App"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
       &lt;span class="nt"&gt;&amp;lt;Forms&lt;/span&gt;  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/Router&amp;gt;&lt;/span&gt;
  );
}

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The signup page should look like the image below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XXb_Eb-L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y2k4mhqmi7l0qe8lfhmk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XXb_Eb-L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y2k4mhqmi7l0qe8lfhmk.png" alt="Alt Text" width="800" height="634"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Newsletter subscription
&lt;/h2&gt;

&lt;p&gt;The newsletter subscription page will house your contact information to help business owners reach their customers and subscribers easily. The page we are going to create will look like the image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cGJkrX4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdzim7yp9y99a8rp6m1f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cGJkrX4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdzim7yp9y99a8rp6m1f.png" alt="Alt Text" width="800" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install CDBReact&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, we have to install CDBReact in our project. Run the following command to install CBDReact&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="nx"&gt;save&lt;/span&gt; &lt;span class="nx"&gt;cdbreact&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or using Yarn&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;yarn&lt;/span&gt; &lt;span class="nx"&gt;add&lt;/span&gt; &lt;span class="nx"&gt;cdbreact&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's go ahead to create a file named newsletter.js which would contain our signup component. We will be writing our code here.  First we will Import the various components that we’ll be using.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;import React from "react";
import { 
  CDBInput, 
  CDBCard, 
  CDBCardBody, 
  CDBIcon, 
  CDBBtn, 
  CDBLink, 
  CDBContainer } from "cdbreact";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we imported the react from react and we also imported&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CDBInput&lt;/li&gt;
&lt;li&gt;CDBCard&lt;/li&gt;
&lt;li&gt;CDBCardBody&lt;/li&gt;
&lt;li&gt;CDBIcon&lt;/li&gt;
&lt;li&gt;CDBBtn&lt;/li&gt;
&lt;li&gt;CDBLink &lt;/li&gt;
&lt;li&gt;CDBContainer 
components from contrast&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, we are going to write the function that will display the newsletter subscription form.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;const Forms = () =&amp;gt; {
  return (
    &lt;span class="nt"&gt;&amp;lt;CDBContainer&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;CDBCard&lt;/span&gt; &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;{{&lt;/span&gt; &lt;span class="na"&gt;width:&lt;/span&gt; &lt;span class="err"&gt;"30&lt;/span&gt;&lt;span class="na"&gt;rem&lt;/span&gt;&lt;span class="err"&gt;"&lt;/span&gt; &lt;span class="err"&gt;}}&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;CDBCardBody&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"mx-4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center mt-4 mb-2"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"h4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Subscribe&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center mt-4 font-weight-light"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            Join our mailing list. We write rarely, but only the best content.
          &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBLink&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"text-center p-0 font-weight-light"&lt;/span&gt; &lt;span class="na"&gt;to=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            See the last newsletter
          &lt;span class="nt"&gt;&amp;lt;/CDBLink&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;material&lt;/span&gt; &lt;span class="na"&gt;hint=&lt;/span&gt;&lt;span class="s"&gt;"Name"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBInput&lt;/span&gt; &lt;span class="na"&gt;material&lt;/span&gt; &lt;span class="na"&gt;hint=&lt;/span&gt;&lt;span class="s"&gt;"E-mail"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;CDBBtn&lt;/span&gt;
            &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"dark"&lt;/span&gt;
            &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"btn-block my-3 mx-0"&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              Subscribe
          &lt;span class="nt"&gt;&amp;lt;/CDBBtn&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/CDBCardBody&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/CDBCard&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/CDBContainer&amp;gt;&lt;/span&gt;
  );
};

export default Forms;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We added some styling to the components of the newsletter contact form and links to the social media contact.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;import './App.css';
import Forms from './newsletter';
import Reactdom from "react-dom";
import { BrowserRouter as Router } from 'react-router-dom';


function App() {
  return (
    &lt;span class="nt"&gt;&amp;lt;Router&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;className=&lt;/span&gt;&lt;span class="s"&gt;"App"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
       &lt;span class="nt"&gt;&amp;lt;Forms&lt;/span&gt;  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/Router&amp;gt;&lt;/span&gt;
  );
}

Reactdom.render(&lt;span class="nt"&gt;&amp;lt;App&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;, document.getElementById('root'));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we rendered the newsletter file in the app.js. This doesn’t require a pro version.&lt;/p&gt;

&lt;p&gt;The final page will look like this &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cGJkrX4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdzim7yp9y99a8rp6m1f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cGJkrX4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdzim7yp9y99a8rp6m1f.png" alt="Alt Text" width="800" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Contact forms are known to be used in creating sign in forms, sign up forms and newsletter which you can see is easier and much faster to create using contrast and gives you a lot of options to include bootstrap features without having to install it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://devwares.com/docs/contrast/react/forms"&gt;CDBReact Contact Form Docs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/devwares-team/cdbreact"&gt;Link to code on github&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://devwares.com/product/contrast-pro"&gt;Get Contrast Pro&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create Stunning Websites and Web Apps
&lt;/h3&gt;

&lt;p&gt;Building different custom components in react for your web apps or websites can get very stressful. Thats why we decided to build contrast. We have put together a UI kit with over 10000+ components, 5 admin dashboards and 23 additional different pages template for building almost any type of web app or webpage into a single product called Contrast Pro. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Try contrast pro!&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---UwZjfC5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---UwZjfC5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" alt="Contrast Design Boostrap" width="635" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contrast React Bootstrap PRO is a Multipurpose pro template, UI kit to build your next landing, admin, SAAS, prelaunch, etc. project with a clean, well documented, well crafted template and UI components. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Learn more about Contrast Pro&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/Iheanacho-ai/Tailwind-react-modal"&gt;Link to the Github Code&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://tailwindui.com/components/application-ui/overlays/modals"&gt;Link to the Tailwind CSS Modals Docs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://tailwindui.com/pricing"&gt;Get Tailwind CSS PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/modal"&gt;Link to the modal documentation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-modal"&gt;How to create Tailwind CSS Modal&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML"&gt;How to use tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good"&gt;Why tailwind CSS is good&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-in-nextjs"&gt;How to use Tailwind CSS in Nextjs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-components-for-your-website"&gt;How to create Tailwind CSS Components for your Website&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-animation-with-tailwind-css/"&gt;How to create Tailwind CSS Animation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-grid-to-your-project/"&gt;Tailwind grid-How to use tailwind CSS grid templates in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;Tailwind form-How to create and style a Responsive Form using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-flex/"&gt;Tailwind CSS Flex: How to use Tailwind CSS Flex&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-padding-margin-and-border-in-your-project/"&gt;How to use tailwind CSS padding, margin and border in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-the-tailwind-css-JIT-CDN/"&gt;Tailwind CSS CDN-How to use the Tailwind CSS JIT CDN&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML/"&gt;How to use Tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-tables/"&gt;Tailwind CSS table-How to Create Tailwind CSS tables&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good/"&gt;Why is tailwind CSS better than other CSS framework&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-10-templates-and-themes/"&gt;10 tailwind CSS templates and themes&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-colors-and-fonts-to-your-project/"&gt;How to add tailwind CSS colors and Fonts to your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/differences-between-tailwind-css-and-sass/"&gt;Differences between Tailwind CSS and SASS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/diffrences-between-tailwind-css-and-bootstrap/"&gt;Differences Between Tailwind CSS and Bootstrap&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/awesome-10-projects-built-with-tailwind/"&gt;10 Awesome projects built with Tailwind CSS&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-vuejs/"&gt;How to install Tailwind CSS in Vue.js&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-react/"&gt;How to use Tailwind CSS in React&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-laravel/"&gt;How to install Tailwind CSS with Laravel&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-datepicker-with-contrast/"&gt;How to create react date picker&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;React bootstrap 5 form-How to create React forms&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-multiselect-with-contrast/"&gt;How to create a beautiful React multiselect&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-progress-with-contrast/"&gt;How to create a beautiful React Bootstrap progress bar&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-select-with-contrast/"&gt;How to create a beautiful React Bootstrap select with icons&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-stepper-with-contrast/"&gt;How to create a beautiful Bootstrap 5 stepper&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tables-with-contrast/"&gt;How to create a beautiful React Bootstrap table&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tabs-with-contrast/"&gt;How to create beautiful React Bootstrap tabs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-react-modal-using-tailwind-css/"&gt;Tailwind Modal-How to create a React Modal using Tailwind CSS.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-bootstrap5-modal/"&gt;How to create a Bootstrap 5 Modal.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/Tailwind-width/"&gt;How to use Tailwind CSS Width&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/How-to-add-color-to-Tailwind/"&gt;Tailwind CSS Colors 3.0&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-react-tabs-with-tailwind-css/"&gt;How to Create React Tabs with Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-dark-mode-in-tailwind-css/"&gt;How to implement dark mode in React using tailwind css&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-a-react-step-progress-bar-using-tailwind-css/"&gt;How to Implement a React Step Progress Bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tailwindcss</category>
      <category>react</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to create a beautiful Bootstrap Datatable with Icons</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/how-to-create-a-beautiful-bootstrap-datatable-with-icons-3jb2</link>
      <guid>https://dev.to/devwares/how-to-create-a-beautiful-bootstrap-datatable-with-icons-3jb2</guid>
      <description>&lt;h2&gt;
  
  
  How to create a datatable in react using Contrast
&lt;/h2&gt;

&lt;p&gt;DataTables are components that mix tables with advanced options like searching, sorting and pagination. Today, we’ll be creating DataTables in react using a react library knows as Contrast. Contrast, also known as CDBReact, is a react library which is an Elegant UI kit with full bootstrap support that has reusable components for building mobile-first, responsive websites and web apps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The react bootstrap DataTables would be built using React, Bootstrap, and CDBReact. You don’t need to have any previous knowledge of CDBReact, but the following are necessary:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JavaScript Knowledge&lt;/li&gt;
&lt;li&gt;Basic React Knowledge&lt;/li&gt;
&lt;li&gt;Basic Bootstrap Knowledge&lt;/li&gt;
&lt;li&gt;JavaScript Knowledge&lt;/li&gt;
&lt;li&gt;NPM installed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The DataTable we will be building is show below&lt;a href="///static/928857eeeb0ada9a48064fe1fdf01ad5/20982/datatable1.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dg6FqD6K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://www.devwares.com/static/928857eeeb0ada9a48064fe1fdf01ad5/20982/datatable1.png" alt="React Bootstrap Datatable" title="React Bootstrap Datatable" width="778" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setup&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First, Check that you have node installed. To do this, run the following command in your terminal.&lt;code&gt;node -v&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This should show you the current version of node you have installed on your machine. If you don’t have node.js installed, download it here. Installing node also installs npm on your PC, but you can still confirm using &lt;code&gt;npm-v&lt;/code&gt;. Now that we have node installed, we can start up our React project by going to the directory of our choice and running&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
npx create-react-app datatables-app

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I named the project &lt;code&gt;datatables-app&lt;/code&gt;, but you can use whatever name of your choice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install CDBReact&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, we have to install CDBReact in our project Run the following command to install CBDReact&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
npm install --save ./path-to-the-cdbreact-pro-tgz-file

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or using Yarn&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
yarn add ./path-to-the-cdbreact-pro-tgz-file

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note that we don’t need to install bootstrap or add it anywhere in our project, as CDBReact does that for us upon installation. Now run &lt;code&gt;npm start&lt;/code&gt; to make sure that everything works well and there are no errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  DataTables
&lt;/h2&gt;

&lt;p&gt;The first thing we will do at this stage is create a file that would house our datatable main codes. I named the file DataTable.js. You can, of course, name it anything you wish. In the file, import some datatable components from contrast and React from react.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from "react";
import {
    CDBCard, CDBCardBody, CDBDataTable, CDBRow, CDBCol, CDBContainer
  } from "cdbreact-pro";

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we imported some component from the contrast that is important in building the dataTable. These are the components&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CDBCard which is used to build a card structure for the table&lt;/li&gt;
&lt;li&gt;CDBCardBody is used to create the body of the card which holds the table.&lt;/li&gt;
&lt;li&gt;CDBDataTable this component holds the date, the row and column&lt;/li&gt;
&lt;li&gt;CDBRow this component is used to create the row of the data table&lt;/li&gt;
&lt;li&gt;CDBCol this component is used to build the column of the datatable&lt;/li&gt;
&lt;li&gt;CDBContainer this component houses the entire code for the dataTable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const DataTable = () =&amp;gt; {
  function testClickEvent(param) {
    alert('Row Click Event');
  }

  const data = () =&amp;gt; {
    return {
      columns: [
        {
          label: 'Name',
          field: 'name',
          width: 150,
          attributes: {
            'aria-controls': 'DataTable',
            'aria-label': 'Name',
          },
        },
        {
          label: 'Position',
          field: 'position',
          width: 270,
        },
        {
          label: 'Office',
          field: 'office',
          width: 200,
        },
        {
          label: 'Age',
          field: 'age',
          sort: 'asc',
          width: 100,
        },
        {
          label: 'Start date',
          field: 'date',
          sort: 'disabled',
          width: 150,
        },
        {
          label: 'Salary',
          field: 'salary',
          sort: 'disabled',
          width: 100,
        },
      ],

      rows: [
        {
          name: 'Tiger Nixon',
          position: 'System Architect',
          office: 'Edinburgh',
          age: '61',
          date: '2011/04/25',
          salary: '$320',
          clickEvent: () =&amp;gt; testClickEvent(1),
        },
        {
          name: 'Garrett Winters',
          position: 'Accountant',
          office: 'Tokyo',
          age: '63',
          date: '2011/07/25',
          salary: '$170',
        },
        {
          name: 'Ashton Cox',
          position: 'Junior Technical Author',
          office: 'San Francisco',
          age: '66',
          date: '2009/01/12',
          salary: '$86',
        },
        {
          name: 'Cedric Kelly',
          position: 'Senior Javascript Developer',
          office: 'Edinburgh',
          age: '22',
          date: '2012/03/29',
          salary: '$433',
        },
        {
          name: 'Airi Satou',
          position: 'Accountant',
          office: 'Tokyo',
          age: '33',
          date: '2008/11/28',
          salary: '$162',
        },
        {
          name: 'Brielle Williamson',
          position: 'Integration Specialist',
          office: 'New York',
          age: '61',
          date: '2012/12/02',
          salary: '$372',
        },
        {
          name: 'Herrod Chandler',
          position: 'Sales Assistant',
          office: 'San Francisco',
          age: '59',
          date: '2012/08/06',
          salary: '$137',
        },
        {
          name: 'Rhona Davidson',
          position: 'Integration Specialist',
          office: 'Tokyo',
          age: '55',
          date: '2010/10/14',
          salary: '$327',
        },
        {
          name: 'Colleen Hurst',
          position: 'Javascript Developer',
          office: 'San Francisco',
          age: '39',
          date: '2009/09/15',
          salary: '$205',
        },
        {
          name: 'Sonya Frost',
          position: 'Software Engineer',
          office: 'Edinburgh',
          age: '23',
          date: '2008/12/13',
          salary: '$103',
        },
        {
          name: 'Jena Gaines',
          position: 'Office Manager',
          office: 'London',
          age: '30',
          date: '2008/12/19',
          salary: '$90',
        },
        {
          name: 'Quinn Flynn',
          position: 'Support Lead',
          office: 'Edinburgh',
          age: '22',
          date: '2013/03/03',
          salary: '$342',
        },
        {
          name: 'Charde Marshall',
          position: 'Regional Director',
          office: 'San Francisco',
          age: '36',
          date: '2008/10/16',
          salary: '$470',
        },
        {
          name: 'Haley Kennedy',
          position: 'Senior Marketing Designer',
          office: 'London',
          age: '43',
          date: '2012/12/18',
          salary: '$313',
        },
        {
          name: 'Tatyana Fitzpatrick',
          position: 'Regional Director',
          office: 'London',
          age: '19',
          date: '2010/03/17',
          salary: '$385',
        },
        {
          name: 'Michael Silva',
          position: 'Marketing Designer',
          office: 'London',
          age: '66',
          date: '2012/11/27',
          salary: '$198',
        },
        {
          name: 'Paul Byrd',
          position: 'Chief Financial Officer (CFO)',
          office: 'New York',
          age: '64',
          date: '2010/06/09',
          salary: '$725',
        },
        {
          name: 'Gloria Little',
          position: 'Systems Administrator',
          office: 'New York',
          age: '59',
          date: '2009/04/10',
          salary: '$237',
        },
        {
          name: 'Bradley Greer',
          position: 'Software Engineer',
          office: 'London',
          age: '41',
          date: '2012/10/13',
          salary: '$132',
        },
        {
          name: 'Dai Rios',
          position: 'Personnel Lead',
          office: 'Edinburgh',
          age: '35',
          date: '2012/09/26',
          salary: '$217',
        },
        {
          name: 'Jenette Caldwell',
          position: 'Development Lead',
          office: 'New York',
          age: '30',
          date: '2011/09/03',
          salary: '$345',
        },
        {
          name: 'Yuri Berry',
          position: 'Chief Marketing Officer (CMO)',
          office: 'New York',
          age: '40',
          date: '2009/06/25',
          salary: '$675',
        },
        {
          name: 'Caesar Vance',
          position: 'Pre-Sales Support',
          office: 'New York',
          age: '21',
          date: '2011/12/12',
          salary: '$106',
        },
        {
          name: 'Doris Wilder',
          position: 'Sales Assistant',
          office: 'Sidney',
          age: '23',
          date: '2010/09/20',
          salary: '$85',
        },
        {
          name: 'Angelica Ramos',
          position: 'Chief Executive Officer (CEO)',
          office: 'London',
          age: '47',
          date: '2009/10/09',
          salary: '$1',
        },
        {
          name: 'Gavin Joyce',
          position: 'Developer',
          office: 'Edinburgh',
          age: '42',
          date: '2010/12/22',
          salary: '$92',
        },
        {
          name: 'Jennifer Chang',
          position: 'Regional Director',
          office: 'Singapore',
          age: '28',
          date: '2010/11/14',
          salary: '$357',
        },
        {
          name: 'Brenden Wagner',
          position: 'Software Engineer',
          office: 'San Francisco',
          age: '28',
          date: '2011/06/07',
          salary: '$206',
        },
        {
          name: 'Fiona Green',
          position: 'Chief Operating Officer (COO)',
          office: 'San Francisco',
          age: '48',
          date: '2010/03/11',
          salary: '$850',
        },
        {
          name: 'Shou Itou',
          position: 'Regional Marketing',
          office: 'Tokyo',
          age: '20',
          date: '2011/08/14',
          salary: '$163',
        },
        {
          name: 'Michelle House',
          position: 'Integration Specialist',
          office: 'Sidney',
          age: '37',
          date: '2011/06/02',
          salary: '$95',
        },
        {
          name: 'Suki Burks',
          position: 'Developer',
          office: 'London',
          age: '53',
          date: '2009/10/22',
          salary: '$114',
        },
        {
          name: 'Prescott Bartlett',
          position: 'Technical Author',
          office: 'London',
          age: '27',
          date: '2011/05/07',
          salary: '$145',
        },

        {
          name: 'Donna Snider',
          position: 'Customer Support',
          office: 'New York',
          age: '27',
          date: '2011/01/25',
          salary: '$112',
        },
      ],
    };
  };

  return (
    &amp;lt;CDBContainer&amp;gt;
      &amp;lt;CDBCard&amp;gt;
        &amp;lt;CDBCardBody&amp;gt;
          &amp;lt;CDBDataTable
            striped
            bordered
            hover
            entriesOptions={[5, 20, 25]}
            entries={5}
            pagesAmount={4}
            data={data()}
            materialSearch={true}
          /&amp;gt;
        &amp;lt;/CDBCardBody&amp;gt;
      &amp;lt;/CDBCard&amp;gt;
    &amp;lt;/CDBContainer&amp;gt;
  );
};
export default DataTable;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We used the different components from Contrast to create the following bootstrap Data table above. We also added some styling to the components to help make the react Bootstrap Data table more presentable. In the code below, we are going to render the Data Table component on the &lt;code&gt;app.js&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
import './App.css';
import DataTable from './DataTable';
import Reactdom from "react-dom";

function App() {
  return (
    &amp;lt;div className="App"&amp;gt;
      &amp;lt;DataTable /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}

export default App;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Our page should look like the image below:&lt;a href="///static/e8b6600fd754aa5fd8946583b43d81cc/5a190/datatable2.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qoETFrlg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://www.devwares.com/static/e8b6600fd754aa5fd8946583b43d81cc/5a190/datatable2.png" alt="React Bootstrap Datatable" title="React Bootstrap Datatable" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Boostrap Datatable are easy to build using Contrast which you have seen. You can also use several tools, including bootstrap styling without installing bootstrap, to create your Bootstrap datatable template and make it suit you. You can also check out some other features you can use in &lt;a href="https://devwares.com/docs/contrast/react/table/datatables"&gt;CDBReact DataTable Docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/product/bootstrap-contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-modal"&gt;How to create Tailwind CSS Modal&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML"&gt;How to use tailwind css in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good"&gt;Why tailwind CSS is good&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-in-nextjs"&gt;How to use Tailwind CSS in Nextjs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-components-for-your-website"&gt;How to create Tailwind CSS Components for your Website&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-animation-with-tailwind-css/"&gt;How to create Tailwind CSS Animation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-grid-to-your-project/"&gt;Tailwind grid-How to use tailwind CSS grid templates in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;Tailwind form-How to create and style a Responsive Form using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-flex/"&gt;Tailwind CSS Flex: How to use Tailwind CSS Flex&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-padding-margin-and-border-in-your-project/"&gt;How to use tailwind CSS padding, margin and border in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-the-tailwind-css-JIT-CDN/"&gt;Tailwind CSS CDN-How to use the Tailwind CSS JIT CDN&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML/"&gt;How to use Tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-tables/"&gt;Tailwind CSS table-How to Create Tailwind CSS tables&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good/"&gt;Why is tailwind CSS better than other CSS framework&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-10-templates-and-themes/"&gt;10 tailwind CSS templates and themes&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-colors-and-fonts-to-your-project/"&gt;How to add tailwind CSS colors and Fonts to your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/differences-between-tailwind-css-and-sass/"&gt;Differences between Tailwind CSS and SASS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/diffrences-between-tailwind-css-and-bootstrap/"&gt;Differences Between Tailwind CSS and Bootstrap&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/awesome-10-projects-built-with-tailwind/"&gt;10 Awesome projects built with Tailwind CSS&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-vuejs/"&gt;How to install Tailwind CSS in Vue.js&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-react/"&gt;How to use Tailwind CSS in React&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-laravel/"&gt;How to install Tailwind CSS with Laravel&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-datepicker-with-contrast/"&gt;How to create react date picker&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;React bootstrap 5 form-How to create React forms&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-multiselect-with-contrast/"&gt;How to create a beautiful React multiselect&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-progress-with-contrast/"&gt;How to create a beautiful React Bootstrap progress bar&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-select-with-contrast/"&gt;How to create a beautiful React Bootstrap select with icons&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-stepper-with-contrast/"&gt;How to create a beautiful Bootstrap 5 stepper&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tables-with-contrast/"&gt;How to create a beautiful React Bootstrap table&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tabs-with-contrast/"&gt;How to create beautiful React Bootstrap tabs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-react-modal-using-tailwind-css/"&gt;Tailwind Modal-How to create a React Modal using Tailwind CSS.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-bootstrap5-modal/"&gt;How to create a Bootstrap 5 Modal.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-datatable-with-contrast/"&gt;How to create a beautiful Bootstrap Data table with Icons&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-datepicker-with-contrast/"&gt;How to create a React date picker.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-forms-with-contrast/"&gt;React bootstrap 5 form-How to create React forms&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/Tailwind-width/"&gt;How to use Tailwind CSS Width&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/How-to-add-color-to-Tailwind/"&gt;Tailwind CSS Colors 3.0&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-react-tabs-with-tailwind-css/"&gt;How to Create React Tabs with Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-dark-mode-in-tailwind-css/"&gt;How to implement dark mode in React using tailwind css&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-a-react-step-progress-bar-using-tailwind-css/"&gt;How to Implement a React Step Progress Bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>bootstrap5</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>How to create a beautiful select with icons using bootstrap and Contrast on React.</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/how-to-create-a-beautiful-select-with-icons-using-bootstrap-and-contrast-on-react-p22</link>
      <guid>https://dev.to/devwares/how-to-create-a-beautiful-select-with-icons-using-bootstrap-and-contrast-on-react-p22</guid>
      <description>&lt;p&gt;The Select component is a form control, that after the click displays a collapsible list of multiple values which can be used in forms, menus or surveys.&lt;/p&gt;

&lt;p&gt;Select enables you to use ↑ and ↓ arrow keys to navigate through options and use ↵ key to select required option (works for stateful select). We are going to look at how to create a select using contrast.&lt;/p&gt;

&lt;p&gt;Contrast also known as CDBReact is a react library which is an Elegant UI kit with full bootstrap support that has reusable components for building mobile-first, responsive websites, and web apps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Select would be built using React, Bootstrap, and CDBReact. You don’t need to have any previous knowledge of CDBReact but the following are necessary:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JavaScript Knowledge&lt;/li&gt;
&lt;li&gt;Basic React Knowledge&lt;/li&gt;
&lt;li&gt;Basic Bootstrap knowledge&lt;/li&gt;
&lt;li&gt;NPM installed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The select page with the icon, we are going to build looks like the image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--t4WgLtMN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxsx7ayonmznxpajsll9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--t4WgLtMN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxsx7ayonmznxpajsll9.png" alt="Select" width="800" height="221"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setup&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First Check that you have node installed. To do this, run the following command in your terminal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;node&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This should show you the current version of node you have installed on your machine.&lt;br&gt;
If you don’t have nodejs installed, download it here.&lt;br&gt;
Installing node also installs npm on your PC but you can still confirm using npm-v. Now that we have node installed, we can start up our React project by going to the directory of our choice and running&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;create&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;react&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="nx"&gt;select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I named the project select-app but you can use whatever name of your choice.&lt;br&gt;
Select with icon&lt;br&gt;
Going forward, we need to create a file named select.js which would contain our select component. Then, we can Import the select component that we’ll be using. It is important you download the pro version of contrast to use the select with icons.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installing CDBReact-pro&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before we install our CDBReact we have to download the pro version &lt;a href="https://devwares.com/product/contrast-pro"&gt;here&lt;/a&gt; first. Then, we can go ahead to install them in our project. It is advised to add the file to the root of the project by running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="nx"&gt;save&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;the&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;cdbreact&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;pro&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;tgz&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or using Yarn&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;yarn&lt;/span&gt; &lt;span class="nx"&gt;add&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;the&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;cdbreact&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;pro&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;tgz&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note that we don’t need to install bootstrap or add it anywhere in our project as CDBReact does that for us upon installation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;useState&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;CDBSelect&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;CDBContainer&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;cdbreact-pro&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, we imported the useState from react including CDBSelect and CDBContainer from contrast.&lt;br&gt;
we can now go ahead to create the select with icon and add styling to them according to our preference. In order to use the select with icons you need to download the pro version of contrast.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;Select&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;option&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Select Option&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;icon&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;stack-overflow&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Another Option&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;icon&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;reddit&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Option 3&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;icon&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;instagram&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Option 4&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Last Option&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;]);&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBContainer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBSelect2&lt;/span&gt; 
              &lt;span class="na"&gt;options&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;option&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; 
              &lt;span class="na"&gt;iconBrand&lt;/span&gt; 
              &lt;span class="na"&gt;selected&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Choose an option"&lt;/span&gt; 
              &lt;span class="na"&gt;color&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"white"&lt;/span&gt;
            &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;CDBContainer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nx"&gt;Select&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the above code, the select component is created and the various style and icons are added. &lt;br&gt;
Let us go ahead to import the created select component into our app component&lt;/p&gt;

&lt;p&gt;Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./App.css&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Select&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./select&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Reactdom&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;react-dom&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"App"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Select&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;Reactdom&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;App&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;,&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;root&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Our page should look like this&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--t4WgLtMN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxsx7ayonmznxpajsll9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--t4WgLtMN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxsx7ayonmznxpajsll9.png" alt="Select" width="800" height="221"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A select using contrast is quite simple and allows you to use several tools including bootstrap styling without installing bootstrap to create your select with icon. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://devwares.com/docs/contrast/react/components/select2"&gt;CDBReact Select Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/devwares-team/cdbreact"&gt;Link to code on github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://devwares.com/product/contrast-pro"&gt;Get Contrast Pro&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Create Stunning Websites and Web Apps
&lt;/h3&gt;

&lt;p&gt;Building different custom components in react for your web apps or websites can get very stressful. Thats why we decided to build contrast. We have put together a UI kit with over 10000+ components, 5 admin dashboards and 23 additional different pages template for building almost any type of web app or webpage into a single product called Contrast Pro. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Try contrast pro!&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---UwZjfC5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---UwZjfC5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" alt="Contrast Design Boostrap" width="635" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contrast React Bootstrap PRO is a Multipurpose pro template, UI kit to build your next landing, admin, SAAS, prelaunch, etc. project with a clean, well documented, well crafted template and UI components. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Learn more about Contrast Pro&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/Iheanacho-ai/Tailwind-react-modal"&gt;Link to the Github Code&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://tailwindui.com/components/application-ui/overlays/modals"&gt;Link to the Tailwind CSS Modals Docs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://tailwindui.com/pricing"&gt;Get Tailwind CSS PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/modal"&gt;Link to the modal documentation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-modal"&gt;How to create Tailwind CSS Modal&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML"&gt;How to use tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good"&gt;Why tailwind CSS is good&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-in-nextjs"&gt;How to use Tailwind CSS in Nextjs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-components-for-your-website"&gt;How to create Tailwind CSS Components for your Website&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-animation-with-tailwind-css/"&gt;How to create Tailwind CSS Animation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-grid-to-your-project/"&gt;Tailwind grid-How to use tailwind CSS grid templates in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;Tailwind form-How to create and style a Responsive Form using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-flex/"&gt;Tailwind CSS Flex: How to use Tailwind CSS Flex&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-padding-margin-and-border-in-your-project/"&gt;How to use tailwind CSS padding, margin and border in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-the-tailwind-css-JIT-CDN/"&gt;Tailwind CSS CDN-How to use the Tailwind CSS JIT CDN&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML/"&gt;How to use Tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-tables/"&gt;Tailwind CSS table-How to Create Tailwind CSS tables&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good/"&gt;Why is tailwind CSS better than other CSS framework&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-10-templates-and-themes/"&gt;10 tailwind CSS templates and themes&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-colors-and-fonts-to-your-project/"&gt;How to add tailwind CSS colors and Fonts to your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/differences-between-tailwind-css-and-sass/"&gt;Differences between Tailwind CSS and SASS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/diffrences-between-tailwind-css-and-bootstrap/"&gt;Differences Between Tailwind CSS and Bootstrap&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/awesome-10-projects-built-with-tailwind/"&gt;10 Awesome projects built with Tailwind CSS&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-vuejs/"&gt;How to install Tailwind CSS in Vue.js&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-react/"&gt;How to use Tailwind CSS in React&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-laravel/"&gt;How to install Tailwind CSS with Laravel&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-datepicker-with-contrast/"&gt;How to create react date picker&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;React bootstrap 5 form-How to create React forms&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-multiselect-with-contrast/"&gt;How to create a beautiful React multiselect&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-progress-with-contrast/"&gt;How to create a beautiful React Bootstrap progress bar&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-select-with-contrast/"&gt;How to create a beautiful React Bootstrap select with icons&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-stepper-with-contrast/"&gt;How to create a beautiful Bootstrap 5 stepper&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tables-with-contrast/"&gt;How to create a beautiful React Bootstrap table&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tabs-with-contrast/"&gt;How to create beautiful React Bootstrap tabs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-react-modal-using-tailwind-css/"&gt;Tailwind Modal-How to create a React Modal using Tailwind CSS.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-bootstrap5-modal/"&gt;How to create a Bootstrap 5 Modal.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-react-tabs-with-tailwind-css/"&gt;How to Create React Tabs with Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-dark-mode-in-tailwind-css/"&gt;How to implement dark mode in React using tailwind css&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-a-react-step-progress-bar-using-tailwind-css/"&gt;How to Implement a React Step Progress Bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>programming</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>How to create a beautiful tables using bootstrap and Contrast on React.</title>
      <dc:creator>Sampson Ovuoba</dc:creator>
      <pubDate>Tue, 20 Apr 2021 01:16:04 +0000</pubDate>
      <link>https://dev.to/devwares/how-to-create-a-beautiful-tables-using-bootstrap-and-contrast-on-react-67i</link>
      <guid>https://dev.to/devwares/how-to-create-a-beautiful-tables-using-bootstrap-and-contrast-on-react-67i</guid>
      <description>&lt;p&gt;How to create different tables, editable tables in React using bootstrap and contrast.&lt;/p&gt;

&lt;p&gt;Tables are component with basic tables features. They let you aggregate a huge amount of data and present it in a clear and orderly way.&lt;/p&gt;

&lt;p&gt;React tables provide additional benefits like responsiveness, and the possibility to manipulate the styles of the tables. You can enhance your tables by adding buttons, checkboxes, panels, and many other additional elements. You can also use an advanced data tables options like sort, search or pagination.&lt;/p&gt;

&lt;p&gt;Today, we’ll be creating a table in react using a react library knows as Contrast. Contrast also known as CDBReact is a react library which is an Elegant UI kit with full bootstrap support that has reusable components for building mobile-first, responsive websites, and web apps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The tables would be built using React, Bootstrap, and CDBReact. You don’t need to have any previous knowledge of CDBReact but the following are necessary:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JavaScript Knowledge&lt;/li&gt;
&lt;li&gt;Basic React Knowledge&lt;/li&gt;
&lt;li&gt;Basic Bootstrap Knowledge&lt;/li&gt;
&lt;li&gt;JavaScript Knowledge&lt;/li&gt;
&lt;li&gt;NPM installed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The table we will be creating will look like the image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--N9vEY5iR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hml4v3hfg2wcsjukvvsi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--N9vEY5iR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hml4v3hfg2wcsjukvvsi.png" alt="Alt Text" width="800" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setup&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First Check that you have node installed. To do this, run the following command in your terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;node&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This should show you the current version of node you have installed on your machine.&lt;br&gt;
If you don’t have node.js installed, download it here.&lt;br&gt;
Installing node also installs npm on your PC but you can still confirm using npm-v. Now that we have node installed, we can start up our React project by going to the directory of our choice and running&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;create&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;react&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="nx"&gt;table&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I named the project table-app but you can use whatever name of your choice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install CDBReact&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, we have to install CDBReact in our project&lt;br&gt;
Run the following command to install CBDReact&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="nx"&gt;save&lt;/span&gt; &lt;span class="nx"&gt;cdbreact&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or using Yarn&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;yarn&lt;/span&gt; &lt;span class="nx"&gt;add&lt;/span&gt; &lt;span class="nx"&gt;cdbreact&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note that we don’t need to install bootstrap or add it anywhere in our project as CDBReact does that for us upon installation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Table&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;There are different types of table available for you in contrast. This tables enable you to present your work in a concise and simple way. We are going to create a one of this table known as responsive table. First we create a file named table.js. then we write this code on them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;CDBTable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;CDBTableHeader&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;CDBTableBody&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;CDBContainer&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;cdbreact&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;in the code above, we imported the table components to help us create different tables. These components include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CDBTable is the table itself&lt;/li&gt;
&lt;li&gt;CDBTableHeader is used to create the header for the table&lt;/li&gt;
&lt;li&gt;CDBTableBody is used to create the body of the table&lt;/li&gt;
&lt;li&gt;CDBContainer is houses the entire table components.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;Table&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBContainer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBTable&lt;/span&gt; &lt;span class="na"&gt;responsive&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBTableHeader&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;#&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;First&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Second&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Third&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Fourth&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Fifth&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Sixth&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Seventh&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Last&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Handle&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;th&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;CDBTableHeader&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBTableBody&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;1&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;@email&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;2&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;@email&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;3&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;@email&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;CDBTableBody&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;CDBTable&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;CDBContainer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nx"&gt;Table&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we created the table with the components we imported and included some styling to them.&lt;/p&gt;

&lt;p&gt;Now, we are going to render the component into our app.js.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./App.css&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Table&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./table&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Reactdom&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;react-dom&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"App"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Table&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;Reactdom&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;App&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;,&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;root&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Our page will look like the image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--N9vEY5iR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hml4v3hfg2wcsjukvvsi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--N9vEY5iR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hml4v3hfg2wcsjukvvsi.png" alt="Alt Text" width="800" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Editable Table
&lt;/h2&gt;

&lt;p&gt;With React Editable Bootstrap Table, you can add and remove rows and change text and information within cells. In-place editing on your website - based on JavaScript - is now easier and quicker. &lt;/p&gt;

&lt;p&gt;The editable table we are going to create will look like the image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mIyTRiAY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/168fadkmull6hkilel84.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mIyTRiAY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/168fadkmull6hkilel84.png" alt="Alt Text" width="800" height="220"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You need to download the pro version of contrast to use the editable table in contrast. We can start up our React project by going to the directory of our choice and running&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;create&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;react&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="nx"&gt;editable&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;table&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I named the project Editabletable-app but you can use whatever name of your choice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install CDBReact-pro&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Install the cdbreact-pro package in your project (we recommend adding the file to the root of the project.) by running&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="nx"&gt;save&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;the&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;cdbreact&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;pro&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;tgz&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or using Yarn&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;yarn&lt;/span&gt; &lt;span class="nx"&gt;add&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;the&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;cdbreact&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;pro&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;tgz&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note that we don’t need to install bootstrap or add it anywhere in our project as CDBReact does that for us upon installation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;CDBEditableTable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;CDBCard&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;CDBCardBody&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;CDBContainer&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;cdbreact&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;in the code above we imported the components we need for building editable table. These components include&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CDBEditableTable.&lt;/li&gt;
&lt;li&gt;CDBCard &lt;/li&gt;
&lt;li&gt;CDBCardBody&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;EditableTable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;columns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Fullname&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Age&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Company Name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;City&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Country&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Guerra Cortez&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;45&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Insectus&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;San Francisco&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;USA&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Elisa Gallagher&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Portica&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;London&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;United Kingdom&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Aurelia Vega&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Deepends&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Madrid&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Spain&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Guadalupe House&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;26&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Isotronic&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Berlin&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Germany&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;];&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBContainer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBCard&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBCardBody&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CDBEditableTable&lt;/span&gt; &lt;span class="na"&gt;striped&lt;/span&gt; &lt;span class="na"&gt;bordered&lt;/span&gt; &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &lt;span class="na"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;columns&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;CDBCardBody&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;CDBCard&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;CDBContainer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nx"&gt;EditableTable&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, the components were used to build a card body and editable table and some styles were added to the components to enable it to be more presentable.&lt;/p&gt;

&lt;p&gt;The next step is to render the components into the app.js&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./App.css&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;EditableTable&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./Editabletable&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Router&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"App"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;EditableTable&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Router&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The code above shows the editabletable components in the root app which allows the application to be presented in the web.&lt;/p&gt;

&lt;p&gt;This is how the page will look like now&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mIyTRiAY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/168fadkmull6hkilel84.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mIyTRiAY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/168fadkmull6hkilel84.png" alt="Alt Text" width="800" height="220"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The editable table can be built easily into any number of your project and you can use some other features available in the contrast pro version to make your table to your style and preference.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://devwares.com/docs/contrast/react/table/table"&gt;CDBReact Tables Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/devwares-team/cdbreact"&gt;Link to code on github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://devwares.com/product/contrast-pro"&gt;Get Contrast Pro&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Create Stunning Websites and Web Apps
&lt;/h3&gt;

&lt;p&gt;Building different custom components in react for your web apps or websites can get very stressful. Thats why we decided to build contrast. We have put together a UI kit with over 10000+ components, 5 admin dashboards and 23 additional different pages template for building almost any type of web app or webpage into a single product called Contrast Pro. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Try contrast pro!&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---UwZjfC5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---UwZjfC5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png" alt="Contrast Design Boostrap" width="635" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contrast React Bootstrap PRO is a Multipurpose pro template, UI kit to build your next landing, admin, SAAS, prelaunch, etc project with a clean, well documented, well crafted template and UI components. &lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Learn more about Contrast Pro&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/Iheanacho-ai/Tailwind-react-modal"&gt;Link to the Github Code&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://tailwindui.com/components/application-ui/overlays/modals"&gt;Link to the Tailwind CSS Modals Docs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://tailwindui.com/pricing"&gt;Get Tailwind CSS PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/docs/contrast/javascript/components/modal"&gt;Link to the modal documentation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-modal"&gt;How to create Tailwind CSS Modal&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML"&gt;How to use tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/product/contrast-pro"&gt;Get Contrast PRO&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good"&gt;Why tailwind CSS is good&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-in-nextjs"&gt;How to use Tailwind CSS in Nextjs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-components-for-your-website"&gt;How to create Tailwind CSS Components for your Website&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-animation-with-tailwind-css/"&gt;How to create Tailwind CSS Animation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-grid-to-your-project/"&gt;Tailwind grid-How to use tailwind CSS grid templates in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;Tailwind form-How to create and style a Responsive Form using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-flex/"&gt;Tailwind CSS Flex: How to use Tailwind CSS Flex&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-padding-margin-and-border-in-your-project/"&gt;How to use tailwind CSS padding, margin and border in your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-the-tailwind-css-JIT-CDN/"&gt;Tailwind CSS CDN-How to use the Tailwind CSS JIT CDN&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-HTML/"&gt;How to use Tailwind CSS in HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-tailwind-css-tables/"&gt;Tailwind CSS table-How to Create Tailwind CSS tables&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/setting-up-your-first-project-using-tailwind-css/"&gt;How to set up your first Tailwind CSS Project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/why-tailwind-css-is-good/"&gt;Why is tailwind CSS better than other CSS framework&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/tailwind-css-10-templates-and-themes/"&gt;10 tailwind CSS templates and themes&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-add-tailwind-css-colors-and-fonts-to-your-project/"&gt;How to add tailwind CSS colors and Fonts to your project&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/differences-between-tailwind-css-and-sass/"&gt;Differences between Tailwind CSS and SASS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/diffrences-between-tailwind-css-and-bootstrap/"&gt;Differences Between Tailwind CSS and Bootstrap&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/awesome-10-projects-built-with-tailwind/"&gt;10 Awesome projects built with Tailwind CSS&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-vuejs/"&gt;How to install Tailwind CSS in Vue.js&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-use-tailwind-css-in-react/"&gt;How to use Tailwind CSS in React&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-install-tailwind-css-in-laravel/"&gt;How to install Tailwind CSS with Laravel&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-datepicker-with-contrast/"&gt;How to create react date picker&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-and-style-a-responsive-form-using-tailwindcss/"&gt;React bootstrap 5 form-How to create React forms&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-multiselect-with-contrast/"&gt;How to create a beautiful React multiselect&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-progress-with-contrast/"&gt;How to create a beautiful React Bootstrap progress bar&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-select-with-contrast/"&gt;How to create a beautiful React Bootstrap select with icons&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-stepper-with-contrast/"&gt;How to create a beautiful Bootstrap 5 stepper&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tables-with-contrast/"&gt;How to create a beautiful React Bootstrap table&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/create-tabs-with-contrast/"&gt;How to create beautiful React Bootstrap tabs&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-beautiful-responsive-navbar-using-tailwind-css/"&gt;How to create a Beautiful Responsive Navigation bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-react-modal-using-tailwind-css/"&gt;Tailwind Modal-How to create a React Modal using Tailwind CSS.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-a-bootstrap5-modal/"&gt;How to create a Bootstrap 5 Modal.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-create-react-tabs-with-tailwind-css/"&gt;How to Create React Tabs with Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-dark-mode-in-tailwind-css/"&gt;How to implement dark mode in React using tailwind css&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.devwares.com/blog/how-to-implement-a-react-step-progress-bar-using-tailwind-css/"&gt;How to Implement a React Step Progress Bar Using Tailwind CSS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>react</category>
      <category>programming</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
