Giter Club home page Giter Club logo

slice's Introduction

Slice

Slice is an elegant collection of form components that can help you mock up web forms in minutes. It was built solely for convenience and speed but heck you can use it for whatever you want.

Includes:

  • Input
  • Textarea
  • Buttons
  • Radio
  • Checkbox
  • Legend
  • Fieldset
  • Labels
  • Select Dropdown If you can think of anymore form elements that you want, then open an issue or contribute.

Installation (lol, it's just css bro)

No crazy setup, just link the slice.css stylesheet and you're ready to go.

<link rel="stylesheet" type="text/css" href="css/slice.css">

Getting Started

Getting started couldn't be easier โ€” once you've added the stylesheet then all you need to do is start adding the relevant mark up. I'm going to show you a few exmaples.

The Mark up

Default text input <input type="text" class="default-input" />

Default textarea <textarea class="default-input">Hey</textarea>

Text input with a label

<label>
  <span class="label-icon"><i class="fa fa-user"></i></span>
  <input class="default-input label-input" type="text" placeholder="Default Text">
</label>

How about a dropdown menu?

<select class="default-input option-menu">
  <option value="option-1">Option 1</option>
  <option value="option-2">Option 2</option>
  <option value="option-3">Option 3</option>
  <option value="option-4">Option 4</option>
</select>

Simple Button <input class="btn" type="submit">

Slice also has some color options which you can call by just adding the following classes:

  • Blue
  • Green
  • Red
  • Orange
  • Yellow
  • Purple
  • Dark

Checkbox <input class="blue" type="checkbox" name="hi">

Radio Button <input class="blue" type="radio" name="hi">

Credits:

Icons by Font Awesome

slice's People

Contributors

bryant1410 avatar

Watchers

 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.