4
0 Comments

I built a collection of open-source drawer (off-canvas) components in Tailwind CSS [MIT License]

Hey, indie hackers đź‘‹

One of the devs from Flowbite is tuning in here.

Together with the community, we are shipping a brand new Drawer component that lets you show or hide an off-canvas element relative to the document page based on multiple placements: top, right, bottom, and left.

The component works with clean Tailwind CSS classes and you only need to include the JS script to make it work with data attributes and the Drawer API (programmatically via JS).

We also built some examples such as:

  • default drawer (title, description, and CTA buttons)
  • contact form
  • form elements including date picker
  • navigation menu/sidebar

All of the components have dark mode included and are responsive and can be quite easily customized by adding any type of elements inside of it and you can also change the height and width of the drawer.

Another feature that we built is the swipeable edge component which lets you offset the drawer with a given height so that you can show a small part of it when inactive.

Brought to you with big ❤️ by the Flowbite community.

Links:

Trending on Indie Hackers
Passed $7k 💵 in a month with my boring directory of job boards 56 comments How I got 1,000+ sign-ups in less than a month with social media alone 21 comments 87.7% of entrepreneurs struggle with at least one mental health issue 14 comments How to Secure #1 on Product Hunt: DO’s and DON'Ts / Experience from PitchBob – AI Pitch Deck Generator & Founders Co-Pilot 13 comments Competing with a substitute? 📌 Here are 4 ad examples you can use [from TOP to BOTTOM of funnel] 10 comments Are you wondering how to gain subscribers to a founder's X account from scratch? 9 comments