Skip to main content
Renders a button in the host’s styling, in one of four variants.

Parameters

__namedParameters

TapButtonProps

Returns

ReactElement

Remarks

Draws on --tap-accent and --tap-accent-fg for primary, --bg-raised, --fg-default and --divider for secondary, --fg-muted for ghost and --tap-danger for danger, and takes its radius from --tap-radius. The element defaults to type="button", so a button inside a TapForm does not submit it unless you pass type="submit". loading disables the button, so a click cannot land twice.

Example