Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.
/ tabs Public archive

Auf Mithril basierende Tab-Komponente, um Content durch Tabs zu strukturieren.

Notifications You must be signed in to change notification settings

phoenixreisen/tabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phoenix Tabs

Phoenix "Web Tabs"-Komponente auf Mithril-Basis.

Die Komponente ist Teil des Phoenix Reisen Design-Systems.

Installation

Mithril wird benötigt.

npm install --save @phoenixreisen/tabs

Anwendung

// entweder CommonJS
const Tabs = require('@phoenixreisen/tabs');

// oder ES6+
import Tabs from '@phoenixreisen/tabs';

Aufruf

// Hyperscript bzw. Javascript
m(Tabs, 
    { tabs: ['Tab 1', 'Tab 2'] }, 
    [ m('div.tab1'), m('div.tab2') ]
);

// JSX
<Tabs tabs={['Tab 1', 'Tab 2']}>
    {[
        <div class="tab1">Tab 1</div>,
        <div class="tab2">Tab 2</div>,
    ]}
</Tabs>

Test

npm install
npm run test

Deployment

npm version [major|minor|patch]     # increase version x.x.x => major.minor.patch
npm publish                         # upload to npm
git push

About

Auf Mithril basierende Tab-Komponente, um Content durch Tabs zu strukturieren.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •