ReactBootstrap Tabs Component (original) (raw)

React-Bootstrap Tabs Component

Last Updated : 23 Jul, 2025

React-Bootstrap is a front-end framework that was designed keeping react in mind. Tabs Component provides a way to make form dynamic tabbed interfaces. With the help of tabs, the user can switch between components present in given different tabs. We can use the following approach in ReactJS to use the react-bootstrap tabs Component.

React-Bootstrap Tabs Component

React-Bootstrap Tabs are switchable containers that provide transitions in the content sections withina single component. We can easily import and use the tab component from react-bootstrap. Check this article for the React-Bootstrap installation.

React-Bootstrap Tabs Syntax:

This is the syntax of React-Bootstrap Tabs Component.

Tab 1 content Tab 2 content Tab 3 content ;

React-Bootstrap Tabs Component Props:

React-Bootstrap Tabs Component includes Tabs, Tab, TabContainer, TabContent, TabPane.

React-Bootstrap **Tabs Props:

React-Bootstrap **Tab Props:

React-Bootstrap **TabContainer Props:

React-Bootstrap **TabContent Props:

React-Bootstrap **TabPane Props:

**React-Bootstrap Tabs Component Example:

This example demonstrates creating a simple Tab using the React-Bootstrap Tabs Component.

JavaScript `

// Filename - App.js

import React from 'react'; import 'bootstrap/dist/css/bootstrap.css'; import Tabs from 'react-bootstrap/Tabs'; import Tab from 'react-bootstrap/Tab';

export default function App() { return ( <div style={{ display: 'block', width: 700, padding: 30 }}>

React-Bootstrap Tab Component

Hii, I am 1st tab content Hii, I am 2nd tab content Hii, I am 3rd tab content ); }

`

**Step to Run Application: Run the application using the following command from the root directory of the project:

npm start

**Output: Now open your browser and go to http://localhost:3000/, you will see the following output: