
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
react-time-textfield
Advanced tools
Material UI TextField with controlled hour/minute/meridiem input
A controlled Material-UI TextField for keyboard time input.
npm install react-time-textfield
or yarn add react-time-textfield
.import { ReactTimeTextField } from 'react-time-textfield'
.<ReactTimeTextField />
. Assign callback to onBlur
prop to receive new value.Add React-Time-TextField to your project by executing npm install react-time-textfield
or yarn add react-time-textfield
.
Here is an example of basic usage:
import React, { useState } from 'react';
import { ReactTimeTextField } from 'react-time-textfield';
function MyApp() {
const [value, setValue] = useState(new Date());
return (
<ReactTimeTextField
value={value}
label='Start Time'
onBlur={setValue}
/>
);
}
ReactTimeTextField uses Material-UI TextField. Just pass any styling-related props that the Mui TextField component uses and they will be applied:
<ReactTimeTextField
value={value}
label='Start Time'
onBlur={setValue}
size='large'
styles={{ width: '100px', height: '60px' }}
/>
NOTE: onChange, onKeyDown, and onClick props are used internally and are not available. Use onBlur callback to receive date object with specified time value.
The MIT License.
FAQs
Material UI TextField with controlled hour/minute/meridiem input
The npm package react-time-textfield receives a total of 12 weekly downloads. As such, react-time-textfield popularity was classified as not popular.
We found that react-time-textfield demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.