0.6.0 • Published 4 years ago

@amendable/inline-style-properties v0.6.0

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

Inline Style Properties

Usage

Check if inline styles has property

import { hasProperty } from '@amendable/inline-style-properties'

hasProperty('MozAnimation') // true
hasProperty('display') // true
hasProperty('test') // false

You can exclude vendor properties by passing includeVendor option;

hasProperty('MozAnimation', { includeVendor: false }) // false

Get all properties list

import properties from '@amendable/inline-style-properties'

console.log(properties) // ['display', 'MozAnimation', ...]