Skip to content
Input component for Seed
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
example
scripts
scss/pack/seed-input
test
.gitignore
.sass-lint.yml
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

seed-input Build Status npm version dependencies Status

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;
You can’t perform that action at this time.