Not saved
interface QBtnProps extends Omit<HTMLButtonAttributes, "disabled">
?: string = undefined?: boolean = false?: boolean = undefined?: boolean = false?: boolean = false?: string = undefined?: QBtnIcon = undefined
?: string = undefined?: boolean = false?: boolean = false?: boolean = false?: boolean = false?: boolean = false?: boolean = false?: string = undefined?: boolean = false?: boolean = $bindable(undefined)
?: "round" | "squared" = undefined?: QBtnSizeOptions = undefined
?: keyof HTMLElementTagNameMap = undefined
?: HTMLAnchorAttributes["target"] = undefined
?: string = undefined?: boolean = false?: boolean = false?: QBtnVariantOptions = undefined
filled, tonal, outlined or flat for
another variant. An explicit variant takes precedence over these boolean props.Press a button to try its interaction.
selected to control the pressed state; flat labeled buttons do not toggle.Standard
Not selected
Expressive
Not selected
Set expressive per button or enable it globally with Quaff.init({ expressive: true }). The standard example explicitly sets expressive={false} to override that global setting. Keep the default focus
ring; keyboard users can activate buttons with Enter or Space.
rectangle; expressive mode uses shape.Pressed 0 times
The default minimum height is 40px in both modes. Explicit sizes use each mode’s scale: md is 40px standard and 56px expressive. Icons accept a Material Symbol, an img: URL or a snippet. This button uses children instead of label. color sets the text and default ripple color; this example preserves the matching
foreground for filled and tonal variants.
loading replaces the leading icon with a spinner. It does not block onclick, so guard repeated requests in your handler. disabled prevents interaction and removes the button from keyboard navigation.Ready to publish.
type, name and form. Try submitting with Enter, resetting the value, or following the link.to or href renders an anchor; target and replace control navigation. Use tag only when you need a custom
element and can preserve its semantics. For dedicated icon-only controls, see QIconBtn.