diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 7bd9bbe2e5f5fe..69060a3dd867db 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Breaking Changes + +- `InputControl`: Narrow the TypeScript type of the `label` prop to plain strings ([#77860](https://github.com/WordPress/gutenberg/pull/77860)). + ### Bug Fixes - `Drawer`: Restore the slide-out animation when the popup closes ([#77800](https://github.com/WordPress/gutenberg/pull/77800)). diff --git a/packages/ui/src/form/types.ts b/packages/ui/src/form/types.ts index 3920a6088eb015..0d3963d2dcf3f4 100644 --- a/packages/ui/src/form/types.ts +++ b/packages/ui/src/form/types.ts @@ -4,7 +4,7 @@ export type ControlProps = { /** * The accessible label. All controls must be labeled. */ - label: React.ComponentProps< typeof Field.Label >[ 'children' ]; + label: string; /** * The accessible description, associated using `aria-describedby`. *