Fela plugin to add ::placeholder prefxies
npm install fela-plugin-placeholder-prefixerAdds prefixes to ::placeholder pseudo elements.
``sh`
yarn add fela-plugin-placeholder-prefixer
You may alternatively use npm i --save fela-plugin-placeholder-prefixer.
Make sure to read the documentation on how to use plugins.
`javascript
import { createRenderer } from 'fela'
import placeholderPrefixer from 'fela-plugin-placeholder-prefixer'
const renderer = createRenderer({
plugins: [placeholderPrefixer()],
})
`
#### Input
`javascript`
{
color: 'red',
'::placeholder': {
color: 'green'
}
}
#### Output
`javascript``
{
color: 'red',
'::-webkit-input-placeholder': {
color: 'green'
},
'::-moz-placeholder': {
color: 'green'
},
':-ms-input-placeholder': {
color: 'green'
},
':-moz-placeholder': {
color: 'green'
}
'::placeholder': {
color: 'green'
}
}
Fela is licensed under the MIT License.
Documentation is licensed under Creative Commons License.
Created with ♥ by @robinweser and all the great contributors.