I have a menu defined roughly as follows:
import { Component } from "react";
import { Nav, Navbar, NavDropdown } from "react-bootstrap";
export default class App extends Component {
render(): ReactElement {
return <Navbar className="d-flex" expand="lg">
<Nav>
<NavDropdown title="String">
<NavDropdown title="Numeric">
<NavDropdown.Item onClick={() => {
// ...
}}>Validate</NavDropdown.Item>
<NavDropdown.Item onClick={() => {
// ...
}}>Create</NavDropdown.Item>
<NavDropdown.Item onClick={() => {
// ...
}}>Create sequence</NavDropdown.Item>
<NavDropdown.Item onClick={() => {
// ...
}}>Value of</NavDropdown.Item>
</NavDropdown>
// ...
</NavDropdown>
</Nav>
</Navbar>;
}
}
I would like the submenu to cascade to the right (or, rather, in the direction of the end). Instead, the submenu overlays the higher level menu like this:
How do I define the menu to shift the submenus?
<>
icon. See How to create a Minimal, Reproducible Example