React-Bootstrap Dropdown items Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report React Bootstrap Dropdown Items is used to provide items in a dropdown. Dropdown is a kind of button; when the user clicks on it, it opens and shows the content present in it. So in React Bootstrap, Dropdown is by default present; we just need to add items by using DropDown items. React Bootstrap DropDown Items props used: bsPrefix : Change the underlying component CSS base class name and modifier class names prefix.active : It will highlight the DropDown Item as active.disabled : It will disable DropDown Item and will make it as inactive.eventKey : It will make unique Item so that we can target them in OnSelect.href : It is used to pass a hyper link just like anchor tag.onClick : It will make a onClick function which can be used while clicking on Menu item.as : It will used for custom element type.Syntax: <Dropdown.Item * >Your Text</Dropdown.Item>Note: Replace * with above mentioned props. Example 1: In this example we used three DropDown Items to display Actions. JavaScript // MyDropDown.js import React from 'react'; import Dropdown from 'react-bootstrap/Dropdown'; import 'bootstrap/dist/css/bootstrap.min.css'; function MyDropdown() { return ( <Dropdown> <Dropdown.Toggle variant="primary" id="dropdown-basic"> Dropdown </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item href="#/action-1">Action 1</Dropdown.Item> <Dropdown.Item href="#/action-2">Action 2</Dropdown.Item> <Dropdown.Item href="#/action-3">Action 3</Dropdown.Item> </Dropdown.Menu> </Dropdown> ); } export default MyDropdown; JavaScript // App.js import React from 'react'; import "./App.css"; import MyDropdown from './components/MyDropdown'; function App() { return ( <div> <h1>React-Bootstrap Dropdown Menu</h1> <MyDropdown /> </div> ) } export default App; Output originalExample 2: In this example we used active to display active and Disabled to display second item disabled and third one is linked with hyperlink. JavaScript // App.js import React from 'react'; import "./App.css"; import Dropdown from 'react-bootstrap/Dropdown'; import 'bootstrap/dist/css/bootstrap.min.css'; function App() { return ( <div> <h1>React-Bootstrap Dropdown Menu</h1> <Dropdown> <Dropdown.Toggle variant="primary" id="dropdown-basic"> Dropdown </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item active>Active</Dropdown.Item> <Dropdown.Item disabled>Disabled</Dropdown.Item> <Dropdown.Item href="#/action-3">Action 3</Dropdown.Item> </Dropdown.Menu> </Dropdown> </div> ) } export default App; Output : Comment More infoAdvertise with us Next Article React-Bootstrap Dropdown items prahladgaur0711 Follow Improve Article Tags : Web Technologies ReactJS React-Bootstrap Similar Reads Bootstrap 5 Dropdowns Menu items Bootstrap 5 Dropdowns Menu items are a list of options on a website that appears only when a user interacts with the menu, like by clicking on it or hovering over it. Bootstrap 5  Dropdowns Menu items:Bootstrap 5 Dropdowns Menu items Active: It helps to set the state of any item in the dropdown menu 2 min read React-Bootstrap API Dropdown React-bootstrap is a front-End Stylesheet library. It replaces the Bootstrap JavaScript into completely a react component. It creates a seamless front-end development experience. In this article, we will see the React-Bootstrap API Dropdown. The dropdown components are generally created when we prov 2 min read React-Bootstrap Dark dropdowns React Bootstrap Dark Dropdowns are used for dark screen User Interfaces. In this article we are going to implement dark Dropdowns using React Bootstrap Dark Dropdown which contains attributes. React Bootstrap Dark DropDowns variant : It is used when we are implementing dark navbar.menuVariant: It is 2 min read React-Bootstrap Dropdowns Sizing React-Bootstrap Dropdowns are used to display content when users click or hover on them. React Bootstrap Dropdown sizing is set to fix the width of Dropdown so that it should be responsive for all screens. React-Bootstrap Dropdowns Sizing Used classes:large: This class is used to create dropdowns wi 2 min read React-Bootstrap Dropdowns AutoClose React-Bootstrap Dropdown Autoclose is a feature that allows you to manage how dropdown menus automatically close. By default, when a menu item is selected or when a user clicks outside the dropdown, it closes. React-Bootstrap Dropdowns AutoClose Autoclose attributes:true: By using this property the 2 min read Bootstrap 5 Dropdowns Events In this article, we will learn about the Bootstrap 5 Dropdowns events fired when interacting with the Bootstrap 5 dropdown. For example, these events are fired when an off-canvas element is toggled to be visible or hidden.Bootstrap 5 dropdowns are dropdown overlay menus that can be used to display a 2 min read React-Bootstrap Dropdown Component React-Bootstrap is a front-end framework that was designed keeping react in mind. Dropdown Component provides a way to displaying lists of links or more actions within a menu when clicked over it. We can use the following approach in ReactJS to use the react-bootstrap Dropdown Component.Dropdown Pro 5 min read React-Bootstrap Dropdowns Menu dividers React-Bootstrap Dropdown menus with dividers are widely used in web design and application development. They help organize and categorize options within a dropdown menu, making it easier for users to find and select what they want. Dividers in these menus are used to visually separate different sect 2 min read Bootstrap 4 | Dropdowns Dropdowns are one of the most important parts of an interactive website. A dropdown menu is the collection of menu items that allow users to choose a value from the list. The .dropdown class is used to design the drop-down menu. Example: HTML <!DOCTYPE html> <html lang="en"> 8 min read Bootstrap 5 Dropdowns Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. Dropdowns are toggleable, contextual overlays for displaying lists of links and more. Theyâre made interactive with the included Bootstrap dropdown JavaScript plugin. Theyâre toggled by 9 min read Like