0.2.1 • Published 2 years ago

mofron-comp-txtframe v0.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

mofron-comp-txtframe

mofron is module based frontend framework.

text frame component for mofron

text contents in the frame component.

Feature

  • text is automatically centered
  • center position can select vertical or horizonal by center parameter

Install

npm install mofron mofron-comp-txtframe

Sample

<setting>
    <tag load="mofron-comp-txtframe">TxtFrame</tag>
</setting>

<TxtFrame size=(2rem,1rem)>text frame</TxtFrame>

Parameter

ShortFormParameter NameTypeDescription
textmixedstring: contents text
mofron-comp-text: contents component
undefined: call as getter
centerbooleanhorizonal center position flag
undefined: call as getter
booleanvertical center position flag
undefined: call as getter
xCenterbooleantrue: text is centered horizontally (default)
false: text is not centered
yCenterbooleantrue: text is centered vertically (default)
false: text is not centered
mainColormixed (color)string: color name, #hex
array: red, green, blue, alpha
optionstyle option
0.2.1

2 years ago

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago

0.0.8

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago