Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

fela-plugin-placeholder-prefixer

11.3.1 • Public • Published

fela-plugin-placeholder-prefixer

npm version npm downloads Bundlephobia

Adds prefixes to ::placeholder pseudo elements.

Installation

yarn add fela-plugin-placeholder-prefixer

You may alternatively use npm i --save fela-plugin-placeholder-prefixer.

Usage

Make sure to read the documentation on how to use plugins.

import { createRenderer } from 'fela'
import placeholderPrefixer from 'fela-plugin-placeholder-prefixer'
 
const renderer = createRenderer({
  plugins: [ placeholderPrefixer() ]
})

Example

Input

{
  color: 'red',
  '::placeholder': {
    color: 'green'
  }
}

Output

{
  color: 'red',
  '::-webkit-input-placeholder': {
    color: 'green'
  },
  '::-moz-placeholder': {
    color: 'green'
  },
  ':-ms-input-placeholder': {
    color: 'green'
  },
  ':-moz-placeholder': {
    color: 'green'
  }
  '::placeholder': {
    color: 'green'
  }
}

License

Fela is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with ♥ by @robinweser and all the great contributors.

Install

npm i fela-plugin-placeholder-prefixer

DownloadsWeekly Downloads

4,064

Version

11.3.1

License

MIT

Unpacked Size

4.9 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar