Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anypoint-web-components/anypoint-dropdown

⛔️ DEPRECATED This component is being deprecated. Use the `awc` module instead.
https://github.com/anypoint-web-components/anypoint-dropdown

deprecated obsolete

Last synced: 4 days ago
JSON representation

⛔️ DEPRECATED This component is being deprecated. Use the `awc` module instead.

Awesome Lists containing this project

README

        

# Deprecated

This component has been moved to `anypoint-web-components/awc`.

-----

An element that displays content inside a fixed-position container, positioned relative to another element.

Partially inspired by [anypoint-dropdown](https://github.com/PolymerElements/anypoint-dropdown)

[![Published on NPM](https://img.shields.io/npm/v/@anypoint-web-components/anypoint-dropdown.svg)](https://www.npmjs.com/package/@anypoint-web-components/anypoint-dropdown)

[![tests](https://github.com/anypoint-web-components/anypoint-dropdown/actions/workflows/deployment.yml/badge.svg)](https://github.com/anypoint-web-components/anypoint-dropdown/actions/workflows/deployment.yml)

## Accessibility

The element does not offer `aria-*` or `role` attributes. The elements that uses this element should set an appropriate role and aria to the context.

## Usage

### Installation

```sh
npm install --save @anypoint-web-components/anypoint-dropdown
```

### In an HTML file

```html



import '@anypoint-web-components/anypoint-dropdown/anypoint-dropdown.js';


#container {
display: inline-block;
}

anypoint-dropdown {
border: 1px solid gray;
background: white;
font-size: 2em;
}




open the anypoint-dropdown

Hello!



```

### Development

```sh
git clone https://github.com/anypoint-web-components/anypoint-dropdown
cd anypoint-dropdown
npm install
```

### Running the demo locally

```sh
npm start
```

### Running the tests

```sh
npm test
```