
Security News
Static vs. Runtime Reachability: Insights from Latio’s On the Record Podcast
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
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.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.