@spacebartech/text-input
v1.2.10
Published
Text input component
Downloads
10
Readme
Text Input
Text input component
Installation
npm install @spacebartech/text-input
Usage
props : {
options : {
type : Object,
default : () => ( {} )
},
errors : {
type : String,
default : () => ''
},
value : {
type : String,
default : () => '',
},
}
Options must have the following props :
label : String,
placeholder : String,
classList : String
text-input(
:options="options"
:errors="'Error String'"
@value='value'
@change='' // emits when inner textarea has changed
)
Sass variables
$label : #68A65E !default;
$error : #e64343 !default;
Tests
npm test