🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

mtextfield_0098

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mtextfield_0098

A reusable Material-UI TextField component with react-hook-form integration and dynamic icons.

1.0.0
latest
npm
Version published
Maintainers
1
Created
Source

MTextField

A reusable Material-UI TextField component with react-hook-form integration and dynamic start/end icons.

Installation

npm install mtextfield

Make sure you have these peer dependencies installed in your project:

  • @mui/material
  • @mui/icons-material
  • react
  • react-dom
  • react-hook-form

Usage

import MTextField from "mtextfield";
import AccountCircle from "@mui/icons-material/AccountCircle";
import Visibility from "@mui/icons-material/Visibility";

<MTextField
  control={control}
  name="username"
  label="Username"
  required={true}
  StartIcon={<AccountCircle />}
  EndIcon={<Visibility />}
/>;
  • Use StartIcon and EndIcon to pass icons directly (no need to wrap in InputAdornment).
  • All other TextField props are supported.

FAQs

Package last updated on 20 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts