0.4.0 • Published 4 years ago

mofron-layout-margin v0.4.0

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

mofron-layout-margin

mofron is module based frontend framework.

margin layout of mofron

target child component is got margin style.

Install

npm install mofron mofron-layout-margin

Sample

<setting>
    <tag load="mofron-layout-text">Text<tag>
    <tag load="mofron-layout-margin">Margin<tag>
</setting>

<div layout=Margin:(left,0.5rem)>
    <Text>Margin</Text>
    <Text>Layout</Text>
</div>

Parameter

ShortFormParameter NameTypeDescription
typestringmargin type ('top', 'right', 'bottom', 'left')
undefined: call as getter
valuestring(size)margin size
undefined: call as getter