mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
panel component
This commit is contained in:
1 parent
466db5454f
commit
90db3c4b3e
1 file changed
+18
@@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
import { motion } from "framer-motion";
|
||||
import { panel } from "data/animation";
|
||||
|
||||
interface PanelProps {
|
||||
children: React.ReactNode;
|
||||
padding?: boolean;
|
||||
}
|
||||
|
||||
export default function Panel(props: PanelProps) {
|
||||
return (
|
||||
<motion.div className="container-panel" variants={panel}>
|
||||
<div className={`panel ${props.padding ? "p-3 py-4 p-md-4" : ""}`}>
|
||||
{props.children}
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user