@anny.co/tailwindcss-gutters
v1.1.4
Published
TailwindCSS plugin that adds polyfill utility classes for gap in flexboxes using margins
Downloads
10
Readme
@anny.co/tailwindcss-gutters
This plugin polyfills the gap
utility for flexboxes not being supported for Safari et al.
NOTE: Support for IE11 is dropped intentionally! We perform active deprecation!
Usage
Install the plugin using your package manager:
yarn add @anny.co/tailwindcss-gutters
Add the plugin to your tailwind.config.js
module.exports = {
...
plugins: [
require('@anny.co/tailwindcss-gutters'),
...
]
}
Apply the gutters
(or gutters-x, gutters-y
, respectively) utility class to
your flexbox container.
<div class="flex items-center gutters-x-4">
<div></div>
<div></div>
<div></div>
</div>