Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

values for source #111

Open
gayratv opened this issue Mar 18, 2020 · 1 comment
Open

values for source #111

gayratv opened this issue Mar 18, 2020 · 1 comment

Comments

@gayratv
Copy link

gayratv commented Mar 18, 2020

Documentation describe values for source key of attributes object:
https://developer.wordpress.org/block-editor/developers/block-api/block-attributes/

But source: 'children' is not described.

Where I can read about 'children' value ?

@salcode
Copy link
Contributor

salcode commented Mar 28, 2022

children is a ReactJS prop that every component receives. It contains any values "inside" that component.

e.g. If you are using JSX that looks something like

<MyComponent>
  <h2>My Title</h2>
  <p>My paragraph</p>
</MyComponent>

MyComponent will receive a children prop that contains the h2 and p tags with their content.

Further Reading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants