- Implemented Tooltip component using Radix UI for better accessibility and customization. - Created TooltipProvider, TooltipTrigger, and TooltipContent for modular usage. - Added useIsMobile hook to detect mobile devices based on screen width. - Updated themes with new color variables for better design consistency across the application.
12 lines
280 B
TypeScript
12 lines
280 B
TypeScript
"use client"
|
|
|
|
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"
|
|
|
|
function AspectRatio({
|
|
...props
|
|
}: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {
|
|
return <AspectRatioPrimitive.Root data-slot="aspect-ratio" {...props} />
|
|
}
|
|
|
|
export { AspectRatio }
|