May 9, 2024
Building A Dynamic Dashboard with gluestack-ui and esm.sh
In this tutorial, we take a look into how gluestack-ui and esm.sh help simplify the process of creating dynamic and functional dashboards.
Author


Book a call
Table of Contents

What is gluestack-ui?
gluestack-ui is a universal UI library that provides optionally styled and accessible components. It is designed to be easy to use and integrate into existing projects, and it provides a consistent design language across different platforms. gluestack-ui is not a direct replacement for React Native Web, but it builds upon its components to provide additional features and performance improvements.
What is esm.sh?
The application will have a widget list from where you can drag and drop widgets in the canvas and it will use esm.sh to build on the browser and render the widget.
- Setting up the project
- Creating the UI
- Adding esm.sh
- Dynamic import of modules
- Rendering the module
Setting Up the Project
To create a new project, run the following command:
The app with gluestack-ui is created.
Creating the UI
We create a basic UI with the widget list consisting of the list of widget and a drop area where the widgets are dropped. We will create a widget render component that will render the widget once it is dropped.
The ESM Code
Create a widget.js file on the public folder and include the following code:
Dynamic Import When the Widget is Dragged and Dropped
The following code is used to render the widget once it is dropped:
Summing Up
Building a dynamic dashboard using gluestack-ui and esm.sh represents a modern approach to web development, emphasizing efficiency and flexibility. By harnessing the capabilities of gluestack-ui's intuitive UI components and esm.sh's dynamic module loading, developers can create interactive dashboards that adapt to evolving requirements.
Subscribe to Our Newsletter
Subscribe to RSS
Press & Media Hub RSS FeedRelated Articles.
More from the engineering frontline.
Dive deep into our research and insights on design, development, and the impact of various trends to businesses.

Jun 27, 2026
Building a Resilient Hybrid-Cloud Network with WireGuard HA, Route-Based Failover, and Deep Observability

Jun 19, 2026
We Built a 114-Second AWS-to-Azure Failover. Here’s What We Learned

Jun 12, 2026
Cloud-Native and Cloud-Agnostic Are Not Ideologies; They Are Business-Stage Decisions

Jun 8, 2026
Geeklego: The Open-Source Design System Built to Work With AI

May 18, 2026
Your Vibe Code Has No Memory. DESIGN.md Fixes That.

May 14, 2026
