- Added essential configuration files including components.json, package.json, and tsconfig.json to establish the component library structure. - Introduced global styles in globals.css and layout structure in layout.tsx for consistent design application. - Implemented various UI components such as Accordion, AlertDialog, Button, Card, and more, enhancing the component library for future development. - Included utility functions and hooks to support component functionality and responsiveness. This commit sets up the groundwork for a comprehensive UI component library, facilitating a modular and scalable design system.
29 lines
689 B
TypeScript
29 lines
689 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
export interface LiftCardProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
|
|
const LiftCard = React.forwardRef<HTMLDivElement, LiftCardProps>(({ className, children, ...props }, ref) => {
|
|
return (
|
|
<div
|
|
ref={ref}
|
|
className={cn(
|
|
"p-6 bg-white rounded-[12px]",
|
|
"shadow-[var(--shadow-subtle)]",
|
|
"transition-all duration-300 ease-out",
|
|
"hover:-translate-y-1 hover:shadow-[var(--shadow-bloom)]",
|
|
"cursor-default",
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
})
|
|
LiftCard.displayName = "LiftCard"
|
|
|
|
export { LiftCard }
|