ecm-web-components

1.0.2 • Public • Published

ecm-web-components

This repo adds web components for the ECM project.

To use the components, install the npm package as following:

npm i ecm-web-components

To save it as a dependency run:

npm i ecm-web-components --save

Following are the components and their usages:

MediaCard Component

To use the component simply import it in your following and use as following

<media-card image="http://dummyurl.com" title="foo" desc="bar"/>

Supported attributes / props:

  • "image" accepts url to the link for image to be displayed

  • "desc" accepts a string to display as a description

  • "title" accepts string for component title

You can pass in optional slot named "add-on" for anything other than these props. It will be added towards the end of the component. A good example is probably a button component.

Link To Published NPM Package

https://www.npmjs.com/package/ecm-web-components

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i ecm-web-components

      Weekly Downloads

      0

      Version

      1.0.2

      License

      ISC

      Unpacked Size

      6.67 kB

      Total Files

      7

      Last publish

      Collaborators

      • modojodo