Template Open Agents.
bagui/template1FreeBlock
bagUi publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by bagUi on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.bagui.pro/r/template1.jsonSource
1'use client';23import { useState } from 'react';4import { motion } from 'framer-motion';5import { ChevronRight, CodeXml, Sun, Moon } from 'lucide-react';6import Link from "next/link";78const fadeInUp = {9 initial: { opacity: 0, y: 20 },10 whileInView: { opacity: 1, y: 0 },11 viewport: { once: true },12 transition: { duration: 0.6 }13};1415const staggerContainer = {16 initial: { opacity: 0 },17 whileInView: { opacity: 1 },18 viewport: { once: true },19 transition: { staggerChildren: 0.1, delayChildren: 0.2 }20};2122const staggerItem = {23 initial: { opacity: 0, y: 10 },24 whileInView: { opacity: 1, y: 0 },25 transition: { duration: 0.5 }26};2728export default function OpenAgents() {29 const [dark, setDark] = useState(false);3031 const toggle = () => {32 setDark(!dark);33 document.documentElement.classList.toggle('dark', !dark);34 };3536 const bg = dark ? 'bg-black' : 'bg-white';37 const text = dark ? 'text-white' : 'text-black';38 const border = dark ? 'border-white/10' : 'border-black/10';39 const muted = dark ? 'text-white/50' : 'text-black/50';40 const subtle = dark ? 'text-white/70' : 'text-black/70';41 const btnPrimary = dark ? 'bg-white text-black hover:bg-white/90' : 'bg-black text-white hover:bg-black/80';42 const btnOutline = dark ? 'border-white/20 hover:border-white/60' : 'border-black/20 hover:border-black/60';43 const cardBg = dark ? 'bg-white/5' : 'bg-black/5';44 const logoSrc = dark45 ? "https://bagui.vercel.app/faviconblack.png"46 : "https://bagui.vercel.app/faviconwhite.png";4748 return (49 <div className={`min-h-screen ${bg} ${text} transition-colors duration-300`}>50 {/* Navigation */}51 <nav className={`sticky top-0 z-50 border-b ${border} ${bg}/80 backdrop-blur-md`}>52 <div className={`max-w-7xl mx-auto px-6 h-16 flex items-center justify-between border-x ${border}`}>53 <div className="flex items-center gap-3 shrink-0">54 <Link href="/" className="flex items-center gap-2">55 <img src={logoSrc} alt="BagUI Logo" width={30} height={30} />56 <span className={`text-sm font-semibold tracking-tight ${text}`}>Bag\Ui</span>57 </Link>58 <Link59 href="https://x.com/anelkabag"60 target="_blank"61// … truncated
What it pulls in
npm packages
Files it writes
More from bagUi
All 25 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Dashboard Chat Appchat-app1 | bagUi | Blocks | Free | 2 deps | |
| Contact Exemple 1contact-1 | bagUi | Blocks | Free | 2 deps | |
| Contact Exemple 2contact-2 | bagUi | Blocks | Free | 2 deps | |
| CTA Exemple 1cta-1 | bagUi | Blocks | Free | 2 deps | |
| CTA Exemple 2cta-2 | bagUi | Blocks | Free | 2 deps | |
| Modern Store Dashboarddashboard-store | bagUi | Blocks | Free | 2 deps | |
| FAQ Exemple 1faq1 | bagUi | Blocks | Free | 2 deps | |
| Feature Exemple 1feature-1 | bagUi | Blocks | Free | 2 deps |
