diff --git a/packages/ui/src/makerkit/card-button.tsx b/packages/ui/src/makerkit/card-button.tsx index 4baf1d8bd..92f85db74 100644 --- a/packages/ui/src/makerkit/card-button.tsx +++ b/packages/ui/src/makerkit/card-button.tsx @@ -30,14 +30,14 @@ export const CardButton = React.forwardRef< }); export const CardButtonTitle = React.forwardRef< - HTMLSpanElement, + HTMLDivElement, { className?: string; asChild?: boolean; children: React.ReactNode; } >(function CardButtonTitle({ className, asChild, ...props }, ref) { - const Comp = asChild ? Slot : 'span'; + const Comp = asChild ? Slot : 'div'; return ( (function CardButtonHeader({ className, ...props }, ref) { - return ( -
- {props.children} +>(function CardButtonHeader( + { className, asChild, displayArrow = true, ...props }, + ref, +) { + const Comp = asChild ? Slot : 'div'; - -
+ return ( + + + {props.children} + + + + ); });