File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1524,6 +1524,11 @@ export declare const Pill: BoxComponent<PillOwnProps, 'strong'>
15241524
15251525export type PopoverStatelessProps = BoxProps < 'div' >
15261526
1527+ export type PopoverRef = {
1528+ open : ( ) => void
1529+ close : ( ) => void
1530+ }
1531+
15271532export interface PopoverProps {
15281533 /**
15291534 * The position the Popover is on. Smart positioning might override this.
@@ -1553,10 +1558,14 @@ export interface PopoverProps {
15531558 children :
15541559 | ( ( props : {
15551560 toggle : ( ) => void
1556- getRef : ( ref : React . RefObject < HTMLElement > ) => void
1561+ getRef : ( ref : React . RefObject < PopoverRef > ) => void
15571562 isShown : boolean
15581563 } ) => React . ReactNode )
15591564 | React . ReactNode
1565+ /**
1566+ * Pass a ref to Popover.
1567+ */
1568+ ref ?: React . RefObject < PopoverRef >
15601569 /**
15611570 * The display property passed to the Popover card.
15621571 */
@@ -1955,7 +1964,7 @@ export interface SelectMenuItem {
19551964
19561965export type SelectMenuPropsViewCallback = ( args : { close ( ) : void } ) => React . ReactNode
19571966
1958- export interface SelectMenuProps extends Omit < PopoverProps , 'position' | 'content' > {
1967+ export interface SelectMenuProps extends Omit < PopoverProps , 'position' | 'content' | 'ref' > {
19591968 /**
19601969 * The title of the Select Menu.
19611970 */
You can’t perform that action at this time.
0 commit comments