1.0.0 • Published 6 years ago
tailwindcss-icon-text-align v1.0.0
.icon-text-align
This is very small and seems probably unnecessary, but I keep copy/pasting the class to every project so figured I'd just stick it on NPM.
All it does is align icons to text and scale them with the text's size.
Installation
Add this plugin to your project:
yarn add tailwindcss-icon-text-align --dev
Usage
// In tailwind.config.js
require('tailwindcss-icon-text-align')
// Somewhere in your messy React project
<Button>
<IoIosTrash className="icon-text-align" /> Delete
</Button>
1.0.0
6 years ago