Repository URL to install this package:
Version:
0.9.5 ▾
|
import { ReactNode } from 'react'
export interface IncrementerRenderProp extends Function {
(props?: IncrementerProps, state?: DefaultIncrementerState): ReactNode
}
export interface IncrementerProps {
className?: string
children?: ReactNode
title?: string
nowrap?: boolean
step?: number
minValue?: number
maxValue?: number
defaultValue?: number
onChange?: Function
renderBox?: IncrementerRenderProp
renderWrapper?: IncrementerRenderProp
state?: DefaultIncrementerState
}
export interface DefaultIncrementerState {
count?: number
shouldIncrement?: boolean
shouldDecrement?: boolean
incrementCount(props: IncrementerProps): void
decrementCount(props: IncrementerProps): void
}