Getting started

alin-simple-dropdown is a React component library that offers a easy to use Dropdown menu for your applications

Installation

Install the npm package

npm install alin-simple-dropdown

Usage

1. Import alin-simple-dropdown after installation

import { Dropdown, DropdownLabel, DropdownMenu, DropdownButton } from 'alin-simple-dropdown'

2. Add the dropdown menu to your application

<Dropdown> <DropdownLabel>Click me!</DropdownLabel> <DropdownMenu> <DropdownButton>Button 1</DropdownButton> <DropdownButton>Button 2</DropdownButton> <DropdownButton>Button 3</DropdownButton> </DropdownMenu> </Dropdown>

IMPORTANT! If your are using NextJS, make sure you add 'use client'