
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
react-pretty-dropdown
Advanced tools
Customizable dropdown menu for React.
npm install react-pretty-dropdown
Import the component and set menu items using anchor tags, Link from react-router-dom, or buttons. It doesn't matter the element you use because they'll have the same style.
import Dropdown from 'react-pretty-dropdown';
<Dropdown icon="ellipsis-vertical">
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
</Dropdown>
background - Background color.
textColor - Text color.
fontSize - Font size.
hoverBackground - Background color on hover.
hoverFontColor - Font color on hover.
activeBackground - Background color of active items.
activeFontColor - Font color of active items.
icon - Menu button icon. Available options: "ellipsis-vertical", "ellipsis", "bars", and "caret-down".
iconSize - Menu icon size.
buttonWidth - Menu button width.
buttonBorderOnHover - Menu button border on hover. Example: "1px solid #0054a8".
buttonBorderOnFocus - Menu button border on focus. Example: "1px solid #0054a8".
buttonFloat - Only used to align the menu button to the right. Set it to "float-end".
menuPosition - Menu horizontal position. The default value is "35px", which leaves no gap between the menu button and items.
width - Width of the whole component.
<Dropdown
icon="ellipsis-vertical"
background="lightblue"
textColor="black"
fontSize="1.5rem"
iconSize="1.7rem"
hoverBackground="green"
hoverFontColor="white"
activeBackground="green"
activeFontColor="white"
width="200px"
buttonFloat="float-end"
>
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
</Dropdown>
FAQs
Customizable dropdown menu for React.
The npm package react-pretty-dropdown receives a total of 0 weekly downloads. As such, react-pretty-dropdown popularity was classified as not popular.
We found that react-pretty-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.