Skip to content

Commit

Permalink
Docs: Fixed sample code for InputControl
Browse files Browse the repository at this point in the history
  • Loading branch information
flexseth committed Mar 6, 2024
1 parent 69fbbfd commit d03908b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/components/CHANGELOG.md
Expand Up @@ -3,7 +3,7 @@
## Unreleased

### Bug Fix

- `InputControl`: Fix sample code on InputControl docs [#59517](https://github.com/WordPress/gutenberg/pull/59517)
- `Tooltip`: Explicitly set system font to avoid CSS bleed ([#59307](https://github.com/WordPress/gutenberg/pull/59307)).
- `HStack`, `VStack`: Stop passing invalid props to underlying element ([#59416](https://github.com/WordPress/gutenberg/pull/59416)).
- `Button`: Fix focus outline in disabled primary variant ([#59391](https://github.com/WordPress/gutenberg/pull/59391)).
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/input-control/README.md
Expand Up @@ -10,7 +10,7 @@ InputControl components let users enter and edit text. This is an experimental c

```js
import { __experimentalInputControl as InputControl } from '@wordpress/components';
import { useState } from '@wordpress/compose';
import { useState } from 'react';

const Example = () => {
const [ value, setValue ] = useState( '' );
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/input-control/index.tsx
Expand Up @@ -126,7 +126,7 @@ export function UnforwardedInputControl(
*
* ```jsx
* import { __experimentalInputControl as InputControl } from '@wordpress/components';
* import { useState } from '@wordpress/compose';
* import { useState } from '@wordpress/element';
*
* const Example = () => {
* const [ value, setValue ] = useState( '' );
Expand Down
Expand Up @@ -10,7 +10,7 @@ However, instead of opening up the selection in a modal, the selection opens up
* WordPress dependencies
*/
import { BottomSheetSelectControl } from '@wordpress/components';
import { useState } from '@wordpress/compose';
import { useState } from 'react';

const options = [
{
Expand Down

0 comments on commit d03908b

Please sign in to comment.