
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
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 1 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.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.