I'm trying to identify where I could find this information but I've not been able til the present moment, to achieve it.
I've been looking in core/block-editor
and core/editor
. I've been researching in the data modules reference with no success.
Can someone point me to the right direction? I'll use it in the edit.js
of a block plugin as a starting value of a FontFamilyControl
component:
<FontFamilyControl>
value={ buttonFontFamily || fontFamily }
onChange={ ( newFontFamily ) => {
setAttributes({ buttonFontFamily: newFontFamily })
} }
</FontFamilyControl>