Files
HiveGrid-Wireframes/hivegrid-cloud/apps/web/app/components/ui/skeleton.tsx
T

15 lines
690 B
TypeScript

import * as React from "react"
import { SkeletonText as SubframeSkeletonText } from "~/ui/components/SkeletonText"
// Subframe migration (strangler shim):
// Keeps the original shadcn generic `Skeleton` API (a class-sized animated box) but renders
// the Subframe design-system `SkeletonText` behind it. Callers size the skeleton entirely via
// `className`, which is forwarded unchanged, so arbitrary shapes/sizes keep working. The public
// API (single `Skeleton` export taking native div props + className) is unchanged.
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return <SubframeSkeletonText className={className} {...props} />
}
export { Skeleton }