Is it possible to draw elements stacked on top of each other? #6224
|
Hi, not sure if this is possible with a finite amount of effort, but is there a way to stack different elements on top of each other so they are both rendered?
Step 3 should not be too difficult, but step 2 seems to be impossible in NiceGUI or Quasar. Since I don't have experience with HTML/JS, I'm not sure if there is a way using Vue as a low-level solution. Of course I could just put both elements side by side and be done with it, but layering would be nice. |
Answered by
evnchn
Jul 31, 2026
Replies: 1 comment 4 replies
4 replies
Answer selected by
Black-Maille
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Yes, this works today — it's just CSS layering, and there are two routes.
1. Nest the icon inside the progress bar. Quasar's
QLinearProgresshas a default slot for exactly this, so any element you nest underui.linear_progressis drawn on top of it:justify-startpins it to the left end (justify-centerfor the middle). Two gotchas: givesizeenough height for the icon, and passshow_value=Falseso the built-in percentage label doesn't sit in the same space.2. Generic stacking, for any two elements — a
relativeparent…