1.0.2 • Published 4 years ago
@phoenixreisen/dropdown v1.0.2
Phoenix Dropdown
Phoenix Dropdown, umgesetzt mit Mithril.
Die Komponente ist Teil des Phoenix Reisen Design-Systems.
Installation
Mithril wird benötigt.
npm install --save @phoenixreisen/dropdown
Anwendung
// entweder CommonJS
const Dropdown = require('@phoenixreisen/dropdown');
// oder ES6+
import Dropdown from '@phoenixreisen/dropdown';
Aufruf
// Hyperscript bzw. Javascript
const el1 = m('div');
const el2 = m('div');
const el3 = m('a');
m(Dropdown, { title: 'Optionen' }, [
el1,
el2,
el3
]);
// JSX
<Dropdown title="Optionen">
<el1 />
<el2 />
<el3 />
</Dropdown>
Test
npm install
npm run test
Deployment
[npm install] # Abhängigkeiten installieren
npm version [major|minor|patch] # increase version x.x.x => major.minor.patch
npm publish # upload to npm
git push