Skip to content

Commit

Permalink
feat: adds proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMelox committed Sep 3, 2024
1 parent 1d2dbfd commit 62d7269
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ibm-products/src/components/ActionBar/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@ ActionBar.propTypes = {
* overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
*/
overflowAriaLabel: PropTypes.string.isRequired,
/**
* overflowMenuRef for the overflow menu width that is needed to calculate the width of the action bar with overflow
*/
/**@ts-ignore */
overflowMenuRef: PropTypes.shape({ current: PropTypes.elementType })
.isRequired,
/**
* align tags to right of available space
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,19 @@ ActionBarOverflowItems.propTypes = {
* overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
*/
overflowAriaLabel: PropTypes.string,

/**
* overflowItems: items to bre shown in the ActionBar overflow menu
*/
overflowItems: PropTypes.arrayOf(PropTypes.element),

/**
* overflowMenuRef for the overflow menu width that is needed to calculate the width of the action bar with overflow
*/
/**@ts-ignore */
overflowMenuRef: PropTypes.shape({ current: PropTypes.elementType })
.isRequired,

/**
* Optional tab index
*/
Expand Down

0 comments on commit 62d7269

Please sign in to comment.