input booleans

This commit is contained in:
Ari Sosnovsky committed 2021-11-02 21:45:15 -04:00
1 parent 70eba32b34
commit 126f1df657
7 files changed
+166 -5

No files matched your search

+4 -3
View File
@@ -1,11 +1,12 @@
import { PropsWithChildren } from "react";
import { CSSProperties, PropsWithChildren } from "react";
export interface Props {
label: string;
style?: CSSProperties;
}
export default function InputWrapper({label, children}: PropsWithChildren<Props>) {
return <div className="input-wrapper">
export default function InputWrapper({label, children, style={}}: PropsWithChildren<Props>) {
return <div className="input-wrapper" style={style}>
<label>{label}</label>
{children}
</div>