Skip to content

Commit

Permalink
Remove private API access from Theme inline example
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Aug 4, 2023
1 parent c2dbd87 commit 87e9815
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/components/src/theme/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ import { useCx } from '../utils';
*
* @example
* ```jsx
* import { privateApis as componentsPrivateApis } from '@wordpress/components';
* import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
*
* const { lock, unlock } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
* 'I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.',
* '@wordpress/components'
* );
*
* const { Theme } = unlock( componentsPrivateApis );
*
* const Example = () => {
* return (
* <Theme accent="red">
Expand Down

0 comments on commit 87e9815

Please sign in to comment.