feat: Add possibility to add additional props for PanelSection (#5172)

This commit is contained in:
Celian-abd authored and GitHub committed 2025-07-02 22:52:49 -04:00
1 parent b0704b88cd
commit c112db13a8
1 file changed
+2 -1
@@ -28,13 +28,14 @@ interface PanelSectionContentProps {
export const PanelSection: React.FC<PanelSectionProps> & {
Header: React.FC<PanelSectionHeaderProps>;
Content: React.FC<PanelSectionContentProps>;
} = ({ children, defaultOpen = true, className }) => {
} = ({ children, defaultOpen = true, className, ...props }) => {
return (
<Accordion
type="single"
collapsible
defaultValue={defaultOpen ? 'item' : undefined}
className={cn('flex-shrink-0 overflow-hidden', className)}
{...props}
>
<AccordionItem
value="item"