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

@zendeskgarden/react-dropdowns

Package Overview
Dependencies
Maintainers
0
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zendeskgarden/react-dropdowns

Components related to dropdowns in the Garden Design System

  • 9.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
169K
decreased by-9.34%
Maintainers
0
Weekly downloads
 
Created

What is @zendeskgarden/react-dropdowns?

@zendeskgarden/react-dropdowns is a React component library that provides a set of accessible and customizable dropdown components. These components are designed to be used in building user interfaces that require dropdown functionality, such as select menus, autocomplete inputs, and more.

What are @zendeskgarden/react-dropdowns's main functionalities?

Select Dropdown

The Select Dropdown feature allows users to choose from a list of options. The code sample demonstrates how to create a dropdown with three options using the Dropdown, Select, and Item components.

import { Dropdown, Select, Item } from '@zendeskgarden/react-dropdowns';

const Example = () => (
  <Dropdown>
    <Select>
      Select an option
    </Select>
    <Item value="option-1">Option 1</Item>
    <Item value="option-2">Option 2</Item>
    <Item value="option-3">Option 3</Item>
  </Dropdown>
);

Autocomplete Input

The Autocomplete Input feature provides a text input that suggests options as the user types. The code sample shows how to implement an autocomplete input with three fruit options.

import { Dropdown, Autocomplete, Item } from '@zendeskgarden/react-dropdowns';

const Example = () => (
  <Dropdown>
    <Autocomplete placeholder="Type to search...">
      <Item value="apple">Apple</Item>
      <Item value="banana">Banana</Item>
      <Item value="orange">Orange</Item>
    </Autocomplete>
  </Dropdown>
);

Multiselect Dropdown

The Multiselect Dropdown feature allows users to select multiple options from a list. The code sample illustrates how to create a multiselect dropdown with three options.

import { Dropdown, Multiselect, Item } from '@zendeskgarden/react-dropdowns';

const Example = () => (
  <Dropdown>
    <Multiselect placeholder="Select options">
      <Item value="option-1">Option 1</Item>
      <Item value="option-2">Option 2</Item>
      <Item value="option-3">Option 3</Item>
    </Multiselect>
  </Dropdown>
);

Other packages similar to @zendeskgarden/react-dropdowns

Keywords

FAQs

Package last updated on 21 Nov 2024

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