Skip to content

Documentation of useBlockProps: Add examples and clarify some common use cases with its API #43281

@juanmaguitar

Description

@juanmaguitar

What problem does this address?

useBlockProps seems to be one of the most used hooks to create a block but its documentation is not clear and doesn't clarify the potential of this hook

What is your proposed solution?

Improve the documentation of this hook to clarify things such as passing a style object to the useBlockProps hook and some other use cases. Adding examples would clarify the type of things that can be done with this hook.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions