Quasar Button Generator
A QBtn playground: toggle the q-btn props on a live button, then copy the template.
Design
standard
flat
outline
unelevated
push
Shape
default
rounded
round
square
Size
Material Icons names. Type any other name and press Enter.
glossy
dense
no-caps
stack
loading
disable
Preview
Quick looks
Template
<q-btn unelevated color="primary" label="Send" icon-right="send" no-caps /> Paste it into any Vue template in a Quasar 2 or Nuxt app. Only the props that differ from the QBtn defaults are written.
How to use the Quasar Button Generator
- Type the label, then pick the color (the background, or the text and border on flat and outline buttons) and, if you need it, a separate text-color.
- Choose one design and one shape. QBtn applies a single design and a single shape, so the generator never writes two that cancel each other out. Quick looks set both in one click.
- Pick a size from xs to xl, add an icon before or after the label, and switch on glossy, dense, no-caps, stack, loading or disable to see each one on the live button.
- Copy the template and paste it into any Vue component in your Quasar or Nuxt app, then add your @click handler.
Want the buttons styled to your brand everywhere at once? The Theme Builder sets your colors and QBtn defaults for the whole app.
Frequently asked questions
What happens if I set flat and outline on the same q-btn?
Why does color change the text on a flat or outline button?
How do I make an accessible round icon button?
How do I show a loading spinner while a request runs?
Do the icon names work in a new Quasar project?