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,42 @@
|
||||
"use client";
|
||||
/*
|
||||
* Documentation:
|
||||
* Loader — https://app.subframe.com/f023064a5ca0/library?component=Loader_f2e570c8-e463-45c2-aae9-a960146bc5d5
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import * as SubframeCore from "@subframe/core";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
export interface LoaderRootProps
|
||||
extends React.ComponentProps<typeof SubframeCore.Loader> {
|
||||
size?: "small" | "medium" | "large";
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const LoaderRoot = React.forwardRef<
|
||||
React.ElementRef<typeof SubframeCore.Loader>,
|
||||
LoaderRootProps
|
||||
>(function LoaderRoot(
|
||||
{ size = "medium", className, ...otherProps }: LoaderRootProps,
|
||||
ref
|
||||
) {
|
||||
return (
|
||||
<SubframeCore.Loader
|
||||
className={SubframeUtils.twClassNames(
|
||||
"group/f2e570c8 font-['Inter'] text-[14px] font-[400] leading-[20px] text-[#2563eb]",
|
||||
{
|
||||
"font-['Inter'] text-[20px] font-[600] leading-[24px] tracking-normal":
|
||||
size === "large",
|
||||
"font-['Inter'] text-[12px] font-[400] leading-[16px] tracking-normal":
|
||||
size === "small",
|
||||
},
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
{...otherProps}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
export const Loader = LoaderRoot;
|
||||
@@ -0,0 +1,10 @@
|
||||
"use client";
|
||||
import { Loader as LoaderComponent } from "./Loader";
|
||||
|
||||
/**
|
||||
* Add wrapper components and business logic here.
|
||||
* If you modify this file, disable Subframe sync for it to prevent overwrites.
|
||||
* Learn more: https://docs.subframe.com/concepts/syncing-components#wrapping-components
|
||||
*/
|
||||
|
||||
export const Loader = LoaderComponent;
|
||||
Reference in new issue
Block a user