VOOZH about

URL: https://www.geeksforgeeks.org/reactjs/react-suite-stack-dividers/

⇱ React Suite Stack Dividers - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

React Suite Stack Dividers

Last Updated : 28 Jul, 2022

React suite is a library of React components, sensible UI design, and a friendly development experience. It is supported in all major browsers. It provides pre-built components of React which can be used easily in any web application.

In this article, we'll learn about React Suite Stack Dividers. A divider in a stack adds an element between each child used in a stack.

Syntax:

function App() {
 return (
 <Stack divider={<Divider vertical />}>
 ...
 </Stack>
 );
}

Creating React Application And Installing Module:

Step 1: Create a React application using the given command:

npm create-react-app projectname

Step 2: After creating your project, move to it using the given command:

cd projectname

Step 3: Now Install the rsuite node package using the given command:

npm install rsuite

Project Structure: Now your project structure should look like the following:

👁 Image
 

Example 1: Below example demonstrates a basic divider used in a stack.

Output:

👁 Image
 

Example 2: Below example demonstrates a text-based divider used in a stack.

Output:

👁 Image
 

Reference: https://rsuitejs.com/components/stack/#dividers

Comment