Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 308cffb

Browse files
committed
add FormHelp component
1 parent 28fa1e9 commit 308cffb

File tree

6 files changed

+38
-2
lines changed

6 files changed

+38
-2
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,

src/components/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import * as Site from './Site'
1717
import StampCard from './StampCard'
1818
import StatsCard from './StatsCard'
1919
import * as Table from './Table'
20+
import Popper from './Popper'
2021

2122
export const components = {
2223
...Alert,
@@ -37,5 +38,6 @@ export const components = {
3738
...Site,
3839
StampCard,
3940
StatsCard,
40-
...Table
41+
...Table,
42+
Popper
4143
}

src/directives/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import ClickOutside from './ClickOutSide'
2+
import Popover from './popover'
23

34
export default {
4-
ClickOutside
5+
ClickOutside,
6+
Popover
57
}

0 commit comments

Comments
 (0)