Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,41 @@
|
||||
import clsx from "clsx";
|
||||
|
||||
interface Props {
|
||||
title: React.ReactNode;
|
||||
description?: React.ReactNode;
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
size?: "xs" | "sm" | "md" | "lg";
|
||||
}
|
||||
export default function SettingSection({
|
||||
title,
|
||||
description,
|
||||
children,
|
||||
className = "border border-border-default dark:border-border-default/50 shadow-2xs px-4 py-5 bg-surface-neutral-primary sm:p-6 rounded-md",
|
||||
size = "md",
|
||||
}: Props) {
|
||||
return (
|
||||
<div
|
||||
className={clsx(
|
||||
size === "xs" && "md:grid md:gap-2 lg:grid-cols-1",
|
||||
size === "sm" && "md:grid md:gap-2 lg:grid-cols-2",
|
||||
size === "md" && "md:grid md:gap-2 lg:grid-cols-3",
|
||||
size === "lg" && "md:grid md:gap-2 lg:grid-cols-4"
|
||||
)}
|
||||
>
|
||||
<div className={clsx(size === "sm" && "md:col-span-1", size === "md" && "md:col-span-1", size === "lg" && "md:col-span-1")}>
|
||||
<div className="sm:px-0">
|
||||
<h3 className="text-text-neutral-primary text-lg font-medium leading-6">{title}</h3>
|
||||
<div className="text-text-neutral-tertiary mt-1 text-sm leading-5">{description}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={clsx("mt-5 md:mt-0", size === "sm" && "md:col-span-1", size === "md" && "md:col-span-2", size === "lg" && "md:col-span-3")}>
|
||||
<div>
|
||||
<div className="sm:rounded-sm">
|
||||
<div className={className}>{children}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user