@toolabs/test-preact
v0.0.1
Published
Test for Toolabs PReact engine
Downloads
2
Readme
test-preact
A (123b gzip) foobar component for Preact
This module exposes three module definitions:
- ES Module:
dist/test-preact.es.js
- CommonJS:
dist/test-preact.js
- UMD:
dist/test-preact.min.js
If using the UMD bundle, the library is exposed as preactFoobar
globally.
Install
$ npm install --save preact-scroll-header
Usage
import { h } from 'preact';
import Foobar from 'test-preact';
<Foobar>
<h1>Hello</h1>
</Foobar>
Properties
id
Type: String
Default: none
The id
attribute to pass down.
className
Type: String
Default: none
The className
attribute to pass down. Added to the wrapper element.
foobar
Type: Number
Default: 0
Foobar
License
MIT © Luke Edwards