Skip to content

Commit

Permalink
proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Feb 24, 2025
1 parent 8417ee0 commit 0d2c82f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/reference/generated/popover-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@
"type": "(open, event, reason) => void",
"description": "Event handler called when the popover is opened or closed."
},
"action": {
"actionsRef": {
"type": "{ current: { unmount: func } }",
"description": "A ref to imperative actions."
},
"modal": {
"type": "boolean",
"default": "false",
"description": "Whether the popover should prevent outside clicks and lock page scroll when open."
},
"onOpenChangeComplete": {
"type": "(open) => void",
"description": "Event handler called after any animations complete when the popover is opened or closed."
Expand Down
7 changes: 6 additions & 1 deletion packages/react/src/popover/root/PopoverRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ PopoverRoot.propTypes /* remove-proptypes */ = {
/**
* A ref to imperative actions.
*/
action: PropTypes.shape({
actionsRef: PropTypes.shape({
current: PropTypes.shape({
unmount: PropTypes.func.isRequired,
}).isRequired,
Expand Down Expand Up @@ -104,6 +104,11 @@ PopoverRoot.propTypes /* remove-proptypes */ = {
* @default 300
*/
delay: PropTypes.number,
/**
* Whether the popover should prevent outside clicks and lock page scroll when open.
* @default false
*/
modal: PropTypes.bool,
/**
* Event handler called when the popover is opened or closed.
*/
Expand Down

0 comments on commit 0d2c82f

Please sign in to comment.