Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@formio/pretty-checkbox

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formio/pretty-checkbox

Use pretty checkboxes with Form.io

  • 1.1.0
  • npm
  • Socket score

Version published
Weekly downloads
1K
decreased by-19.97%
Maintainers
4
Weekly downloads
 
Created
Source

Form.io Pretty Checkboxes

This is a Form.io renderer module that adds the Pretty Checkbox styles to all rendered checkboxes.

Installation

To install this module, just type the following.

npm install --save @formio/pretty-checkbox

Adding to your renderer.

To enable this for all rendered forms in your application, do the following.

import { Formio } from 'formiojs';
import FormioPrettyCheckbox from '@formio/pretty-checkbox';
Formio.use(FormioPrettyCheckbox);

You will also need to add the styles like so.

@import '~@formio/pretty-checkbox/dist/formio-pretty-checkboxes.css';

Extending

You can also use the class to create your own extended Checkbox classes that use the Pretty Checkbox.

import { Formio } from 'formiojs';
import FormioPrettyCheckbox from '@formio/pretty-checkbox';
Formio.use(FormioPrettyCheckbox);

const PrettyCheckbox = FormioPrettyCheckbox.components.checkbox;

export default class CustomCheckbox extends PrettyCheckbox {}

FAQs

Package last updated on 21 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc