This commit is contained in:
Patrick Alvin Alcala 2025-11-26 10:56:07 +08:00
parent d61b8b7bd8
commit 46783c4f38
57 changed files with 4178 additions and 5992 deletions

View file

@ -0,0 +1,22 @@
import { createMemo, type JSXElement } from "solid-js";
import "../styles/Box.sass";
interface Props {
thickness: number;
color?: string;
children: JSXElement;
curved?: boolean;
}
export default (props: Props) => {
const boxClass = createMemo(() => (props.curved ? "curvedbox" : "box"));
return (
<section
class={boxClass()}
style={{ border: `${props.thickness}px solid ${props.color || "white"}` }}
>
{props.children}
</section>
);
};