input-material-ui
Advanced tools
Weekly downloads
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 381 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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.