data-card

1.3.1 • Public • Published

data-card

Lit-Element web component description

Demo

<h2>Basic data-card Demo</h2>
<h3>Demo</h3>
<data-card></data-card>

<data-card></data-card>

Attributes

  • title (String): Card title.
  • description(String): Card description.
  • url (String): Url to show card information.
  • icon (String): from fa-icons colection.
  • group: a organization/clasification mode
  • newtab: by default is false (target "_self"). When true, target is "_blank"
  • moreinfo: URL with card's extra information. By default is empty. When url, fetch the contain and create a modal.

Default values CSS Variables

--card-width: 210px;
--card-height: 16rem;
--card-background-color: #ffffff;
--card-border: #ff7900 solid 5px;
--card-margin: 1.5rem 0.7rem;
--card-padding: 1.5rem 0;
--card-title-padding-bottom: 0.75rem;
--card-title-size: 24px;
--card-title-color: #212121;
--card-description-size: 16px;
--card-description-color: #575756;
--card-icon-size: 5.5rem;
--card-icon-color: #FF7900;

Install

npm install data-card

Use

<html>
  <head>
    <script type="module" src="../data-card.js"></script> 
  </head>
  <body>
    <data-card></data-card>
  </body>
</html>

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Build

$ npm run build

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

Author

@manufosela

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

Generated

generator-lit-element-base - yeoman npm package - by @manufosela

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.1
    2
    • latest

Version History

Package Sidebar

Install

npm i data-card

Weekly Downloads

8

Version

1.3.1

License

Apache 2.0

Unpacked Size

298 kB

Total Files

12

Last publish

Collaborators

  • manufosela