This package has been deprecated

Author message:

This component is deprecated

@advanced-rest-client/error-message
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

Published on NPM

Build Status

Published on webcomponents.org

error-message;

Renders standarized error message with icon.

<error-message iconprefix="arc" icon="sentiment-neutral">
  <p>This is neutral information</p>
</error-message>

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @advanced-rest-client/error-message

In an html file

<html>
  <head>
    <script type="module">
      import '@advanced-rest-client/error-message/error-message.js';
    </script>
  </head>
  <body>
    <error-message></error-message>
  </body>
</html>

In a LitElement template

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/error-message/error-message.js';

class SampleElement extends LitElement {
  render() {
    return html`<error-message></error-message>`;
  }
}
customElements.define('sample-element', SampleElement);

In a Polymer 3 template

import { PolymerElement, html } from '@polymer/polymer';
import '@advanced-rest-client/error-message/error-message.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <error-message></error-message>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/error-message
cd error-message
npm install

Running the demo locally

npm start

Running the tests

npm test

Package Sidebar

Install

npm i @advanced-rest-client/error-message

Weekly Downloads

3

Version

3.0.1

License

Apache-2.0

Unpacked Size

38 kB

Total Files

6

Last publish

Collaborators

  • carowright
  • jarrodek
  • twoplustwoone
  • lbauret