Updated
This commit is contained in:
parent
d61b8b7bd8
commit
46783c4f38
57 changed files with 4178 additions and 5992 deletions
22
frontend/@dasig/components/Box.tsx
Normal file
22
frontend/@dasig/components/Box.tsx
Normal 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>
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue