-
- setIsPlainChecked(checked)}
- />
-
-
-
- );
-};
+```ts file="./TextInputReadOnly.tsx"
```
### Invalid
-```js
-import React from 'react';
-import { TextInput, ValidatedOptions } from '@patternfly/react-core';
-
-class InvalidTextInput extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- value: ''
- };
- this.handleInvalidTextInputChange = value => {
- this.setState({ value });
- };
- }
-
- render() {
- const { value } = this.state;
-
- return (
-