Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/apps/web/app/ui/components/SkeletonCircle/SkeletonCircle.tsx
T

38 lines
1.1 KiB
TypeScript

"use client";
/*
* Documentation:
* Skeleton Circle — https://app.subframe.com/f023064a5ca0/library?component=Skeleton+Circle_8b6e7a84-358f-4dc5-9de8-792a18fa9955
*/
import React from "react";
import * as SubframeCore from "@subframe/core";
import * as SubframeUtils from "../../utils";
export interface SkeletonCircleRootProps
extends React.ComponentProps<typeof SubframeCore.Skeleton> {
size?: "default" | "small" | "x-small";
className?: string;
}
const SkeletonCircleRoot = React.forwardRef<
React.ElementRef<typeof SubframeCore.Skeleton>,
SkeletonCircleRootProps
>(function SkeletonCircleRoot(
{ size = "default", className, ...otherProps }: SkeletonCircleRootProps,
ref
) {
return (
<SubframeCore.Skeleton
className={SubframeUtils.twClassNames(
"group/8b6e7a84 flex h-9 w-9 flex-col items-start gap-2 rounded-round bg-[#e5e5e5]",
{ "h-5 w-5": size === "x-small", "h-7 w-7": size === "small" },
className
)}
ref={ref}
{...otherProps}
/>
);
});
export const SkeletonCircle = SkeletonCircleRoot;