From 163508952198cb192e6c29340f863eb0d5a7e5cb Mon Sep 17 00:00:00 2001 From: Lokenath Karmakar Date: Wed, 8 May 2024 15:39:10 +0530 Subject: [PATCH] fix(button): typescript fix to allow as prop to accept react components --- src/Button.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Button.tsx b/src/Button.tsx index 8e1978337f..c3d478f6e3 100644 --- a/src/Button.tsx +++ b/src/Button.tsx @@ -9,9 +9,7 @@ import { useBootstrapPrefix } from './ThemeProvider'; import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers'; import { ButtonVariant } from './types'; -export interface ButtonProps - extends BaseButtonProps, - Omit { +export interface ButtonProps extends BsPrefixProps, BaseButtonProps { active?: boolean; variant?: ButtonVariant; size?: 'sm' | 'lg';