Socket
Book a 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
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.