1.0.2 • Published 4 years ago

@phoenixreisen/dropdown v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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
1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago