diff --git a/.changeset/sixty-trains-flow.md b/.changeset/sixty-trains-flow.md new file mode 100644 index 00000000000..7194e0c473b --- /dev/null +++ b/.changeset/sixty-trains-flow.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +AnchoredOverlay: Add 'className' prop to the component \ No newline at end of file diff --git a/packages/react/src/AnchoredOverlay/AnchoredOverlay.tsx b/packages/react/src/AnchoredOverlay/AnchoredOverlay.tsx index f7d60df9d6b..88260c2c8a2 100644 --- a/packages/react/src/AnchoredOverlay/AnchoredOverlay.tsx +++ b/packages/react/src/AnchoredOverlay/AnchoredOverlay.tsx @@ -79,6 +79,11 @@ interface AnchoredOverlayBaseProps extends Pick + + /** + * Optional className to be added to the overlay component. + */ + className?: string } export type AnchoredOverlayProps = AnchoredOverlayBaseProps & @@ -106,6 +111,7 @@ export const AnchoredOverlay: React.FC { const anchorRef = useProvidedRefOrCreate(externalAnchorRef) const [overlayRef, updateOverlayRef] = useRenderForcingRef() @@ -191,6 +197,7 @@ export const AnchoredOverlay: React.FC {children}