Modern Ads Dashboard
bagui/dashboard-adsFreeBlock
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/dashboard-ads.jsonSource
1"use client";23import React, { useEffect, useMemo, useRef, useState } from "react";4import { motion, AnimatePresence } from "motion/react";5import {6 Globe,7 Clock,8 AlertTriangle,9 RotateCw,10 Cpu,11 Timer,12 Home,13 Compass,14 Megaphone,15 Layers,16 Users,17 BarChart3,18 Settings,19 LogOut,20 Infinity as InfinityIcon,21 Music2,22 LayoutDashboard,23 Calendar,24 Folder,25 PieChart,26 Lightbulb,27 SlidersHorizontal,28 ArrowDownUp,29 Flag,30 Square,31 ChevronDown,32 Bell,33 Plus,34 Search,35 Command,36 MoreVertical,37 Info,38 PanelLeftClose,39 Check,40 TrendingUp,41 TrendingDown,42} from "lucide-react";43import { cn } from "@/lib/utils";4445/* ------------------------------------------------------------------ */46/* Types */47/* ------------------------------------------------------------------ */4849type IconType = React.ComponentType<{ className?: string }>;5051type SidebarKey = "overview" | "discover" | "campaigns" | "adsets" | "audience" | "reports" | "google" | "meta" | "tiktok" | "linkedin" | "settings";5253type TopTabKey = "dashboard" | "planner" | "assethub" | "segments" | "insights" | "preferences";5455type CampaignStatus = "ACTIVE" | "PAUSED" | "CANCEL" | "COMPLETED";5657type Campaign = {58 id: string;59 name: string;60 status: CampaignStatus;61 budget: number;62 spent: number;63 conversions: number | null;64 convRate: number | null;65 roas: number | null;66 clicks: number | null;67 ctr: number | null;68};6970type SortKey = "name" | "status" | "budget" | "spent" | "conversions" | "convRate" | "roas" | "clicks" | "ctr";7172/* ------------------------------------------------------------------ */73/* Static data */74/* ------------------------------------------------------------------ */7576const months = ["JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"];7778const generalNav: { key: SidebarKey; label: string; icon: IconType; badge?: number }[] = [79 { key: "overview", label: "Overview", icon: Home },80 { key: "discover", label: "Discover", icon: Compass },81 { key: "campaigns", label: "Campaigns", icon: Megaphone },82 { key: "adsets", label: "Ad Sets", icon: Layers, badge: 12 },83 { key: "audience", label: "Audience", icon: Users },84 { key: "reports", label: "Reports", icon: BarChart3, badge: 32 },85];8687const accountNav: { key: SidebarKey; label: string; platform: "google" | "meta" | "tiktok" | "linkedin" }[] = [88// … truncated
What it pulls in
npm packages
Files it writes
More from bagUi
All 30 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 Agency Dashboarddashboard-agency | bagUi | Blocks | Free | 2 deps | |
| Modern Folder Dashboarddashboard-folder | bagUi | Blocks | Free | 2 deps | |
| Modern Store Dashboarddashboard-store | bagUi | Blocks | Free | 2 deps |
