Skip to content

Commit

Permalink
docs: add missing Accordion and AccordionCollapse props (#6419)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Aug 2, 2022
1 parent e2c4eeb commit 5098ea0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ const propTypes = {
/** The default active key that is expanded on start */
defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),

/**
* Callback fired when the active item changes.
*
* ```js
* (eventKey: string | string[] | null, event: Object) => void
* ```
*
* @controllable activeIndex
*/
onSelect: PropTypes.func,

/** Renders accordion edge-to-edge with its parent container */
flush: PropTypes.bool,

Expand Down
3 changes: 3 additions & 0 deletions src/AccordionCollapse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const propTypes = {
children: PropTypes.element.isRequired,
};

/**
* This component accepts all of [`Collapse`'s props](/utilities/transitions/#collapse-props).
*/
const AccordionCollapse: BsPrefixRefForwardingComponent<
'div',
AccordionCollapseProps
Expand Down

0 comments on commit 5098ea0

Please sign in to comment.