Props

io.github.nafg.scalajs.facades.mui.SwitchBase.Props
class Props extends PropTypes

Attributes

Graph
Supertypes
trait PropTypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

object edge extends Prop[Any]

If given, uses a negative margin to counteract the padding on one side (this is often helpful for aligning the left or right side of the icon with content above or below, without ruining the border size and shape).

If given, uses a negative margin to counteract the padding on one side (this is often helpful for aligning the left or right side of the icon with content above or below, without ruining the border size and shape).

Attributes

Supertypes
class Prop[Any]
class Object
trait Matchable
class Any
Self type
edge.type

Inherited classlikes

object dyn extends Dynamic

Attributes

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

Value members

Concrete methods

def `type`: Prop[String]

The input component prop type.

The input component prop type.

Attributes

def autoFocus: Prop[Boolean]

If true, the input element is focused during the first mount.

If true, the input element is focused during the first mount.

Attributes

def checked: Prop[Boolean]

If true, the component is checked.

If true, the component is checked.

Attributes

def checkedIcon: Prop[VdomNode]

The icon to display when the component is checked.

The icon to display when the component is checked.

Attributes

def classes: Prop[Object]

Override or extend the styles applied to the component. See CSS API below for more details.

Override or extend the styles applied to the component. See CSS API below for more details.

Attributes

def disableFocusRipple: Prop[Boolean]

If true, the keyboard focus ripple is disabled.

If true, the keyboard focus ripple is disabled.

Attributes

def disabled: Prop[Boolean]

If true, the component is disabled.

If true, the component is disabled.

Attributes

def icon: Prop[VdomNode]

The icon to display when the component is unchecked.

The icon to display when the component is unchecked.

Attributes

def id: Prop[String]

The id of the input element.

The id of the input element.

Attributes

def inputProps: Prop[Object]

Attributes applied to the input element.

Attributes applied to the input element.

Attributes

def inputRef: Prop[Any]

Pass a ref to the input element.

Pass a ref to the input element.

Attributes

def name: Prop[String]
def onChange: Prop[Any => Any]

Callback fired when the state is changed.

Callback fired when the state is changed.

Value parameters

{object}

event The event source of the callback. You can pull out the new checked state by accessing event.target.checked (boolean).

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def readOnly: Prop[Boolean]

It prevents the user from changing the value of the field (not from interacting with the field).

It prevents the user from changing the value of the field (not from interacting with the field).

Attributes

def required: Prop[Boolean]

If true, the input element is required.

If true, the input element is required.

Attributes

def style: Prop[Object]
def sx: Prop[Object]

The system prop that allows defining system overrides as well as additional CSS styles.

The system prop that allows defining system overrides as well as additional CSS styles.

Attributes

def value: Prop[Any]

The value of the component.

The value of the component.

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