Skip to content

Latest commit

 

History

History
100 lines (64 loc) · 1.22 KB

Count.md

File metadata and controls

100 lines (64 loc) · 1.22 KB

Count (component)

Props

prop name isRequired type
decrementElement func
disabled bool
incrementElement func
max number
min number
name ✔️ string
onChange ✔️ func
prefix string
step number
suffix string
value number

decrementElement

type: func

defaultValue:

function() {
  return (
    <button className='count-button' >
      <i className='icon-remove' />
    </button>
  );
}

disabled

type: bool defaultValue: false

incrementElement

type: func

defaultValue:

function() {
  return (
    <button className='count-button' >
      <i className='icon-add' />
    </button>
  );
}

max

type: number defaultValue: Number.POSITIVE_INFINITY

min

type: number defaultValue: Number.NEGATIVE_INFINITY

name (required)

type: string

onChange (required)

type: func

prefix

type: string

step

type: number defaultValue: 1

suffix

type: string

value

type: number defaultValue: 0