Socket
Socket
Sign inDemoInstall

@synerise/ds-dropdown

Package Overview
Dependencies
200
Maintainers
1
Versions
336
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @synerise/ds-dropdown

Dropdown UI Component for the Synerise Design System


Version published
Weekly downloads
147
decreased by-54.63%
Maintainers
1
Created
Weekly downloads
 

Readme

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-

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

Last updated on 15 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc