Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@kitsuyui/react-textfield
Advanced tools
Readme
This package provides a text field component for React.
It is very pure and similar with the default <input type="text">
element and <textarea>
element.
So you can pass the same props as those elements. (i.e. disabled
, placeholder
, maxLength
, minLength
, required
, pattern
, readOnly
, autoComplete
, autoFocus
, name
, id
, className
, style
, ..., etc.)
This means, you can use this component as a drop-in replacement for those elements.
The big difference is that this component how to handle the events.
In default browser elements (<input type="text">
and <textarea>
), the onChange
event is fired in every key press.
But when you are using IME or something special input method, the onChange
event is fired in every key press even if the input is not completed or text conversion is not completed. (e.g. Japanese IME, Chinese IME, espanso, etc.)
This component calls the onInput
handler (text: string) => void
only when the input is completed or text conversion is completed. (Internally, it uses CompositionEvent
to detect the completion of input or text conversion)
Warning: This component has no effect to prevent the re-rendering of parent component. This means, if this component is re-created by parent component, the input may lost text conversion state.
Storybook: https://react-playground.docs.kitsuyui.com/storybook/
npm install @kitsuyui/react-textfield
yarn add @kitsuyui/react-textfield
pnpm add @kitsuyui/react-textfield
MIT
FAQs
A component that wrapped HTMLInputElement
The npm package @kitsuyui/react-textfield receives a total of 5 weekly downloads. As such, @kitsuyui/react-textfield popularity was classified as not popular.
We found that @kitsuyui/react-textfield demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.