Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backstage-dropdown

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backstage-dropdown

backstage dropdown

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
3
Weekly downloads
 
Created
Source

backstage-dropdown

Backstage React dropdown component

Build Status

Installing

$ npm install backstage-dropdown --save

Required Props

  • options: all the options of the dropdown;
  • selectedOption: current selected option;

Props

  • onSelectOption: callback called when the user select any option;
  • onOpen: callback called when the user open the dropdown;
  • onClose: callback called when the user close the dropdown:
    • by selecting an option,
    • by clicking in any other place.
  • className: custom CSS class to the component;
  • disabled: disable the component;
  • small: shows the component in a small size;
  • openUp: opens the dropdown up;

Example

import React from 'react';
import { render } from 'react-dom';
import Dropdown from 'backstage-dropdown';


const OPTIONS = [
  {value: "grape", label: "Grape"},
  {value: "apple", label: "Apple"},
  {value: "mango", label: "Mango"},
  {value: "tangerine", label: "Tangerine"},
];

render(<Dropdown options={OPTIONS} selectedOption='grape' />, document.getElementById('container'));

FAQs

Package last updated on 26 Jun 2017

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc