# magic-input
**Repository Path**: mirrors_jaywcjlove/magic-input
## Basic Information
- **Project Name**: magic-input
- **Description**: CSS3 Styles for Checkbox and Radio Button inputs look prettier. with only one element.
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-10-22
- **Last Updated**: 2025-09-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# magic-input
[](https://jaywcjlove.github.io/#/sponsor)
[](https://www.npmjs.com/package/magic-input)
[](https://github.com/jaywcjlove/magic-input/actions/workflows/ci.yml)
CSS3 Styles for Checkbox and Radio Button inputs look prettier. with only one element. [Live demo](https://jaywcjlove.github.io/magic-input)
# Usage
```bash
$ npm install magic-input
```
Include `dist/magic-input.css` or `dist/magic-input.min.css` in your html. If your use [Stylus](https://github.com/stylus/stylus) use `magic-input.styl`
```js
import 'magic-input/dist/magic-input.min.css';
// or
import 'magic-input/lib/magic-input.styl';
```
Or manually download and link magic-input in your HTML, It can also be downloaded via [UNPKG](https://unpkg.com/magic-input/dist/):
```html
```
## Checkbox iPhone Style

```html
```
## Checkbox

```html
Default
Primary
Success
Info
Warning
Danger
```
## Radios

```html
Default
Primary
Success
Info
Warning
Danger
```
## Sizing Class
`sm` for `small` , `lg` for `large`
**For Checkbox**
`mgc-sm` `mgc-lg`
**For Radio Button**
`mgr-sm` `mgr-lg`
## Colorize Class
**For Checkbox**
`mgc-primary` `mgc-info` `mgc-success` `mgc-warning` `mgc-danger`
**For Radio Button**
`mgr-primary` `mgr-info` `mgr-success` `mgr-warning` `mgr-danger`