2.3.4 • Published 7 years ago

fyndiq-component-checkbox v2.3.4

Weekly downloads
18
License
MIT
Repository
github
Last release
7 years ago

fyndiq-component-checkbox npm

Preview

A checkbox component for Fyndiq

Installation

The component can be installed through NPM:

npm i -S fyndiq-component-checkbox

Usage

import React from 'react'
import Checkbox from 'fyndiq-component-checkbox'

// Basic usage
<Checkbox onToggle={newStatus => console.log(newStatus)} />

// Control the checked state
<Checkbox checked />

// Change the color of the checkmark
<Checkbox color="red" />

// Disabled checkbox
<Checkbox disabled />

API

The component Checkbox has the following customizable props:

NameTypeDescriptionDefault value
onToggleFunctionThe handler called whenever the checkbox changes state. The argument passed is the new state of the checkbox.noop => noop
classNameStringOptional class for advanced styling ''
colorStringThe color of the checkmarklight grey
checkedBooleanActivates the checkbox. false
disabledBooleanDisables the checkbox.false
 indeterminate BooleanActivates the indeterminate mode. Usefull when the checkbox has children checkboxes. See CSS-tricks false
2.3.4

7 years ago

2.3.3

8 years ago

2.3.2

8 years ago

2.3.1

8 years ago

2.3.0

8 years ago

2.2.4

8 years ago

2.2.3

8 years ago

2.2.2

8 years ago

2.2.1

8 years ago

2.2.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.1-0

8 years ago

2.0.0

8 years ago

2.0.0-pre.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.2

8 years ago