1.3.21 • Published 5 years ago

@ppci-mock/custom-card v1.3.21

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Card

Table of contents

Installation

NPM

npm i @ppci-mock/custom-card

// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs

Usage

Javascript

import '@ppci-mock/custom-card'

Browser

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

<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/custom-button/builds/legacy.min.js" />

<!-- Component -->
<custom-card
  sourceId=${String}
  title=${String}
  subtitle=${String}
  description=${String}
  imageUrl=${String}
  .sourceMix=${Object}
  @card-click=${Function}
  ?hoverEffect=${Boolean}
>
  <div>Add additional slotted content here</div>
</custom-card>

Styling

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

<custom-card
  theme-powerpeers>
</custom-card>

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

custom-card {
  --theme-card-background: white;
  --theme-border-radius: 4px;
}

Properties

Events

1.3.21

5 years ago

1.3.19

6 years ago

1.3.17

6 years ago

1.3.18

6 years ago

1.3.15

6 years ago

1.3.16

6 years ago

1.3.14

6 years ago

1.3.13

6 years ago

1.3.12

6 years ago

1.3.11

6 years ago

1.3.10

6 years ago

1.3.9

6 years ago

1.3.8

6 years ago

1.3.6

6 years ago