Vue components library for private use by Vest financial group, inc.
npm install vest-ui bash
yarn add vest-ui
npm install vest-ui
`1.2 Usage
Import all components.
` js
import Vue from 'vue';
import Vest from 'vest-ui';Vue.use(Vest);
`Or import specific components as needed.
` js
import { ctaBtn, stdInput } from 'vest-ui';// global
Vue.component('ctaBtn', ctaBtn);
Vue.component('stdInput', stdInput);
// scoped
export default {
name: 'anyVueComponent',
components: {
ctaBtn,
stdInput,
}
}
`
2. Components
2.1 buttons
$3
!alt text)#### setup
No additional setup is reuqired to use this component.
#### props
| Name | Description | Type | Values | Notes | Optional
| :------------ | :------------------------ | :------------ | :------- | :-------- | :-------
| disabled | if true, button is disabled | bool | -- | -- | yes
| btnStyle | integer that renders button color scheme | number | 1,2,3 | default: 1 | yes
| alt (deprecated) | if true, renders alternate color scheme | bool | -- | -- | yes
#### events
| Name | Trigger | Notes |
| :------------ | :------------------------------- | :-------- |
| @click | button has been clicked | --
$3
!alt text
!alt text#### setup
No additional setup is reuqired to use this component.
#### props
| Name | Description | Type | Values | Notes | Optional
| :------------ | :------------------------ | :------------ | :------- | :-------- | :----------
| disabled | if true, button is disabled | bool | -- | -- | yes
| alt | if true, renders alternate color scheme | bool | -- | -- | yes
#### events
| Name | Trigger | Notes |
| :------------ | :------------------------------- | :-------- |
| @click | button has been clicked | --
$3
!alt text#### setup
No additional setup is reuqired to use this component.
#### props
| Name | Description | Type | Values | Notes | Optional
| :------------ | :------------------------ | :------------ | :------- | :-------- | :----------
| disabled | if true, button is disabled | bool | -- | -- | yes
#### events
| Name | Trigger | Notes |
| :------------ | :------------------------------- | :-------- |
| @click | button has been clicked | --
$3
!alt text#### setup
No additional setup is reuqired to use this component.
#### props
| Name | Description | Type | Values | Notes | Optional |
| :------------ | :------------------------ | :------------ | :------- | :-------- | :------- |
| direction | the direction of the button's arrow | string | 'right', 'left', 'down' | default: 'right' | yes
| strokeColor | button's outline/arrow color | string | css hex color | default: '#fff' | yes
| fillColor | button's color on hover/click | string | css hex color | default: '#fff' | yes
#### events
| Name | Trigger | Notes |
| :------------ | :------------------------------- | :-------- |
| @click | button has been clicked | --
2.2 accents
$3
!alt text#### setup
This component is absolutely positioned. Be sure to have a positioned element as the desired parent.
#### props
| Name | Description | Type | Values | Notes | Optional
| :------------ | :------------------------ | :------------ | :------- | :-------- | :-----
| strokeColor | accents's color | string | css hex color | default: '#fff' | yes
#### events
There are no events for this component.
$3
!alt text#### setup
No additional setup is reuqired to use this component.
#### props
| Name | Description | Type | Values | Notes | Optional
| :------------ | :------------------------ | :------------ | :------- | :-------- | :-----
| strokeColor | accents's color | string | css hex color | default: '#fff' | yes
#### events
There are no events for this component.
$3
!alt text#### setup
No additional setup is reuqired to use this component.
#### props
| Name | Description | Type | Values | Notes | Optional
| :------------ | :------------------------ | :------------ | :------- | :-------- | :-----
| strokeColor | accents's color | string | css hex color | default: '#fff' | yes
#### events
There are no events for this component.
2.3 form components
$3
!alt text#### setup
Must have
vee-validate plugin installed and imported in main.js
For currency masking, must have v-money plugin installed and imported in main.js
` js
import Vue from 'vue';
import VeeValidate from 'vee-validate';Vue.use(VeeValidate);
// only need this if you are using the iMoney prop for currency masking
import Money from 'v-money'
Vue.use(Money, {precision: 2})
`
#### props
| Name | Description | Type | Values | Notes | Optional
| :------------ | :------------------------ | :------------ | :------- | :-------- | :-----
| iName | input's name | string | -- | -- | no
| v-model | input's modeled value | string | -- | -- | no
| iValue | input's initial value | string | -- | this must be the same property that is assigned to v-model | no
| iType | input's type | string | html input type | default: 'text' | yes
| iValidate | validation rules | string | valid validation rule syntax | -- | yes
| iPlaceholder | input's placeholder text | string | -- | -- | yes
| iClass | class(es) to be applied directly to the input element | string | css class string | -- | yes
| iMask | input mask | string | valid vue-the-mask string | -- | yes
| iMoney | input mask for currency | object | valid v-money object | -- | yes
| iMin | number input's min value | number | -- | only used when iType="number" | yes
| iMax | number input's max value | number | -- | only used when iType="number" | yes
| iStep | number input's legal intervals | number | -- | only used when iType="number" default: 1 | yes
| labelClass | class(es) to be applied directly to the input's label/placeholder | string | css class string | -- | yes
| iOptional | indicate whether input should display 'optional' | bool | -- | default: false | yes
#### events
There are no events for this component.
$3
!alt text
!alt text#### setup
This element uses a single
tag to render