@codecademy/gamut

73.6.173.6.2-alpha.3e37cd.0
dist/Disclosure/index.js
~dist/Disclosure/index.jsModified
+5−1
Index: package/dist/Disclosure/index.js
===================================================================
--- package/dist/Disclosure/index.js
+++ package/dist/Disclosure/index.js
@@ -7,8 +7,9 @@
 import { DisclosureWrapper } from './elements';
 import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
 export const Disclosure = ({
   body,
+  buttonProps,
   buttonType: button,
   buttonPlacement,
   ctaCallback,
   ctaText,
@@ -23,18 +24,21 @@
   hasBorder = true,
   hasPanelBg,
   spacing = 'normal',
   subheading,
-  variant
+  variant,
+  ...rest
 }) => {
   const [isExpanded, setIsExpanded] = useState(initiallyExpanded);
   return /*#__PURE__*/_jsxs(DisclosureWrapper, {
+    ...rest,
     as: isListItem ? 'li' : undefined,
     column: true,
     hasBorder: hasBorder,
     variant: variant,
     onClick: () => onClick?.(),
     children: [/*#__PURE__*/_jsx(DisclosureButton, {
+      buttonProps: buttonProps,
       disabled: disabled,
       heading: heading,
       headingLevel: headingLevel,
       isExpanded: isExpanded,