New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

prefixed-virtual-element

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prefixed-virtual-element

Build virtual tree elements with class attributes and vendor-prefixed styles

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

prefixed-virtual-element

Simply extends dekujs/magic-virtual-element to use vendor-prefixes.

npm install prefixed-virtual-element

Top-Level API

element(component: string|Function , [props: object], [...children: Array]): Component

Example

import element from 'prefixed-virtual-element';

let divStyle = {
  color: 'white',
  backgroundImage: 'url(' + imgUrl + ')',
  transition: 'all', // this will be vendor prefixed
};

element('div', { class: ["App", "foo", "bar"], style: divStyle }, [
  element('button', { class: "Button" }, 'Click Me!')
]);

Keywords

deku

FAQs

Package last updated on 13 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts