0.1.1 • Published 3 years ago

@evergreen-wc/eve-card v0.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

eve-card

An Evergreen Card Web Component

Demo

Install

npm i @evergreen-wc/eve-card

Usage

import { html, LitElement } from 'lit';
import '@evergreen-wc/eve-card';

class MyComponent extends LitElement {
  render() {
    return html`
    <eve-card img='${logo}' size="md">
      <h1>Example Card</h1>
      <p>lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum </p>
    </eve-card>
    `;
  }
}
customElements.define('my-component', MyComponent);

Props

PropertyDescription
sizeSet preset max-width of card. e.g. xs(250px), sm(300px), md(350px). By default, without size attribute, component will fill width of parent
imgSet an image url to fill the top of card
0.1.0

3 years ago

0.1.1

3 years ago

0.0.9

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago