Open mr660 opened 4 hours ago
Try using __experimentalFontFamilyControl
. The component is an experiment, and it's currently exported as one.
import { InspectorControls, __experimentalFontFamilyControl as FontFamilyControl } from '@wordpress/block-editor';
I'll create a PR to fix the examples in README docs.
Description
I'm creating custom block for rendering chart and i'm trying to create selector for font families for certain elements. I'm trying to follow [this] (https://github.com/WordPress/gutenberg/tree/trunk/packages/block-editor/src/components/font-family) readme with no success.
in edit.js file
I get error saying:
Step-by-step reproduction instructions
Environment info
Wordpress 6.6.2
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.