DropDownMenu API
Initialization
import { DropDownMenu } from "@svar-ui/react-menu";
import { getOptions } from "./data";
export default function App() {
const options = getOptions();
return <DropDownMenu options={options} />;
}
Related resources
- Visit the Features Guide to learn more about the widget's functionality.
- Explore the samples to visualize the available features.
Properties
at | Optional. Specifies the position of DropDown Menu relative to the target node |
css | Optional. Adds a custom style to the menu |
options | Optional. Specifies a set of options for DropDown Menu |
Events
click | fires on clicking an item of DropDown Menu or outside the menu |