Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/anypoint-web-components/anypoint-dropdown
- Owner: anypoint-web-components
- Created: 2019-08-04T23:09:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T08:25:02.000Z (about 2 years ago)
- Last Synced: 2024-11-15T16:13:25.293Z (2 months ago)
- Topics: deprecated, obsolete
- Language: JavaScript
- Homepage:
- Size: 1.17 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
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
```