Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 686 Bytes

bootstrap_readme.md

File metadata and controls

27 lines (21 loc) · 686 Bytes

Bootstrap is hard... here's some help with React-Bootstrap in React 18

Basic Dropdown Menu:

https://react-bootstrap.github.io/components/dropdowns/

import Dropdown from 'react-bootstrap/Dropdown';

function BasicExample() {
  return (
    <Dropdown>
      <Dropdown.Toggle variant="success" id="dropdown-basic">
        Dropdown Button
      </Dropdown.Toggle>

      <Dropdown.Menu>
        <Dropdown.Item href="#/action-1">Action</Dropdown.Item>
        <Dropdown.Item href="#/action-2">Another action</Dropdown.Item>
        <Dropdown.Item href="#/action-3">Something else</Dropdown.Item>
      </Dropdown.Menu>
    </Dropdown>
  );
}

export default BasicExample;