Coder Social home page Coder Social logo

rajasegar / ember-smart-input Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 3.5 MB

Simple ideas for enhancing text input interactions

Home Page: http://rajasegar.github.io/ember-smart-input

License: MIT License

JavaScript 17.53% CSS 70.06% HTML 12.40%
ember-addon input textbox text-input

ember-smart-input's Introduction

ember-smart-input

Build Status npm npm version dependencies Status devDependencies Status EmberObserver

Simple ideas for enhancing text input interactions

Demo

Demo

Installation

  • ember install ember-smart-input

Usage

In your template:

<SmartInput @label="First Name" @style="haruki" />

which will get rendered as:

<span class="input input--haruki">
    <input class="input__field input__field--haruki" type="text" id="input-1" />
    <label class="input__label input__label--haruki" for="input-1">
        <span class="input__label-content input__label-content--haruki">First Name</span>
    </label>
</span>

For validation indicators with label color changes:

  <SmartInput label="Name" style="hoshi" labelColor="color-1" />
  <SmartInput label="Name" style="hoshi" labelColor="color-2" />
  <SmartInput label="Name" style="hoshi" labelColor="color-3" />

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

See the Contributing guide for details.

Credits

ember-smart-input's People

Contributors

dependabot[bot] avatar ember-tomster avatar rajasegar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.