12.2.1 • Published 1 year ago
fela-plugin-kebab-case v12.2.1
fela-plugin-kebab-case
Note: We recommend writing your styles as camel-case properties in general. This conforms with the JavaScript APIs and is also more convenient to write.
Normalized all kebab-case properties into camel-case properties that Fela requires.
Installation
yarn add fela-plugin-kebab-case
You may alternatively use npm i --save fela-plugin-kebab-case
.
Usage
Make sure to read the documentation on how to use plugins.
import { createRenderer } from 'fela'
import kebabCase from 'fela-plugin-kebab-case'
const renderer = createRenderer({
plugins: [kebabCase()],
})
Example
Input
{
color: 'blue',
'background-color': 'red'
}
Output
{
color: 'blue',
backgroundColor: 'red'
}
License
Fela is licensed under the MIT License. Documentation is licensed under Creative Commons License. Created with ♥ by @robinweser and all the great contributors.
12.2.1
1 year ago
12.2.0
2 years ago
12.1.2
2 years ago
12.1.0
2 years ago
12.1.1
2 years ago
12.0.0
2 years ago
12.0.1
2 years ago
12.0.2
2 years ago
12.0.0-y.0
2 years ago
12.0.0-rc.3.0
2 years ago
12.0.0-rc.1
2 years ago
12.0.0-rc.2
2 years ago
12.0.0-rc.0
2 years ago
11.7.0
3 years ago
11.6.1
3 years ago
11.6.0
3 years ago
11.5.2
3 years ago
11.5.1
3 years ago
11.5.0
3 years ago
11.5.0-rc.0
3 years ago