Skip to content

DimitriCodeurs/front

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'))
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.5%
  • CSS 12.5%