Spinner utility for Tailwind CSS
You can install it with yarn
yarn add tailwindcss-spinner
To get started using the plugin, you can require it into your Tailwind CSS config file
plugins: [
// Other plugins...
require('tailwindcss-spinner')(),
],
Now you will have a .spinner
class available in your CSS.
If you want to customize the spinner, you can pass any combination of the following options (shown with default values).
plugins: [
// Other plugins...
require('tailwindcss-spinner')({
name: 'spinner', // change class name
color: 'grey-light', // color from config to make it
}),
],