Add divProps to enable onClick

This commit is contained in:
abefernan
2023-05-25 13:15:51 +02:00
parent f03fa3c484
commit 98f53208ba
+2 -3
View File
@@ -1,5 +1,3 @@
import React from "react";
interface Props {
base?: boolean;
children: React.ReactNode;
@@ -7,10 +5,11 @@ interface Props {
lessMargin?: boolean;
lessRadius?: boolean;
fullHeight?: boolean;
divProps?: React.HTMLAttributes<HTMLDivElement>;
}
const StackableContainer = (props: Props) => (
<div className={`container ${props.base ? "base" : ""}`}>
<div className={`container ${props.base ? "base" : ""}`} {...props.divProps}>
{props.children}
<style jsx>{`