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:
|
||||
* Skeleton Text — https://app.subframe.com/f023064a5ca0/library?component=Skeleton+Text_a9aae3f0-955e-4607-a272-374f1dc18f4b
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import * as SubframeCore from "@subframe/core";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
export interface SkeletonTextRootProps
|
||||
extends React.ComponentProps<typeof SubframeCore.Skeleton> {
|
||||
size?: "default" | "label" | "subheader" | "section-header" | "header";
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const SkeletonTextRoot = React.forwardRef<
|
||||
React.ElementRef<typeof SubframeCore.Skeleton>,
|
||||
SkeletonTextRootProps
|
||||
>(function SkeletonTextRoot(
|
||||
{ size = "default", className, ...otherProps }: SkeletonTextRootProps,
|
||||
ref
|
||||
) {
|
||||
return (
|
||||
<SubframeCore.Skeleton
|
||||
className={SubframeUtils.twClassNames(
|
||||
"group/a9aae3f0 flex h-5 w-full flex-col items-start gap-2 rounded-md bg-[#e5e5e5]",
|
||||
{
|
||||
"h-10": size === "header",
|
||||
"h-9": size === "section-header",
|
||||
"h-7": size === "subheader",
|
||||
"h-4": size === "label",
|
||||
},
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
{...otherProps}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
export const SkeletonText = SkeletonTextRoot;
|
||||
Reference in new issue
Block a user