@api-components/http-method-label
TypeScript icon, indicating that this package has built-in type declarations

3.1.5 • Public • Published

DEPRECATED

This component is being deprecated. The code base has been moved to amf-components module. This module will be archived when PR 1 is merged.


Published on NPM

Tests and publishing

An HTTP method name display label for lists.

<http-method-label method="get"></http-method-label>
<http-method-label method="POST"></http-method-label>
<http-method-label method="Put"></http-method-label>
<http-method-label method="delete"></http-method-label>
<http-method-label method="patch"></http-method-label>

Usage

Installation

npm install @api-components/http-method-label --save

In an html file

<html>
  <head>
    <script type="module">
      import '@api-components/http-method-label/http-method-label.js';
    </script>
  </head>
  <body>
    <http-method-label method="get"></http-method-label>
  </body>
</html>

In a web component element

import { LitElement, html, css } from 'lit-element';
import '@api-components/http-method-label/http-method-label.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <http-method-label method="get"></http-method-label>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/http-method-label
cd http-method-label
npm install

Running the demo locally

npm start

Running the tests

npm test

Dependencies (2)

Dev Dependencies (13)

Package Sidebar

Install

npm i @api-components/http-method-label

Weekly Downloads

734

Version

3.1.5

License

Apache-2.0

Unpacked Size

42.1 kB

Total Files

14

Last publish

Collaborators

  • jarrodek
  • twoplustwoone
  • lbauret
  • carowright