Props

io.github.nafg.scalajs.facades.mui.FormControl.Props
class Props extends WithChildren[VdomNode]

Attributes

Graph
Supertypes
trait WithChildren[VdomNode]
trait PropTypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

object color extends Prop[String]

The color of the component. It supports both default and custom theme colors, which can be added as shown in the palette customization guide.

The color of the component. It supports both default and custom theme colors, which can be added as shown in the palette customization guide.

Attributes

Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
color.type
object margin extends Prop[String]

If dense or normal, will adjust vertical spacing of this and contained components.

If dense or normal, will adjust vertical spacing of this and contained components.

Attributes

Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
margin.type
object size extends Prop[String]

The size of the component.

The size of the component.

Attributes

Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
size.type
object variant extends Prop[String]

The variant to use.

The variant to use.

Attributes

Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
variant.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 children: Prop[VdomNode]

The content of the component.

The content of the component.

Attributes

def classes: Prop[Object]

Override or extend the styles applied to the component.

Override or extend the styles applied to the component.

Attributes

def component: Prop[ElementType]

The component used for the root node. Either a string to use a HTML element or a component.

The component used for the root node. Either a string to use a HTML element or a component.

Attributes

def disabled: Prop[Boolean]

If true, the label, input and helper text should be displayed in a disabled state.

If true, the label, input and helper text should be displayed in a disabled state.

Attributes

def error: Prop[Boolean]

If true, the label is displayed in an error state.

If true, the label is displayed in an error state.

Attributes

def focused: Prop[Boolean]

If true, the component is displayed in focused state.

If true, the component is displayed in focused state.

Attributes

def fullWidth: Prop[Boolean]

If true, the component will take up the full width of its container.

If true, the component will take up the full width of its container.

Attributes

def hiddenLabel: Prop[Boolean]

If true, the label is hidden. This is used to increase density for a FilledInput. Be sure to add aria-label to the input element.

If true, the label is hidden. This is used to increase density for a FilledInput. Be sure to add aria-label to the input element.

Attributes

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

If true, the label will indicate that the input is required.

If true, the label will indicate that the input is required.

Attributes

def style: Prop[Object]
def sx: Prop[Seq[Any => Any | Object | Boolean] | Any => Any | 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

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