0.0.17 • Published 3 years ago
test-title v0.0.17
form-vue-testing
This template should help get you started developing with Vue 3 in Vite.
Customize configuration
See Vite Configuration Reference.
Project Setup
yarn
or
npmCompile and Hot-Reload for Development
yarn dev
or
npm run devCompile and Minify for Production
yarn build
or
npm run buildLint with ESLint
yarn lint
or
npm run lintTo install package
yarn add test-title
or
npm install test-titleTo use the form in the component
- import all components
 
import {
  Form,
  Label,
  Input,
  TextArea,
  Button
} from 'test-title'Form accepts parameters
- required 
:formId(the id of your form on getform) - required 
:initialValues- the initial values for the form{field name: initial value} - optional parameter 
onCustomSubmit- your custom submit handler - optional parameter 
className- class name for custom styling 
- required 
 Label accepts parameters
- required 
label- the label text - required 
name- the name of the input current label is for - optional parameter 
className- class name for custom styling - optional parameter 
tooltipClassName- class name for custom styling Tooltip 
- required 
 Input and TextareaComponent accepts parameters
- required 
placeholder - required 
type - required 
name - optional 
validator- the string in form ofvalueorvalue1|value2. Validators may berequired,email,onlyLettersor combination e.g.onlyLetters|required - optional parameter 
className- class name for custom styling 
- required 
 Button accepts parameters:
- required 
label- string with text type- type of the button- optional parameter 
className- class name for custom styling 
- required 
 
Example
    <Form :formId="apiKey" :initialValues="{ name: '', email: '', message: '' }" className="my-custom-class">
      <Label label="Your Name" name="name">
        <Input type="text" placeholder="Your Name" name="name" validator="required|onlyLetters" />
      </Label>
      <Label label="Email Address" name="email">
        <Input placeholder="Email Address" type="email" name="email" validator="required|email" />
      </Label>
      <Label label="Message" name="message">
        <TextArea placeholder="Message" name="message" validator="required" />
      </Label>
      <Button label="Send form" type="submit" />
    </Form>0.0.17
3 years ago
0.0.16
3 years ago
0.0.15
3 years ago
0.0.14
3 years ago
0.0.13
3 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago
0.0.0
3 years ago
1.0.0
8 years ago