block-components
block-components copied to clipboard
A collection of components built to be used in the block editor
I just stumbled across the fact that core has a `Draggable` component. It would be great to not have to include / bundle all of DND-Kit in the block components...
prop types / `defaultProps` were deprecated all the way in 2017 and are now getting removed in React 19. WordPress will likely update it's React version relatively soon after the...
### Describe your question Hello! Im using your "Image" component for my block creations which is working so good! Now I'm having a small issue, related to @emotion/react dependecy that...
A while ago we've started converting the codebase to using TypeScript #267 Now we actually need to convert the existing components to using it. ```[tasklist] ### API's - [ ]...
### Is your enhancement related to a problem? Please describe. Currently, the `Image` component does not change state when an image is uploading. So if you upload a large image,...
It would be great to figure out a way to make the individual components in this package tree shakable. Right now the entire code is being imported when you import...
### Is your enhancement related to a problem? Please describe. I would like to update the Media Upload label via props, currently its just 'Add Image' - https://github.com/10up/block-components/blob/3f113d3d8de843f0cbe0f32cd34764d78486fcc5/components/media-toolbar/index.js#L45 ### Designs...
### Is your enhancement related to a problem? Please describe. Use case: I want to use the `MediaToolbar` with the `Video` component introduced in https://github.com/10up/block-components/pull/225, but the labels on this...
We have identified that some components are creating unexpected results for users with lower privileges such as `author`. Therefore we should perform an audit and ideally run tests for the...
### Description of the Change Adds a `Video` component to match [`Image`](), and a `VideoControl` component to simplify uploading and other aspects of the video. Adds **incomplete** documentation for the...