🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@synerise/ds-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
393
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synerise/ds-dropdown

Dropdown UI Component for the Synerise Design System

1.0.8
latest
Source
npm
Version published
Weekly downloads
113
-46.45%
Maintainers
1
Weekly downloads
 
Created
Source

id: dropdown title: Dropdown

Dropdown UI Component

Demo

API

Dropdown

PropertyDescriptionTypeDefault
disabledWhether the dropdown menu is disabledboolean-
getPopupContainerFunction used to set the container of the dropdown menu. The default is to create a div element in body, you can reset it to the scrolling area and make a relative reposition.Function(triggerNode)() => document.body
overlayDropdown menuMenu \ () => Menu-
overlayClassNameClass name of the dropdown root elementstring-
overlayStyleStyle of the dropdown root elementobject-
placementPlacement of pop menu.bottomLeft / bottomCenter / bottomRight / topLeft / topCenter / topRight / bottomLeft-
triggerTrigger mode which executes the drop-down action (hover doesn't work on mobile device)['hover', 'click', 'contextMenu']['hover']
visibleWhether the dropdown menu is visibleboolean-
onVisibleChangeA callback executed on visibility changes.(visible: boolean)=>void-
hideOnItemClickWill hide dropdown on click of an item inside the dropdown changes. Provide a CSS selector of element that should trigger dropdown closing or true to use [role="menuitem"] selectorboolean / string-

Dropdown.SearchInput

PropertyDescriptionTypeDefault
onSearchChangeAction triggered after input change(value: string) => void-
placeholderInput placeholderstring-
autofocusAutofocus inputboolean-

Dropdown.BottomAction

PropertyDescriptionTypeDefault
onClickActionAction triggered on click() => void-
iconIcon component to show before the textReact.Element-

Dropdown.BackAction

PropertyDescriptionTypeDefault
onClickAction triggered on click() => void-
labelLabel of the buttonReact.Element-

FAQs

Package last updated on 19 May 2025

Did you know?

Socket

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.

Install

Related posts