https://github.com/bwca/package_print-form-field-component
form components for printing
https://github.com/bwca/package_print-form-field-component
Last synced: over 1 year ago
JSON representation
form components for printing
- Host: GitHub
- URL: https://github.com/bwca/package_print-form-field-component
- Owner: Bwca
- License: mit
- Created: 2019-10-04T07:40:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-15T16:38:42.000Z (almost 5 years ago)
- Last Synced: 2024-03-23T11:21:50.073Z (about 2 years ago)
- Language: TypeScript
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README

# Print form field component
The web component is intented to be used creating printable forms with html, it accepts four inputs:
```
intro-text
```
the lead text describing the field, which goes before the user input. The input is optional and can be omitted.
```
filled-text
```
the input provided by the user displayed on horizontal lines with optional notes put under the aforementioned lines.
```
notes
```
an optional string with notes. To put notes on different lines of user input they should be separated with a special symbol, a separator which is ``` | ``` by default
```
notes-separator
```
by default it is |, provide only if a different separator is chosen for notes.
The web component is styled using css variables, investigate the source style sheet for details.
# Example form field component usage
```
```
## Using this component
### Script tag
- Put a script tag `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc