Skip to content

Commit

Permalink
Block Editor: Fix README for FontFamilyControl component (WordPress#6…
Browse files Browse the repository at this point in the history
…5660)


Unlinked contributors: mr660.

Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
Mamaduka and Mamaduka authored Sep 26, 2024
1 parent 3b99bb6 commit 76448ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/block-editor/src/components/font-family/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# FontFamilyControl

<div class="callout callout-alert">
This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.
</div>

FontFamilyControl is a React component that renders a UI that allows users to select a font family.
The component renders a user interface that allows the user to select from a set of predefined font families as defined by the `typography.fontFamilies` presets.
Optionally, you can provide a `fontFamilies` prop that overrides the predefined font families.
Expand All @@ -10,7 +14,7 @@ Optionally, you can provide a `fontFamilies` prop that overrides the predefined

```jsx
import { useState } from 'react';
import { FontFamilyControl } from '@wordpress/block-editor';
import { __experimentalFontFamilyControl as FontFamilyControl } from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';

// ...
Expand Down

0 comments on commit 76448ee

Please sign in to comment.