Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
+37
@@ -0,0 +1,37 @@
|
||||
"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;
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
"use client";
|
||||
import { SkeletonCircle as SkeletonCircleComponent } from "./SkeletonCircle";
|
||||
|
||||
/**
|
||||
* 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 SkeletonCircle = SkeletonCircleComponent;
|
||||
Reference in new issue
Block a user