<tap-button>
Mobile button component. Supports semantic colors, sizes, reverse/ghost styles and rounded corners.
Example
Loading...
<tap-button .color=${"normal"}> Primary Button </tap-button> <tap-button .color=${"danger"}> Danger Button </tap-button> <tap-button .color=${"cancel"}> Cancel Button </tap-button> <tap-button .type=${"reverse"} .color=${"normal"}> Reverse Type </tap-button> <tap-button
.round=${true}
.small=${true}
.color=${"normal"}> Round Small </tap-button> <tap-button .disabled=${true} .color=${"normal"}> Disabled </tap-button>
API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
type(type) |
Yes | 'solid' | 'reverse' |
color(color) |
Yes | StringList<'normal' | 'danger' | 'cancel'> |
small(small) |
Yes | boolean |
round(round) |
Yes | boolean |
square(square) |
Yes | boolean |
disabled(disabled) |
Yes | boolean |
borderless(borderless) |
Yes | boolean |
route |
Yes | RouteItem |
params |
Yes | Record<string, string> |
query |
Yes | Record<string, string> |
icon |
Yes | string | Element | DocumentFragment |
Other
| Type | Value |
|---|---|
| Slot | unnamed |
| Part | button |
| CSS State | active |
