ReasonML utility to generate Tailwind classes
npm install --save re-tailwind
Add re-tailwind to bs-dependencies
in bsconfig.json
[%bs.raw {|require("tailwindcss/dist/tailwind.min.css")|}];
module Example = {
[@react.component]
let make = () =>
<div className=Tailwind.make([`relative, `overflowHidden, `mbAuto])>
{ReasonReact.string("Hello Example")}
</div>;
};