# icheck-bootstrap bower version npm version nuget version [![](https://data.jsdelivr.com/v1/package/npm/icheck-bootstrap/badge)](https://www.jsdelivr.com/package/npm/icheck-bootstrap) Did you had a problem customizing html checkboxes and radio buttons? icheck-bootstrap is pure css solution for displaying twitter bootstrap style checkboxes and radio buttons. Try [Demo](https://bantikyan.github.io/icheck-bootstrap/). You may also like to try [icheck-material](https://github.com/bantikyan/icheck-material). ## Table of contents * Getting started * HTML syntax * ASP.NET MVC syntax * Color schemes * License ## Getting started Several quick start options are available: * [Download the latest release](https://github.com//bantikyan/icheck-bootstrap/archive/3.0.1.zip) * Install with [Bower](https://bower.io): bower install icheck-bootstrap * Install with [npm](https://www.npmjs.com/package/icheck-bootstrap): npm install icheck-bootstrap * Install with [Nuget](https://www.nuget.org/packages/icheck-bootstrap/): Install-Package icheck-bootstrap * Use CDN [jsDelivr](https://www.jsdelivr.com/package/npm/icheck-bootstrap) ## HTML syntax #### checkbox example ```
``` #### radio buttons example ```
``` #### inline styling To have checkboxes or radio buttons inline use .icheck-inline class ```
``` #### disabled Use disabled attribute on your input (checkbox or radio) to have disabled style. #### no label To have components without label, you still have to have label control with empty text. ```
``` ## ASP.NET MVC syntax #### checkbox example ```
@Html.CheckBoxFor(m => m.SomeProperty, new { id = "someCheckboxId" })
``` #### radio buttons example ```
@Html.RadioButtonFor(m => m.SomeProperty, SomeValue1, new { id = "someRadioId1" })
@Html.RadioButtonFor(m => m.SomeProperty, SomeValue2, new { id = "someRadioId2" })
``` ## Color schemes Try [Demo](https://bantikyan.github.io/icheck-bootstrap/) Twitter Bootstrap: As you can see in previous examples, icheck-primary class used for styling. You can use following classes for Twitter Bootstrap color scheme: .icheck-default
.icheck-primary
.icheck-success
.icheck-info
.icheck-warning
.icheck-danger Flat UI Colors: Also you can use one of the really nice colors from [flatuicolors.com](https://flatuicolors.com/) .icheck-turquoise
.icheck-emerland
.icheck-peterriver
.icheck-amethyst
.icheck-wetasphalt
.icheck-greensea
.icheck-nephritis
.icheck-belizehole
.icheck-wisteria
.icheck-midnightblue
.icheck-sunflower
.icheck-carrot
.icheck-alizarin
.icheck-clouds
.icheck-concrete
.icheck-orange
.icheck-pumpkin
.icheck-pomegranate
.icheck-silver
.icheck-asbestos
## License icheck-bootstrap released under the [MIT license](https://github.com/bantikyan/icheck-bootstrap/blob/master/LICENSE). Feel free to use it in personal and commercial projects.