File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1524,6 +1524,11 @@ export declare const Pill: BoxComponent<PillOwnProps, 'strong'>
1524
1524
1525
1525
export type PopoverStatelessProps = BoxProps < 'div' >
1526
1526
1527
+ export type PopoverRef = {
1528
+ open : ( ) => void
1529
+ close : ( ) => void
1530
+ }
1531
+
1527
1532
export interface PopoverProps {
1528
1533
/**
1529
1534
* The position the Popover is on. Smart positioning might override this.
@@ -1553,10 +1558,14 @@ export interface PopoverProps {
1553
1558
children :
1554
1559
| ( ( props : {
1555
1560
toggle : ( ) => void
1556
- getRef : ( ref : React . RefObject < HTMLElement > ) => void
1561
+ getRef : ( ref : React . RefObject < PopoverRef > ) => void
1557
1562
isShown : boolean
1558
1563
} ) => React . ReactNode )
1559
1564
| React . ReactNode
1565
+ /**
1566
+ * Pass a ref to Popover.
1567
+ */
1568
+ ref ?: React . RefObject < PopoverRef >
1560
1569
/**
1561
1570
* The display property passed to the Popover card.
1562
1571
*/
You can’t perform that action at this time.
0 commit comments