Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
/ cards Public archive

A Javascript UI component for browsing documents

License

Notifications You must be signed in to change notification settings

unchartedsoftware/cards

Repository files navigation

Cards

A Javascript UI component for browsing documents

Alt text

Alt text

Install

npm i @uncharted.software/cards

Usage

<div id="cards-panel" ></div>

import Cards from '@uncharted/cards';

const cards = new Cards();
cards.loadData([
  {
      id: 1,
      topBarColor: 'red',
      summary: 'summary-text',
      content: 'text-content'
  },
  {
      id: 2,
      topBarColor: 'blue',
      summary: 'summary-text',
      content: 'text-content'
  },
]);
$('#cards-panel').html(cards.render());

Development

yarn install

Build

yarn run build

Running an example

https://github.com/unchartedsoftware/cards/blob/master/example/index.html

yarn start

About

A Javascript UI component for browsing documents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published