Magnified Docs
Mackbook toolbar like interactive tabs
Mackbook toolbar like interactive tabs
npm install framer-motion
Data of this Magnified Doc Component
1const apps = [2{3id: 'carousel',4icon: Icons.doc_icon5,5name: 'Carousel',6onClick: () =>7window.open(8'https://www.ui-layout.com/components/embla-carousel',9'_blank',10'noopener,noreferrer'11),12imgSrc:13'https://res.cloudinary.com/dzl9yxixg/image/upload/carousel_ymyqq4.svg',14},15{16id: 'tabs',17icon: Icons.doc_icon4,18name: 'Tabs',19onClick: () =>20window.open(21'https://www.ui-layout.com/components/tabs',22'_blank',23'noopener,noreferrer'24),25imgSrc: 'https://res.cloudinary.com/dzl9yxixg/image/upload/tabs_hgujxo.svg',26},27{28id: 'faqs',29icon: Icons.doc_star,30name: 'Faqs',31onClick: () =>32window.open(33'https://www.ui-layout.com/components/faqs',34'_blank',35'noopener,noreferrer'36),37imgSrc: 'https://res.cloudinary.com/dzl9yxixg/image/upload/faqs_qubbig.svg',38},39{40id: 'grid',41icon: Icons.doc_icon3,42name: 'Grid',43onClick: () =>44window.open(45'https://www.ui-layout.com/components/grid',46'_blank',47'noopener,noreferrer'48),49imgSrc: 'https://res.cloudinary.com/dzl9yxixg/image/upload/grid_rbis5c.svg',50},51{52id: 'masking',53icon: Icons.doc_circle,54name: 'Masking',55onClick: () =>56window.open(57'https://www.ui-layout.com/components/image-masking',58'_blank',59'noopener,noreferrer'60),61imgSrc:62'https://res.cloudinary.com/dzl9yxixg/image/upload/image_masking_kbdo7a.svg',63},64{65id: 'mouseTrail',66icon: Icons.doc_rectangle,67name: 'MouseTrail',68onClick: () =>69window.open(70'https://www.ui-layout.com/components/image-mousetrail',71'_blank',72'noopener,noreferrer'73),74imgSrc:75'https://res.cloudinary.com/dzl9yxixg/image/upload/image_mousetrail_jt45al.svg',76},77{78id: 'sticky',79icon: Icons.doc_icon2,80name: 'Sticky',81onClick: () =>82window.open(83'https://www.ui-layout.com/components/sticky-scroll',84'_blank',85'noopener,noreferrer'86),87imgSrc:88'https://res.cloudinary.com/dzl9yxixg/image/upload/sticky_xao8zr.svg',89},90{91id: 'accordion',92icon: Icons.doc_triangle,93name: 'Accordion',94onClick: () =>95window.open(96'https://www.ui-layout.com/components/image-accordions',97'_blank',98'noopener,noreferrer'99),100imgSrc:101'https://res.cloudinary.com/dzl9yxixg/image/upload/gallerynew_x3apwx.svg',102},103];
'use client'import { cn } from '@/lib/utils'import * as TooltipPrimitive from '@radix-ui/react-tooltip'import * as React from 'react'const TooltipProvider = TooltipPrimitive.Providerconst Tooltip = TooltipPrimitive.Rootconst TooltipTrigger = TooltipPrimitive.Triggerconst TooltipContent = React.forwardRef<React.ElementRef<typeof TooltipPrimitive.Content>,React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>>(({ className, sideOffset = 4, ...props }, ref) => (<TooltipPrimitive.Portal><TooltipPrimitive.Contentref={ref}sideOffset={sideOffset}className={cn('z-50 overflow-hidden rounded-lg border bg-background backdrop-filter dark:border-[#2C2C2C] backdrop-blur-lg dark:bg-[#1A1A1A]/95 px-4 py-3 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',className)}{...props}/></TooltipPrimitive.Portal>))TooltipContent.displayName = TooltipPrimitive.Content.displayNameexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }