Skip to content

Latest commit

 

History

History
executable file
·
22 lines (22 loc) · 536 Bytes

File metadata and controls

executable file
·
22 lines (22 loc) · 536 Bytes

Components

A collection of (currently) unfinished and undocumented mithril utilities and components.

Table of Contents

Action

Action

Use an action component when you have an internal or external link.

import {action, Component} from '@codeurs/front'
view(){
    return m('a', action('/url'))
}

If you have another attribute you must write it a little bit different.

import {action, Component} from '@codeurs/front'
view(){
    return m('a', {
        class: 'link',
        …action('/url'))
    }
}