Button component. If you want to place a button in a toolbar, use <v-ons-toolbar-button>
or <v-ons-back-button>
instead.
Will automatically display as a Material Design button with a ripple effect on Android.
Buttons are created using the VOnsButton
component.
<v-ons-button>Tap me</v-ons-button>
The button will automatically select the style based on the platform. On Android it will be a Material Design button with a ripple effect.
A button is no good if it doesn’t do anything. To bind an action to a button the @click
event is used.
<Button @click="handleClick($event)">Tap me</Button>
The appearance of the button can be changed with the modifier
prop.
Available props are: quiet
, outline
, cta
and large
.
If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.
For bug reports and feature requests use our GitHub Issues page.