1.0.0 • Published 8 months ago

@jtorm/ui-method v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
gitlab
Last release
8 months ago

jTorm UI Method

Registry and handling different UI frameworks.

Install

npm install @jtorm/ui-method

Properties

OptionTypeRequiredDescription
cstringtrueComponent registered by an UI package.
fstringfalseRegistered framework, fallback default if set, else first key/value in object.
tbooleanfalseUse component TSS.
hbooleanfalseUse component HTML.
mbooleanfalseUse mediatarget check if suffixes exists registered by it e.g. defaultDesktopL, defaultTabletS.

Use mediatarget does not work for the fallback to default, you have to explicit define it, e.g. WPHeader > WPHeader.default.

Example

body->append->ui {
    c: '@e.header';
}