Skip to content

Commit

Permalink
add resize none example
Browse files Browse the repository at this point in the history
  • Loading branch information
tlabaj committed Jan 13, 2025
1 parent e3d2e7d commit fb08b89
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ propComponents: ['TextArea']

```

### Not resizable

```ts file="./TextAreaResizableNone.tsx"

```

### Uncontrolled

```ts file="./TextAreaUncontrolled.tsx"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';
import { TextArea } from '@patternfly/react-core';

export const TextAreaResizeNone: React.FunctionComponent = () => {
const [value, setValue] = React.useState('');
return (
<TextArea
value={value}
onChange={(_event, value) => setValue(value)}
resizeOrientation="none"
aria-label="text area resize none example"
/>
);
};

0 comments on commit fb08b89

Please sign in to comment.