diff --git a/packages/ibm-products/src/components/APIKeyModal/APIKeyModal.types.ts b/packages/ibm-products/src/components/APIKeyModal/APIKeyModal.types.ts index 47f373ffa4..61b9a60d4b 100644 --- a/packages/ibm-products/src/components/APIKeyModal/APIKeyModal.types.ts +++ b/packages/ibm-products/src/components/APIKeyModal/APIKeyModal.types.ts @@ -146,7 +146,7 @@ interface APIKeyModalCommonProps { /** * The DOM node the tearsheet should be rendered within. Defaults to document.body. */ - portalTarget: ReactNode; + portalTarget?: ReactNode; /** * label text that's displayed when hovering over visibility toggler to show key */ diff --git a/packages/ibm-products/src/components/Tearsheet/Tearsheet.tsx b/packages/ibm-products/src/components/Tearsheet/Tearsheet.tsx index 6e83d26750..1edf86e6f9 100644 --- a/packages/ibm-products/src/components/Tearsheet/Tearsheet.tsx +++ b/packages/ibm-products/src/components/Tearsheet/Tearsheet.tsx @@ -59,7 +59,7 @@ export interface TearsheetProps extends PropsWithChildren { * * See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api */ - actions: ButtonProps[]; + actions: ButtonProps<'button'>[]; /** * The aria-label for the tearsheet, which is optional. @@ -133,7 +133,7 @@ export interface TearsheetProps extends PropsWithChildren { /** * The DOM element that the tearsheet should be rendered within. Defaults to document.body. */ - portalTarget: ReactNode; + portalTarget?: ReactNode; /** * Specify a CSS selector that matches the DOM element that should be