tailwind utility to capitalize only first letter of string
npm install tailwind-capitalize-first-letter> tailwind utility to capitalize only first letter of string
Install the plugin from npm:
```
$ npm install tailwind-capitalize-first-letter
Then add the plugin to your tailwind.config.js file:
`js`
// tailwind.config.js
module.exports = {
// ...
plugins: [
// ...
require('tailwind-capitalize-first-letter'),
// ...
],
};
This plugin will generate following CSS:
`css`
/ ... /
.capitalize-first:first-letter {
texttransform: uppercase;
}
/ ... /
` the first letter will always be uppercased!html``
the first letter will be uppercased on md screens and up.
the first letter will be uppercased on hover.
Capitalize first letter is licensed under the MIT License.
Created with create-tailwind-plugin.
Inspired by simonswiss