Skip to content

Commit

Permalink
Type Component prop as React.ElementType
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Mar 1, 2023
1 parent fa0da2f commit 7348279
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/components/src/autocomplete/autocompleter-ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ export function getAutoCompleterUI( autocompleter: WPCompleter ) {
return null;
}

const ListBox = ( { Component = 'div' } ) => (
const ListBox = ( {
Component = 'div',
}: {
Component?: React.ElementType;
} ) => (
<Component
id={ listBoxId }
role="listbox"
Expand Down

0 comments on commit 7348279

Please sign in to comment.