return <TestComponent/>;
return <TestComponent/>;
return (
<div className="p-4">
{/* Trigger Button */}
<AlertDialog>
<AlertDialogTrigger asChild>
<button className="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">
Open Alert Dialog
</button>
</AlertDialogTrigger>
{/* Alert Dialog Content */}
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Are you sure?</AlertDialogTitle>
<AlertDialogDescription>
This action cannot be undone. This will permanently delete your
data.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction>Confirm</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
</div>
);
return (
<div className="p-4">
{/* Trigger Button */}
<AlertDialog>
<AlertDialogTrigger asChild>
<button className="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">
Open Alert Dialog
</button>
</AlertDialogTrigger>
{/* Alert Dialog Content */}
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Are you sure?</AlertDialogTitle>
<AlertDialogDescription>
This action cannot be undone. This will permanently delete your
data.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction>Confirm</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
</div>
);
return (
<Breadcrumb>
<BreadcrumbList>
{/* First breadcrumb item */}
<BreadcrumbItem>
<BreadcrumbLink href="/">Home</BreadcrumbLink>
<BreadcrumbSeparator />
</BreadcrumbItem>
{/* Second breadcrumb item */}
<BreadcrumbItem>
<BreadcrumbLink href="/products">Products</BreadcrumbLink>
<BreadcrumbSeparator />
</BreadcrumbItem>
{/* Current page */}
<BreadcrumbItem>
<BreadcrumbPage>Product Details</BreadcrumbPage>
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>
);
return (
<Breadcrumb>
<BreadcrumbList>
{/* First breadcrumb item */}
<BreadcrumbItem>
<BreadcrumbLink href="/">Home</BreadcrumbLink>
<BreadcrumbSeparator />
</BreadcrumbItem>
{/* Second breadcrumb item */}
<BreadcrumbItem>
<BreadcrumbLink href="/products">Products</BreadcrumbLink>
<BreadcrumbSeparator />
</BreadcrumbItem>
{/* Current page */}
<BreadcrumbItem>
<BreadcrumbPage>Product Details</BreadcrumbPage>
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>
);
const pageList = [
{ name: "Home", link: "/" },
{ name: "Products", link: "/products" },
{ name: "Electronics" },
];
const breadcrumb = <BreadcrumbCustom pageList={pageList} />;
return breadcrumb;
const pageList = [
{ name: "Home", link: "/" },
{ name: "Products", link: "/products" },
{ name: "Electronics" },
];
const breadcrumb = <BreadcrumbCustom pageList={pageList} />;
return breadcrumb;
return (
<div className="p-4 space-y-4">
{/* Default Button */}
<Button onClick={() => alert("Default Button Clicked!")}>
Default Button
</Button>
{/* Destructive Button */}
<Button variant="destructive" onClick={() => alert("Destructive Action!")}>
Destructive Button
</Button>
{/* Icon-Only Button */}
<Button onlyIcon size="icon" onClick={() => alert("Icon Button Clicked!")}>
<span role="img" aria-label="icon">
🔍
</span>
</Button>
{/* Outline Button */}
<Button variant="outline" onClick={() => alert("Outline Button Clicked!")}>
Outline Button
</Button>
</div>
);
return (
<div className="p-4 space-y-4">
{/* Default Button */}
<Button onClick={() => alert("Default Button Clicked!")}>
Default Button
</Button>
{/* Destructive Button */}
<Button variant="destructive" onClick={() => alert("Destructive Action!")}>
Destructive Button
</Button>
{/* Icon-Only Button */}
<Button onlyIcon size="icon" onClick={() => alert("Icon Button Clicked!")}>
<span role="img" aria-label="icon">
🔍
</span>
</Button>
{/* Outline Button */}
<Button variant="outline" onClick={() => alert("Outline Button Clicked!")}>
Outline Button
</Button>
</div>
);
return (
<div className="p-4 space-y-4">
{/* Card Example */}
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>
This is a description of the card. It provides additional context.
</CardDescription>
</CardHeader>
<CardContent>
<p>
This is the main content of the card. You can place any information
or components here.
</p>
</CardContent>
<CardFooter>
<button className="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">
Action
</button>
</CardFooter>
</Card>
</div>
);
This is a description of the card. It provides additional context.
This is the main content of the card. You can place any information or components here.
return (
<div className="p-4 space-y-4">
{/* Card Example */}
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>
This is a description of the card. It provides additional context.
</CardDescription>
</CardHeader>
<CardContent>
<p>
This is the main content of the card. You can place any information
or components here.
</p>
</CardContent>
<CardFooter>
<button className="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">
Action
</button>
</CardFooter>
</Card>
</div>
);
const arrayNav = [
{
title: "Home",
desc: "Go back to the homepage.",
link: "/",
icon: <span role="img" aria-label="home">🏠</span>,
id: "home",
},
{
title: "Products",
desc: "Explore our product catalog.",
link: "/products",
icon: <span role="img" aria-label="products">🛍️</span>,
id: "products",
},
{
title: "Contact Us",
desc: "Get in touch with us.",
link: "/contact",
icon: <span role="img" aria-label="contact">📞</span>,
id: "contact",
},
];
return <CardListing arrayNav={arrayNav} />;
const arrayNav = [
{
title: "Home",
desc: "Go back to the homepage.",
link: "/",
icon: <span role="img" aria-label="home">🏠</span>,
id: "home",
},
{
title: "Products",
desc: "Explore our product catalog.",
link: "/products",
icon: <span role="img" aria-label="products">🛍️</span>,
id: "products",
},
{
title: "Contact Us",
desc: "Get in touch with us.",
link: "/contact",
icon: <span role="img" aria-label="contact">📞</span>,
id: "contact",
},
];
return <CardListing arrayNav={arrayNav} />;
return (
<div className="flex justify-center items-center h-screen">
<Clock />
</div>
);
01:31
2026-02-13
return (
<div className="flex justify-center items-center h-screen">
<Clock />
</div>
);
return (
<Collapsible>
<CollapsibleTrigger className="px-4 py-2 bg-blue-500 text-white rounded">
Toggle Content
</CollapsibleTrigger>
<CollapsibleContent className="p-4 border rounded mt-2">
This is the collapsible content. It can contain any elements or text.
</CollapsibleContent>
</Collapsible>
);
return (
<Collapsible>
<CollapsibleTrigger className="px-4 py-2 bg-blue-500 text-white rounded">
Toggle Content
</CollapsibleTrigger>
<CollapsibleContent className="p-4 border rounded mt-2">
This is the collapsible content. It can contain any elements or text.
</CollapsibleContent>
</Collapsible>
);
const triggerButton = (
<DialogTrigger className="px-4 py-2 bg-blue-500 text-white rounded">
Open Dialog
</DialogTrigger>
);
const footerButtons = (
<DialogFooter>
<button className="px-4 py-2 bg-gray-300 rounded">Cancel</button>
<button className="px-4 py-2 bg-blue-500 text-white rounded">Confirm</button>
</DialogFooter>
);
return (
<Dialog>
{triggerButton}
<DialogContent>
<DialogHeader>
<DialogTitle>Dialog Title</DialogTitle>
<DialogDescription>
This is a description of the dialog content.
</DialogDescription>
</DialogHeader>
<div className="p-4">
<p>This is the main content of the dialog.</p>
</div>
{footerButtons}
</DialogContent>
</Dialog>
);
const triggerButton = (
<DialogTrigger className="px-4 py-2 bg-blue-500 text-white rounded">
Open Dialog
</DialogTrigger>
);
const footerButtons = (
<DialogFooter>
<button className="px-4 py-2 bg-gray-300 rounded">Cancel</button>
<button className="px-4 py-2 bg-blue-500 text-white rounded">Confirm</button>
</DialogFooter>
);
return (
<Dialog>
{triggerButton}
<DialogContent>
<DialogHeader>
<DialogTitle>Dialog Title</DialogTitle>
<DialogDescription>
This is a description of the dialog content.
</DialogDescription>
</DialogHeader>
<div className="p-4">
<p>This is the main content of the dialog.</p>
</div>
{footerButtons}
</DialogContent>
</Dialog>
);
const triggerButton = (
<DropdownMenuTrigger className="px-4 py-2 bg-blue-500 text-white rounded">
Open Menu
</DropdownMenuTrigger>
);
const menuItems = (
<DropdownMenuContent>
<DropdownMenuItem>Option 1</DropdownMenuItem>
<DropdownMenuItem>Option 2</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem>Option 3</DropdownMenuItem>
</DropdownMenuContent>
);
return (
<DropdownMenu>
{triggerButton}
{menuItems}
</DropdownMenu>
);
const triggerButton = (
<DropdownMenuTrigger className="px-4 py-2 bg-blue-500 text-white rounded">
Open Menu
</DropdownMenuTrigger>
);
const menuItems = (
<DropdownMenuContent>
<DropdownMenuItem>Option 1</DropdownMenuItem>
<DropdownMenuItem>Option 2</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem>Option 3</DropdownMenuItem>
</DropdownMenuContent>
);
return (
<DropdownMenu>
{triggerButton}
{menuItems}
</DropdownMenu>
);
return (
<div className={flex justify-center items-center h-screen}>
<ExpirationDelay />
</div>
);
00:09
return (
<div className={flex justify-center items-center h-screen}>
<ExpirationDelay />
</div>
);
const loader = (
<PageLoader color="text-blue-500" />
);
return loader;
Loading...
const loader = (
<PageLoader color="text-blue-500" />
);
return loader;
const skeletonPlaceholders = (
<div className="space-y-4">
<Skeleton className="h-6 w-1/2" />
<Skeleton className="h-6 w-3/4" />
<Skeleton className="h-6 w-full" />
</div>
);
return skeletonPlaceholders;
const skeletonPlaceholders = (
<div className="space-y-4">
<Skeleton className="h-6 w-1/2" />
<Skeleton className="h-6 w-3/4" />
<Skeleton className="h-6 w-full" />
</div>
);
return skeletonPlaceholders;