Vue.js 2 toolbar / toggle bar.
Install:
npm install vue-js-toolbar --save
Bash
Import:
import Toolbar from 'vue-js-toolbar'
Vue.use(Toolbar)
JavaScript
Use:
<toolbar :value="true"
:position="top" />
<toolbar :value="true"
:position="left"
:height="64"
:width="64"
:color="#4285F4" />
XML
NAMETYPEDEFAULTDESCRIPTIONvalueBooleanfalseInitial state of the toolbarpositionStringtop
Position of the toolbar, accepts top
, left
, right
, bottom
heightNumber64Height of the toolbar only applicable if the position is top
or bottom
. For left
and right
position the default height is 100%
widthNumber64Width of the toolbar only applicable if the position is left
or right
colorString#4285F4
Background color of the toolbar only accepts Hex value with #
To further customize, simply add style with required css changes:
<toolbar style="box-shadow: none;" />
#Toolbar #Toggle