Skip to content

Commit

Permalink
chore(TextInputGroup): allow input in basic example
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrances17 committed Sep 25, 2023
1 parent 7d52ed0 commit 01f0df4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import React from 'react';
import { TextInputGroup, TextInputGroupMain } from '@patternfly/react-core';

export const TextInputGroupBasic: React.FunctionComponent = () => (
<TextInputGroup>
<TextInputGroupMain />
</TextInputGroup>
);
export const TextInputGroupBasic: React.FunctionComponent = () => {
const [value, setValue] = React.useState('');
return (
<TextInputGroup>
<TextInputGroupMain value={value} onChange={(_event, value) => setValue(value)} />
</TextInputGroup>
);
};
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3778,10 +3778,10 @@
node-addon-api "^3.2.1"
node-gyp-build "^4.3.0"

"@patternfly/ast-helpers@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.0.tgz#43d0b440803ac35005a4776e0149510b9dca6aa6"
integrity sha512-e/yELmpUtY7rSMjl96roC0fmr8EIp8Q8ZxfBObK+FV4o5e7G3/Q4GKikx3Pdmtw3o+RB5bfXZrOH9p2wWvRkbQ==
"@patternfly/ast-helpers@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@patternfly/ast-helpers/-/ast-helpers-1.2.1.tgz#8230731c9f6fd43b9ed1ac03ddfe9b46ad3efe0e"
integrity sha512-oVNvtCXjlntsXC0HQeGN+43s/+Nk3nFcQXkIAKLF8xAfBBkTSelnDZNdkFv//c5QFPXPmzTDwe6YsYQ1Hzb+VQ==
dependencies:
acorn "^8.4.1"
acorn-class-fields "^1.0.0"
Expand All @@ -3790,9 +3790,9 @@
astring "^1.7.5"

"@patternfly/documentation-framework@^5.0.15":
version "5.2.0"
resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.0.tgz#e7e73e8db78d3ed055008c89a97f3684aada2292"
integrity sha512-LfAQWExpVfXWE336AHpnohUcFq9F20Hcs/ke+o0dsYq8XcSwJnSE/Sp20G9t59MgSAG4YA9DzjfdZMv5Q8dTcw==
version "5.2.1"
resolved "https://registry.yarnpkg.com/@patternfly/documentation-framework/-/documentation-framework-5.2.1.tgz#6ef487915af7ba4a86908724f6e5903d96129156"
integrity sha512-68fJslo04t1G6sMKgDC4TlPHTlRK1Oju382LDe7Q9dnvdH/DOkUg5DbW3JWYKZ+g6nlV2pGZHS/gtHoHOQXpDg==
dependencies:
"@babel/core" "7.18.2"
"@babel/plugin-proposal-class-properties" "7.17.12"
Expand All @@ -3802,7 +3802,7 @@
"@babel/plugin-transform-react-jsx" "7.17.12"
"@babel/preset-env" "7.18.2"
"@mdx-js/util" "1.6.16"
"@patternfly/ast-helpers" "^1.2.0"
"@patternfly/ast-helpers" "^1.2.1"
"@reach/router" "npm:@gatsbyjs/reach-router@1.3.9"
autoprefixer "9.8.6"
babel-loader "9.1.2"
Expand Down

0 comments on commit 01f0df4

Please sign in to comment.