1.0.4 • Published 6 years ago

vuetify-components v1.0.4

Weekly downloads
20
License
-
Repository
-
Last release
6 years ago

vuetify-components

GitHub license npm version CircleCI

UI components for Vuetify.js

Installation

npm install --save vuetify-components

or

yarn add vuetify-components
import Vue from 'vue'
import VuetifyComponents from 'vuetify-components'
import 'vuetify-components/src/stylus/main.styl'

Vue.use(VuetifyComponents)

Usage

Once installed, it can be used in a template as simply as:

MessageBox

Examples

<v-message
        v-model="message"
        text="Show Message!"
        :timeout="5000"
        color="success"
        @close="closeHandler">
</v-message>

Properties

NameTypeDefault ValueDescription
display (model)BooleanfalseControls visibility.
textstringSets text.
timeoutNumber0Time (in milliseconds) to wait until snackbar is automatically hidden. Use 0 to keep open indefinitely.
colorstringinfoApplies specified color to the control.
modestringverticalSets snackbar display mode. Available options are vertical and multi-line.
closeTextstringCloseSets the text of the button.

Events

NameArgumentsDescription
closedisplay (Boolean)The close event

ConfirmBox

Examples

<v-confirm-box
        v-model="confirmBox"
        title="Confirm Box Title"
        text="Confirm Box Text"
        :width="500"
        :cancel="cancelHandler"
        :ok="okHandler">
</v-confirm-box>

Properties

NameTypeDefault ValueDescription
display (model)BooleanfalseControls visibility.
titlestringSets title.
textstringSets text.
widthNumber400Sets the confirm box width.
cancelTextstringCANCELSets the text of the cancel button.
okTextstringOKSets the text of the ok button.
cancelFunctionSets the handler when the cancel button clicked.
okFunctionSets the handler when the ok button clicked.
dangerBooleantrueSets the color of the ok button to danger.

Events

NameArgumentsDescription
hidedisplay (Boolean)The hide event

StaticTextField

Examples

<v-static-text-field
        :loading="loading"
        label="static text field"
        value="value"
        hint="hint"
        :counter="20"
        :persistentHint="true">
</v-static-text-field>

Properties

NameTypeDefault ValueDescription
labelstringSets input label.
valuestringInput value.
hintstringHint text.
counterNumberCreates counter for input length.
persistentHintBooleanForces hint to always be visible.
loadingBooleanDisplays linear progress bar.
progressColorstringprimaryApplies specified color to the progress control.
progressWidthNumber3Sets the stroke of the circle in pixels/

SwitchField

Examples

<v-switch-field
        label="readonly switch field"
        :loading="loading"
        value="value"
        :readonly="true"
        :checked="false">
</v-switch-field>

Properties

NameTypeDefault ValueDescription
labelstringSets input label.
textstringSets the text of the selection control component.
loadingBooleanDisplays linear progress bar.
disabledBooleanInput is disabled.
value (model)BooleanSets the value of the selection control component.
readonlyBooleanfalsePuts input in readonly state.
progressColorstringprimaryApplies specified color to the progress control.
progressWidthNumber3Sets the stroke of the circle in pixels/

Events

NameArgumentsDescription
changechecked (Boolean)Emitted when the input is changed by user interaction.
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago