Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3746ab9

Browse files
committedJun 19, 2018
add FormHelp component
1 parent 28fa1e9 commit 3746ab9

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed
 

‎example/src/components/FormsPage.vue

+14
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@
6767
</grid-col>
6868
</grid-row>
6969
</form-group>
70+
<form-group>
71+
<form-label>Zip Code</form-label>
72+
<grid-row class="gutters-xs">
73+
<grid-col sm>
74+
<form-input placeholder="Search for..."/>
75+
</grid-col>
76+
<grid-col class="col-auto align-self-center">
77+
<form-help>
78+
<p>ZIP Code must be US or CDN format. You can use an extended ZIP+4 code to determine address more accurately.</p>
79+
<p class='mb-0'><a href=''>USP ZIP codes lookup tools</a></p>
80+
</form-help>
81+
</grid-col>
82+
</grid-row>
83+
</form-group>
7084
</grid-col>
7185
<grid-col md="6" lg="4">
7286
<form-group>

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"vue": "^2.5.16"
3333
},
3434
"dependencies": {
35+
"popper.js": "^1.14.3",
3536
"tabler-ui": "^0.0.32",
3637
"vue-popperjs": "^1.3.4"
3738
}

‎src/components/Form/FormHelp.vue

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<span class="form-help">?
3+
<div class="arrow" style="left: 129px;"></div>
4+
</span>
5+
</template>
6+
7+
<script>
8+
export default {
9+
name: "form-help"
10+
}
11+
</script>
12+
13+
<style scoped>
14+
15+
</style>

‎src/components/Form/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import FormCheckbox from './FormCheckbox'
22
import FormFileInput from './FormFileInput'
33
import FormGroup from './FormGroup'
44
import FormGroupAddon from './FormGroupAddon'
5+
import FormHelp from './FormHelp'
56
import FormInput from './FormInput'
67
import FormInputIcon from './FormInputIcon'
78
import FormInputGroup from './FormInputGroup'
@@ -18,6 +19,7 @@ export {
1819
FormInputIcon,
1920
FormGroup,
2021
FormGroupAddon,
22+
FormHelp,
2123
FormInput,
2224
FormInvalidFeedback,
2325
FormInputGroup,

0 commit comments

Comments
 (0)
This repository has been archived.