@legumeinfo/web-components
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

@legumeinfo/web-components

@legumeinfo/web-components is an open-source Web Component library for interacting with and visualizing biological data. The Web Components can be used as is in your HTML or extended in your own JavaScript/TypeScript library.

Documentation

Full user documentation for @legumeinfo/web-components is available on our documentation site. Technical documentation for developers is available on GitHub. This README shows the basics of installing the library and using Web Components, but most features are only documented on our docs site.

Getting started

@legumeinfo/web-components does not use the Shadow DOM in preference for inheriting global styles. Specifically, @legumeinfo/web-components assumes UIkit has been loaded in the document, so be sure to install this before using the library.

Install the library as follows:

npm install @legumeinfo/web-components

The library can then be used in your HTML as follows:

<head>
    <!-- UIkit -->
    <link rel="stylesheet" type="text/css" href="uikit/dist/css/uikit.min.css">
    <script src="uikit/dist/js/uikit.min.js"></script>
    <!-- @legumeinfo/web-components -->
    <script type="module" src="@legumeinfo/web-components/dist/web-components.min.js"></script>
</head>
<body>
    <lis-gene-search-element></lis-gene-search-element>
</body>

The library can be used in your JavaScript/TypeScrip library as follows:

import { LisGeneSearchElement } from '@legumeinfo/web-components';

class MySearchElement extends LisGeneSearchElement { }

Package Sidebar

Install

npm i @legumeinfo/web-components

Weekly Downloads

0

Version

1.4.0

License

Apache-2.0

Unpacked Size

540 kB

Total Files

104

Last publish

Collaborators

  • nweeks
  • steven.cannon
  • adf-ncgr
  • alancleary