diff --git a/.changeset/thin-laws-beam.md b/.changeset/thin-laws-beam.md new file mode 100644 index 00000000000..abe28d68d61 --- /dev/null +++ b/.changeset/thin-laws-beam.md @@ -0,0 +1,7 @@ +--- +"@primer/react": patch +--- + +Expose `useSlots` from `drafts/hooks` + + diff --git a/src/__tests__/__snapshots__/exports.test.ts.snap b/src/__tests__/__snapshots__/exports.test.ts.snap index bd0c82eb2bf..fc308c494a7 100644 --- a/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/src/__tests__/__snapshots__/exports.test.ts.snap @@ -156,6 +156,7 @@ exports[`@primer/react/drafts should not update exports without a semver change "useDynamicTextareaHeight", "useIgnoreKeyboardActionsWhileComposing", "useSafeAsyncCallback", + "useSlots", "useSyntheticChange", ] `; diff --git a/src/drafts/hooks/index.ts b/src/drafts/hooks/index.ts index 2fca90697b1..4bf219f85e8 100644 --- a/src/drafts/hooks/index.ts +++ b/src/drafts/hooks/index.ts @@ -3,3 +3,4 @@ export * from './useDynamicTextareaHeight' export * from './useIgnoreKeyboardActionsWhileComposing' export * from './useSafeAsyncCallback' export * from './useSyntheticChange' +export * from '../../hooks/useSlots'