@substrate-system/wavy-hr
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

wavy hr

tests types module install size dependencies semantic versioning license

An hr tag with style. Be sure to copy the file ./dist/wave.svg into the root public folder on your web server. The CSS depends on that file.

See a live demo

install

npm i -S @substrate-system/wavy-hr

API

ESM and common JS via package.json exports field.

ESM

import '@substrate-system/wavy-hr'

Common JS

require('@substrate-system/wavy-hr')

CSS

Import CSS

import '@substrate-system/wavy-hr/css'

Or minified:

import '@substrate-system/wavy-hr/css/min'

use

This calls the global function customElements.define. Just import, then use the tag in your HTML.

JS

import '@substrate-system/wavy-hr'

HTML

<div>
    <wavy-hr></wavy-hr>
</div>

pre-built JS

This package exposes minified JS files too. Copy them to a location that is accessible to your web server, then link to them in HTML.

copy

cp ./node_modules/@substrate-system/wavy-hr/dist/index.min.js ./public/wavy-hr.min.js

HTML

<script type="module" src="./wavy-hr.min.js"></script>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.46latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.46
0.0.31
0.0.21
0.0.02

Package Sidebar

Install

npm i @substrate-system/wavy-hr

Weekly Downloads

10

Version

0.0.4

License

MIT

Unpacked Size

16.5 kB

Total Files

15

Last publish

Collaborators

  • nichoth