Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
input-material-ui
Advanced tools
Readme
A material-ui INPUT component which allows to see/hide the password text of the field and to clear the input value
You can access the storybook for this component here.
The component accepts the props defined bellow in the table.
Name | Type | Required | Default | Description |
---|---|---|---|---|
FormHelperTextProps | FormHelperTextProps | no | undefined | The props passed to helper text |
helperText | string | no | undefined | The helper text |
id | string | no | undefined | The id of the field |
InputLabelProps | InputLabelProps | no | undefined | The Props passed to label |
InputProps | InputProps | no | undefined | The props passed to input field |
label | string | yes | - | The label of the field |
onChange | (value: string) => void | yes | - | The callback function called when the value is changed |
placeholder | string | no | undefined | The placeholder of the field |
type | string | no | text | The type of the field; ex. text, password |
value | string | no | undefined | The value of the field |
InputMaterialUi uses | Material-ui | React |
---|---|---|
1.0.x | 3.2.0 | 16.5.2 |
1.1.x | 3.6.0 | 16.6.3 |
1.2.x | 3.9.2 | 16.8.1 |
1.3.x | 3.9.3 | 16.8.6 |
2.0.x | 4.0.2 | 16.8.6 |
2.1.x | 4.2.0 | 16.8.6 |
2.2.x | 4.3.2 | 16.9.0 |
2.3.x | 4.9.0 | 16.9.0 |
2.4.x | 4.9.7 | 16.9.0 |
2.5.x | 4.10.2 | 16.9.0 |
2.6.x | 4.11.0 | 16.9.0 |
2.7.x | 4.11.3 | 16.9.0 or 17.0.0 |
2.8.x | 4.11.3 | 16.9.0 or 17.0.0 |
2.9.x | 4.12.3 | 16.9.0 or 17.0.0 |
3.0.x | 5.10.17 | >=18.0.0 |
The base component which allows to create an input with a visible or masked input:
import * as React from 'react';
import InputMaterialUi from 'input-material-ui';
class App extends React.Component {
render() {
return (
<div className="App">
<InputMaterialUi
type="text"
label="Account"
placeholder="contains this text"
value={value}
onChange={onChange}
/>
</div>
);
}
handleChange = (event: any) => {
console.log(event);
};
}
export default App;
import * as React from 'react';
import InputMaterialUi from 'input-material-ui';
class App extends React.Component {
render() {
return (
<div className="App">
<InputMaterialUi type="password" label="Password" onChange={onChange} />
</div>
);
}
handleChange = (event: any) => {
console.log(event);
};
}
export default App;
FAQs
A material-ui INPUT component which allows to see/hide the password text of the field and to clear the input value
The npm package input-material-ui receives a total of 385 weekly downloads. As such, input-material-ui popularity was classified as not popular.
We found that input-material-ui 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.