Skip to main content

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} />;
}
  • Visit the Features Guide to learn more about the widget's functionality.
  • Explore the samples to visualize the available features.

Properties

atOptional. Specifies the position of DropDown Menu relative to the target node
cssOptional. Adds a custom style to the menu
optionsOptional. Specifies a set of options for DropDown Menu

Events

clickfires on clicking an item of DropDown Menu or outside the menu