B4J Tutorial [Web][SithasoDaisy5] Low Code - Using 2 Drawers (left & right) in your app

Hi Fam

SithasoDaisy5 Low Code Generator

Low Code Address Book (2 Drawers)

Let's look at how we can create a webapp using two drawers. This will look like this, one drawer on the left and one on the right.

1758543472584.png


Here is our tutorial..


Using Two Drawers in an Application: A Practical Look with Tailwind CSS and DaisyUI​


Modern web applications often prioritize clean, uncluttered interfaces that still provide users with quick access to features and navigation. Drawers — sliding panels that appear from the side, top, or bottom of the screen — are a popular solution. But what about using two drawers in the same application?

In this article, we’ll explore the use of dual drawers, their advantages and disadvantages, and how tools like Tailwind CSS and DaisyUI make them easy to implement.

What Are Drawers?

A drawer is a panel that slides into view and typically contains navigation links, settings, filters, or other controls. They’re widely used in dashboards, admin panels, and mobile-friendly apps.

Using two drawers usually means:
  • Primary Drawer: Often persistent or easily accessible (e.g., left side navigation).
  • Secondary Drawer: Opens on demand for context-specific content (e.g., filters, quick actions, or notifications).

This approach can dramatically improve workflow by keeping the main UI uncluttered while allowing access to powerful features when needed.

Advantages of Using Two Drawers

1. Separation of Concerns

Having two drawers allows you to separate primary navigation from secondary tasks. For example:
  • Left drawer: Application-wide navigation (Dashboard, Projects, Settings).
  • Right drawer: Contextual controls like filters, search refinements, or chat.
This keeps users focused on the primary content area while still allowing access to supporting functionality.

2. Improved Productivity

When well implemented, dual drawers can reduce clicks and page reloads. A user can adjust settings in the secondary drawer without losing their place in the main content.

3. Clean Layout

Instead of cluttering the top bar with every action, you can group controls logically into drawers. This results in a cleaner, more minimalist interface — especially helpful when working with Tailwind CSS, where clean layouts are easy to maintain.

4. Responsive Design Benefits

DaisyUI’s built-in drawer component integrates seamlessly with Tailwind CSS utilities, making it simple to hide or show drawers based on screen size.
  • On desktop: Both drawers can stay open side-by-side if needed.
  • On mobile: They can slide in full-screen, keeping the experience touch-friendly.
 
Top