Skip to content
On this page

VActionBar

Bottom sidebar with text or action buttons that can present form information or submit form data.

ActionBar is fixed at the bottom of the page by position: fixed. In order to avoid the page content being overlap, we need to reserve a blank space (not less than 100px) at the bottom (the iPhone also needs to add constant(safe-area-inset-bottom)).

Import

js
import { VActionBar } from 'vui-vc-next'

app.component(VActionBar.name, VActionBar)

API

ActionBar Props

PropsDescriptionTypeDefaultNote
actionsbutton groupArray<ActionOptions>--

ActionOptions Props

PropsDescriptionTypeDefault
text-String-
disabled-Booleanfalse
onClickclick handlerFunction(action: ActionOptions)-
type-Stringdisabled when the prop disabled is true, otherwise is primary
plain-Booleanfalse for the last one and true for the others
round-Booleanfalse
iconicon nameString-
iconSvguse svg iconBooleanfalse
inactive-Booleanfalse
loading-Booleanfalse

ActionBar Events

@click(action)

Button click event

PropsDescriptionType
actionobject corresponding to the clicked button in the actions listObject: ActionOptions