Skip to content

Commit

Permalink
Add import statements to code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Aug 9, 2024
1 parent 5c4b849 commit 4c1fab4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/src/composite/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ export const Composite = Object.assign(
*
* @example
* ```jsx
* import { Composite, useCompositeStore } from '@wordpress/components';
*
* const store = useCompositeStore();
* <Composite store={store}>
* <Composite.Hover render={ <Composite.Item /> }>
Expand All @@ -246,6 +248,8 @@ export const Composite = Object.assign(
*
* @example
* ```jsx
* import { Composite, useCompositeStore } from '@wordpress/components';
*
* const store = useCompositeStore();
* <Composite store={store} render={ <CompositeTypeahead /> }>
* <Composite.Item>Item 1</Composite.Item>
Expand Down

0 comments on commit 4c1fab4

Please sign in to comment.