TextField

io.github.nafg.scalajs.facades.mui.TextField
object TextField extends Simple

View original docs online: https://mui.com/api/text-field/

The TextField is a convenience wrapper for the most common cases (80%). It cannot be all things to all people, otherwise the API would grow out of control.

Advanced Configuration

It's important to understand that the text field is a simple abstraction on top of the following components:

If you wish to alter the props applied to the input element, you can do so as follows:

const inputProps = {
 step: 300,
};

return <TextField id="time" type="time" inputProps={inputProps} />;

For advanced cases, please look at the source of TextField by clicking on the "Edit this page" button above. Consider either:

  • using the upper case props for passing values directly to the components
  • using the underlying components directly as shown in the demos

Attributes

Graph
Supertypes
trait Simple
trait NodeChildren
trait FacadeModule
trait FacadeModuleBase
class Object
trait Matchable
class Any
Show all
Self type
TextField.type

Members list

Type members

Classlikes

class Props extends WithChildren[VdomNode]

Attributes

Supertypes
trait WithChildren[VdomNode]
trait PropTypes
class Object
trait Matchable
class Any
object raw extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
raw.type

Inherited classlikes

class ApplyChildren(settings: Setting*)

Attributes

Inherited from:
NodeChildren
Supertypes
class Object
trait Matchable
class Any
object ApplyChildren

Attributes

Inherited from:
NodeChildren
Supertypes
class Object
trait Matchable
class Any

Inherited types

type Setting = () => Props

Attributes

Inherited from:
FacadeModule

Value members

Concrete methods

def asElementType: ElementType
override def mkProps: Props

Attributes

Definition Classes
FacadeModule

Inherited methods

def Settings(settings: Setting*): Seq[Setting]

Attributes

Inherited from:
FacadeModule
def apply(settings: Setting*): ApplyChildren

Attributes

Inherited from:
Simple
def childrenToNode(children: Seq[VdomNode]): VdomNode

Attributes

Inherited from:
NodeChildren
def factory: Factory[Props]

Attributes

Inherited from:
FacadeModule

Inherited fields

lazy val facade: Facade

Attributes

Inherited from:
FacadeModuleBase