@centrodphlibs/menu
v0.0.5
Published
React menu component library
Maintainers
Readme
@centrodphlibs/menu
React menu component library for displaying popup menus.
Installation
npm install @centrodphlibs/menuUsage
Simply import the component - CSS styles are automatically injected! No need to import CSS separately.
import { Menu } from '@centrodphlibs/menu';
function App() {
return (
<Menu
options={options}
onSelection={handleSelection}
/>
);
}That's it! The styles are automatically injected when you import the component. Works in all modern environments including Vite, Webpack, Parcel, and even in browser environments without a bundler.
Running unit tests
Run nx test menu to execute the unit tests via Vitest.
