JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q48660F
  • License ISC

A custom loader

Package Exports

  • @ppci/custom-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ppci/custom-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Avatar

A plain button

Table of contents

  1. Installation
  2. Usage
  3. Theme | Styling
  4. Properties
  5. Events
  6. Changelog

Installation

NPM

  npm i @ppci/custom-button

Usage

Javascript

import '@ppci/custom-button'

Browser

<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-loader/builds/index.min.js" />

<custom-button
  name="String"
  loading
  theme-powerpeers
  @click=${Function}>
</custom-button>

Theme | Styling

We have a predefined powerpeers theme ready for you! Just add the theme-powerpeers boolean attribute to your custom-button.

<custom-button
  theme-powerpeers>
</custom-button>

Not completely satisfied with our powerpeers theme? Well you can do it yourself. We have a set of css variables available for you.

custom-button {
  --background-color: white;
  --color: gray;
  --theme-spacing: 16px;
  --border-radius: 0px;
  --border: 1px solid silver;

  --hover-background-color: gray;
  --hover-color: black;
  --hover-border: black;
}

Properties

Property Type Description Possible Values
*name* string Name of the input field. Which could be used in a form as field identifier. first name, surname, email, etc.
loading boolean Show or hide loading indicator ```html ```
Theme
theme-powerpeers boolean Apply predefined powerpeers theme ```html ```

Events

Name Description Detail / Payload
@click Default browser click event ```{ target: ..., currentTarget: ..., ... }```

Changelog

1.0.1 | 1.0.2 | 1.0.3

  • Bundle and minify related fixes

1.0.0

  • Initial version of the custom button.