Stepper

Stepper Props

Name
Type
Default
Description

buttonsOnly

boolean

false

Disables inner value container between stepper buttons

colors

object

Object with Tailwind CSS colors classes

colors.activeBgIos

string

'active:bg-primary'

colors.activeBgMaterial

string

''

colors.fillActiveBgIos

string

'active:bg-ios-primary-shade'

colors.fillActiveBgMaterial

string

''

colors.fillBgIos

string

'bg-primary'

colors.fillBgMaterial

string

'bg-md-light-primary dark:bg-md-dark-primary'

colors.fillTextIos

string

'text-white'

colors.fillTextMaterial

string

'text-md-light-on-primary dark:text-md-dark-on-primary'

colors.fillTouchRipple

string

'touch-ripple-white dark:touch-ripple-primary'

colors.outlineBorderIos

string

'border-primary'

colors.outlineBorderMaterial

string

'border-md-light-outline dark:border-md-dark-outline'

colors.textIos

string

'text-primary'

colors.textMaterial

string

'text-md-light-primary dark:text-md-dark-primary'

colors.touchRipple

string

'touch-ripple-primary'

component

string

'div'

Component's HTML Element

input

boolean

false

Defines should it render element or not

inputDisabled

boolean

false

Defines whether the stepper input is disabled or not

inputPlaceholder

string

Input placeholder

inputReadOnly

boolean

false

Defines whether the stepper input is read only or not

inputType

string

'text'

Input type

large

boolean

undefined

Makes stepper large. Overwrites largeIos and largeMaterial

largeIos

boolean

false

Makes stepper large in iOS theme

largeMaterial

boolean

false

Makes stepper large in Material theme

outline

boolean

undefined

Makes stepper outline. Overwrites outlineIos and outlineMaterial

outlineIos

boolean

false

Makes stepper outline in iOS theme

outlineMaterial

boolean

false

Makes stepper outline in Material theme

raised

boolean

undefined

Makes stepper raised (with shadow). Overwrites raisedIos and raisedMaterial

raisedIos

boolean

false

Makes stepper raised (with shadow) in iOS theme

raisedMaterial

boolean

false

Makes stepper raised (with shadow) in Material theme

rounded

boolean

undefined

Makes stepper round. Overwrites roundedIos and roundedMaterial

roundedIos

boolean

false

Makes stepper round in iOS theme

roundedMaterial

boolean

false

Makes stepper round in Material theme

small

boolean

undefined

Makes stepper small. Overwrites smallIos and smallMaterial

smallIos

boolean

false

Makes stepper small in iOS theme

smallMaterial

boolean

false

Makes stepper small in Material theme

touchRipple

boolean

true

Enables touch ripple effect in Material theme

value

number

0

Stepper value

Stepper Events

Name
Type
Description

blur

function(e)

Stepper input blur handler

change

function(e)

Stepper input change handler

focus

function(e)

Stepper input focus handler

input

function(e)

Stepper input input handler

minus

function(e)

Stepper "minus" button click handler

plus

function(e)

Stepper "plus" button click handler

Examples

Last updated