0.2.1 • Published 1 year ago

mofron-comp-txtframe v0.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.0.8

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago