Home Reference Source
public class | source

CheckboxField

Extends:

react~ComponentField → CheckboxField

Controls input of type checkbox

SCSS Import

@import "~@orloxx/ui-core/scss/form/checkbox-field";

Example:

<CheckboxField id='policy' name='policy' label='Policy'>
  Please accept the <a href="/policy">policy</a> to continue
</CheckboxField>

Static Member Summary

Static Public Members
public static

Inherited Summary

From class Field
public static

Static Public Members

public static propTypes: Object source

Override:

Field#propTypes

Properties:

NameTypeAttributeDescription
children Array<HTMLOptionElement>

The checkbox HTML text

checked Boolean
  • optional

If the checkbox is checked or not