Skip to content
Quickly integrate pretty checkbox components with Angular
Branch: master
Clone or download
Latest commit ada95d1 Nov 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo Delete README.md Nov 8, 2018
src create content of apis Oct 27, 2018
LICENSE create readme.md and license Nov 8, 2018
README.md update readme.md Nov 8, 2018
logo.gif create readme.md and license Nov 8, 2018
package-lock.json end of switch component Oct 23, 2018
preview.gif create readme.md and license Nov 8, 2018

README.md


Pretty checkbox angular

NgxPrettyCheckbox

Quickly integrate pretty checkbox Components (checkbox, switch, radio button) with Angular

Github Release Licence


Pretty checkbox preview





Installation

  • Step 1

Install the pretty-checkbox from npm or yarn package manager

> npm install pretty-checkbox // or
> yarn add pretty-checkbox

Alternatively, you can also use CDN link

https://cdn.jsdelivr.net/npm/pretty-checkbox@3.0/dist/pretty-checkbox.min.css

  • Step 2

Download pretty-checkbox angular module from npm package manager

> npm install ngx-pretty-checkbox

  • Step 3

Add dist/pretty-checkbox.min.css file from node_module of pretty-checkbox in your html or import src/pretty-checkbox.scss file in your scss file

@import '~pretty-checkbox/src/pretty-checkbox.scss';

  • Step 4

Add ngx-pretty-checkbox in your AppModule

import { NgxPrettyCheckboxModule } from 'ngx-pretty-checkbox';

@NgModule({
  declarations: [ ... ],
  imports: [
    ...,
    NgxPrettyCheckboxModule
  ],
  providers: [ ... ],
  bootstrap: [ ... ]
})
export class AppModule { 
  ...
}

  • Step 5

Use it in your angular application

<p-checkbox>
  Default
</p-checkbox>




More demos and document

There are more features like Radio buttons , Toggle , States , Animations , Border less , Lock , Scale, SCSS Settings.

Please refer the documentation to know about them.



Browser support

Works in all modern browsers.

Chrome >= 26 Firefox >= 16 Safari >= 6.1 Opera >= 15 IE >= 9

License

This project is licensed under the MIT License. Copyright (c) milad faghihi.

You can’t perform that action at this time.