block-components
block-components copied to clipboard
Add "disabled" prop to ContentSearch
Is your enhancement related to a problem? Please describe.
I want to disable the ContentSearch for card items that are part of the query loop.
Example:
<ContentSearch
label={__('Select a Post or Page', 'project')}
contentTypes={['post']}
onSelectItem={(post) => setAttributes({ selectedPost: post })}
placeholder={__('Search for a post', 'project')}
disabled={context.queryId != null}
/>
Designs
Describe alternatives you've considered
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct