seed-input
v0.0.7
Published
Input component pack for Seed
Downloads
3,231
Maintainers
Readme
seed-input
Input component pack for Seed!
Install
npm install seed-input --save
Documentation
Check out our documentation of this pack.
Basic Usage
SCSS
This seed pack needs to be imported into your sass pipeline. Below is an example using Gulp:
var gulp = require('gulp');
var sass = require('gulp-sass');
var pack = require('seed-input');
gulp.task('sass', function () {
return gulp.src('./sass/**/*.scss')
.pipe(sass({
includePaths: pack
}))
.pipe(gulp.dest('./css'));
});
Once that is setup, simply @import
seed-input as needed in your .scss
file:
// Packs
@import "pack/seed-input/_index";
Options
The following variables can be found in _config.scss
// Dependencies
@import "pack/seed-border/config";
// Namespaces
$seed-input-namespace: "c-input" !default;
// Configs
$seed-input-border-color: #d5d5d5 !default;
$seed-input-border-radius: $seed-border-radius !default;
$seed-input-border-size: $seed-border-size !default;
$seed-input-border-style: solid !default;
$seed-input-border-color-focus: #3197D6 !default;
$seed-input-background-color-disabled: #e6e6e6;
$seed-input-padding: 0 8px !default;
$seed-input-padding-textarea: 8px !default;
$seed-input-type-file-height: 24px !default;