Props

io.github.nafg.scalajs.facades.mui.base.NumberInput.Props
class Props extends PropTypes

Attributes

Graph
Supertypes
trait PropTypes
class Object
trait Matchable
class Any

Members list

Type members

Inherited classlikes

object dyn extends Dynamic

Attributes

Inherited from:
PropTypes
Supertypes
trait Dynamic
class Object
trait Matchable
class Any

Value members

Concrete methods

def defaultValue: Prop[Any]

The default value. Use when the component is not controlled.

The default value. Use when the component is not controlled.

Attributes

def disabled: Prop[Boolean]

If true, the component is disabled. The prop defaults to the value (false) inherited from the parent FormControl component.

If true, the component is disabled. The prop defaults to the value (false) inherited from the parent FormControl component.

Attributes

def endAdornment: Prop[VdomNode]

Trailing adornment for this input.

Trailing adornment for this input.

Attributes

def error: Prop[Boolean]

If true, the input will indicate an error by setting the aria-invalid attribute on the input and the Mui-error class on the root element.

If true, the input will indicate an error by setting the aria-invalid attribute on the input and the Mui-error class on the root element.

Attributes

def id: Prop[String]

The id of the input element.

The id of the input element.

Attributes

def max: Prop[Double]

The maximum value.

The maximum value.

Attributes

def min: Prop[Double]

The minimum value.

The minimum value.

Attributes

def onChange: Prop[Any => Any]

Callback fired after the value is clamped and changes - when the input is blurred or when the stepper buttons are triggered. Called with undefined when the value is unset.

Callback fired after the value is clamped and changes - when the input is blurred or when the stepper buttons are triggered. Called with undefined when the value is unset.

Value parameters

{React.FocusEvent<HTMLInputElement>|React.PointerEvent|React.KeyboardEvent}

event The event source of the callback

{number|undefined}

value The new value of the component

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def onInputChange: Prop[Any => Any]

Callback fired when the input value changes after each keypress, before clamping is applied. Note that event.target.value may contain values that fall outside of min and max or are otherwise "invalid".

Callback fired when the input value changes after each keypress, before clamping is applied. Note that event.target.value may contain values that fall outside of min and max or are otherwise "invalid".

Value parameters

{React.ChangeEvent<HTMLInputElement>}

event The event source of the callback.

Attributes

def readOnly: Prop[Boolean]

If true, the input element becomes read-only. The stepper buttons remain active, with the addition that they are now keyboard focusable.

If true, the input element becomes read-only. The stepper buttons remain active, with the addition that they are now keyboard focusable.

Attributes

def required: Prop[Boolean]

If true, the input element is required. The prop defaults to the value (false) inherited from the parent FormControl component.

If true, the input element is required. The prop defaults to the value (false) inherited from the parent FormControl component.

Attributes

def shiftMultiplier: Prop[Double]

Multiplier applied to step if the shift key is held while incrementing or decrementing the value. Defaults to 10.

Multiplier applied to step if the shift key is held while incrementing or decrementing the value. Defaults to 10.

Attributes

def slotProps: Prop[Object]

The props used for each slot inside the NumberInput.

The props used for each slot inside the NumberInput.

Attributes

def slots: Prop[Object]

The components used for each slot inside the InputBase. Either a string to use a HTML element or a component.

The components used for each slot inside the InputBase. Either a string to use a HTML element or a component.

Attributes

def startAdornment: Prop[VdomNode]

Leading adornment for this input.

Leading adornment for this input.

Attributes

def step: Prop[Double]

The amount that the value changes on each increment or decrement.

The amount that the value changes on each increment or decrement.

Attributes

def style: Prop[Object]
def value: Prop[Double]

The current value. Use when the component is controlled.

The current value. Use when the component is controlled.

Attributes

Inherited methods

def of[A : Writer](implicit evidence$1: Writer[A], name: Name): Prop[A]

Attributes

Inherited from:
PropTypes

Inherited fields

val key: Prop[Key]

Attributes

Inherited from:
PropTypes