ReactJS Semantic UI Card Views
Last Updated : 24 Jul, 2024
Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks.
In this article we will see how to use card views in ReactJS Semantic UI.
Properties:
- Cards: This property is used to make a group of cards.
Syntax:
<card>
<card.content>
</card.content>
</card>
Creating React Application And Installing Module:
Step 1: Create a React application using the following command.
npx create-react-app foldername
Step 2: After creating your project folder i.e. foldername, move to it using the following command.
cd foldername
Step 3: Install semantic UI in your given directory.
npm install semantic-ui-react semantic-ui-css
Project Structure: It will look like the following.

Step to Run Application: Run the application from the root directory of the project, using the following command.
npm start
Example 1: In this example, we will be going to use card, image, and icon elements to display basic card content with image, meta, and icon by using ReactJS Semantic UI Card Views.
App.js import React from 'react' import { Card, Image, Icon } from 'semantic-ui-react' const styleLink = document.createElement("link"); styleLink.rel = "stylesheet"; styleLink.href = "https://cdn.jsdelivr.net/npm/semantic-ui/dist/semantic.min.css"; document.head.appendChild(styleLink); const btt = () => ( <Card> <Image src= 'https://media.geeksforgeeks.org/wp-content/uploads/20210604014825/QNHrwL2q-100x100.jpg' size='small' /> <Card.Content> <Card.Header>GeeksforGeeks</Card.Header> <Card.Meta> <span>Found is 2008</span> </Card.Meta> </Card.Content> <Card.Content extra> <Icon name='react' /> ReactJS </Card.Content> </Card> ) export default btt
Output:

Example 2: In this example, we will be going to use the card, image, and icon elements to display a group of cards with content property extra by using ReactJS Semantic UI Card Views.
App.js import React from 'react' import { Card, Image, Icon } from 'semantic-ui-react' const styleLink = document.createElement("link"); styleLink.rel = "stylesheet"; styleLink.href = "https://cdn.jsdelivr.net/npm/semantic-ui/dist/semantic.min.css"; document.head.appendChild(styleLink); const btt = () => ( <Card.Group> <Card fluid> <Image src= 'https://media.geeksforgeeks.org/wp-content/uploads/20210604014825/QNHrwL2q-100x100.jpg' size='small' /> <Card.Content> <Card.Header>GeeksforGeeks</Card.Header> </Card.Content> <Card.Content extra> <Icon name='react' /> ReactJS </Card.Content> </Card> <Card fluid> <Image src= 'https://media.geeksforgeeks.org/wp-content/uploads/20210604014825/QNHrwL2q-100x100.jpg' size='small' /> <Card.Content> <Card.Header>GeeksforGeeks</Card.Header> </Card.Content> <Card.Content extra> <Icon name='angular' /> AngularJS </Card.Content> </Card> <Card fluid> <Image src= 'https://media.geeksforgeeks.org/wp-content/uploads/20210604014825/QNHrwL2q-100x100.jpg' size='small' /> <Card.Content> <Card.Header>GeeksforGeeks</Card.Header> </Card.Content> <Card.Content extra> <Icon name='html5' /> HTML5 </Card.Content> </Card> <Card fluid> <Image src= 'https://media.geeksforgeeks.org/wp-content/uploads/20210604014825/QNHrwL2q-100x100.jpg' size='small' /> <Card.Content> <Card.Header>GeeksforGeeks</Card.Header> </Card.Content> <Card.Content extra> <Icon name='js' /> JavaScript </Card.Content> </Card> </Card.Group> ) export default btt
Output:
Reference: https://react.semantic-ui.com/views/card
Similar Reads
ReactJS Semantic UI Feed Views
Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article, we will know how to use Feed Views in ReactJS Se
2 min read
ReactJS Semantic UI Item Views
Semantic UI is a modern framework used in developing seamless designs for the website. It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article, we will know how to use Item Views in ReactJS Se
2 min read
ReactJS Semantic UI Comment view
Semantic UI is a modern framework used in developing seamless designs for the website, Its gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article we will know how to use comment views in ReactJS
2 min read
ReactJS Semantic UI Advertisement Views
Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article we will know how to use advertisement views in Re
2 min read
ReactJS Semantic UI Statistics Views
Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article we will know how to use Statistics Views in React
2 min read
ReactJS Semantic UI Visibility Behaviors
Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article we will learn how to use visibility behaviors in
2 min read
ReactJS Semantic UI Ref Addons
Semantic UI is a modern framework used in developing seamless designs for the website. It gives the user a lightweight experience with its components. It uses predefined CSS and JQuery to incorporate different frameworks. In this article, we will learn how to use Ref Addons in ReactJS Semantic UI. R
2 min read
Semantic-UI Card Raised Variation
Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing. We can display the web content in the form of cards just like how content is displaye
3 min read
Semantic-UI | Cards
Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing. It uses a class to add CSS to the elements. A card is used to displaying the content
4 min read
ReactJS Semantic UI Modal Module
Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article, we will see how to use Modal Module in ReactJS S
2 min read