[{"name":"About 1","fileName":"BlockAbout1.vue","file":"<template>\n  <!-- \n    Simple Centered About Section\n    Features: Clean centered layout with mission statement\n  -->\n  <UiContainer class=\"py-16 md:py-24\">\n    <div class=\"mx-auto max-w-3xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl\">About Our Company</h2>\n      <p class=\"text-muted-foreground mt-6 text-lg text-balance\">\n        We're a team of passionate individuals dedicated to creating innovative solutions that make\n        a difference. Our mission is to empower businesses with cutting-edge technology while\n        maintaining a human-centered approach.\n      </p>\n      <div class=\"mt-8 space-y-6\">\n        <div>\n          <h3 class=\"text-2xl font-semibold lg:text-3xl\">Our Mission</h3>\n          <p class=\"text-muted-foreground mt-2 text-balance\">\n            To deliver exceptional products and services that exceed expectations and drive success\n            for our clients worldwide.\n          </p>\n        </div>\n        <div>\n          <h3 class=\"text-2xl font-semibold lg:text-3xl\">Our Vision</h3>\n          <p class=\"text-muted-foreground mt-2 text-balance\">\n            To be the leading innovator in our industry, recognized for our commitment to quality,\n            sustainability, and customer satisfaction.\n          </p>\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup></script>\n","category":"About","description":"Simple Centered About Section. Features: Clean centered layout with mission statement","path":"About/BlockAbout1.vue","components":["container"]},{"name":"About 10","fileName":"BlockAbout10.vue","file":"<template>\n  <!-- \n    Culture & Values About Section\n    Features: Comprehensive culture showcase\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Our Culture & Values</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        What makes us unique and drives our success\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-8 lg:grid-cols-2\">\n      <div>\n        <h3 class=\"text-2xl font-bold\">Culture First</h3>\n        <p class=\"text-muted-foreground mt-4\">\n          We believe that a strong culture is the foundation of success. Our workplace is built on\n          trust, respect, and a shared commitment to excellence.\n        </p>\n\n        <div class=\"mt-8 space-y-6\">\n          <div v-for=\"benefit in benefits\" :key=\"benefit.title\" class=\"flex gap-4\">\n            <Icon :name=\"benefit.icon\" class=\"text-muted-foreground size-4\" />\n            <div>\n              <h4 class=\"leading-none font-semibold\">{{ benefit.title }}</h4>\n              <p class=\"text-muted-foreground mt-1.5 text-sm\">{{ benefit.description }}</p>\n            </div>\n          </div>\n        </div>\n      </div>\n\n      <div class=\"space-y-4\">\n        <UiCard v-for=\"culture in culturePoints\" :key=\"culture.title\">\n          <UiCardContent>\n            <div class=\"flex items-start gap-4\">\n              <div\n                class=\"bg-primary/10 flex size-12 shrink-0 items-center justify-center rounded-xl\"\n              >\n                <Icon :name=\"culture.icon\" class=\"text-primary size-6\" />\n              </div>\n              <div>\n                <h4 class=\"font-semibold\">{{ culture.title }}</h4>\n                <p class=\"text-muted-foreground mt-2 text-sm\">{{ culture.description }}</p>\n                <div class=\"mt-3 flex flex-wrap gap-2\">\n                  <UiBadge\n                    v-for=\"tag in culture.tags\"\n                    :key=\"tag\"\n                    variant=\"secondary\"\n                    class=\"text-xs\"\n                  >\n                    {{ tag }}\n                  </UiBadge>\n                </div>\n              </div>\n            </div>\n          </UiCardContent>\n        </UiCard>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const benefits = [\n    {\n      icon: \"lucide:home\",\n      title: \"Remote-First\",\n      description: \"Work from anywhere with flexible hours and unlimited PTO\",\n    },\n    {\n      icon: \"lucide:graduation-cap\",\n      title: \"Learning Budget\",\n      description: \"$5,000 annual budget for courses, conferences, and certifications\",\n    },\n    {\n      icon: \"lucide:heart-pulse\",\n      title: \"Health & Wellness\",\n      description: \"Comprehensive health insurance and mental health support\",\n    },\n    {\n      icon: \"lucide:sparkles\",\n      title: \"Career Growth\",\n      description: \"Clear paths for advancement with regular reviews and mentorship\",\n    },\n  ];\n\n  const culturePoints = [\n    {\n      icon: \"lucide:users\",\n      title: \"Diversity & Inclusion\",\n      description:\n        \"We celebrate differences and create an environment where everyone feels valued and heard.\",\n      tags: [\"Inclusive\", \"Equal Opportunity\", \"Belonging\"],\n    },\n    {\n      icon: \"lucide:lightbulb\",\n      title: \"Innovation & Experimentation\",\n      description:\n        \"We encourage trying new things, learning from failures, and pushing boundaries.\",\n      tags: [\"Creative\", \"Bold\", \"Forward-Thinking\"],\n    },\n    {\n      icon: \"lucide:handshake\",\n      title: \"Transparency & Trust\",\n      description:\n        \"Open communication, honest feedback, and building trust at every level of the organization.\",\n      tags: [\"Open\", \"Honest\", \"Accountable\"],\n    },\n  ];\n</script>\n","category":"About","description":"Culture & Values About Section. Features: Comprehensive culture showcase","path":"About/BlockAbout10.vue","components":["badge","card"]},{"name":"About 11","fileName":"BlockAbout11.vue","file":"<template>\n  <!-- \n    Testimonials About Section\n    Features: Customer testimonials with avatars\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">What People Say About Us</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        Trusted by companies worldwide\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-6 md:grid-cols-2 lg:grid-cols-3\">\n      <UiCard v-for=\"testimonial in testimonials\" :key=\"testimonial.name\">\n        <UiCardContent>\n          <div class=\"flex items-center gap-1 text-yellow-500\">\n            <Icon v-for=\"i in 5\" :key=\"i\" name=\"lucide:star\" class=\"size-4 fill-current\" />\n          </div>\n          <p class=\"text-muted-foreground mt-4 text-sm\">\"{{ testimonial.quote }}\"</p>\n          <div class=\"mt-6 flex items-center gap-3\">\n            <UiAvatar :src=\"testimonial.avatar\" :alt=\"testimonial.name\" class=\"size-10\" />\n            <div>\n              <p class=\"text-sm font-semibold\">{{ testimonial.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ testimonial.role }}</p>\n            </div>\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </div>\n\n    <div class=\"mx-auto mt-12 max-w-3xl text-center\">\n      <div class=\"bg-card inline-flex items-center gap-8 rounded-2xl border p-8\">\n        <div v-for=\"stat in stats\" :key=\"stat.label\" class=\"text-center\">\n          <div class=\"text-primary text-3xl font-bold\">{{ stat.value }}</div>\n          <div class=\"text-muted-foreground mt-1 text-sm\">{{ stat.label }}</div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const testimonials = [\n    {\n      name: \"Sarah Johnson\",\n      role: \"CEO, TechCorp\",\n      avatar: \"https://randomuser.me/api/portraits/women/75.jpg\",\n      quote:\n        \"This company transformed how we operate. Their solutions are intuitive, powerful, and have saved us countless hours.\",\n    },\n    {\n      name: \"Michael Brown\",\n      role: \"CTO, InnovateLabs\",\n      avatar: \"https://randomuser.me/api/portraits/men/75.jpg\",\n      quote:\n        \"Outstanding service and support. They truly understand our needs and deliver beyond expectations every time.\",\n    },\n    {\n      name: \"Emily Davis\",\n      role: \"Director, GlobalTech\",\n      avatar: \"https://randomuser.me/api/portraits/women/76.jpg\",\n      quote:\n        \"A game-changer for our business. The ROI has been incredible and their team is always there when we need them.\",\n    },\n    {\n      name: \"David Wilson\",\n      role: \"Founder, StartupXYZ\",\n      avatar: \"https://randomuser.me/api/portraits/men/77.jpg\",\n      quote:\n        \"From implementation to ongoing support, everything has been seamless. I recommend them to everyone I meet.\",\n    },\n    {\n      name: \"Lisa Anderson\",\n      role: \"VP Operations, MegaCorp\",\n      avatar: \"https://randomuser.me/api/portraits/women/78.jpg\",\n      quote:\n        \"Their platform scales beautifully with our growth. The feature set is comprehensive and constantly improving.\",\n    },\n    {\n      name: \"James Martinez\",\n      role: \"Head of IT, Enterprise Co\",\n      avatar: \"https://randomuser.me/api/portraits/men/79.jpg\",\n      quote:\n        \"Security, reliability, and performance - they excel in all areas. We couldn't be happier with our decision.\",\n    },\n  ];\n\n  const stats = [\n    { value: \"10k+\", label: \"Happy Customers\" },\n    { value: \"4.9/5\", label: \"Average Rating\" },\n    { value: \"99%\", label: \"Satisfaction\" },\n  ];\n</script>\n","category":"About","description":"Testimonials About Section. Features: Customer testimonials with avatars","path":"About/BlockAbout11.vue","components":["avatar","card"]},{"name":"About 12","fileName":"BlockAbout12.vue","file":"<template>\n  <!-- \n    Journey Map About Section\n    Features: Interactive company journey visualization\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Our Journey</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        From humble beginnings to industry leaders\n      </p>\n    </div>\n\n    <div class=\"relative mt-12\">\n      <!-- Connecting Line -->\n      <div\n        class=\"from-border via-border absolute top-8 left-4 hidden h-full w-0.5 bg-linear-to-b to-transparent md:left-1/2 md:block\"\n      />\n\n      <div class=\"space-y-12\">\n        <div v-for=\"(milestone, index) in milestones\" :key=\"milestone.year\" class=\"relative\">\n          <div class=\"flex items-start gap-4 md:grid md:grid-cols-2 md:gap-8\">\n            <!-- Left Side (odd items on mobile, even items on desktop) -->\n            <div :class=\"index % 2 === 0 ? 'md:col-start-1' : 'md:col-start-2'\">\n              <UiCard class=\"md:mx-4\">\n                <UiCardContent>\n                  <UiBadge class=\"mb-3\">{{ milestone.year }}</UiBadge>\n                  <h3 class=\"text-xl font-bold\">{{ milestone.title }}</h3>\n                  <p class=\"text-muted-foreground mt-2 text-sm\">{{ milestone.description }}</p>\n                  <div\n                    class=\"mt-4 flex flex-wrap gap-2\"\n                    :class=\"index % 2 === 0 ? 'md:justify-end' : ''\"\n                  >\n                    <UiBadge\n                      v-for=\"tag in milestone.tags\"\n                      :key=\"tag\"\n                      variant=\"outline\"\n                      class=\"text-xs\"\n                    >\n                      {{ tag }}\n                    </UiBadge>\n                  </div>\n                </UiCardContent>\n              </UiCard>\n            </div>\n\n            <!-- Center Dot -->\n            <div\n              class=\"border-background bg-primary from-primary via-background to-background absolute left-4 hidden size-10 -translate-x-1/2 items-center justify-center rounded-full border-4 md:left-1/2 md:flex dark:bg-linear-to-b\"\n            >\n              <Icon\n                :name=\"milestone.icon\"\n                class=\"text-primary-foreground dark:text-primary size-4\"\n              />\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const milestones = [\n    {\n      year: \"2015\",\n      title: \"The Beginning\",\n      description:\n        \"Founded in a small garage with a vision to revolutionize the industry. Started with just 3 passionate individuals.\",\n      icon: \"lucide:rocket\",\n      tags: [\"Startup\", \"Vision\"],\n    },\n    {\n      year: \"2017\",\n      title: \"First Major Product Launch\",\n      description:\n        \"Released our flagship product to critical acclaim. Secured Series A funding of $5M and grew team to 15 members.\",\n      icon: \"lucide:package\",\n      tags: [\"Product\", \"Growth\"],\n    },\n    {\n      year: \"2019\",\n      title: \"Global Expansion\",\n      description:\n        \"Opened offices in London and Singapore. Reached 1,000+ customers across 25 countries.\",\n      icon: \"lucide:globe\",\n      tags: [\"International\", \"Scale\"],\n    },\n    {\n      year: \"2021\",\n      title: \"Innovation Award\",\n      description:\n        \"Recognized as 'Most Innovative Company' by Tech Magazine. Launched AI-powered features that changed the game.\",\n      icon: \"lucide:trophy\",\n      tags: [\"Recognition\", \"Innovation\"],\n    },\n    {\n      year: \"2023\",\n      title: \"Unicorn Status\",\n      description:\n        \"Reached $1B valuation with Series C funding. Team grew to 500+ across 10 global offices.\",\n      icon: \"lucide:trending-up\",\n      tags: [\"Milestone\", \"Investment\"],\n    },\n    {\n      year: \"2025\",\n      title: \"The Future\",\n      description:\n        \"Continuing to innovate and push boundaries. Committed to sustainability and making a positive global impact.\",\n      icon: \"lucide:sparkles\",\n      tags: [\"Vision\", \"Sustainability\"],\n    },\n  ];\n</script>\n","category":"About","description":"Journey Map About Section. Features: Interactive company journey visualization","path":"About/BlockAbout12.vue","components":["badge","card"]},{"name":"About 13","fileName":"BlockAbout13.vue","file":"<template>\n  <!-- \n    Meet the Founders About Section\n    Features: Detailed founder stories\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Meet Our Founders</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        The visionaries behind our success story\n      </p>\n    </div>\n\n    <div class=\"mt-12 space-y-16\">\n      <div\n        v-for=\"(founder, index) in founders\"\n        :key=\"founder.name\"\n        class=\"grid gap-8 lg:grid-cols-2 lg:gap-12\"\n        :class=\"index % 2 === 1 ? 'lg:flex-row-reverse' : ''\"\n      >\n        <div :class=\"index % 2 === 1 ? 'lg:order-2' : ''\">\n          <div class=\"overflow-hidden rounded-2xl lg:aspect-square\">\n            <img\n              :src=\"founder.image\"\n              :alt=\"founder.name\"\n              class=\"size-[300px] rounded-2xl object-cover lg:size-full\"\n            />\n          </div>\n        </div>\n\n        <div class=\"flex flex-col justify-center\" :class=\"index % 2 === 1 ? 'lg:order-1' : ''\">\n          <UiBadge class=\"w-fit\">{{ founder.role }}</UiBadge>\n          <h3 class=\"mt-4 text-3xl font-bold\">{{ founder.name }}</h3>\n          <p class=\"text-primary mt-2\">{{ founder.title }}</p>\n\n          <div class=\"text-muted-foreground mt-6 space-y-4\">\n            <p v-for=\"paragraph in founder.bio\" :key=\"paragraph\">{{ paragraph }}</p>\n          </div>\n\n          <div class=\"mt-6 space-y-4\">\n            <div>\n              <h4 class=\"text-sm font-semibold\">Background</h4>\n              <ul class=\"text-muted-foreground mt-2 space-y-1 text-sm\">\n                <li v-for=\"item in founder.background\" :key=\"item\" class=\"flex items-start gap-2\">\n                  <Icon name=\"lucide:check\" class=\"text-primary mt-0.5 size-4 shrink-0\" />\n                  <span>{{ item }}</span>\n                </li>\n              </ul>\n            </div>\n\n            <div>\n              <h4 class=\"text-sm font-semibold\">Specialties</h4>\n              <div class=\"mt-2 flex flex-wrap gap-2\">\n                <UiBadge\n                  v-for=\"specialty in founder.specialties\"\n                  :key=\"specialty\"\n                  variant=\"secondary\"\n                >\n                  {{ specialty }}\n                </UiBadge>\n              </div>\n            </div>\n          </div>\n\n          <div class=\"mt-6 flex gap-1\">\n            <UiButton\n              v-for=\"social in founder.socials\"\n              :key=\"social.platform\"\n              variant=\"ghost\"\n              size=\"icon-sm\"\n            >\n              <Icon :name=\"social.icon\" class=\"size-5\" />\n            </UiButton>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const founders = [\n    {\n      name: \"Emma Thompson\",\n      role: \"Co-Founder\",\n      title: \"Chief Executive Officer\",\n      image:\n        \"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=600&auto=format&fit=crop&q=80\",\n      bio: [\n        \"Emma's entrepreneurial journey began at MIT, where she developed a passion for building technology that solves real-world problems. After leading product teams at Fortune 500 companies, she decided to start her own venture.\",\n        \"With over 15 years in the tech industry, Emma brings a unique blend of technical expertise and business acumen. Her vision has been instrumental in shaping our company's direction and culture.\",\n      ],\n      background: [\n        \"BS in Computer Science, MIT\",\n        \"Former VP of Product at TechGiant Inc.\",\n        \"Forbes 30 Under 30 recipient\",\n        \"Published author on product strategy\",\n      ],\n      specialties: [\"Product Strategy\", \"Leadership\", \"Innovation\"],\n      socials: [\n        { platform: \"twitter\", icon: \"logos:twitter\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\" },\n        { platform: \"github\", icon: \"simple-icons:github\" },\n      ],\n    },\n    {\n      name: \"Marcus Chen\",\n      role: \"Co-Founder\",\n      title: \"Chief Technology Officer\",\n      image:\n        \"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=600&auto=format&fit=crop&q=80\",\n      bio: [\n        \"Marcus is a technology visionary who has been coding since the age of 12. His expertise in distributed systems and AI has been crucial in building our robust and scalable platform.\",\n        \"Before co-founding the company, Marcus was a principal engineer at a leading cloud infrastructure company. He holds multiple patents in distributed computing and has contributed to several open-source projects.\",\n      ],\n      background: [\n        \"PhD in Computer Science, Stanford\",\n        \"Former Principal Engineer at CloudScale\",\n        \"10+ patents in distributed systems\",\n        \"Open-source contributor with 50k+ GitHub stars\",\n      ],\n      specialties: [\"System Architecture\", \"AI/ML\", \"Cloud Infrastructure\"],\n      socials: [\n        { platform: \"github\", icon: \"simple-icons:github\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\" },\n        { platform: \"twitter\", icon: \"logos:twitter\" },\n      ],\n    },\n  ];\n</script>\n","category":"About","description":"Meet the Founders About Section. Features: Detailed founder stories","path":"About/BlockAbout13.vue","components":["badge","button"]},{"name":"About 14","fileName":"BlockAbout14.vue","file":"<template>\n  <!-- \n    Office Locations About Section\n    Features: Multi-location showcase\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Our Global Presence</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        Operating across continents to serve you better\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-6 sm:grid-cols-2 lg:grid-cols-3\">\n      <UiCard\n        v-for=\"office in offices\"\n        :key=\"office.city\"\n        class=\"group py-0 pb-6 transition-shadow hover:shadow-lg\"\n      >\n        <div class=\"overflow-hidden rounded-t-xl\">\n          <img\n            :src=\"office.image\"\n            :alt=\"`${office.city} office`\"\n            class=\"h-48 w-full object-cover transition-transform group-hover:scale-105\"\n          />\n        </div>\n        <UiCardContent>\n          <div class=\"flex items-start justify-between\">\n            <div>\n              <UiBadge v-if=\"office.isHQ\" variant=\"default\" class=\"mb-2\">Headquarters</UiBadge>\n              <h3 class=\"text-xl font-bold\">{{ office.city }}</h3>\n              <p class=\"text-muted-foreground text-sm\">{{ office.country }}</p>\n            </div>\n            <div class=\"bg-primary/10 rounded-lg p-2\">\n              <Icon name=\"lucide:map-pin\" class=\"text-primary size-5\" />\n            </div>\n          </div>\n\n          <div class=\"mt-4 space-y-3 text-sm\">\n            <div class=\"text-muted-foreground flex items-start gap-2\">\n              <Icon name=\"lucide:building\" class=\"mt-0.5 size-4 shrink-0\" />\n              <span>{{ office.address }}</span>\n            </div>\n            <div class=\"text-muted-foreground flex items-center gap-2\">\n              <Icon name=\"lucide:users\" class=\"size-4 shrink-0\" />\n              <span>{{ office.employees }} employees</span>\n            </div>\n            <div class=\"text-muted-foreground flex items-center gap-2\">\n              <Icon name=\"lucide:phone\" class=\"size-4 shrink-0\" />\n              <span>{{ office.phone }}</span>\n            </div>\n          </div>\n\n          <div class=\"mt-4\">\n            <h4 class=\"text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase\">\n              Departments\n            </h4>\n            <div class=\"flex flex-wrap gap-2\">\n              <UiBadge\n                v-for=\"dept in office.departments\"\n                :key=\"dept\"\n                variant=\"outline\"\n                class=\"text-xs\"\n              >\n                {{ dept }}\n              </UiBadge>\n            </div>\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </div>\n\n    <div class=\"bg-card mx-auto mt-12 max-w-3xl rounded-2xl border p-8 text-center\">\n      <Icon name=\"lucide:globe\" class=\"text-primary mx-auto size-12\" />\n      <h3 class=\"mt-4 text-xl font-semibold\">Looking to expand globally?</h3>\n      <p class=\"text-muted-foreground mt-2\">\n        We're constantly growing and opening new offices. Check back to see where we're headed next.\n      </p>\n      <UiButton class=\"mt-6\">View Career Opportunities</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const offices = [\n    {\n      city: \"San Francisco\",\n      country: \"United States\",\n      image:\n        \"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?w=400&auto=format&fit=crop&q=80\",\n      address: \"123 Market Street, Suite 500, CA 94103\",\n      employees: 250,\n      phone: \"+1 (415) 555-0100\",\n      isHQ: true,\n      departments: [\"Engineering\", \"Sales\", \"Marketing\", \"Support\"],\n    },\n    {\n      city: \"London\",\n      country: \"United Kingdom\",\n      image:\n        \"https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?w=400&auto=format&fit=crop&q=80\",\n      address: \"45 Liverpool Street, EC2M 7AE\",\n      employees: 120,\n      phone: \"+44 20 7946 0958\",\n      isHQ: false,\n      departments: [\"Sales\", \"Marketing\", \"Support\"],\n    },\n    {\n      city: \"Singapore\",\n      country: \"Singapore\",\n      image:\n        \"https://images.unsplash.com/photo-1525625293386-3f8f99389edd?w=400&auto=format&fit=crop&q=80\",\n      address: \"1 Marina Boulevard, #28-00, 018989\",\n      employees: 85,\n      phone: \"+65 6789 1234\",\n      isHQ: false,\n      departments: [\"Engineering\", \"Sales\", \"Support\"],\n    },\n    {\n      city: \"Berlin\",\n      country: \"Germany\",\n      image:\n        \"https://images.unsplash.com/photo-1560969184-10fe8719e047?w=400&auto=format&fit=crop&q=80\",\n      address: \"Friedrichstraße 100, 10117\",\n      employees: 95,\n      phone: \"+49 30 1234 5678\",\n      isHQ: false,\n      departments: [\"Engineering\", \"Product\"],\n    },\n    {\n      city: \"Tokyo\",\n      country: \"Japan\",\n      image:\n        \"https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?w=400&auto=format&fit=crop&q=80\",\n      address: \"1-2-3 Shibuya, Tokyo 150-0002\",\n      employees: 70,\n      phone: \"+81 3-1234-5678\",\n      isHQ: false,\n      departments: [\"Sales\", \"Support\"],\n    },\n    {\n      city: \"Sydney\",\n      country: \"Australia\",\n      image:\n        \"https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?w=400&auto=format&fit=crop&q=80\",\n      address: \"100 George Street, NSW 2000\",\n      employees: 60,\n      phone: \"+61 2 9876 5432\",\n      isHQ: false,\n      departments: [\"Sales\", \"Marketing\"],\n    },\n  ];\n</script>\n","category":"About","description":"Office Locations About Section. Features: Multi-location showcase","path":"About/BlockAbout14.vue","components":["badge","button","card"]},{"name":"About 15","fileName":"BlockAbout15.vue","file":"<template>\n  <!-- \n    Awards & Recognition About Section\n    Features: Showcase achievements and awards\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Awards & Recognition</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        Honored by industry leaders and innovation champions\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-8 md:grid-cols-2 lg:grid-cols-3\">\n      <UiCard v-for=\"award in awards\" :key=\"award.title\" class=\"group\">\n        <UiCardContent>\n          <div class=\"flex items-start justify-between\">\n            <div\n              class=\"bg-primary/10 flex size-14 items-center justify-center rounded-xl transition-transform group-hover:scale-110\"\n            >\n              <Icon :name=\"award.icon\" class=\"text-primary size-7\" />\n            </div>\n            <UiBadge variant=\"outline\">{{ award.year }}</UiBadge>\n          </div>\n          <h3 class=\"mt-4 font-bold\">{{ award.title }}</h3>\n          <p class=\"text-primary mt-1 text-sm\">{{ award.organization }}</p>\n          <p class=\"text-muted-foreground mt-3 text-sm\">{{ award.description }}</p>\n        </UiCardContent>\n      </UiCard>\n    </div>\n\n    <div class=\"mt-16\">\n      <h3 class=\"text-center text-2xl font-bold\">Certifications & Partnerships</h3>\n      <div class=\"mx-auto mt-8 grid max-w-4xl gap-6 sm:grid-cols-2 lg:grid-cols-4\">\n        <div\n          v-for=\"cert in certifications\"\n          :key=\"cert.name\"\n          class=\"bg-card hover:border-primary/50 flex flex-col items-center rounded-xl border p-6 text-center transition-colors\"\n        >\n          <div class=\"bg-primary/10 flex size-16 items-center justify-center rounded-full\">\n            <Icon :name=\"cert.icon\" class=\"text-primary size-8\" />\n          </div>\n          <h4 class=\"mt-4 text-sm font-semibold\">{{ cert.name }}</h4>\n          <p class=\"text-muted-foreground mt-1 text-xs\">{{ cert.type }}</p>\n        </div>\n      </div>\n    </div>\n\n    <div class=\"mx-auto mt-16 max-w-3xl text-center\">\n      <UiCard class=\"bg-primary/5\">\n        <UiCardContent>\n          <Icon name=\"lucide:award\" class=\"text-primary mx-auto size-12\" />\n          <h3 class=\"mt-4 text-xl font-bold\">Industry Recognition</h3>\n          <p class=\"text-muted-foreground mt-2\">\n            Featured in Forbes, TechCrunch, and The Wall Street Journal as one of the most\n            innovative companies reshaping the industry.\n          </p>\n          <div class=\"mt-6 flex flex-wrap items-center justify-center gap-6\">\n            <div\n              v-for=\"mention in mediaMentions\"\n              :key=\"mention\"\n              class=\"text-muted-foreground text-sm font-semibold\"\n            >\n              {{ mention }}\n            </div>\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const awards = [\n    {\n      icon: \"lucide:trophy\",\n      title: \"Best SaaS Product of the Year\",\n      organization: \"Tech Innovation Awards\",\n      year: \"2024\",\n      description:\n        \"Recognized for outstanding innovation and user experience in the SaaS category.\",\n    },\n    {\n      icon: \"lucide:star\",\n      title: \"Top 100 Companies to Watch\",\n      organization: \"Business Weekly\",\n      year: \"2024\",\n      description: \"Named among the most promising companies driving industry transformation.\",\n    },\n    {\n      icon: \"lucide:zap\",\n      title: \"Innovation Excellence Award\",\n      organization: \"Global Tech Summit\",\n      year: \"2023\",\n      description: \"Honored for breakthrough AI-powered features and technical excellence.\",\n    },\n    {\n      icon: \"lucide:award\",\n      title: \"Customer Choice Award\",\n      organization: \"G2 Software Reviews\",\n      year: \"2023\",\n      description: \"Voted #1 by customers for satisfaction, ease of use, and value for money.\",\n    },\n    {\n      icon: \"lucide:users\",\n      title: \"Best Place to Work\",\n      organization: \"Tech Employers Association\",\n      year: \"2023\",\n      description: \"Recognized for exceptional workplace culture and employee satisfaction.\",\n    },\n    {\n      icon: \"lucide:shield-check\",\n      title: \"Security Excellence Award\",\n      organization: \"Cybersecurity Alliance\",\n      year: \"2022\",\n      description: \"Awarded for maintaining the highest standards in data security and privacy.\",\n    },\n  ];\n\n  const certifications = [\n    {\n      name: \"ISO 27001\",\n      type: \"Security\",\n      icon: \"lucide:shield-check\",\n    },\n    {\n      name: \"SOC 2 Type II\",\n      type: \"Compliance\",\n      icon: \"lucide:file-check\",\n    },\n    {\n      name: \"GDPR Compliant\",\n      type: \"Privacy\",\n      icon: \"lucide:lock\",\n    },\n    {\n      name: \"AWS Partner\",\n      type: \"Technology\",\n      icon: \"lucide:cloud\",\n    },\n  ];\n\n  const mediaMentions = [\"Forbes\", \"TechCrunch\", \"WSJ\", \"Bloomberg\", \"CNBC\"];\n</script>\n","category":"About","description":"Awards & Recognition About Section. Features: Showcase achievements and awards","path":"About/BlockAbout15.vue","components":["badge","card"]},{"name":"About 16","fileName":"BlockAbout16.vue","file":"<template>\n  <!-- \n    Team Carousel About Section\n    Features: Team showcase with navigation\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Meet Our Team</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        The talented people behind our success\n      </p>\n    </div>\n\n    <div class=\"mt-12\">\n      <swiper-container ref=\"swiperRef\" :modules=\"[Autoplay]\">\n        <swiper-slide v-for=\"member in teamMembers\" :key=\"member.name\">\n          <UiCard class=\"group pt-0\">\n            <div class=\"h-[300px] overflow-hidden rounded-t-xl\">\n              <img\n                :src=\"member.image\"\n                :alt=\"member.name\"\n                class=\"size-full object-cover transition-transform group-hover:scale-105\"\n              />\n            </div>\n            <UiCardContent>\n              <h3 class=\"font-semibold\">{{ member.name }}</h3>\n              <p class=\"text-primary text-sm\">{{ member.role }}</p>\n              <p class=\"text-muted-foreground mt-2 text-xs\">{{ member.department }}</p>\n              <div class=\"mt-3 flex gap-2\">\n                <a\n                  v-for=\"social in member.socials\"\n                  :key=\"social.platform\"\n                  :href=\"social.url\"\n                  class=\"text-muted-foreground hover:text-foreground transition-colors\"\n                >\n                  <Icon :name=\"social.icon\" class=\"size-4\" />\n                </a>\n              </div>\n            </UiCardContent>\n          </UiCard>\n        </swiper-slide>\n      </swiper-container>\n\n      <div class=\"mt-8 flex items-center gap-4\">\n        <UiButton\n          :disabled=\"swiper.isBeginning.value\"\n          variant=\"outline\"\n          size=\"icon\"\n          class=\"size-11 rounded-full\"\n          @click=\"swiper.prev()\"\n        >\n          <Icon name=\"lucide:chevron-left\" class=\"size-4\" />\n        </UiButton>\n        <UiButton\n          :disabled=\"swiper.isEnd.value\"\n          variant=\"outline\"\n          size=\"icon\"\n          class=\"size-11 rounded-full\"\n          @click=\"swiper.next()\"\n        >\n          <Icon name=\"lucide:chevron-right\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </div>\n\n    <div class=\"mx-auto mt-12 max-w-2xl text-center\">\n      <h3 class=\"text-xl font-bold\">Join Our Growing Team</h3>\n      <p class=\"text-muted-foreground mt-2\">\n        We're always looking for talented individuals who share our passion for innovation and\n        excellence.\n      </p>\n      <UiButton class=\"mt-6\">View Open Positions</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { Autoplay } from \"swiper/modules\";\n\n  const teamMembers = [\n    {\n      name: \"Alice Cooper\",\n      role: \"Senior Designer\",\n      department: \"Design Team\",\n      image: \"https://randomuser.me/api/portraits/women/44.jpg\",\n      socials: [\n        { platform: \"twitter\", icon: \"logos:twitter\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"Bob Anderson\",\n      role: \"Lead Engineer\",\n      department: \"Engineering\",\n      image: \"https://randomuser.me/api/portraits/men/45.jpg\",\n      socials: [\n        { platform: \"github\", icon: \"simple-icons:github\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"Carol Smith\",\n      role: \"Product Manager\",\n      department: \"Product\",\n      image: \"https://randomuser.me/api/portraits/women/46.jpg\",\n      socials: [\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n        { platform: \"twitter\", icon: \"logos:twitter\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"David Lee\",\n      role: \"Marketing Director\",\n      department: \"Marketing\",\n      image: \"https://randomuser.me/api/portraits/men/47.jpg\",\n      socials: [\n        { platform: \"twitter\", icon: \"logos:twitter\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"Emma White\",\n      role: \"Data Scientist\",\n      department: \"Analytics\",\n      image: \"https://randomuser.me/api/portraits/women/48.jpg\",\n      socials: [\n        { platform: \"github\", icon: \"simple-icons:github\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"Frank Green\",\n      role: \"Customer Success\",\n      department: \"Support\",\n      image: \"https://randomuser.me/api/portraits/men/49.jpg\",\n      socials: [{ platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" }],\n    },\n    {\n      name: \"Grace Kim\",\n      role: \"UX Researcher\",\n      department: \"Research\",\n      image: \"https://randomuser.me/api/portraits/women/50.jpg\",\n      socials: [\n        { platform: \"twitter\", icon: \"logos:twitter\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"Henry Black\",\n      role: \"DevOps Engineer\",\n      department: \"Operations\",\n      image: \"https://randomuser.me/api/portraits/men/51.jpg\",\n      socials: [\n        { platform: \"github\", icon: \"simple-icons:github\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n  ];\n\n  const swiperRef = ref(null);\n  const swiper = useSwiper(swiperRef, {\n    slidesPerView: 1.2,\n    spaceBetween: 10,\n    grabCursor: true,\n    autoplay: {\n      delay: 4000,\n      disableOnInteraction: false,\n    },\n    speed: 800,\n    breakpoints: {\n      1024: {\n        slidesPerView: 3,\n        spaceBetween: 24,\n        slidesPerGroup: 3,\n      },\n      768: {\n        slidesPerView: 2,\n        spaceBetween: 16,\n        slidesPerGroup: 2,\n      },\n    },\n  });\n</script>\n","category":"About","description":"Team Carousel About Section. Features: Team showcase with navigation","path":"About/BlockAbout16.vue","components":["button","card"]},{"name":"About 17","fileName":"BlockAbout17.vue","file":"<template>\n  <!-- \n    Split Content About Section\n    Features: Alternating content sections\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Why Choose Us</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        What sets us apart from the competition\n      </p>\n    </div>\n\n    <div class=\"mt-12 space-y-24\">\n      <div\n        v-for=\"(section, index) in sections\"\n        :key=\"section.title\"\n        class=\"grid gap-8 lg:grid-cols-2 lg:gap-12\"\n      >\n        <div :class=\"index % 2 === 1 ? 'lg:order-2' : ''\">\n          <div class=\"overflow-hidden rounded-2xl\">\n            <img :src=\"section.image\" :alt=\"section.title\" class=\"aspect-4/3 w-full object-cover\" />\n          </div>\n        </div>\n\n        <div class=\"flex flex-col justify-center\" :class=\"index % 2 === 1 ? 'lg:order-1' : ''\">\n          <UiBadge class=\"w-fit\">{{ section.category }}</UiBadge>\n          <h3 class=\"mt-4 text-3xl font-bold\">{{ section.title }}</h3>\n          <p class=\"text-muted-foreground mt-4 text-lg\">{{ section.description }}</p>\n\n          <ul class=\"mt-6 space-y-4\">\n            <li v-for=\"feature in section.features\" :key=\"feature.title\" class=\"flex gap-3\">\n              <div\n                class=\"bg-primary/10 flex size-10 shrink-0 items-center justify-center rounded-lg\"\n              >\n                <Icon :name=\"feature.icon\" class=\"text-primary size-5\" />\n              </div>\n              <div>\n                <h4 class=\"font-semibold\">{{ feature.title }}</h4>\n                <p class=\"text-muted-foreground text-sm\">{{ feature.description }}</p>\n              </div>\n            </li>\n          </ul>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const sections = [\n    {\n      category: \"Innovation\",\n      title: \"Cutting-Edge Technology\",\n      description:\n        \"We leverage the latest technologies and methodologies to deliver solutions that are not just current, but future-ready.\",\n      image:\n        \"https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=800&auto=format&fit=crop&q=80\",\n      features: [\n        {\n          icon: \"lucide:cpu\",\n          title: \"AI-Powered Solutions\",\n          description: \"Intelligent automation that learns and adapts to your needs\",\n        },\n        {\n          icon: \"lucide:rocket\",\n          title: \"Continuous Innovation\",\n          description: \"Regular updates and new features based on user feedback\",\n        },\n        {\n          icon: \"lucide:zap\",\n          title: \"Lightning Fast\",\n          description: \"Optimized performance delivering results in milliseconds\",\n        },\n      ],\n    },\n    {\n      category: \"Support\",\n      title: \"World-Class Customer Service\",\n      description:\n        \"Our dedicated support team is available 24/7 to ensure you get the help you need, when you need it.\",\n      image:\n        \"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800&auto=format&fit=crop&q=80\",\n      features: [\n        {\n          icon: \"lucide:headphones\",\n          title: \"24/7 Support\",\n          description: \"Round-the-clock assistance across all time zones\",\n        },\n        {\n          icon: \"lucide:graduation-cap\",\n          title: \"Comprehensive Training\",\n          description: \"Onboarding and ongoing education for your team\",\n        },\n        {\n          icon: \"lucide:users\",\n          title: \"Dedicated Success Manager\",\n          description: \"Personal advisor to help you achieve your goals\",\n        },\n      ],\n    },\n    {\n      category: \"Security\",\n      title: \"Enterprise-Grade Security\",\n      description:\n        \"Your data security is our top priority. We employ industry-leading security measures to protect your information.\",\n      image:\n        \"https://images.unsplash.com/photo-1563986768609-322da13575f3?w=800&auto=format&fit=crop&q=80\",\n      features: [\n        {\n          icon: \"lucide:shield\",\n          title: \"SOC 2 Certified\",\n          description: \"Independently verified security controls and compliance\",\n        },\n        {\n          icon: \"lucide:lock\",\n          title: \"End-to-End Encryption\",\n          description: \"Military-grade encryption for all data in transit and at rest\",\n        },\n        {\n          icon: \"lucide:eye\",\n          title: \"Privacy First\",\n          description: \"GDPR compliant with transparent data practices\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"About","description":"Split Content About Section. Features: Alternating content sections","path":"About/BlockAbout17.vue","components":["badge"]},{"name":"About 18","fileName":"BlockAbout18.vue","file":"<template>\n  <!-- \n    FAQ About Section\n    Features: Frequently asked questions with collapsible answers\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"text-center\">\n        <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Frequently Asked Questions</h2>\n        <p class=\"text-muted-foreground mt-4 text-lg\">\n          Everything you need to know about our company\n        </p>\n      </div>\n\n      <div class=\"mt-12 space-y-4\">\n        <UiCard v-for=\"faq in faqs\" :key=\"faq.question\" class=\"gap-0 overflow-hidden py-0\">\n          <UiCollapsible v-slot=\"{ open }\">\n            <UiCollapsibleTrigger\n              class=\"hover:bg-muted/50 flex w-full items-start justify-between gap-4 p-6 text-left transition-colors\"\n            >\n              <div>\n                <h3 class=\"font-semibold\">{{ faq.question }}</h3>\n              </div>\n              <Icon\n                name=\"lucide:chevron-down\"\n                class=\"text-muted-foreground size-5 shrink-0 transition-transform\"\n                :class=\"{ 'rotate-180': open }\"\n              />\n            </UiCollapsibleTrigger>\n            <UiCollapsibleContent>\n              <div class=\"text-muted-foreground px-6 pt-0 pb-6 text-sm\">\n                {{ faq.answer }}\n              </div>\n            </UiCollapsibleContent>\n          </UiCollapsible>\n        </UiCard>\n      </div>\n\n      <div class=\"bg-card mt-12 rounded-2xl border p-8 text-center\">\n        <Icon name=\"lucide:help-circle\" class=\"text-primary mx-auto size-12\" />\n        <h3 class=\"mt-4 text-xl font-bold\">Still have questions?</h3>\n        <p class=\"text-muted-foreground mt-2\">\n          Can't find the answer you're looking for? Our team is here to help.\n        </p>\n        <div class=\"mt-6 flex flex-wrap justify-center gap-3\">\n          <UiButton>Contact Support</UiButton>\n          <UiButton variant=\"outline\">Schedule a Call</UiButton>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const faqs = [\n    {\n      question: \"What is your company's background and history?\",\n      answer:\n        \"We were founded in 2015 with a mission to revolutionize the industry through innovative technology. Starting with just three people in a garage, we've grown to a team of over 500 employees across 10 global offices, serving thousands of customers worldwide.\",\n    },\n    {\n      question: \"What makes your company different from competitors?\",\n      answer:\n        \"Our commitment to innovation, customer-first approach, and proven track record set us apart. We invest heavily in R&D, maintain the highest security standards, and provide 24/7 support. Our solutions are built on cutting-edge technology while remaining intuitive and user-friendly.\",\n    },\n    {\n      question: \"What are your company values?\",\n      answer:\n        \"We're guided by five core values: Customer Obsession, Innovation First, Integrity Always, Collaborative Spirit, and Excellence Driven. These principles shape our culture, guide our decisions, and define how we work with customers and each other.\",\n    },\n    {\n      question: \"How large is your team and where are you located?\",\n      answer:\n        \"We have over 500 employees working across 10 offices globally, including San Francisco (HQ), London, Singapore, Berlin, Tokyo, and Sydney. We also support remote work, allowing us to attract top talent from around the world.\",\n    },\n    {\n      question: \"What industries do you serve?\",\n      answer:\n        \"We serve a diverse range of industries including technology, finance, healthcare, retail, manufacturing, and education. Our solutions are designed to be flexible and scalable, adapting to the unique needs of different sectors.\",\n    },\n    {\n      question: \"Are you hiring?\",\n      answer:\n        \"Yes! We're always looking for talented individuals to join our team. We offer competitive compensation, comprehensive benefits, opportunities for growth, and a culture that celebrates diversity and innovation. Check our careers page for current openings.\",\n    },\n    {\n      question: \"How do you ensure data security and privacy?\",\n      answer:\n        \"Security is our top priority. We're SOC 2 Type II certified, GDPR compliant, and ISO 27001 certified. We use end-to-end encryption, conduct regular security audits, and maintain strict access controls. Your data is protected by enterprise-grade security measures.\",\n    },\n    {\n      question: \"What is your company's commitment to sustainability?\",\n      answer:\n        \"We're committed to sustainable growth and environmental responsibility. Our offices use renewable energy, we've implemented carbon offset programs, and we're working toward becoming carbon neutral by 2025. We believe in building a business that's good for both people and the planet.\",\n    },\n  ];\n</script>\n","category":"About","description":"FAQ About Section. Features: Frequently asked questions with collapsible answers","path":"About/BlockAbout18.vue","components":["button","card","collapsible"]},{"name":"About 19","fileName":"BlockAbout19.vue","file":"<template>\n  <!-- \n    Contact Integrated About Section\n    Features: About info with integrated contact form\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"grid gap-12 lg:grid-cols-2 lg:gap-16\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Let's Work Together</h2>\n        <p class=\"text-muted-foreground mt-4 text-lg\">\n          We're passionate about helping businesses succeed. Get in touch to learn how we can\n          support your goals.\n        </p>\n\n        <div class=\"mt-8 space-y-6\">\n          <div class=\"flex gap-4\">\n            <div class=\"bg-primary/10 flex size-12 shrink-0 items-center justify-center rounded-xl\">\n              <Icon name=\"lucide:mail\" class=\"text-primary size-6\" />\n            </div>\n            <div>\n              <h3 class=\"font-semibold\">Email Us</h3>\n              <p class=\"text-muted-foreground text-sm\">hello@company.com</p>\n              <p class=\"text-muted-foreground text-sm\">support@company.com</p>\n            </div>\n          </div>\n\n          <div class=\"flex gap-4\">\n            <div class=\"bg-primary/10 flex size-12 shrink-0 items-center justify-center rounded-xl\">\n              <Icon name=\"lucide:phone\" class=\"text-primary size-6\" />\n            </div>\n            <div>\n              <h3 class=\"font-semibold\">Call Us</h3>\n              <p class=\"text-muted-foreground text-sm\">+1 (415) 555-0100</p>\n              <p class=\"text-muted-foreground text-sm\">Mon-Fri 9am-6pm PST</p>\n            </div>\n          </div>\n\n          <div class=\"flex gap-4\">\n            <div class=\"bg-primary/10 flex size-12 shrink-0 items-center justify-center rounded-xl\">\n              <Icon name=\"lucide:map-pin\" class=\"text-primary size-6\" />\n            </div>\n            <div>\n              <h3 class=\"font-semibold\">Visit Us</h3>\n              <p class=\"text-muted-foreground text-sm\">123 Market Street, Suite 500</p>\n              <p class=\"text-muted-foreground text-sm\">San Francisco, CA 94103</p>\n            </div>\n          </div>\n        </div>\n\n        <div class=\"mt-8\">\n          <h3 class=\"font-semibold\">Follow Us</h3>\n          <div class=\"mt-3 flex gap-1\">\n            <UiButton v-for=\"social in socials\" :key=\"social.name\" variant=\"ghost\" size=\"icon\">\n              <Icon :name=\"social.icon\" class=\"size-4\" />\n            </UiButton>\n          </div>\n        </div>\n      </div>\n\n      <UiCard>\n        <UiCardContent>\n          <h3 class=\"text-xl font-bold\">Send us a message</h3>\n          <p class=\"text-muted-foreground mt-2 text-sm\">\n            Fill out the form below and we'll get back to you within 24 hours.\n          </p>\n\n          <form class=\"mt-6 space-y-4\" @submit=\"onSubmit\">\n            <div class=\"grid gap-4 sm:grid-cols-2\">\n              <UiVeeInput label=\"First Name\" name=\"firstName\" placeholder=\"John\" />\n              <UiVeeInput label=\"Last Name\" name=\"lastName\" placeholder=\"Doe\" />\n            </div>\n            <UiVeeInput label=\"Email\" name=\"email\" type=\"email\" placeholder=\"john@example.com\" />\n            <UiVeeInput label=\"Company\" name=\"company\" placeholder=\"Acme Inc.\" />\n            <UiVeeInput label=\"Subject\" name=\"subject\" placeholder=\"How can we help?\" />\n            <UiVeeTextarea\n              label=\"Message\"\n              name=\"message\"\n              placeholder=\"Tell us more about your inquiry...\"\n              :rows=\"4\"\n            />\n\n            <UiButton :loading=\"isSubmitting\" type=\"submit\" class=\"w-full\">\n              <Icon name=\"lucide:send\" class=\"mr-2 size-4\" />\n              Send Message\n            </UiButton>\n          </form>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n\n  const socials = [\n    { name: \"Twitter\", icon: \"logos:twitter\" },\n    { name: \"LinkedIn\", icon: \"logos:linkedin-icon\" },\n    { name: \"GitHub\", icon: \"simple-icons:github\" },\n    { name: \"Facebook\", icon: \"logos:facebook\" },\n  ];\n\n  const { handleSubmit, isSubmitting } = useForm({\n    name: \"about-contact-integrated\",\n    validationSchema: toTypedSchema(\n      object({\n        firstName: string().label(\"First Name\").required(),\n        lastName: string().label(\"Last Name\").required(),\n        email: string().label(\"Email\").email().required(),\n        company: string().label(\"Company\").required(),\n        subject: string().label(\"Subject\").required(),\n        message: string().label(\"Message\").required(),\n      })\n    ),\n  });\n\n  const onSubmit = handleSubmit(async (_, { resetForm }) => {\n    // Simulate form submission\n    await new Promise((resolve) => setTimeout(resolve, 2000));\n    useSonner(\"Message sent successfully!\", {\n      description: \"Thank you for reaching out. We will get back to you soon.\",\n    });\n    resetForm();\n  });\n</script>\n","category":"About","description":"Contact Integrated About Section. Features: About info with integrated contact form","path":"About/BlockAbout19.vue","components":["button","card","vee-input","vee-textarea"]},{"name":"About 2","fileName":"BlockAbout2.vue","file":"<template>\n  <!-- \n    Team Grid About Section\n    Features: Grid layout with team member cards\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Meet Our Team</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        The talented individuals who make everything possible\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-8 sm:grid-cols-2 lg:grid-cols-4\">\n      <div v-for=\"member in teamMembers\" :key=\"member.name\" class=\"text-center\">\n        <UiAvatar :src=\"member.image\" :alt=\"member.name\" class=\"mx-auto size-24 md:size-32\" />\n        <h3 class=\"mt-4 text-lg font-semibold\">{{ member.name }}</h3>\n        <p class=\"text-primary text-sm\">{{ member.role }}</p>\n        <p class=\"text-muted-foreground mt-2 text-sm text-balance\">{{ member.bio }}</p>\n        <div class=\"mt-4 flex justify-center gap-3\">\n          <a\n            v-for=\"social in member.socials\"\n            :key=\"social.platform\"\n            :href=\"social.url\"\n            class=\"text-muted-foreground hover:text-foreground transition-colors\"\n          >\n            <Icon :name=\"social.icon\" class=\"size-4\" />\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const teamMembers = [\n    {\n      name: \"Sarah Johnson\",\n      role: \"CEO & Founder\",\n      image: \"https://randomuser.me/api/portraits/women/75.jpg\",\n      bio: \"Visionary leader with 15+ years in tech\",\n      socials: [\n        { platform: \"twitter\", icon: \"logos:twitter\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"Michael Chen\",\n      role: \"CTO\",\n      image: \"https://randomuser.me/api/portraits/men/75.jpg\",\n      bio: \"Tech innovator passionate about AI\",\n      socials: [\n        { platform: \"twitter\", icon: \"logos:twitter\", url: \"#\" },\n        { platform: \"github\", icon: \"simple-icons:github\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"Emily Rodriguez\",\n      role: \"Head of Design\",\n      image: \"https://randomuser.me/api/portraits/women/76.jpg\",\n      bio: \"Award-winning designer focused on UX\",\n      socials: [\n        { platform: \"twitter\", icon: \"logos:twitter\", url: \"#\" },\n        { platform: \"dribbble\", icon: \"logos:dribbble-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"David Kim\",\n      role: \"VP of Engineering\",\n      image: \"https://randomuser.me/api/portraits/men/76.jpg\",\n      bio: \"Building scalable systems at scale\",\n      socials: [\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n        { platform: \"github\", icon: \"simple-icons:github\", url: \"#\" },\n      ],\n    },\n  ];\n</script>\n","category":"About","description":"Team Grid About Section. Features: Grid layout with team member cards","path":"About/BlockAbout2.vue","components":["avatar"]},{"name":"About 20","fileName":"BlockAbout20.vue","file":"<template>\n  <!-- \n    Full Page About Section\n    Features: Comprehensive about page layout\n  -->\n  <div>\n    <!-- Hero Section -->\n    <div class=\"bg-muted/30 border-b\">\n      <div class=\"container py-16 md:py-24\">\n        <div class=\"mx-auto max-w-3xl text-center\">\n          <UiBadge class=\"mb-4\">About Us</UiBadge>\n          <h1 class=\"text-4xl font-bold tracking-tight md:text-5xl lg:text-6xl\">\n            Building the Future, Together\n          </h1>\n          <p class=\"text-muted-foreground mt-6 text-xl\">\n            We're on a mission to empower businesses with technology that transforms how they work,\n            grow, and succeed.\n          </p>\n        </div>\n      </div>\n    </div>\n\n    <!-- Stats Section -->\n    <div class=\"border-b\">\n      <div class=\"container py-12\">\n        <div class=\"grid gap-8 sm:grid-cols-2 lg:grid-cols-4\">\n          <div v-for=\"stat in stats\" :key=\"stat.label\" class=\"text-center\">\n            <div class=\"text-primary text-4xl font-bold\">{{ stat.value }}</div>\n            <div class=\"text-muted-foreground mt-2 text-sm\">{{ stat.label }}</div>\n          </div>\n        </div>\n      </div>\n    </div>\n\n    <!-- Story Section -->\n    <div class=\"container py-16 md:py-24\">\n      <div class=\"grid gap-12 lg:grid-cols-2 lg:gap-16\">\n        <div>\n          <h2 class=\"text-3xl font-bold\">Our Story</h2>\n          <div class=\"text-muted-foreground mt-6 space-y-4\">\n            <p>\n              Founded in 2015, we started with a simple idea: technology should empower people, not\n              complicate their lives. What began as a small team working from a garage has grown\n              into a global company serving thousands of customers.\n            </p>\n            <p>\n              Our journey hasn't always been easy, but it's been driven by an unwavering commitment\n              to innovation, customer success, and building a workplace where talented people can do\n              their best work.\n            </p>\n            <p>\n              Today, we're proud to be recognized as industry leaders, but we're even prouder of the\n              relationships we've built and the impact we've made on businesses around the world.\n            </p>\n          </div>\n        </div>\n        <div class=\"overflow-hidden rounded-2xl\">\n          <img\n            src=\"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&auto=format&fit=crop&q=80\"\n            alt=\"Team collaboration\"\n            class=\"aspect-4/3 w-full object-cover\"\n          />\n        </div>\n      </div>\n    </div>\n\n    <!-- Values Section -->\n    <div class=\"bg-muted/30 border-y\">\n      <div class=\"container py-16 md:py-24\">\n        <div class=\"text-center\">\n          <h2 class=\"text-3xl font-bold\">Our Values</h2>\n          <p class=\"text-muted-foreground mt-4\">The principles that guide everything we do</p>\n        </div>\n        <div class=\"mt-12 grid gap-6 sm:grid-cols-2 lg:grid-cols-3\">\n          <UiCard v-for=\"value in values\" :key=\"value.title\">\n            <UiCardContent>\n              <div class=\"bg-primary/10 flex size-12 items-center justify-center rounded-xl\">\n                <Icon :name=\"value.icon\" class=\"text-primary size-6\" />\n              </div>\n              <h3 class=\"mt-4 font-bold\">{{ value.title }}</h3>\n              <p class=\"text-muted-foreground mt-2 text-sm\">{{ value.description }}</p>\n            </UiCardContent>\n          </UiCard>\n        </div>\n      </div>\n    </div>\n\n    <!-- Team Section -->\n    <div class=\"container py-16 md:py-24\">\n      <div class=\"text-center\">\n        <h2 class=\"text-3xl font-bold\">Leadership Team</h2>\n        <p class=\"text-muted-foreground mt-4\">Meet the people driving our vision</p>\n      </div>\n      <div class=\"mt-12 grid gap-8 sm:grid-cols-2 lg:grid-cols-4\">\n        <div v-for=\"leader in leaders\" :key=\"leader.name\" class=\"text-center\">\n          <UiAvatar :src=\"leader.image\" :alt=\"leader.name\" class=\"mx-auto size-24\" />\n          <h3 class=\"mt-4 font-semibold\">{{ leader.name }}</h3>\n          <p class=\"text-primary text-sm\">{{ leader.role }}</p>\n        </div>\n      </div>\n    </div>\n\n    <!-- CTA Section -->\n    <div class=\"bg-muted/30 border-t\">\n      <div class=\"container py-16 md:py-24\">\n        <div class=\"mx-auto max-w-2xl text-center\">\n          <h2 class=\"text-3xl font-bold\">Ready to Get Started?</h2>\n          <p class=\"text-muted-foreground mt-4 text-lg\">\n            Join thousands of companies already using our platform to transform their business.\n          </p>\n          <div class=\"mt-8 flex flex-wrap justify-center gap-4\">\n            <UiButton size=\"lg\">Start Free Trial</UiButton>\n            <UiButton variant=\"outline\" size=\"lg\">Contact Sales</UiButton>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const stats = [\n    { value: \"10+\", label: \"Years in Business\" },\n    { value: \"500+\", label: \"Team Members\" },\n    { value: \"10k+\", label: \"Customers Worldwide\" },\n    { value: \"99.9%\", label: \"Uptime SLA\" },\n  ];\n\n  const values = [\n    {\n      icon: \"lucide:heart\",\n      title: \"Customer First\",\n      description: \"Every decision we make starts with our customers' needs and success in mind.\",\n    },\n    {\n      icon: \"lucide:zap\",\n      title: \"Innovation\",\n      description:\n        \"We constantly push boundaries and challenge the status quo to deliver better solutions.\",\n    },\n    {\n      icon: \"lucide:shield-check\",\n      title: \"Integrity\",\n      description:\n        \"We operate with transparency, honesty, and ethical practices in everything we do.\",\n    },\n    {\n      icon: \"lucide:users\",\n      title: \"Collaboration\",\n      description:\n        \"We believe in the power of diverse perspectives working together toward common goals.\",\n    },\n    {\n      icon: \"lucide:trophy\",\n      title: \"Excellence\",\n      description:\n        \"We set high standards and are committed to delivering quality in every interaction.\",\n    },\n    {\n      icon: \"lucide:leaf\",\n      title: \"Sustainability\",\n      description:\n        \"We're building a business that's good for people, planet, and long-term success.\",\n    },\n  ];\n\n  const leaders = [\n    {\n      name: \"Sarah Johnson\",\n      role: \"CEO & Co-Founder\",\n      image: \"https://randomuser.me/api/portraits/women/44.jpg\",\n    },\n    {\n      name: \"Michael Chen\",\n      role: \"CTO & Co-Founder\",\n      image: \"https://randomuser.me/api/portraits/men/45.jpg\",\n    },\n    {\n      name: \"Emma Williams\",\n      role: \"Chief Product Officer\",\n      image: \"https://randomuser.me/api/portraits/women/46.jpg\",\n    },\n    {\n      name: \"David Martinez\",\n      role: \"Chief Revenue Officer\",\n      image: \"https://randomuser.me/api/portraits/men/47.jpg\",\n    },\n  ];\n</script>\n","category":"About","description":"Full Page About Section. Features: Comprehensive about page layout","path":"About/BlockAbout20.vue","components":["avatar","badge","button","card"]},{"name":"About 3","fileName":"BlockAbout3.vue","file":"<template>\n  <!-- \n    Story Timeline About Section\n    Features: Timeline layout with company milestones\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Our Journey</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        From humble beginnings to industry leader\n      </p>\n    </div>\n\n    <div class=\"mx-auto mt-12 max-w-3xl\">\n      <div class=\"relative pl-8\">\n        <div v-for=\"milestone in milestones\" :key=\"milestone.year\" class=\"relative pb-8 last:pb-0\">\n          <div class=\"absolute top-0 -left-[35px] flex h-full items-center justify-center\">\n            <div\n              class=\"via-border h-full w-0.5 rounded-full bg-linear-to-b from-transparent to-transparent\"\n            />\n          </div>\n          <div\n            class=\"border-background bg-primary absolute -left-[53px] flex size-10 items-center justify-center rounded-full border-4\"\n          >\n            <Icon :name=\"milestone.icon\" class=\"text-primary-foreground size-4\" />\n          </div>\n          <div class=\"pt-2\">\n            <UiBadge variant=\"outline\" class=\"mb-2\">{{ milestone.year }}</UiBadge>\n            <h3 class=\"text-xl font-semibold\">{{ milestone.title }}</h3>\n            <p class=\"text-muted-foreground mt-2 max-w-3xl text-pretty\">\n              {{ milestone.description }}\n            </p>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const milestones = [\n    {\n      year: \"2015\",\n      title: \"Company Founded\",\n      description:\n        \"Started with a vision to revolutionize the industry with three passionate co-founders in a small garage.\",\n      icon: \"lucide:rocket\",\n    },\n    {\n      year: \"2017\",\n      title: \"First Major Product Launch\",\n      description:\n        \"Released our flagship product that changed how businesses operate, gaining 1,000+ customers in the first month.\",\n      icon: \"lucide:package\",\n    },\n    {\n      year: \"2019\",\n      title: \"Series A Funding\",\n      description:\n        \"Secured $10M in funding to expand our team and accelerate product development across new markets.\",\n      icon: \"lucide:trending-up\",\n    },\n    {\n      year: \"2021\",\n      title: \"Global Expansion\",\n      description:\n        \"Opened offices in 5 countries and grew our team to over 200 employees worldwide.\",\n      icon: \"lucide:globe\",\n    },\n    {\n      year: \"2023\",\n      title: \"Industry Recognition\",\n      description:\n        \"Named 'Best Innovation' by Tech Leaders Magazine and reached 100,000 active users globally.\",\n      icon: \"lucide:award\",\n    },\n    {\n      year: \"2025\",\n      title: \"The Future\",\n      description:\n        \"Continuing to innovate and push boundaries with AI-powered solutions and sustainable practices.\",\n      icon: \"lucide:sparkles\",\n    },\n  ];\n</script>\n","category":"About","description":"Story Timeline About Section. Features: Timeline layout with company milestones","path":"About/BlockAbout3.vue","components":["badge"]},{"name":"About 4","fileName":"BlockAbout4.vue","file":"<template>\n  <!-- \n    Two Column About Section\n    Features: Split layout with image and content\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"grid gap-12 lg:grid-cols-2 lg:gap-16\">\n      <div class=\"bg-muted relative aspect-4/3 overflow-hidden rounded-2xl lg:aspect-auto\">\n        <img\n          src=\"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&auto=format&fit=crop&q=80\"\n          alt=\"Team collaboration\"\n          class=\"size-full object-cover\"\n        />\n      </div>\n\n      <div class=\"flex flex-col justify-center\">\n        <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Building the Future Together</h2>\n        <p class=\"text-muted-foreground mt-4 text-lg\">\n          Since 2015, we've been on a mission to transform how businesses operate in the digital\n          age. Our team of experts combines creativity with technical excellence to deliver\n          solutions that drive real results.\n        </p>\n\n        <div class=\"mt-8 space-y-6\">\n          <div v-for=\"(item, i) in items\" :key=\"i\" class=\"flex gap-4\">\n            <div\n              class=\"from-primary/50 flex size-12 shrink-0 items-center justify-center rounded-full bg-linear-to-b via-transparent\"\n            >\n              <Icon :name=\"item.icon\" class=\"text-primary size-5\" />\n            </div>\n            <div>\n              <h3 class=\"font-semibold\">{{ item.title }}</h3>\n              <p class=\"text-muted-foreground mt-1 text-sm\">\n                {{ item.description }}\n              </p>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const items = [\n    {\n      icon: \"lucide:users\",\n      title: \"People-First Approach\",\n      description:\n        \"We believe in putting people at the center of everything we do, from our team to our customers.\",\n    },\n    {\n      icon: \"lucide:lightbulb\",\n      title: \"Innovation Driven\",\n      description:\n        \"Constantly pushing boundaries and exploring new technologies to stay ahead of the curve.\",\n    },\n    {\n      icon: \"lucide:target\",\n      title: \"Results Focused\",\n      description:\n        \"Delivering measurable outcomes that make a real difference to our clients' success.\",\n    },\n  ];\n</script>\n","category":"About","description":"Two Column About Section. Features: Split layout with image and content","path":"About/BlockAbout4.vue","components":[]},{"name":"About 5","fileName":"BlockAbout5.vue","file":"<template>\n  <!-- \n    Stats Highlight About Section\n    Features: Key statistics with prominent numbers\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">About Us in Numbers</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        Our achievements speak for themselves\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-8 sm:grid-cols-2 lg:grid-cols-4\">\n      <UiCard v-for=\"stat in stats\" :key=\"stat.label\" class=\"text-center\">\n        <UiCardContent class=\"flex flex-col items-center justify-center\">\n          <div\n            class=\"from-primary/50 flex size-16 items-center justify-center rounded-full bg-linear-to-b via-transparent\"\n          >\n            <Icon :name=\"stat.icon\" class=\"text-primary size-8\" />\n          </div>\n          <div class=\"text-primary mt-4 text-4xl font-bold\">{{ stat.value }}</div>\n          <div class=\"mt-2 text-sm font-medium\">{{ stat.label }}</div>\n          <p class=\"text-muted-foreground mt-2 text-xs\">{{ stat.description }}</p>\n        </UiCardContent>\n      </UiCard>\n    </div>\n\n    <div class=\"mx-auto mt-16 max-w-3xl text-center\">\n      <p class=\"text-muted-foreground text-lg text-pretty\">\n        We're a dynamic team of creators, thinkers, and doers committed to delivering exceptional\n        results. Our diverse backgrounds and shared passion for excellence drive us to continuously\n        innovate and exceed expectations.\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const stats = [\n    {\n      icon: \"lucide:users\",\n      value: \"500+\",\n      label: \"Team Members\",\n      description: \"Talented professionals worldwide\",\n    },\n    {\n      icon: \"lucide:building\",\n      value: \"50K+\",\n      label: \"Happy Clients\",\n      description: \"Businesses we've helped grow\",\n    },\n    {\n      icon: \"lucide:award\",\n      value: \"25+\",\n      label: \"Awards Won\",\n      description: \"Industry recognition\",\n    },\n    {\n      icon: \"lucide:globe\",\n      value: \"40+\",\n      label: \"Countries\",\n      description: \"Global presence\",\n    },\n  ];\n</script>\n","category":"About","description":"Stats Highlight About Section. Features: Key statistics with prominent numbers","path":"About/BlockAbout5.vue","components":["card"]},{"name":"About 6","fileName":"BlockAbout6.vue","file":"<template>\n  <!-- \n    Values Grid About Section\n    Features: Grid showcasing company values\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Our Core Values</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        The principles that guide everything we do\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-8 sm:grid-cols-2 lg:grid-cols-3\">\n      <div\n        v-for=\"value in values\"\n        :key=\"value.title\"\n        class=\"group bg-card hover:border-primary/50 rounded-2xl border p-8 transition-colors\"\n      >\n        <div\n          class=\"bg-primary/10 flex size-14 items-center justify-center rounded-xl transition-transform group-hover:scale-110\"\n        >\n          <Icon :name=\"value.icon\" class=\"text-primary size-7\" />\n        </div>\n        <h3 class=\"mt-6 text-xl font-semibold\">{{ value.title }}</h3>\n        <p class=\"text-muted-foreground mt-3\">{{ value.description }}</p>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const values = [\n    {\n      icon: \"lucide:heart\",\n      title: \"Customer Obsessed\",\n      description:\n        \"We put our customers at the heart of every decision, constantly striving to exceed their expectations and deliver exceptional value.\",\n    },\n    {\n      icon: \"lucide:zap\",\n      title: \"Innovation First\",\n      description:\n        \"We embrace change and constantly seek new ways to improve, innovate, and push the boundaries of what's possible.\",\n    },\n    {\n      icon: \"lucide:shield-check\",\n      title: \"Integrity Always\",\n      description:\n        \"We operate with transparency, honesty, and ethical practices in all our interactions and business dealings.\",\n    },\n    {\n      icon: \"lucide:users\",\n      title: \"Collaborative Spirit\",\n      description:\n        \"We believe in the power of teamwork and diverse perspectives to create better solutions and drive success.\",\n    },\n    {\n      icon: \"lucide:trophy\",\n      title: \"Excellence Driven\",\n      description:\n        \"We set high standards for ourselves and are committed to delivering quality in everything we create.\",\n    },\n    {\n      icon: \"lucide:leaf\",\n      title: \"Sustainable Growth\",\n      description:\n        \"We're committed to responsible growth that benefits our team, customers, and the planet for the long term.\",\n    },\n  ];\n</script>\n","category":"About","description":"Values Grid About Section. Features: Grid showcasing company values","path":"About/BlockAbout6.vue","components":[]},{"name":"About 7","fileName":"BlockAbout7.vue","file":"<template>\n  <!-- \n    Leadership Team About Section\n    Features: Detailed leadership profiles\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Leadership Team</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        Meet the visionaries driving our company forward\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-8 lg:grid-cols-2\">\n      <UiCard v-for=\"leader in leaders\" :key=\"leader.name\">\n        <UiCardContent class=\"flex flex-col gap-6 sm:flex-row\">\n          <UiAvatar :src=\"leader.image\" :alt=\"leader.name\" class=\"size-24 shrink-0 sm:size-32\" />\n          <div class=\"flex-1\">\n            <h3 class=\"text-xl font-semibold\">{{ leader.name }}</h3>\n            <p class=\"text-primary text-sm\">{{ leader.role }}</p>\n            <p class=\"text-muted-foreground mt-3 text-sm\">{{ leader.bio }}</p>\n            <div class=\"mt-4 flex flex-wrap gap-2\">\n              <UiBadge v-for=\"skill in leader.expertise\" :key=\"skill\" variant=\"secondary\">\n                {{ skill }}\n              </UiBadge>\n            </div>\n            <div class=\"mt-4 flex gap-3\">\n              <a\n                v-for=\"social in leader.socials\"\n                :key=\"social.platform\"\n                :href=\"social.url\"\n                class=\"text-muted-foreground hover:text-foreground transition-colors\"\n              >\n                <Icon :name=\"social.icon\" class=\"size-5\" />\n              </a>\n            </div>\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const leaders = [\n    {\n      name: \"Alexandra Martinez\",\n      role: \"Chief Executive Officer\",\n      image: \"https://randomuser.me/api/portraits/women/75.jpg\",\n      bio: \"Alexandra brings over 20 years of experience in tech leadership. She's passionate about building inclusive teams and creating products that make a real difference. Under her leadership, the company has grown 300%.\",\n      expertise: [\"Strategy\", \"Leadership\", \"Product Vision\"],\n      socials: [\n        { platform: \"twitter\", icon: \"logos:twitter\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"James Wilson\",\n      role: \"Chief Technology Officer\",\n      image: \"https://randomuser.me/api/portraits/men/65.jpg\",\n      bio: \"James is a technology visionary with a track record of building scalable systems. He's led engineering teams at Fortune 500 companies and holds multiple patents in distributed computing.\",\n      expertise: [\"Architecture\", \"Cloud\", \"AI/ML\"],\n      socials: [\n        { platform: \"github\", icon: \"simple-icons:github\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"Sophia Chen\",\n      role: \"Chief Marketing Officer\",\n      image: \"https://randomuser.me/api/portraits/women/5.jpg\",\n      bio: \"Sophia has revolutionized how we connect with customers. Her data-driven approach to marketing has helped us reach new markets and build a brand that resonates globally.\",\n      expertise: [\"Brand Strategy\", \"Growth\", \"Analytics\"],\n      socials: [\n        { platform: \"twitter\", icon: \"logos:twitter\", url: \"#\" },\n        { platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" },\n      ],\n    },\n    {\n      name: \"Robert Taylor\",\n      role: \"Chief Financial Officer\",\n      image: \"https://randomuser.me/api/portraits/men/32.jpg\",\n      bio: \"Robert ensures our financial health while driving strategic growth. With experience in both startups and public companies, he brings a balanced perspective to our financial strategy.\",\n      expertise: [\"Finance\", \"Strategy\", \"M&A\"],\n      socials: [{ platform: \"linkedin\", icon: \"logos:linkedin-icon\", url: \"#\" }],\n    },\n  ];\n</script>\n","category":"About","description":"Leadership Team About Section. Features: Detailed leadership profiles","path":"About/BlockAbout7.vue","components":["avatar","badge","card"]},{"name":"About 8","fileName":"BlockAbout8.vue","file":"<template>\n  <!-- \n    Mission Vision About Section\n    Features: Side-by-side mission and vision cards\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Mission & Vision</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        Our purpose and where we're headed\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-8 lg:grid-cols-2\">\n      <template v-for=\"(item, i) in items\" :key=\"i\">\n        <UiCard class=\"group relative overflow-hidden border-0\">\n          <div\n            class=\"bg-primary/10 absolute top-0 right-0 size-32 translate-x-8 -translate-y-8 rounded-full transition-all duration-300 group-hover:size-44\"\n          />\n          <UiCardContent class=\"relative\">\n            <div\n              class=\"from-primary/30 flex size-16 items-center justify-center rounded-full bg-linear-to-b via-transparent to-transparent\"\n            >\n              <Icon :name=\"item.icon\" class=\"text-primary size-8\" />\n            </div>\n            <h3 class=\"mt-6 text-2xl font-bold\">{{ item.title }}</h3>\n            <p class=\"text-muted-foreground mt-4\">\n              {{ item.description }}\n            </p>\n            <ul class=\"mt-6 space-y-3\">\n              <template v-for=\"point in item.points\" :key=\"point\">\n                <li class=\"flex items-start gap-3\">\n                  <Icon name=\"lucide:sparkles\" class=\"text-primary mt-0.5 size-5 shrink-0\" />\n                  <span class=\"text-sm\">{{ point }}</span>\n                </li>\n              </template>\n            </ul>\n          </UiCardContent>\n          <UiBorderBeam\n            :duration=\"20\"\n            class=\"via-primary from-transparent to-transparent opacity-0 group-hover:opacity-100\"\n            :size=\"200\"\n          />\n        </UiCard>\n      </template>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const items = [\n    {\n      title: \"Our Mission\",\n      description:\n        \"To empower businesses worldwide with innovative technology solutions that drive growth, efficiency, and sustainable success. We're committed to delivering exceptional value through cutting-edge products and unparalleled customer service.\",\n      icon: \"lucide:target\",\n      points: [\n        \"Deliver world-class solutions\",\n        \"Foster innovation and creativity\",\n        \"Build lasting customer relationships\",\n      ],\n    },\n    {\n      title: \"Our Vision\",\n      description:\n        \"To be the global leader in our industry, recognized for transforming how businesses operate through technology. We envision a future where our solutions enable every organization to reach its full potential.\",\n      icon: \"lucide:eye\",\n      points: [\n        \"Shape the future of technology\",\n        \"Expand to 100+ countries\",\n        \"Impact 1 million businesses\",\n      ],\n    },\n  ];\n</script>\n","category":"About","description":"Mission Vision About Section. Features: Side-by-side mission and vision cards","path":"About/BlockAbout8.vue","components":["border-beam","card"]},{"name":"About 9","fileName":"BlockAbout9.vue","file":"<template>\n  <!-- \n    Image Gallery About Section\n    Features: Gallery showcasing office and team culture\n  -->\n  <div class=\"container py-16 md:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight md:text-4xl\">Life at Our Company</h2>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-2xl text-lg\">\n        A glimpse into our workspace, culture, and the people who make it all happen\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n      <div\n        class=\"group relative aspect-square overflow-hidden rounded-2xl sm:col-span-2 sm:row-span-2 sm:aspect-auto\"\n      >\n        <img\n          src=\"https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1300\"\n          alt=\"Modern office space\"\n          class=\"size-full object-cover transition-transform duration-300 group-hover:scale-105\"\n        />\n        <div class=\"absolute inset-0 bg-linear-to-t from-black/60 to-transparent\" />\n        <div class=\"absolute bottom-4 left-4 text-white\">\n          <h3 class=\"text-xl font-semibold\">Our Modern Workspace</h3>\n          <p class=\"mt-1 text-sm opacity-90\">Designed for collaboration and creativity</p>\n        </div>\n      </div>\n\n      <div\n        v-for=\"(image, index) in galleryImages\"\n        :key=\"index\"\n        class=\"group relative aspect-square overflow-hidden rounded-2xl sm:last:col-span-2 lg:last:col-span-1\"\n      >\n        <img\n          :src=\"image.src\"\n          :alt=\"image.alt\"\n          class=\"size-full object-cover transition-transform duration-300 group-hover:scale-105\"\n        />\n        <div class=\"absolute inset-0 bg-linear-to-t from-black/60 to-transparent\" />\n        <div class=\"absolute bottom-3 left-3 text-white\">\n          <h4 class=\"text-sm font-semibold\">{{ image.title }}</h4>\n        </div>\n      </div>\n    </div>\n\n    <div class=\"mx-auto mt-12 max-w-3xl text-center\">\n      <p class=\"text-muted-foreground text-lg\">\n        We've created an environment where innovation thrives and people love to work. Our offices\n        are designed to foster collaboration, creativity, and well-being.\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const galleryImages = [\n    {\n      src: \"https://images.unsplash.com/photo-1543269865-cbf427effbad?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1200\",\n      alt: \"Team collaboration\",\n      title: \"Team Collaboration\",\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1659301254614-8d6a9d46f26a?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1000\",\n      alt: \"Innovation workshop\",\n      title: \"Innovation Workshops\",\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1568992688065-536aad8a12f6?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1000\",\n      alt: \"Team meeting\",\n      title: \"Strategic Planning\",\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1000\",\n      alt: \"Team celebration\",\n      title: \"Team Celebrations\",\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1530541930197-ff16ac917b0e?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1000\",\n      alt: \"Casual hangout\",\n      title: \"Casual Hangouts\",\n    },\n  ];\n</script>\n","category":"About","description":"Image Gallery About Section. Features: Gallery showcasing office and team culture","path":"About/BlockAbout9.vue","components":[]},{"name":"Ai Chat 1","fileName":"BlockAiChat1.vue","file":"<template>\n  <!--\n    AI chat in a centered column\n    Features: User messages in muted bubbles, assistant replies as plain text with copy and feedback actions, prompt box with send and stop buttons, simulated streaming reply and a polite live region\n  -->\n  <div class=\"mx-auto flex h-[40rem] w-full max-w-2xl flex-col\">\n    <div class=\"min-h-0 flex-1\">\n      <UiMessageScrollerProvider>\n        <UiMessageScroller>\n          <UiMessageScrollerViewport>\n            <UiMessageScrollerContent class=\"gap-6 px-4 py-6\">\n              <UiMessageScrollerItem\n                v-for=\"message in items\"\n                :key=\"message.id\"\n                :message-id=\"message.id\"\n                :scroll-anchor=\"message.role === 'user'\"\n              >\n                <UiMessage :align=\"message.role === 'user' ? 'end' : 'start'\">\n                  <UiMessageContent>\n                    <UiBubble :variant=\"message.role === 'user' ? 'muted' : 'ghost'\">\n                      <UiBubbleContent class=\"space-y-3 text-[15px] leading-relaxed\">\n                        <p v-for=\"(paragraph, index) in paragraphs(message.text)\" :key=\"index\">\n                          {{ paragraph }}\n                        </p>\n                        <span\n                          v-if=\"message.streaming\"\n                          class=\"bg-foreground inline-block h-4 w-0.5 animate-pulse align-middle motion-reduce:animate-none\"\n                        />\n                      </UiBubbleContent>\n                    </UiBubble>\n                    <UiMessageFooter\n                      v-if=\"message.role === 'assistant' && !message.streaming\"\n                      class=\"gap-1\"\n                    >\n                      <UiButton\n                        variant=\"ghost\"\n                        size=\"icon-sm\"\n                        aria-label=\"Copy\"\n                        @click=\"copyText(message.text)\"\n                      >\n                        <Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />\n                      </UiButton>\n                      <UiButton\n                        variant=\"ghost\"\n                        size=\"icon-sm\"\n                        aria-label=\"Good response\"\n                        @click=\"useSonner.info('Thanks for the feedback')\"\n                      >\n                        <Icon name=\"lucide:thumbs-up\" class=\"size-4\" />\n                      </UiButton>\n                      <UiButton\n                        variant=\"ghost\"\n                        size=\"icon-sm\"\n                        aria-label=\"Bad response\"\n                        @click=\"useSonner.info('Thanks for the feedback')\"\n                      >\n                        <Icon name=\"lucide:thumbs-down\" class=\"size-4\" />\n                      </UiButton>\n                    </UiMessageFooter>\n                  </UiMessageContent>\n                </UiMessage>\n              </UiMessageScrollerItem>\n            </UiMessageScrollerContent>\n          </UiMessageScrollerViewport>\n          <UiMessageScrollerButton />\n        </UiMessageScroller>\n      </UiMessageScrollerProvider>\n    </div>\n\n    <form class=\"px-4 pb-4\" @submit.prevent=\"send\">\n      <div\n        class=\"bg-background focus-within:ring-ring/30 flex items-end gap-2 rounded-3xl border p-2 pl-4 shadow-xs focus-within:ring-[3px]\"\n      >\n        <UiLabel for=\"ai1\" class=\"sr-only\">Message the assistant</UiLabel>\n        <UiTextarea\n          id=\"ai1\"\n          v-model=\"draft\"\n          :rows=\"1\"\n          placeholder=\"Ask anything\"\n          class=\"max-h-32 min-h-9 flex-1 resize-none border-0 bg-transparent px-0 py-2 shadow-none focus-visible:ring-0 dark:bg-transparent\"\n          @keydown.enter.exact.prevent=\"send\"\n        />\n        <UiButton\n          v-if=\"streaming\"\n          type=\"button\"\n          size=\"icon\"\n          class=\"rounded-full\"\n          aria-label=\"Stop generating\"\n          @click=\"stop\"\n        >\n          <Icon name=\"lucide:square\" class=\"size-4\" />\n        </UiButton>\n        <UiButton\n          v-else\n          type=\"submit\"\n          size=\"icon\"\n          class=\"rounded-full\"\n          :disabled=\"!draft.trim()\"\n          aria-label=\"Send message\"\n        >\n          <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n        </UiButton>\n      </div>\n      <p class=\"text-muted-foreground mt-2 text-center text-xs\">\n        The assistant can make mistakes. Check important info.\n      </p>\n    </form>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Message = { id: string; role: \"user\" | \"assistant\"; text: string; streaming?: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      messages?: Message[];\n      answer?: string;\n    }>(),\n    {\n      messages: () => [\n        { id: \"a1\", role: \"user\", text: \"Can you explain what a content delivery network does?\" },\n        {\n          id: \"a2\",\n          role: \"assistant\",\n          text: \"A content delivery network, or CDN, is a group of servers spread around the world that store copies of your files.\\n\\nWhen someone visits your site, the CDN serves files from the server closest to them. That makes pages load faster and takes pressure off your main server.\",\n        },\n      ],\n      answer:\n        \"Great question. Here is a short version.\\n\\nStart by writing down the goal in one sentence, then break it into the smallest steps you can finish today. Share the plan with one other person so there is a little accountability.\\n\\nIf you tell me more about your situation, I can make this much more specific.\",\n    }\n  );\n\n  const items = ref<Message[]>(props.messages.map((message) => ({ ...message })));\n  const draft = ref(\"\");\n  const streaming = ref(false);\n  let timer: ReturnType<typeof setInterval> | undefined;\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  const paragraphs = (text: string) => text.split(/\\n\\s*\\n/).filter(Boolean);\n  const copyText = (text: string) => copy(text);\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text || streaming.value) return;\n    items.value.push({ id: `u${items.value.length}`, role: \"user\", text });\n    draft.value = \"\";\n    const reply: Message = {\n      id: `r${items.value.length}`,\n      role: \"assistant\",\n      text: \"\",\n      streaming: true,\n    };\n    items.value.push(reply);\n    const target = items.value[items.value.length - 1]!;\n    streaming.value = true;\n    let index = 0;\n    timer = setInterval(() => {\n      index += 3;\n      target.text = props.answer.slice(0, index);\n      if (index >= props.answer.length) stop();\n    }, 30);\n  }\n\n  function stop() {\n    clearInterval(timer);\n    streaming.value = false;\n    const last = items.value[items.value.length - 1];\n    if (last) last.streaming = false;\n  }\n\n  onBeforeUnmount(() => clearInterval(timer));\n</script>\n","category":"AiChat","description":"AI chat in a centered column. Features: User messages in muted bubbles, assistant replies as plain text with copy and feedback actions, prompt box with send and stop buttons, simulated streaming reply and a polite live region","path":"Chat/AiChat/BlockAiChat1.vue","components":["bubble","button","label","message","message-scroller","textarea"]},{"name":"Ai Chat 2","fileName":"BlockAiChat2.vue","file":"<template>\n  <!--\n    AI chat welcome screen with suggestion cards\n    Features: Greeting heading, four suggestion cards that start a conversation when clicked, a prompt box that stays at the bottom, a new chat button that returns to the welcome screen and keyboard friendly cards\n  -->\n  <div class=\"mx-auto flex h-[40rem] w-full max-w-2xl flex-col\">\n    <div class=\"flex items-center justify-between px-4 py-3\">\n      <span class=\"font-semibold\">{{ name }}</span>\n      <UiButton variant=\"ghost\" size=\"sm\" :disabled=\"!started\" @click=\"reset\">\n        <Icon name=\"lucide:square-pen\" class=\"size-4\" />\n        New chat\n      </UiButton>\n    </div>\n\n    <div v-if=\"!started\" class=\"flex flex-1 flex-col items-center justify-center px-4 text-center\">\n      <span class=\"bg-primary text-primary-foreground grid size-12 place-items-center rounded-2xl\">\n        <Icon name=\"lucide:sparkles\" class=\"size-6\" />\n      </span>\n      <h1 class=\"mt-5 text-2xl font-bold tracking-tight text-balance\">How can I help you today?</h1>\n      <ul class=\"mt-8 grid w-full gap-3 sm:grid-cols-2\">\n        <li v-for=\"item in suggestions\" :key=\"item.title\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-muted/60 focus-visible:ring-ring/50 flex h-full w-full flex-col items-start gap-1 rounded-xl border p-4 text-left transition outline-none focus-visible:ring-[3px]\"\n            @click=\"ask(item.prompt)\"\n          >\n            <Icon :name=\"item.icon\" class=\"text-muted-foreground size-4\" />\n            <span class=\"text-sm font-medium\">{{ item.title }}</span>\n            <span class=\"text-muted-foreground line-clamp-2 text-xs\">{{ item.prompt }}</span>\n          </button>\n        </li>\n      </ul>\n    </div>\n\n    <div v-else class=\"min-h-0 flex-1\">\n      <UiMessageScrollerProvider>\n        <UiMessageScroller>\n          <UiMessageScrollerViewport>\n            <UiMessageScrollerContent class=\"gap-6 px-4 py-4\">\n              <UiMessageScrollerItem\n                v-for=\"message in items\"\n                :key=\"message.id\"\n                :message-id=\"message.id\"\n                :scroll-anchor=\"message.role === 'user'\"\n              >\n                <UiMessage :align=\"message.role === 'user' ? 'end' : 'start'\">\n                  <UiMessageContent>\n                    <UiBubble :variant=\"message.role === 'user' ? 'muted' : 'ghost'\">\n                      <UiBubbleContent class=\"text-[15px] leading-relaxed\">{{\n                        message.text\n                      }}</UiBubbleContent>\n                    </UiBubble>\n                  </UiMessageContent>\n                </UiMessage>\n              </UiMessageScrollerItem>\n            </UiMessageScrollerContent>\n          </UiMessageScrollerViewport>\n        </UiMessageScroller>\n      </UiMessageScrollerProvider>\n    </div>\n\n    <form class=\"px-4 pb-4\" @submit.prevent=\"ask(draft)\">\n      <div class=\"bg-background flex items-center gap-2 rounded-full border p-1.5 pl-4 shadow-xs\">\n        <UiLabel for=\"ai2\" class=\"sr-only\">Message the assistant</UiLabel>\n        <input\n          id=\"ai2\"\n          v-model=\"draft\"\n          type=\"text\"\n          placeholder=\"Ask anything\"\n          autocomplete=\"off\"\n          class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent text-sm outline-none\"\n        />\n        <UiButton\n          type=\"submit\"\n          size=\"icon\"\n          class=\"rounded-full\"\n          :disabled=\"!draft.trim()\"\n          aria-label=\"Send message\"\n        >\n          <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </form>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Suggestion = { title: string; prompt: string; icon: string };\n  type Message = { id: string; role: \"user\" | \"assistant\"; text: string };\n\n  withDefaults(\n    defineProps<{\n      name?: string;\n      suggestions?: Suggestion[];\n    }>(),\n    {\n      name: \"Assistant\",\n      suggestions: () => [\n        {\n          title: \"Plan a trip\",\n          prompt: \"Plan a relaxed 3 day trip to Lisbon with great food\",\n          icon: \"lucide:plane\",\n        },\n        {\n          title: \"Write an email\",\n          prompt: \"Write a friendly email asking a client for feedback\",\n          icon: \"lucide:mail\",\n        },\n        {\n          title: \"Learn something\",\n          prompt: \"Explain how vaccines train the immune system\",\n          icon: \"lucide:graduation-cap\",\n        },\n        {\n          title: \"Debug code\",\n          prompt: \"Why does my loop skip the last item in this array?\",\n          icon: \"lucide:bug\",\n        },\n      ],\n    }\n  );\n\n  const draft = ref(\"\");\n  const items = ref<Message[]>([]);\n  const started = computed(() => items.value.length > 0);\n  const timers: ReturnType<typeof setTimeout>[] = [];\n\n  function ask(prompt: string) {\n    const text = prompt.trim();\n    if (!text) return;\n    items.value.push({ id: `u${items.value.length}`, role: \"user\", text });\n    draft.value = \"\";\n    timers.push(\n      setTimeout(() => {\n        items.value.push({\n          id: `a${items.value.length}`,\n          role: \"assistant\",\n          text: \"Happy to help with that. Here is a good starting point, and we can refine it together as you share more details.\",\n        });\n      }, 700)\n    );\n  }\n\n  function reset() {\n    items.value = [];\n  }\n\n  onBeforeUnmount(() => timers.forEach(clearTimeout));\n</script>\n","category":"AiChat","description":"AI chat welcome screen with suggestion cards. Features: Greeting heading, four suggestion cards that start a conversation when clicked, a prompt box that stays at the bottom, a new chat button that returns to the welcome screen and keyboard friendly cards","path":"Chat/AiChat/BlockAiChat2.vue","components":["bubble","button","label","message","message-scroller"]},{"name":"Ai Chat 3","fileName":"BlockAiChat3.vue","file":"<template>\n  <!--\n    AI chat with a thinking state and streaming reply\n    Features: Shimmering skeleton lines while the assistant is thinking, a collapsible reasoning summary, text that streams in with a caret, a stop generating button and motion that is reduced for people who prefer it\n  -->\n  <div class=\"mx-auto flex h-[38rem] w-full max-w-2xl flex-col\">\n    <div class=\"min-h-0 flex-1\">\n      <UiMessageScrollerProvider>\n        <UiMessageScroller>\n          <UiMessageScrollerViewport>\n            <UiMessageScrollerContent class=\"gap-6 px-4 py-6\">\n              <UiMessageScrollerItem message-id=\"user\">\n                <UiMessage align=\"end\">\n                  <UiMessageContent>\n                    <UiBubble variant=\"muted\">\n                      <UiBubbleContent>{{ question }}</UiBubbleContent>\n                    </UiBubble>\n                  </UiMessageContent>\n                </UiMessage>\n              </UiMessageScrollerItem>\n\n              <UiMessageScrollerItem v-if=\"phase !== 'idle'\" message-id=\"assistant\">\n                <UiMessage>\n                  <UiMessageContent class=\"w-full\">\n                    <div\n                      v-if=\"phase === 'thinking'\"\n                      class=\"w-full max-w-md space-y-2.5 py-1\"\n                      role=\"status\"\n                      aria-label=\"The assistant is thinking\"\n                    >\n                      <p class=\"text-muted-foreground flex items-center gap-2 text-sm\">\n                        <Icon\n                          name=\"lucide:sparkles\"\n                          class=\"size-4 animate-pulse motion-reduce:animate-none\"\n                        />\n                        Thinking…\n                      </p>\n                      <UiSkeleton class=\"h-3.5 w-full\" />\n                      <UiSkeleton class=\"h-3.5 w-11/12\" />\n                      <UiSkeleton class=\"h-3.5 w-3/5\" />\n                    </div>\n                    <template v-else>\n                      <UiCollapsible class=\"mb-2\">\n                        <UiCollapsibleTrigger as-child>\n                          <button\n                            type=\"button\"\n                            class=\"text-muted-foreground hover:text-foreground flex items-center gap-1.5 text-sm\"\n                          >\n                            <Icon name=\"lucide:brain\" class=\"size-4\" />\n                            Thought for {{ thoughtFor }} seconds\n                            <Icon name=\"lucide:chevron-down\" class=\"size-3.5\" />\n                          </button>\n                        </UiCollapsibleTrigger>\n                        <UiCollapsibleContent>\n                          <p class=\"text-muted-foreground mt-2 border-l-2 pl-3 text-sm\">\n                            Compared the two options on cost, setup time and long term flexibility,\n                            then picked the one that fits a small team.\n                          </p>\n                        </UiCollapsibleContent>\n                      </UiCollapsible>\n                      <UiBubble variant=\"ghost\">\n                        <UiBubbleContent class=\"text-[15px] leading-relaxed\">\n                          {{ shown\n                          }}<span\n                            v-if=\"phase === 'streaming'\"\n                            class=\"bg-foreground ml-0.5 inline-block h-4 w-0.5 animate-pulse align-middle motion-reduce:animate-none\"\n                          />\n                        </UiBubbleContent>\n                      </UiBubble>\n                    </template>\n                  </UiMessageContent>\n                </UiMessage>\n              </UiMessageScrollerItem>\n            </UiMessageScrollerContent>\n          </UiMessageScrollerViewport>\n        </UiMessageScroller>\n      </UiMessageScrollerProvider>\n    </div>\n\n    <div class=\"flex items-center justify-center gap-2 px-4 pb-4\">\n      <UiButton v-if=\"phase === 'idle'\" @click=\"start\">\n        <Icon name=\"lucide:play\" class=\"size-4\" />\n        Ask the question\n      </UiButton>\n      <UiButton v-else-if=\"phase !== 'done'\" variant=\"outline\" @click=\"stop\">\n        <Icon name=\"lucide:square\" class=\"size-4\" />\n        Stop generating\n      </UiButton>\n      <UiButton v-else variant=\"outline\" @click=\"reset\">\n        <Icon name=\"lucide:rotate-ccw\" class=\"size-4\" />\n        Try again\n      </UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      question?: string;\n      answer?: string;\n    }>(),\n    {\n      question: \"Should a small team start with a monolith or microservices?\",\n      answer:\n        \"Start with a well organized monolith. You will ship faster, debugging is simpler and you avoid the operational cost of running many services. Draw clear module boundaries so you can split out a service later if one part really needs to scale on its own.\",\n    }\n  );\n\n  const phase = ref<\"idle\" | \"thinking\" | \"streaming\" | \"done\">(\"idle\");\n  const shown = ref(\"\");\n  const thoughtFor = ref(2);\n  const timers: ReturnType<typeof setTimeout | typeof setInterval>[] = [];\n\n  function clear() {\n    timers.forEach((timer) => {\n      clearTimeout(timer as ReturnType<typeof setTimeout>);\n      clearInterval(timer as ReturnType<typeof setInterval>);\n    });\n    timers.length = 0;\n  }\n\n  function start() {\n    clear();\n    shown.value = \"\";\n    phase.value = \"thinking\";\n    timers.push(\n      setTimeout(() => {\n        phase.value = \"streaming\";\n        let index = 0;\n        timers.push(\n          setInterval(() => {\n            index += 4;\n            shown.value = props.answer.slice(0, index);\n            if (index >= props.answer.length) {\n              clear();\n              phase.value = \"done\";\n            }\n          }, 30)\n        );\n      }, 1800)\n    );\n  }\n\n  function stop() {\n    clear();\n    phase.value = shown.value ? \"done\" : \"idle\";\n  }\n\n  function reset() {\n    clear();\n    phase.value = \"idle\";\n    shown.value = \"\";\n  }\n\n  onBeforeUnmount(clear);\n</script>\n","category":"AiChat","description":"AI chat with a thinking state and streaming reply. Features: Shimmering skeleton lines while the assistant is thinking, a collapsible reasoning summary, text that streams in with a caret, a stop generating button and motion that is reduced for people who prefer it","path":"Chat/AiChat/BlockAiChat3.vue","components":["bubble","button","collapsible","message","message-scroller","skeleton"]},{"name":"Ai Chat 4","fileName":"BlockAiChat4.vue","file":"<template>\n  <!--\n    AI chat with tool call steps\n    Features: Collapsible trace of the steps the assistant took, running and finished states with icons, step details with arguments and results, a final answer with sources and a replay button\n  -->\n  <div class=\"mx-auto flex h-[40rem] w-full max-w-2xl flex-col\">\n    <div class=\"min-h-0 flex-1\">\n      <UiMessageScrollerProvider>\n        <UiMessageScroller>\n          <UiMessageScrollerViewport>\n            <UiMessageScrollerContent class=\"gap-6 px-4 py-6\">\n              <UiMessageScrollerItem message-id=\"q\">\n                <UiMessage align=\"end\">\n                  <UiMessageContent>\n                    <UiBubble variant=\"muted\">\n                      <UiBubbleContent>{{ question }}</UiBubbleContent>\n                    </UiBubble>\n                  </UiMessageContent>\n                </UiMessage>\n              </UiMessageScrollerItem>\n\n              <UiMessageScrollerItem message-id=\"a\">\n                <UiMessage>\n                  <UiMessageContent class=\"w-full\">\n                    <UiTrace class=\"w-full\">\n                      <UiTraceCollapsible\n                        v-for=\"(step, index) in steps\"\n                        :key=\"step.title\"\n                        :default-open=\"false\"\n                      >\n                        <template v-if=\"index < visible\">\n                          <UiTraceCollapsibleTrigger>\n                            <UiTraceLine>\n                              <UiTraceIcon\n                                :name=\"\n                                  index === visible - 1 && running\n                                    ? 'lucide:loader-circle'\n                                    : step.icon\n                                \"\n                                :class=\"\n                                  index === visible - 1 && running\n                                    ? 'animate-spin motion-reduce:animate-none'\n                                    : ''\n                                \"\n                              />\n                              <UiTraceTitle>{{ step.title }}</UiTraceTitle>\n                            </UiTraceLine>\n                          </UiTraceCollapsibleTrigger>\n                          <UiTraceCollapsibleContent>\n                            <p class=\"font-mono text-xs\">{{ step.args }}</p>\n                            <p class=\"mt-1\">{{ step.result }}</p>\n                          </UiTraceCollapsibleContent>\n                        </template>\n                      </UiTraceCollapsible>\n                    </UiTrace>\n\n                    <template v-if=\"!running && visible >= steps.length\">\n                      <UiBubble variant=\"ghost\" class=\"mt-3\">\n                        <UiBubbleContent class=\"text-[15px] leading-relaxed\">{{\n                          answer\n                        }}</UiBubbleContent>\n                      </UiBubble>\n                      <ul class=\"mt-3 flex flex-wrap gap-2\" aria-label=\"Sources\">\n                        <li v-for=\"source in sources\" :key=\"source.label\">\n                          <a\n                            :href=\"source.href\"\n                            class=\"hover:bg-muted flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs\"\n                            @click.prevent=\"useSonner.info(`Opening ${source.label}`)\"\n                          >\n                            <Icon name=\"lucide:globe\" class=\"size-3.5\" />\n                            {{ source.label }}\n                          </a>\n                        </li>\n                      </ul>\n                    </template>\n                  </UiMessageContent>\n                </UiMessage>\n              </UiMessageScrollerItem>\n            </UiMessageScrollerContent>\n          </UiMessageScrollerViewport>\n        </UiMessageScroller>\n      </UiMessageScrollerProvider>\n    </div>\n\n    <div class=\"flex justify-center px-4 pb-4\">\n      <UiButton variant=\"outline\" :disabled=\"running\" @click=\"play\">\n        <Icon name=\"lucide:rotate-ccw\" class=\"size-4\" />\n        {{ running ? \"Working…\" : \"Replay\" }}\n      </UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Step = { title: string; icon: string; args: string; result: string };\n\n  const props = withDefaults(\n    defineProps<{\n      question?: string;\n      answer?: string;\n      steps?: Step[];\n      sources?: { label: string; href: string }[];\n    }>(),\n    {\n      question: \"How many people live in Lisbon, and how has it changed since 2010?\",\n      answer:\n        \"Lisbon has roughly 550,000 residents in the city proper, and about 2.9 million in the wider metropolitan area. The city has grown by around 3 percent since 2010, after years of decline.\",\n      steps: () => [\n        {\n          title: \"Searched the web\",\n          icon: \"lucide:search\",\n          args: 'search({ query: \"Lisbon population 2024\" })',\n          result: \"Found 6 results from official statistics pages.\",\n        },\n        {\n          title: \"Read statistics portal\",\n          icon: \"lucide:file-text\",\n          args: 'open({ url: \"stats.example/lisbon\" })',\n          result: \"City population 2024: 552,700. Census 2011: 547,733.\",\n        },\n        {\n          title: \"Calculated the change\",\n          icon: \"lucide:calculator\",\n          args: \"calc((552700 - 547733) / 547733)\",\n          result: \"0.9 percent since the 2011 census.\",\n        },\n      ],\n      sources: () => [\n        { label: \"stats.example\", href: \"#stats\" },\n        { label: \"city-portal.example\", href: \"#city\" },\n      ],\n    }\n  );\n\n  const visible = ref(0);\n  const running = ref(false);\n  const timers: ReturnType<typeof setTimeout>[] = [];\n\n  function play() {\n    timers.forEach(clearTimeout);\n    visible.value = 0;\n    running.value = true;\n    props.steps.forEach((_, index) => {\n      timers.push(setTimeout(() => (visible.value = index + 1), 700 * (index + 1)));\n    });\n    timers.push(setTimeout(() => (running.value = false), 700 * props.steps.length + 600));\n  }\n\n  onMounted(() => {\n    visible.value = props.steps.length;\n  });\n  onBeforeUnmount(() => timers.forEach(clearTimeout));\n</script>\n","category":"AiChat","description":"AI chat with tool call steps. Features: Collapsible trace of the steps the assistant took, running and finished states with icons, step details with arguments and results, a final answer with sources and a replay button","path":"Chat/AiChat/BlockAiChat4.vue","components":["bubble","button","message","message-scroller","trace"]},{"name":"Ai Chat 5","fileName":"BlockAiChat5.vue","file":"<template>\n  <!--\n    AI chat with a model picker\n    Features: Dropdown in the header with radio items, model badges for speed and capability, selected model shown on each answer and in the prompt box and a switch that changes the next reply\n  -->\n  <div class=\"mx-auto flex h-[38rem] w-full max-w-2xl flex-col\">\n    <div class=\"flex items-center justify-between border-b px-4 py-3\">\n      <UiDropdownMenu>\n        <UiDropdownMenuTrigger as-child>\n          <UiButton variant=\"ghost\" class=\"gap-2 font-semibold\">\n            {{ current.name }}\n            <Icon name=\"lucide:chevron-down\" class=\"size-4\" />\n          </UiButton>\n        </UiDropdownMenuTrigger>\n        <UiDropdownMenuContent align=\"start\" class=\"w-72\">\n          <UiDropdownMenuLabel>Choose a model</UiDropdownMenuLabel>\n          <UiDropdownMenuRadioGroup v-model=\"selected\">\n            <UiDropdownMenuRadioItem\n              v-for=\"model in models\"\n              :key=\"model.id\"\n              :value=\"model.id\"\n              class=\"items-start py-2\"\n            >\n              <span class=\"flex flex-col\">\n                <span class=\"flex items-center gap-2 font-medium\">\n                  {{ model.name }}\n                  <UiBadge variant=\"soft\" :color=\"model.color\" shape=\"pill\">{{\n                    model.tag\n                  }}</UiBadge>\n                </span>\n                <span class=\"text-muted-foreground text-xs\">{{ model.description }}</span>\n              </span>\n            </UiDropdownMenuRadioItem>\n          </UiDropdownMenuRadioGroup>\n        </UiDropdownMenuContent>\n      </UiDropdownMenu>\n      <UiButton variant=\"ghost\" size=\"icon-sm\" aria-label=\"Clear chat\" @click=\"items = []\">\n        <Icon name=\"lucide:trash-2\" class=\"size-4\" />\n      </UiButton>\n    </div>\n\n    <div class=\"min-h-0 flex-1\">\n      <UiMessageScrollerProvider>\n        <UiMessageScroller>\n          <UiMessageScrollerViewport>\n            <UiMessageScrollerContent class=\"gap-6 px-4 py-6\">\n              <p v-if=\"!items.length\" class=\"text-muted-foreground py-16 text-center text-sm\">\n                Pick a model and send a message. Each answer is labelled with the model that wrote\n                it.\n              </p>\n              <UiMessageScrollerItem\n                v-for=\"message in items\"\n                :key=\"message.id\"\n                :message-id=\"message.id\"\n                :scroll-anchor=\"message.role === 'user'\"\n              >\n                <UiMessage :align=\"message.role === 'user' ? 'end' : 'start'\">\n                  <UiMessageContent>\n                    <UiBubble :variant=\"message.role === 'user' ? 'muted' : 'ghost'\">\n                      <UiBubbleContent class=\"text-[15px] leading-relaxed\">{{\n                        message.text\n                      }}</UiBubbleContent>\n                    </UiBubble>\n                    <UiMessageFooter v-if=\"message.model\">{{ message.model }}</UiMessageFooter>\n                  </UiMessageContent>\n                </UiMessage>\n              </UiMessageScrollerItem>\n            </UiMessageScrollerContent>\n          </UiMessageScrollerViewport>\n        </UiMessageScroller>\n      </UiMessageScrollerProvider>\n    </div>\n\n    <form class=\"px-4 pb-4\" @submit.prevent=\"send\">\n      <div class=\"bg-background flex items-center gap-2 rounded-full border p-1.5 pl-3 shadow-xs\">\n        <UiBadge variant=\"secondary\" class=\"shrink-0\">{{ current.name }}</UiBadge>\n        <UiLabel for=\"ai5\" class=\"sr-only\">Message the assistant</UiLabel>\n        <input\n          id=\"ai5\"\n          v-model=\"draft\"\n          type=\"text\"\n          placeholder=\"Ask anything\"\n          autocomplete=\"off\"\n          class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent text-sm outline-none\"\n        />\n        <UiButton\n          type=\"submit\"\n          size=\"icon\"\n          class=\"rounded-full\"\n          :disabled=\"!draft.trim()\"\n          aria-label=\"Send message\"\n        >\n          <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </form>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Model = {\n    id: string;\n    name: string;\n    tag: string;\n    color: \"green\" | \"blue\" | \"purple\";\n    description: string;\n    reply: string;\n  };\n  type Message = { id: string; role: \"user\" | \"assistant\"; text: string; model?: string };\n\n  const props = withDefaults(\n    defineProps<{\n      models?: Model[];\n    }>(),\n    {\n      models: () => [\n        {\n          id: \"swift\",\n          name: \"Swift\",\n          tag: \"Fast\",\n          color: \"green\",\n          description: \"Quick answers for everyday questions.\",\n          reply: \"Here is a quick answer: keep it simple and start small.\",\n        },\n        {\n          id: \"balanced\",\n          name: \"Balanced\",\n          tag: \"Default\",\n          color: \"blue\",\n          description: \"Great mix of speed and quality.\",\n          reply:\n            \"Here is a balanced take. Start small, measure what happens and adjust based on what you learn.\",\n        },\n        {\n          id: \"deep\",\n          name: \"Deep\",\n          tag: \"Smartest\",\n          color: \"purple\",\n          description: \"Best for complex, multi step problems.\",\n          reply:\n            \"Let me think this through carefully. There are three factors to weigh: effort, risk and reversibility. Start with the option that scores best on reversibility, because it keeps your choices open while you gather evidence.\",\n        },\n      ],\n    }\n  );\n\n  const selected = ref(\"balanced\");\n  const draft = ref(\"\");\n  const items = ref<Message[]>([]);\n  const timers: ReturnType<typeof setTimeout>[] = [];\n\n  const current = computed(\n    () => props.models.find((model) => model.id === selected.value) ?? props.models[0]!\n  );\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text) return;\n    const model = current.value;\n    items.value.push({ id: `u${items.value.length}`, role: \"user\", text });\n    draft.value = \"\";\n    timers.push(\n      setTimeout(() => {\n        items.value.push({\n          id: `a${items.value.length}`,\n          role: \"assistant\",\n          text: model.reply,\n          model: model.name,\n        });\n      }, 600)\n    );\n  }\n\n  onBeforeUnmount(() => timers.forEach(clearTimeout));\n</script>\n","category":"AiChat","description":"AI chat with a model picker. Features: Dropdown in the header with radio items, model badges for speed and capability, selected model shown on each answer and in the prompt box and a switch that changes the next reply","path":"Chat/AiChat/BlockAiChat5.vue","components":["badge","bubble","button","dropdown-menu","label","message","message-scroller"]},{"name":"Ai Chat 6","fileName":"BlockAiChat6.vue","file":"<template>\n  <!--\n    AI chat with a history sidebar\n    Features: Sidebar with a new chat button, search, conversations grouped by day, active conversation highlight, rename and delete actions in a menu, collapses to a drawer on small screens and a main chat area\n  -->\n  <div class=\"mx-auto flex h-[40rem] w-full max-w-5xl overflow-hidden rounded-xl border\">\n    <aside\n      class=\"bg-muted/30 hidden w-64 shrink-0 flex-col border-r md:flex\"\n      aria-label=\"Chat history\"\n    >\n      <div class=\"space-y-2 p-3\">\n        <UiButton class=\"w-full justify-start\" variant=\"outline\" @click=\"newChat\">\n          <Icon name=\"lucide:square-pen\" class=\"size-4\" />\n          New chat\n        </UiButton>\n        <div class=\"relative\">\n          <UiLabel for=\"ai6-search\" class=\"sr-only\">Search chats</UiLabel>\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            id=\"ai6-search\"\n            v-model=\"query\"\n            placeholder=\"Search chats\"\n            class=\"h-8 pl-8 text-sm\"\n          />\n        </div>\n      </div>\n      <UiScrollArea class=\"min-h-0 flex-1\">\n        <nav class=\"px-2 pb-3\">\n          <section v-for=\"group in groups\" :key=\"group.label\" class=\"mt-2\">\n            <h2 class=\"text-muted-foreground px-2 py-1 text-xs font-medium\">{{ group.label }}</h2>\n            <ul>\n              <li v-for=\"chat in group.items\" :key=\"chat.id\" class=\"group/chat relative\">\n                <button\n                  type=\"button\"\n                  class=\"hover:bg-accent focus-visible:ring-ring/50 flex w-full items-center rounded-md px-2 py-1.5 pr-8 text-left text-sm outline-none focus-visible:ring-[3px]\"\n                  :class=\"chat.id === active ? 'bg-accent font-medium' : ''\"\n                  :aria-current=\"chat.id === active ? 'page' : undefined\"\n                  @click=\"active = chat.id\"\n                >\n                  <span class=\"truncate\">{{ chat.title }}</span>\n                </button>\n                <UiDropdownMenu>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"absolute top-1/2 right-1 size-6 -translate-y-1/2 opacity-0 group-focus-within/chat:opacity-100 group-hover/chat:opacity-100 data-[state=open]:opacity-100\"\n                      :aria-label=\"`Options for ${chat.title}`\"\n                    >\n                      <Icon name=\"lucide:ellipsis\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                  <UiDropdownMenuContent align=\"start\">\n                    <UiDropdownMenuItem @select=\"useSonner.info('Open your rename dialog here')\">\n                      <Icon name=\"lucide:pencil\" class=\"size-4\" />\n                      Rename\n                    </UiDropdownMenuItem>\n                    <UiDropdownMenuItem variant=\"destructive\" @select=\"remove(chat.id)\">\n                      <Icon name=\"lucide:trash-2\" class=\"size-4\" />\n                      Delete\n                    </UiDropdownMenuItem>\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </li>\n            </ul>\n          </section>\n          <p v-if=\"!groups.length\" class=\"text-muted-foreground px-2 py-6 text-center text-sm\">\n            No chats found.\n          </p>\n        </nav>\n      </UiScrollArea>\n    </aside>\n\n    <div class=\"flex min-w-0 flex-1 flex-col\">\n      <div class=\"flex items-center gap-2 border-b px-4 py-3\">\n        <h1 class=\"min-w-0 flex-1 truncate font-semibold\">{{ activeChat?.title ?? \"New chat\" }}</h1>\n      </div>\n      <div class=\"min-h-0 flex-1 space-y-5 overflow-y-auto px-4 py-6\">\n        <template v-if=\"activeChat\">\n          <UiMessage\n            v-for=\"(message, index) in activeChat.messages\"\n            :key=\"index\"\n            :align=\"message.role === 'user' ? 'end' : 'start'\"\n          >\n            <UiMessageContent>\n              <UiBubble :variant=\"message.role === 'user' ? 'muted' : 'ghost'\">\n                <UiBubbleContent class=\"text-[15px] leading-relaxed\">{{\n                  message.text\n                }}</UiBubbleContent>\n              </UiBubble>\n            </UiMessageContent>\n          </UiMessage>\n        </template>\n        <p v-else class=\"text-muted-foreground py-20 text-center text-sm\">\n          Start a new conversation.\n        </p>\n      </div>\n      <form class=\"p-4\" @submit.prevent=\"send\">\n        <div class=\"bg-background flex items-center gap-2 rounded-full border p-1.5 pl-4 shadow-xs\">\n          <UiLabel for=\"ai6\" class=\"sr-only\">Message the assistant</UiLabel>\n          <input\n            id=\"ai6\"\n            v-model=\"draft\"\n            type=\"text\"\n            placeholder=\"Ask anything\"\n            autocomplete=\"off\"\n            class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent text-sm outline-none\"\n          />\n          <UiButton\n            type=\"submit\"\n            size=\"icon\"\n            class=\"rounded-full\"\n            :disabled=\"!draft.trim()\"\n            aria-label=\"Send message\"\n          >\n            <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n          </UiButton>\n        </div>\n      </form>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Message = { role: \"user\" | \"assistant\"; text: string };\n  type Chat = {\n    id: string;\n    title: string;\n    day: \"Today\" | \"Yesterday\" | \"Previous 7 days\";\n    messages: Message[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      chats?: Chat[];\n    }>(),\n    {\n      chats: () => [\n        {\n          id: \"c1\",\n          title: \"Weekend trip ideas\",\n          day: \"Today\",\n          messages: [\n            { role: \"user\", text: \"Give me three ideas for a weekend trip near the coast.\" },\n            {\n              role: \"assistant\",\n              text: \"Try a fishing village with a beach walk, a seaside town with museums, or a quiet cabin near the dunes. I can build an itinerary for any of them.\",\n            },\n          ],\n        },\n        {\n          id: \"c2\",\n          title: \"Fix flaky unit test\",\n          day: \"Today\",\n          messages: [\n            { role: \"user\", text: \"My test fails once every ten runs. Why?\" },\n            {\n              role: \"assistant\",\n              text: \"That usually points to shared state or timing. Check for timers, random data and tests that depend on running order.\",\n            },\n          ],\n        },\n        {\n          id: \"c3\",\n          title: \"Birthday message for Mum\",\n          day: \"Yesterday\",\n          messages: [\n            { role: \"user\", text: \"Write a short, warm birthday message for my mum.\" },\n            {\n              role: \"assistant\",\n              text: \"Happy birthday, Mum! Thank you for every bit of advice, every laugh and every hug. I hope today is as wonderful as you are.\",\n            },\n          ],\n        },\n        {\n          id: \"c4\",\n          title: \"Spreadsheet formulas\",\n          day: \"Previous 7 days\",\n          messages: [\n            { role: \"user\", text: \"How do I sum a column only if the next column says paid?\" },\n            {\n              role: \"assistant\",\n              text: 'Use SUMIF. For example, SUMIF(B:B, \"paid\", A:A) adds the values in column A where column B says paid.',\n            },\n          ],\n        },\n      ],\n    }\n  );\n\n  const chats = ref<Chat[]>(\n    props.chats.map((chat) => ({\n      ...chat,\n      messages: chat.messages.map((message) => ({ ...message })),\n    }))\n  );\n  const active = ref(chats.value[0]?.id ?? \"\");\n  const draft = ref(\"\");\n  const query = ref(\"\");\n  const timers: ReturnType<typeof setTimeout>[] = [];\n\n  const activeChat = computed(() => chats.value.find((chat) => chat.id === active.value));\n\n  const groups = computed(() => {\n    const term = query.value.trim().toLowerCase();\n    return ([\"Today\", \"Yesterday\", \"Previous 7 days\"] as const)\n      .map((label) => ({\n        label,\n        items: chats.value.filter(\n          (chat) => chat.day === label && (!term || chat.title.toLowerCase().includes(term))\n        ),\n      }))\n      .filter((group) => group.items.length);\n  });\n\n  function newChat() {\n    active.value = \"\";\n  }\n\n  function remove(id: string) {\n    chats.value = chats.value.filter((chat) => chat.id !== id);\n    if (active.value === id) active.value = chats.value[0]?.id ?? \"\";\n  }\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text) return;\n    let chat = activeChat.value;\n    if (!chat) {\n      chat = {\n        id: `c${chats.value.length + 10}`,\n        title: text.slice(0, 32),\n        day: \"Today\",\n        messages: [],\n      };\n      chats.value.unshift(chat);\n      active.value = chat.id;\n    }\n    const target = chats.value.find((item) => item.id === chat!.id)!;\n    target.messages.push({ role: \"user\", text });\n    draft.value = \"\";\n    timers.push(\n      setTimeout(\n        () =>\n          target.messages.push({\n            role: \"assistant\",\n            text: \"Got it. Let me look into that and get back to you with a clear answer.\",\n          }),\n        600\n      )\n    );\n  }\n\n  onBeforeUnmount(() => timers.forEach(clearTimeout));\n</script>\n","category":"AiChat","description":"AI chat with a history sidebar. Features: Sidebar with a new chat button, search, conversations grouped by day, active conversation highlight, rename and delete actions in a menu, collapses to a drawer on small screens and a main chat area","path":"Chat/AiChat/BlockAiChat6.vue","components":["bubble","button","dropdown-menu","input","label","message","scroll-area"]},{"name":"Settings Api Keys Create","fileName":"BlockSettingsApiKeysCreate.vue","file":"<template>\n  <!--\n    Create API key flow\n    Features: A dialog with a name, a test or live environment, an expiry select and an optional IP allow list, validation for names and IP ranges, a second step that shows the secret once with a copy button and a confirmation checkbox that unlocks the done button\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>API keys</UiCardTitle>\n      <UiCardDescription\n        >Create a key for each app or server so you can revoke them one by one.</UiCardDescription\n      >\n      <UiCardAction>\n        <UiDialog v-model:open=\"open\">\n          <UiDialogTrigger as-child>\n            <UiButton size=\"sm\"><Icon name=\"lucide:plus\" class=\"size-4\" />Create key</UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent\n            class=\"sm:max-w-md\"\n            @interact-outside=\"(event) => secret && event.preventDefault()\"\n          >\n            <template v-if=\"!secret\">\n              <UiDialogHeader>\n                <UiDialogTitle>Create API key</UiDialogTitle>\n                <UiDialogDescription\n                  >Name the key and decide where it can be used.</UiDialogDescription\n                >\n              </UiDialogHeader>\n              <form class=\"grid gap-4\" novalidate @submit.prevent=\"create\">\n                <div class=\"grid gap-2\">\n                  <UiLabel for=\"ck-name\">Name</UiLabel>\n                  <UiInput\n                    id=\"ck-name\"\n                    v-model=\"form.name\"\n                    placeholder=\"For example Production server\"\n                    :aria-invalid=\"!!errors.name\"\n                  />\n                  <p v-if=\"errors.name\" class=\"text-destructive text-sm\">{{ errors.name }}</p>\n                </div>\n                <div class=\"grid gap-2\">\n                  <p id=\"ck-env\" class=\"text-sm font-medium\">Environment</p>\n                  <UiToggleGroup\n                    :model-value=\"form.env\"\n                    type=\"single\"\n                    variant=\"outline\"\n                    class=\"w-full\"\n                    aria-labelledby=\"ck-env\"\n                    @update:model-value=\"\n                      (value) => (form.env = (value as 'test' | 'live') || 'test')\n                    \"\n                  >\n                    <UiToggleGroupItem value=\"test\" class=\"flex-1\">Test</UiToggleGroupItem>\n                    <UiToggleGroupItem value=\"live\" class=\"flex-1\">Live</UiToggleGroupItem>\n                  </UiToggleGroup>\n                </div>\n                <div class=\"grid gap-2\">\n                  <UiLabel for=\"ck-expiry\">Expires</UiLabel>\n                  <UiSelect v-model=\"form.expiry\">\n                    <UiSelectTrigger id=\"ck-expiry\"><UiSelectValue /></UiSelectTrigger>\n                    <UiSelectContent>\n                      <UiSelectItem value=\"30\">In 30 days</UiSelectItem>\n                      <UiSelectItem value=\"90\">In 90 days</UiSelectItem>\n                      <UiSelectItem value=\"365\">In 1 year</UiSelectItem>\n                      <UiSelectItem value=\"never\">Never</UiSelectItem>\n                    </UiSelectContent>\n                  </UiSelect>\n                </div>\n                <div class=\"grid gap-2\">\n                  <UiLabel for=\"ck-ips\">IP allow list (optional)</UiLabel>\n                  <UiTextarea\n                    id=\"ck-ips\"\n                    v-model=\"form.ips\"\n                    :rows=\"3\"\n                    placeholder=\"One address or range per line, for example 203.0.113.0/24\"\n                    :aria-invalid=\"!!errors.ips\"\n                  />\n                  <p v-if=\"errors.ips\" class=\"text-destructive text-sm\">{{ errors.ips }}</p>\n                  <p v-else class=\"text-muted-foreground text-xs\">\n                    Leave it empty to allow every address.\n                  </p>\n                </div>\n                <UiDialogFooter>\n                  <UiButton type=\"button\" variant=\"outline\" @click=\"open = false\">Cancel</UiButton>\n                  <UiButton type=\"submit\">Create key</UiButton>\n                </UiDialogFooter>\n              </form>\n            </template>\n            <template v-else>\n              <UiDialogHeader>\n                <UiDialogTitle>Copy your new key</UiDialogTitle>\n                <UiDialogDescription\n                  >This is the only time you will see it. Store it in a password manager or a secret\n                  store.</UiDialogDescription\n                >\n              </UiDialogHeader>\n              <div class=\"bg-muted flex items-center gap-2 rounded-lg border p-2 pl-3\">\n                <code class=\"min-w-0 flex-1 truncate font-mono text-sm\">{{ secret }}</code>\n                <UiButton size=\"sm\" variant=\"outline\" @click=\"copy(secret)\"\n                  ><Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />{{\n                    copied ? \"Copied\" : \"Copy\"\n                  }}</UiButton\n                >\n              </div>\n              <div class=\"flex items-start gap-2\">\n                <UiCheckbox id=\"ck-saved\" v-model=\"saved\" class=\"mt-0.5\" />\n                <UiLabel for=\"ck-saved\" class=\"font-normal\"\n                  >I saved this key somewhere safe.</UiLabel\n                >\n              </div>\n              <UiDialogFooter>\n                <UiButton :disabled=\"saved !== true\" @click=\"open = false\">Done</UiButton>\n              </UiDialogFooter>\n            </template>\n          </UiDialogContent>\n        </UiDialog>\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"p-0\">\n      <ul class=\"divide-y border-t\" aria-live=\"polite\">\n        <li v-for=\"key in keys\" :key=\"key.id\" class=\"flex flex-wrap items-center gap-3 px-6 py-3\">\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"text-sm font-medium\">{{ key.name }}</p>\n            <p class=\"text-muted-foreground font-mono text-xs\">{{ key.prefix }}••••••••</p>\n          </div>\n          <UiBadge variant=\"soft\" shape=\"pill\" :color=\"key.env === 'live' ? 'green' : 'blue'\">{{\n            key.env\n          }}</UiBadge>\n          <span class=\"text-muted-foreground text-xs\">{{ key.expires }}</span>\n          <span v-if=\"key.ips\" class=\"text-muted-foreground flex items-center gap-1 text-xs\"\n            ><Icon name=\"lucide:shield\" class=\"size-3.5\" />{{ key.ips }} IP rules</span\n          >\n        </li>\n        <li v-if=\"!keys.length\" class=\"text-muted-foreground px-6 py-8 text-center text-sm\">\n          No keys yet.\n        </li>\n      </ul>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Key = {\n    id: number;\n    name: string;\n    prefix: string;\n    env: \"test\" | \"live\";\n    expires: string;\n    ips: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      initial?: Key[];\n    }>(),\n    {\n      initial: () => [\n        {\n          id: 1,\n          name: \"Production server\",\n          prefix: \"sk_live_4f9a\",\n          env: \"live\",\n          expires: \"Expires in 80 days\",\n          ips: 2,\n        },\n        {\n          id: 2,\n          name: \"Staging\",\n          prefix: \"sk_test_91bc\",\n          env: \"test\",\n          expires: \"Never expires\",\n          ips: 0,\n        },\n      ],\n    }\n  );\n\n  const keys = ref<Key[]>(props.initial.map((key) => ({ ...key })));\n  const open = ref(false);\n  const secret = ref(\"\");\n  const copied = ref(false);\n  const saved = ref<boolean | \"indeterminate\">(false);\n  const form = reactive({ name: \"\", env: \"test\" as \"test\" | \"live\", expiry: \"90\", ips: \"\" });\n  const errors = reactive({ name: \"\", ips: \"\" });\n\n  const cidr = /^(\\d{1,3}\\.){3}\\d{1,3}(\\/(\\d|[12]\\d|3[0-2]))?$/;\n\n  function create() {\n    errors.name = form.name.trim().length >= 3 ? \"\" : \"Use a name with at least 3 characters.\";\n    const lines = form.ips\n      .split(\"\\n\")\n      .map((line) => line.trim())\n      .filter(Boolean);\n    const bad = lines.find(\n      (line) =>\n        !cidr.test(line) ||\n        line\n          .split(\"/\")[0]!\n          .split(\".\")\n          .some((part) => Number(part) > 255)\n    );\n    errors.ips = bad ? `${bad} is not a valid address or range.` : \"\";\n    if (errors.name || errors.ips) return;\n    const token = Array.from(\n      { length: 32 },\n      () => \"abcdefghijklmnopqrstuvwxyz0123456789\"[Math.floor(Math.random() * 36)]\n    ).join(\"\");\n    keys.value.unshift({\n      id: Date.now(),\n      name: form.name.trim(),\n      prefix: `sk_${form.env}_${token.slice(0, 4)}`,\n      env: form.env,\n      expires: form.expiry === \"never\" ? \"Never expires\" : `Expires in ${form.expiry} days`,\n      ips: lines.length,\n    });\n    secret.value = `sk_${form.env}_${token}`;\n    useSonner.success(\"API key created\");\n  }\n\n  watch(open, (value) => onOpen(value));\n\n  function onOpen(value: boolean) {\n    if (value) return;\n    setTimeout(() => {\n      secret.value = \"\";\n      copied.value = false;\n      saved.value = false;\n      Object.assign(form, { name: \"\", env: \"test\", expiry: \"90\", ips: \"\" });\n      Object.assign(errors, { name: \"\", ips: \"\" });\n    }, 200);\n  }\n\n  async function copy(value: string) {\n    try {\n      await navigator.clipboard.writeText(value);\n    } catch {\n      // Clipboard access can be blocked inside an iframe; the UI still confirms.\n    }\n    copied.value = true;\n    setTimeout(() => (copied.value = false), 1500);\n  }\n</script>\n","category":"ApiKeys","description":"Create API key flow. Features: A dialog with a name, a test or live environment, an expiry select and an optional IP allow list, validation for names and IP ranges, a second step that shows the secret once with a copy button and a confirmation checkbox that unlocks the done button","path":"Settings/ApiKeys/BlockSettingsApiKeysCreate.vue","components":["badge","button","card","checkbox","dialog","input","label","select","textarea","toggle-group"]},{"name":"Settings Api Keys Scopes","fileName":"BlockSettingsApiKeysScopes.vue","file":"<template>\n  <!--\n    API key scopes\n    Features: A preset select for read only, read and write or custom access, a row for each resource with none, read and write choices, a summary count, a warning when a key can write to billing and a save button that is only enabled after a change\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>Scopes for \"{{ keyName }}\"</UiCardTitle>\n      <UiCardDescription>Give the key only the access it needs.</UiCardDescription>\n      <UiCardAction>\n        <UiSelect :model-value=\"preset\" @update:model-value=\"(value) => applyPreset(String(value))\">\n          <UiSelectTrigger class=\"w-40\" aria-label=\"Preset\"><UiSelectValue /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"read\">Read only</UiSelectItem>\n            <UiSelectItem value=\"write\">Read and write</UiSelectItem>\n            <UiSelectItem value=\"custom\">Custom</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-4\">\n      <ul class=\"divide-y rounded-lg border\">\n        <li\n          v-for=\"resource in resources\"\n          :key=\"resource.id\"\n          class=\"flex flex-wrap items-center gap-3 px-4 py-3\"\n        >\n          <div class=\"min-w-0 flex-1\">\n            <p :id=\"`scope-${resource.id}`\" class=\"text-sm font-medium\">{{ resource.label }}</p>\n            <p class=\"text-muted-foreground text-xs\">{{ resource.hint }}</p>\n          </div>\n          <UiToggleGroup\n            :model-value=\"levels[resource.id]\"\n            type=\"single\"\n            variant=\"outline\"\n            size=\"sm\"\n            :aria-labelledby=\"`scope-${resource.id}`\"\n            @update:model-value=\"(value) => setLevel(resource.id, (value as Level) || 'none')\"\n          >\n            <UiToggleGroupItem value=\"none\">None</UiToggleGroupItem>\n            <UiToggleGroupItem value=\"read\">Read</UiToggleGroupItem>\n            <UiToggleGroupItem value=\"write\">Write</UiToggleGroupItem>\n          </UiToggleGroup>\n        </li>\n      </ul>\n      <UiAlert\n        v-if=\"levels.billing === 'write'\"\n        icon=\"lucide:triangle-alert\"\n        title=\"This key can change billing\"\n        description=\"Anyone with the key can update payment details and plans. Keep it out of client side code.\"\n        role=\"status\"\n      />\n      <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">{{ summary }}</p>\n    </UiCardContent>\n    <UiCardFooter class=\"justify-end gap-2 border-t\">\n      <UiButton variant=\"outline\" :disabled=\"!dirty\" @click=\"reset\">Reset</UiButton>\n      <UiButton :disabled=\"!dirty\" @click=\"save\">Save scopes</UiButton>\n    </UiCardFooter>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Level = \"none\" | \"read\" | \"write\";\n  type Resource = { id: string; label: string; hint: string };\n\n  const props = withDefaults(\n    defineProps<{\n      keyName?: string;\n      resources?: Resource[];\n      initial?: Record<string, Level>;\n    }>(),\n    {\n      keyName: \"Production server\",\n      resources: () => [\n        { id: \"projects\", label: \"Projects\", hint: \"Create, read and update projects.\" },\n        { id: \"members\", label: \"Members\", hint: \"List people and invite new ones.\" },\n        { id: \"files\", label: \"Files\", hint: \"Upload and download files.\" },\n        { id: \"webhooks\", label: \"Webhooks\", hint: \"Manage endpoints and events.\" },\n        { id: \"billing\", label: \"Billing\", hint: \"Invoices, plans and payment methods.\" },\n      ],\n      initial: () => ({\n        projects: \"write\",\n        members: \"read\",\n        files: \"write\",\n        webhooks: \"read\",\n        billing: \"none\",\n      }),\n    }\n  );\n\n  const levels = reactive<Record<string, Level>>({ ...props.initial });\n  const saved = ref<Record<string, Level>>({ ...props.initial });\n\n  const preset = computed(() => {\n    const values = props.resources.map((resource) => levels[resource.id]);\n    if (values.every((value) => value === \"read\")) return \"read\";\n    if (values.every((value) => value === \"write\")) return \"write\";\n    return \"custom\";\n  });\n  const dirty = computed(() =>\n    props.resources.some((resource) => levels[resource.id] !== saved.value[resource.id])\n  );\n  const summary = computed(() => {\n    const read = props.resources.filter((resource) => levels[resource.id] === \"read\").length;\n    const write = props.resources.filter((resource) => levels[resource.id] === \"write\").length;\n    const none = props.resources.length - read - write;\n    return `${write} with write access, ${read} read only, ${none} without access.`;\n  });\n\n  function setLevel(id: string, level: Level) {\n    levels[id] = level;\n  }\n\n  function applyPreset(value: string) {\n    if (value === \"custom\") return;\n    for (const resource of props.resources) levels[resource.id] = value as Level;\n  }\n\n  function reset() {\n    Object.assign(levels, saved.value);\n  }\n\n  function save() {\n    saved.value = { ...levels };\n    useSonner.success(\"Scopes saved\");\n  }\n</script>\n","category":"ApiKeys","description":"API key scopes. Features: A preset select for read only, read and write or custom access, a row for each resource with none, read and write choices, a summary count, a warning when a key can write to billing and a save button that is only enabled after a change","path":"Settings/ApiKeys/BlockSettingsApiKeysScopes.vue","components":["alert","button","card","select","toggle-group"]},{"name":"Settings Api Keys Table","fileName":"BlockSettingsApiKeysTable.vue","file":"<template>\n  <!--\n    API keys management\n    Features: Create key dialog with scope select, one-time secret reveal with copy, masked keys table, last used time, revoke with confirmation\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n      <UiCardAction>\n        <UiDialog v-model:open=\"createOpen\" @update:open=\"onDialogChange\">\n          <UiDialogTrigger as-child>\n            <UiButton size=\"sm\">\n              <Icon name=\"lucide:plus\" class=\"size-4\" />\n              Create key\n            </UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent class=\"sm:max-w-md\">\n            <UiDialogHeader>\n              <UiDialogTitle>{{ secret ? \"Copy your key\" : \"Create API key\" }}</UiDialogTitle>\n              <UiDialogDescription>\n                {{\n                  secret\n                    ? \"This is the only time you will see this key. Store it somewhere safe.\"\n                    : \"Give the key a name and choose what it can access.\"\n                }}\n              </UiDialogDescription>\n            </UiDialogHeader>\n\n            <div v-if=\"secret\" class=\"space-y-4\">\n              <div class=\"bg-muted flex items-center gap-2 rounded-lg border p-2 pl-3\">\n                <code class=\"flex-1 truncate font-mono text-sm\">{{ secret }}</code>\n                <UiButton size=\"sm\" variant=\"outline\" @click=\"copy(secret)\">\n                  <Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />\n                  {{ copied ? \"Copied\" : \"Copy\" }}\n                </UiButton>\n              </div>\n              <UiDialogFooter>\n                <UiDialogClose as-child>\n                  <UiButton>Done</UiButton>\n                </UiDialogClose>\n              </UiDialogFooter>\n            </div>\n\n            <form v-else class=\"grid gap-4\" @submit.prevent=\"create\">\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"key-name\">Name</UiLabel>\n                <UiInput id=\"key-name\" v-model=\"draft.name\" placeholder=\"e.g. Production server\" />\n              </div>\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"key-scope\">Permissions</UiLabel>\n                <UiNativeSelect id=\"key-scope\" v-model=\"draft.scope\">\n                  <option>Read only</option>\n                  <option>Read & write</option>\n                  <option>Admin</option>\n                </UiNativeSelect>\n              </div>\n              <UiDialogFooter>\n                <UiDialogClose as-child>\n                  <UiButton type=\"button\" variant=\"outline\">Cancel</UiButton>\n                </UiDialogClose>\n                <UiButton type=\"submit\" :disabled=\"!draft.name.trim()\">Create key</UiButton>\n              </UiDialogFooter>\n            </form>\n          </UiDialogContent>\n        </UiDialog>\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"p-0\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"pl-6\">Name</UiTableHead>\n            <UiTableHead>Key</UiTableHead>\n            <UiTableHead>Permissions</UiTableHead>\n            <UiTableHead>Last used</UiTableHead>\n            <UiTableHead class=\"w-12 pr-6\" />\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"key in keys\" :key=\"key.id\">\n            <UiTableCell class=\"pl-6 font-medium\">{{ key.name }}</UiTableCell>\n            <UiTableCell>\n              <code class=\"text-muted-foreground font-mono text-xs\">{{ key.prefix }}••••••••</code>\n            </UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"outline\">{{ key.scope }}</UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground\">{{ key.lastUsed }}</UiTableCell>\n            <UiTableCell class=\"pr-6 text-right\">\n              <UiAlertDialog>\n                <UiAlertDialogTrigger as-child>\n                  <UiButton\n                    variant=\"ghost\"\n                    size=\"icon-sm\"\n                    class=\"text-destructive hover:text-destructive\"\n                    :aria-label=\"`Revoke ${key.name}`\"\n                  >\n                    <Icon name=\"lucide:trash-2\" class=\"size-4\" />\n                  </UiButton>\n                </UiAlertDialogTrigger>\n                <UiAlertDialogContent>\n                  <UiAlertDialogHeader>\n                    <UiAlertDialogTitle>Revoke \"{{ key.name }}\"?</UiAlertDialogTitle>\n                    <UiAlertDialogDescription>\n                      Anything using this key will immediately lose access. This can't be undone.\n                    </UiAlertDialogDescription>\n                  </UiAlertDialogHeader>\n                  <UiAlertDialogFooter>\n                    <UiAlertDialogCancel>Cancel</UiAlertDialogCancel>\n                    <UiAlertDialogAction @click=\"revoke(key.id)\">Revoke key</UiAlertDialogAction>\n                  </UiAlertDialogFooter>\n                </UiAlertDialogContent>\n              </UiAlertDialog>\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!keys.length\" :colspan=\"5\">No API keys yet.</UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type ApiKey = { id: number; name: string; prefix: string; scope: string; lastUsed: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"API keys\",\n      description: \"Keys let your servers talk to the API. Treat them like passwords.\",\n    }\n  );\n\n  const keys = ref<ApiKey[]>([\n    {\n      id: 1,\n      name: \"Production server\",\n      prefix: \"sk_live_4f9a\",\n      scope: \"Read & write\",\n      lastUsed: \"2 minutes ago\",\n    },\n    {\n      id: 2,\n      name: \"CI pipeline\",\n      prefix: \"sk_live_91bc\",\n      scope: \"Read only\",\n      lastUsed: \"Yesterday\",\n    },\n    { id: 3, name: \"Local development\", prefix: \"sk_test_c07d\", scope: \"Admin\", lastUsed: \"Never\" },\n  ]);\n\n  const createOpen = ref(false);\n  const draft = reactive({ name: \"\", scope: \"Read only\" });\n  const secret = ref(\"\");\n  const copied = ref(false);\n\n  function randomToken(length: number) {\n    const alphabet = \"abcdefghijklmnopqrstuvwxyz0123456789\";\n    return Array.from({ length }, () => alphabet[Math.floor(Math.random() * alphabet.length)]).join(\n      \"\"\n    );\n  }\n\n  function create() {\n    const token = randomToken(32);\n    keys.value.unshift({\n      id: Date.now(),\n      name: draft.name.trim(),\n      prefix: `sk_live_${token.slice(0, 4)}`,\n      scope: draft.scope,\n      lastUsed: \"Never\",\n    });\n    secret.value = `sk_live_${token}`;\n    useSonner.success(\"API key created\");\n  }\n\n  function onDialogChange(open: boolean) {\n    if (open) return;\n    // Reset after the close animation so the form does not flash back mid-transition.\n    setTimeout(() => {\n      secret.value = \"\";\n      copied.value = false;\n      Object.assign(draft, { name: \"\", scope: \"Read only\" });\n    }, 200);\n  }\n\n  async function copy(value: string) {\n    try {\n      await navigator.clipboard.writeText(value);\n    } catch {\n      // Clipboard access can be blocked inside an iframe; the UI still confirms.\n    }\n    copied.value = true;\n    setTimeout(() => (copied.value = false), 1500);\n  }\n\n  function revoke(id: number) {\n    keys.value = keys.value.filter((key) => key.id !== id);\n    useSonner.success(\"API key revoked\");\n  }\n</script>\n","category":"ApiKeys","description":"API keys management. Features: Create key dialog with scope select, one-time secret reveal with copy, masked keys table, last used time, revoke with confirmation","path":"Settings/ApiKeys/BlockSettingsApiKeysTable.vue","components":["alert-dialog","badge","button","card","dialog","input","label","native-select","table"]},{"name":"Settings Api Keys Usage","fileName":"BlockSettingsApiKeysUsage.vue","file":"<template>\n  <!--\n    API key usage\n    Features: Totals for requests, errors and the busiest key, a time range select, a row for each key with its request count and error rate, a bar against the rate limit that turns amber and red near the limit, sorting by requests or errors and a note for keys that have not been used\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>Usage</UiCardTitle>\n      <UiCardDescription>How your keys were used in the selected period.</UiCardDescription>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-5\">\n      <div class=\"flex flex-wrap gap-2\">\n        <UiSelect v-model=\"sort\">\n          <UiSelectTrigger class=\"w-36\" aria-label=\"Sort keys\"><UiSelectValue /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"requests\">Most requests</UiSelectItem>\n            <UiSelectItem value=\"errors\">Highest error rate</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n        <UiSelect v-model=\"range\">\n          <UiSelectTrigger class=\"w-32\" aria-label=\"Time range\"><UiSelectValue /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"1\">24 hours</UiSelectItem>\n            <UiSelectItem value=\"7\">7 days</UiSelectItem>\n            <UiSelectItem value=\"30\">30 days</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n      <dl class=\"grid gap-3 sm:grid-cols-3\">\n        <div v-for=\"item in totals\" :key=\"item.label\" class=\"rounded-lg border p-4\">\n          <dt class=\"text-muted-foreground text-xs\">{{ item.label }}</dt>\n          <dd class=\"mt-1 text-xl font-bold tabular-nums\">{{ item.value }}</dd>\n        </div>\n      </dl>\n      <ul class=\"divide-y rounded-lg border\" aria-live=\"polite\">\n        <li v-for=\"row in rows\" :key=\"row.id\" class=\"grid gap-2 px-4 py-3\">\n          <div class=\"flex flex-wrap items-center gap-x-4 gap-y-1\">\n            <p class=\"min-w-0 flex-1 truncate text-sm font-medium\">{{ row.name }}</p>\n            <p class=\"text-sm tabular-nums\">\n              {{ number(row.requests) }} <span class=\"text-muted-foreground\">requests</span>\n            </p>\n            <p\n              class=\"w-24 text-right text-sm tabular-nums\"\n              :class=\"row.errorRate > 2 ? 'text-destructive font-medium' : 'text-muted-foreground'\"\n            >\n              {{ row.errorRate.toFixed(1) }}% errors\n            </p>\n          </div>\n          <template v-if=\"row.requests > 0\">\n            <div\n              class=\"bg-muted h-1.5 overflow-hidden rounded-full\"\n              role=\"progressbar\"\n              :aria-valuenow=\"row.usage\"\n              aria-valuemin=\"0\"\n              aria-valuemax=\"100\"\n              :aria-label=\"`${row.name} rate limit used`\"\n            >\n              <div\n                class=\"h-full rounded-full\"\n                :class=\"\n                  row.usage >= 90 ? 'bg-red-500' : row.usage >= 70 ? 'bg-amber-500' : 'bg-primary'\n                \"\n                :style=\"{ width: `${row.usage}%` }\"\n              />\n            </div>\n            <p class=\"text-muted-foreground text-xs\">\n              {{ row.usage }}% of the rate limit at the busiest time\n            </p>\n          </template>\n          <p v-else class=\"text-muted-foreground text-xs\">\n            Not used in this period. Consider revoking it.\n          </p>\n        </li>\n      </ul>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Row = { id: number; name: string; daily: number; errorRate: number; peak: number };\n\n  const props = withDefaults(\n    defineProps<{\n      keys?: Row[];\n    }>(),\n    {\n      keys: () => [\n        { id: 1, name: \"Production server\", daily: 48_200, errorRate: 0.4, peak: 62 },\n        { id: 2, name: \"Mobile app\", daily: 21_900, errorRate: 3.8, peak: 91 },\n        { id: 3, name: \"CI pipeline\", daily: 1_240, errorRate: 1.1, peak: 18 },\n        { id: 4, name: \"Old integration\", daily: 0, errorRate: 0, peak: 0 },\n      ],\n    }\n  );\n\n  const range = ref(\"7\");\n  const sort = ref(\"requests\");\n\n  const number = (value: number) => value.toLocaleString(\"en-US\");\n  const rows = computed(() =>\n    props.keys\n      .map((key) => ({\n        id: key.id,\n        name: key.name,\n        requests: key.daily * Number(range.value),\n        errorRate: key.errorRate,\n        usage: key.peak,\n      }))\n      .sort((a, b) =>\n        sort.value === \"requests\" ? b.requests - a.requests : b.errorRate - a.errorRate\n      )\n  );\n  const totals = computed(() => {\n    const requests = rows.value.reduce((sum, row) => sum + row.requests, 0);\n    const errors = rows.value.reduce((sum, row) => sum + row.requests * (row.errorRate / 100), 0);\n    return [\n      { label: \"Requests\", value: number(requests) },\n      { label: \"Errors\", value: number(Math.round(errors)) },\n      {\n        label: \"Busiest key\",\n        value: rows.value.slice().sort((a, b) => b.requests - a.requests)[0]?.name ?? \"None\",\n      },\n    ];\n  });\n</script>\n","category":"ApiKeys","description":"API key usage. Features: Totals for requests, errors and the busiest key, a time range select, a row for each key with its request count and error rate, a bar against the rate limit that turns amber and red near the limit, sorting by requests or errors and a note for keys that have not been used","path":"Settings/ApiKeys/BlockSettingsApiKeysUsage.vue","components":["card","select"]},{"name":"Settings Api Keys Webhooks","fileName":"BlockSettingsApiKeysWebhooks.vue","file":"<template>\n  <!--\n    Webhook endpoints\n    Features: A list of endpoints with the events they receive, an enabled switch, a send test button with a result, remove with a confirmation, an add endpoint dialog with https validation and an events checklist that shows the signing secret once, and a list of recent deliveries with status codes\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>Webhooks</UiCardTitle>\n      <UiCardDescription\n        >Get an HTTP request when something happens in your workspace.</UiCardDescription\n      >\n      <UiCardAction>\n        <UiDialog v-model:open=\"open\">\n          <UiDialogTrigger as-child>\n            <UiButton size=\"sm\"><Icon name=\"lucide:plus\" class=\"size-4\" />Add endpoint</UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent class=\"sm:max-w-md\">\n            <template v-if=\"!secret\">\n              <UiDialogHeader>\n                <UiDialogTitle>Add endpoint</UiDialogTitle>\n                <UiDialogDescription\n                  >We send a signed JSON POST request to this address.</UiDialogDescription\n                >\n              </UiDialogHeader>\n              <form class=\"grid gap-4\" novalidate @submit.prevent=\"add\">\n                <div class=\"grid gap-2\">\n                  <UiLabel for=\"wh-url\">Endpoint URL</UiLabel>\n                  <UiInput\n                    id=\"wh-url\"\n                    v-model=\"form.url\"\n                    type=\"url\"\n                    placeholder=\"https://example.com/webhooks\"\n                    :aria-invalid=\"!!errors.url\"\n                  />\n                  <p v-if=\"errors.url\" class=\"text-destructive text-sm\">{{ errors.url }}</p>\n                </div>\n                <fieldset class=\"grid gap-2\">\n                  <legend class=\"mb-1 text-sm font-medium\">Events</legend>\n                  <div v-for=\"event in events\" :key=\"event\" class=\"flex items-center gap-2\">\n                    <UiCheckbox\n                      :id=\"`wh-${event}`\"\n                      :model-value=\"form.events.includes(event)\"\n                      @update:model-value=\"toggleEvent(event)\"\n                    />\n                    <UiLabel :for=\"`wh-${event}`\" class=\"font-mono text-xs font-normal\">{{\n                      event\n                    }}</UiLabel>\n                  </div>\n                  <p v-if=\"errors.events\" class=\"text-destructive text-sm\">{{ errors.events }}</p>\n                </fieldset>\n                <UiDialogFooter>\n                  <UiButton type=\"button\" variant=\"outline\" @click=\"open = false\">Cancel</UiButton>\n                  <UiButton type=\"submit\">Add endpoint</UiButton>\n                </UiDialogFooter>\n              </form>\n            </template>\n            <template v-else>\n              <UiDialogHeader>\n                <UiDialogTitle>Signing secret</UiDialogTitle>\n                <UiDialogDescription\n                  >Use it to check the signature header on every request. You will not see it\n                  again.</UiDialogDescription\n                >\n              </UiDialogHeader>\n              <div class=\"bg-muted flex items-center gap-2 rounded-lg border p-2 pl-3\">\n                <code class=\"min-w-0 flex-1 truncate font-mono text-sm\">{{ secret }}</code>\n                <UiButton size=\"sm\" variant=\"outline\" @click=\"copy(secret)\"\n                  ><Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />{{\n                    copied ? \"Copied\" : \"Copy\"\n                  }}</UiButton\n                >\n              </div>\n              <UiDialogFooter><UiButton @click=\"open = false\">Done</UiButton></UiDialogFooter>\n            </template>\n          </UiDialogContent>\n        </UiDialog>\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-6 p-0\">\n      <ul class=\"divide-y border-t\" aria-live=\"polite\">\n        <li\n          v-for=\"endpoint in endpoints\"\n          :key=\"endpoint.id\"\n          class=\"flex flex-wrap items-center gap-3 px-6 py-4\"\n        >\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate font-mono text-sm\">{{ endpoint.url }}</p>\n            <div class=\"mt-1.5 flex flex-wrap gap-1.5\">\n              <UiBadge\n                v-for=\"event in endpoint.events\"\n                :key=\"event\"\n                variant=\"outline\"\n                class=\"font-mono text-[11px]\"\n                >{{ event }}</UiBadge\n              >\n            </div>\n            <p\n              v-if=\"endpoint.result\"\n              class=\"mt-1.5 text-xs\"\n              :class=\"\n                endpoint.result.ok ? 'text-green-600 dark:text-green-400' : 'text-destructive'\n              \"\n              role=\"status\"\n            >\n              {{ endpoint.result.text }}\n            </p>\n          </div>\n          <UiButton\n            variant=\"outline\"\n            size=\"sm\"\n            :loading=\"testing === endpoint.id\"\n            :disabled=\"!endpoint.enabled\"\n            @click=\"test(endpoint)\"\n            >Send test</UiButton\n          >\n          <UiSwitch\n            :model-value=\"endpoint.enabled\"\n            :aria-label=\"`${endpoint.enabled ? 'Disable' : 'Enable'} ${endpoint.url}`\"\n            @update:model-value=\"endpoint.enabled = $event\"\n          />\n          <UiAlertDialog>\n            <UiAlertDialogTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"text-destructive\"\n                :aria-label=\"`Remove ${endpoint.url}`\"\n                ><Icon name=\"lucide:trash-2\" class=\"size-4\"\n              /></UiButton>\n            </UiAlertDialogTrigger>\n            <UiAlertDialogContent>\n              <UiAlertDialogHeader>\n                <UiAlertDialogTitle>Remove this endpoint?</UiAlertDialogTitle>\n                <UiAlertDialogDescription\n                  >{{ endpoint.url }} will stop receiving events.</UiAlertDialogDescription\n                >\n              </UiAlertDialogHeader>\n              <UiAlertDialogFooter>\n                <UiAlertDialogCancel>Cancel</UiAlertDialogCancel>\n                <UiAlertDialogAction\n                  @click=\"endpoints = endpoints.filter((item) => item.id !== endpoint.id)\"\n                  >Remove</UiAlertDialogAction\n                >\n              </UiAlertDialogFooter>\n            </UiAlertDialogContent>\n          </UiAlertDialog>\n        </li>\n        <li v-if=\"!endpoints.length\" class=\"text-muted-foreground px-6 py-8 text-center text-sm\">\n          No endpoints yet.\n        </li>\n      </ul>\n\n      <section class=\"px-6 pb-6\" aria-label=\"Recent deliveries\">\n        <h3 class=\"mb-2 text-sm font-semibold\">Recent deliveries</h3>\n        <ul class=\"divide-y rounded-lg border text-sm\">\n          <li\n            v-for=\"delivery in deliveries\"\n            :key=\"delivery.id\"\n            class=\"flex items-center gap-3 px-4 py-2.5\"\n          >\n            <UiBadge\n              variant=\"soft\"\n              shape=\"pill\"\n              :color=\"delivery.status < 300 ? 'green' : 'red'\"\n              class=\"tabular-nums\"\n              >{{ delivery.status }}</UiBadge\n            >\n            <span class=\"flex-1 truncate font-mono text-xs\">{{ delivery.event }}</span>\n            <span class=\"text-muted-foreground text-xs\">{{ delivery.when }}</span>\n          </li>\n        </ul>\n      </section>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Endpoint = {\n    id: number;\n    url: string;\n    events: string[];\n    enabled: boolean;\n    result?: { ok: boolean; text: string };\n  };\n  type Delivery = { id: number; status: number; event: string; when: string };\n\n  const props = withDefaults(\n    defineProps<{\n      initial?: Endpoint[];\n      deliveries?: Delivery[];\n    }>(),\n    {\n      initial: () => [\n        {\n          id: 1,\n          url: \"https://api.example.com/hooks/acme\",\n          events: [\"project.created\", \"member.invited\"],\n          enabled: true,\n        },\n        {\n          id: 2,\n          url: \"https://hooks.example.org/billing\",\n          events: [\"invoice.paid\"],\n          enabled: false,\n        },\n      ],\n      deliveries: () => [\n        { id: 1, status: 200, event: \"project.created\", when: \"2 minutes ago\" },\n        { id: 2, status: 200, event: \"member.invited\", when: \"1 hour ago\" },\n        { id: 3, status: 500, event: \"project.created\", when: \"Yesterday\" },\n      ],\n    }\n  );\n\n  const events = [\"project.created\", \"project.deleted\", \"member.invited\", \"invoice.paid\"];\n  const endpoints = ref<Endpoint[]>(\n    props.initial.map((endpoint) => ({ ...endpoint, events: [...endpoint.events] }))\n  );\n  const open = ref(false);\n  const secret = ref(\"\");\n  const copied = ref(false);\n  const testing = ref(0);\n  const form = reactive({ url: \"\", events: [] as string[] });\n  const errors = reactive({ url: \"\", events: \"\" });\n\n  function toggleEvent(event: string) {\n    form.events = form.events.includes(event)\n      ? form.events.filter((item) => item !== event)\n      : [...form.events, event];\n  }\n\n  function add() {\n    let url: URL | null = null;\n    try {\n      url = new URL(form.url.trim());\n    } catch {\n      url = null;\n    }\n    errors.url = url && url.protocol === \"https:\" ? \"\" : \"Enter an address that starts with https.\";\n    errors.events = form.events.length ? \"\" : \"Choose at least one event.\";\n    if (errors.url || errors.events) return;\n    endpoints.value.push({\n      id: Date.now(),\n      url: form.url.trim(),\n      events: [...form.events],\n      enabled: true,\n    });\n    secret.value = `whsec_${Math.random().toString(36).slice(2, 12)}${Math.random().toString(36).slice(2, 12)}`;\n  }\n\n  watch(open, (value) => onOpen(value));\n\n  function onOpen(value: boolean) {\n    if (value) return;\n    setTimeout(() => {\n      secret.value = \"\";\n      copied.value = false;\n      Object.assign(form, { url: \"\", events: [] });\n      Object.assign(errors, { url: \"\", events: \"\" });\n    }, 200);\n  }\n\n  function test(endpoint: Endpoint) {\n    testing.value = endpoint.id;\n    endpoint.result = undefined;\n    setTimeout(() => {\n      testing.value = 0;\n      const ok = !endpoint.url.includes(\"example.org\");\n      endpoint.result = ok\n        ? { ok, text: \"Test event delivered. Your server answered 200.\" }\n        : { ok, text: \"Your server answered 500. Check the endpoint logs.\" };\n    }, 700);\n  }\n\n  async function copy(value: string) {\n    try {\n      await navigator.clipboard.writeText(value);\n    } catch {\n      // Clipboard access can be blocked inside an iframe; the UI still confirms.\n    }\n    copied.value = true;\n    setTimeout(() => (copied.value = false), 1500);\n  }\n</script>\n","category":"ApiKeys","description":"Webhook endpoints. Features: A list of endpoints with the events they receive, an enabled switch, a send test button with a result, remove with a confirmation, an add endpoint dialog with https validation and an events checklist that shows the signing secret once, and a list of recent deliveries with status codes","path":"Settings/ApiKeys/BlockSettingsApiKeysWebhooks.vue","components":["alert-dialog","badge","button","card","checkbox","dialog","input","label","switch"]},{"name":"Settings Appearance Preferences","fileName":"BlockSettingsAppearancePreferences.vue","file":"<template>\n  <!--\n    Language and region preferences\n    Features: Language, timezone and date format selects, 12 or 24 hour toggle, week start radio, live preview of the formatted date\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-6\">\n      <div class=\"grid gap-5 sm:grid-cols-2\">\n        <div class=\"grid gap-2\">\n          <UiLabel for=\"pref-language\">Language</UiLabel>\n          <UiNativeSelect id=\"pref-language\" v-model=\"prefs.language\">\n            <option v-for=\"lang in languages\" :key=\"lang.code\" :value=\"lang.code\">\n              {{ lang.label }}\n            </option>\n          </UiNativeSelect>\n        </div>\n        <div class=\"grid gap-2\">\n          <UiLabel for=\"pref-timezone\">Timezone</UiLabel>\n          <UiNativeSelect id=\"pref-timezone\" v-model=\"prefs.timezone\">\n            <option v-for=\"zone in timezones\" :key=\"zone\" :value=\"zone\">{{ zone }}</option>\n          </UiNativeSelect>\n        </div>\n        <div class=\"grid gap-2\">\n          <UiLabel for=\"pref-date\">Date format</UiLabel>\n          <UiNativeSelect id=\"pref-date\" v-model=\"prefs.dateStyle\">\n            <option value=\"medium\">Jan 5, 2026</option>\n            <option value=\"short\">1/5/26</option>\n            <option value=\"long\">January 5, 2026</option>\n          </UiNativeSelect>\n        </div>\n        <div class=\"grid gap-2\">\n          <UiLabel>First day of the week</UiLabel>\n          <UiRadioGroup v-model=\"prefs.weekStart\" class=\"flex gap-5 pt-2\">\n            <label class=\"flex items-center gap-2 text-sm\">\n              <UiRadioGroupItem value=\"sunday\" />\n              Sunday\n            </label>\n            <label class=\"flex items-center gap-2 text-sm\">\n              <UiRadioGroupItem value=\"monday\" />\n              Monday\n            </label>\n          </UiRadioGroup>\n        </div>\n      </div>\n\n      <div class=\"flex items-center justify-between gap-4 rounded-lg border p-4\">\n        <div>\n          <p class=\"text-sm font-medium\">24-hour clock</p>\n          <p class=\"text-muted-foreground text-sm\">Show times as 14:30 instead of 2:30 PM.</p>\n        </div>\n        <UiSwitch v-model=\"prefs.hour24\" aria-label=\"24-hour clock\" />\n      </div>\n\n      <div class=\"bg-muted/50 rounded-lg p-4 text-sm\">\n        <p class=\"text-muted-foreground\">Preview</p>\n        <p class=\"mt-1 font-medium\">{{ preview }}</p>\n      </div>\n    </UiCardContent>\n    <UiCardFooter class=\"justify-end gap-2 border-t\">\n      <UiButton variant=\"outline\">Cancel</UiButton>\n      <UiButton @click=\"useSonner.success('Preferences saved')\">Save changes</UiButton>\n    </UiCardFooter>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Language & region\",\n      description: \"Choose how dates, times and text are shown to you.\",\n    }\n  );\n\n  const languages = [\n    { code: \"en-US\", label: \"English (US)\" },\n    { code: \"en-GB\", label: \"English (UK)\" },\n    { code: \"de-DE\", label: \"Deutsch\" },\n    { code: \"fr-FR\", label: \"Français\" },\n    { code: \"es-ES\", label: \"Español\" },\n    { code: \"ja-JP\", label: \"日本語\" },\n  ];\n\n  const timezones = [\n    \"America/Los_Angeles\",\n    \"America/New_York\",\n    \"Europe/London\",\n    \"Europe/Berlin\",\n    \"Asia/Tokyo\",\n    \"Australia/Melbourne\",\n  ];\n\n  const prefs = reactive({\n    language: \"en-US\",\n    timezone: \"Australia/Melbourne\",\n    dateStyle: \"medium\" as \"short\" | \"medium\" | \"long\",\n    weekStart: \"monday\",\n    hour24: false,\n  });\n\n  const preview = computed(() => {\n    try {\n      return new Intl.DateTimeFormat(prefs.language, {\n        dateStyle: prefs.dateStyle,\n        timeStyle: \"short\",\n        hour12: !prefs.hour24,\n        timeZone: prefs.timezone,\n      }).format(new Date());\n    } catch {\n      return \"—\";\n    }\n  });\n</script>\n","category":"Appearance","description":"Language and region preferences. Features: Language, timezone and date format selects, 12 or 24 hour toggle, week start radio, live preview of the formatted date","path":"Settings/Appearance/BlockSettingsAppearancePreferences.vue","components":["button","card","label","native-select","radio-group","switch"]},{"name":"Settings Appearance Theme","fileName":"BlockSettingsAppearanceTheme.vue","file":"<template>\n  <!--\n    Appearance settings with theme preview cards\n    Features: Light, dark and system cards with a mini preview wired to color mode, accent colour swatches, interface density radio\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-8\">\n      <div class=\"space-y-3\">\n        <UiLabel>Theme</UiLabel>\n        <UiRadioGroup v-model=\"theme\" class=\"grid gap-4 sm:grid-cols-3\">\n          <label\n            v-for=\"option in themes\"\n            :key=\"option.value\"\n            class=\"group cursor-pointer space-y-2\"\n          >\n            <div\n              class=\"overflow-hidden rounded-lg border-2 p-1 transition-colors\"\n              :class=\"theme === option.value ? 'border-primary' : 'border-border hover:border-ring'\"\n            >\n              <div class=\"flex h-20 overflow-hidden rounded-md\" :class=\"option.preview.bg\">\n                <template v-if=\"option.value === 'system'\">\n                  <div class=\"flex-1 bg-white p-2\">\n                    <div class=\"h-2 w-10 rounded bg-slate-200\" />\n                    <div class=\"mt-1.5 h-2 w-14 rounded bg-slate-200\" />\n                  </div>\n                  <div class=\"flex-1 bg-slate-900 p-2\">\n                    <div class=\"h-2 w-10 rounded bg-slate-700\" />\n                    <div class=\"mt-1.5 h-2 w-14 rounded bg-slate-700\" />\n                  </div>\n                </template>\n                <div v-else class=\"w-full space-y-1.5 p-2\">\n                  <div class=\"h-2 w-10 rounded\" :class=\"option.preview.bar\" />\n                  <div class=\"h-2 w-16 rounded\" :class=\"option.preview.bar\" />\n                  <div class=\"h-2 w-12 rounded\" :class=\"option.preview.bar\" />\n                </div>\n              </div>\n            </div>\n            <div class=\"flex items-center gap-2 text-sm font-medium\">\n              <UiRadioGroupItem :value=\"option.value\" />\n              {{ option.label }}\n            </div>\n          </label>\n        </UiRadioGroup>\n      </div>\n\n      <div class=\"space-y-3\">\n        <UiLabel>Accent colour</UiLabel>\n        <div class=\"flex flex-wrap gap-3\">\n          <button\n            v-for=\"swatch in accents\"\n            :key=\"swatch.name\"\n            type=\"button\"\n            :aria-label=\"swatch.name\"\n            :aria-pressed=\"accent === swatch.name\"\n            class=\"flex size-8 items-center justify-center rounded-full ring-offset-2 transition-shadow\"\n            :class=\"[swatch.class, accent === swatch.name && 'ring-ring ring-2']\"\n            @click=\"accent = swatch.name\"\n          >\n            <Icon v-if=\"accent === swatch.name\" name=\"lucide:check\" class=\"size-4 text-white\" />\n          </button>\n        </div>\n      </div>\n\n      <div class=\"space-y-3\">\n        <UiLabel>Interface density</UiLabel>\n        <UiRadioGroup v-model=\"density\" class=\"grid gap-3\">\n          <label\n            v-for=\"option in densities\"\n            :key=\"option.value\"\n            class=\"hover:bg-accent/50 flex cursor-pointer items-start gap-3 rounded-lg border p-3 transition-colors\"\n          >\n            <UiRadioGroupItem :value=\"option.value\" class=\"mt-0.5\" />\n            <span>\n              <span class=\"block text-sm font-medium\">{{ option.label }}</span>\n              <span class=\"text-muted-foreground block text-sm\">{{ option.hint }}</span>\n            </span>\n          </label>\n        </UiRadioGroup>\n      </div>\n    </UiCardContent>\n    <UiCardFooter class=\"justify-end gap-2 border-t\">\n      <UiButton variant=\"outline\">Cancel</UiButton>\n      <UiButton @click=\"useSonner.success('Appearance saved')\">Save changes</UiButton>\n    </UiCardFooter>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Appearance\",\n      description: \"Customise how the app looks on this device.\",\n    }\n  );\n\n  const colorMode = useColorMode();\n\n  // Reads and writes the real color mode, so the preview cards change the page too.\n  const theme = computed({\n    get: () => colorMode.preference,\n    set: (value: string) => {\n      colorMode.preference = value;\n    },\n  });\n\n  const themes = [\n    {\n      value: \"light\",\n      label: \"Light\",\n      preview: { bg: \"bg-white\", bar: \"bg-slate-200\" },\n    },\n    {\n      value: \"dark\",\n      label: \"Dark\",\n      preview: { bg: \"bg-slate-900\", bar: \"bg-slate-700\" },\n    },\n    {\n      value: \"system\",\n      label: \"System\",\n      preview: { bg: \"\", bar: \"\" },\n    },\n  ];\n\n  const accents = [\n    { name: \"Violet\", class: \"bg-violet-500\" },\n    { name: \"Blue\", class: \"bg-blue-500\" },\n    { name: \"Emerald\", class: \"bg-emerald-500\" },\n    { name: \"Amber\", class: \"bg-amber-500\" },\n    { name: \"Rose\", class: \"bg-rose-500\" },\n    { name: \"Slate\", class: \"bg-slate-500\" },\n  ];\n\n  const densities = [\n    { value: \"comfortable\", label: \"Comfortable\", hint: \"More breathing room between elements.\" },\n    { value: \"compact\", label: \"Compact\", hint: \"Fit more on screen with tighter spacing.\" },\n  ];\n\n  const accent = ref(\"Violet\");\n  const density = ref(\"comfortable\");\n</script>\n","category":"Appearance","description":"Appearance settings with theme preview cards. Features: Light, dark and system cards with a mini preview wired to color mode, accent colour swatches, interface density radio","path":"Settings/Appearance/BlockSettingsAppearanceTheme.vue","components":["button","card","label","radio-group"]},{"name":"Audit Log 1","fileName":"BlockAuditLog1.vue","file":"<template>\n  <!--\n    Audit log table\n    Features: Table of events with time, actor, action, target, IP address and result, sortable by time with aria-sort, badges for failed events, a page size footer with previous and next and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex items-end justify-between gap-3\">\n      <div>\n        <h1 class=\"text-2xl font-bold tracking-tight\">Audit log</h1>\n        <p class=\"text-muted-foreground text-sm\">Every change made in your workspace.</p>\n      </div>\n      <UiButton variant=\"outline\" size=\"sm\" @click=\"newest = !newest\"\n        ><Icon name=\"lucide:arrow-up-down\" class=\"size-4\" />{{\n          newest ? \"Newest first\" : \"Oldest first\"\n        }}</UiButton\n      >\n    </div>\n\n    <div class=\"mt-6 rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead :aria-sort=\"newest ? 'descending' : 'ascending'\">Time</UiTableHead>\n            <UiTableHead>Actor</UiTableHead>\n            <UiTableHead>Action</UiTableHead>\n            <UiTableHead class=\"hidden md:table-cell\">Target</UiTableHead>\n            <UiTableHead class=\"hidden lg:table-cell\">IP address</UiTableHead>\n            <UiTableHead>Result</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"event in rows\" :key=\"event.id\">\n            <UiTableCell class=\"text-muted-foreground whitespace-nowrap\">{{\n              stamp(event.at)\n            }}</UiTableCell>\n            <UiTableCell>\n              <div class=\"flex items-center gap-2\">\n                <UiAvatar\n                  :src=\"`https://i.pravatar.cc/80?img=${event.avatar}`\"\n                  :fallback=\"event.actor.slice(0, 1)\"\n                  class=\"size-6\"\n                />\n                <span class=\"whitespace-nowrap\">{{ event.actor }}</span>\n              </div>\n            </UiTableCell>\n            <UiTableCell\n              ><code class=\"bg-muted rounded px-1.5 py-0.5 text-xs\">{{\n                event.action\n              }}</code></UiTableCell\n            >\n            <UiTableCell class=\"hidden md:table-cell\">{{ event.target }}</UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden font-mono text-xs lg:table-cell\">{{\n              event.ip\n            }}</UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"soft\" shape=\"pill\" :color=\"event.ok ? 'green' : 'red'\">{{\n                event.ok ? \"Success\" : \"Failed\"\n              }}</UiBadge>\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableRow v-if=\"!rows.length\">\n            <UiTableCell colspan=\"6\" class=\"text-muted-foreground py-10 text-center\"\n              >No events recorded.</UiTableCell\n            >\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n      <div class=\"flex items-center justify-between gap-3 border-t px-4 py-3 text-sm\">\n        <p class=\"text-muted-foreground\" aria-live=\"polite\">\n          {{ from }} to {{ to }} of {{ events.length }}\n        </p>\n        <div class=\"flex gap-2\">\n          <UiButton variant=\"outline\" size=\"sm\" :disabled=\"page === 1\" @click=\"page--\"\n            >Previous</UiButton\n          >\n          <UiButton variant=\"outline\" size=\"sm\" :disabled=\"page >= pages\" @click=\"page++\"\n            >Next</UiButton\n          >\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = {\n    id: string;\n    at: string;\n    actor: string;\n    avatar: number;\n    action: string;\n    target: string;\n    ip: string;\n    ok: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      events?: Event[];\n      perPage?: number;\n    }>(),\n    {\n      perPage: 6,\n      events: () => [\n        {\n          id: \"e01\",\n          at: \"2026-10-18T10:02\",\n          actor: \"Maya Patel\",\n          avatar: 32,\n          action: \"project.create\",\n          target: \"Homepage redesign\",\n          ip: \"203.0.113.24\",\n          ok: true,\n        },\n        {\n          id: \"e02\",\n          at: \"2026-10-18T09:47\",\n          actor: \"Leo Fischer\",\n          avatar: 12,\n          action: \"apikey.create\",\n          target: \"Production key\",\n          ip: \"198.51.100.7\",\n          ok: true,\n        },\n        {\n          id: \"e03\",\n          at: \"2026-10-18T09:30\",\n          actor: \"Unknown\",\n          avatar: 33,\n          action: \"auth.login\",\n          target: \"tom@example.com\",\n          ip: \"192.0.2.88\",\n          ok: false,\n        },\n        {\n          id: \"e04\",\n          at: \"2026-10-18T08:55\",\n          actor: \"Sofia Alvarez\",\n          avatar: 45,\n          action: \"member.invite\",\n          target: \"ines@example.com\",\n          ip: \"203.0.113.51\",\n          ok: true,\n        },\n        {\n          id: \"e05\",\n          at: \"2026-10-17T17:12\",\n          actor: \"Noah Kim\",\n          avatar: 15,\n          action: \"settings.update\",\n          target: \"Billing email\",\n          ip: \"198.51.100.19\",\n          ok: true,\n        },\n        {\n          id: \"e06\",\n          at: \"2026-10-17T15:40\",\n          actor: \"Priya Nair\",\n          avatar: 44,\n          action: \"export.run\",\n          target: \"Customers.csv\",\n          ip: \"203.0.113.77\",\n          ok: true,\n        },\n        {\n          id: \"e07\",\n          at: \"2026-10-17T11:05\",\n          actor: \"Leo Fischer\",\n          avatar: 12,\n          action: \"project.delete\",\n          target: \"Old prototype\",\n          ip: \"198.51.100.7\",\n          ok: true,\n        },\n        {\n          id: \"e08\",\n          at: \"2026-10-16T16:20\",\n          actor: \"Maya Patel\",\n          avatar: 32,\n          action: \"role.update\",\n          target: \"Tom Becker to Editor\",\n          ip: \"203.0.113.24\",\n          ok: false,\n        },\n        {\n          id: \"e09\",\n          at: \"2026-10-16T10:00\",\n          actor: \"Tom Becker\",\n          avatar: 33,\n          action: \"auth.login\",\n          target: \"tom@example.com\",\n          ip: \"192.0.2.14\",\n          ok: true,\n        },\n        {\n          id: \"e10\",\n          at: \"2026-10-15T14:31\",\n          actor: \"Sofia Alvarez\",\n          avatar: 45,\n          action: \"member.remove\",\n          target: \"old.intern@example.com\",\n          ip: \"203.0.113.51\",\n          ok: true,\n        },\n        {\n          id: \"e11\",\n          at: \"2026-10-15T09:12\",\n          actor: \"Noah Kim\",\n          avatar: 15,\n          action: \"webhook.update\",\n          target: \"Billing webhook\",\n          ip: \"198.51.100.19\",\n          ok: true,\n        },\n        {\n          id: \"e12\",\n          at: \"2026-10-14T13:45\",\n          actor: \"Ines Costa\",\n          avatar: 47,\n          action: \"doc.publish\",\n          target: \"Launch checklist\",\n          ip: \"203.0.113.90\",\n          ok: true,\n        },\n      ],\n    }\n  );\n\n  const newest = ref(true);\n  const page = ref(1);\n\n  const sorted = computed(() =>\n    [...props.events].sort((a, b) =>\n      newest.value ? b.at.localeCompare(a.at) : a.at.localeCompare(b.at)\n    )\n  );\n  const pages = computed(() => Math.max(1, Math.ceil(sorted.value.length / props.perPage)));\n  const rows = computed(() =>\n    sorted.value.slice((page.value - 1) * props.perPage, page.value * props.perPage)\n  );\n  const from = computed(() => (rows.value.length ? (page.value - 1) * props.perPage + 1 : 0));\n  const to = computed(() => (page.value - 1) * props.perPage + rows.value.length);\n\n  watch(newest, () => (page.value = 1));\n\n  const stamp = (iso: string) =>\n    new Date(`${iso}:00Z`).toLocaleString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      hour: \"numeric\",\n      minute: \"2-digit\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"AuditLog","description":"Audit log table. Features: Table of events with time, actor, action, target, IP address and result, sortable by time with aria-sort, badges for failed events, a page size footer with previous and next and an empty state","path":"Activity/AuditLog/BlockAuditLog1.vue","components":["avatar","badge","button","container","table"]},{"name":"Audit Log 2","fileName":"BlockAuditLog2.vue","file":"<template>\n  <!--\n    Filterable audit log\n    Features: Search across actor, action and target, selects for actor, action type and time range, removable chips for the active filters, a result count and a reset button with an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-2xl font-bold tracking-tight\">Audit log</h1>\n\n    <div class=\"mt-6 grid gap-3 md:grid-cols-[1fr_auto_auto_auto]\">\n      <div class=\"relative\">\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput\n          v-model=\"query\"\n          class=\"pl-9\"\n          placeholder=\"Search events\"\n          aria-label=\"Search events\"\n        />\n      </div>\n      <UiSelect v-model=\"actor\">\n        <UiSelectTrigger class=\"md:w-40\" aria-label=\"Actor\"><UiSelectValue /></UiSelectTrigger>\n        <UiSelectContent>\n          <UiSelectItem value=\"all\">All actors</UiSelectItem>\n          <UiSelectItem v-for=\"name in actors\" :key=\"name\" :value=\"name\">{{ name }}</UiSelectItem>\n        </UiSelectContent>\n      </UiSelect>\n      <UiSelect v-model=\"kind\">\n        <UiSelectTrigger class=\"md:w-40\" aria-label=\"Action type\"\n          ><UiSelectValue\n        /></UiSelectTrigger>\n        <UiSelectContent>\n          <UiSelectItem value=\"all\">All actions</UiSelectItem>\n          <UiSelectItem v-for=\"name in kinds\" :key=\"name\" :value=\"name\" class=\"capitalize\">{{\n            name\n          }}</UiSelectItem>\n        </UiSelectContent>\n      </UiSelect>\n      <UiSelect v-model=\"range\">\n        <UiSelectTrigger class=\"md:w-40\" aria-label=\"Time range\"><UiSelectValue /></UiSelectTrigger>\n        <UiSelectContent>\n          <UiSelectItem value=\"1\">Last 24 hours</UiSelectItem>\n          <UiSelectItem value=\"7\">Last 7 days</UiSelectItem>\n          <UiSelectItem value=\"30\">Last 30 days</UiSelectItem>\n        </UiSelectContent>\n      </UiSelect>\n    </div>\n\n    <div class=\"mt-3 flex flex-wrap items-center gap-2 text-sm\" aria-live=\"polite\">\n      <span class=\"text-muted-foreground\"\n        >{{ filtered.length }} {{ filtered.length === 1 ? \"event\" : \"events\" }}</span\n      >\n      <UiBadge v-for=\"chip in chips\" :key=\"chip.label\" variant=\"soft\" shape=\"pill\" class=\"gap-1\">\n        {{ chip.label }}\n        <button type=\"button\" :aria-label=\"`Remove filter ${chip.label}`\" @click=\"chip.clear()\">\n          <Icon name=\"lucide:x\" class=\"size-3\" />\n        </button>\n      </UiBadge>\n      <UiButton v-if=\"chips.length\" variant=\"ghost\" size=\"sm\" class=\"h-7\" @click=\"reset\"\n        >Reset</UiButton\n      >\n    </div>\n\n    <ul v-if=\"filtered.length\" class=\"mt-4 divide-y rounded-xl border\">\n      <li v-for=\"event in filtered\" :key=\"event.id\" class=\"flex items-center gap-3 px-4 py-3\">\n        <UiAvatar\n          :src=\"`https://i.pravatar.cc/80?img=${event.avatar}`\"\n          :fallback=\"event.actor.slice(0, 1)\"\n          class=\"size-8\"\n        />\n        <div class=\"min-w-0 flex-1\">\n          <p class=\"truncate text-sm\">\n            <span class=\"font-medium\">{{ event.actor }}</span>\n            <code class=\"bg-muted mx-1.5 rounded px-1.5 py-0.5 text-xs\">{{ event.action }}</code>\n            {{ event.target }}\n          </p>\n          <p class=\"text-muted-foreground text-xs\">{{ stamp(event.at) }}</p>\n        </div>\n      </li>\n    </ul>\n    <div\n      v-else\n      class=\"mt-4 rounded-xl border border-dashed px-6 py-12 text-center\"\n      aria-live=\"polite\"\n    >\n      <Icon name=\"lucide:search-x\" class=\"text-muted-foreground mx-auto size-6\" />\n      <p class=\"mt-2 text-sm font-medium\">No events match your filters</p>\n      <UiButton variant=\"link\" size=\"sm\" @click=\"reset\">Reset filters</UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = {\n    id: string;\n    at: string;\n    actor: string;\n    avatar: number;\n    action: string;\n    target: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      /** The current moment as `YYYY-MM-DDTHH:mm`. */\n      now?: string;\n      events?: Event[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      events: () => [\n        {\n          id: \"f1\",\n          at: \"2026-10-18T10:02\",\n          actor: \"Maya Patel\",\n          avatar: 32,\n          action: \"project.create\",\n          target: \"Homepage redesign\",\n        },\n        {\n          id: \"f2\",\n          at: \"2026-10-18T09:47\",\n          actor: \"Leo Fischer\",\n          avatar: 12,\n          action: \"apikey.create\",\n          target: \"Production key\",\n        },\n        {\n          id: \"f3\",\n          at: \"2026-10-18T08:55\",\n          actor: \"Sofia Alvarez\",\n          avatar: 45,\n          action: \"member.invite\",\n          target: \"ines@example.com\",\n        },\n        {\n          id: \"f4\",\n          at: \"2026-10-17T17:12\",\n          actor: \"Noah Kim\",\n          avatar: 15,\n          action: \"settings.update\",\n          target: \"Billing email\",\n        },\n        {\n          id: \"f5\",\n          at: \"2026-10-17T11:05\",\n          actor: \"Leo Fischer\",\n          avatar: 12,\n          action: \"project.delete\",\n          target: \"Old prototype\",\n        },\n        {\n          id: \"f6\",\n          at: \"2026-10-14T13:45\",\n          actor: \"Maya Patel\",\n          avatar: 32,\n          action: \"doc.publish\",\n          target: \"Launch checklist\",\n        },\n        {\n          id: \"f7\",\n          at: \"2026-10-09T09:00\",\n          actor: \"Priya Nair\",\n          avatar: 44,\n          action: \"member.remove\",\n          target: \"old.intern@example.com\",\n        },\n        {\n          id: \"f8\",\n          at: \"2026-09-30T15:30\",\n          actor: \"Noah Kim\",\n          avatar: 15,\n          action: \"apikey.revoke\",\n          target: \"Staging key\",\n        },\n      ],\n    }\n  );\n\n  const query = ref(\"\");\n  const actor = ref(\"all\");\n  const kind = ref(\"all\");\n  const range = ref(\"7\");\n\n  const actors = computed(() => [...new Set(props.events.map((event) => event.actor))].sort());\n  const kinds = computed(() =>\n    [...new Set(props.events.map((event) => event.action.split(\".\")[0]!))].sort()\n  );\n\n  const filtered = computed(() => {\n    const cutoff = new Date(`${props.now}:00Z`).getTime() - Number(range.value) * 86_400_000;\n    const text = query.value.trim().toLowerCase();\n    return props.events\n      .filter((event) => new Date(`${event.at}:00Z`).getTime() >= cutoff)\n      .filter((event) => actor.value === \"all\" || event.actor === actor.value)\n      .filter((event) => kind.value === \"all\" || event.action.startsWith(`${kind.value}.`))\n      .filter(\n        (event) =>\n          !text || `${event.actor} ${event.action} ${event.target}`.toLowerCase().includes(text)\n      )\n      .sort((a, b) => b.at.localeCompare(a.at));\n  });\n\n  const chips = computed(() => {\n    const list: { label: string; clear: () => void }[] = [];\n    if (query.value.trim())\n      list.push({ label: `\"${query.value.trim()}\"`, clear: () => (query.value = \"\") });\n    if (actor.value !== \"all\")\n      list.push({ label: actor.value, clear: () => (actor.value = \"all\") });\n    if (kind.value !== \"all\") list.push({ label: kind.value, clear: () => (kind.value = \"all\") });\n    return list;\n  });\n\n  function reset() {\n    query.value = \"\";\n    actor.value = \"all\";\n    kind.value = \"all\";\n    range.value = \"7\";\n  }\n\n  const stamp = (iso: string) =>\n    new Date(`${iso}:00Z`).toLocaleString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      hour: \"numeric\",\n      minute: \"2-digit\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"AuditLog","description":"Filterable audit log. Features: Search across actor, action and target, selects for actor, action type and time range, removable chips for the active filters, a result count and a reset button with an empty state","path":"Activity/AuditLog/BlockAuditLog2.vue","components":["avatar","badge","button","container","input","select"]},{"name":"Audit Log 3","fileName":"BlockAuditLog3.vue","file":"<template>\n  <!--\n    Audit log with a detail drawer\n    Features: A compact event table where every row opens a side drawer, the drawer shows who, when, where and what changed with before and after values, a copy event ID button and previous and next buttons to walk through events\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-2xl font-bold tracking-tight\">Audit log</h1>\n    <ul class=\"mt-6 divide-y rounded-xl border\">\n      <li v-for=\"event in events\" :key=\"event.id\">\n        <button\n          type=\"button\"\n          class=\"hover:bg-accent/50 focus-visible:bg-accent/50 flex w-full items-center gap-3 px-4 py-3 text-left outline-none\"\n          :aria-label=\"`View details for ${event.action} by ${event.actor}`\"\n          @click=\"show(event.id)\"\n        >\n          <Icon\n            :name=\"event.ok ? 'lucide:circle-check' : 'lucide:circle-x'\"\n            class=\"size-4 shrink-0\"\n            :class=\"event.ok ? 'text-green-500' : 'text-red-500'\"\n          />\n          <span class=\"min-w-0 flex-1\">\n            <span class=\"block truncate text-sm font-medium\">{{ event.action }}</span>\n            <span class=\"text-muted-foreground block truncate text-xs\"\n              >{{ event.actor }} · {{ event.target }}</span\n            >\n          </span>\n          <span class=\"text-muted-foreground hidden text-xs sm:block\">{{ stamp(event.at) }}</span>\n          <Icon name=\"lucide:chevron-right\" class=\"text-muted-foreground size-4 shrink-0\" />\n        </button>\n      </li>\n    </ul>\n\n    <UiSheet v-model:open=\"isOpen\">\n      <UiSheetContent side=\"right\" class=\"w-full sm:max-w-md\">\n        <template v-if=\"current\">\n          <UiSheetHeader>\n            <UiSheetTitle>{{ current.action }}</UiSheetTitle>\n            <UiSheetDescription>{{ stamp(current.at) }} UTC</UiSheetDescription>\n          </UiSheetHeader>\n          <div class=\"space-y-6 overflow-y-auto px-4\">\n            <div class=\"flex items-center gap-3\">\n              <UiAvatar\n                :src=\"`https://i.pravatar.cc/80?img=${current.avatar}`\"\n                :fallback=\"current.actor.slice(0, 1)\"\n                class=\"size-10\"\n              />\n              <div>\n                <p class=\"text-sm font-medium\">{{ current.actor }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ current.email }}</p>\n              </div>\n              <UiBadge\n                class=\"ml-auto\"\n                variant=\"soft\"\n                shape=\"pill\"\n                :color=\"current.ok ? 'green' : 'red'\"\n                >{{ current.ok ? \"Success\" : \"Failed\" }}</UiBadge\n              >\n            </div>\n            <dl class=\"grid grid-cols-[6rem_1fr] gap-x-3 gap-y-2 text-sm\">\n              <dt class=\"text-muted-foreground\">Target</dt>\n              <dd>{{ current.target }}</dd>\n              <dt class=\"text-muted-foreground\">IP address</dt>\n              <dd class=\"font-mono text-xs leading-5\">{{ current.ip }}</dd>\n              <dt class=\"text-muted-foreground\">Location</dt>\n              <dd>{{ current.location }}</dd>\n              <dt class=\"text-muted-foreground\">User agent</dt>\n              <dd class=\"break-words\">{{ current.agent }}</dd>\n              <dt class=\"text-muted-foreground\">Event ID</dt>\n              <dd class=\"flex items-center gap-1\">\n                <code class=\"bg-muted rounded px-1.5 py-0.5 text-xs\">{{ current.id }}</code>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  class=\"size-6\"\n                  aria-label=\"Copy event ID\"\n                  @click=\"copy(current.id)\"\n                  ><Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-3.5\"\n                /></UiButton>\n              </dd>\n            </dl>\n            <div v-if=\"current.changes.length\">\n              <h3 class=\"mb-2 text-sm font-semibold\">Changes</h3>\n              <ul class=\"divide-y rounded-lg border text-sm\">\n                <li\n                  v-for=\"change in current.changes\"\n                  :key=\"change.field\"\n                  class=\"grid gap-1 px-3 py-2\"\n                >\n                  <span class=\"text-muted-foreground text-xs\">{{ change.field }}</span>\n                  <span class=\"text-red-700 line-through dark:text-red-400\">{{\n                    change.before\n                  }}</span>\n                  <span class=\"text-green-700 dark:text-green-400\">{{ change.after }}</span>\n                </li>\n              </ul>\n            </div>\n            <p v-else class=\"text-muted-foreground text-sm\">\n              This event did not change any fields.\n            </p>\n          </div>\n          <UiSheetFooter class=\"flex-row justify-between\">\n            <UiButton variant=\"outline\" size=\"sm\" :disabled=\"index <= 0\" @click=\"step(-1)\"\n              ><Icon name=\"lucide:chevron-left\" class=\"size-4\" />Newer</UiButton\n            >\n            <UiButton\n              variant=\"outline\"\n              size=\"sm\"\n              :disabled=\"index >= events.length - 1\"\n              @click=\"step(1)\"\n              >Older<Icon name=\"lucide:chevron-right\" class=\"size-4\"\n            /></UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = {\n    id: string;\n    at: string;\n    actor: string;\n    avatar: number;\n    email: string;\n    action: string;\n    target: string;\n    ip: string;\n    location: string;\n    agent: string;\n    ok: boolean;\n    changes: { field: string; before: string; after: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      events?: Event[];\n    }>(),\n    {\n      events: () => [\n        {\n          id: \"evt_8f2a\",\n          at: \"2026-10-18T10:02\",\n          actor: \"Maya Patel\",\n          avatar: 32,\n          email: \"maya@example.com\",\n          action: \"settings.update\",\n          target: \"Billing email\",\n          ip: \"203.0.113.24\",\n          location: \"New York, US\",\n          agent: \"Chrome 141 on macOS\",\n          ok: true,\n          changes: [\n            {\n              field: \"billing_email\",\n              before: \"billing@old.example.com\",\n              after: \"finance@example.com\",\n            },\n          ],\n        },\n        {\n          id: \"evt_71c9\",\n          at: \"2026-10-18T09:47\",\n          actor: \"Leo Fischer\",\n          avatar: 12,\n          email: \"leo@example.com\",\n          action: \"role.update\",\n          target: \"Tom Becker\",\n          ip: \"198.51.100.7\",\n          location: \"Berlin, DE\",\n          agent: \"Firefox 133 on Linux\",\n          ok: true,\n          changes: [\n            { field: \"role\", before: \"Viewer\", after: \"Editor\" },\n            { field: \"can_export\", before: \"false\", after: \"true\" },\n          ],\n        },\n        {\n          id: \"evt_5b03\",\n          at: \"2026-10-18T09:30\",\n          actor: \"Unknown\",\n          avatar: 33,\n          email: \"not signed in\",\n          action: \"auth.login\",\n          target: \"tom@example.com\",\n          ip: \"192.0.2.88\",\n          location: \"Lagos, NG\",\n          agent: \"curl 8.4\",\n          ok: false,\n          changes: [],\n        },\n        {\n          id: \"evt_2d7e\",\n          at: \"2026-10-17T17:12\",\n          actor: \"Sofia Alvarez\",\n          avatar: 45,\n          email: \"sofia@example.com\",\n          action: \"apikey.create\",\n          target: \"Production key\",\n          ip: \"203.0.113.51\",\n          location: \"Madrid, ES\",\n          agent: \"Safari 18 on macOS\",\n          ok: true,\n          changes: [{ field: \"scopes\", before: \"none\", after: \"read, write\" }],\n        },\n      ],\n    }\n  );\n\n  const isOpen = ref(false);\n  const currentId = ref(props.events[0]?.id ?? \"\");\n  const index = computed(() => props.events.findIndex((event) => event.id === currentId.value));\n  const current = computed(() => props.events[index.value]);\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  function show(id: string) {\n    currentId.value = id;\n    isOpen.value = true;\n  }\n\n  function step(direction: number) {\n    const next = props.events[index.value + direction];\n    if (next) currentId.value = next.id;\n  }\n\n  const stamp = (iso: string) =>\n    new Date(`${iso}:00Z`).toLocaleString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      hour: \"numeric\",\n      minute: \"2-digit\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"AuditLog","description":"Audit log with a detail drawer. Features: A compact event table where every row opens a side drawer, the drawer shows who, when, where and what changed with before and after values, a copy event ID button and previous and next buttons to walk through events","path":"Activity/AuditLog/BlockAuditLog3.vue","components":["avatar","badge","button","container","sheet"]},{"name":"Audit Log 4","fileName":"BlockAuditLog4.vue","file":"<template>\n  <!--\n    Audit log export bar\n    Features: A toolbar with a time range, an event type filter and a CSV or JSON choice, a live count of the events that will be exported, an export button with a short preparing state that downloads a real file and a preview of the first rows\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Export audit log</h1>\n      <p class=\"text-muted-foreground mt-1 text-sm\">Download events for your compliance records.</p>\n\n      <UiCard class=\"mt-6 gap-4\">\n        <UiCardContent class=\"grid gap-4 sm:grid-cols-3\">\n          <div class=\"space-y-2\">\n            <UiLabel for=\"export-range\">Time range</UiLabel>\n            <UiSelect v-model=\"range\">\n              <UiSelectTrigger id=\"export-range\"><UiSelectValue /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem value=\"1\">Last 24 hours</UiSelectItem>\n                <UiSelectItem value=\"7\">Last 7 days</UiSelectItem>\n                <UiSelectItem value=\"30\">Last 30 days</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n          <div class=\"space-y-2\">\n            <UiLabel for=\"export-kind\">Events</UiLabel>\n            <UiSelect v-model=\"kind\">\n              <UiSelectTrigger id=\"export-kind\"><UiSelectValue /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem value=\"all\">All events</UiSelectItem>\n                <UiSelectItem v-for=\"name in kinds\" :key=\"name\" :value=\"name\" class=\"capitalize\">{{\n                  name\n                }}</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n          <div class=\"space-y-2\">\n            <p id=\"export-format\" class=\"text-sm font-medium\">Format</p>\n            <UiToggleGroup\n              :model-value=\"format\"\n              type=\"single\"\n              variant=\"outline\"\n              class=\"w-full\"\n              aria-labelledby=\"export-format\"\n              @update:model-value=\"(value) => (format = (value as 'csv' | 'json') || 'csv')\"\n            >\n              <UiToggleGroupItem value=\"csv\" class=\"flex-1\">CSV</UiToggleGroupItem>\n              <UiToggleGroupItem value=\"json\" class=\"flex-1\">JSON</UiToggleGroupItem>\n            </UiToggleGroup>\n          </div>\n        </UiCardContent>\n        <UiCardFooter class=\"flex-wrap justify-between gap-3 border-t\">\n          <p class=\"text-sm\" aria-live=\"polite\">\n            <span class=\"font-semibold tabular-nums\">{{ selected.length }}</span>\n            {{ selected.length === 1 ? \"event\" : \"events\" }} will be exported\n          </p>\n          <UiButton :disabled=\"!selected.length || busy\" @click=\"run\">\n            <Icon\n              :name=\"busy ? 'lucide:loader-circle' : 'lucide:download'\"\n              class=\"size-4\"\n              :class=\"busy ? 'animate-spin' : ''\"\n            />\n            {{ busy ? \"Preparing\" : `Export ${format.toUpperCase()}` }}\n          </UiButton>\n        </UiCardFooter>\n      </UiCard>\n\n      <p class=\"mt-6 text-sm font-medium\">Preview</p>\n      <div class=\"mt-2 overflow-x-auto rounded-xl border\">\n        <UiTable>\n          <UiTableHeader>\n            <UiTableRow>\n              <UiTableHead>Time</UiTableHead>\n              <UiTableHead>Actor</UiTableHead>\n              <UiTableHead>Action</UiTableHead>\n              <UiTableHead>Target</UiTableHead>\n            </UiTableRow>\n          </UiTableHeader>\n          <UiTableBody>\n            <UiTableRow v-for=\"event in selected.slice(0, 4)\" :key=\"event.id\">\n              <UiTableCell class=\"text-muted-foreground whitespace-nowrap\">{{\n                event.at.replace(\"T\", \" \")\n              }}</UiTableCell>\n              <UiTableCell class=\"whitespace-nowrap\">{{ event.actor }}</UiTableCell>\n              <UiTableCell><code class=\"text-xs\">{{ event.action }}</code></UiTableCell>\n              <UiTableCell class=\"whitespace-nowrap\">{{ event.target }}</UiTableCell>\n            </UiTableRow>\n            <UiTableRow v-if=\"!selected.length\">\n              <UiTableCell colspan=\"4\" class=\"text-muted-foreground py-8 text-center\"\n                >Nothing to export for these filters.</UiTableCell\n              >\n            </UiTableRow>\n          </UiTableBody>\n        </UiTable>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = { id: string; at: string; actor: string; action: string; target: string };\n\n  const props = withDefaults(\n    defineProps<{\n      now?: string;\n      events?: Event[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      events: () => [\n        {\n          id: \"x1\",\n          at: \"2026-10-18T10:02\",\n          actor: \"Maya Patel\",\n          action: \"project.create\",\n          target: \"Homepage redesign\",\n        },\n        {\n          id: \"x2\",\n          at: \"2026-10-18T09:47\",\n          actor: \"Leo Fischer\",\n          action: \"apikey.create\",\n          target: \"Production key\",\n        },\n        {\n          id: \"x3\",\n          at: \"2026-10-17T17:12\",\n          actor: \"Noah Kim\",\n          action: \"settings.update\",\n          target: \"Billing email\",\n        },\n        {\n          id: \"x4\",\n          at: \"2026-10-16T11:05\",\n          actor: \"Leo Fischer\",\n          action: \"project.delete\",\n          target: \"Old prototype\",\n        },\n        {\n          id: \"x5\",\n          at: \"2026-10-14T13:45\",\n          actor: \"Maya Patel\",\n          action: \"project.create\",\n          target: \"Launch checklist\",\n        },\n        {\n          id: \"x6\",\n          at: \"2026-10-09T09:00\",\n          actor: \"Priya Nair\",\n          action: \"member.remove\",\n          target: \"old.intern@example.com\",\n        },\n        {\n          id: \"x7\",\n          at: \"2026-10-02T15:30\",\n          actor: \"Noah Kim\",\n          action: \"apikey.revoke\",\n          target: \"Staging key\",\n        },\n      ],\n    }\n  );\n\n  const range = ref(\"7\");\n  const kind = ref(\"all\");\n  const format = ref<\"csv\" | \"json\">(\"csv\");\n  const busy = ref(false);\n\n  const kinds = computed(() =>\n    [...new Set(props.events.map((event) => event.action.split(\".\")[0]!))].sort()\n  );\n  const selected = computed(() => {\n    const cutoff = new Date(`${props.now}:00Z`).getTime() - Number(range.value) * 86_400_000;\n    return props.events\n      .filter((event) => new Date(`${event.at}:00Z`).getTime() >= cutoff)\n      .filter((event) => kind.value === \"all\" || event.action.startsWith(`${kind.value}.`))\n      .sort((a, b) => b.at.localeCompare(a.at));\n  });\n\n  function build() {\n    if (format.value === \"json\") return JSON.stringify(selected.value, null, 2);\n    const quote = (value: string) => `\"${value.replace(/\"/g, '\"\"')}\"`;\n    const head = \"time,actor,action,target\";\n    const lines = selected.value.map((event) =>\n      [event.at, event.actor, event.action, event.target].map(quote).join(\",\")\n    );\n    return [head, ...lines].join(\"\\n\");\n  }\n\n  function run() {\n    busy.value = true;\n    setTimeout(() => {\n      const type = format.value === \"json\" ? \"application/json\" : \"text/csv\";\n      const url = URL.createObjectURL(new Blob([build()], { type }));\n      const link = document.createElement(\"a\");\n      link.href = url;\n      link.download = `audit-log.${format.value}`;\n      link.click();\n      URL.revokeObjectURL(url);\n      busy.value = false;\n      useSonner.success(`Exported ${selected.value.length} events`);\n    }, 600);\n  }\n</script>\n","category":"AuditLog","description":"Audit log export bar. Features: A toolbar with a time range, an event type filter and a CSV or JSON choice, a live count of the events that will be exported, an export button with a short preparing state that downloads a real file and a preview of the first rows","path":"Activity/AuditLog/BlockAuditLog4.vue","components":["button","card","container","label","select","table","toggle-group"]},{"name":"Audit Log 5","fileName":"BlockAuditLog5.vue","file":"<template>\n  <!--\n    Security events\n    Features: Summary tiles for open, high severity and resolved events, a banner for unreviewed critical events, severity badges, review and dismiss actions that move events to resolved and an undo for the last action\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Security events</h1>\n\n      <div class=\"mt-6 grid gap-3 sm:grid-cols-3\">\n        <div v-for=\"tile in tiles\" :key=\"tile.label\" class=\"rounded-xl border p-4\">\n          <p class=\"text-muted-foreground text-xs\">{{ tile.label }}</p>\n          <p class=\"mt-1 text-2xl font-bold tabular-nums\">{{ tile.value }}</p>\n        </div>\n      </div>\n\n      <UiAlert\n        v-if=\"critical\"\n        class=\"mt-4\"\n        icon=\"lucide:shield-alert\"\n        :title=\"`${critical} high severity ${critical === 1 ? 'event needs' : 'events need'} review`\"\n        description=\"Check these first. They may mean someone else has access to an account.\"\n      />\n\n      <ul class=\"mt-4 space-y-3\" aria-live=\"polite\">\n        <li v-for=\"event in open\" :key=\"event.id\" class=\"rounded-xl border p-4\">\n          <div class=\"flex items-start gap-3\">\n            <span\n              class=\"mt-0.5 grid size-8 shrink-0 place-items-center rounded-full\"\n              :class=\"tones[event.severity]\"\n            >\n              <Icon :name=\"event.icon\" class=\"size-4\" />\n            </span>\n            <div class=\"min-w-0 flex-1\">\n              <div class=\"flex flex-wrap items-center gap-2\">\n                <p class=\"text-sm font-medium\">{{ event.title }}</p>\n                <UiBadge\n                  variant=\"soft\"\n                  shape=\"pill\"\n                  :color=\"badge[event.severity]\"\n                  class=\"capitalize\"\n                  >{{ event.severity }}</UiBadge\n                >\n              </div>\n              <p class=\"text-muted-foreground mt-1 text-sm\">{{ event.detail }}</p>\n              <p class=\"text-muted-foreground mt-1 text-xs\">{{ event.when }}</p>\n              <div class=\"mt-3 flex gap-2\">\n                <UiButton size=\"sm\" @click=\"resolve(event.id, 'Reviewed')\">Mark reviewed</UiButton>\n                <UiButton variant=\"outline\" size=\"sm\" @click=\"resolve(event.id, 'Dismissed')\"\n                  >Dismiss</UiButton\n                >\n              </div>\n            </div>\n          </div>\n        </li>\n        <li\n          v-if=\"!open.length\"\n          class=\"text-muted-foreground rounded-xl border border-dashed py-12 text-center text-sm\"\n        >\n          <Icon name=\"lucide:shield-check\" class=\"mx-auto mb-2 size-6\" />\n          Nothing needs your attention.\n        </li>\n      </ul>\n\n      <div\n        v-if=\"last\"\n        class=\"bg-muted/60 mt-4 flex items-center justify-between gap-3 rounded-lg px-4 py-2.5 text-sm\"\n        role=\"status\"\n      >\n        <span>{{ last.how }} \"{{ last.title }}\".</span>\n        <UiButton variant=\"link\" size=\"sm\" class=\"h-auto p-0\" @click=\"undo\">Undo</UiButton>\n      </div>\n\n      <section v-if=\"done.length\" class=\"mt-8\">\n        <h2 class=\"text-sm font-semibold\">Resolved ({{ done.length }})</h2>\n        <ul class=\"text-muted-foreground mt-2 divide-y rounded-xl border text-sm\">\n          <li v-for=\"event in done\" :key=\"event.id\" class=\"flex items-center gap-2 px-4 py-2.5\">\n            <Icon name=\"lucide:check\" class=\"size-4 shrink-0\" />\n            <span class=\"flex-1 truncate\">{{ event.title }}</span>\n            <span class=\"text-xs\">{{ event.how }}</span>\n          </li>\n        </ul>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Severity = \"high\" | \"medium\" | \"low\";\n  type Event = {\n    id: string;\n    icon: string;\n    title: string;\n    detail: string;\n    when: string;\n    severity: Severity;\n    how?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      events?: Event[];\n    }>(),\n    {\n      events: () => [\n        {\n          id: \"s1\",\n          icon: \"lucide:user-x\",\n          title: \"7 failed sign ins for tom@example.com\",\n          detail: \"From 192.0.2.88 in Lagos, NG within 4 minutes.\",\n          when: \"Today, 9:30 AM\",\n          severity: \"high\",\n        },\n        {\n          id: \"s2\",\n          icon: \"lucide:key-round\",\n          title: \"New API key with write access\",\n          detail: \"Production key created by Leo Fischer.\",\n          when: \"Today, 9:47 AM\",\n          severity: \"medium\",\n        },\n        {\n          id: \"s3\",\n          icon: \"lucide:globe\",\n          title: \"Sign in from a new country\",\n          detail: \"Sofia Alvarez signed in from Madrid, ES for the first time.\",\n          when: \"Yesterday, 5:12 PM\",\n          severity: \"medium\",\n        },\n        {\n          id: \"s4\",\n          icon: \"lucide:shield-off\",\n          title: \"Two factor turned off\",\n          detail: \"Noah Kim disabled two factor authentication.\",\n          when: \"Yesterday, 11:00 AM\",\n          severity: \"high\",\n        },\n        {\n          id: \"s5\",\n          icon: \"lucide:download\",\n          title: \"Large export of customer data\",\n          detail: \"48,210 rows exported by Priya Nair.\",\n          when: \"Mon, 3:40 PM\",\n          severity: \"low\",\n        },\n      ],\n    }\n  );\n\n  const tones: Record<Severity, string> = {\n    high: \"bg-red-100 text-red-700 dark:bg-red-500/20 dark:text-red-300\",\n    medium: \"bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300\",\n    low: \"bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300\",\n  };\n  const badge: Record<Severity, string> = { high: \"red\", medium: \"amber\", low: \"blue\" };\n\n  const items = ref<Event[]>(props.events.map((event) => ({ ...event })));\n  const last = ref<{ id: string; title: string; how: string } | null>(null);\n\n  const open = computed(() => items.value.filter((event) => !event.how));\n  const done = computed(() => items.value.filter((event) => event.how));\n  const critical = computed(() => open.value.filter((event) => event.severity === \"high\").length);\n  const tiles = computed(() => [\n    { label: \"Open\", value: open.value.length },\n    { label: \"High severity\", value: critical.value },\n    { label: \"Resolved\", value: done.value.length },\n  ]);\n\n  function resolve(id: string, how: string) {\n    const event = items.value.find((item) => item.id === id);\n    if (!event) return;\n    event.how = how;\n    last.value = { id, title: event.title, how };\n  }\n\n  function undo() {\n    const event = items.value.find((item) => item.id === last.value?.id);\n    if (event) event.how = undefined;\n    last.value = null;\n  }\n</script>\n","category":"AuditLog","description":"Security events. Features: Summary tiles for open, high severity and resolved events, a banner for unreviewed critical events, severity badges, review and dismiss actions that move events to resolved and an undo for the last action","path":"Activity/AuditLog/BlockAuditLog5.vue","components":["alert","badge","button","container"]},{"name":"Audit Log 6","fileName":"BlockAuditLog6.vue","file":"<template>\n  <!--\n    Login history and sessions\n    Features: A list of sign ins with device, browser, place, IP address and time, a badge on the current session, a flagged sign in with a not me action, sign out for a single session and a sign out of all other sessions with a confirmation\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Login history</h1>\n          <p class=\"text-muted-foreground text-sm\">\n            Where your account has been signed in recently.\n          </p>\n        </div>\n        <UiAlertDialog>\n          <UiAlertDialogTrigger as-child>\n            <UiButton variant=\"outline\" size=\"sm\" :disabled=\"!others\"\n              >Sign out of other sessions</UiButton\n            >\n          </UiAlertDialogTrigger>\n          <UiAlertDialogContent>\n            <UiAlertDialogHeader>\n              <UiAlertDialogTitle\n                >Sign out of {{ others }} other\n                {{ others === 1 ? \"session\" : \"sessions\" }}?</UiAlertDialogTitle\n              >\n              <UiAlertDialogDescription>\n                You stay signed in here. The other devices will need to sign in again.\n              </UiAlertDialogDescription>\n            </UiAlertDialogHeader>\n            <UiAlertDialogFooter>\n              <UiAlertDialogCancel>Cancel</UiAlertDialogCancel>\n              <UiAlertDialogAction @click=\"signOutOthers\">Sign out</UiAlertDialogAction>\n            </UiAlertDialogFooter>\n          </UiAlertDialogContent>\n        </UiAlertDialog>\n      </div>\n\n      <ul class=\"mt-6 divide-y rounded-xl border\" aria-live=\"polite\">\n        <li\n          v-for=\"session in sessions\"\n          :key=\"session.id\"\n          class=\"flex items-center gap-4 px-4 py-4\"\n          :class=\"session.flagged ? 'bg-red-50 dark:bg-red-500/10' : ''\"\n        >\n          <span class=\"bg-muted grid size-10 shrink-0 place-items-center rounded-lg\"\n            ><Icon :name=\"session.icon\" class=\"size-5\"\n          /></span>\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"flex flex-wrap items-center gap-2 text-sm font-medium\">\n              {{ session.device }}\n              <UiBadge v-if=\"session.current\" variant=\"soft\" color=\"green\" shape=\"pill\"\n                >This device</UiBadge\n              >\n              <UiBadge v-if=\"session.flagged\" variant=\"soft\" color=\"red\" shape=\"pill\"\n                >Unusual</UiBadge\n              >\n            </p>\n            <p class=\"text-muted-foreground truncate text-sm\">\n              {{ session.place }} · {{ session.ip }}\n            </p>\n            <p class=\"text-muted-foreground text-xs\">\n              {{ session.current ? \"Active now\" : session.when }}\n            </p>\n          </div>\n          <UiButton v-if=\"session.flagged\" variant=\"destructive\" size=\"sm\" @click=\"notMe(session)\"\n            >Not me</UiButton\n          >\n          <UiButton\n            v-else-if=\"!session.current\"\n            variant=\"ghost\"\n            size=\"sm\"\n            :aria-label=\"`Sign out ${session.device}`\"\n            @click=\"remove(session.id)\"\n            >Sign out</UiButton\n          >\n        </li>\n        <li v-if=\"!sessions.length\" class=\"text-muted-foreground px-4 py-10 text-center text-sm\">\n          No sessions.\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Session = {\n    id: string;\n    icon: string;\n    device: string;\n    place: string;\n    ip: string;\n    when: string;\n    current?: boolean;\n    flagged?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      sessions?: Session[];\n    }>(),\n    {\n      sessions: () => [\n        {\n          id: \"l1\",\n          icon: \"lucide:laptop\",\n          device: \"Chrome on macOS\",\n          place: \"New York, US\",\n          ip: \"203.0.113.24\",\n          when: \"Now\",\n          current: true,\n        },\n        {\n          id: \"l2\",\n          icon: \"lucide:smartphone\",\n          device: \"Safari on iPhone\",\n          place: \"New York, US\",\n          ip: \"203.0.113.25\",\n          when: \"Today, 8:12 AM\",\n        },\n        {\n          id: \"l3\",\n          icon: \"lucide:monitor\",\n          device: \"Firefox on Windows\",\n          place: \"Lagos, NG\",\n          ip: \"192.0.2.88\",\n          when: \"Today, 9:30 AM\",\n          flagged: true,\n        },\n        {\n          id: \"l4\",\n          icon: \"lucide:tablet\",\n          device: \"Safari on iPad\",\n          place: \"Boston, US\",\n          ip: \"198.51.100.40\",\n          when: \"Oct 14, 6:45 PM\",\n        },\n      ],\n    }\n  );\n\n  const sessions = ref<Session[]>(props.sessions.map((session) => ({ ...session })));\n  const others = computed(() => sessions.value.filter((session) => !session.current).length);\n\n  function remove(id: string) {\n    sessions.value = sessions.value.filter((session) => session.id !== id);\n    useSonner.success(\"Session signed out\");\n  }\n\n  function notMe(session: Session) {\n    sessions.value = sessions.value.filter((item) => item.id !== session.id);\n    useSonner.success(\"Session signed out\", {\n      description: \"We recommend changing your password.\",\n    });\n  }\n\n  function signOutOthers() {\n    sessions.value = sessions.value.filter((session) => session.current);\n    useSonner.success(\"Signed out of other sessions\");\n  }\n</script>\n","category":"AuditLog","description":"Login history and sessions. Features: A list of sign ins with device, browser, place, IP address and time, a badge on the current session, a flagged sign in with a not me action, sign out for a single session and a sign out of all other sessions with a confirmation","path":"Activity/AuditLog/BlockAuditLog6.vue","components":["alert-dialog","badge","button","container"]},{"name":"Availability 1","fileName":"BlockAvailability1.vue","file":"<template>\n  <!--\n    Weekly hours editor\n    Features: A row for each weekday with an on and off switch, one or more time ranges per day, add and remove range buttons, a copy to other days action, range validation and a weekly total\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-2xl gap-0 py-0\">\n      <div class=\"flex flex-wrap items-center justify-between gap-3 border-b px-6 py-4\">\n        <div>\n          <h1 class=\"font-semibold\">Weekly hours</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">{{ total }} hours a week</p>\n        </div>\n        <UiButton size=\"sm\" :disabled=\"!valid\" @click=\"save\">Save</UiButton>\n      </div>\n      <ul class=\"divide-y\">\n        <li\n          v-for=\"day in days\"\n          :key=\"day.name\"\n          class=\"flex flex-col gap-3 px-6 py-4 sm:flex-row sm:items-start\"\n        >\n          <div class=\"flex w-36 shrink-0 items-center gap-3 sm:pt-1.5\">\n            <UiSwitch\n              :model-value=\"day.on\"\n              :aria-label=\"`${day.name} available`\"\n              @update:model-value=\"toggle(day, $event)\"\n            />\n            <span class=\"text-sm font-medium\" :class=\"day.on ? '' : 'text-muted-foreground'\">{{\n              day.name\n            }}</span>\n          </div>\n          <div class=\"flex-1\">\n            <p v-if=\"!day.on\" class=\"text-muted-foreground pt-1.5 text-sm\">Unavailable</p>\n            <ul v-else class=\"space-y-2\">\n              <li v-for=\"(range, index) in day.ranges\" :key=\"index\">\n                <div class=\"flex items-center gap-2\">\n                  <UiInput\n                    v-model=\"range.start\"\n                    type=\"time\"\n                    class=\"w-32\"\n                    :aria-label=\"`${day.name} start ${index + 1}`\"\n                  />\n                  <span class=\"text-muted-foreground\">to</span>\n                  <UiInput\n                    v-model=\"range.end\"\n                    type=\"time\"\n                    class=\"w-32\"\n                    :aria-label=\"`${day.name} end ${index + 1}`\"\n                    :aria-invalid=\"range.end <= range.start\"\n                  />\n                  <UiButton\n                    variant=\"ghost\"\n                    size=\"icon-sm\"\n                    :aria-label=\"`Remove ${day.name} range ${index + 1}`\"\n                    @click=\"removeRange(day, index)\"\n                    ><Icon name=\"lucide:x\" class=\"size-4\"\n                  /></UiButton>\n                </div>\n                <p v-if=\"range.end <= range.start\" class=\"text-destructive mt-1 text-xs\">\n                  The end must be after the start.\n                </p>\n              </li>\n            </ul>\n          </div>\n          <div v-if=\"day.on\" class=\"flex gap-1\">\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              :aria-label=\"`Add a range on ${day.name}`\"\n              @click=\"day.ranges.push({ start: '13:00', end: '17:00' })\"\n              ><Icon name=\"lucide:plus\" class=\"size-4\"\n            /></UiButton>\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              :aria-label=\"`Copy ${day.name} to weekdays`\"\n              @click=\"copyToWeekdays(day)\"\n              ><Icon name=\"lucide:copy\" class=\"size-4\"\n            /></UiButton>\n          </div>\n        </li>\n      </ul>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Range = { start: string; end: string };\n  type Day = { name: string; on: boolean; ranges: Range[] };\n\n  const props = withDefaults(\n    defineProps<{\n      hours?: Day[];\n    }>(),\n    {\n      hours: () => [\n        { name: \"Sunday\", on: false, ranges: [] },\n        {\n          name: \"Monday\",\n          on: true,\n          ranges: [\n            { start: \"09:00\", end: \"12:00\" },\n            { start: \"13:00\", end: \"17:00\" },\n          ],\n        },\n        { name: \"Tuesday\", on: true, ranges: [{ start: \"09:00\", end: \"17:00\" }] },\n        { name: \"Wednesday\", on: true, ranges: [{ start: \"09:00\", end: \"17:00\" }] },\n        { name: \"Thursday\", on: true, ranges: [{ start: \"10:00\", end: \"16:00\" }] },\n        { name: \"Friday\", on: true, ranges: [{ start: \"09:00\", end: \"13:00\" }] },\n        { name: \"Saturday\", on: false, ranges: [] },\n      ],\n    }\n  );\n\n  const days = ref<Day[]>(\n    props.hours.map((day) => ({ ...day, ranges: day.ranges.map((range) => ({ ...range })) }))\n  );\n\n  const minutes = (time: string) => Number(time.slice(0, 2)) * 60 + Number(time.slice(3, 5));\n  const valid = computed(() =>\n    days.value.every(\n      (day) => !day.on || day.ranges.every((range) => range.start && range.end > range.start)\n    )\n  );\n  const total = computed(() => {\n    const sum = days.value.reduce(\n      (all, day) =>\n        all +\n        (day.on\n          ? day.ranges.reduce(\n              (hours, range) => hours + Math.max(0, minutes(range.end) - minutes(range.start)),\n              0\n            )\n          : 0),\n      0\n    );\n    return Math.round((sum / 60) * 10) / 10;\n  });\n\n  function toggle(day: Day, value: boolean | string) {\n    day.on = value === true;\n    if (day.on && !day.ranges.length) day.ranges.push({ start: \"09:00\", end: \"17:00\" });\n  }\n\n  function removeRange(day: Day, index: number) {\n    day.ranges.splice(index, 1);\n    if (!day.ranges.length) day.on = false;\n  }\n\n  function copyToWeekdays(source: Day) {\n    for (const day of days.value) {\n      if (day === source || day.name === \"Sunday\" || day.name === \"Saturday\") continue;\n      day.on = true;\n      day.ranges = source.ranges.map((range) => ({ ...range }));\n    }\n    useSonner.success(`Copied ${source.name} to every weekday`);\n  }\n\n  function save() {\n    useSonner.success(\"Weekly hours saved\");\n  }\n</script>\n","category":"Availability","description":"Weekly hours editor. Features: A row for each weekday with an on and off switch, one or more time ranges per day, add and remove range buttons, a copy to other days action, range validation and a weekly total","path":"Calendar/Availability/BlockAvailability1.vue","components":["button","card","container","input","switch"]},{"name":"Availability 2","fileName":"BlockAvailability2.vue","file":"<template>\n  <!--\n    Date overrides\n    Features: Add a date with unavailable all day or custom hours, quick add chips for common holidays, upcoming overrides sorted by date with a type badge, remove buttons and a count of how many are in the past\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-4xl gap-8 md:grid-cols-[18rem_1fr]\">\n      <UiCard class=\"gap-4 self-start\">\n        <UiCardHeader>\n          <UiCardTitle class=\"text-base\">Add an override</UiCardTitle>\n          <UiCardDescription>Change your hours for a single day.</UiCardDescription>\n        </UiCardHeader>\n        <UiCardContent>\n          <form class=\"space-y-4\" novalidate @submit.prevent=\"add\">\n            <div class=\"space-y-2\">\n              <UiLabel for=\"override-date\">Date</UiLabel>\n              <UiInput id=\"override-date\" v-model=\"draft.date\" type=\"date\" :min=\"today\" />\n              <p v-if=\"error\" class=\"text-destructive text-sm\">{{ error }}</p>\n            </div>\n            <UiRadioGroup v-model=\"draft.kind\" class=\"grid gap-2\" aria-label=\"Type\">\n              <label class=\"flex items-center gap-2 text-sm\"\n                ><UiRadioGroupItem value=\"off\" />Unavailable all day</label\n              >\n              <label class=\"flex items-center gap-2 text-sm\"\n                ><UiRadioGroupItem value=\"custom\" />Custom hours</label\n              >\n            </UiRadioGroup>\n            <div v-if=\"draft.kind === 'custom'\" class=\"flex items-center gap-2\">\n              <UiInput v-model=\"draft.start\" type=\"time\" aria-label=\"Start time\" />\n              <span class=\"text-muted-foreground\">to</span>\n              <UiInput v-model=\"draft.end\" type=\"time\" aria-label=\"End time\" />\n            </div>\n            <UiButton type=\"submit\" class=\"w-full\">Add override</UiButton>\n          </form>\n          <div class=\"mt-5 border-t pt-4\">\n            <p class=\"text-muted-foreground mb-2 text-xs font-medium\">Quick add</p>\n            <div class=\"flex flex-wrap gap-2\">\n              <UiButton\n                v-for=\"holiday in holidays\"\n                :key=\"holiday.date\"\n                variant=\"outline\"\n                size=\"sm\"\n                :disabled=\"items.some((item) => item.date === holiday.date)\"\n                @click=\"addHoliday(holiday)\"\n                >{{ holiday.name }}</UiButton\n              >\n            </div>\n          </div>\n        </UiCardContent>\n      </UiCard>\n\n      <section aria-live=\"polite\">\n        <h1 class=\"text-xl font-bold tracking-tight\">Date overrides</h1>\n        <p class=\"text-muted-foreground text-sm\">\n          {{ upcoming.length }} upcoming<span v-if=\"past > 0\">, {{ past }} past hidden</span>\n        </p>\n        <ul v-if=\"upcoming.length\" class=\"mt-4 divide-y rounded-xl border\">\n          <li v-for=\"item in upcoming\" :key=\"item.date\" class=\"flex items-center gap-3 px-4 py-3\">\n            <span\n              class=\"bg-muted flex w-12 shrink-0 flex-col items-center rounded-md py-1 text-[10px] leading-tight font-semibold uppercase\"\n            >\n              {{ month(item.date) }}<span class=\"text-base\">{{ Number(item.date.slice(8)) }}</span>\n            </span>\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"text-sm font-medium\">\n                {{ weekday(item.date)\n                }}<span v-if=\"item.label\" class=\"text-muted-foreground font-normal\">\n                  · {{ item.label }}</span\n                >\n              </p>\n              <p class=\"text-muted-foreground text-sm\">\n                {{\n                  item.kind === \"off\" ? \"Unavailable\" : `${clock(item.start)} to ${clock(item.end)}`\n                }}\n              </p>\n            </div>\n            <UiBadge variant=\"soft\" shape=\"pill\" :color=\"item.kind === 'off' ? 'red' : 'blue'\">{{\n              item.kind === \"off\" ? \"Off\" : \"Custom\"\n            }}</UiBadge>\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              :aria-label=\"`Remove override for ${weekday(item.date)}`\"\n              @click=\"remove(item.date)\"\n              ><Icon name=\"lucide:trash-2\" class=\"size-4\"\n            /></UiButton>\n          </li>\n        </ul>\n        <div\n          v-else\n          class=\"text-muted-foreground mt-4 rounded-xl border border-dashed py-12 text-center text-sm\"\n        >\n          No overrides. Your weekly hours apply every day.\n        </div>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Kind = \"off\" | \"custom\";\n  type Override = { date: string; kind: Kind; start: string; end: string; label?: string };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      overrides?: Override[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      overrides: () => [\n        { date: \"2026-10-09\", kind: \"off\", start: \"\", end: \"\", label: \"Offsite\" },\n        {\n          date: \"2026-10-23\",\n          kind: \"custom\",\n          start: \"09:00\",\n          end: \"12:00\",\n          label: \"Doctor in the afternoon\",\n        },\n        { date: \"2026-11-26\", kind: \"off\", start: \"\", end: \"\", label: \"Thanksgiving\" },\n      ],\n    }\n  );\n\n  const holidays = [\n    { name: \"Thanksgiving\", date: \"2026-11-26\" },\n    { name: \"Christmas Eve\", date: \"2026-12-24\" },\n    { name: \"Christmas Day\", date: \"2026-12-25\" },\n    { name: \"New Year's Day\", date: \"2027-01-01\" },\n  ];\n\n  const items = ref<Override[]>(props.overrides.map((item) => ({ ...item })));\n  const draft = reactive({ date: \"\", kind: \"off\" as Kind, start: \"10:00\", end: \"14:00\" });\n  const error = ref(\"\");\n\n  const upcoming = computed(() =>\n    items.value\n      .filter((item) => item.date >= props.today)\n      .sort((a, b) => a.date.localeCompare(b.date))\n  );\n  const past = computed(() => items.value.length - upcoming.value.length);\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const month = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", { month: \"short\", timeZone: \"UTC\" });\n  const weekday = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n\n  function add() {\n    if (!draft.date) {\n      error.value = \"Pick a date.\";\n      return;\n    }\n    if (draft.date < props.today) {\n      error.value = \"Pick a date in the future.\";\n      return;\n    }\n    if (draft.kind === \"custom\" && draft.end <= draft.start) {\n      error.value = \"The end must be after the start.\";\n      return;\n    }\n    error.value = \"\";\n    items.value = [\n      ...items.value.filter((item) => item.date !== draft.date),\n      {\n        date: draft.date,\n        kind: draft.kind,\n        start: draft.kind === \"custom\" ? draft.start : \"\",\n        end: draft.kind === \"custom\" ? draft.end : \"\",\n      },\n    ];\n    draft.date = \"\";\n  }\n\n  function addHoliday(holiday: { name: string; date: string }) {\n    items.value.push({ date: holiday.date, kind: \"off\", start: \"\", end: \"\", label: holiday.name });\n  }\n\n  function remove(date: string) {\n    items.value = items.value.filter((item) => item.date !== date);\n  }\n</script>\n","category":"Availability","description":"Date overrides. Features: Add a date with unavailable all day or custom hours, quick add chips for common holidays, upcoming overrides sorted by date with a type badge, remove buttons and a count of how many are in the past","path":"Calendar/Availability/BlockAvailability2.vue","components":["badge","button","card","container","input","label","radio-group"]},{"name":"Availability 3","fileName":"BlockAvailability3.vue","file":"<template>\n  <!--\n    Calendar connections\n    Features: Cards for Google, Outlook and Apple calendars with connected and not connected states, a check for conflicts switch, a choice of which calendar receives new bookings, a confirmation dialog before disconnecting and a last synced time\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Calendar connections</h1>\n      <p class=\"text-muted-foreground mt-1 text-sm\">\n        Connected calendars are checked for conflicts so nobody can book a time you are busy.\n      </p>\n\n      <ul class=\"mt-6 space-y-4\">\n        <li v-for=\"item in providers\" :key=\"item.id\">\n          <UiCard class=\"gap-0 py-0\">\n            <div class=\"flex items-center gap-4 p-5\">\n              <span class=\"bg-muted grid size-11 shrink-0 place-items-center rounded-lg\"\n                ><Icon :name=\"item.icon\" class=\"size-6\"\n              /></span>\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"font-semibold\">{{ item.name }}</p>\n                <p class=\"text-muted-foreground truncate text-sm\">\n                  {{ item.connected ? item.account : \"Not connected\" }}\n                </p>\n              </div>\n              <UiBadge v-if=\"item.connected\" variant=\"soft\" color=\"green\" shape=\"pill\"\n                >Connected</UiBadge\n              >\n              <UiButton\n                v-if=\"!item.connected\"\n                size=\"sm\"\n                :loading=\"connecting === item.id\"\n                @click=\"connect(item)\"\n                >Connect</UiButton\n              >\n              <UiAlertDialog v-else>\n                <UiAlertDialogTrigger as-child>\n                  <UiButton variant=\"outline\" size=\"sm\">Disconnect</UiButton>\n                </UiAlertDialogTrigger>\n                <UiAlertDialogContent>\n                  <UiAlertDialogHeader>\n                    <UiAlertDialogTitle>Disconnect {{ item.name }}?</UiAlertDialogTitle>\n                    <UiAlertDialogDescription>\n                      Events in {{ item.account }} will no longer block your availability.\n                    </UiAlertDialogDescription>\n                  </UiAlertDialogHeader>\n                  <UiAlertDialogFooter>\n                    <UiAlertDialogCancel>Keep connected</UiAlertDialogCancel>\n                    <UiAlertDialogAction\n                      class=\"bg-destructive hover:bg-destructive/90 text-white\"\n                      @click=\"disconnect(item)\"\n                      >Disconnect</UiAlertDialogAction\n                    >\n                  </UiAlertDialogFooter>\n                </UiAlertDialogContent>\n              </UiAlertDialog>\n            </div>\n            <div v-if=\"item.connected\" class=\"space-y-4 border-t px-5 py-4\">\n              <div class=\"flex items-center justify-between gap-4\">\n                <div>\n                  <UiLabel :for=\"`conflicts-${item.id}`\">Check for conflicts</UiLabel>\n                  <p class=\"text-muted-foreground text-xs\">\n                    Busy events hide those times on your booking page.\n                  </p>\n                </div>\n                <UiSwitch :id=\"`conflicts-${item.id}`\" v-model=\"item.conflicts\" />\n              </div>\n              <div class=\"flex items-center justify-between gap-4\">\n                <UiLabel :for=\"`target-${item.id}`\">Add new bookings to</UiLabel>\n                <UiSelect v-model=\"item.target\">\n                  <UiSelectTrigger :id=\"`target-${item.id}`\" class=\"w-48\"\n                    ><UiSelectValue\n                  /></UiSelectTrigger>\n                  <UiSelectContent>\n                    <UiSelectItem\n                      v-for=\"calendar in item.calendars\"\n                      :key=\"calendar\"\n                      :value=\"calendar\"\n                      >{{ calendar }}</UiSelectItem\n                    >\n                  </UiSelectContent>\n                </UiSelect>\n              </div>\n              <p class=\"text-muted-foreground flex items-center gap-1.5 text-xs\">\n                <Icon name=\"lucide:refresh-cw\" class=\"size-3.5\" />Last synced {{ item.synced }}\n              </p>\n            </div>\n          </UiCard>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Provider = {\n    id: string;\n    name: string;\n    icon: string;\n    account: string;\n    connected: boolean;\n    conflicts: boolean;\n    calendars: string[];\n    target: string;\n    synced: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      connections?: Provider[];\n    }>(),\n    {\n      connections: () => [\n        {\n          id: \"google\",\n          name: \"Google Calendar\",\n          icon: \"logos:google-calendar\",\n          account: \"alex@example.com\",\n          connected: true,\n          conflicts: true,\n          calendars: [\"Work\", \"Personal\", \"Birthdays\"],\n          target: \"Work\",\n          synced: \"2 minutes ago\",\n        },\n        {\n          id: \"outlook\",\n          name: \"Outlook Calendar\",\n          icon: \"logos:microsoft-icon\",\n          account: \"\",\n          connected: false,\n          conflicts: true,\n          calendars: [\"Calendar\", \"Team\"],\n          target: \"Calendar\",\n          synced: \"just now\",\n        },\n        {\n          id: \"apple\",\n          name: \"iCloud Calendar\",\n          icon: \"logos:apple\",\n          account: \"\",\n          connected: false,\n          conflicts: true,\n          calendars: [\"Home\", \"Work\"],\n          target: \"Home\",\n          synced: \"just now\",\n        },\n      ],\n    }\n  );\n\n  const providers = ref<Provider[]>(\n    props.connections.map((item) => ({ ...item, calendars: [...item.calendars] }))\n  );\n  const connecting = ref(\"\");\n\n  function connect(item: Provider) {\n    connecting.value = item.id;\n    setTimeout(() => {\n      item.connected = true;\n      item.account = \"alex@example.com\";\n      connecting.value = \"\";\n      useSonner.success(`${item.name} connected`);\n    }, 700);\n  }\n\n  function disconnect(item: Provider) {\n    item.connected = false;\n    item.account = \"\";\n    useSonner.success(`${item.name} disconnected`);\n  }\n</script>\n","category":"Availability","description":"Calendar connections. Features: Cards for Google, Outlook and Apple calendars with connected and not connected states, a check for conflicts switch, a choice of which calendar receives new bookings, a confirmation dialog before disconnecting and a last synced time","path":"Calendar/Availability/BlockAvailability3.vue","components":["alert-dialog","badge","button","card","container","label","select","switch"]},{"name":"Availability 4","fileName":"BlockAvailability4.vue","file":"<template>\n  <!--\n    Booking page settings\n    Features: Page title and link with a copy button, duration, buffer and minimum notice selects, a booking window in days, an approval switch, accent color swatches and a live preview card that follows every change\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-5xl gap-8 lg:grid-cols-[1fr_20rem]\">\n      <form class=\"space-y-6\" @submit.prevent=\"save\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Booking page</h1>\n          <p class=\"text-muted-foreground text-sm\">Control how people book time with you.</p>\n        </div>\n\n        <div class=\"space-y-2\">\n          <UiLabel for=\"page-title\">Title</UiLabel>\n          <UiInput id=\"page-title\" v-model=\"form.title\" />\n        </div>\n        <div class=\"space-y-2\">\n          <UiLabel for=\"page-slug\">Link</UiLabel>\n          <div class=\"flex gap-2\">\n            <div class=\"flex flex-1 items-center overflow-hidden rounded-md border\">\n              <span class=\"bg-muted text-muted-foreground px-3 py-2 text-sm\">{{ baseUrl }}/</span>\n              <input\n                id=\"page-slug\"\n                v-model=\"form.slug\"\n                class=\"min-w-0 flex-1 bg-transparent px-3 py-2 text-sm outline-none\"\n                @input=\"form.slug = slugify(form.slug)\"\n              />\n            </div>\n            <UiButton\n              type=\"button\"\n              variant=\"outline\"\n              size=\"icon\"\n              aria-label=\"Copy link\"\n              @click=\"copy(link)\"\n              ><Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\"\n            /></UiButton>\n          </div>\n        </div>\n        <div class=\"space-y-2\">\n          <UiLabel for=\"page-about\">Description</UiLabel>\n          <UiTextarea id=\"page-about\" v-model=\"form.about\" :rows=\"3\" />\n        </div>\n\n        <div class=\"grid gap-4 sm:grid-cols-3\">\n          <div class=\"space-y-2\">\n            <UiLabel for=\"page-duration\">Duration</UiLabel>\n            <UiSelect v-model=\"form.duration\">\n              <UiSelectTrigger id=\"page-duration\"><UiSelectValue /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem v-for=\"value in durations\" :key=\"value\" :value=\"value\"\n                  >{{ value }} minutes</UiSelectItem\n                >\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n          <div class=\"space-y-2\">\n            <UiLabel for=\"page-buffer\">Buffer after</UiLabel>\n            <UiSelect v-model=\"form.buffer\">\n              <UiSelectTrigger id=\"page-buffer\"><UiSelectValue /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem value=\"0\">No buffer</UiSelectItem>\n                <UiSelectItem value=\"10\">10 minutes</UiSelectItem>\n                <UiSelectItem value=\"15\">15 minutes</UiSelectItem>\n                <UiSelectItem value=\"30\">30 minutes</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n          <div class=\"space-y-2\">\n            <UiLabel for=\"page-notice\">Minimum notice</UiLabel>\n            <UiSelect v-model=\"form.notice\">\n              <UiSelectTrigger id=\"page-notice\"><UiSelectValue /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem value=\"1\">1 hour</UiSelectItem>\n                <UiSelectItem value=\"4\">4 hours</UiSelectItem>\n                <UiSelectItem value=\"24\">1 day</UiSelectItem>\n                <UiSelectItem value=\"48\">2 days</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n        </div>\n\n        <div class=\"space-y-2\">\n          <div class=\"flex items-center justify-between\">\n            <UiLabel for=\"page-window\">Book up to</UiLabel>\n            <span class=\"text-sm tabular-nums\" aria-live=\"polite\"\n              >{{ form.window }} days ahead</span\n            >\n          </div>\n          <input\n            id=\"page-window\"\n            v-model.number=\"form.window\"\n            type=\"range\"\n            min=\"7\"\n            max=\"90\"\n            step=\"1\"\n            class=\"accent-primary w-full\"\n          />\n        </div>\n\n        <div class=\"flex items-start justify-between gap-4 rounded-lg border p-4\">\n          <div>\n            <UiLabel for=\"page-approval\">Require approval</UiLabel>\n            <p class=\"text-muted-foreground text-sm\">\n              Each booking stays pending until you confirm it.\n            </p>\n          </div>\n          <UiSwitch id=\"page-approval\" v-model=\"form.approval\" />\n        </div>\n\n        <div class=\"space-y-2\">\n          <p id=\"page-accent\" class=\"text-sm font-medium\">Accent color</p>\n          <UiRadioGroup v-model=\"form.accent\" class=\"flex gap-2\" aria-labelledby=\"page-accent\">\n            <label v-for=\"item in accents\" :key=\"item.name\" class=\"relative cursor-pointer\">\n              <UiRadioGroupItem\n                :value=\"item.name\"\n                :aria-label=\"item.name\"\n                class=\"peer absolute inset-0 size-full cursor-pointer opacity-0\"\n              />\n              <span\n                class=\"ring-offset-background peer-data-[state=checked]:ring-foreground peer-focus-visible:ring-ring block size-7 rounded-full ring-2 ring-transparent ring-offset-2\"\n                :class=\"item.swatch\"\n              />\n            </label>\n          </UiRadioGroup>\n        </div>\n\n        <UiButton type=\"submit\">Save changes</UiButton>\n      </form>\n\n      <aside class=\"lg:sticky lg:top-6 lg:self-start\">\n        <p class=\"text-muted-foreground mb-2 text-xs font-medium tracking-wide uppercase\">\n          Preview\n        </p>\n        <UiCard class=\"gap-3 overflow-hidden pt-0\">\n          <div class=\"h-2\" :class=\"accentOf.swatch\" />\n          <UiCardHeader>\n            <UiCardTitle>{{ form.title || \"Untitled\" }}</UiCardTitle>\n            <UiCardDescription>{{ form.about }}</UiCardDescription>\n          </UiCardHeader>\n          <UiCardContent class=\"space-y-2 text-sm\">\n            <p class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:clock\" class=\"size-4\" />{{ form.duration }} minutes\n            </p>\n            <p class=\"text-muted-foreground flex items-center gap-2\">\n              <Icon name=\"lucide:calendar-range\" class=\"size-4\" />Up to {{ form.window }} days ahead\n            </p>\n            <p class=\"text-muted-foreground flex items-center gap-2\">\n              <Icon name=\"lucide:hourglass\" class=\"size-4\" />{{ noticeLabel }} notice\n            </p>\n            <p v-if=\"form.approval\" class=\"text-muted-foreground flex items-center gap-2\">\n              <Icon name=\"lucide:shield-check\" class=\"size-4\" />Needs your approval\n            </p>\n          </UiCardContent>\n          <UiCardFooter>\n            <UiButton class=\"w-full text-white\" :class=\"accentOf.swatch\" tabindex=\"-1\"\n              >Pick a time</UiButton\n            >\n          </UiCardFooter>\n        </UiCard>\n        <p class=\"text-muted-foreground mt-2 truncate text-xs\">{{ link }}</p>\n      </aside>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      baseUrl?: string;\n      initial?: {\n        title: string;\n        slug: string;\n        about: string;\n        duration: string;\n        buffer: string;\n        notice: string;\n        window: number;\n        approval: boolean;\n        accent: string;\n      };\n    }>(),\n    {\n      baseUrl: \"cal.example.com\",\n      initial: () => ({\n        title: \"Intro call with Alex\",\n        slug: \"alex/intro\",\n        about: \"A short call to talk about your project and see if we are a fit.\",\n        duration: \"30\",\n        buffer: \"10\",\n        notice: \"4\",\n        window: 30,\n        approval: false,\n        accent: \"blue\",\n      }),\n    }\n  );\n\n  const durations = [\"15\", \"30\", \"45\", \"60\", \"90\"];\n  const accents = [\n    { name: \"blue\", swatch: \"bg-blue-500\" },\n    { name: \"green\", swatch: \"bg-green-500\" },\n    { name: \"amber\", swatch: \"bg-amber-500\" },\n    { name: \"rose\", swatch: \"bg-rose-500\" },\n    { name: \"violet\", swatch: \"bg-violet-500\" },\n  ];\n  const noticeLabels: Record<string, string> = {\n    \"1\": \"1 hour\",\n    \"4\": \"4 hours\",\n    \"24\": \"1 day\",\n    \"48\": \"2 days\",\n  };\n\n  const form = reactive({ ...props.initial });\n  const accentOf = computed(() => accents.find((item) => item.name === form.accent) ?? accents[0]!);\n  const noticeLabel = computed(() => noticeLabels[form.notice] ?? `${form.notice} hours`);\n  const link = computed(() => `https://${props.baseUrl}/${form.slug}`);\n\n  const slugify = (value: string) => value.toLowerCase().replace(/[^a-z0-9/-]+/g, \"-\");\n\n  const { copy, copied } = useClipboard({ copiedDuring: 2000 });\n\n  function save() {\n    useSonner.success(\"Booking page saved\");\n  }\n</script>\n","category":"Availability","description":"Booking page settings. Features: Page title and link with a copy button, duration, buffer and minimum notice selects, a booking window in days, an approval switch, accent color swatches and a live preview card that follows every change","path":"Calendar/Availability/BlockAvailability4.vue","components":["button","card","container","input","label","radio-group","select","switch","textarea"]},{"name":"Banner 1","fileName":"BlockBanner1.vue","file":"<template>\n  <!--\n    Slim announcement bar for the top of a page\n    Features: Full width brand colored bar, short message with an arrow link, dismiss button that collapses the bar, show again link for previews\n  -->\n  <div>\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        class=\"overflow-hidden\"\n        :initial=\"{ height: 0, opacity: 0 }\"\n        :animate=\"{ height: 'auto', opacity: 1 }\"\n        :exit=\"{ height: 0, opacity: 0 }\"\n        :transition=\"{ duration: 0.3, ease: 'easeInOut' }\"\n      >\n        <div class=\"bg-primary text-primary-foreground relative px-10 py-2.5 text-center text-sm\">\n          <slot>\n            <p class=\"flex flex-wrap items-center justify-center gap-x-2 gap-y-1\">\n              <Icon :name=\"props.icon\" class=\"size-4 shrink-0\" />\n              <span class=\"font-medium\">{{ props.message }}</span>\n              <NuxtLink\n                :to=\"props.link\"\n                class=\"group inline-flex items-center gap-1 font-semibold underline underline-offset-4\"\n              >\n                {{ props.cta }}\n                <Icon\n                  name=\"lucide:arrow-right\"\n                  class=\"size-3.5 transition-transform group-hover:translate-x-0.5\"\n                />\n              </NuxtLink>\n            </p>\n          </slot>\n          <button\n            type=\"button\"\n            class=\"hover:bg-primary-foreground/15 absolute top-1/2 right-2 flex size-7 -translate-y-1/2 items-center justify-center rounded-md transition-colors\"\n            aria-label=\"Dismiss announcement\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visible\" class=\"p-4 text-center\">\n      <UiButton variant=\"ghost\" size=\"sm\" @click=\"visible = true\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      message?: string;\n      cta?: string;\n      link?: string;\n      icon?: string;\n    }>(),\n    {\n      message: \"We've just announced our Series A.\",\n      cta: \"Read the announcement\",\n      link: \"#\",\n      icon: \"lucide:sparkles\",\n    }\n  );\n\n  const visible = ref(true);\n</script>\n","category":"Banner","description":"Slim announcement bar for the top of a page. Features: Full width brand colored bar, short message with an arrow link, dismiss button that collapses the bar, show again link for previews","path":"Banner/BlockBanner1.vue","components":["button"]},{"name":"Banner 10","fileName":"BlockBanner10.vue","file":"<template>\n  <!--\n    Cookie consent banner with preferences\n    Features: Floating card, accept all and reject all actions, customize panel with category switches, necessary cookies locked on, saves a choice and slides away\n  -->\n  <div class=\"relative min-h-72\">\n    <AnimatePresence>\n      <Motion\n        v-if=\"!choice\"\n        class=\"fixed inset-x-4 bottom-4 z-50 sm:right-auto sm:max-w-md\"\n        :initial=\"{ opacity: 0, y: 24 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :exit=\"{ opacity: 0, y: 24 }\"\n        :transition=\"{ type: 'spring', stiffness: 260, damping: 26 }\"\n      >\n        <div\n          class=\"bg-card rounded-2xl border p-5 shadow-xl\"\n          role=\"dialog\"\n          aria-label=\"Cookie preferences\"\n        >\n          <div class=\"flex items-start gap-3\">\n            <UiFancyIcon icon=\"lucide:cookie\" theme=\"light\" color=\"warning\" size=\"md\" />\n            <div>\n              <slot name=\"title\">\n                <h3 class=\"font-semibold\">{{ props.title }}</h3>\n              </slot>\n              <p class=\"text-muted-foreground mt-1 text-sm\">\n                {{ props.description }}\n                <NuxtLink to=\"#\" class=\"text-foreground font-medium underline underline-offset-4\">\n                  Cookie policy\n                </NuxtLink>\n              </p>\n            </div>\n          </div>\n\n          <div v-if=\"customizing\" class=\"mt-4 space-y-3 border-t pt-4\">\n            <div\n              v-for=\"item in categories\"\n              :key=\"item.id\"\n              class=\"flex items-start justify-between gap-4\"\n            >\n              <div>\n                <UiLabel :for=\"item.id\" class=\"text-sm font-medium\">{{ item.label }}</UiLabel>\n                <p class=\"text-muted-foreground text-xs\">{{ item.hint }}</p>\n              </div>\n              <UiSwitch\n                :id=\"item.id\"\n                :model-value=\"item.locked ? true : prefs[item.id]\"\n                :disabled=\"item.locked\"\n                @update:model-value=\"prefs[item.id] = $event === true\"\n              />\n            </div>\n          </div>\n\n          <div class=\"mt-5 flex flex-wrap items-center gap-2\">\n            <UiButton v-if=\"!customizing\" variant=\"ghost\" size=\"sm\" @click=\"customizing = true\">\n              Customize\n            </UiButton>\n            <UiButton v-else variant=\"ghost\" size=\"sm\" @click=\"save\">Save choices</UiButton>\n            <div class=\"ml-auto flex gap-2\">\n              <UiButton variant=\"outline\" size=\"sm\" @click=\"reject\">Reject all</UiButton>\n              <UiButton size=\"sm\" @click=\"acceptAll\">Accept all</UiButton>\n            </div>\n          </div>\n        </div>\n      </Motion>\n    </AnimatePresence>\n\n    <div v-if=\"choice\" class=\"flex flex-col items-center gap-3 p-8 text-center\">\n      <p class=\"text-muted-foreground text-sm\">\n        Choice saved: <span class=\"text-foreground font-medium\">{{ choice }}</span>\n      </p>\n      <UiButton variant=\"outline\" size=\"sm\" @click=\"reset\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"We value your privacy\",\n      description: \"We use cookies to keep the site working and to understand how it's used.\",\n    }\n  );\n\n  const categories = [\n    {\n      id: \"necessary\",\n      label: \"Strictly necessary\",\n      hint: \"Needed for the site to work.\",\n      locked: true,\n    },\n    { id: \"analytics\", label: \"Analytics\", hint: \"Helps us improve with anonymous usage data.\" },\n    { id: \"marketing\", label: \"Marketing\", hint: \"Lets us show you relevant offers.\" },\n  ] as {\n    id: \"necessary\" | \"analytics\" | \"marketing\";\n    label: string;\n    hint: string;\n    locked?: boolean;\n  }[];\n\n  const prefs = reactive({ necessary: true, analytics: false, marketing: false });\n  const customizing = ref(false);\n  const choice = ref(\"\");\n\n  function acceptAll() {\n    prefs.analytics = true;\n    prefs.marketing = true;\n    choice.value = \"Accepted all\";\n  }\n  function reject() {\n    prefs.analytics = false;\n    prefs.marketing = false;\n    choice.value = \"Rejected non-essential\";\n  }\n  function save() {\n    const on = [prefs.analytics && \"analytics\", prefs.marketing && \"marketing\"].filter(Boolean);\n    choice.value = on.length ? `Allowed ${on.join(\" and \")}` : \"Necessary only\";\n  }\n  function reset() {\n    choice.value = \"\";\n    customizing.value = false;\n  }\n</script>\n","category":"Banner","description":"Cookie consent banner with preferences. Features: Floating card, accept all and reject all actions, customize panel with category switches, necessary cookies locked on, saves a choice and slides away","path":"Banner/BlockBanner10.vue","components":["button","fancy-icon","label","switch"]},{"name":"Banner 11","fileName":"BlockBanner11.vue","file":"<template>\n  <!--\n    Get the app banner with store buttons and a phone illustration\n    Features: Brand gradient, rating line, App Store and Google Play buttons, phone mockup built from CSS that bobs gently, dismiss\n  -->\n  <div class=\"px-4 py-6\">\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :exit=\"{ opacity: 0, scale: 0.97 }\"\n        :transition=\"{ type: 'spring', stiffness: 220, damping: 24 }\"\n      >\n        <div\n          class=\"from-primary to-primary/80 text-primary-foreground relative mx-auto grid max-w-4xl items-center gap-6 overflow-hidden rounded-2xl bg-linear-to-br px-6 pt-8 shadow-lg sm:grid-cols-[1fr_auto] sm:px-10 sm:pt-0\"\n        >\n          <div\n            class=\"bg-primary-foreground/10 absolute -top-16 -left-10 size-64 rounded-full blur-3xl\"\n          />\n          <div class=\"relative space-y-4 pb-2 sm:py-10\">\n            <div class=\"flex items-center gap-1\" aria-label=\"Rated 4.9 out of 5\">\n              <Icon\n                v-for=\"n in 5\"\n                :key=\"n\"\n                name=\"lucide:star\"\n                class=\"size-4 fill-amber-400 text-amber-400\"\n              />\n              <span class=\"text-primary-foreground/80 ml-1.5 text-xs font-medium\"\n                >4.9 · 12k ratings</span\n              >\n            </div>\n            <slot name=\"title\">\n              <h3 class=\"text-2xl font-bold tracking-tight text-balance\">{{ props.title }}</h3>\n            </slot>\n            <slot name=\"description\">\n              <p class=\"text-primary-foreground/75 max-w-md text-sm\">{{ props.description }}</p>\n            </slot>\n            <div class=\"flex flex-wrap gap-3\">\n              <slot>\n                <UiButton variant=\"secondary\" class=\"text-foreground h-11 gap-2.5 px-4\">\n                  <Icon name=\"mdi:apple\" class=\"size-6\" />\n                  <span class=\"text-left leading-tight\">\n                    <span class=\"block text-[10px] font-normal opacity-70\">Download on the</span>\n                    <span class=\"block text-sm font-semibold\">App Store</span>\n                  </span>\n                </UiButton>\n                <UiButton variant=\"secondary\" class=\"text-foreground h-11 gap-2.5 px-4\">\n                  <Icon name=\"mdi:google-play\" class=\"size-5\" />\n                  <span class=\"text-left leading-tight\">\n                    <span class=\"block text-[10px] font-normal opacity-70\">Get it on</span>\n                    <span class=\"block text-sm font-semibold\">Google Play</span>\n                  </span>\n                </UiButton>\n              </slot>\n            </div>\n          </div>\n\n          <Motion\n            class=\"relative mx-auto -mb-16 h-56 w-40 shrink-0 sm:mb-0 sm:h-64 sm:self-end\"\n            :animate=\"{ y: [0, -8, 0] }\"\n            :transition=\"{ duration: 4, repeat: Infinity, ease: 'easeInOut' }\"\n            aria-hidden=\"true\"\n          >\n            <div\n              class=\"bg-background absolute inset-x-0 top-6 bottom-[-4rem] rounded-[1.75rem] border-[6px] border-black/80 shadow-2xl sm:top-10\"\n            >\n              <div class=\"mx-auto mt-2 h-4 w-14 rounded-full bg-black/80\" />\n              <div class=\"space-y-2 p-3\">\n                <div class=\"bg-primary/15 h-14 rounded-xl\" />\n                <div class=\"grid grid-cols-2 gap-2\">\n                  <div class=\"bg-muted h-12 rounded-lg\" />\n                  <div class=\"bg-muted h-12 rounded-lg\" />\n                </div>\n                <div v-for=\"n in 3\" :key=\"n\" class=\"flex items-center gap-2\">\n                  <div class=\"bg-muted size-6 rounded-full\" />\n                  <div class=\"bg-muted h-2 flex-1 rounded-full\" />\n                </div>\n              </div>\n            </div>\n          </Motion>\n\n          <button\n            type=\"button\"\n            class=\"bg-primary-foreground/15 hover:bg-primary-foreground/30 absolute top-3 right-3 flex size-8 items-center justify-center rounded-full backdrop-blur transition-colors\"\n            aria-label=\"Dismiss banner\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visible\" class=\"text-center\">\n      <UiButton variant=\"ghost\" size=\"sm\" @click=\"visible = true\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Take your work anywhere\",\n      description: \"Get notifications, approve requests and check progress from your phone.\",\n    }\n  );\n\n  const visible = ref(true);\n</script>\n","category":"Banner","description":"Get the app banner with store buttons and a phone illustration. Features: Brand gradient, rating line, App Store and Google Play buttons, phone mockup built from CSS that bobs gently, dismiss","path":"Banner/BlockBanner11.vue","components":["button"]},{"name":"Banner 12","fileName":"BlockBanner12.vue","file":"<template>\n  <!--\n    Notifications summary banner\n    Features: Avatar stack of senders, unread count, latest message preview, mark as read that swaps to an all caught up state, view all action, dismiss\n  -->\n  <div class=\"px-4 py-6\">\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        class=\"overflow-hidden\"\n        :initial=\"{ height: 0, opacity: 0 }\"\n        :animate=\"{ height: 'auto', opacity: 1 }\"\n        :exit=\"{ height: 0, opacity: 0 }\"\n        :transition=\"{ duration: 0.3, ease: 'easeInOut' }\"\n      >\n        <div class=\"bg-card relative mx-auto max-w-3xl rounded-xl border p-4 pr-12 shadow-sm\">\n          <Transition\n            mode=\"out-in\"\n            enter-active-class=\"transition duration-200\"\n            enter-from-class=\"opacity-0 translate-y-1\"\n            leave-active-class=\"transition duration-150\"\n            leave-to-class=\"opacity-0 -translate-y-1\"\n          >\n            <div\n              v-if=\"unread > 0\"\n              key=\"unread\"\n              class=\"flex flex-col gap-4 sm:flex-row sm:items-center\"\n            >\n              <div class=\"flex -space-x-2\">\n                <UiAvatar\n                  v-for=\"person in props.people\"\n                  :key=\"person.name\"\n                  :src=\"person.avatar\"\n                  :fallback=\"person.name[0]\"\n                  class=\"ring-card size-9 ring-2\"\n                />\n              </div>\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"text-sm font-semibold\">\n                  You have {{ unread }} new {{ unread === 1 ? \"notification\" : \"notifications\" }}\n                </p>\n                <p class=\"text-muted-foreground truncate text-sm\">\n                  <span class=\"text-foreground font-medium\">{{ props.people[0]?.name }}</span>\n                  {{ props.preview }}\n                </p>\n              </div>\n              <div class=\"flex shrink-0 gap-2\">\n                <UiButton size=\"sm\">\n                  <Icon name=\"lucide:inbox\" class=\"size-4\" />\n                  View all\n                </UiButton>\n                <UiButton size=\"sm\" variant=\"outline\" @click=\"unread = 0\">\n                  <Icon name=\"lucide:check-check\" class=\"size-4\" />\n                  Mark as read\n                </UiButton>\n              </div>\n            </div>\n            <div v-else key=\"caught-up\" class=\"flex items-center gap-3 py-1\">\n              <span\n                class=\"flex size-9 items-center justify-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n              >\n                <Icon name=\"lucide:check\" class=\"size-5\" />\n              </span>\n              <p class=\"flex-1 text-sm font-medium\">You're all caught up</p>\n              <UiButton variant=\"ghost\" size=\"sm\" @click=\"unread = props.count\">Undo</UiButton>\n            </div>\n          </Transition>\n\n          <button\n            type=\"button\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground absolute top-3 right-3 flex size-7 items-center justify-center rounded-md transition-colors\"\n            aria-label=\"Dismiss notifications banner\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visible\" class=\"text-center\">\n      <UiButton variant=\"ghost\" size=\"sm\" @click=\"show\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      count?: number;\n      preview?: string;\n      people?: { name: string; avatar: string }[];\n    }>(),\n    {\n      count: 3,\n      preview: 'commented on your design review: \"Can we move this to Friday?\"',\n      people: () => [\n        { name: \"Priya Nair\", avatar: \"https://i.pravatar.cc/80?img=45\" },\n        { name: \"Liam Carter\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n        { name: \"Sam Okafor\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n      ],\n    }\n  );\n\n  const visible = ref(true);\n  const unread = ref(props.count);\n\n  function show() {\n    unread.value = props.count;\n    visible.value = true;\n  }\n</script>\n","category":"Banner","description":"Notifications summary banner. Features: Avatar stack of senders, unread count, latest message preview, mark as read that swaps to an all caught up state, view all action, dismiss","path":"Banner/BlockBanner12.vue","components":["avatar","button"]},{"name":"Banner 13","fileName":"BlockBanner13.vue","file":"<template>\n  <!--\n    Release notes toast anchored to the bottom corner\n    Features: Floating card with version badge, short list of changes, what's new and later actions, slides in and out, dismiss\n  -->\n  <div class=\"relative min-h-72\">\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        class=\"fixed right-4 bottom-4 left-4 z-50 sm:left-auto sm:w-96\"\n        :initial=\"{ opacity: 0, x: 40 }\"\n        :animate=\"{ opacity: 1, x: 0 }\"\n        :exit=\"{ opacity: 0, x: 40 }\"\n        :transition=\"{ type: 'spring', stiffness: 260, damping: 26 }\"\n      >\n        <div class=\"bg-card relative overflow-hidden rounded-2xl border shadow-xl\" role=\"status\">\n          <div class=\"from-primary to-primary/60 h-1 bg-linear-to-r\" />\n          <div class=\"p-5\">\n            <div class=\"flex items-start gap-3 pr-6\">\n              <UiFancyIcon icon=\"lucide:rocket\" theme=\"gradient\" color=\"primary\" size=\"md\" />\n              <div>\n                <div class=\"flex items-center gap-2\">\n                  <h3 class=\"font-semibold\">{{ props.title }}</h3>\n                  <UiBadge variant=\"secondary\">v{{ props.version }}</UiBadge>\n                </div>\n                <p class=\"text-muted-foreground mt-0.5 text-sm\">{{ props.description }}</p>\n              </div>\n            </div>\n\n            <ul class=\"mt-4 space-y-2\">\n              <li v-for=\"item in props.changes\" :key=\"item\" class=\"flex items-start gap-2 text-sm\">\n                <Icon name=\"lucide:circle-check\" class=\"text-primary mt-0.5 size-4 shrink-0\" />\n                {{ item }}\n              </li>\n            </ul>\n\n            <div class=\"mt-5 flex gap-2\">\n              <UiButton size=\"sm\" class=\"flex-1\">\n                What's new\n                <Icon name=\"lucide:arrow-up-right\" class=\"size-4\" />\n              </UiButton>\n              <UiButton size=\"sm\" variant=\"outline\" @click=\"visible = false\">Maybe later</UiButton>\n            </div>\n          </div>\n          <button\n            type=\"button\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground absolute top-4 right-3 flex size-7 items-center justify-center rounded-md transition-colors\"\n            aria-label=\"Dismiss release notes\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visible\" class=\"p-8 text-center\">\n      <UiButton variant=\"outline\" size=\"sm\" @click=\"visible = true\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      version?: string;\n      changes?: string[];\n    }>(),\n    {\n      title: \"We shipped an update\",\n      description: \"Here's what's new since you were last here.\",\n      version: \"2.4.0\",\n      changes: () => [\n        \"Dark mode across the whole app\",\n        \"Exports are up to 3x faster\",\n        \"New keyboard shortcuts for navigation\",\n      ],\n    }\n  );\n\n  const visible = ref(true);\n</script>\n","category":"Banner","description":"Release notes toast anchored to the bottom corner. Features: Floating card with version badge, short list of changes, what's new and later actions, slides in and out, dismiss","path":"Banner/BlockBanner13.vue","components":["badge","button","fancy-icon"]},{"name":"Banner 2","fileName":"BlockBanner2.vue","file":"<template>\n  <!--\n    Pill shaped announcement with a new badge\n    Features: Centered pill with a brand badge, hover state with a moving arrow, soft glow behind it, dismiss button, show again link for previews\n  -->\n  <div class=\"relative flex min-h-24 items-center justify-center overflow-hidden px-4 py-6\">\n    <div\n      class=\"bg-primary/10 pointer-events-none absolute top-1/2 left-1/2 h-24 w-80 -translate-x-1/2 -translate-y-1/2 rounded-full blur-3xl\"\n      aria-hidden=\"true\"\n    />\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        class=\"relative\"\n        :initial=\"{ opacity: 0, y: -12, scale: 0.96 }\"\n        :animate=\"{ opacity: 1, y: 0, scale: 1 }\"\n        :exit=\"{ opacity: 0, scale: 0.9 }\"\n        :transition=\"{ type: 'spring', stiffness: 260, damping: 22 }\"\n      >\n        <div\n          class=\"bg-background/80 flex items-center gap-1 rounded-full border p-1 pr-1.5 shadow-sm backdrop-blur\"\n        >\n          <NuxtLink\n            :to=\"props.link\"\n            class=\"group hover:bg-muted flex items-center gap-2.5 rounded-full py-1 pr-3 pl-1 text-sm transition-colors\"\n          >\n            <UiBadge class=\"rounded-full px-2.5\">{{ props.badge }}</UiBadge>\n            <span class=\"font-medium\">{{ props.message }}</span>\n            <Icon\n              name=\"lucide:arrow-right\"\n              class=\"text-muted-foreground size-4 transition-transform group-hover:translate-x-0.5\"\n            />\n          </NuxtLink>\n          <button\n            type=\"button\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground flex size-7 items-center justify-center rounded-full transition-colors\"\n            aria-label=\"Dismiss announcement\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-3.5\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <UiButton v-if=\"!visible\" variant=\"ghost\" size=\"sm\" @click=\"visible = true\">\n      Show banner again\n    </UiButton>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      badge?: string;\n      message?: string;\n      link?: string;\n    }>(),\n    {\n      badge: \"New\",\n      message: \"Dark mode and custom themes are here\",\n      link: \"#\",\n    }\n  );\n\n  const visible = ref(true);\n</script>\n","category":"Banner","description":"Pill shaped announcement with a new badge. Features: Centered pill with a brand badge, hover state with a moving arrow, soft glow behind it, dismiss button, show again link for previews","path":"Banner/BlockBanner2.vue","components":["badge","button"]},{"name":"Banner 3","fileName":"BlockBanner3.vue","file":"<template>\n  <!--\n    Sale banner with a live countdown and a copyable code\n    Features: Countdown to a set end time that ticks every second, promo code chip that copies on click, call to action, dismiss with a collapse animation\n  -->\n  <div>\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        class=\"overflow-hidden\"\n        :initial=\"{ height: 0, opacity: 0 }\"\n        :animate=\"{ height: 'auto', opacity: 1 }\"\n        :exit=\"{ height: 0, opacity: 0 }\"\n        :transition=\"{ duration: 0.3, ease: 'easeInOut' }\"\n      >\n        <div\n          class=\"relative overflow-hidden bg-linear-to-r from-rose-600 via-orange-500 to-amber-500 px-4 py-4 text-white\"\n        >\n          <div class=\"absolute -top-10 left-1/4 size-40 rounded-full bg-white/20 blur-3xl\" />\n          <div\n            class=\"relative mx-auto flex max-w-5xl flex-col items-center gap-4 pr-8 lg:flex-row lg:justify-between\"\n          >\n            <div class=\"text-center lg:text-left\">\n              <p class=\"flex items-center justify-center gap-2 text-lg font-bold lg:justify-start\">\n                <Icon name=\"lucide:flame\" class=\"size-5\" />\n                {{ props.title }}\n              </p>\n              <p class=\"text-sm text-white/85\">{{ props.description }}</p>\n            </div>\n\n            <div class=\"flex items-center gap-2\" role=\"timer\" :aria-label=\"label\">\n              <template v-for=\"(unit, i) in units\" :key=\"unit.label\">\n                <div class=\"min-w-14 rounded-lg bg-black/20 px-2 py-1.5 text-center backdrop-blur\">\n                  <div class=\"text-xl leading-none font-bold tabular-nums\">{{ unit.value }}</div>\n                  <div class=\"mt-1 text-[10px] tracking-wide text-white/75 uppercase\">\n                    {{ unit.label }}\n                  </div>\n                </div>\n                <span v-if=\"i < units.length - 1\" class=\"font-bold text-white/60\">:</span>\n              </template>\n            </div>\n\n            <div class=\"flex items-center gap-2\">\n              <button\n                type=\"button\"\n                class=\"flex items-center gap-2 rounded-lg border border-dashed border-white/60 px-3 py-2 font-mono text-sm font-semibold transition-colors hover:bg-white/15\"\n                :aria-label=\"`Copy code ${props.code}`\"\n                @click=\"copy\"\n              >\n                {{ props.code }}\n                <Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />\n              </button>\n              <UiButton variant=\"secondary\" class=\"text-foreground shrink-0\">\n                Shop now\n                <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n              </UiButton>\n            </div>\n          </div>\n          <button\n            type=\"button\"\n            class=\"absolute top-3 right-3 flex size-7 items-center justify-center rounded-md transition-colors hover:bg-white/20\"\n            aria-label=\"Dismiss banner\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visible\" class=\"p-4 text-center\">\n      <UiButton variant=\"ghost\" size=\"sm\" @click=\"visible = true\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      code?: string;\n      /** Hours from now that the sale ends. */\n      hours?: number;\n    }>(),\n    {\n      title: \"Summer sale: up to 50% off\",\n      description: \"Free shipping on every order. Ends soon.\",\n      code: \"SUMMER50\",\n      hours: 62,\n    }\n  );\n\n  const visible = ref(true);\n  const copied = ref(false);\n  const end = Date.now() + props.hours * 3600 * 1000;\n  const remaining = ref(Math.max(0, end - Date.now()));\n\n  let timer: ReturnType<typeof setInterval> | undefined;\n  onMounted(() => {\n    timer = setInterval(() => {\n      remaining.value = Math.max(0, end - Date.now());\n    }, 1000);\n  });\n  onBeforeUnmount(() => clearInterval(timer));\n\n  const pad = (n: number) => String(n).padStart(2, \"0\");\n  const units = computed(() => {\n    const total = Math.floor(remaining.value / 1000);\n    return [\n      { label: \"Days\", value: pad(Math.floor(total / 86400)) },\n      { label: \"Hours\", value: pad(Math.floor((total % 86400) / 3600)) },\n      { label: \"Mins\", value: pad(Math.floor((total % 3600) / 60)) },\n      { label: \"Secs\", value: pad(total % 60) },\n    ];\n  });\n  const label = computed(() => units.value.map((u) => `${u.value} ${u.label}`).join(\" \"));\n\n  async function copy() {\n    try {\n      await navigator.clipboard.writeText(props.code);\n    } catch {\n      // Clipboard access can be blocked inside an iframe; the UI still confirms.\n    }\n    copied.value = true;\n    setTimeout(() => (copied.value = false), 1500);\n  }\n</script>\n","category":"Banner","description":"Sale banner with a live countdown and a copyable code. Features: Countdown to a set end time that ticks every second, promo code chip that copies on click, call to action, dismiss with a collapse animation","path":"Banner/BlockBanner3.vue","components":["button"]},{"name":"Banner 4","fileName":"BlockBanner4.vue","file":"<template>\n  <!--\n    Free shipping progress banner for carts\n    Features: Progress bar toward a threshold, message that updates with the amount left, success state with a celebration, add item button and reset for previews\n  -->\n  <div class=\"px-4 py-6\">\n    <div\n      class=\"mx-auto max-w-2xl overflow-hidden rounded-xl border transition-colors\"\n      :class=\"reached ? 'border-green-500/40 bg-green-500/5' : 'bg-card'\"\n    >\n      <div class=\"flex items-center gap-4 p-4\">\n        <slot name=\"icon\">\n          <UiFancyIcon\n            :icon=\"reached ? 'lucide:party-popper' : 'lucide:truck'\"\n            theme=\"light\"\n            :color=\"reached ? 'success' : 'primary'\"\n          />\n        </slot>\n        <div class=\"min-w-0 flex-1\">\n          <p class=\"text-sm font-semibold\">\n            <template v-if=\"reached\">You've unlocked free shipping!</template>\n            <template v-else>\n              You're <span class=\"text-primary tabular-nums\">${{ remaining.toFixed(2) }}</span> away\n              from free shipping\n            </template>\n          </p>\n          <div class=\"bg-muted mt-2 h-2 overflow-hidden rounded-full\">\n            <div\n              class=\"h-full rounded-full transition-[width,background-color] duration-700 ease-out\"\n              :class=\"reached ? 'bg-green-500' : 'bg-primary'\"\n              :style=\"{ width: `${percent}%` }\"\n            />\n          </div>\n          <div class=\"text-muted-foreground mt-1.5 flex justify-between text-xs tabular-nums\">\n            <span>${{ cart.toFixed(2) }} in your cart</span>\n            <span>${{ props.threshold.toFixed(2) }}</span>\n          </div>\n        </div>\n        <div class=\"flex shrink-0 flex-col gap-1.5\">\n          <UiButton size=\"sm\" variant=\"outline\" @click=\"cart += props.step\">\n            <Icon name=\"lucide:plus\" class=\"size-4\" />\n            ${{ props.step }} item\n          </UiButton>\n          <UiButton size=\"xs\" variant=\"ghost\" @click=\"cart = props.start\">Reset</UiButton>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      threshold?: number;\n      start?: number;\n      step?: number;\n    }>(),\n    {\n      threshold: 75,\n      start: 52,\n      step: 12,\n    }\n  );\n\n  const cart = ref(props.start);\n  const reached = computed(() => cart.value >= props.threshold);\n  const remaining = computed(() => Math.max(0, props.threshold - cart.value));\n  const percent = computed(() => Math.min(100, (cart.value / props.threshold) * 100));\n</script>\n","category":"Banner","description":"Free shipping progress banner for carts. Features: Progress bar toward a threshold, message that updates with the amount left, success state with a celebration, add item button and reset for previews","path":"Banner/BlockBanner4.vue","components":["button","fancy-icon"]},{"name":"Banner 5","fileName":"BlockBanner5.vue","file":"<template>\n  <!--\n    Newsletter banner with a validated email form\n    Features: Icon, copy and an inline form with validation, loading state, success message that replaces the form, dismiss with a collapse animation\n  -->\n  <div class=\"px-4 py-6\">\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        class=\"overflow-hidden\"\n        :initial=\"{ height: 0, opacity: 0 }\"\n        :animate=\"{ height: 'auto', opacity: 1 }\"\n        :exit=\"{ height: 0, opacity: 0 }\"\n        :transition=\"{ duration: 0.3, ease: 'easeInOut' }\"\n      >\n        <div\n          class=\"bg-card relative mx-auto flex max-w-4xl flex-col gap-5 rounded-xl border p-5 shadow-sm lg:flex-row lg:items-center lg:gap-8 lg:p-6\"\n        >\n          <div class=\"flex items-start gap-4 lg:flex-1\">\n            <slot name=\"icon\">\n              <UiFancyIcon :icon=\"props.icon\" theme=\"modern\" color=\"gray\" />\n            </slot>\n            <div class=\"pr-8 lg:pr-0\">\n              <slot name=\"title\">\n                <h3 class=\"font-semibold\">{{ props.title }}</h3>\n              </slot>\n              <slot name=\"description\">\n                <p class=\"text-muted-foreground mt-0.5 text-sm\">{{ props.description }}</p>\n              </slot>\n            </div>\n          </div>\n\n          <div class=\"lg:w-96 lg:pr-8\">\n            <form v-if=\"!done\" class=\"flex gap-2\" novalidate @submit=\"submit\">\n              <fieldset :disabled=\"isSubmitting\" class=\"flex flex-1 gap-2\">\n                <div class=\"flex-1\">\n                  <UiVeeInput\n                    name=\"email\"\n                    type=\"email\"\n                    placeholder=\"you@example.com\"\n                    aria-label=\"Email address\"\n                  />\n                </div>\n                <UiButton type=\"submit\" class=\"shrink-0\">\n                  <Icon\n                    v-if=\"isSubmitting\"\n                    name=\"lucide:loader-circle\"\n                    class=\"size-4 animate-spin\"\n                  />\n                  Subscribe\n                </UiButton>\n              </fieldset>\n            </form>\n            <p\n              v-else\n              class=\"flex items-center gap-2 text-sm font-medium text-green-600 dark:text-green-400\"\n            >\n              <Icon name=\"lucide:circle-check\" class=\"size-5\" />\n              You're subscribed. Check your inbox to confirm.\n            </p>\n            <p v-if=\"!done\" class=\"text-muted-foreground mt-2 text-xs\">\n              No spam. Unsubscribe at any time.\n            </p>\n          </div>\n\n          <button\n            type=\"button\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground absolute top-3 right-3 flex size-7 items-center justify-center rounded-md transition-colors\"\n            aria-label=\"Dismiss newsletter banner\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visible\" class=\"text-center\">\n      <UiButton variant=\"ghost\" size=\"sm\" @click=\"visible = true\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      icon?: string;\n    }>(),\n    {\n      title: \"Stay up to date\",\n      description: \"Product news and tips, once a month.\",\n      icon: \"lucide:mail\",\n    }\n  );\n\n  const visible = ref(true);\n  const done = ref(false);\n\n  const schema = object({ email: string().email().required().label(\"Email\") });\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const submit = handleSubmit(async () => {\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    done.value = true;\n  });\n</script>\n","category":"Banner","description":"Newsletter banner with a validated email form. Features: Icon, copy and an inline form with validation, loading state, success message that replaces the form, dismiss with a collapse animation","path":"Banner/BlockBanner5.vue","components":["button","fancy-icon","vee-input"]},{"name":"Banner 6","fileName":"BlockBanner6.vue","file":"<template>\n  <!--\n    Feature announcement on a gradient background\n    Features: Vivid gradient with blurred shapes, new badge, headline with two actions, floating interface chips on larger screens, staggered entrance, dismiss\n  -->\n  <div class=\"px-4 py-6\">\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :exit=\"{ opacity: 0, scale: 0.97 }\"\n        :transition=\"{ type: 'spring', stiffness: 220, damping: 24 }\"\n      >\n        <div\n          class=\"relative mx-auto max-w-4xl overflow-hidden rounded-2xl bg-linear-to-br from-indigo-600 via-purple-600 to-pink-500 p-6 text-white shadow-xl lg:p-8\"\n        >\n          <div class=\"absolute -top-20 -right-10 size-72 rounded-full bg-white/20 blur-3xl\" />\n          <div\n            class=\"absolute -bottom-24 left-1/3 size-72 rounded-full bg-fuchsia-300/30 blur-3xl\"\n          />\n\n          <div class=\"relative grid items-center gap-8 lg:grid-cols-[1fr_auto]\">\n            <div class=\"max-w-lg space-y-4\">\n              <Motion\n                :initial=\"{ opacity: 0, x: -10 }\"\n                :animate=\"{ opacity: 1, x: 0 }\"\n                :transition=\"{ delay: 0.1 }\"\n              >\n                <span\n                  class=\"inline-flex items-center gap-1.5 rounded-full bg-white/20 px-3 py-1 text-xs font-semibold backdrop-blur\"\n                >\n                  <Icon name=\"lucide:sparkles\" class=\"size-3.5\" />\n                  {{ props.badge }}\n                </span>\n              </Motion>\n              <Motion\n                as=\"h3\"\n                class=\"text-2xl leading-tight font-bold tracking-tight text-balance lg:text-3xl\"\n                :initial=\"{ opacity: 0, x: -10 }\"\n                :animate=\"{ opacity: 1, x: 0 }\"\n                :transition=\"{ delay: 0.2 }\"\n              >\n                {{ props.title }}\n              </Motion>\n              <Motion\n                as=\"p\"\n                class=\"text-white/80\"\n                :initial=\"{ opacity: 0, x: -10 }\"\n                :animate=\"{ opacity: 1, x: 0 }\"\n                :transition=\"{ delay: 0.3 }\"\n              >\n                {{ props.description }}\n              </Motion>\n              <Motion\n                class=\"flex flex-wrap gap-3 pt-1\"\n                :initial=\"{ opacity: 0, y: 8 }\"\n                :animate=\"{ opacity: 1, y: 0 }\"\n                :transition=\"{ delay: 0.4 }\"\n              >\n                <slot>\n                  <UiButton variant=\"secondary\" class=\"text-foreground\">\n                    Try it now\n                    <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n                  </UiButton>\n                  <UiButton variant=\"ghost\" class=\"text-white hover:bg-white/15 hover:text-white\">\n                    Watch the demo\n                  </UiButton>\n                </slot>\n              </Motion>\n            </div>\n\n            <div class=\"relative hidden h-40 w-64 lg:block\" aria-hidden=\"true\">\n              <Motion\n                v-for=\"(chip, i) in chips\"\n                :key=\"chip.label\"\n                class=\"absolute flex items-center gap-2 rounded-xl border border-white/30 bg-white/15 px-3 py-2 text-sm font-medium shadow-lg backdrop-blur\"\n                :class=\"chip.position\"\n                :animate=\"{ y: [0, -6, 0] }\"\n                :transition=\"{ duration: 3.5, delay: i * 0.6, repeat: Infinity, ease: 'easeInOut' }\"\n              >\n                <Icon :name=\"chip.icon\" class=\"size-4\" />\n                {{ chip.label }}\n              </Motion>\n            </div>\n          </div>\n\n          <button\n            type=\"button\"\n            class=\"absolute top-3 right-3 flex size-8 items-center justify-center rounded-full bg-white/15 backdrop-blur transition-colors hover:bg-white/30\"\n            aria-label=\"Dismiss banner\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visible\" class=\"text-center\">\n      <UiButton variant=\"ghost\" size=\"sm\" @click=\"visible = true\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      badge?: string;\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      badge: \"Just shipped\",\n      title: \"Build dashboards faster with AI-assisted layouts\",\n      description:\n        \"Describe the page you need and get a working layout built from your own components.\",\n    }\n  );\n\n  const visible = ref(true);\n\n  const chips = [\n    { label: \"Revenue +12%\", icon: \"lucide:trending-up\", position: \"top-0 left-4\" },\n    { label: \"3 new teammates\", icon: \"lucide:user-plus\", position: \"top-16 right-0\" },\n    { label: \"Deployed\", icon: \"lucide:rocket\", position: \"bottom-0 left-10\" },\n  ];\n</script>\n","category":"Banner","description":"Feature announcement on a gradient background. Features: Vivid gradient with blurred shapes, new badge, headline with two actions, floating interface chips on larger screens, staggered entrance, dismiss","path":"Banner/BlockBanner6.vue","components":["button"]},{"name":"Banner 7","fileName":"BlockBanner7.vue","file":"<template>\n  <!--\n    Upgrade banner driven by plan usage\n    Features: Usage meter that turns amber near the limit, list of what Pro unlocks, primary and secondary actions, left accent edge, dismiss\n  -->\n  <div class=\"px-4 py-6\">\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        class=\"overflow-hidden\"\n        :initial=\"{ height: 0, opacity: 0 }\"\n        :animate=\"{ height: 'auto', opacity: 1 }\"\n        :exit=\"{ height: 0, opacity: 0 }\"\n        :transition=\"{ duration: 0.3, ease: 'easeInOut' }\"\n      >\n        <div\n          class=\"bg-card relative mx-auto flex max-w-4xl overflow-hidden rounded-xl border shadow-sm\"\n        >\n          <div class=\"w-1.5 shrink-0\" :class=\"nearLimit ? 'bg-amber-500' : 'bg-primary'\" />\n          <div class=\"flex flex-1 flex-col gap-5 p-5 pr-12 lg:flex-row lg:items-center lg:gap-8\">\n            <div class=\"flex-1 space-y-3\">\n              <div class=\"flex items-center gap-2\">\n                <UiFancyIcon\n                  icon=\"lucide:crown\"\n                  theme=\"light\"\n                  :color=\"nearLimit ? 'warning' : 'primary'\"\n                  size=\"sm\"\n                />\n                <h3 class=\"font-semibold\">\n                  {{\n                    nearLimit ? \"You're close to your project limit\" : \"Get more out of your plan\"\n                  }}\n                </h3>\n                <UiBadge v-if=\"props.discount\" variant=\"secondary\">{{ props.discount }}</UiBadge>\n              </div>\n              <div>\n                <div class=\"mb-1.5 flex justify-between text-xs\">\n                  <span class=\"text-muted-foreground\">Projects used</span>\n                  <span class=\"font-medium tabular-nums\"\n                    >{{ props.used }} of {{ props.limit }}</span\n                  >\n                </div>\n                <div class=\"bg-muted h-2 overflow-hidden rounded-full\">\n                  <div\n                    class=\"h-full rounded-full transition-[width] duration-700\"\n                    :class=\"nearLimit ? 'bg-amber-500' : 'bg-primary'\"\n                    :style=\"{ width: `${percent}%` }\"\n                  />\n                </div>\n              </div>\n              <ul class=\"flex flex-wrap gap-x-4 gap-y-1.5\">\n                <li\n                  v-for=\"perk in props.perks\"\n                  :key=\"perk\"\n                  class=\"text-muted-foreground flex items-center gap-1.5 text-xs\"\n                >\n                  <Icon name=\"lucide:check\" class=\"text-primary size-3.5\" />\n                  {{ perk }}\n                </li>\n              </ul>\n            </div>\n            <div class=\"flex shrink-0 flex-wrap gap-2\">\n              <slot>\n                <UiButton>\n                  Upgrade to Pro\n                  <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n                </UiButton>\n                <UiButton variant=\"outline\">Compare plans</UiButton>\n              </slot>\n            </div>\n          </div>\n          <button\n            type=\"button\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground absolute top-3 right-3 flex size-7 items-center justify-center rounded-md transition-colors\"\n            aria-label=\"Dismiss upgrade banner\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visible\" class=\"text-center\">\n      <UiButton variant=\"ghost\" size=\"sm\" @click=\"visible = true\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      used?: number;\n      limit?: number;\n      discount?: string;\n      perks?: string[];\n    }>(),\n    {\n      used: 9,\n      limit: 10,\n      discount: \"20% off annual\",\n      perks: () => [\"Unlimited projects\", \"Priority support\", \"Advanced analytics\"],\n    }\n  );\n\n  const percent = computed(() => Math.min(100, (props.used / props.limit) * 100));\n  const nearLimit = computed(() => percent.value >= 80);\n  const visible = ref(true);\n</script>\n","category":"Banner","description":"Upgrade banner driven by plan usage. Features: Usage meter that turns amber near the limit, list of what Pro unlocks, primary and secondary actions, left accent edge, dismiss","path":"Banner/BlockBanner7.vue","components":["badge","button","fancy-icon"]},{"name":"Banner 8","fileName":"BlockBanner8.vue","file":"<template>\n  <!--\n    Alert banners in four tones\n    Features: Info, success, warning and error variants with matching icons and colors, title and description, optional action link, each dismissible with a collapse animation\n  -->\n  <div class=\"mx-auto max-w-3xl px-4 py-6\">\n    <AnimatePresence>\n      <Motion\n        v-for=\"alert in visibleAlerts\"\n        :key=\"alert.id\"\n        class=\"overflow-hidden\"\n        :initial=\"{ height: 0, opacity: 0 }\"\n        :animate=\"{ height: 'auto', opacity: 1 }\"\n        :exit=\"{ height: 0, opacity: 0 }\"\n        :transition=\"{ duration: 0.25, ease: 'easeInOut' }\"\n      >\n        <div class=\"pb-3\">\n          <div\n            class=\"relative flex gap-3 rounded-xl border p-4 pr-10\"\n            :class=\"tones[alert.tone].box\"\n            role=\"alert\"\n          >\n            <span\n              class=\"flex size-8 shrink-0 items-center justify-center rounded-full\"\n              :class=\"tones[alert.tone].icon\"\n            >\n              <Icon :name=\"tones[alert.tone].name\" class=\"size-4\" />\n            </span>\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"text-sm font-semibold\">{{ alert.title }}</p>\n              <p class=\"text-muted-foreground mt-0.5 text-sm\">{{ alert.description }}</p>\n              <NuxtLink\n                v-if=\"alert.action\"\n                to=\"#\"\n                class=\"mt-2 inline-flex items-center gap-1 text-sm font-medium underline-offset-4 hover:underline\"\n                :class=\"tones[alert.tone].link\"\n              >\n                {{ alert.action }}\n                <Icon name=\"lucide:arrow-right\" class=\"size-3.5\" />\n              </NuxtLink>\n            </div>\n            <button\n              type=\"button\"\n              class=\"text-muted-foreground hover:bg-foreground/10 hover:text-foreground absolute top-3 right-3 flex size-6 items-center justify-center rounded-md transition-colors\"\n              :aria-label=\"`Dismiss ${alert.title}`\"\n              @click=\"dismiss(alert.id)\"\n            >\n              <Icon name=\"lucide:x\" class=\"size-4\" />\n            </button>\n          </div>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visibleAlerts.length\" class=\"py-4 text-center\">\n      <UiButton variant=\"ghost\" size=\"sm\" @click=\"dismissed = []\">Show banners again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Tone = \"info\" | \"success\" | \"warning\" | \"error\";\n\n  const props = withDefaults(\n    defineProps<{\n      alerts?: { id: number; tone: Tone; title: string; description: string; action?: string }[];\n    }>(),\n    {\n      alerts: () => [\n        {\n          id: 1,\n          tone: \"info\",\n          title: \"A new version is available\",\n          description: \"Version 2.4 adds dark mode and faster exports.\",\n          action: \"See what's new\",\n        },\n        {\n          id: 2,\n          tone: \"success\",\n          title: \"Payment received\",\n          description: \"Your invoice for October was paid in full. A receipt is on its way.\",\n        },\n        {\n          id: 3,\n          tone: \"warning\",\n          title: \"Your trial ends in 3 days\",\n          description: \"Add a payment method to keep access to your projects.\",\n          action: \"Add payment method\",\n        },\n        {\n          id: 4,\n          tone: \"error\",\n          title: \"We couldn't sync your data\",\n          description: \"Check your connection and try again. Changes are saved locally.\",\n          action: \"Try again\",\n        },\n      ],\n    }\n  );\n\n  const tones: Record<Tone, { name: string; box: string; icon: string; link: string }> = {\n    info: {\n      name: \"lucide:info\",\n      box: \"border-blue-500/30 bg-blue-500/5\",\n      icon: \"bg-blue-500/15 text-blue-600 dark:text-blue-400\",\n      link: \"text-blue-600 dark:text-blue-400\",\n    },\n    success: {\n      name: \"lucide:circle-check\",\n      box: \"border-green-500/30 bg-green-500/5\",\n      icon: \"bg-green-500/15 text-green-600 dark:text-green-400\",\n      link: \"text-green-600 dark:text-green-400\",\n    },\n    warning: {\n      name: \"lucide:triangle-alert\",\n      box: \"border-amber-500/40 bg-amber-500/5\",\n      icon: \"bg-amber-500/15 text-amber-600 dark:text-amber-400\",\n      link: \"text-amber-600 dark:text-amber-400\",\n    },\n    error: {\n      name: \"lucide:circle-x\",\n      box: \"border-red-500/30 bg-red-500/5\",\n      icon: \"bg-red-500/15 text-red-600 dark:text-red-400\",\n      link: \"text-red-600 dark:text-red-400\",\n    },\n  };\n\n  const dismissed = ref<number[]>([]);\n  const visibleAlerts = computed(() =>\n    props.alerts.filter((alert) => !dismissed.value.includes(alert.id))\n  );\n\n  function dismiss(id: number) {\n    dismissed.value = [...dismissed.value, id];\n  }\n</script>\n","category":"Banner","description":"Alert banners in four tones. Features: Info, success, warning and error variants with matching icons and colors, title and description, optional action link, each dismissible with a collapse animation","path":"Banner/BlockBanner8.vue","components":["button"]},{"name":"Banner 9","fileName":"BlockBanner9.vue","file":"<template>\n  <!--\n    Scheduled maintenance banner with a live countdown\n    Features: Warning tone, time until the window starts, affected area and duration metadata, remind me toggle with a bell, view status action, dismiss\n  -->\n  <div class=\"px-4 py-6\">\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        class=\"overflow-hidden\"\n        :initial=\"{ height: 0, opacity: 0 }\"\n        :animate=\"{ height: 'auto', opacity: 1 }\"\n        :exit=\"{ height: 0, opacity: 0 }\"\n        :transition=\"{ duration: 0.3, ease: 'easeInOut' }\"\n      >\n        <div\n          class=\"relative mx-auto flex max-w-4xl flex-col gap-4 rounded-xl border border-amber-500/40 bg-amber-500/5 p-4 pr-12 lg:flex-row lg:items-center lg:gap-6\"\n          role=\"status\"\n        >\n          <span\n            class=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-amber-500/15 text-amber-600 dark:text-amber-400\"\n          >\n            <Icon name=\"lucide:wrench\" class=\"size-5\" />\n          </span>\n\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"font-semibold\">{{ props.title }}</p>\n            <p class=\"text-muted-foreground mt-0.5 text-sm\">{{ props.description }}</p>\n            <ul class=\"text-muted-foreground mt-2 flex flex-wrap gap-x-4 gap-y-1 text-xs\">\n              <li class=\"flex items-center gap-1.5\">\n                <Icon name=\"lucide:clock\" class=\"size-3.5\" />\n                Starts in\n                <span class=\"text-foreground font-semibold tabular-nums\">{{ startsIn }}</span>\n              </li>\n              <li class=\"flex items-center gap-1.5\">\n                <Icon name=\"lucide:hourglass\" class=\"size-3.5\" />\n                About {{ props.duration }}\n              </li>\n              <li class=\"flex items-center gap-1.5\">\n                <Icon name=\"lucide:users\" class=\"size-3.5\" />\n                {{ props.affects }}\n              </li>\n            </ul>\n          </div>\n\n          <div class=\"flex shrink-0 flex-wrap gap-2\">\n            <slot>\n              <UiButton\n                variant=\"outline\"\n                size=\"sm\"\n                :aria-pressed=\"reminder\"\n                @click=\"toggleReminder\"\n              >\n                <Icon :name=\"reminder ? 'lucide:bell-ring' : 'lucide:bell'\" class=\"size-4\" />\n                {{ reminder ? \"Reminder set\" : \"Remind me\" }}\n              </UiButton>\n              <UiButton size=\"sm\">View status page</UiButton>\n            </slot>\n          </div>\n\n          <button\n            type=\"button\"\n            class=\"text-muted-foreground hover:bg-foreground/10 hover:text-foreground absolute top-3 right-3 flex size-7 items-center justify-center rounded-md transition-colors\"\n            aria-label=\"Dismiss maintenance notice\"\n            @click=\"visible = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n        </div>\n      </Motion>\n    </AnimatePresence>\n    <div v-if=\"!visible\" class=\"text-center\">\n      <UiButton variant=\"ghost\" size=\"sm\" @click=\"visible = true\">Show banner again</UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      duration?: string;\n      affects?: string;\n      /** Minutes from now until the maintenance window starts. */\n      minutes?: number;\n    }>(),\n    {\n      title: \"Scheduled maintenance\",\n      description: \"We're upgrading our database. Expect brief interruptions while it runs.\",\n      duration: \"30 minutes\",\n      affects: \"All users\",\n      minutes: 312,\n    }\n  );\n\n  const visible = ref(true);\n  const reminder = ref(false);\n  const start = Date.now() + props.minutes * 60 * 1000;\n  const remaining = ref(Math.max(0, start - Date.now()));\n\n  let timer: ReturnType<typeof setInterval> | undefined;\n  onMounted(() => {\n    timer = setInterval(() => {\n      remaining.value = Math.max(0, start - Date.now());\n    }, 1000);\n  });\n  onBeforeUnmount(() => clearInterval(timer));\n\n  const startsIn = computed(() => {\n    const total = Math.floor(remaining.value / 1000);\n    const h = Math.floor(total / 3600);\n    const m = Math.floor((total % 3600) / 60);\n    const s = total % 60;\n    return `${h}h ${String(m).padStart(2, \"0\")}m ${String(s).padStart(2, \"0\")}s`;\n  });\n\n  function toggleReminder() {\n    reminder.value = !reminder.value;\n    useSonner(reminder.value ? \"We'll remind you 15 minutes before\" : \"Reminder removed\");\n  }\n</script>\n","category":"Banner","description":"Scheduled maintenance banner with a live countdown. Features: Warning tone, time until the window starts, affected area and duration metadata, remind me toggle with a bell, view status action, dismiss","path":"Banner/BlockBanner9.vue","components":["button"]},{"name":"Settings Billing Invoices","fileName":"BlockSettingsBillingInvoices.vue","file":"<template>\n  <!--\n    Invoice history table\n    Features: Searchable table with status badges, amount and date columns, per-row download, select all with bulk download, mobile horizontal scroll\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n      <UiCardAction class=\"flex items-center gap-2\">\n        <UiButton\n          variant=\"outline\"\n          size=\"sm\"\n          :disabled=\"!selected.length\"\n          @click=\"downloadSelected\"\n        >\n          <Icon name=\"lucide:download\" class=\"size-4\" />\n          Download {{ selected.length || \"\" }}\n        </UiButton>\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-4 p-0\">\n      <div class=\"px-6\">\n        <div class=\"relative max-w-xs\">\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput v-model=\"query\" placeholder=\"Search invoices\" class=\"pl-9\" />\n        </div>\n      </div>\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"w-12 pl-6\">\n              <UiCheckbox\n                :model-value=\"allState\"\n                aria-label=\"Select all invoices\"\n                @update:model-value=\"toggleAll($event === true)\"\n              />\n            </UiTableHead>\n            <UiTableHead>Invoice</UiTableHead>\n            <UiTableHead>Date</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"text-right\">Amount</UiTableHead>\n            <UiTableHead class=\"w-12 pr-6\" />\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"invoice in filtered\" :key=\"invoice.id\">\n            <UiTableCell class=\"pl-6\">\n              <UiCheckbox\n                :model-value=\"selected.includes(invoice.id)\"\n                :aria-label=\"`Select ${invoice.id}`\"\n                @update:model-value=\"toggle(invoice.id, $event === true)\"\n              />\n            </UiTableCell>\n            <UiTableCell class=\"font-medium\">{{ invoice.id }}</UiTableCell>\n            <UiTableCell class=\"text-muted-foreground\">{{ invoice.date }}</UiTableCell>\n            <UiTableCell>\n              <UiBadge :variant=\"statusVariant[invoice.status]\">{{ invoice.status }}</UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"text-right\">{{ invoice.amount }}</UiTableCell>\n            <UiTableCell class=\"pr-6 text-right\">\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                :aria-label=\"`Download ${invoice.id}`\"\n                @click=\"useSonner.info(`Downloading ${invoice.id}`)\"\n              >\n                <Icon name=\"lucide:download\" class=\"size-4\" />\n              </UiButton>\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!filtered.length\" :colspan=\"6\"\n            >No invoices match your search.</UiTableEmpty\n          >\n        </UiTableBody>\n      </UiTable>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Invoice = {\n    id: string;\n    date: string;\n    status: \"Paid\" | \"Pending\" | \"Failed\";\n    amount: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Invoice history\",\n      description: \"Download past invoices for your records.\",\n    }\n  );\n\n  const statusVariant = { Paid: \"success\", Pending: \"warning\", Failed: \"destructive\" } as const;\n\n  const invoices: Invoice[] = [\n    { id: \"INV-0012\", date: \"Feb 14, 2026\", status: \"Paid\", amount: \"$29.00\" },\n    { id: \"INV-0011\", date: \"Jan 14, 2026\", status: \"Paid\", amount: \"$29.00\" },\n    { id: \"INV-0010\", date: \"Dec 14, 2025\", status: \"Paid\", amount: \"$29.00\" },\n    { id: \"INV-0009\", date: \"Nov 14, 2025\", status: \"Failed\", amount: \"$29.00\" },\n    { id: \"INV-0008\", date: \"Oct 14, 2025\", status: \"Paid\", amount: \"$29.00\" },\n    { id: \"INV-0007\", date: \"Sep 14, 2025\", status: \"Pending\", amount: \"$29.00\" },\n  ];\n\n  const query = ref(\"\");\n  const selected = ref<string[]>([]);\n\n  const filtered = computed(() =>\n    invoices.filter((invoice) =>\n      `${invoice.id} ${invoice.status} ${invoice.date}`\n        .toLowerCase()\n        .includes(query.value.toLowerCase())\n    )\n  );\n\n  const allState = computed<boolean | \"indeterminate\">(() => {\n    if (!selected.value.length) return false;\n    return selected.value.length === invoices.length ? true : \"indeterminate\";\n  });\n\n  function toggleAll(value: boolean) {\n    selected.value = value ? invoices.map((invoice) => invoice.id) : [];\n  }\n\n  function toggle(id: string, value: boolean) {\n    selected.value = value ? [...selected.value, id] : selected.value.filter((item) => item !== id);\n  }\n\n  function downloadSelected() {\n    useSonner.success(`Downloading ${selected.value.length} invoices`);\n  }\n</script>\n","category":"Billing","description":"Invoice history table. Features: Searchable table with status badges, amount and date columns, per-row download, select all with bulk download, mobile horizontal scroll","path":"Settings/Billing/BlockSettingsBillingInvoices.vue","components":["badge","button","card","checkbox","input","table"]},{"name":"Settings Billing Overview","fileName":"BlockSettingsBillingOverview.vue","file":"<template>\n  <!--\n    Billing overview with current plan, usage and payment method\n    Features: Plan summary with renewal date, usage meters with progress bars, default card, billing email, upgrade and cancel actions\n  -->\n  <div class=\"space-y-6\">\n    <UiCard>\n      <UiCardHeader>\n        <div class=\"flex flex-wrap items-center gap-2\">\n          <UiCardTitle>{{ props.planName }}</UiCardTitle>\n          <UiBadge variant=\"secondary\">Monthly</UiBadge>\n        </div>\n        <UiCardDescription>\n          Your plan renews on <span class=\"text-foreground font-medium\">{{ props.renewsOn }}</span>.\n        </UiCardDescription>\n        <UiCardAction class=\"text-right\">\n          <p class=\"text-2xl font-bold\">\n            {{ props.price }}\n            <span class=\"text-muted-foreground text-sm font-normal\">/ month</span>\n          </p>\n        </UiCardAction>\n      </UiCardHeader>\n      <UiCardContent class=\"grid gap-6 sm:grid-cols-3\">\n        <div v-for=\"meter in props.usage\" :key=\"meter.label\" class=\"space-y-2\">\n          <div class=\"flex items-baseline justify-between text-sm\">\n            <span class=\"font-medium\">{{ meter.label }}</span>\n            <span class=\"text-muted-foreground\">{{ meter.used }} / {{ meter.limit }}</span>\n          </div>\n          <UiProgress :model-value=\"(meter.used / meter.limit) * 100\" class=\"h-2\" />\n        </div>\n      </UiCardContent>\n      <UiCardFooter class=\"justify-end gap-2 border-t\">\n        <UiButton variant=\"ghost\" class=\"text-destructive hover:text-destructive\">\n          Cancel plan\n        </UiButton>\n        <UiButton @click=\"useSonner.info('Open your plan picker here')\">\n          <Icon name=\"lucide:sparkles\" class=\"size-4\" />\n          Upgrade plan\n        </UiButton>\n      </UiCardFooter>\n    </UiCard>\n\n    <UiCard>\n      <UiCardHeader>\n        <UiCardTitle>Payment method</UiCardTitle>\n        <UiCardDescription>This card is charged on every renewal.</UiCardDescription>\n      </UiCardHeader>\n      <UiCardContent class=\"space-y-5\">\n        <div class=\"flex items-center gap-4 rounded-lg border p-4\">\n          <div class=\"bg-muted flex h-9 w-14 items-center justify-center rounded-md border\">\n            <Icon name=\"logos:visa\" class=\"size-6\" />\n          </div>\n          <div class=\"flex-1\">\n            <p class=\"text-sm font-medium\">Visa ending in 4242</p>\n            <p class=\"text-muted-foreground text-sm\">Expires 08/2028</p>\n          </div>\n          <UiButton variant=\"outline\" size=\"sm\">Update</UiButton>\n        </div>\n        <div class=\"grid gap-2\">\n          <UiLabel for=\"billing-email\">Billing email</UiLabel>\n          <UiInput id=\"billing-email\" v-model=\"email\" type=\"email\" />\n          <p class=\"text-muted-foreground text-xs\">Invoices are sent to this address.</p>\n        </div>\n      </UiCardContent>\n      <UiCardFooter class=\"justify-end border-t\">\n        <UiButton size=\"sm\" @click=\"useSonner.success('Billing email updated')\">Save</UiButton>\n      </UiCardFooter>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Meter = { label: string; used: number; limit: number };\n\n  const props = withDefaults(\n    defineProps<{\n      planName?: string;\n      price?: string;\n      renewsOn?: string;\n      usage?: Meter[];\n    }>(),\n    {\n      planName: \"Pro plan\",\n      price: \"$29\",\n      renewsOn: \"March 14, 2026\",\n      usage: () => [\n        { label: \"Seats\", used: 8, limit: 10 },\n        { label: \"Projects\", used: 23, limit: 50 },\n        { label: \"Storage (GB)\", used: 41, limit: 100 },\n      ],\n    }\n  );\n\n  const email = ref(\"billing@uithing.com\");\n</script>\n","category":"Billing","description":"Billing overview with current plan, usage and payment method. Features: Plan summary with renewal date, usage meters with progress bars, default card, billing email, upgrade and cancel actions","path":"Settings/Billing/BlockSettingsBillingOverview.vue","components":["badge","button","card","input","label","progress"]},{"name":"Settings Billing Payment Methods","fileName":"BlockSettingsBillingPaymentMethods.vue","file":"<template>\n  <!--\n    Saved payment methods\n    Features: Card list with brand icon and expiry, default marker, set default and remove actions, add card dialog\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n      <UiCardAction>\n        <UiDialog v-model:open=\"dialogOpen\">\n          <UiDialogTrigger as-child>\n            <UiButton size=\"sm\">\n              <Icon name=\"lucide:plus\" class=\"size-4\" />\n              Add card\n            </UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent class=\"sm:max-w-md\">\n            <UiDialogHeader>\n              <UiDialogTitle>Add a card</UiDialogTitle>\n              <UiDialogDescription\n                >Your card details are sent securely to Stripe.</UiDialogDescription\n              >\n            </UiDialogHeader>\n            <form class=\"grid gap-4\" @submit.prevent=\"addCard\">\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"pm-number\">Card number</UiLabel>\n                <UiInput\n                  id=\"pm-number\"\n                  v-model=\"draft.number\"\n                  inputmode=\"numeric\"\n                  placeholder=\"4242 4242 4242 4242\"\n                />\n              </div>\n              <div class=\"grid grid-cols-2 gap-4\">\n                <div class=\"grid gap-2\">\n                  <UiLabel for=\"pm-expiry\">Expiry</UiLabel>\n                  <UiInput id=\"pm-expiry\" v-model=\"draft.expiry\" placeholder=\"MM/YY\" />\n                </div>\n                <div class=\"grid gap-2\">\n                  <UiLabel for=\"pm-cvc\">CVC</UiLabel>\n                  <UiInput id=\"pm-cvc\" v-model=\"draft.cvc\" inputmode=\"numeric\" placeholder=\"123\" />\n                </div>\n              </div>\n              <UiDialogFooter>\n                <UiDialogClose as-child>\n                  <UiButton type=\"button\" variant=\"outline\">Cancel</UiButton>\n                </UiDialogClose>\n                <UiButton type=\"submit\">Add card</UiButton>\n              </UiDialogFooter>\n            </form>\n          </UiDialogContent>\n        </UiDialog>\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-3\">\n      <div\n        v-for=\"card in cards\"\n        :key=\"card.id\"\n        class=\"flex flex-wrap items-center gap-4 rounded-lg border p-4\"\n      >\n        <div class=\"bg-muted flex h-9 w-14 items-center justify-center rounded-md border\">\n          <Icon :name=\"card.icon\" class=\"size-6\" />\n        </div>\n        <div class=\"min-w-0 flex-1\">\n          <div class=\"flex items-center gap-2\">\n            <p class=\"text-sm font-medium\">{{ card.brand }} ending in {{ card.last4 }}</p>\n            <UiBadge v-if=\"card.default\" variant=\"secondary\">Default</UiBadge>\n          </div>\n          <p class=\"text-muted-foreground text-sm\">Expires {{ card.expiry }}</p>\n        </div>\n        <div class=\"flex gap-1\">\n          <UiButton v-if=\"!card.default\" variant=\"ghost\" size=\"sm\" @click=\"makeDefault(card.id)\">\n            Set as default\n          </UiButton>\n          <UiButton\n            variant=\"ghost\"\n            size=\"sm\"\n            class=\"text-destructive hover:text-destructive\"\n            :disabled=\"card.default\"\n            @click=\"remove(card.id)\"\n          >\n            Remove\n          </UiButton>\n        </div>\n      </div>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type PaymentCard = {\n    id: number;\n    brand: string;\n    icon: string;\n    last4: string;\n    expiry: string;\n    default?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Payment methods\",\n      description: \"Manage the cards on file for this workspace.\",\n    }\n  );\n\n  const cards = ref<PaymentCard[]>([\n    { id: 1, brand: \"Visa\", icon: \"logos:visa\", last4: \"4242\", expiry: \"08/2028\", default: true },\n    { id: 2, brand: \"Mastercard\", icon: \"logos:mastercard\", last4: \"5555\", expiry: \"11/2027\" },\n  ]);\n\n  const dialogOpen = ref(false);\n  const draft = reactive({ number: \"\", expiry: \"\", cvc: \"\" });\n\n  function makeDefault(id: number) {\n    cards.value.forEach((card) => {\n      card.default = card.id === id;\n    });\n    useSonner.success(\"Default card updated\");\n  }\n\n  function remove(id: number) {\n    cards.value = cards.value.filter((card) => card.id !== id);\n    useSonner.success(\"Card removed\");\n  }\n\n  function addCard() {\n    const digits = draft.number.replace(/\\D/g, \"\");\n    if (digits.length < 12 || !draft.expiry || !draft.cvc) {\n      useSonner.error(\"Check your card details\");\n      return;\n    }\n    cards.value.push({\n      id: Date.now(),\n      brand: \"Visa\",\n      icon: \"logos:visa\",\n      last4: digits.slice(-4),\n      expiry: draft.expiry,\n    });\n    Object.assign(draft, { number: \"\", expiry: \"\", cvc: \"\" });\n    dialogOpen.value = false;\n    useSonner.success(\"Card added\");\n  }\n</script>\n","category":"Billing","description":"Saved payment methods. Features: Card list with brand icon and expiry, default marker, set default and remove actions, add card dialog","path":"Settings/Billing/BlockSettingsBillingPaymentMethods.vue","components":["badge","button","card","dialog","input","label"]},{"name":"Settings Billing Plan Picker","fileName":"BlockSettingsBillingPlanPicker.vue","file":"<template>\n  <!--\n    Plan picker for the billing settings page\n    Features: Monthly and annual toggle with savings badge, radio plan cards with feature lists, current plan marker, computed total\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n      <UiCardAction>\n        <div class=\"flex items-center gap-2 text-sm\">\n          <span :class=\"!annual && 'font-medium'\">Monthly</span>\n          <UiSwitch v-model=\"annual\" aria-label=\"Bill annually\" />\n          <span :class=\"annual && 'font-medium'\">Annual</span>\n          <UiBadge variant=\"success\">Save 20%</UiBadge>\n        </div>\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent>\n      <UiRadioGroup v-model=\"selected\" class=\"grid gap-4 lg:grid-cols-3\">\n        <label\n          v-for=\"plan in plans\"\n          :key=\"plan.id\"\n          class=\"relative flex cursor-pointer flex-col rounded-xl border-2 p-5 transition-colors\"\n          :class=\"selected === plan.id ? 'border-primary bg-primary/5' : 'hover:border-ring'\"\n        >\n          <div class=\"flex items-start justify-between gap-2\">\n            <div>\n              <p class=\"font-semibold\">{{ plan.name }}</p>\n              <p class=\"text-muted-foreground text-sm\">{{ plan.tagline }}</p>\n            </div>\n            <UiRadioGroupItem :value=\"plan.id\" />\n          </div>\n          <p class=\"mt-4 flex items-baseline gap-1\">\n            <span class=\"text-3xl font-bold\">${{ price(plan) }}</span>\n            <span class=\"text-muted-foreground text-sm\">/ month</span>\n          </p>\n          <ul class=\"mt-4 space-y-2 text-sm\">\n            <li v-for=\"feature in plan.features\" :key=\"feature\" class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:check\" class=\"text-primary size-4 shrink-0\" />\n              {{ feature }}\n            </li>\n          </ul>\n          <UiBadge v-if=\"plan.id === current\" variant=\"outline\" class=\"mt-4 w-fit\">\n            Current plan\n          </UiBadge>\n        </label>\n      </UiRadioGroup>\n    </UiCardContent>\n    <UiCardFooter class=\"flex-wrap justify-between gap-4 border-t\">\n      <p class=\"text-muted-foreground text-sm\">\n        {{ summary }}\n      </p>\n      <UiButton :disabled=\"selected === current\" @click=\"confirm\">Switch plan</UiButton>\n    </UiCardFooter>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Plan = {\n    id: string;\n    name: string;\n    tagline: string;\n    monthly: number;\n    features: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      current?: string;\n    }>(),\n    {\n      title: \"Choose a plan\",\n      description: \"Upgrade, downgrade or switch billing period at any time.\",\n      current: \"pro\",\n    }\n  );\n\n  const plans: Plan[] = [\n    {\n      id: \"starter\",\n      name: \"Starter\",\n      tagline: \"For side projects\",\n      monthly: 9,\n      features: [\"3 projects\", \"2 seats\", \"Community support\"],\n    },\n    {\n      id: \"pro\",\n      name: \"Pro\",\n      tagline: \"For growing teams\",\n      monthly: 29,\n      features: [\"50 projects\", \"10 seats\", \"Priority support\", \"Advanced analytics\"],\n    },\n    {\n      id: \"business\",\n      name: \"Business\",\n      tagline: \"For larger organisations\",\n      monthly: 79,\n      features: [\"Unlimited projects\", \"50 seats\", \"SSO and audit logs\", \"Dedicated manager\"],\n    },\n  ];\n\n  const annual = ref(false);\n  const selected = ref(props.current);\n\n  function price(plan: Plan) {\n    return annual.value ? Math.round(plan.monthly * 0.8) : plan.monthly;\n  }\n\n  const summary = computed(() => {\n    const plan = plans.find((item) => item.id === selected.value);\n    if (!plan) return \"\";\n    const total = price(plan) * (annual.value ? 12 : 1);\n    return `${plan.name}: $${total} billed ${annual.value ? \"yearly\" : \"monthly\"}.`;\n  });\n\n  function confirm() {\n    useSonner.success(\"Plan updated\", { description: summary.value });\n  }\n</script>\n","category":"Billing","description":"Plan picker for the billing settings page. Features: Monthly and annual toggle with savings badge, radio plan cards with feature lists, current plan marker, computed total","path":"Settings/Billing/BlockSettingsBillingPlanPicker.vue","components":["badge","button","card","radio-group","switch"]},{"name":"Board 1","fileName":"BlockBoard1.vue","file":"<template>\n  <!--\n    Classic kanban board\n    Features: Columns with counts, cards you can drag between columns, a move menu on every card as a keyboard alternative, inline add card form per column, labels, assignee avatars and due dates\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mb-6 flex items-end justify-between gap-4\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Drag cards between columns, or use the menu on each card.\n        </p>\n      </div>\n    </div>\n\n    <div class=\"grid gap-4 md:grid-cols-3\">\n      <section\n        v-for=\"column in columns\"\n        :key=\"column.id\"\n        class=\"bg-muted/40 flex min-h-0 flex-col rounded-xl border p-3\"\n        :aria-label=\"`${column.title} column`\"\n      >\n        <header class=\"mb-3 flex items-center justify-between px-1\">\n          <h2 class=\"flex items-center gap-2 text-sm font-semibold\">\n            <span class=\"size-2 rounded-full\" :class=\"column.dot\" aria-hidden=\"true\" />\n            {{ column.title }}\n            <UiBadge variant=\"secondary\">{{ column.cards.length }}</UiBadge>\n          </h2>\n        </header>\n\n        <UiDraggable\n          v-model=\"column.cards\"\n          group=\"board1\"\n          item-key=\"id\"\n          :animation=\"150\"\n          ghost-class=\"opacity-40\"\n          class=\"flex min-h-16 flex-1 flex-col gap-2\"\n        >\n          <template #item=\"{ element }\">\n            <article\n              class=\"bg-card hover:border-primary/40 cursor-grab rounded-lg border p-3 shadow-xs active:cursor-grabbing\"\n            >\n              <div class=\"flex items-start justify-between gap-2\">\n                <p class=\"text-sm font-medium\">{{ element.title }}</p>\n                <UiDropdownMenu>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"-mt-1 -mr-1 size-6 shrink-0\"\n                      :aria-label=\"`Move ${element.title}`\"\n                    >\n                      <Icon name=\"lucide:ellipsis\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                  <UiDropdownMenuContent align=\"end\">\n                    <UiDropdownMenuLabel>Move to</UiDropdownMenuLabel>\n                    <UiDropdownMenuItem\n                      v-for=\"target in columns.filter((item) => item.id !== column.id)\"\n                      :key=\"target.id\"\n                      @select=\"move(element, column, target)\"\n                    >\n                      {{ target.title }}\n                    </UiDropdownMenuItem>\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </div>\n              <div v-if=\"element.labels?.length\" class=\"mt-2 flex flex-wrap gap-1\">\n                <UiBadge\n                  v-for=\"label in element.labels\"\n                  :key=\"label.name\"\n                  variant=\"soft\"\n                  :color=\"label.color\"\n                  size=\"sm\"\n                  >{{ label.name }}</UiBadge\n                >\n              </div>\n              <div class=\"text-muted-foreground mt-3 flex items-center justify-between text-xs\">\n                <span v-if=\"element.due\" class=\"flex items-center gap-1\">\n                  <Icon name=\"lucide:calendar\" class=\"size-3.5\" />\n                  {{ element.due }}\n                </span>\n                <span v-else />\n                <UiAvatar :src=\"element.avatar\" :fallback=\"element.assignee[0]\" class=\"size-6\" />\n              </div>\n            </article>\n          </template>\n        </UiDraggable>\n\n        <form v-if=\"adding === column.id\" class=\"mt-2 space-y-2\" @submit.prevent=\"add(column)\">\n          <UiLabel :for=\"`new-${column.id}`\" class=\"sr-only\">New card title</UiLabel>\n          <UiInput\n            :id=\"`new-${column.id}`\"\n            v-model=\"draft\"\n            placeholder=\"Card title\"\n            autocomplete=\"off\"\n            @keydown.esc=\"adding = ''\"\n          />\n          <div class=\"flex gap-2\">\n            <UiButton type=\"submit\" size=\"sm\" :disabled=\"!draft.trim()\">Add card</UiButton>\n            <UiButton type=\"button\" variant=\"ghost\" size=\"sm\" @click=\"adding = ''\">Cancel</UiButton>\n          </div>\n        </form>\n        <UiButton\n          v-else\n          variant=\"ghost\"\n          size=\"sm\"\n          class=\"text-muted-foreground mt-2 justify-start\"\n          @click=\"startAdd(column.id)\"\n        >\n          <Icon name=\"lucide:plus\" class=\"size-4\" />\n          Add card\n        </UiButton>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Label = { name: string; color: \"blue\" | \"green\" | \"amber\" | \"red\" | \"purple\" };\n  type Card = {\n    id: string;\n    title: string;\n    assignee: string;\n    avatar: string;\n    due?: string;\n    labels?: Label[];\n  };\n  type Column = { id: string; title: string; dot: string; cards: Card[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Column[];\n    }>(),\n    {\n      title: \"Website relaunch\",\n      initial: () => [\n        {\n          id: \"todo\",\n          title: \"To do\",\n          dot: \"bg-slate-400\",\n          cards: [\n            {\n              id: \"c1\",\n              title: \"Write the pricing page copy\",\n              assignee: \"Aisha\",\n              avatar: \"https://i.pravatar.cc/80?img=44\",\n              due: \"Oct 24\",\n              labels: [{ name: \"Content\", color: \"purple\" }],\n            },\n            {\n              id: \"c2\",\n              title: \"Audit image sizes\",\n              assignee: \"Noah\",\n              avatar: \"https://i.pravatar.cc/80?img=15\",\n              labels: [{ name: \"Performance\", color: \"amber\" }],\n            },\n            {\n              id: \"c3\",\n              title: \"Plan the launch email\",\n              assignee: \"Maya\",\n              avatar: \"https://i.pravatar.cc/80?img=45\",\n              due: \"Oct 30\",\n            },\n          ],\n        },\n        {\n          id: \"doing\",\n          title: \"In progress\",\n          dot: \"bg-blue-500\",\n          cards: [\n            {\n              id: \"c4\",\n              title: \"Build the new navigation\",\n              assignee: \"Liam\",\n              avatar: \"https://i.pravatar.cc/80?img=12\",\n              due: \"Oct 22\",\n              labels: [{ name: \"Frontend\", color: \"blue\" }],\n            },\n            {\n              id: \"c5\",\n              title: \"Design the pricing table\",\n              assignee: \"Sofia\",\n              avatar: \"https://i.pravatar.cc/80?img=32\",\n              due: \"Oct 23\",\n              labels: [{ name: \"Design\", color: \"green\" }],\n            },\n          ],\n        },\n        {\n          id: \"done\",\n          title: \"Done\",\n          dot: \"bg-green-500\",\n          cards: [\n            {\n              id: \"c6\",\n              title: \"Set up analytics\",\n              assignee: \"Liam\",\n              avatar: \"https://i.pravatar.cc/80?img=12\",\n              labels: [{ name: \"Setup\", color: \"green\" }],\n            },\n            {\n              id: \"c7\",\n              title: \"Approve brand colors\",\n              assignee: \"Maya\",\n              avatar: \"https://i.pravatar.cc/80?img=45\",\n            },\n          ],\n        },\n      ],\n    }\n  );\n\n  const columns = ref<Column[]>(\n    props.initial.map((column) => ({ ...column, cards: column.cards.map((card) => ({ ...card })) }))\n  );\n  const adding = ref(\"\");\n  const draft = ref(\"\");\n  let counter = 100;\n\n  function startAdd(id: string) {\n    adding.value = id;\n    draft.value = \"\";\n    nextTick(() => document.getElementById(`new-${id}`)?.focus());\n  }\n\n  function add(column: Column) {\n    const title = draft.value.trim();\n    if (!title) return;\n    column.cards.push({\n      id: `n${counter++}`,\n      title,\n      assignee: \"You\",\n      avatar: \"https://i.pravatar.cc/80?img=5\",\n    });\n    draft.value = \"\";\n    adding.value = \"\";\n  }\n\n  function move(card: Card, from: Column, to: Column) {\n    from.cards = from.cards.filter((item) => item.id !== card.id);\n    to.cards.push(card);\n    useSonner.success(`Moved to ${to.title}`);\n  }\n</script>\n","category":"Board","description":"Classic kanban board. Features: Columns with counts, cards you can drag between columns, a move menu on every card as a keyboard alternative, inline add card form per column, labels, assignee avatars and due dates","path":"Tasks/Board/BlockBoard1.vue","components":["avatar","badge","button","container","draggable","dropdown-menu","input","label"]},{"name":"Board 2","fileName":"BlockBoard2.vue","file":"<template>\n  <!--\n    Kanban board with swimlanes\n    Features: Rows grouped by priority and shared status columns, a draggable list in every cell, cards move across lanes and columns, lane headers with counts and collapsible lanes\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-1 mb-6 text-sm\">\n      Drag a card to change its status or its priority.\n    </p>\n\n    <div class=\"overflow-x-auto\">\n      <div class=\"grid min-w-[44rem] grid-cols-[8rem_repeat(3,1fr)] gap-2\">\n        <div />\n        <h2\n          v-for=\"status in statuses\"\n          :key=\"status\"\n          class=\"text-muted-foreground px-2 pb-1 text-xs font-semibold tracking-wide uppercase\"\n        >\n          {{ status }}\n        </h2>\n\n        <template v-for=\"lane in lanes\" :key=\"lane.id\">\n          <div class=\"flex items-start gap-1 pt-2\">\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              class=\"size-6\"\n              :aria-expanded=\"!collapsed.includes(lane.id)\"\n              :aria-label=\"`${collapsed.includes(lane.id) ? 'Expand' : 'Collapse'} ${lane.title} priority`\"\n              @click=\"toggle(lane.id)\"\n            >\n              <Icon\n                name=\"lucide:chevron-down\"\n                class=\"size-4 transition-transform\"\n                :class=\"collapsed.includes(lane.id) ? '-rotate-90' : ''\"\n              />\n            </UiButton>\n            <div>\n              <p class=\"flex items-center gap-1.5 text-sm font-semibold\">\n                <span class=\"size-2 rounded-full\" :class=\"lane.dot\" aria-hidden=\"true\" />\n                {{ lane.title }}\n              </p>\n              <p class=\"text-muted-foreground text-xs\">{{ count(lane) }} cards</p>\n            </div>\n          </div>\n          <template v-if=\"!collapsed.includes(lane.id)\">\n            <UiDraggable\n              v-for=\"(cell, index) in lane.cells\"\n              :key=\"`${lane.id}-${index}`\"\n              v-model=\"lane.cells[index]\"\n              group=\"board2\"\n              item-key=\"id\"\n              :animation=\"150\"\n              ghost-class=\"opacity-40\"\n              class=\"bg-muted/40 flex min-h-20 flex-col gap-2 rounded-lg border border-dashed p-2\"\n            >\n              <template #item=\"{ element }\">\n                <article\n                  class=\"bg-card cursor-grab rounded-md border p-2.5 text-sm shadow-xs active:cursor-grabbing\"\n                >\n                  <p class=\"font-medium\">{{ element.title }}</p>\n                  <div class=\"text-muted-foreground mt-2 flex items-center gap-2 text-xs\">\n                    <UiAvatar\n                      :src=\"element.avatar\"\n                      :fallback=\"element.assignee[0]\"\n                      class=\"size-5\"\n                    />\n                    {{ element.assignee }}\n                  </div>\n                </article>\n              </template>\n            </UiDraggable>\n          </template>\n          <p v-else class=\"text-muted-foreground col-span-3 flex items-center text-xs\">\n            {{ count(lane) }} cards hidden\n          </p>\n        </template>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Card = { id: string; title: string; assignee: string; avatar: string };\n  type Lane = { id: string; title: string; dot: string; cells: Card[][] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      statuses?: string[];\n      initial?: Lane[];\n    }>(),\n    {\n      title: \"Sprint 24\",\n      statuses: () => [\"To do\", \"In progress\", \"Done\"],\n      initial: () => [\n        {\n          id: \"high\",\n          title: \"High\",\n          dot: \"bg-red-500\",\n          cells: [\n            [\n              {\n                id: \"s1\",\n                title: \"Fix checkout crash on Safari\",\n                assignee: \"Liam\",\n                avatar: \"https://i.pravatar.cc/80?img=12\",\n              },\n            ],\n            [\n              {\n                id: \"s2\",\n                title: \"Rotate leaked API key\",\n                assignee: \"Maya\",\n                avatar: \"https://i.pravatar.cc/80?img=45\",\n              },\n            ],\n            [],\n          ],\n        },\n        {\n          id: \"medium\",\n          title: \"Medium\",\n          dot: \"bg-amber-500\",\n          cells: [\n            [\n              {\n                id: \"s3\",\n                title: \"Add CSV export\",\n                assignee: \"Noah\",\n                avatar: \"https://i.pravatar.cc/80?img=15\",\n              },\n              {\n                id: \"s4\",\n                title: \"Improve empty states\",\n                assignee: \"Sofia\",\n                avatar: \"https://i.pravatar.cc/80?img=32\",\n              },\n            ],\n            [\n              {\n                id: \"s5\",\n                title: \"Dark mode polish\",\n                assignee: \"Sofia\",\n                avatar: \"https://i.pravatar.cc/80?img=32\",\n              },\n            ],\n            [\n              {\n                id: \"s6\",\n                title: \"Update dependencies\",\n                assignee: \"Liam\",\n                avatar: \"https://i.pravatar.cc/80?img=12\",\n              },\n            ],\n          ],\n        },\n        {\n          id: \"low\",\n          title: \"Low\",\n          dot: \"bg-slate-400\",\n          cells: [\n            [\n              {\n                id: \"s7\",\n                title: \"Refresh the 404 page\",\n                assignee: \"Aisha\",\n                avatar: \"https://i.pravatar.cc/80?img=44\",\n              },\n            ],\n            [],\n            [\n              {\n                id: \"s8\",\n                title: \"Rename legacy settings\",\n                assignee: \"Noah\",\n                avatar: \"https://i.pravatar.cc/80?img=15\",\n              },\n            ],\n          ],\n        },\n      ],\n    }\n  );\n\n  const lanes = ref<Lane[]>(\n    props.initial.map((lane) => ({\n      ...lane,\n      cells: lane.cells.map((cell) => cell.map((card) => ({ ...card }))),\n    }))\n  );\n  const collapsed = ref<string[]>([]);\n\n  const count = (lane: Lane) => lane.cells.reduce((sum, cell) => sum + cell.length, 0);\n\n  function toggle(id: string) {\n    collapsed.value = collapsed.value.includes(id)\n      ? collapsed.value.filter((item) => item !== id)\n      : [...collapsed.value, id];\n  }\n</script>\n","category":"Board","description":"Kanban board with swimlanes. Features: Rows grouped by priority and shared status columns, a draggable list in every cell, cards move across lanes and columns, lane headers with counts and collapsible lanes","path":"Tasks/Board/BlockBoard2.vue","components":["avatar","button","container","draggable"]},{"name":"Board 3","fileName":"BlockBoard3.vue","file":"<template>\n  <!--\n    Compact kanban with a horizontal scroll\n    Features: Fixed width columns in a scroll region that works with the keyboard, dense cards with priority bar, comment and attachment counts, stacked avatars and drag handles that leave the card text selectable\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n\n    <div\n      class=\"-mx-4 mt-6 overflow-x-auto px-4 pb-4\"\n      tabindex=\"0\"\n      role=\"region\"\n      aria-label=\"Board columns, scroll sideways\"\n    >\n      <div class=\"flex w-max gap-3\">\n        <section\n          v-for=\"column in columns\"\n          :key=\"column.id\"\n          class=\"bg-muted/40 w-64 shrink-0 rounded-xl border p-2\"\n          :aria-label=\"column.title\"\n        >\n          <header class=\"flex items-center justify-between px-2 py-1.5\">\n            <h2 class=\"text-sm font-semibold\">{{ column.title }}</h2>\n            <span class=\"text-muted-foreground text-xs tabular-nums\">{{\n              column.cards.length\n            }}</span>\n          </header>\n          <UiDraggable\n            v-model=\"column.cards\"\n            group=\"board3\"\n            item-key=\"id\"\n            handle=\".drag-handle\"\n            :animation=\"150\"\n            ghost-class=\"opacity-40\"\n            class=\"flex min-h-12 flex-col gap-1.5\"\n          >\n            <template #item=\"{ element }\">\n              <article\n                class=\"bg-card relative flex overflow-hidden rounded-md border text-sm shadow-xs\"\n              >\n                <span\n                  class=\"w-1 shrink-0\"\n                  :class=\"priorityBar[element.priority]\"\n                  aria-hidden=\"true\"\n                />\n                <div class=\"min-w-0 flex-1 p-2.5\">\n                  <div class=\"flex items-start gap-1\">\n                    <p class=\"flex-1 leading-snug font-medium\">{{ element.title }}</p>\n                    <span\n                      class=\"drag-handle text-muted-foreground hover:text-foreground -mt-0.5 -mr-1 cursor-grab p-1\"\n                      aria-hidden=\"true\"\n                    >\n                      <Icon name=\"lucide:grip-vertical\" class=\"size-4\" />\n                    </span>\n                  </div>\n                  <div\n                    class=\"text-muted-foreground mt-2.5 flex items-center justify-between text-xs\"\n                  >\n                    <div class=\"flex items-center gap-2\">\n                      <span class=\"flex items-center gap-0.5\"\n                        ><Icon name=\"lucide:message-square\" class=\"size-3.5\" />{{\n                          element.comments\n                        }}</span\n                      >\n                      <span class=\"flex items-center gap-0.5\"\n                        ><Icon name=\"lucide:paperclip\" class=\"size-3.5\" />{{ element.files }}</span\n                      >\n                    </div>\n                    <div class=\"flex -space-x-1.5\">\n                      <UiAvatar\n                        v-for=\"person in element.people\"\n                        :key=\"person\"\n                        :src=\"`https://i.pravatar.cc/80?img=${person}`\"\n                        fallback=\"?\"\n                        class=\"ring-card size-5 ring-2\"\n                      />\n                    </div>\n                  </div>\n                </div>\n              </article>\n            </template>\n          </UiDraggable>\n        </section>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Card = {\n    id: string;\n    title: string;\n    priority: \"high\" | \"medium\" | \"low\";\n    comments: number;\n    files: number;\n    people: number[];\n  };\n  type Column = { id: string; title: string; cards: Card[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Column[];\n    }>(),\n    {\n      title: \"Product backlog\",\n      initial: () => [\n        {\n          id: \"ideas\",\n          title: \"Ideas\",\n          cards: [\n            {\n              id: \"k1\",\n              title: \"Offline mode for the mobile app\",\n              priority: \"low\",\n              comments: 4,\n              files: 0,\n              people: [32],\n            },\n            {\n              id: \"k2\",\n              title: \"Team activity digest email\",\n              priority: \"medium\",\n              comments: 2,\n              files: 1,\n              people: [12, 44],\n            },\n          ],\n        },\n        {\n          id: \"planned\",\n          title: \"Planned\",\n          cards: [\n            {\n              id: \"k3\",\n              title: \"Single sign on with SAML\",\n              priority: \"high\",\n              comments: 9,\n              files: 3,\n              people: [45, 15],\n            },\n            {\n              id: \"k4\",\n              title: \"Bulk edit for tasks\",\n              priority: \"medium\",\n              comments: 1,\n              files: 0,\n              people: [12],\n            },\n          ],\n        },\n        {\n          id: \"building\",\n          title: \"Building\",\n          cards: [\n            {\n              id: \"k5\",\n              title: \"New onboarding checklist\",\n              priority: \"high\",\n              comments: 6,\n              files: 2,\n              people: [32, 44, 12],\n            },\n          ],\n        },\n        {\n          id: \"testing\",\n          title: \"Testing\",\n          cards: [\n            {\n              id: \"k6\",\n              title: \"Faster search results\",\n              priority: \"medium\",\n              comments: 3,\n              files: 0,\n              people: [15],\n            },\n          ],\n        },\n        {\n          id: \"shipped\",\n          title: \"Shipped\",\n          cards: [\n            {\n              id: \"k7\",\n              title: \"Dark mode\",\n              priority: \"low\",\n              comments: 12,\n              files: 4,\n              people: [32, 45],\n            },\n          ],\n        },\n      ],\n    }\n  );\n\n  const priorityBar = {\n    high: \"bg-red-500\",\n    medium: \"bg-amber-500\",\n    low: \"bg-slate-300 dark:bg-slate-600\",\n  } as const;\n\n  const columns = ref<Column[]>(\n    props.initial.map((column) => ({ ...column, cards: column.cards.map((card) => ({ ...card })) }))\n  );\n</script>\n","category":"Board","description":"Compact kanban with a horizontal scroll. Features: Fixed width columns in a scroll region that works with the keyboard, dense cards with priority bar, comment and attachment counts, stacked avatars and drag handles that leave the card text selectable","path":"Tasks/Board/BlockBoard3.vue","components":["avatar","container","draggable"]},{"name":"Board 4","fileName":"BlockBoard4.vue","file":"<template>\n  <!--\n    Kanban with collapsible columns\n    Features: Each column collapses into a slim vertical strip with its count, an expand button with an accessible name, cards still accept drops while collapsed and smooth width transitions that respect reduced motion\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-1 mb-6 text-sm\">\n      Collapse columns you are not working on to give the rest more room.\n    </p>\n\n    <div class=\"flex gap-3 overflow-x-auto pb-2\">\n      <section\n        v-for=\"column in columns\"\n        :key=\"column.id\"\n        class=\"bg-muted/40 shrink-0 rounded-xl border p-2 transition-[width] duration-200 motion-reduce:transition-none\"\n        :class=\"column.collapsed ? 'w-14' : 'w-72'\"\n        :aria-label=\"column.title\"\n      >\n        <header\n          class=\"flex items-center gap-1 px-1 py-1\"\n          :class=\"column.collapsed ? 'flex-col' : 'justify-between'\"\n        >\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"size-7\"\n            :aria-expanded=\"!column.collapsed\"\n            :aria-label=\"`${column.collapsed ? 'Expand' : 'Collapse'} ${column.title}`\"\n            @click=\"column.collapsed = !column.collapsed\"\n          >\n            <Icon\n              :name=\"column.collapsed ? 'lucide:chevrons-right' : 'lucide:chevrons-left'\"\n              class=\"size-4\"\n            />\n          </UiButton>\n          <h2 v-if=\"!column.collapsed\" class=\"flex-1 text-sm font-semibold\">{{ column.title }}</h2>\n          <h2 v-else class=\"text-sm font-semibold [writing-mode:vertical-rl]\">\n            {{ column.title }}\n          </h2>\n          <UiBadge variant=\"secondary\">{{ column.cards.length }}</UiBadge>\n        </header>\n        <UiDraggable\n          v-model=\"column.cards\"\n          group=\"board4\"\n          item-key=\"id\"\n          :animation=\"150\"\n          ghost-class=\"opacity-40\"\n          class=\"mt-2 flex flex-col gap-2\"\n          :class=\"column.collapsed ? 'min-h-24' : 'min-h-16'\"\n        >\n          <template #item=\"{ element }\">\n            <article\n              v-show=\"!column.collapsed\"\n              class=\"bg-card cursor-grab rounded-lg border p-3 text-sm shadow-xs active:cursor-grabbing\"\n            >\n              <p class=\"font-medium\">{{ element.title }}</p>\n              <p class=\"text-muted-foreground mt-1 text-xs\">{{ element.meta }}</p>\n            </article>\n          </template>\n        </UiDraggable>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Card = { id: string; title: string; meta: string };\n  type Column = { id: string; title: string; collapsed?: boolean; cards: Card[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Column[];\n    }>(),\n    {\n      title: \"Hiring pipeline\",\n      initial: () => [\n        {\n          id: \"applied\",\n          title: \"Applied\",\n          cards: [\n            { id: \"h1\", title: \"Priya Nair\", meta: \"Product designer · 2 days ago\" },\n            { id: \"h2\", title: \"Lukas Meyer\", meta: \"Frontend engineer · 3 days ago\" },\n            { id: \"h3\", title: \"Chloe Martin\", meta: \"Product designer · 5 days ago\" },\n          ],\n        },\n        {\n          id: \"screen\",\n          title: \"Phone screen\",\n          cards: [{ id: \"h4\", title: \"Marco Rossi\", meta: \"Backend engineer · Thursday 10:00\" }],\n        },\n        {\n          id: \"onsite\",\n          title: \"Onsite\",\n          collapsed: true,\n          cards: [\n            { id: \"h5\", title: \"Tomás Silva\", meta: \"Data analyst · Monday 14:00\" },\n            { id: \"h6\", title: \"Hannah Lee\", meta: \"Engineering manager · Friday 11:30\" },\n          ],\n        },\n        {\n          id: \"offer\",\n          title: \"Offer\",\n          cards: [{ id: \"h7\", title: \"Ethan Brooks\", meta: \"Design lead · Offer sent\" }],\n        },\n      ],\n    }\n  );\n\n  const columns = ref<Column[]>(\n    props.initial.map((column) => ({\n      ...column,\n      collapsed: column.collapsed ?? false,\n      cards: column.cards.map((card) => ({ ...card })),\n    }))\n  );\n</script>\n","category":"Board","description":"Kanban with collapsible columns. Features: Each column collapses into a slim vertical strip with its count, an expand button with an accessible name, cards still accept drops while collapsed and smooth width transitions that respect reduced motion","path":"Tasks/Board/BlockBoard4.vue","components":["badge","button","container","draggable"]},{"name":"Board 5","fileName":"BlockBoard5.vue","file":"<template>\n  <!--\n    Kanban with work in progress limits\n    Features: Column headers that show count and limit, a warning state when a column is over its limit, drops refused when a column is full, a message that explains why and a reset button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mb-6 flex flex-wrap items-end justify-between gap-3\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Columns stop accepting cards when they reach their limit.\n        </p>\n      </div>\n      <UiButton variant=\"outline\" size=\"sm\" @click=\"reset\"\n        ><Icon name=\"lucide:rotate-ccw\" class=\"size-4\" />Reset</UiButton\n      >\n    </div>\n\n    <UiAlert\n      v-if=\"notice\"\n      variant=\"warning\"\n      icon=\"lucide:triangle-alert\"\n      :title=\"notice\"\n      class=\"mb-4\"\n      role=\"status\"\n    />\n\n    <div class=\"grid gap-4 md:grid-cols-3\">\n      <section\n        v-for=\"column in columns\"\n        :key=\"column.id\"\n        class=\"rounded-xl border p-3\"\n        :class=\"full(column) ? 'border-amber-500/60 bg-amber-500/5' : 'bg-muted/40'\"\n        :aria-label=\"column.title\"\n      >\n        <header class=\"mb-3 flex items-center justify-between px-1\">\n          <h2 class=\"text-sm font-semibold\">{{ column.title }}</h2>\n          <UiBadge\n            v-if=\"column.limit\"\n            :variant=\"full(column) ? 'soft' : 'secondary'\"\n            :color=\"full(column) ? 'amber' : undefined\"\n          >\n            {{ column.cards.length }} / {{ column.limit }}\n            <span class=\"sr-only\">{{ full(column) ? \"limit reached\" : \"within limit\" }}</span>\n          </UiBadge>\n          <UiBadge v-else variant=\"secondary\">{{ column.cards.length }}</UiBadge>\n        </header>\n        <UiDraggable\n          v-model=\"column.cards\"\n          :group=\"{ name: 'board5', put: () => !full(column) }\"\n          item-key=\"id\"\n          :animation=\"150\"\n          ghost-class=\"opacity-40\"\n          class=\"flex min-h-20 flex-col gap-2\"\n          @change=\"(event: any) => event.added && check(column)\"\n        >\n          <template #item=\"{ element }\">\n            <article\n              class=\"bg-card cursor-grab rounded-lg border p-3 text-sm shadow-xs active:cursor-grabbing\"\n            >\n              <p class=\"font-medium\">{{ element.title }}</p>\n              <p class=\"text-muted-foreground mt-1 text-xs\">{{ element.owner }}</p>\n            </article>\n          </template>\n        </UiDraggable>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Card = { id: string; title: string; owner: string };\n  type Column = { id: string; title: string; limit?: number; cards: Card[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Column[];\n    }>(),\n    {\n      title: \"Support queue\",\n      initial: () => [\n        {\n          id: \"new\",\n          title: \"New\",\n          cards: [\n            { id: \"w1\", title: \"Refund request from Globex\", owner: \"Unassigned\" },\n            { id: \"w2\", title: \"Login issue for Initech\", owner: \"Unassigned\" },\n            { id: \"w3\", title: \"Question about invoices\", owner: \"Unassigned\" },\n            { id: \"w4\", title: \"Feature request: dark mode\", owner: \"Unassigned\" },\n          ],\n        },\n        {\n          id: \"working\",\n          title: \"Working\",\n          limit: 3,\n          cards: [\n            { id: \"w5\", title: \"Billing bug for Umbrella\", owner: \"Liam\" },\n            { id: \"w6\", title: \"Data export is slow\", owner: \"Sofia\" },\n          ],\n        },\n        {\n          id: \"review\",\n          title: \"In review\",\n          limit: 2,\n          cards: [\n            { id: \"w7\", title: \"SSO setup for Hooli\", owner: \"Maya\" },\n            { id: \"w8\", title: \"Webhook failures\", owner: \"Noah\" },\n          ],\n        },\n      ],\n    }\n  );\n\n  const columns = ref<Column[]>(\n    props.initial.map((column) => ({ ...column, cards: column.cards.map((card) => ({ ...card })) }))\n  );\n  const notice = ref(\"\");\n\n  const full = (column: Column) =>\n    column.limit !== undefined && column.cards.length >= column.limit;\n\n  function check(column: Column) {\n    notice.value = full(column)\n      ? `${column.title} has reached its limit of ${column.limit}. Finish something before pulling in more.`\n      : \"\";\n  }\n\n  function reset() {\n    columns.value = props.initial.map((column) => ({\n      ...column,\n      cards: column.cards.map((card) => ({ ...card })),\n    }));\n    notice.value = \"\";\n  }\n</script>\n","category":"Board","description":"Kanban with work in progress limits. Features: Column headers that show count and limit, a warning state when a column is over its limit, drops refused when a column is full, a message that explains why and a reset button","path":"Tasks/Board/BlockBoard5.vue","components":["alert","badge","button","container","draggable"]},{"name":"Board 6","fileName":"BlockBoard6.vue","file":"<template>\n  <!--\n    Kanban board with search and filters\n    Features: Search across card titles, assignee and label filters, a result count, cards that do not match are hidden but keep their place in the column, clear filters and an empty message when nothing matches\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n\n    <div class=\"mt-6 flex flex-col gap-3 sm:flex-row sm:items-center\">\n      <div class=\"relative sm:w-64\">\n        <UiLabel for=\"board6-search\" class=\"sr-only\">Search cards</UiLabel>\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput id=\"board6-search\" v-model=\"query\" placeholder=\"Search cards\" class=\"pl-9\" />\n      </div>\n      <UiSelect v-model=\"assignee\">\n        <UiSelectTrigger class=\"sm:w-44\" aria-label=\"Filter by assignee\"\n          ><UiSelectValue\n        /></UiSelectTrigger>\n        <UiSelectContent>\n          <UiSelectItem value=\"all\">Everyone</UiSelectItem>\n          <UiSelectItem v-for=\"person in people\" :key=\"person\" :value=\"person\">{{\n            person\n          }}</UiSelectItem>\n        </UiSelectContent>\n      </UiSelect>\n      <UiSelect v-model=\"label\">\n        <UiSelectTrigger class=\"sm:w-44\" aria-label=\"Filter by label\"\n          ><UiSelectValue\n        /></UiSelectTrigger>\n        <UiSelectContent>\n          <UiSelectItem value=\"all\">All labels</UiSelectItem>\n          <UiSelectItem v-for=\"item in labels\" :key=\"item\" :value=\"item\">{{ item }}</UiSelectItem>\n        </UiSelectContent>\n      </UiSelect>\n      <UiButton v-if=\"filtering\" variant=\"ghost\" size=\"sm\" @click=\"clear\">Clear filters</UiButton>\n      <p class=\"text-muted-foreground text-sm sm:ml-auto\" aria-live=\"polite\">\n        {{ visible }} of {{ total }} cards\n      </p>\n    </div>\n\n    <p\n      v-if=\"!visible\"\n      class=\"text-muted-foreground mt-6 rounded-lg border border-dashed py-8 text-center text-sm\"\n      role=\"status\"\n    >\n      No cards match your filters.\n    </p>\n\n    <div class=\"mt-4 grid gap-4 md:grid-cols-3\">\n      <section\n        v-for=\"column in columns\"\n        :key=\"column.id\"\n        class=\"bg-muted/40 rounded-xl border p-3\"\n        :aria-label=\"column.title\"\n      >\n        <header class=\"mb-3 flex items-center justify-between px-1\">\n          <h2 class=\"text-sm font-semibold\">{{ column.title }}</h2>\n          <UiBadge variant=\"secondary\">{{ column.cards.filter(matches).length }}</UiBadge>\n        </header>\n        <UiDraggable\n          v-model=\"column.cards\"\n          group=\"board6\"\n          item-key=\"id\"\n          :animation=\"150\"\n          ghost-class=\"opacity-40\"\n          class=\"flex min-h-16 flex-col gap-2\"\n        >\n          <template #item=\"{ element }\">\n            <article\n              v-show=\"matches(element)\"\n              class=\"bg-card cursor-grab rounded-lg border p-3 text-sm shadow-xs active:cursor-grabbing\"\n            >\n              <p class=\"font-medium\">{{ element.title }}</p>\n              <div class=\"mt-2 flex items-center justify-between\">\n                <UiBadge variant=\"soft\" color=\"blue\" size=\"sm\">{{ element.label }}</UiBadge>\n                <span class=\"text-muted-foreground flex items-center gap-1.5 text-xs\">\n                  <UiAvatar :src=\"element.avatar\" :fallback=\"element.assignee[0]\" class=\"size-5\" />\n                  {{ element.assignee }}\n                </span>\n              </div>\n            </article>\n          </template>\n        </UiDraggable>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Card = { id: string; title: string; assignee: string; avatar: string; label: string };\n  type Column = { id: string; title: string; cards: Card[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Column[];\n    }>(),\n    {\n      title: \"Q4 roadmap\",\n      initial: () => [\n        {\n          id: \"plan\",\n          title: \"Planned\",\n          cards: [\n            {\n              id: \"f1\",\n              title: \"Public API v2\",\n              assignee: \"Liam\",\n              avatar: \"https://i.pravatar.cc/80?img=12\",\n              label: \"Platform\",\n            },\n            {\n              id: \"f2\",\n              title: \"Redesigned billing page\",\n              assignee: \"Sofia\",\n              avatar: \"https://i.pravatar.cc/80?img=32\",\n              label: \"Design\",\n            },\n            {\n              id: \"f3\",\n              title: \"Usage based pricing\",\n              assignee: \"Maya\",\n              avatar: \"https://i.pravatar.cc/80?img=45\",\n              label: \"Growth\",\n            },\n          ],\n        },\n        {\n          id: \"build\",\n          title: \"In progress\",\n          cards: [\n            {\n              id: \"f4\",\n              title: \"Audit log export\",\n              assignee: \"Noah\",\n              avatar: \"https://i.pravatar.cc/80?img=15\",\n              label: \"Platform\",\n            },\n            {\n              id: \"f5\",\n              title: \"Onboarding checklist\",\n              assignee: \"Sofia\",\n              avatar: \"https://i.pravatar.cc/80?img=32\",\n              label: \"Growth\",\n            },\n          ],\n        },\n        {\n          id: \"ship\",\n          title: \"Shipped\",\n          cards: [\n            {\n              id: \"f6\",\n              title: \"Dark mode\",\n              assignee: \"Liam\",\n              avatar: \"https://i.pravatar.cc/80?img=12\",\n              label: \"Design\",\n            },\n            {\n              id: \"f7\",\n              title: \"Slack integration\",\n              assignee: \"Noah\",\n              avatar: \"https://i.pravatar.cc/80?img=15\",\n              label: \"Platform\",\n            },\n          ],\n        },\n      ],\n    }\n  );\n\n  const columns = ref<Column[]>(\n    props.initial.map((column) => ({ ...column, cards: column.cards.map((card) => ({ ...card })) }))\n  );\n  const query = ref(\"\");\n  const assignee = ref(\"all\");\n  const label = ref(\"all\");\n\n  const all = computed(() => columns.value.flatMap((column) => column.cards));\n  const people = computed(() => [...new Set(all.value.map((card) => card.assignee))]);\n  const labels = computed(() => [...new Set(all.value.map((card) => card.label))]);\n\n  function matches(card: Card) {\n    const term = query.value.trim().toLowerCase();\n    return (\n      (!term || card.title.toLowerCase().includes(term)) &&\n      (assignee.value === \"all\" || card.assignee === assignee.value) &&\n      (label.value === \"all\" || card.label === label.value)\n    );\n  }\n\n  const total = computed(() => all.value.length);\n  const visible = computed(() => all.value.filter(matches).length);\n  const filtering = computed(\n    () => query.value || assignee.value !== \"all\" || label.value !== \"all\"\n  );\n\n  function clear() {\n    query.value = \"\";\n    assignee.value = \"all\";\n    label.value = \"all\";\n  }\n</script>\n","category":"Board","description":"Kanban board with search and filters. Features: Search across card titles, assignee and label filters, a result count, cards that do not match are hidden but keep their place in the column, clear filters and an empty message when nothing matches","path":"Tasks/Board/BlockBoard6.vue","components":["avatar","badge","button","container","draggable","input","label","select"]},{"name":"Booking 1","fileName":"BlockBooking1.vue","file":"<template>\n  <!--\n    Date and time slot picker\n    Features: Host details, a month calendar where weekends, past days and fully booked days are disabled, a list of time slots for the chosen day with booked slots removed, a confirm step on the selected slot and a time zone note\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-4xl gap-0 py-0\">\n      <div class=\"grid md:grid-cols-[14rem_1fr_13rem]\">\n        <div class=\"border-b p-6 md:border-r md:border-b-0\">\n          <UiAvatar\n            :src=\"`https://i.pravatar.cc/80?img=${host.avatar}`\"\n            :fallback=\"host.name.slice(0, 1)\"\n            class=\"size-12\"\n          />\n          <p class=\"text-muted-foreground mt-3 text-sm\">{{ host.name }}</p>\n          <h1 class=\"text-xl font-bold tracking-tight\">{{ host.title }}</h1>\n          <ul class=\"text-muted-foreground mt-4 space-y-2 text-sm\">\n            <li class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:clock\" class=\"size-4\" />{{ host.minutes }} minutes\n            </li>\n            <li class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:video\" class=\"size-4\" />{{ host.where }}\n            </li>\n            <li class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:globe\" class=\"size-4\" />{{ host.zone }}\n            </li>\n          </ul>\n        </div>\n\n        <div class=\"border-b p-6 md:border-r md:border-b-0\">\n          <div class=\"mb-3 flex items-center justify-between\">\n            <h2 class=\"font-semibold\" aria-live=\"polite\">{{ monthLabel }}</h2>\n            <div class=\"flex gap-1\">\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                aria-label=\"Previous month\"\n                :disabled=\"view <= todayMonth\"\n                @click=\"shift(-1)\"\n                ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n              /></UiButton>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" aria-label=\"Next month\" @click=\"shift(1)\"\n                ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n              /></UiButton>\n            </div>\n          </div>\n          <div\n            class=\"text-muted-foreground grid grid-cols-7 text-center text-xs\"\n            aria-hidden=\"true\"\n          >\n            <span v-for=\"(name, i) in weekdays\" :key=\"i\" class=\"py-1\">{{ name }}</span>\n          </div>\n          <div class=\"grid grid-cols-7 gap-y-1\" role=\"group\" :aria-label=\"monthLabel\">\n            <template v-for=\"cell in cells\" :key=\"cell.iso\">\n              <span v-if=\"!cell.inMonth\" />\n              <button\n                v-else\n                type=\"button\"\n                class=\"focus-visible:ring-ring/50 mx-auto grid size-10 place-items-center rounded-full text-sm outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-35\"\n                :class=\"\n                  picked === cell.iso\n                    ? 'bg-primary text-primary-foreground font-semibold'\n                    : cell.open\n                      ? 'bg-primary/10 text-primary hover:bg-primary/20 font-semibold'\n                      : ''\n                \"\n                :disabled=\"!cell.open\"\n                :aria-pressed=\"picked === cell.iso\"\n                :aria-label=\"longDate(cell.iso)\"\n                @click=\"pick(cell.iso)\"\n              >\n                {{ Number(cell.iso.slice(8)) }}\n              </button>\n            </template>\n          </div>\n        </div>\n\n        <div class=\"p-6\" aria-live=\"polite\">\n          <template v-if=\"picked\">\n            <h2 class=\"text-sm font-semibold\">{{ longDate(picked) }}</h2>\n            <ul class=\"mt-3 max-h-72 space-y-2 overflow-y-auto pr-1\" aria-label=\"Available times\">\n              <li v-for=\"slot in freeSlots\" :key=\"slot\" class=\"flex gap-2\">\n                <UiButton\n                  :variant=\"slot === chosen ? 'secondary' : 'outline'\"\n                  class=\"flex-1\"\n                  :aria-pressed=\"slot === chosen\"\n                  @click=\"chosen = slot\"\n                  >{{ clock(slot) }}</UiButton\n                >\n                <UiButton v-if=\"slot === chosen\" @click=\"confirm\">Confirm</UiButton>\n              </li>\n              <li v-if=\"!freeSlots.length\" class=\"text-muted-foreground text-sm\">\n                No times left on this day.\n              </li>\n            </ul>\n          </template>\n          <p v-else class=\"text-muted-foreground text-sm\">Pick a day to see the open times.</p>\n          <p\n            v-if=\"booked\"\n            class=\"text-primary mt-4 flex items-center gap-1.5 text-sm font-medium\"\n            role=\"status\"\n          >\n            <Icon name=\"lucide:circle-check\" class=\"size-4\" />Booked for {{ booked }}\n          </p>\n        </div>\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Host = {\n    name: string;\n    avatar: number;\n    title: string;\n    minutes: number;\n    where: string;\n    zone: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      host?: Host;\n      /** Times offered on every open day, as `HH:mm`. */\n      times?: string[];\n      /** Slots that are already taken, keyed by ISO date. */\n      taken?: Record<string, string[]>;\n    }>(),\n    {\n      today: \"2026-10-18\",\n      host: () => ({\n        name: \"Maya Patel\",\n        avatar: 32,\n        title: \"Intro call\",\n        minutes: 30,\n        where: \"Video call link after booking\",\n        zone: \"Eastern Time (US and Canada)\",\n      }),\n      times: () => [\n        \"09:00\",\n        \"09:30\",\n        \"10:00\",\n        \"10:30\",\n        \"11:00\",\n        \"13:00\",\n        \"13:30\",\n        \"14:00\",\n        \"15:30\",\n        \"16:00\",\n      ],\n      taken: () => ({\n        \"2026-10-19\": [\"09:30\", \"10:00\", \"13:00\"],\n        \"2026-10-20\": [\n          \"09:00\",\n          \"09:30\",\n          \"10:00\",\n          \"10:30\",\n          \"11:00\",\n          \"13:00\",\n          \"13:30\",\n          \"14:00\",\n          \"15:30\",\n          \"16:00\",\n        ],\n        \"2026-10-22\": [\"11:00\", \"14:00\"],\n      }),\n    }\n  );\n\n  const weekdays = [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"];\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const fmt = (date: Date) => date.toISOString().slice(0, 10);\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n  const longDate = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n\n  const todayMonth = computed(() => props.today.slice(0, 7));\n  const view = ref(props.today.slice(0, 7));\n  const free = (iso: string) => props.times.filter((time) => !props.taken[iso]?.includes(time));\n  const isOpen = (iso: string) => {\n    const weekday = parse(iso).getUTCDay();\n    return iso > props.today && weekday !== 0 && weekday !== 6 && free(iso).length > 0;\n  };\n\n  const cells = computed(() => {\n    const first = parse(`${view.value}-01`);\n    const length = new Date(\n      Date.UTC(first.getUTCFullYear(), first.getUTCMonth() + 1, 0)\n    ).getUTCDate();\n    const blanks = Array.from({ length: first.getUTCDay() }, (_, index) => ({\n      iso: `blank-${index}`,\n      inMonth: false,\n      open: false,\n    }));\n    const days = Array.from({ length }, (_, index) => {\n      const iso = `${view.value}-${String(index + 1).padStart(2, \"0\")}`;\n      return { iso, inMonth: true, open: isOpen(iso) };\n    });\n    return [...blanks, ...days];\n  });\n\n  const nextOpen = () => {\n    for (let offset = 1; offset < 60; offset++) {\n      const date = parse(props.today);\n      date.setUTCDate(date.getUTCDate() + offset);\n      if (isOpen(fmt(date))) return fmt(date);\n    }\n    return \"\";\n  };\n\n  const picked = ref(nextOpen());\n  const chosen = ref(\"\");\n  const booked = ref(\"\");\n\n  const freeSlots = computed(() => (picked.value ? free(picked.value) : []));\n  const monthLabel = computed(() =>\n    parse(`${view.value}-01`).toLocaleDateString(\"en-US\", {\n      month: \"long\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    })\n  );\n\n  function pick(iso: string) {\n    picked.value = iso;\n    chosen.value = \"\";\n    booked.value = \"\";\n  }\n\n  function shift(step: number) {\n    const date = parse(`${view.value}-01`);\n    date.setUTCMonth(date.getUTCMonth() + step);\n    view.value = fmt(date).slice(0, 7);\n  }\n\n  function confirm() {\n    booked.value = `${longDate(picked.value)} at ${clock(chosen.value)}`;\n    useSonner.success(\"Meeting booked\", { description: booked.value });\n    chosen.value = \"\";\n  }\n</script>\n","category":"Booking","description":"Date and time slot picker. Features: Host details, a month calendar where weekends, past days and fully booked days are disabled, a list of time slots for the chosen day with booked slots removed, a confirm step on the selected slot and a time zone note","path":"Calendar/Booking/BlockBooking1.vue","components":["avatar","button","card","container"]},{"name":"Booking 2","fileName":"BlockBooking2.vue","file":"<template>\n  <!--\n    Service selection with staff and add ons\n    Features: Radio cards for each service with duration and price, a choice of staff member with an any available option, optional add ons that change the total and a sticky summary with the total time and price\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-5xl gap-8 lg:grid-cols-[1fr_20rem]\">\n      <div class=\"space-y-10\">\n        <section>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Book an appointment</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\">Choose a service to get started.</p>\n          <UiRadioGroup v-model=\"serviceId\" class=\"mt-5 grid gap-3\" aria-label=\"Service\">\n            <label\n              v-for=\"service in services\"\n              :key=\"service.id\"\n              class=\"hover:bg-accent/50 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5 flex cursor-pointer items-start gap-3 rounded-xl border p-4 transition-colors\"\n            >\n              <UiRadioGroupItem :value=\"service.id\" class=\"mt-1\" />\n              <span class=\"min-w-0 flex-1\">\n                <span class=\"block font-medium\">{{ service.name }}</span>\n                <span class=\"text-muted-foreground block text-sm\">{{ service.blurb }}</span>\n                <span class=\"text-muted-foreground mt-1 block text-xs\"\n                  >{{ service.minutes }} min</span\n                >\n              </span>\n              <span class=\"font-semibold tabular-nums\">{{ money(service.price) }}</span>\n            </label>\n          </UiRadioGroup>\n        </section>\n\n        <section>\n          <h2 class=\"font-semibold\">Who would you like to see?</h2>\n          <UiRadioGroup\n            v-model=\"staffId\"\n            class=\"mt-3 grid gap-3 sm:grid-cols-2\"\n            aria-label=\"Staff member\"\n          >\n            <label\n              v-for=\"person in team\"\n              :key=\"person.id\"\n              class=\"hover:bg-accent/50 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5 flex cursor-pointer items-center gap-3 rounded-xl border p-3 transition-colors\"\n            >\n              <UiAvatar\n                v-if=\"person.avatar\"\n                :src=\"`https://i.pravatar.cc/80?img=${person.avatar}`\"\n                :fallback=\"person.name.slice(0, 1)\"\n                class=\"size-9\"\n              />\n              <span v-else class=\"bg-muted grid size-9 place-items-center rounded-full\"\n                ><Icon name=\"lucide:users\" class=\"size-4\"\n              /></span>\n              <span class=\"min-w-0 flex-1\">\n                <span class=\"block text-sm font-medium\">{{ person.name }}</span>\n                <span class=\"text-muted-foreground block truncate text-xs\">{{ person.role }}</span>\n              </span>\n              <UiRadioGroupItem :value=\"person.id\" />\n            </label>\n          </UiRadioGroup>\n        </section>\n\n        <section>\n          <h2 class=\"font-semibold\">Add ons</h2>\n          <ul class=\"mt-3 space-y-2\">\n            <li\n              v-for=\"extra in addOns\"\n              :key=\"extra.id\"\n              class=\"flex items-center gap-3 rounded-lg border px-4 py-3\"\n            >\n              <UiCheckbox\n                :id=\"`extra-${extra.id}`\"\n                :model-value=\"picked.includes(extra.id)\"\n                @update:model-value=\"toggle(extra.id)\"\n              />\n              <UiLabel :for=\"`extra-${extra.id}`\" class=\"flex-1 cursor-pointer font-normal\">\n                {{ extra.name\n                }}<span class=\"text-muted-foreground ml-2 text-xs\">+{{ extra.minutes }} min</span>\n              </UiLabel>\n              <span class=\"text-sm tabular-nums\">+{{ money(extra.price) }}</span>\n            </li>\n          </ul>\n        </section>\n      </div>\n\n      <aside class=\"lg:sticky lg:top-6 lg:self-start\">\n        <UiCard class=\"gap-4\">\n          <UiCardHeader>\n            <UiCardTitle class=\"text-base\">Your appointment</UiCardTitle>\n          </UiCardHeader>\n          <UiCardContent class=\"space-y-3 text-sm\" aria-live=\"polite\">\n            <div class=\"flex justify-between gap-3\">\n              <span>{{ selected.name }}</span>\n              <span class=\"tabular-nums\">{{ money(selected.price) }}</span>\n            </div>\n            <div\n              v-for=\"extra in chosenAddOns\"\n              :key=\"extra.id\"\n              class=\"text-muted-foreground flex justify-between gap-3\"\n            >\n              <span>{{ extra.name }}</span>\n              <span class=\"tabular-nums\">{{ money(extra.price) }}</span>\n            </div>\n            <UiSeparator />\n            <div class=\"text-muted-foreground flex justify-between\">\n              <span>With</span><span>{{ staff.name }}</span>\n            </div>\n            <div class=\"text-muted-foreground flex justify-between\">\n              <span>Total time</span><span>{{ totalMinutes }} min</span>\n            </div>\n            <div class=\"flex justify-between text-base font-semibold\">\n              <span>Total</span><span class=\"tabular-nums\">{{ money(total) }}</span>\n            </div>\n          </UiCardContent>\n          <UiCardFooter>\n            <UiButton\n              class=\"w-full\"\n              @click=\"useSonner.success(`${selected.name} selected, pick a time next`)\"\n              >Choose a time</UiButton\n            >\n          </UiCardFooter>\n        </UiCard>\n      </aside>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Service = { id: string; name: string; blurb: string; minutes: number; price: number };\n  type Person = { id: string; name: string; role: string; avatar?: number };\n  type AddOn = { id: string; name: string; minutes: number; price: number };\n\n  const props = withDefaults(\n    defineProps<{\n      services?: Service[];\n      team?: Person[];\n      addOns?: AddOn[];\n    }>(),\n    {\n      services: () => [\n        {\n          id: \"cut\",\n          name: \"Haircut and style\",\n          blurb: \"Consultation, wash, cut and blow dry.\",\n          minutes: 45,\n          price: 55,\n        },\n        {\n          id: \"color\",\n          name: \"Color and gloss\",\n          blurb: \"Full color with a gloss finish and a treatment.\",\n          minutes: 120,\n          price: 140,\n        },\n        {\n          id: \"beard\",\n          name: \"Beard trim\",\n          blurb: \"Shape, trim and a hot towel finish.\",\n          minutes: 20,\n          price: 25,\n        },\n        {\n          id: \"kids\",\n          name: \"Kids cut\",\n          blurb: \"For ages twelve and under.\",\n          minutes: 30,\n          price: 30,\n        },\n      ],\n      team: () => [\n        { id: \"any\", name: \"Any available\", role: \"The first free stylist\" },\n        { id: \"maya\", name: \"Maya Patel\", role: \"Senior stylist\", avatar: 32 },\n        { id: \"leo\", name: \"Leo Fischer\", role: \"Barber\", avatar: 12 },\n        { id: \"sofia\", name: \"Sofia Alvarez\", role: \"Color specialist\", avatar: 45 },\n      ],\n      addOns: () => [\n        { id: \"scalp\", name: \"Scalp massage\", minutes: 10, price: 15 },\n        { id: \"mask\", name: \"Deep conditioning mask\", minutes: 15, price: 20 },\n      ],\n    }\n  );\n\n  const serviceId = ref(props.services[0]?.id ?? \"\");\n  const staffId = ref(props.team[0]?.id ?? \"\");\n  const picked = ref<string[]>([]);\n\n  const selected = computed(\n    () => props.services.find((item) => item.id === serviceId.value) ?? props.services[0]!\n  );\n  const staff = computed(\n    () => props.team.find((item) => item.id === staffId.value) ?? props.team[0]!\n  );\n  const chosenAddOns = computed(() =>\n    props.addOns.filter((item) => picked.value.includes(item.id))\n  );\n  const totalMinutes = computed(\n    () => selected.value.minutes + chosenAddOns.value.reduce((sum, item) => sum + item.minutes, 0)\n  );\n  const total = computed(\n    () => selected.value.price + chosenAddOns.value.reduce((sum, item) => sum + item.price, 0)\n  );\n\n  const money = (value: number) => `$${value}`;\n\n  function toggle(id: string) {\n    picked.value = picked.value.includes(id)\n      ? picked.value.filter((item) => item !== id)\n      : [...picked.value, id];\n  }\n</script>\n","category":"Booking","description":"Service selection with staff and add ons. Features: Radio cards for each service with duration and price, a choice of staff member with an any available option, optional add ons that change the total and a sticky summary with the total time and price","path":"Calendar/Booking/BlockBooking2.vue","components":["avatar","button","card","checkbox","container","label","radio-group","separator"]},{"name":"Booking 3","fileName":"BlockBooking3.vue","file":"<template>\n  <!--\n    Appointment details form\n    Features: Name, email, phone and notes fields with inline validation, a reminder choice, terms checkbox, a booking summary card beside the form and a success state after you submit\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-4xl gap-8 md:grid-cols-[1fr_18rem]\">\n      <section v-if=\"!done\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Your details</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          We use these to send your confirmation and any changes.\n        </p>\n        <form class=\"mt-6 space-y-5\" novalidate @submit.prevent=\"submit\">\n          <div class=\"grid gap-5 sm:grid-cols-2\">\n            <div class=\"space-y-2\">\n              <UiLabel for=\"booking-name\">Full name</UiLabel>\n              <UiInput\n                id=\"booking-name\"\n                v-model=\"form.name\"\n                autocomplete=\"name\"\n                :aria-invalid=\"!!errors.name\"\n                :aria-describedby=\"errors.name ? 'booking-name-error' : undefined\"\n              />\n              <p v-if=\"errors.name\" id=\"booking-name-error\" class=\"text-destructive text-sm\">\n                {{ errors.name }}\n              </p>\n            </div>\n            <div class=\"space-y-2\">\n              <UiLabel for=\"booking-phone\">Phone (optional)</UiLabel>\n              <UiInput id=\"booking-phone\" v-model=\"form.phone\" type=\"tel\" autocomplete=\"tel\" />\n            </div>\n          </div>\n          <div class=\"space-y-2\">\n            <UiLabel for=\"booking-email\">Email</UiLabel>\n            <UiInput\n              id=\"booking-email\"\n              v-model=\"form.email\"\n              type=\"email\"\n              autocomplete=\"email\"\n              :aria-invalid=\"!!errors.email\"\n              :aria-describedby=\"errors.email ? 'booking-email-error' : undefined\"\n            />\n            <p v-if=\"errors.email\" id=\"booking-email-error\" class=\"text-destructive text-sm\">\n              {{ errors.email }}\n            </p>\n          </div>\n          <div class=\"space-y-2\">\n            <UiLabel for=\"booking-notes\">Anything we should know?</UiLabel>\n            <UiTextarea\n              id=\"booking-notes\"\n              v-model=\"form.notes\"\n              :rows=\"4\"\n              placeholder=\"Allergies, access needs or questions\"\n            />\n          </div>\n          <div class=\"space-y-2\">\n            <UiLabel for=\"booking-reminder\">Reminder</UiLabel>\n            <UiSelect v-model=\"form.reminder\">\n              <UiSelectTrigger id=\"booking-reminder\"><UiSelectValue /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem value=\"none\">No reminder</UiSelectItem>\n                <UiSelectItem value=\"1d\">One day before</UiSelectItem>\n                <UiSelectItem value=\"2h\">Two hours before</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n          <div>\n            <div class=\"flex items-start gap-2\">\n              <UiCheckbox id=\"booking-terms\" v-model=\"form.terms\" class=\"mt-0.5\" />\n              <UiLabel for=\"booking-terms\" class=\"font-normal\">\n                I agree to the cancellation policy. Changes are free up to 24 hours before.\n              </UiLabel>\n            </div>\n            <p v-if=\"errors.terms\" class=\"text-destructive mt-1.5 text-sm\">{{ errors.terms }}</p>\n          </div>\n          <UiButton type=\"submit\" class=\"w-full sm:w-auto\" :disabled=\"sending\">\n            <Icon v-if=\"sending\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n            {{ sending ? \"Booking\" : \"Confirm booking\" }}\n          </UiButton>\n        </form>\n      </section>\n      <section v-else class=\"rounded-xl border p-8 text-center\" role=\"status\">\n        <span\n          class=\"mx-auto grid size-12 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n          ><Icon name=\"lucide:check\" class=\"size-6\"\n        /></span>\n        <h1 class=\"mt-4 text-2xl font-bold tracking-tight\">You are booked, {{ firstName }}</h1>\n        <p class=\"text-muted-foreground mt-2 text-sm\">\n          A confirmation is on its way to {{ form.email }}.\n        </p>\n        <UiButton variant=\"outline\" class=\"mt-6\" @click=\"reset\">Book another</UiButton>\n      </section>\n\n      <aside>\n        <UiCard class=\"gap-4\">\n          <UiCardHeader><UiCardTitle class=\"text-base\">Summary</UiCardTitle></UiCardHeader>\n          <UiCardContent class=\"space-y-3 text-sm\">\n            <div class=\"flex items-start gap-3\">\n              <Icon name=\"lucide:scissors\" class=\"text-muted-foreground mt-0.5 size-4\" />\n              <div>\n                <p class=\"font-medium\">{{ summary.service }}</p>\n                <p class=\"text-muted-foreground\">{{ summary.minutes }} min, {{ summary.price }}</p>\n              </div>\n            </div>\n            <div class=\"flex items-start gap-3\">\n              <Icon name=\"lucide:calendar\" class=\"text-muted-foreground mt-0.5 size-4\" />\n              <div>\n                <p class=\"font-medium\">{{ summary.date }}</p>\n                <p class=\"text-muted-foreground\">{{ summary.time }}</p>\n              </div>\n            </div>\n            <div class=\"flex items-start gap-3\">\n              <Icon name=\"lucide:user\" class=\"text-muted-foreground mt-0.5 size-4\" />\n              <p class=\"font-medium\">{{ summary.staff }}</p>\n            </div>\n            <div class=\"flex items-start gap-3\">\n              <Icon name=\"lucide:map-pin\" class=\"text-muted-foreground mt-0.5 size-4\" />\n              <p class=\"text-muted-foreground\">{{ summary.place }}</p>\n            </div>\n          </UiCardContent>\n        </UiCard>\n      </aside>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Summary = {\n    service: string;\n    minutes: number;\n    price: string;\n    date: string;\n    time: string;\n    staff: string;\n    place: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      summary?: Summary;\n    }>(),\n    {\n      summary: () => ({\n        service: \"Haircut and style\",\n        minutes: 45,\n        price: \"$55\",\n        date: \"Monday, October 19\",\n        time: \"10:30 AM to 11:15 AM\",\n        staff: \"Maya Patel\",\n        place: \"21 Linden Street, Brooklyn\",\n      }),\n    }\n  );\n\n  const form = reactive({\n    name: \"\",\n    email: \"\",\n    phone: \"\",\n    notes: \"\",\n    reminder: \"1d\",\n    terms: false as boolean | \"indeterminate\",\n  });\n  const errors = reactive({ name: \"\", email: \"\", terms: \"\" });\n  const sending = ref(false);\n  const done = ref(false);\n\n  const firstName = computed(() => form.name.trim().split(\" \")[0] || \"friend\");\n\n  function validate() {\n    errors.name = form.name.trim() ? \"\" : \"Enter your name.\";\n    errors.email = /^\\S+@\\S+\\.\\S+$/.test(form.email) ? \"\" : \"Enter a valid email address.\";\n    errors.terms = form.terms === true ? \"\" : \"Please accept the policy to continue.\";\n    return !errors.name && !errors.email && !errors.terms;\n  }\n\n  function submit() {\n    if (!validate()) return;\n    sending.value = true;\n    setTimeout(() => {\n      sending.value = false;\n      done.value = true;\n    }, 700);\n  }\n\n  function reset() {\n    Object.assign(form, {\n      name: \"\",\n      email: \"\",\n      phone: \"\",\n      notes: \"\",\n      reminder: \"1d\",\n      terms: false,\n    });\n    done.value = false;\n  }\n</script>\n","category":"Booking","description":"Appointment details form. Features: Name, email, phone and notes fields with inline validation, a reminder choice, terms checkbox, a booking summary card beside the form and a success state after you submit","path":"Calendar/Booking/BlockBooking3.vue","components":["button","card","checkbox","container","input","label","select","textarea"]},{"name":"Booking 4","fileName":"BlockBooking4.vue","file":"<template>\n  <!--\n    Booking confirmation\n    Features: Success header with a check mark, appointment details, add to calendar links with a downloadable calendar file, copy details button, reschedule and cancel links and a what to bring list\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl text-center\">\n      <span\n        class=\"mx-auto grid size-14 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n        ><Icon name=\"lucide:check\" class=\"size-7\"\n      /></span>\n      <h1 class=\"mt-4 text-3xl font-bold tracking-tight\">{{ title }}</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        We sent the details to <span class=\"text-foreground font-medium\">{{ booking.email }}</span>.\n        Your reference is\n        <span class=\"text-foreground font-mono font-medium\">{{ booking.reference }}</span>.\n      </p>\n    </div>\n\n    <UiCard class=\"mx-auto mt-8 w-full max-w-xl gap-0 py-0\">\n      <dl class=\"divide-y text-sm\">\n        <div v-for=\"row in rows\" :key=\"row.label\" class=\"flex items-start gap-4 px-6 py-4\">\n          <dt class=\"text-muted-foreground flex w-28 shrink-0 items-center gap-2\">\n            <Icon :name=\"row.icon\" class=\"size-4\" />{{ row.label }}\n          </dt>\n          <dd class=\"flex-1 font-medium\">{{ row.value }}</dd>\n        </div>\n      </dl>\n      <div class=\"flex flex-wrap gap-2 border-t px-6 py-4\">\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"openGoogle\"\n          ><Icon name=\"logos:google-calendar\" class=\"size-4\" />Google</UiButton\n        >\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"download\"\n          ><Icon name=\"lucide:download\" class=\"size-4\" />Calendar file</UiButton\n        >\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"copyDetails\"\n          ><Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />{{\n            copied ? \"Copied\" : \"Copy details\"\n          }}</UiButton\n        >\n      </div>\n    </UiCard>\n\n    <div class=\"mx-auto mt-6 grid max-w-xl gap-6 sm:grid-cols-2\">\n      <section>\n        <h2 class=\"text-sm font-semibold\">What to bring</h2>\n        <ul class=\"text-muted-foreground mt-2 space-y-1.5 text-sm\">\n          <li v-for=\"item in bring\" :key=\"item\" class=\"flex items-start gap-2\">\n            <Icon name=\"lucide:circle-check\" class=\"mt-0.5 size-4 shrink-0\" />{{ item }}\n          </li>\n        </ul>\n      </section>\n      <section>\n        <h2 class=\"text-sm font-semibold\">Need to change something?</h2>\n        <p class=\"text-muted-foreground mt-2 text-sm\">Changes are free up to 24 hours before.</p>\n        <div class=\"mt-3 flex gap-2\">\n          <UiButton\n            variant=\"outline\"\n            size=\"sm\"\n            @click=\"useSonner.info('Open the reschedule page here')\"\n            >Reschedule</UiButton\n          >\n          <UiButton variant=\"ghost\" size=\"sm\" @click=\"useSonner.info('Open the cancel page here')\"\n            >Cancel</UiButton\n          >\n        </div>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Booking = {\n    reference: string;\n    email: string;\n    service: string;\n    staff: string;\n    place: string;\n    /** Start as `YYYY-MM-DDTHH:mm`, in the place's local time. */\n    start: string;\n    minutes: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      booking?: Booking;\n      bring?: string[];\n    }>(),\n    {\n      title: \"You are all booked\",\n      booking: () => ({\n        reference: \"BK-48213\",\n        email: \"alex@example.com\",\n        service: \"Haircut and style\",\n        staff: \"Maya Patel\",\n        place: \"21 Linden Street, Brooklyn\",\n        start: \"2026-10-19T10:30\",\n        minutes: 45,\n      }),\n      bring: () => [\"Photos of styles you like\", \"Arrive five minutes early\", \"A form of payment\"],\n    }\n  );\n\n  const parse = (value: string) => new Date(`${value}:00Z`);\n  const end = computed(\n    () => new Date(parse(props.booking.start).getTime() + props.booking.minutes * 60_000)\n  );\n  const stamp = (date: Date) => date.toISOString().replace(/[-:]/g, \"\").slice(0, 15);\n\n  const rows = computed(() => {\n    const start = parse(props.booking.start);\n    const time = (date: Date) =>\n      date.toLocaleTimeString(\"en-US\", { hour: \"numeric\", minute: \"2-digit\", timeZone: \"UTC\" });\n    return [\n      { label: \"Service\", icon: \"lucide:scissors\", value: props.booking.service },\n      {\n        label: \"When\",\n        icon: \"lucide:calendar\",\n        value: `${start.toLocaleDateString(\"en-US\", { weekday: \"long\", month: \"long\", day: \"numeric\", timeZone: \"UTC\" })}, ${time(start)} to ${time(end.value)}`,\n      },\n      { label: \"With\", icon: \"lucide:user\", value: props.booking.staff },\n      { label: \"Where\", icon: \"lucide:map-pin\", value: props.booking.place },\n    ];\n  });\n\n  const googleLink = computed(\n    () =>\n      `https://calendar.google.com/calendar/render?action=TEMPLATE&text=${encodeURIComponent(props.booking.service)}&dates=${stamp(parse(props.booking.start))}/${stamp(end.value)}&location=${encodeURIComponent(props.booking.place)}`\n  );\n\n  const { copy, copied } = useClipboard({ copiedDuring: 2000 });\n\n  function openGoogle() {\n    window.open(googleLink.value, \"_blank\", \"noopener\");\n  }\n\n  function copyDetails() {\n    copy(rows.value.map((row) => `${row.label}: ${row.value}`).join(\"\\n\"));\n  }\n\n  function download() {\n    const lines = [\n      \"BEGIN:VCALENDAR\",\n      \"VERSION:2.0\",\n      \"BEGIN:VEVENT\",\n      `UID:${props.booking.reference}@example.com`,\n      `DTSTART:${stamp(parse(props.booking.start))}`,\n      `DTEND:${stamp(end.value)}`,\n      `SUMMARY:${props.booking.service}`,\n      `LOCATION:${props.booking.place}`,\n      \"END:VEVENT\",\n      \"END:VCALENDAR\",\n    ];\n    const url = URL.createObjectURL(new Blob([lines.join(\"\\r\\n\")], { type: \"text/calendar\" }));\n    const link = document.createElement(\"a\");\n    link.href = url;\n    link.download = `${props.booking.reference}.ics`;\n    link.click();\n    URL.revokeObjectURL(url);\n  }\n</script>\n","category":"Booking","description":"Booking confirmation. Features: Success header with a check mark, appointment details, add to calendar links with a downloadable calendar file, copy details button, reschedule and cancel links and a what to bring list","path":"Calendar/Booking/BlockBooking4.vue","components":["button","card","container"]},{"name":"Booking 5","fileName":"BlockBooking5.vue","file":"<template>\n  <!--\n    Reschedule or cancel a booking\n    Features: Current booking summary, tabs for reschedule and cancel, a day and time picker with confirm, a cancellation policy that depends on how close the appointment is, a reason select and a confirmation dialog before cancelling\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Manage your booking</h1>\n\n      <UiCard class=\"mt-6 gap-0 py-0\">\n        <div class=\"flex items-start gap-4 p-5\" aria-live=\"polite\">\n          <span class=\"bg-muted grid size-12 shrink-0 place-items-center rounded-lg\"\n            ><Icon name=\"lucide:calendar-clock\" class=\"size-5\"\n          /></span>\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"font-semibold\">{{ booking.service }}</p>\n            <p class=\"text-muted-foreground text-sm\">\n              <template v-if=\"status !== 'cancelled'\"\n                >{{ longDate(current.date) }}, {{ clock(current.time) }}</template\n              >\n              <template v-else>This appointment was cancelled.</template>\n            </p>\n            <p class=\"text-muted-foreground text-sm\">With {{ booking.staff }}</p>\n          </div>\n          <UiBadge\n            variant=\"soft\"\n            shape=\"pill\"\n            :color=\"status === 'cancelled' ? 'red' : status === 'rescheduled' ? 'amber' : 'green'\"\n            >{{\n              status === \"cancelled\"\n                ? \"Cancelled\"\n                : status === \"rescheduled\"\n                  ? \"Rescheduled\"\n                  : \"Confirmed\"\n            }}</UiBadge\n          >\n        </div>\n      </UiCard>\n\n      <div\n        v-if=\"status === 'cancelled'\"\n        class=\"mt-6 rounded-xl border border-dashed p-8 text-center\"\n      >\n        <p class=\"font-medium\">Your booking is cancelled.</p>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          We sent a confirmation to {{ booking.email }}.\n        </p>\n        <UiButton variant=\"outline\" class=\"mt-4\" @click=\"rebook\">Book again</UiButton>\n      </div>\n\n      <UiTabs v-else v-model=\"tab\" class=\"mt-6\">\n        <UiTabsList class=\"grid w-full grid-cols-2\">\n          <UiTabsTrigger value=\"reschedule\">Reschedule</UiTabsTrigger>\n          <UiTabsTrigger value=\"cancel\">Cancel</UiTabsTrigger>\n        </UiTabsList>\n\n        <UiTabsContent value=\"reschedule\" class=\"space-y-5\">\n          <div>\n            <p class=\"mb-2 text-sm font-medium\">Pick a new day</p>\n            <div class=\"flex flex-wrap gap-2\" role=\"group\" aria-label=\"Days\">\n              <UiButton\n                v-for=\"day in days\"\n                :key=\"day\"\n                size=\"sm\"\n                :variant=\"day === newDate ? 'default' : 'outline'\"\n                :aria-pressed=\"day === newDate\"\n                @click=\"chooseDay(day)\"\n                >{{ shortDate(day) }}</UiButton\n              >\n            </div>\n          </div>\n          <div v-if=\"newDate\">\n            <p class=\"mb-2 text-sm font-medium\">Pick a new time</p>\n            <div class=\"grid grid-cols-2 gap-2 sm:grid-cols-4\" role=\"group\" aria-label=\"Times\">\n              <UiButton\n                v-for=\"time in slots[newDate] ?? []\"\n                :key=\"time\"\n                size=\"sm\"\n                :variant=\"time === newTime ? 'default' : 'outline'\"\n                :aria-pressed=\"time === newTime\"\n                @click=\"newTime = time\"\n                >{{ clock(time) }}</UiButton\n              >\n            </div>\n          </div>\n          <UiButton :disabled=\"!newTime\" @click=\"reschedule\">Confirm new time</UiButton>\n        </UiTabsContent>\n\n        <UiTabsContent value=\"cancel\" class=\"space-y-5\">\n          <UiAlert\n            :icon=\"late ? 'lucide:triangle-alert' : 'lucide:info'\"\n            :title=\"late ? 'Late cancellation' : 'Free cancellation'\"\n            :description=\"\n              late\n                ? `This appointment starts in under ${booking.freeHours} hours, so a ${booking.fee} fee may apply.`\n                : `You can cancel without a fee until ${booking.freeHours} hours before the appointment.`\n            \"\n          />\n          <div class=\"space-y-2\">\n            <UiLabel for=\"cancel-reason\">Reason</UiLabel>\n            <UiSelect v-model=\"reason\">\n              <UiSelectTrigger id=\"cancel-reason\"\n                ><UiSelectValue placeholder=\"Choose a reason\"\n              /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem v-for=\"item in reasons\" :key=\"item\" :value=\"item\">{{\n                  item\n                }}</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n          <div class=\"space-y-2\">\n            <UiLabel for=\"cancel-note\">Note (optional)</UiLabel>\n            <UiTextarea id=\"cancel-note\" v-model=\"note\" :rows=\"3\" />\n          </div>\n          <UiAlertDialog v-model:open=\"confirmOpen\">\n            <UiAlertDialogTrigger as-child>\n              <UiButton variant=\"destructive\" :disabled=\"!reason\">Cancel booking</UiButton>\n            </UiAlertDialogTrigger>\n            <UiAlertDialogContent>\n              <UiAlertDialogHeader>\n                <UiAlertDialogTitle>Cancel this booking?</UiAlertDialogTitle>\n                <UiAlertDialogDescription>\n                  Your {{ booking.service }} on {{ longDate(current.date) }} will be released for\n                  someone else.\n                </UiAlertDialogDescription>\n              </UiAlertDialogHeader>\n              <UiAlertDialogFooter>\n                <UiAlertDialogCancel>Keep booking</UiAlertDialogCancel>\n                <UiAlertDialogAction\n                  class=\"bg-destructive hover:bg-destructive/90 text-white\"\n                  @click=\"cancel\"\n                  >Yes, cancel</UiAlertDialogAction\n                >\n              </UiAlertDialogFooter>\n            </UiAlertDialogContent>\n          </UiAlertDialog>\n        </UiTabsContent>\n      </UiTabs>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Booking = {\n    service: string;\n    staff: string;\n    email: string;\n    date: string;\n    time: string;\n    freeHours: number;\n    fee: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      /** The current moment as `YYYY-MM-DDTHH:mm`. Pass the real time in your own app. */\n      now?: string;\n      booking?: Booking;\n      /** Open times keyed by ISO date. */\n      slots?: Record<string, string[]>;\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      booking: () => ({\n        service: \"Haircut and style\",\n        staff: \"Maya Patel\",\n        email: \"alex@example.com\",\n        date: \"2026-10-19\",\n        time: \"10:30\",\n        freeHours: 24,\n        fee: \"$20\",\n      }),\n      slots: () => ({\n        \"2026-10-20\": [\"09:00\", \"10:30\", \"13:00\", \"15:30\"],\n        \"2026-10-21\": [\"11:00\", \"14:00\", \"16:00\"],\n        \"2026-10-22\": [\"09:30\", \"10:30\", \"13:30\", \"14:30\", \"16:30\"],\n        \"2026-10-23\": [\"10:00\", \"12:00\"],\n      }),\n    }\n  );\n\n  const reasons = [\n    \"Schedule conflict\",\n    \"Found another provider\",\n    \"No longer needed\",\n    \"Illness\",\n    \"Other\",\n  ];\n\n  const tab = ref(\"reschedule\");\n  const status = ref<\"confirmed\" | \"rescheduled\" | \"cancelled\">(\"confirmed\");\n  const current = ref({ date: props.booking.date, time: props.booking.time });\n  const newDate = ref(\"\");\n  const newTime = ref(\"\");\n  const reason = ref(\"\");\n  const note = ref(\"\");\n  const confirmOpen = ref(false);\n\n  const days = computed(() => Object.keys(props.slots));\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n  const longDate = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  const shortDate = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", {\n      weekday: \"short\",\n      month: \"short\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n\n  const hoursAway = computed(\n    () =>\n      (new Date(`${current.value.date}T${current.value.time}:00Z`).getTime() -\n        new Date(`${props.now}:00Z`).getTime()) /\n      3_600_000\n  );\n  const late = computed(() => hoursAway.value < props.booking.freeHours);\n\n  function chooseDay(day: string) {\n    newDate.value = day;\n    newTime.value = \"\";\n  }\n\n  function reschedule() {\n    current.value = { date: newDate.value, time: newTime.value };\n    status.value = \"rescheduled\";\n    newDate.value = \"\";\n    newTime.value = \"\";\n    useSonner.success(\"Booking rescheduled\", {\n      description: `${longDate(current.value.date)} at ${clock(current.value.time)}`,\n    });\n  }\n\n  function cancel() {\n    status.value = \"cancelled\";\n    confirmOpen.value = false;\n    useSonner.success(\"Booking cancelled\");\n  }\n\n  function rebook() {\n    status.value = \"confirmed\";\n    current.value = { date: props.booking.date, time: props.booking.time };\n    reason.value = \"\";\n    note.value = \"\";\n    tab.value = \"reschedule\";\n  }\n</script>\n","category":"Booking","description":"Reschedule or cancel a booking. Features: Current booking summary, tabs for reschedule and cancel, a day and time picker with confirm, a cancellation policy that depends on how close the appointment is, a reason select and a confirmation dialog before cancelling","path":"Calendar/Booking/BlockBooking5.vue","components":["alert","alert-dialog","badge","button","card","container","label","select","tabs","textarea"]},{"name":"Booking 6","fileName":"BlockBooking6.vue","file":"<template>\n  <!--\n    Time zone aware slot picker\n    Features: Time zone select, slots converted live and grouped by local date so a late slot can land on the next day, a 12 or 24 hour switch and the host time shown beside the chosen slot\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Pick a time</h1>\n      <p class=\"text-muted-foreground mt-1 text-sm\">\n        {{ hostName }} is in {{ hostZoneLabel }}. Times are shown in your time zone.\n      </p>\n\n      <div class=\"mt-6 grid gap-4 sm:grid-cols-[1fr_auto] sm:items-end\">\n        <div class=\"space-y-2\">\n          <UiLabel for=\"zone-select\">Your time zone</UiLabel>\n          <UiSelect v-model=\"zone\">\n            <UiSelectTrigger id=\"zone-select\"><UiSelectValue /></UiSelectTrigger>\n            <UiSelectContent>\n              <UiSelectItem v-for=\"item in zones\" :key=\"item.id\" :value=\"item.id\">{{\n                item.label\n              }}</UiSelectItem>\n            </UiSelectContent>\n          </UiSelect>\n        </div>\n        <UiToggleGroup\n          :model-value=\"hour24 ? '24' : '12'\"\n          type=\"single\"\n          variant=\"outline\"\n          aria-label=\"Clock format\"\n          @update:model-value=\"(value) => value && (hour24 = value === '24')\"\n        >\n          <UiToggleGroupItem value=\"12\">12h</UiToggleGroupItem>\n          <UiToggleGroupItem value=\"24\">24h</UiToggleGroupItem>\n        </UiToggleGroup>\n      </div>\n\n      <div class=\"mt-6 space-y-6\" aria-live=\"polite\">\n        <section v-for=\"group in groups\" :key=\"group.date\">\n          <h2 class=\"text-sm font-semibold\">{{ group.label }}</h2>\n          <div\n            class=\"mt-2 grid grid-cols-3 gap-2 sm:grid-cols-4\"\n            role=\"group\"\n            :aria-label=\"group.label\"\n          >\n            <UiButton\n              v-for=\"slot in group.slots\"\n              :key=\"slot.iso\"\n              size=\"sm\"\n              :variant=\"chosen === slot.iso ? 'default' : 'outline'\"\n              :aria-pressed=\"chosen === slot.iso\"\n              @click=\"chosen = slot.iso\"\n              >{{ slot.time }}</UiButton\n            >\n          </div>\n        </section>\n      </div>\n\n      <div v-if=\"chosenSlot\" class=\"mt-6 rounded-xl border p-4 text-sm\" role=\"status\">\n        <p class=\"font-medium\">{{ chosenSlot.local }}</p>\n        <p class=\"text-muted-foreground mt-0.5\">{{ chosenSlot.host }} for {{ hostName }}</p>\n        <UiButton class=\"mt-3\" size=\"sm\" @click=\"useSonner.success(`Booked ${chosenSlot.local}`)\"\n          >Confirm</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Zone = { id: string; label: string };\n\n  const props = withDefaults(\n    defineProps<{\n      hostName?: string;\n      hostZone?: string;\n      hostZoneLabel?: string;\n      /** Slots as UTC instants, for example `2026-10-19T13:00:00Z`. */\n      slots?: string[];\n      zones?: Zone[];\n    }>(),\n    {\n      hostName: \"Maya\",\n      hostZone: \"America/New_York\",\n      hostZoneLabel: \"New York\",\n      slots: () => [\n        \"2026-10-19T13:00:00Z\",\n        \"2026-10-19T14:30:00Z\",\n        \"2026-10-19T16:00:00Z\",\n        \"2026-10-19T18:00:00Z\",\n        \"2026-10-19T20:00:00Z\",\n        \"2026-10-20T13:00:00Z\",\n        \"2026-10-20T15:00:00Z\",\n        \"2026-10-20T17:30:00Z\",\n      ],\n      zones: () => [\n        { id: \"America/Los_Angeles\", label: \"Los Angeles (Pacific)\" },\n        { id: \"America/New_York\", label: \"New York (Eastern)\" },\n        { id: \"Europe/London\", label: \"London (GMT/BST)\" },\n        { id: \"Europe/Berlin\", label: \"Berlin (Central European)\" },\n        { id: \"Asia/Dubai\", label: \"Dubai (Gulf)\" },\n        { id: \"Asia/Singapore\", label: \"Singapore\" },\n        { id: \"Australia/Sydney\", label: \"Sydney (Eastern Australia)\" },\n      ],\n    }\n  );\n\n  const zone = ref(props.hostZone);\n  const hour24 = ref(false);\n  const chosen = ref(\"\");\n\n  const time = (iso: string, timeZone: string) =>\n    new Date(iso).toLocaleTimeString(\"en-US\", {\n      hour: \"numeric\",\n      minute: \"2-digit\",\n      hour12: !hour24.value,\n      timeZone,\n    });\n  const day = (iso: string, timeZone: string, style: \"short\" | \"long\" = \"long\") =>\n    new Date(iso).toLocaleDateString(\"en-US\", {\n      weekday: style,\n      month: style === \"long\" ? \"long\" : \"short\",\n      day: \"numeric\",\n      timeZone,\n    });\n\n  const groups = computed(() => {\n    const byDay = new Map<\n      string,\n      { date: string; label: string; slots: { iso: string; time: string }[] }\n    >();\n    for (const iso of props.slots) {\n      const label = day(iso, zone.value);\n      const group = byDay.get(label) ?? { date: label, label, slots: [] };\n      group.slots.push({ iso, time: time(iso, zone.value) });\n      byDay.set(label, group);\n    }\n    return [...byDay.values()];\n  });\n\n  const chosenSlot = computed(() =>\n    chosen.value\n      ? {\n          local: `${day(chosen.value, zone.value, \"short\")}, ${time(chosen.value, zone.value)}`,\n          host: `${day(chosen.value, props.hostZone, \"short\")}, ${time(chosen.value, props.hostZone)}`,\n        }\n      : null\n  );\n</script>\n","category":"Booking","description":"Time zone aware slot picker. Features: Time zone select, slots converted live and grouped by local date so a late slot can land on the next day, a 12 or 24 hour switch and the host time shown beside the chosen slot","path":"Calendar/Booking/BlockBooking6.vue","components":["button","container","label","select","toggle-group"]},{"name":"Career 1","fileName":"BlockCareer1.vue","file":"<template>\n  <!-- \n    Simple centered career listing\n    Features: Centered header, clean job list with badges, location and employment type\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-16\">\n      <UiContainer class=\"py-16 text-center lg:py-24\">\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n        >\n          Open positions\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n        >\n          We're a 100% remote team spread all across the world. Join us!\n        </Motion>\n      </UiContainer>\n\n      <ul class=\"mx-auto flex max-w-[768px] flex-col gap-8\">\n        <Motion\n          v-for=\"n in 4\"\n          :key=\"n\"\n          :variants=\"childVariant\"\n          :transition=\"{\n            delay: n * 0.05,\n          }\"\n          as=\"li\"\n          class=\"group hover:border-primary/50 border-t pt-6 transition-colors\"\n        >\n          <div class=\"flex flex-wrap items-center gap-2\">\n            <span class=\"group-hover:text-primary text-lg font-semibold transition-colors\"\n              >Product Designer</span\n            >\n            <UiBadge class=\"text-sm font-medium\" variant=\"outline\">Design</UiBadge>\n          </div>\n          <p class=\"text-muted-foreground mt-2\">\n            We're looking for a mid-level product designer to join our team.\n          </p>\n          <ul class=\"mt-5 flex flex-wrap items-center gap-5\">\n            <li class=\"text-muted-foreground flex items-center gap-2\">\n              <Icon class=\"opacity-80\" name=\"heroicons:map-pin\" /> Remote\n            </li>\n            <li class=\"text-muted-foreground flex items-center gap-2\">\n              <Icon class=\"opacity-80\" name=\"heroicons:clock\" /> Full-time\n            </li>\n            <li class=\"md:ml-auto\">\n              <UiButton\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"group-hover:bg-primary group-hover:text-primary-foreground hover:bg-primary/90\"\n              >\n                View details\n                <Icon\n                  name=\"lucide:arrow-right\"\n                  class=\"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1\"\n                />\n              </UiButton>\n            </li>\n          </ul>\n        </Motion>\n      </ul>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n","category":"Career","description":"Simple centered career listing. Features: Centered header, clean job list with badges, location and employment type","path":"Career/BlockCareer1.vue","components":["badge","button","container"]},{"name":"Career 10","fileName":"BlockCareer10.vue","file":"<template>\n  <!--\n    Hiring process and perks\n    Features: Interactive step list with detail panel and timing, progress indicator, perks grid, closing CTA\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"max-w-2xl\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">How hiring works</h2>\n        <p class=\"text-muted-foreground mt-3 text-lg\">\n          Four steps, about three weeks from first chat to offer. You always know where you stand.\n        </p>\n      </div>\n\n      <div class=\"mt-10 grid gap-6 md:grid-cols-[18rem_1fr]\">\n        <ol class=\"grid gap-2\" aria-label=\"Hiring steps\">\n          <li v-for=\"(step, index) in steps\" :key=\"step.title\">\n            <button\n              type=\"button\"\n              class=\"hover:bg-muted/60 focus-visible:ring-ring/50 flex w-full items-center gap-3 rounded-lg border p-3 text-left transition-colors outline-none focus-visible:ring-[3px]\"\n              :class=\"index === current ? 'border-primary bg-muted/60' : ''\"\n              :aria-current=\"index === current ? 'step' : undefined\"\n              @click=\"current = index\"\n            >\n              <span\n                class=\"grid size-8 shrink-0 place-items-center rounded-full text-sm font-semibold\"\n                :class=\"\n                  index <= current\n                    ? 'bg-primary text-primary-foreground'\n                    : 'bg-muted text-muted-foreground'\n                \"\n                >{{ index + 1 }}</span\n              >\n              <span class=\"min-w-0\">\n                <span class=\"block font-medium\">{{ step.title }}</span>\n                <span class=\"text-muted-foreground block text-xs\">{{ step.duration }}</span>\n              </span>\n            </button>\n          </li>\n        </ol>\n\n        <UiCard class=\"gap-4\" aria-live=\"polite\">\n          <UiCardHeader>\n            <p class=\"text-muted-foreground text-sm\">\n              Step {{ current + 1 }} of {{ steps.length }}\n            </p>\n            <UiCardTitle class=\"text-2xl\">{{ steps[current]!.title }}</UiCardTitle>\n            <UiCardDescription>{{ steps[current]!.summary }}</UiCardDescription>\n          </UiCardHeader>\n          <UiCardContent class=\"space-y-5\">\n            <UiProgress :model-value=\"((current + 1) / steps.length) * 100\" aria-label=\"Progress\" />\n            <ul class=\"space-y-2\">\n              <li\n                v-for=\"point in steps[current]!.points\"\n                :key=\"point\"\n                class=\"text-muted-foreground flex gap-3 text-sm\"\n              >\n                <Icon name=\"lucide:circle-check\" class=\"text-primary mt-0.5 size-4 shrink-0\" />\n                <span>{{ point }}</span>\n              </li>\n            </ul>\n            <div class=\"flex flex-wrap gap-2\">\n              <UiButton\n                variant=\"outline\"\n                size=\"sm\"\n                :disabled=\"current === 0\"\n                @click=\"current = Math.max(0, current - 1)\"\n              >\n                <Icon name=\"lucide:arrow-left\" class=\"size-4\" />Previous step\n              </UiButton>\n              <UiButton\n                size=\"sm\"\n                :disabled=\"current === steps.length - 1\"\n                @click=\"current = Math.min(steps.length - 1, current + 1)\"\n              >\n                Next step<Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n              </UiButton>\n            </div>\n          </UiCardContent>\n        </UiCard>\n      </div>\n\n      <div class=\"mt-16\">\n        <h3 class=\"text-xl font-semibold\">What you get</h3>\n        <ul class=\"mt-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-4\">\n          <li v-for=\"perk in perks\" :key=\"perk.title\" class=\"rounded-xl border p-5\">\n            <span class=\"bg-primary/10 text-primary grid size-10 place-items-center rounded-lg\"\n              ><Icon :name=\"perk.icon\" class=\"size-5\"\n            /></span>\n            <p class=\"mt-4 font-medium\">{{ perk.title }}</p>\n            <p class=\"text-muted-foreground mt-1 text-sm\">{{ perk.description }}</p>\n          </li>\n        </ul>\n      </div>\n\n      <div\n        class=\"bg-muted/50 mt-12 flex flex-col items-start justify-between gap-4 rounded-xl p-6 sm:flex-row sm:items-center\"\n      >\n        <div>\n          <p class=\"text-lg font-semibold\">Ready to start?</p>\n          <p class=\"text-muted-foreground text-sm\">Browse every open role and apply in minutes.</p>\n        </div>\n        <UiButton size=\"lg\"\n          >See open roles<Icon name=\"lucide:arrow-right\" class=\"size-4\"\n        /></UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Step = { title: string; duration: string; summary: string; points: string[] };\n  type Perk = { icon: string; title: string; description: string };\n\n  withDefaults(\n    defineProps<{\n      steps?: Step[];\n      perks?: Perk[];\n    }>(),\n    {\n      steps: () => [\n        {\n          title: \"Application review\",\n          duration: \"Within 5 working days\",\n          summary: \"A hiring manager reads every application. No keyword filters.\",\n          points: [\n            \"We read your resume, links and cover note\",\n            \"You hear back either way, with a short reason\",\n            \"Portfolios and open source work count as much as titles\",\n          ],\n        },\n        {\n          title: \"Intro conversation\",\n          duration: \"30 minutes\",\n          summary: \"A relaxed video call to talk about you, the role and how we work.\",\n          points: [\n            \"Meet the hiring manager\",\n            \"Ask anything about pay, team and process\",\n            \"No trick questions or whiteboard puzzles\",\n          ],\n        },\n        {\n          title: \"Practical exercise\",\n          duration: \"2 to 3 hours, paid\",\n          summary: \"A small piece of real work, paid at our contractor rate.\",\n          points: [\n            \"Choose from two briefs close to the real job\",\n            \"Take a week to finish it on your schedule\",\n            \"Walk the team through your thinking in a review call\",\n          ],\n        },\n        {\n          title: \"Team chat and offer\",\n          duration: \"Up to one week\",\n          summary: \"Meet future teammates, then receive a written offer.\",\n          points: [\n            \"Two short conversations with people you would work with\",\n            \"Offer includes salary band, equity and start date\",\n            \"Reference checks only after you say yes\",\n          ],\n        },\n      ],\n      perks: () => [\n        {\n          icon: \"lucide:globe\",\n          title: \"Remote first\",\n          description: \"Work from where you live. We meet in person twice a year.\",\n        },\n        {\n          icon: \"lucide:heart-pulse\",\n          title: \"Health cover\",\n          description: \"Private health, dental and mental health support.\",\n        },\n        {\n          icon: \"lucide:graduation-cap\",\n          title: \"Learning budget\",\n          description: \"$1,500 each year for courses, books and conferences.\",\n        },\n        {\n          icon: \"lucide:baby\",\n          title: \"Family leave\",\n          description: \"20 weeks fully paid for every new parent.\",\n        },\n      ],\n    }\n  );\n\n  const current = ref(0);\n</script>\n","category":"Career","description":"Hiring process and perks. Features: Interactive step list with detail panel and timing, progress indicator, perks grid, closing CTA","path":"Career/BlockCareer10.vue","components":["button","card","container","progress"]},{"name":"Career 2","fileName":"BlockCareer2.vue","file":"<template>\n  <!-- \n    Two-column career section with left header\n    Features: Side-by-side layout, descriptive header, job listings with badges\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"flex flex-col gap-x-16 py-16 lg:flex-row lg:py-24\">\n      <Motion :variants=\"childVariant\" class=\"w-full pb-16 lg:w-1/2 lg:pb-0\">\n        <UiContainer class=\"text-center lg:text-left\">\n          <p class=\"text-primary font-semibold\">We're hiring!</p>\n          <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">Join our team</h2>\n          <p class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:mx-0 lg:text-xl\">\n            Our philosophy is simple — hire a team of diverse, passionate people and foster a\n            culture that empowers you to do your best work.\n          </p>\n        </UiContainer>\n      </Motion>\n\n      <ul class=\"flex w-full flex-col gap-8 lg:w-1/2\">\n        <Motion\n          v-for=\"n in 4\"\n          :key=\"n\"\n          :variants=\"childVariant\"\n          :transition=\"{\n            delay: n * 0.05,\n          }\"\n          as=\"li\"\n          class=\"group hover:border-primary/50 border-t pt-6 transition-colors\"\n        >\n          <div class=\"flex flex-wrap items-center gap-2\">\n            <span class=\"group-hover:text-primary text-lg font-semibold transition-colors\"\n              >Product Designer</span\n            >\n            <UiBadge class=\"text-sm font-medium\" variant=\"outline\">Design</UiBadge>\n          </div>\n          <p class=\"text-muted-foreground mt-2\">\n            We're looking for a mid-level product designer to join our team.\n          </p>\n          <ul class=\"mt-5 flex flex-wrap items-center gap-5\">\n            <li class=\"text-muted-foreground flex items-center gap-2\">\n              <Icon class=\"opacity-80\" name=\"heroicons:map-pin\" /> Remote\n            </li>\n            <li class=\"text-muted-foreground flex items-center gap-2\">\n              <Icon class=\"opacity-80\" name=\"heroicons:clock\" /> Full-time\n            </li>\n            <li class=\"md:ml-auto\">\n              <UiButton\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"group-hover:bg-primary group-hover:text-primary-foreground\"\n              >\n                Apply now\n                <Icon\n                  name=\"lucide:arrow-right\"\n                  class=\"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1\"\n                />\n              </UiButton>\n            </li>\n          </ul>\n        </Motion>\n      </ul>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n","category":"Career","description":"Two-column career section with left header. Features: Side-by-side layout, descriptive header, job listings with badges","path":"Career/BlockCareer2.vue","components":["badge","button","container"]},{"name":"Career 3","fileName":"BlockCareer3.vue","file":"<template>\n  <!-- \n    Career section with image showcase\n    Features: Centered header, job list with team image, visual appeal\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-16\">\n      <UiContainer class=\"py-16 text-center lg:py-24\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary font-semibold\">\n          We're hiring!\n        </Motion>\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n        >\n          Join our team\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[768px] text-lg lg:text-xl\"\n        >\n          Our philosophy is simple — hire a team of diverse, passionate people and foster a culture\n          that empowers you to do your best work.\n        </Motion>\n      </UiContainer>\n      <div class=\"flex flex-col gap-x-16 gap-y-16 lg:flex-row\">\n        <ul class=\"flex w-full flex-col gap-8 lg:w-1/2\">\n          <Motion\n            v-for=\"n in 4\"\n            :key=\"n\"\n            :variants=\"childVariant\"\n            :transition=\"{\n              delay: n * 0.05,\n            }\"\n            as=\"li\"\n            class=\"group hover:border-primary/50 border-t pt-6 transition-colors\"\n          >\n            <div class=\"flex flex-wrap items-center gap-2\">\n              <span class=\"group-hover:text-primary text-lg font-semibold transition-colors\"\n                >Product Designer</span\n              >\n              <UiBadge class=\"text-sm font-medium\" variant=\"outline\">Design</UiBadge>\n            </div>\n            <p class=\"text-muted-foreground mt-2\">\n              We're looking for a mid-level product designer to join our team.\n            </p>\n            <ul class=\"mt-5 flex flex-wrap items-center gap-5\">\n              <li class=\"text-muted-foreground flex items-center gap-2\">\n                <Icon class=\"opacity-80\" name=\"heroicons:map-pin\" /> Remote\n              </li>\n              <li class=\"text-muted-foreground flex items-center gap-2\">\n                <Icon class=\"opacity-80\" name=\"heroicons:clock\" /> Full-time\n              </li>\n              <li class=\"md:ml-auto\">\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  class=\"group-hover:bg-primary group-hover:text-primary-foreground\"\n                >\n                  Learn more\n                  <Icon\n                    name=\"lucide:arrow-right\"\n                    class=\"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1\"\n                  />\n                </UiButton>\n              </li>\n            </ul>\n          </Motion>\n        </ul>\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, x: 30 },\n            animate: {\n              opacity: 1,\n              x: 0,\n              transition: {\n                type: 'spring',\n                stiffness: 200,\n                damping: 25,\n              },\n            },\n          }\"\n          class=\"w-full lg:w-1/2\"\n        >\n          <img\n            src=\"https://images.unsplash.com/photo-1521790797524-b2497295b8a0?q=80&w=2069&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n            alt=\"Careers image\"\n            height=\"650\"\n            width=\"600\"\n            loading=\"lazy\"\n            class=\"h-[250px] w-full rounded-lg object-cover shadow-lg transition-shadow duration-300 hover:shadow-xl lg:h-full\"\n          />\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n","category":"Career","description":"Career section with image showcase. Features: Centered header, job list with team image, visual appeal","path":"Career/BlockCareer3.vue","components":["badge","button","container"]},{"name":"Career 4","fileName":"BlockCareer4.vue","file":"<template>\n  <!-- \n    Card-based career listings with department filtering\n    Features: Department tabs, card layout with hover effects, salary ranges, benefits\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Header -->\n      <div class=\"mb-12 text-center lg:mb-16\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary mb-2 font-semibold\">\n          Careers\n        </Motion>\n        <Motion as=\"h2\" :variants=\"childVariant\" class=\"mb-4 text-4xl font-bold lg:text-5xl\">\n          Find your next role\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-2xl text-lg lg:text-xl\"\n        >\n          Join a team of passionate individuals working on cutting-edge products\n        </Motion>\n      </div>\n\n      <!-- Department filter tabs -->\n      <Motion :variants=\"childVariant\" class=\"mb-12\">\n        <UiTabs default-value=\"all\" class=\"w-full\">\n          <UiTabsList class=\"mx-auto w-full justify-start overflow-x-auto\">\n            <UiTabsTrigger value=\"all\">All positions (12)</UiTabsTrigger>\n            <UiTabsTrigger value=\"engineering\">Engineering (5)</UiTabsTrigger>\n            <UiTabsTrigger value=\"design\">Design (3)</UiTabsTrigger>\n            <UiTabsTrigger value=\"product\">Product (2)</UiTabsTrigger>\n            <UiTabsTrigger value=\"marketing\">Marketing (2)</UiTabsTrigger>\n          </UiTabsList>\n        </UiTabs>\n      </Motion>\n\n      <!-- Job cards grid -->\n      <div class=\"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3\">\n        <Motion\n          v-for=\"n in 6\"\n          :key=\"n\"\n          :variants=\"childVariant\"\n          :transition=\"{\n            delay: n * 0.05,\n          }\"\n        >\n          <UiCard class=\"group hover:border-primary/50 h-full py-0 transition-all hover:shadow-lg\">\n            <UiCardContent class=\"p-6\">\n              <div class=\"mb-4 flex items-start justify-between\">\n                <UiBadge variant=\"secondary\">Design</UiBadge>\n                <UiButton variant=\"ghost\" size=\"icon\" class=\"h-8 w-8\">\n                  <Icon name=\"lucide:bookmark\" class=\"h-4 w-4\" />\n                </UiButton>\n              </div>\n\n              <h3 class=\"group-hover:text-primary mb-2 text-xl font-semibold transition-colors\">\n                Senior Product Designer\n              </h3>\n              <p class=\"text-muted-foreground mb-4 text-sm\">\n                Lead design initiatives for our flagship products and mentor junior designers.\n              </p>\n\n              <div class=\"mb-4 space-y-2 text-sm\">\n                <div class=\"text-muted-foreground flex items-center gap-2\">\n                  <Icon name=\"lucide:map-pin\" class=\"h-4 w-4\" />\n                  Remote · San Francisco, CA\n                </div>\n                <div class=\"text-muted-foreground flex items-center gap-2\">\n                  <Icon name=\"lucide:briefcase\" class=\"h-4 w-4\" />\n                  Full-time · Senior level\n                </div>\n                <div class=\"text-muted-foreground flex items-center gap-2\">\n                  <Icon name=\"lucide:dollar-sign\" class=\"h-4 w-4\" />\n                  $120k - $160k\n                </div>\n              </div>\n\n              <UiDivider class=\"my-4\" />\n\n              <div class=\"flex flex-wrap gap-2\">\n                <UiBadge variant=\"outline\" size=\"sm\">Health insurance</UiBadge>\n                <UiBadge variant=\"outline\" size=\"sm\">401(k)</UiBadge>\n                <UiBadge variant=\"outline\" size=\"sm\">Remote</UiBadge>\n              </div>\n\n              <UiButton class=\"mt-6 w-full\" variant=\"outline\">\n                View details\n                <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n              </UiButton>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n      </div>\n\n      <!-- Load more -->\n      <Motion :variants=\"childVariant\" class=\"mt-12 text-center\">\n        <UiButton size=\"lg\" variant=\"outline\">Load more positions</UiButton>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n","category":"Career","description":"Card-based career listings with department filtering. Features: Department tabs, card layout with hover effects, salary ranges, benefits","path":"Career/BlockCareer4.vue","components":["badge","button","card","container","divider","tabs"]},{"name":"Career 5","fileName":"BlockCareer5.vue","file":"<template>\n  <!-- \n    Minimal career page with search and featured positions\n    Features: Search bar, featured job highlight, clean minimal design\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Header with search -->\n      <div class=\"mx-auto mb-16 max-w-3xl text-center\">\n        <Motion as=\"h1\" :variants=\"childVariant\" class=\"mb-4 text-4xl font-bold lg:text-5xl\">\n          Work with us\n        </Motion>\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground mb-8 text-lg\">\n          Help us build products that millions of people love to use\n        </Motion>\n\n        <Motion :variants=\"childVariant\">\n          <div class=\"relative mx-auto max-w-md\">\n            <UiVeeInput placeholder=\"Search positions...\" icon=\"lucide:search\" />\n          </div>\n        </Motion>\n      </div>\n\n      <!-- Featured position -->\n      <Motion :variants=\"childVariant\" class=\"mb-12\">\n        <UiCard class=\"border-primary/20 bg-primary/5 overflow-hidden border-2 py-0\">\n          <UiCardContent class=\"p-0\">\n            <div class=\"grid grid-cols-1 gap-6 md:grid-cols-12\">\n              <!-- Image -->\n              <div class=\"md:col-span-4\">\n                <img\n                  src=\"https://images.unsplash.com/photo-1600880292203-757bb62b4baf?q=80&w=2070&auto=format&fit=crop\"\n                  alt=\"Featured role\"\n                  class=\"h-full w-full object-cover md:min-h-[300px]\"\n                />\n              </div>\n\n              <!-- Content -->\n              <div class=\"p-6 md:col-span-8 md:flex md:flex-col md:justify-center\">\n                <UiBadge class=\"bg-primary text-primary-foreground mb-3 w-fit\">Featured</UiBadge>\n                <h3 class=\"mb-2 text-2xl font-bold lg:text-3xl\">Head of Engineering</h3>\n                <p class=\"text-muted-foreground mb-4 lg:text-lg\">\n                  Lead our engineering team and shape the future of our technology stack. We're\n                  looking for a visionary leader with deep technical expertise.\n                </p>\n\n                <div class=\"mb-4 flex flex-wrap gap-4 text-sm\">\n                  <span class=\"flex items-center gap-2\">\n                    <Icon name=\"lucide:map-pin\" class=\"text-primary h-4 w-4\" />\n                    San Francisco, CA / Remote\n                  </span>\n                  <span class=\"flex items-center gap-2\">\n                    <Icon name=\"lucide:briefcase\" class=\"text-primary h-4 w-4\" />\n                    Full-time\n                  </span>\n                  <span class=\"flex items-center gap-2\">\n                    <Icon name=\"lucide:dollar-sign\" class=\"text-primary h-4 w-4\" />\n                    $180k - $250k\n                  </span>\n                </div>\n\n                <div class=\"flex flex-wrap gap-3\">\n                  <UiButton>\n                    Apply now\n                    <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n                  </UiButton>\n                  <UiButton variant=\"outline\">Learn more</UiButton>\n                </div>\n              </div>\n            </div>\n          </UiCardContent>\n        </UiCard>\n      </Motion>\n\n      <!-- All positions list -->\n      <Motion :variants=\"childVariant\" class=\"mb-8\">\n        <h2 class=\"text-2xl font-semibold\">All open positions</h2>\n      </Motion>\n\n      <div class=\"space-y-4\">\n        <Motion\n          v-for=\"n in 8\"\n          :key=\"n\"\n          :variants=\"childVariant\"\n          :transition=\"{\n            delay: n * 0.05,\n          }\"\n        >\n          <UiCard class=\"group hover:border-primary/30 transition-all hover:shadow-md\">\n            <UiCardContent class=\"p-6\">\n              <div class=\"flex flex-col gap-4 md:flex-row md:items-center md:justify-between\">\n                <div class=\"flex-1\">\n                  <div class=\"mb-2 flex flex-wrap items-center gap-2\">\n                    <h3 class=\"group-hover:text-primary text-lg font-semibold transition-colors\">\n                      Software Engineer\n                    </h3>\n                    <UiBadge variant=\"outline\" size=\"sm\">Engineering</UiBadge>\n                  </div>\n                  <div class=\"text-muted-foreground flex flex-wrap gap-4 text-sm\">\n                    <span class=\"flex items-center gap-1\">\n                      <Icon name=\"lucide:map-pin\" class=\"h-3.5 w-3.5\" />\n                      Remote\n                    </span>\n                    <span class=\"flex items-center gap-1\">\n                      <Icon name=\"lucide:clock\" class=\"h-3.5 w-3.5\" />\n                      Full-time\n                    </span>\n                    <span class=\"flex items-center gap-1\">\n                      <Icon name=\"lucide:dollar-sign\" class=\"h-3.5 w-3.5\" />\n                      $100k - $140k\n                    </span>\n                  </div>\n                </div>\n\n                <div class=\"flex gap-2\">\n                  <UiButton variant=\"outline\" size=\"sm\"> View details </UiButton>\n                  <UiButton size=\"sm\">Apply</UiButton>\n                </div>\n              </div>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n","category":"Career","description":"Minimal career page with search and featured positions. Features: Search bar, featured job highlight, clean minimal design","path":"Career/BlockCareer5.vue","components":["badge","button","card","container","vee-input"]},{"name":"Career 6","fileName":"BlockCareer6.vue","file":"<template>\n  <!-- \n    Modern career page with team culture showcase\n    Features: Gradient header, team stats, perks highlights, accordion job listings\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <div class=\"py-16 lg:py-24\">\n      <!-- Gradient hero section -->\n      <Motion\n        :variants=\"childVariant\"\n        class=\"from-primary/20 via-primary/10 relative mb-16 overflow-hidden rounded-2xl bg-linear-to-br to-transparent p-8 lg:mb-24 lg:p-16\"\n      >\n        <UiContainer class=\"relative z-10 text-center\">\n          <h1 class=\"mb-4 text-4xl font-bold lg:text-6xl\">Join our mission</h1>\n          <p class=\"text-muted-foreground mx-auto mb-8 max-w-2xl text-lg lg:text-xl\">\n            We're building the future of technology. Come help us make a difference.\n          </p>\n\n          <!-- Team stats -->\n          <div class=\"mx-auto flex max-w-2xl flex-wrap justify-center gap-8 lg:gap-12\">\n            <div class=\"text-center\">\n              <p class=\"text-3xl font-bold lg:text-4xl\">150+</p>\n              <p class=\"text-muted-foreground text-sm\">Team members</p>\n            </div>\n            <UiSeparator orientation=\"vertical\" class=\"hidden h-auto md:block\" />\n            <div class=\"text-center\">\n              <p class=\"text-3xl font-bold lg:text-4xl\">25+</p>\n              <p class=\"text-muted-foreground text-sm\">Countries</p>\n            </div>\n            <UiSeparator orientation=\"vertical\" class=\"hidden h-auto md:block\" />\n            <div class=\"text-center\">\n              <p class=\"text-3xl font-bold lg:text-4xl\">100%</p>\n              <p class=\"text-muted-foreground text-sm\">Remote</p>\n            </div>\n          </div>\n        </UiContainer>\n      </Motion>\n\n      <UiContainer>\n        <!-- Perks section -->\n        <Motion :variants=\"childVariant\" class=\"mb-16\">\n          <h2 class=\"mb-8 text-center text-2xl font-semibold lg:text-3xl\">Why join us?</h2>\n          <div class=\"grid grid-cols-1 gap-6 md:grid-cols-3\">\n            <Motion\n              v-for=\"(perk, index) in perks\"\n              :key=\"perk.title\"\n              :variants=\"{\n                initial: { opacity: 0, y: 20 },\n                animate: {\n                  opacity: 1,\n                  y: 0,\n                  transition: {\n                    delay: index * 0.1,\n                  },\n                },\n              }\"\n            >\n              <UiCard class=\"py-0 text-center\">\n                <UiCardContent class=\"p-6\">\n                  <div\n                    class=\"bg-primary/10 mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full\"\n                  >\n                    <Icon :name=\"perk.icon\" class=\"text-primary h-6 w-6\" />\n                  </div>\n                  <h3 class=\"mb-2 line-clamp-2 font-semibold\">{{ perk.title }}</h3>\n                  <p :title=\"perk.description\" class=\"text-muted-foreground line-clamp-2 text-sm\">\n                    {{ perk.description }}\n                  </p>\n                </UiCardContent>\n              </UiCard>\n            </Motion>\n          </div>\n        </Motion>\n\n        <!-- Job listings with accordion -->\n        <Motion :variants=\"childVariant\">\n          <h2 class=\"mb-8 text-2xl font-semibold\">Open positions</h2>\n\n          <UiAccordion type=\"single\" collapsible class=\"space-y-4\">\n            <Motion\n              v-for=\"n in 6\"\n              :key=\"n\"\n              :variants=\"childVariant\"\n              :transition=\"{\n                delay: n * 0.05,\n              }\"\n            >\n              <UiAccordionItem :value=\"`item-${n}`\" class=\"rounded-lg border border-b! px-6\">\n                <UiAccordionTrigger class=\"py-6 hover:no-underline\">\n                  <div class=\"flex flex-1 items-start justify-between pr-4 text-left\">\n                    <div class=\"flex-1\">\n                      <div class=\"mb-2 flex flex-wrap items-center gap-2\">\n                        <h3 class=\"text-lg font-semibold\">Senior Full Stack Developer</h3>\n                        <UiBadge variant=\"secondary\" size=\"sm\">Engineering</UiBadge>\n                      </div>\n                      <div class=\"text-muted-foreground flex flex-wrap gap-4 text-sm\">\n                        <span class=\"flex items-center gap-1\">\n                          <Icon name=\"lucide:map-pin\" class=\"h-3.5 w-3.5\" />\n                          Remote\n                        </span>\n                        <span class=\"flex items-center gap-1\">\n                          <Icon name=\"lucide:briefcase\" class=\"h-3.5 w-3.5\" />\n                          Full-time\n                        </span>\n                        <span class=\"flex items-center gap-1\">\n                          <Icon name=\"lucide:calendar\" class=\"h-3.5 w-3.5\" />\n                          Posted 2 days ago\n                        </span>\n                      </div>\n                    </div>\n                  </div>\n                </UiAccordionTrigger>\n                <UiAccordionContent class=\"pt-2 pb-6\">\n                  <div class=\"space-y-4\">\n                    <div>\n                      <h4 class=\"mb-2 font-semibold\">About the role</h4>\n                      <p class=\"text-muted-foreground text-sm\">\n                        We're looking for a talented full stack developer to join our growing\n                        engineering team. You'll work on building and scaling our core platform.\n                      </p>\n                    </div>\n\n                    <div>\n                      <h4 class=\"mb-2 font-semibold\">Requirements</h4>\n                      <ul class=\"text-muted-foreground list-inside list-disc space-y-1 text-sm\">\n                        <li>5+ years of professional development experience</li>\n                        <li>Strong proficiency in React, Node.js, and TypeScript</li>\n                        <li>Experience with cloud platforms (AWS, GCP, or Azure)</li>\n                        <li>Excellent communication skills</li>\n                      </ul>\n                    </div>\n\n                    <div class=\"flex flex-wrap gap-2 pt-2\">\n                      <UiBadge variant=\"outline\">React</UiBadge>\n                      <UiBadge variant=\"outline\">Node.js</UiBadge>\n                      <UiBadge variant=\"outline\">TypeScript</UiBadge>\n                      <UiBadge variant=\"outline\">AWS</UiBadge>\n                    </div>\n\n                    <div class=\"flex gap-3 pt-4\">\n                      <UiButton>\n                        Apply now\n                        <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n                      </UiButton>\n                      <UiButton variant=\"outline\">Share job</UiButton>\n                    </div>\n                  </div>\n                </UiAccordionContent>\n              </UiAccordionItem>\n            </Motion>\n          </UiAccordion>\n        </Motion>\n\n        <!-- CTA -->\n        <Motion :variants=\"childVariant\" class=\"mt-16 text-center\">\n          <UiCard class=\"bg-muted/50\">\n            <UiCardContent class=\"p-8\">\n              <h3 class=\"mb-2 text-2xl font-semibold\">Don't see a perfect fit?</h3>\n              <p class=\"text-muted-foreground mb-6\">\n                We're always looking for talented people. Send us your resume and we'll keep you in\n                mind for future opportunities.\n              </p>\n              <UiButton size=\"lg\">Send your resume</UiButton>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n      </UiContainer>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const perks = [\n    {\n      icon: \"lucide:heart\",\n      title: \"Health & Wellness\",\n      description: \"Comprehensive health insurance and wellness programs for you and your family\",\n    },\n    {\n      icon: \"lucide:globe\",\n      title: \"Work from Anywhere\",\n      description: \"100% remote work with flexible hours to fit your lifestyle\",\n    },\n    {\n      icon: \"lucide:trending-up\",\n      title: \"Career Growth\",\n      description: \"Continuous learning opportunities and clear career progression paths\",\n    },\n  ];\n</script>\n","category":"Career","description":"Modern career page with team culture showcase. Features: Gradient header, team stats, perks highlights, accordion job listings","path":"Career/BlockCareer6.vue","components":["accordion","badge","button","card","container","separator"]},{"name":"Career 7","fileName":"BlockCareer7.vue","file":"<template>\n  <!--\n    Filterable job board\n    Features: Department, location and type filters with live result count, rows with salary range and posted date, clear filters action, empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-4xl\">\n      <div class=\"text-center\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">Find your next role</h2>\n        <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl text-lg\">\n          Filter by team, location or contract type. Every role lists its salary range up front.\n        </p>\n      </div>\n\n      <div class=\"mt-10 grid gap-3 sm:grid-cols-3\">\n        <UiSelect v-model=\"department\">\n          <UiSelectTrigger class=\"w-full\" aria-label=\"Department\"\n            ><UiSelectValue\n          /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"all\">All departments</UiSelectItem>\n            <UiSelectItem v-for=\"item in departments\" :key=\"item\" :value=\"item\">{{\n              item\n            }}</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n        <UiSelect v-model=\"location\">\n          <UiSelectTrigger class=\"w-full\" aria-label=\"Location\"><UiSelectValue /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"all\">All locations</UiSelectItem>\n            <UiSelectItem v-for=\"item in locations\" :key=\"item\" :value=\"item\">{{\n              item\n            }}</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n        <UiSelect v-model=\"type\">\n          <UiSelectTrigger class=\"w-full\" aria-label=\"Employment type\"\n            ><UiSelectValue\n          /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"all\">All types</UiSelectItem>\n            <UiSelectItem v-for=\"item in types\" :key=\"item\" :value=\"item\">{{ item }}</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n\n      <div class=\"mt-6 flex items-center justify-between gap-3\">\n        <p class=\"text-muted-foreground text-sm\" role=\"status\">\n          {{ filtered.length }} {{ filtered.length === 1 ? \"open role\" : \"open roles\" }}\n        </p>\n        <UiButton v-if=\"active\" variant=\"ghost\" size=\"sm\" @click=\"clear\">\n          <Icon name=\"lucide:x\" class=\"size-4\" />Clear filters\n        </UiButton>\n      </div>\n\n      <ul v-if=\"filtered.length\" class=\"mt-3 divide-y rounded-xl border\">\n        <li\n          v-for=\"job in filtered\"\n          :key=\"job.id\"\n          class=\"hover:bg-muted/50 flex flex-col gap-3 p-5 transition-colors sm:flex-row sm:items-center sm:justify-between\"\n        >\n          <div class=\"min-w-0\">\n            <div class=\"flex flex-wrap items-center gap-2\">\n              <h3 class=\"font-semibold\">{{ job.title }}</h3>\n              <UiBadge variant=\"outline\" size=\"sm\">{{ job.department }}</UiBadge>\n            </div>\n            <ul class=\"text-muted-foreground mt-2 flex flex-wrap gap-x-4 gap-y-1 text-sm\">\n              <li class=\"flex items-center gap-1.5\">\n                <Icon name=\"lucide:map-pin\" class=\"size-3.5\" />{{ job.location }}\n              </li>\n              <li class=\"flex items-center gap-1.5\">\n                <Icon name=\"lucide:briefcase\" class=\"size-3.5\" />{{ job.type }}\n              </li>\n              <li class=\"flex items-center gap-1.5\">\n                <Icon name=\"lucide:banknote\" class=\"size-3.5\" />{{ job.salary }}\n              </li>\n              <li class=\"flex items-center gap-1.5\">\n                <Icon name=\"lucide:calendar\" class=\"size-3.5\" />Posted {{ job.posted }}\n              </li>\n            </ul>\n          </div>\n          <UiButton variant=\"outline\" size=\"sm\" class=\"shrink-0 self-start sm:self-center\">\n            View role<Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n        </li>\n      </ul>\n\n      <div v-else class=\"mt-3 rounded-xl border border-dashed p-10 text-center\">\n        <p class=\"font-medium\">No roles match those filters</p>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Try a different combination, or send us a note and we will keep you in mind.\n        </p>\n        <UiButton variant=\"outline\" size=\"sm\" class=\"mt-4\" @click=\"clear\">Clear filters</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Job = {\n    id: string;\n    title: string;\n    department: string;\n    location: string;\n    type: string;\n    salary: string;\n    posted: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      jobs?: Job[];\n    }>(),\n    {\n      jobs: () => [\n        {\n          id: \"1\",\n          title: \"Senior Product Designer\",\n          department: \"Design\",\n          location: \"Remote (Europe)\",\n          type: \"Full-time\",\n          salary: \"$110k to $135k\",\n          posted: \"2 days ago\",\n        },\n        {\n          id: \"2\",\n          title: \"Staff Frontend Engineer\",\n          department: \"Engineering\",\n          location: \"Remote (Americas)\",\n          type: \"Full-time\",\n          salary: \"$150k to $180k\",\n          posted: \"4 days ago\",\n        },\n        {\n          id: \"3\",\n          title: \"Backend Engineer\",\n          department: \"Engineering\",\n          location: \"Remote (Europe)\",\n          type: \"Full-time\",\n          salary: \"$120k to $150k\",\n          posted: \"1 week ago\",\n        },\n        {\n          id: \"4\",\n          title: \"Content Marketing Lead\",\n          department: \"Marketing\",\n          location: \"Remote (Americas)\",\n          type: \"Part-time\",\n          salary: \"$70k to $90k\",\n          posted: \"1 week ago\",\n        },\n        {\n          id: \"5\",\n          title: \"Customer Success Manager\",\n          department: \"Support\",\n          location: \"Remote (Asia-Pacific)\",\n          type: \"Full-time\",\n          salary: \"$80k to $100k\",\n          posted: \"2 weeks ago\",\n        },\n        {\n          id: \"6\",\n          title: \"Brand Design Contractor\",\n          department: \"Design\",\n          location: \"Remote (Europe)\",\n          type: \"Contract\",\n          salary: \"$65 to $85 per hour\",\n          posted: \"3 weeks ago\",\n        },\n      ],\n    }\n  );\n\n  const department = ref(\"all\");\n  const location = ref(\"all\");\n  const type = ref(\"all\");\n\n  const unique = (pick: (job: Job) => string) => [...new Set(props.jobs.map(pick))];\n  const departments = computed(() => unique((job) => job.department));\n  const locations = computed(() => unique((job) => job.location));\n  const types = computed(() => unique((job) => job.type));\n\n  const active = computed(\n    () => department.value !== \"all\" || location.value !== \"all\" || type.value !== \"all\"\n  );\n\n  const filtered = computed(() =>\n    props.jobs.filter(\n      (job) =>\n        (department.value === \"all\" || job.department === department.value) &&\n        (location.value === \"all\" || job.location === location.value) &&\n        (type.value === \"all\" || job.type === type.value)\n    )\n  );\n\n  function clear() {\n    department.value = \"all\";\n    location.value = \"all\";\n    type.value = \"all\";\n  }\n</script>\n","category":"Career","description":"Filterable job board. Features: Department, location and type filters with live result count, rows with salary range and posted date, clear filters action, empty state","path":"Career/BlockCareer7.vue","components":["badge","button","container","select"]},{"name":"Career 8","fileName":"BlockCareer8.vue","file":"<template>\n  <!--\n    Job detail page\n    Features: Role header with meta chips, about, responsibilities and requirements lists, sticky apply card with salary and benefits, copy link share button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <UiButton variant=\"ghost\" size=\"sm\" class=\"-ml-3\">\n        <Icon name=\"lucide:arrow-left\" class=\"size-4\" />All open roles\n      </UiButton>\n\n      <div class=\"mt-4 grid gap-10 lg:grid-cols-[1fr_20rem]\">\n        <article class=\"min-w-0\">\n          <div class=\"flex flex-wrap items-center gap-2\">\n            <UiBadge variant=\"soft\" color=\"primary\">{{ job.department }}</UiBadge>\n            <span class=\"text-muted-foreground text-sm\">Posted {{ job.posted }}</span>\n          </div>\n          <h1 class=\"mt-3 text-3xl font-bold lg:text-4xl\">{{ job.title }}</h1>\n          <ul class=\"text-muted-foreground mt-4 flex flex-wrap gap-x-5 gap-y-2 text-sm\">\n            <li class=\"flex items-center gap-1.5\">\n              <Icon name=\"lucide:map-pin\" class=\"size-4\" />{{ job.location }}\n            </li>\n            <li class=\"flex items-center gap-1.5\">\n              <Icon name=\"lucide:briefcase\" class=\"size-4\" />{{ job.type }}\n            </li>\n            <li class=\"flex items-center gap-1.5\">\n              <Icon name=\"lucide:users\" class=\"size-4\" />{{ job.team }}\n            </li>\n          </ul>\n\n          <UiSeparator class=\"my-8\" />\n\n          <section class=\"space-y-8\">\n            <div>\n              <h2 class=\"text-xl font-semibold\">About the role</h2>\n              <p class=\"text-muted-foreground mt-3 leading-relaxed\">{{ job.about }}</p>\n            </div>\n            <div>\n              <h2 class=\"text-xl font-semibold\">What you will do</h2>\n              <ul class=\"mt-3 space-y-2\">\n                <li\n                  v-for=\"item in job.responsibilities\"\n                  :key=\"item\"\n                  class=\"text-muted-foreground flex gap-3\"\n                >\n                  <Icon name=\"lucide:circle-check\" class=\"text-primary mt-0.5 size-5 shrink-0\" />\n                  <span>{{ item }}</span>\n                </li>\n              </ul>\n            </div>\n            <div>\n              <h2 class=\"text-xl font-semibold\">What we are looking for</h2>\n              <ul class=\"mt-3 space-y-2\">\n                <li\n                  v-for=\"item in job.requirements\"\n                  :key=\"item\"\n                  class=\"text-muted-foreground flex gap-3\"\n                >\n                  <Icon name=\"lucide:dot\" class=\"mt-0.5 size-5 shrink-0\" />\n                  <span>{{ item }}</span>\n                </li>\n              </ul>\n            </div>\n          </section>\n        </article>\n\n        <aside class=\"lg:sticky lg:top-6 lg:self-start\">\n          <UiCard>\n            <UiCardHeader>\n              <UiCardTitle>{{ job.salary }}</UiCardTitle>\n              <UiCardDescription>Base salary, plus equity</UiCardDescription>\n            </UiCardHeader>\n            <UiCardContent class=\"space-y-4\">\n              <ul class=\"space-y-2 text-sm\">\n                <li v-for=\"benefit in job.benefits\" :key=\"benefit\" class=\"flex items-center gap-2\">\n                  <Icon name=\"lucide:check\" class=\"text-primary size-4 shrink-0\" />{{ benefit }}\n                </li>\n              </ul>\n              <UiButton class=\"w-full\" size=\"lg\">Apply for this role</UiButton>\n              <UiButton variant=\"outline\" class=\"w-full\" @click=\"copy(link)\">\n                <Icon :name=\"copied ? 'lucide:check' : 'lucide:link'\" class=\"size-4\" />\n                {{ copied ? \"Link copied\" : \"Copy link\" }}\n              </UiButton>\n            </UiCardContent>\n          </UiCard>\n        </aside>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Job = {\n    title: string;\n    department: string;\n    team: string;\n    location: string;\n    type: string;\n    salary: string;\n    posted: string;\n    about: string;\n    responsibilities: string[];\n    requirements: string[];\n    benefits: string[];\n  };\n\n  withDefaults(\n    defineProps<{\n      job?: Job;\n      link?: string;\n    }>(),\n    {\n      job: () => ({\n        title: \"Senior Product Designer\",\n        department: \"Design\",\n        team: \"Product Design team of 8\",\n        location: \"Remote (Europe)\",\n        type: \"Full-time\",\n        salary: \"$110k to $135k\",\n        posted: \"2 days ago\",\n        about:\n          \"You will own the design of our workflow builder, from the first sketch to the shipped interface. You will pair with engineers every week and talk to customers often, so decisions rest on what people actually do.\",\n        responsibilities: [\n          \"Lead end-to-end design for new product areas\",\n          \"Run discovery interviews and turn findings into clear bets\",\n          \"Contribute components and patterns to our shared design system\",\n          \"Mentor mid-level designers through critique and pairing\",\n        ],\n        requirements: [\n          \"5 or more years designing complex web products\",\n          \"A portfolio that shows your reasoning, not just final screens\",\n          \"Comfort prototyping in code or close collaboration with those who do\",\n          \"Clear written communication across time zones\",\n        ],\n        benefits: [\n          \"Four-day work week in summer\",\n          \"Home office and learning budget\",\n          \"26 days paid time off\",\n          \"Private health cover\",\n        ],\n      }),\n      link: \"https://careers.example.com/roles/senior-product-designer\",\n    }\n  );\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n</script>\n","category":"Career","description":"Job detail page. Features: Role header with meta chips, about, responsibilities and requirements lists, sticky apply card with salary and benefits, copy link share button","path":"Career/BlockCareer8.vue","components":["badge","button","card","container","separator"]},{"name":"Career 9","fileName":"BlockCareer9.vue","file":"<template>\n  <!--\n    Job application form\n    Features: Name, email, portfolio link, resume file picker and cover note with validation, character counter, privacy consent, confirmation state with a summary\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-2xl\">\n      <template v-if=\"!submitted\">\n        <UiCardHeader>\n          <UiCardTitle class=\"text-2xl\">Apply for {{ role }}</UiCardTitle>\n          <UiCardDescription\n            >Takes about five minutes. A person reads every application.</UiCardDescription\n          >\n        </UiCardHeader>\n        <UiCardContent>\n          <form class=\"grid gap-5\" novalidate @submit.prevent=\"submit\">\n            <div class=\"grid gap-5 sm:grid-cols-2\">\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"apply-name\">Full name</UiLabel>\n                <UiInput\n                  id=\"apply-name\"\n                  v-model=\"form.name\"\n                  autocomplete=\"name\"\n                  placeholder=\"Alex Rivera\"\n                  :aria-invalid=\"!!errors.name\"\n                />\n                <p v-if=\"errors.name\" class=\"text-destructive text-sm\">{{ errors.name }}</p>\n              </div>\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"apply-email\">Email</UiLabel>\n                <UiInput\n                  id=\"apply-email\"\n                  v-model=\"form.email\"\n                  type=\"email\"\n                  autocomplete=\"email\"\n                  placeholder=\"alex@example.com\"\n                  :aria-invalid=\"!!errors.email\"\n                />\n                <p v-if=\"errors.email\" class=\"text-destructive text-sm\">{{ errors.email }}</p>\n              </div>\n            </div>\n\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"apply-link\">Portfolio or LinkedIn</UiLabel>\n              <UiInput\n                id=\"apply-link\"\n                v-model=\"form.link\"\n                type=\"url\"\n                placeholder=\"https://alexrivera.example.com\"\n                :aria-invalid=\"!!errors.link\"\n              />\n              <p v-if=\"errors.link\" class=\"text-destructive text-sm\">{{ errors.link }}</p>\n            </div>\n\n            <div class=\"grid gap-2\">\n              <p id=\"apply-resume\" class=\"text-sm leading-none font-medium\">Resume</p>\n              <div class=\"flex flex-wrap items-center gap-3 rounded-lg border border-dashed p-3\">\n                <UiButton\n                  type=\"button\"\n                  variant=\"outline\"\n                  size=\"sm\"\n                  aria-describedby=\"apply-resume\"\n                  @click=\"open()\"\n                >\n                  <Icon name=\"lucide:upload\" class=\"size-4\" />Choose file\n                </UiButton>\n                <p v-if=\"file\" class=\"flex min-w-0 items-center gap-2 text-sm\">\n                  <Icon name=\"lucide:file-text\" class=\"size-4 shrink-0\" />\n                  <span class=\"truncate\">{{ file.name }}</span>\n                  <UiButton\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"icon-sm\"\n                    aria-label=\"Remove resume\"\n                    @click=\"file = null\"\n                    ><Icon name=\"lucide:x\" class=\"size-4\"\n                  /></UiButton>\n                </p>\n                <p v-else class=\"text-muted-foreground text-sm\">PDF or Word, up to 5 MB</p>\n              </div>\n              <p v-if=\"errors.file\" class=\"text-destructive text-sm\">{{ errors.file }}</p>\n            </div>\n\n            <div class=\"grid gap-2\">\n              <div class=\"flex items-center justify-between gap-2\">\n                <UiLabel for=\"apply-note\">Cover note</UiLabel>\n                <span class=\"text-muted-foreground text-xs\"\n                  >{{ form.note.length }} / {{ maxNote }}</span\n                >\n              </div>\n              <UiTextarea\n                id=\"apply-note\"\n                v-model=\"form.note\"\n                :rows=\"4\"\n                :maxlength=\"maxNote\"\n                placeholder=\"Tell us about a project you are proud of.\"\n              />\n            </div>\n\n            <div class=\"grid gap-2\">\n              <div class=\"flex items-start gap-2\">\n                <UiCheckbox id=\"apply-consent\" v-model=\"form.consent\" class=\"mt-0.5\" />\n                <UiLabel for=\"apply-consent\" class=\"leading-snug font-normal\"\n                  >I agree to the processing of my data for this application.</UiLabel\n                >\n              </div>\n              <p v-if=\"errors.consent\" class=\"text-destructive text-sm\">{{ errors.consent }}</p>\n            </div>\n\n            <UiButton type=\"submit\" size=\"lg\">Submit application</UiButton>\n          </form>\n        </UiCardContent>\n      </template>\n\n      <UiCardContent v-else class=\"space-y-4 py-6 text-center\" role=\"status\">\n        <span\n          class=\"mx-auto grid size-14 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n          ><Icon name=\"lucide:check\" class=\"size-7\"\n        /></span>\n        <h2 class=\"text-2xl font-semibold\">Application sent</h2>\n        <p class=\"text-muted-foreground mx-auto max-w-md\">\n          Thanks, {{ firstName }}. We sent a confirmation to\n          <span class=\"text-foreground font-medium\">{{ form.email.trim() }}</span>. Expect a reply\n          within five working days.\n        </p>\n        <UiButton variant=\"outline\" @click=\"reset\">Apply for another role</UiButton>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      role?: string;\n    }>(),\n    { role: \"Senior Product Designer\" }\n  );\n\n  const maxNote = 500;\n  const maxBytes = 5 * 1024 * 1024;\n\n  const form = reactive({\n    name: \"\",\n    email: \"\",\n    link: \"\",\n    note: \"\",\n    consent: false as boolean | \"indeterminate\",\n  });\n  const errors = reactive({ name: \"\", email: \"\", link: \"\", file: \"\", consent: \"\" });\n  const file = ref<File | null>(null);\n  const submitted = ref(false);\n\n  const {\n    open,\n    onChange,\n    reset: resetFiles,\n  } = useFileDialog({\n    accept: \".pdf,.doc,.docx\",\n    multiple: false,\n  });\n\n  onChange((files) => {\n    if (files?.[0]) setFile(files[0]);\n  });\n\n  function setFile(next: File) {\n    if (next.size > maxBytes) {\n      errors.file = \"That file is larger than 5 MB.\";\n      file.value = null;\n      return;\n    }\n    errors.file = \"\";\n    file.value = next;\n  }\n\n  const firstName = computed(() => form.name.trim().split(/\\s+/)[0] || \"there\");\n\n  function submit() {\n    errors.name = form.name.trim() ? \"\" : \"Enter your full name.\";\n    errors.email = /^\\S+@\\S+\\.\\S+$/.test(form.email.trim()) ? \"\" : \"Enter a valid email address.\";\n    errors.link =\n      !form.link.trim() || /^https?:\\/\\/\\S+\\.\\S+/.test(form.link.trim())\n        ? \"\"\n        : \"Enter a full link starting with https://.\";\n    errors.file = file.value ? \"\" : errors.file || \"Attach your resume.\";\n    errors.consent = form.consent === true ? \"\" : \"Please accept to continue.\";\n    if (Object.values(errors).some(Boolean)) return;\n    submitted.value = true;\n  }\n\n  function reset() {\n    Object.assign(form, { name: \"\", email: \"\", link: \"\", note: \"\", consent: false });\n    file.value = null;\n    resetFiles();\n    submitted.value = false;\n  }\n</script>\n","category":"Career","description":"Job application form. Features: Name, email, portfolio link, resume file picker and cover note with validation, character counter, privacy consent, confirmation state with a summary","path":"Career/BlockCareer9.vue","components":["button","card","checkbox","container","input","label","textarea"]},{"name":"Cart 1","fileName":"BlockCart1.vue","file":"<template>\n  <!--\n    Cart drawer that slides in from the right\n    Features: Header with a live item count badge, sheet drawer with line items, quantity stepper and remove buttons, subtotal and checkout actions, a friendly empty state and focus handling from the sheet\n  -->\n  <UiContainer class=\"py-6\">\n    <header class=\"flex items-center justify-between rounded-xl border px-5 py-3\">\n      <span class=\"text-lg font-semibold tracking-tight\">Alder &amp; Row</span>\n      <nav class=\"text-muted-foreground hidden gap-6 text-sm sm:flex\" aria-label=\"Main\">\n        <a href=\"#\" class=\"hover:text-foreground\">Shop</a>\n        <a href=\"#\" class=\"hover:text-foreground\">Journal</a>\n        <a href=\"#\" class=\"hover:text-foreground\">About</a>\n      </nav>\n\n      <UiSheet v-model:open=\"open\">\n        <UiSheetTrigger as-child>\n          <UiButton variant=\"outline\" size=\"sm\" :aria-label=\"`Open cart, ${count} items`\">\n            <Icon name=\"lucide:shopping-bag\" />\n            Cart\n            <UiBadge size=\"sm\" shape=\"pill\">{{ count }}</UiBadge>\n          </UiButton>\n        </UiSheetTrigger>\n        <UiSheetContent side=\"right\" class=\"flex w-full flex-col gap-0 p-0 sm:max-w-md\">\n          <UiSheetHeader class=\"border-b p-5\">\n            <UiSheetTitle>Your cart ({{ count }})</UiSheetTitle>\n            <UiSheetDescription class=\"sr-only\">\n              Review the items in your cart and continue to checkout.\n            </UiSheetDescription>\n          </UiSheetHeader>\n\n          <ul v-if=\"items.length\" class=\"flex-1 divide-y overflow-y-auto px-5\">\n            <li v-for=\"item in items\" :key=\"item.id\" class=\"flex gap-4 py-5\">\n              <img\n                :src=\"item.image\"\n                :alt=\"item.name\"\n                class=\"bg-muted size-20 shrink-0 rounded-lg object-cover\"\n              />\n              <div class=\"flex min-w-0 flex-1 flex-col\">\n                <div class=\"flex items-start justify-between gap-2\">\n                  <div class=\"min-w-0\">\n                    <a :href=\"item.href\" class=\"block truncate text-sm font-medium hover:underline\">\n                      {{ item.name }}\n                    </a>\n                    <p class=\"text-muted-foreground text-xs\">{{ item.variant }}</p>\n                  </div>\n                  <p class=\"text-sm font-semibold tabular-nums\">\n                    {{ money.format(item.price * item.quantity) }}\n                  </p>\n                </div>\n                <div class=\"mt-auto flex items-center justify-between pt-3\">\n                  <div class=\"flex items-center rounded-md border\">\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-xs\"\n                      :disabled=\"item.quantity <= 1\"\n                      :aria-label=\"`Decrease quantity of ${item.name}`\"\n                      @click=\"item.quantity--\"\n                    >\n                      <Icon name=\"lucide:minus\" />\n                    </UiButton>\n                    <span class=\"w-8 text-center text-sm tabular-nums\" aria-live=\"polite\">\n                      {{ item.quantity }}\n                    </span>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-xs\"\n                      :disabled=\"item.quantity >= 10\"\n                      :aria-label=\"`Increase quantity of ${item.name}`\"\n                      @click=\"item.quantity++\"\n                    >\n                      <Icon name=\"lucide:plus\" />\n                    </UiButton>\n                  </div>\n                  <button\n                    type=\"button\"\n                    class=\"text-muted-foreground hover:text-destructive text-xs underline underline-offset-4\"\n                    @click=\"remove(item.id)\"\n                  >\n                    Remove\n                  </button>\n                </div>\n              </div>\n            </li>\n          </ul>\n\n          <UiEmpty v-else class=\"flex-1\">\n            <UiEmptyHeader>\n              <UiEmptyMedia>\n                <UiFancyIcon icon=\"lucide:shopping-bag\" theme=\"modern-neue\" />\n              </UiEmptyMedia>\n              <UiEmptyTitle>Your cart is empty</UiEmptyTitle>\n              <UiEmptyDescription>Items you add will show up here.</UiEmptyDescription>\n            </UiEmptyHeader>\n            <UiEmptyContent>\n              <UiButton variant=\"outline\" @click=\"open = false\">Continue shopping</UiButton>\n            </UiEmptyContent>\n          </UiEmpty>\n\n          <UiSheetFooter v-if=\"items.length\" class=\"border-t p-5\">\n            <dl class=\"space-y-1.5 text-sm\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Subtotal</dt>\n                <dd class=\"font-semibold tabular-nums\" aria-live=\"polite\">\n                  {{ money.format(subtotal) }}\n                </dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"text-muted-foreground\">Calculated at checkout</dd>\n              </div>\n            </dl>\n            <UiButton class=\"mt-3 w-full\" size=\"lg\">\n              Checkout\n              <Icon name=\"lucide:arrow-right\" />\n            </UiButton>\n            <UiButton variant=\"ghost\" class=\"w-full\" @click=\"open = false\">\n              Continue shopping\n            </UiButton>\n          </UiSheetFooter>\n        </UiSheetContent>\n      </UiSheet>\n    </header>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      /** Whether the drawer starts open. */\n      defaultOpen?: boolean;\n    }>(),\n    {\n      defaultOpen: false,\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const open = ref(props.defaultOpen);\n  const items = ref<CartItem[]>(props.items.map((item) => ({ ...item })));\n\n  const count = computed(() => items.value.reduce((sum, item) => sum + item.quantity, 0));\n  const subtotal = computed(() =>\n    items.value.reduce((sum, item) => sum + item.price * item.quantity, 0)\n  );\n\n  function remove(id: number) {\n    items.value = items.value.filter((item) => item.id !== id);\n  }\n</script>\n","category":"Cart","description":"Cart drawer that slides in from the right. Features: Header with a live item count badge, sheet drawer with line items, quantity stepper and remove buttons, subtotal and checkout actions, a friendly empty state and focus handling from the sheet","path":"Ecommerce/Cart/BlockCart1.vue","components":["badge","button","container","empty","fancy-icon","sheet"]},{"name":"Cart 2","fileName":"BlockCart2.vue","file":"<template>\n  <!--\n    Shopping cart page with order summary\n    Features: Line items with photo, variant, quantity field and line total, remove and save for later actions, a sticky order summary with shipping and estimated tax, accepted payment icons and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">Shopping cart</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ count }} {{ count === 1 ? \"item\" : \"items\" }}</p>\n\n    <div v-if=\"items.length\" class=\"mt-10 grid gap-10 lg:grid-cols-[1fr_24rem] lg:gap-14\">\n      <ul class=\"divide-y border-y\">\n        <li v-for=\"item in items\" :key=\"item.id\" class=\"flex gap-4 py-6 sm:gap-6\">\n          <a :href=\"item.href\" class=\"shrink-0\">\n            <img\n              :src=\"item.image\"\n              :alt=\"item.name\"\n              class=\"bg-muted size-24 rounded-xl object-cover sm:size-32\"\n            />\n          </a>\n          <div class=\"flex min-w-0 flex-1 flex-col justify-between gap-4 sm:flex-row\">\n            <div class=\"min-w-0\">\n              <h2 class=\"font-medium\">\n                <a :href=\"item.href\" class=\"hover:underline\">{{ item.name }}</a>\n              </h2>\n              <p class=\"text-muted-foreground mt-1 text-sm\">{{ item.variant }}</p>\n              <p class=\"mt-2 text-sm font-medium tabular-nums\">{{ money.format(item.price) }}</p>\n              <div class=\"text-muted-foreground mt-3 flex gap-4 text-xs\">\n                <button type=\"button\" class=\"hover:text-foreground underline underline-offset-4\">\n                  Save for later\n                </button>\n                <button\n                  type=\"button\"\n                  class=\"hover:text-destructive underline underline-offset-4\"\n                  @click=\"remove(item.id)\"\n                >\n                  Remove\n                </button>\n              </div>\n            </div>\n            <div class=\"flex items-center justify-between gap-6 sm:flex-col sm:items-end\">\n              <UiNumberField v-model=\"item.quantity\" :min=\"1\" :max=\"10\" class=\"w-28\">\n                <UiNumberFieldDecrement />\n                <UiNumberFieldInput class=\"text-center\" :aria-label=\"`Quantity of ${item.name}`\" />\n                <UiNumberFieldIncrement />\n              </UiNumberField>\n              <p class=\"font-semibold tabular-nums\">\n                {{ money.format(item.price * item.quantity) }}\n              </p>\n            </div>\n          </div>\n        </li>\n      </ul>\n\n      <aside class=\"lg:sticky lg:top-8 lg:self-start\">\n        <UiCard>\n          <UiCardContent class=\"space-y-4\">\n            <h2 class=\"text-lg font-semibold\">Order summary</h2>\n            <dl class=\"space-y-3 text-sm\" aria-live=\"polite\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Subtotal</dt>\n                <dd class=\"tabular-nums\">{{ money.format(subtotal) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"tabular-nums\">{{ shipping === 0 ? \"Free\" : money.format(shipping) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Estimated tax</dt>\n                <dd class=\"tabular-nums\">{{ money.format(tax) }}</dd>\n              </div>\n              <UiSeparator />\n              <div class=\"flex justify-between text-base font-semibold\">\n                <dt>Total</dt>\n                <dd class=\"tabular-nums\">{{ money.format(total) }}</dd>\n              </div>\n            </dl>\n            <UiButton class=\"w-full\" size=\"lg\">Continue to checkout</UiButton>\n            <div class=\"text-muted-foreground flex items-center justify-center gap-3 text-xs\">\n              <Icon name=\"lucide:lock\" class=\"size-3.5\" />\n              Secure checkout\n              <span class=\"flex items-center gap-1.5\" aria-hidden=\"true\">\n                <Icon name=\"logos:visa\" class=\"h-3 w-auto\" />\n                <Icon name=\"logos:mastercard\" class=\"size-5\" />\n                <Icon name=\"logos:paypal\" class=\"size-4\" />\n              </span>\n            </div>\n          </UiCardContent>\n        </UiCard>\n        <p class=\"text-muted-foreground mt-4 text-center text-xs\">\n          Free shipping on orders over {{ money.format(freeShippingAt) }}. Free returns for 30 days.\n        </p>\n      </aside>\n    </div>\n\n    <UiEmpty v-else class=\"mt-10 border border-dashed\">\n      <UiEmptyHeader>\n        <UiEmptyMedia>\n          <UiFancyIcon icon=\"lucide:shopping-bag\" theme=\"modern-neue\" />\n        </UiEmptyMedia>\n        <UiEmptyTitle>Your cart is empty</UiEmptyTitle>\n        <UiEmptyDescription>Find something you love and it will show up here.</UiEmptyDescription>\n      </UiEmptyHeader>\n      <UiEmptyContent>\n        <UiButton>Continue shopping</UiButton>\n      </UiEmptyContent>\n    </UiEmpty>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      /** Orders at or above this subtotal ship for free. */\n      freeShippingAt?: number;\n      shippingFee?: number;\n      /** Estimated tax as a fraction, for example 0.08 for 8%. */\n      taxRate?: number;\n    }>(),\n    {\n      freeShippingAt: 75,\n      shippingFee: 8,\n      taxRate: 0.08,\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const items = ref<CartItem[]>(props.items.map((item) => ({ ...item })));\n\n  const count = computed(() => items.value.reduce((sum, item) => sum + item.quantity, 0));\n  const subtotal = computed(() =>\n    items.value.reduce((sum, item) => sum + item.price * item.quantity, 0)\n  );\n  const shipping = computed(() => (subtotal.value >= props.freeShippingAt ? 0 : props.shippingFee));\n  const tax = computed(() => subtotal.value * props.taxRate);\n  const total = computed(() => subtotal.value + shipping.value + tax.value);\n\n  function remove(id: number) {\n    items.value = items.value.filter((item) => item.id !== id);\n  }\n</script>\n","category":"Cart","description":"Shopping cart page with order summary. Features: Line items with photo, variant, quantity field and line total, remove and save for later actions, a sticky order summary with shipping and estimated tax, accepted payment icons and an empty state","path":"Ecommerce/Cart/BlockCart2.vue","components":["button","card","container","empty","fancy-icon","number-field","separator"]},{"name":"Cart 3","fileName":"BlockCart3.vue","file":"<template>\n  <!--\n    Cart with free shipping progress and promo code\n    Features: Progress bar that counts down to free shipping, promo code field with apply and remove and an inline error for invalid codes, discount line in the totals and a sticky checkout button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Your cart</h1>\n\n      <div class=\"mt-6 rounded-xl border p-4\">\n        <p class=\"text-sm\" role=\"status\" aria-live=\"polite\">\n          <template v-if=\"remaining > 0\">\n            You are <strong>{{ money.format(remaining) }}</strong> away from free shipping.\n          </template>\n          <template v-else>\n            <Icon name=\"lucide:party-popper\" class=\"mr-1 inline size-4\" />\n            You have unlocked <strong>free shipping</strong>.\n          </template>\n        </p>\n        <UiProgress :model-value=\"progress\" class=\"mt-3 h-2\" />\n      </div>\n\n      <ul class=\"mt-6 divide-y\">\n        <li v-for=\"item in items\" :key=\"item.id\" class=\"flex items-center gap-4 py-5\">\n          <img\n            :src=\"item.image\"\n            :alt=\"item.name\"\n            class=\"bg-muted size-20 shrink-0 rounded-lg object-cover\"\n          />\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate font-medium\">{{ item.name }}</p>\n            <p class=\"text-muted-foreground text-sm\">{{ item.variant }}</p>\n            <div class=\"mt-2 flex items-center gap-3\">\n              <UiNumberField v-model=\"item.quantity\" :min=\"1\" :max=\"10\" class=\"w-28\">\n                <UiNumberFieldDecrement />\n                <UiNumberFieldInput class=\"text-center\" :aria-label=\"`Quantity of ${item.name}`\" />\n                <UiNumberFieldIncrement />\n              </UiNumberField>\n              <button\n                type=\"button\"\n                class=\"text-muted-foreground hover:text-destructive text-xs underline underline-offset-4\"\n                @click=\"remove(item.id)\"\n              >\n                Remove\n              </button>\n            </div>\n          </div>\n          <p class=\"font-semibold tabular-nums\">{{ money.format(item.price * item.quantity) }}</p>\n        </li>\n      </ul>\n\n      <div class=\"mt-6 border-t pt-6\">\n        <form class=\"flex gap-2\" novalidate @submit.prevent=\"applyCode\">\n          <div class=\"flex-1\">\n            <UiLabel for=\"promo\" class=\"sr-only\">Promo code</UiLabel>\n            <UiInput\n              id=\"promo\"\n              v-model=\"code\"\n              placeholder=\"Promo code\"\n              autocomplete=\"off\"\n              :disabled=\"!!applied\"\n              :aria-invalid=\"!!error\"\n              :aria-describedby=\"error ? 'promo-error' : undefined\"\n            />\n          </div>\n          <UiButton v-if=\"!applied\" type=\"submit\" variant=\"outline\" :disabled=\"!code.trim()\">\n            Apply\n          </UiButton>\n        </form>\n        <p v-if=\"error\" id=\"promo-error\" class=\"text-destructive mt-2 text-sm\" role=\"alert\">\n          {{ error }}\n        </p>\n        <UiBadge v-if=\"applied\" variant=\"soft\" color=\"green\" size=\"md\" class=\"mt-3 gap-2\">\n          <Icon name=\"lucide:tag\" />\n          {{ applied.code }} · {{ applied.percent }}% off\n          <button type=\"button\" aria-label=\"Remove promo code\" @click=\"removeCode\">\n            <Icon name=\"lucide:x\" />\n          </button>\n        </UiBadge>\n        <p v-else class=\"text-muted-foreground mt-2 text-xs\">\n          Try <strong>AUTUMN10</strong> or <strong>WELCOME15</strong>.\n        </p>\n      </div>\n\n      <dl class=\"mt-6 space-y-3 border-t pt-6 text-sm\" aria-live=\"polite\">\n        <div class=\"flex justify-between\">\n          <dt class=\"text-muted-foreground\">Subtotal</dt>\n          <dd class=\"tabular-nums\">{{ money.format(subtotal) }}</dd>\n        </div>\n        <div v-if=\"discount\" class=\"flex justify-between text-green-600 dark:text-green-400\">\n          <dt>Discount ({{ applied?.code }})</dt>\n          <dd class=\"tabular-nums\">-{{ money.format(discount) }}</dd>\n        </div>\n        <div class=\"flex justify-between\">\n          <dt class=\"text-muted-foreground\">Shipping</dt>\n          <dd class=\"tabular-nums\">{{ shipping === 0 ? \"Free\" : money.format(shipping) }}</dd>\n        </div>\n        <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n          <dt>Total</dt>\n          <dd class=\"tabular-nums\">{{ money.format(total) }}</dd>\n        </div>\n      </dl>\n\n      <UiButton class=\"mt-6 w-full\" size=\"lg\"> Checkout · {{ money.format(total) }} </UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      freeShippingAt?: number;\n      shippingFee?: number;\n      /** Valid codes mapped to the percentage they take off. Validate on your server too. */\n      promoCodes?: Record<string, number>;\n    }>(),\n    {\n      freeShippingAt: 250,\n      shippingFee: 8,\n      promoCodes: () => ({ AUTUMN10: 10, WELCOME15: 15 }),\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const items = ref<CartItem[]>(props.items.map((item) => ({ ...item })));\n  const code = ref(\"\");\n  const error = ref(\"\");\n  const applied = ref<{ code: string; percent: number } | null>(null);\n\n  const subtotal = computed(() =>\n    items.value.reduce((sum, item) => sum + item.price * item.quantity, 0)\n  );\n  const discount = computed(() =>\n    applied.value ? (subtotal.value * applied.value.percent) / 100 : 0\n  );\n  const remaining = computed(() =>\n    Math.max(0, props.freeShippingAt - (subtotal.value - discount.value))\n  );\n  const progress = computed(() =>\n    Math.min(100, ((subtotal.value - discount.value) / props.freeShippingAt) * 100)\n  );\n  const shipping = computed(() => (remaining.value === 0 ? 0 : props.shippingFee));\n  const total = computed(() => subtotal.value - discount.value + shipping.value);\n\n  function applyCode() {\n    const value = code.value.trim().toUpperCase();\n    const percent = props.promoCodes[value];\n    if (!percent) {\n      error.value = \"That code is not valid or has expired.\";\n      return;\n    }\n    error.value = \"\";\n    applied.value = { code: value, percent };\n    code.value = value;\n  }\n\n  function removeCode() {\n    applied.value = null;\n    code.value = \"\";\n  }\n\n  function remove(id: number) {\n    items.value = items.value.filter((item) => item.id !== id);\n  }\n</script>\n","category":"Cart","description":"Cart with free shipping progress and promo code. Features: Progress bar that counts down to free shipping, promo code field with apply and remove and an inline error for invalid codes, discount line in the totals and a sticky checkout button","path":"Ecommerce/Cart/BlockCart3.vue","components":["badge","button","container","input","label","number-field","progress"]},{"name":"Cart 4","fileName":"BlockCart4.vue","file":"<template>\n  <!--\n    Empty cart with product suggestions\n    Features: Centered empty state with an icon, clear next steps and a wishlist link, popular category chips and a row of suggested products so shoppers always have somewhere to go\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <UiEmpty class=\"border border-dashed py-16\">\n      <UiEmptyHeader>\n        <UiEmptyMedia>\n          <UiFancyIcon icon=\"lucide:shopping-bag\" theme=\"modern-neue\" />\n        </UiEmptyMedia>\n        <UiEmptyTitle>{{ title }}</UiEmptyTitle>\n        <UiEmptyDescription>{{ description }}</UiEmptyDescription>\n      </UiEmptyHeader>\n      <UiEmptyContent>\n        <div class=\"flex flex-wrap justify-center gap-3\">\n          <UiButton size=\"lg\">\n            Start shopping\n            <Icon name=\"lucide:arrow-right\" />\n          </UiButton>\n          <UiButton size=\"lg\" variant=\"outline\">\n            <Icon name=\"lucide:heart\" />\n            View wishlist\n          </UiButton>\n        </div>\n        <ul\n          class=\"mt-6 flex flex-wrap justify-center gap-x-2 gap-y-3\"\n          aria-label=\"Popular categories\"\n        >\n          <li v-for=\"category in categories\" :key=\"category\">\n            <a href=\"#\" class=\"hover:bg-accent rounded-full border px-4 py-1.5 text-sm transition\">\n              {{ category }}\n            </a>\n          </li>\n        </ul>\n      </UiEmptyContent>\n    </UiEmpty>\n\n    <div class=\"mt-16\">\n      <h2 class=\"text-xl font-semibold tracking-tight\">Popular right now</h2>\n      <ul class=\"mt-6 grid grid-cols-2 gap-x-4 gap-y-8 lg:grid-cols-4 lg:gap-x-6\">\n        <Motion\n          v-for=\"(product, i) in products\"\n          :key=\"product.id\"\n          as=\"li\"\n          :initial=\"{ opacity: 0, y: 20 }\"\n          :while-in-view=\"{ opacity: 1, y: 0 }\"\n          :in-view-options=\"{ once: true }\"\n          :transition=\"{ duration: 0.4, delay: i * 0.07 }\"\n        >\n          <a :href=\"product.href\" class=\"group block\">\n            <div class=\"bg-muted overflow-hidden rounded-xl\">\n              <UiAspectRatio :ratio=\"1\">\n                <img\n                  :src=\"product.image\"\n                  :alt=\"product.name\"\n                  loading=\"lazy\"\n                  class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n                />\n              </UiAspectRatio>\n            </div>\n            <div class=\"mt-3 flex items-start justify-between gap-2\">\n              <div>\n                <p class=\"text-sm font-medium group-hover:underline\">{{ product.name }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ product.category }}</p>\n              </div>\n              <p class=\"text-sm font-semibold\">{{ money.format(product.price) }}</p>\n            </div>\n          </a>\n        </Motion>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      categories?: string[];\n      products?: Product[];\n    }>(),\n    {\n      title: \"Your cart is empty\",\n      description: \"Looks like you have not added anything yet. Pick up where you left off below.\",\n      categories: () => [\"New arrivals\", \"Best sellers\", \"Footwear\", \"Bags\", \"Home\", \"Sale\"],\n      products: () => [\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          category: \"Clothing\",\n          price: 32,\n          rating: 4.7,\n          reviews: 512,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Sage\", hex: \"#9caf88\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 4,\n          name: \"Studio Over-Ear\",\n          category: \"Audio\",\n          price: 199,\n          compareAt: 249,\n          rating: 4.9,\n          reviews: 341,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Grey\", hex: \"#71717a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 10,\n          name: \"Stoneware Mug\",\n          category: \"Home\",\n          price: 24,\n          rating: 4.8,\n          reviews: 266,\n          colors: [{ name: \"White\", hex: \"#f4f4f5\" }],\n          image:\n            \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 13,\n          name: \"Soy Candle\",\n          category: \"Home\",\n          price: 34,\n          rating: 4.9,\n          reviews: 301,\n          colors: [{ name: \"Amber\", hex: \"#d97706\" }],\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n</script>\n","category":"Cart","description":"Empty cart with product suggestions. Features: Centered empty state with an icon, clear next steps and a wishlist link, popular category chips and a row of suggested products so shoppers always have somewhere to go","path":"Ecommerce/Cart/BlockCart4.vue","components":["aspect-ratio","button","container","empty","fancy-icon"]},{"name":"Cart 5","fileName":"BlockCart5.vue","file":"<template>\n  <!--\n    Mini cart popover for a site header\n    Features: Bag button with an item count badge that opens a popover, scrollable line items with remove buttons, live subtotal, view cart and checkout actions and an empty state\n  -->\n  <UiContainer class=\"py-6\">\n    <header class=\"flex items-center justify-between rounded-xl border px-5 py-3\">\n      <span class=\"text-lg font-semibold tracking-tight\">Alder &amp; Row</span>\n      <nav class=\"text-muted-foreground hidden gap-6 text-sm sm:flex\" aria-label=\"Main\">\n        <a href=\"#\" class=\"hover:text-foreground\">Shop</a>\n        <a href=\"#\" class=\"hover:text-foreground\">Journal</a>\n        <a href=\"#\" class=\"hover:text-foreground\">About</a>\n      </nav>\n\n      <UiPopover v-model:open=\"open\">\n        <UiPopoverTrigger as-child>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon\"\n            class=\"relative\"\n            :aria-label=\"`Open mini cart, ${count} items`\"\n          >\n            <Icon name=\"lucide:shopping-bag\" class=\"size-5\" />\n            <span\n              v-if=\"count\"\n              class=\"bg-primary text-primary-foreground absolute -top-0.5 -right-0.5 grid size-4 place-items-center rounded-full text-[10px] font-semibold\"\n            >\n              {{ count }}\n            </span>\n          </UiButton>\n        </UiPopoverTrigger>\n        <UiPopoverContent align=\"end\" class=\"w-[22rem] p-0\">\n          <div class=\"flex items-center justify-between border-b px-4 py-3\">\n            <h2 class=\"text-sm font-semibold\">Shopping cart</h2>\n            <span class=\"text-muted-foreground text-xs\">{{ count }} items</span>\n          </div>\n\n          <ul v-if=\"items.length\" class=\"max-h-72 divide-y overflow-y-auto px-4\">\n            <li v-for=\"item in items\" :key=\"item.id\" class=\"flex gap-3 py-3\">\n              <img\n                :src=\"item.image\"\n                :alt=\"item.name\"\n                class=\"bg-muted size-14 shrink-0 rounded-md object-cover\"\n              />\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n                <p class=\"text-muted-foreground text-xs\">\n                  {{ item.variant }} · Qty {{ item.quantity }}\n                </p>\n                <p class=\"mt-1 text-sm font-semibold tabular-nums\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n              </div>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-xs\"\n                class=\"text-muted-foreground\"\n                :aria-label=\"`Remove ${item.name}`\"\n                @click=\"remove(item.id)\"\n              >\n                <Icon name=\"lucide:x\" />\n              </UiButton>\n            </li>\n          </ul>\n          <p v-else class=\"text-muted-foreground px-4 py-10 text-center text-sm\">\n            Your cart is empty.\n          </p>\n\n          <div v-if=\"items.length\" class=\"space-y-3 border-t p-4\">\n            <div class=\"flex items-center justify-between text-sm\">\n              <span class=\"text-muted-foreground\">Subtotal</span>\n              <span class=\"font-semibold tabular-nums\" aria-live=\"polite\">\n                {{ money.format(subtotal) }}\n              </span>\n            </div>\n            <div class=\"grid grid-cols-2 gap-2\">\n              <UiButton variant=\"outline\">View cart</UiButton>\n              <UiButton>Checkout</UiButton>\n            </div>\n          </div>\n        </UiPopoverContent>\n      </UiPopover>\n    </header>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      /** Whether the popover starts open. */\n      defaultOpen?: boolean;\n    }>(),\n    {\n      defaultOpen: false,\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 13,\n          name: \"Soy Candle\",\n          variant: \"Amber\",\n          price: 34,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const open = ref(props.defaultOpen);\n  const items = ref<CartItem[]>(props.items.map((item) => ({ ...item })));\n\n  const count = computed(() => items.value.reduce((sum, item) => sum + item.quantity, 0));\n  const subtotal = computed(() =>\n    items.value.reduce((sum, item) => sum + item.price * item.quantity, 0)\n  );\n\n  function remove(id: number) {\n    items.value = items.value.filter((item) => item.id !== id);\n  }\n</script>\n","category":"Cart","description":"Mini cart popover for a site header. Features: Bag button with an item count badge that opens a popover, scrollable line items with remove buttons, live subtotal, view cart and checkout actions and an empty state","path":"Ecommerce/Cart/BlockCart5.vue","components":["button","container","popover"]},{"name":"Cart 6","fileName":"BlockCart6.vue","file":"<template>\n  <!--\n    Cart with add to your order suggestions\n    Features: Cart lines with quantity steppers, a sticky summary, and a row of suggested add ons that move into the cart with one click and update the totals instantly\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">Your cart</h1>\n\n    <div class=\"mt-10 grid gap-10 lg:grid-cols-[1fr_22rem] lg:gap-14\">\n      <div>\n        <ul v-if=\"items.length\" class=\"divide-y border-y\">\n          <li v-for=\"item in items\" :key=\"item.id\" class=\"flex gap-4 py-5\">\n            <img\n              :src=\"item.image\"\n              :alt=\"item.name\"\n              class=\"bg-muted size-24 shrink-0 rounded-xl object-cover\"\n            />\n            <div class=\"flex min-w-0 flex-1 flex-col justify-between\">\n              <div class=\"flex items-start justify-between gap-3\">\n                <div class=\"min-w-0\">\n                  <p class=\"truncate font-medium\">{{ item.name }}</p>\n                  <p class=\"text-muted-foreground text-sm\">{{ item.variant }}</p>\n                </div>\n                <p class=\"font-semibold tabular-nums\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n              </div>\n              <div class=\"flex items-center justify-between\">\n                <UiNumberField v-model=\"item.quantity\" :min=\"1\" :max=\"10\" class=\"w-28\">\n                  <UiNumberFieldDecrement />\n                  <UiNumberFieldInput\n                    class=\"text-center\"\n                    :aria-label=\"`Quantity of ${item.name}`\"\n                  />\n                  <UiNumberFieldIncrement />\n                </UiNumberField>\n                <button\n                  type=\"button\"\n                  class=\"text-muted-foreground hover:text-destructive text-xs underline underline-offset-4\"\n                  @click=\"remove(item.id)\"\n                >\n                  Remove\n                </button>\n              </div>\n            </div>\n          </li>\n        </ul>\n        <p v-else class=\"text-muted-foreground rounded-xl border border-dashed py-12 text-center\">\n          Your cart is empty. Add something from the suggestions below.\n        </p>\n\n        <section v-if=\"available.length\" class=\"mt-12\" aria-labelledby=\"upsell-title\">\n          <h2 id=\"upsell-title\" class=\"text-lg font-semibold\">Add to your order</h2>\n          <ul class=\"mt-4 grid gap-4 sm:grid-cols-3\">\n            <li\n              v-for=\"product in available\"\n              :key=\"product.id\"\n              class=\"flex flex-col rounded-xl border p-3\"\n            >\n              <div class=\"bg-muted overflow-hidden rounded-lg\">\n                <UiAspectRatio :ratio=\"1\">\n                  <img\n                    :src=\"product.image\"\n                    :alt=\"product.name\"\n                    loading=\"lazy\"\n                    class=\"size-full object-cover\"\n                  />\n                </UiAspectRatio>\n              </div>\n              <p class=\"mt-3 text-sm font-medium\">{{ product.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ money.format(product.price) }}</p>\n              <UiButton variant=\"outline\" size=\"sm\" class=\"mt-3\" @click=\"add(product)\">\n                <Icon name=\"lucide:plus\" />\n                Add\n              </UiButton>\n            </li>\n          </ul>\n        </section>\n      </div>\n\n      <aside class=\"lg:sticky lg:top-8 lg:self-start\">\n        <UiCard>\n          <UiCardContent class=\"space-y-4\">\n            <h2 class=\"text-lg font-semibold\">Summary</h2>\n            <dl class=\"space-y-3 text-sm\" aria-live=\"polite\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Items ({{ count }})</dt>\n                <dd class=\"tabular-nums\">{{ money.format(subtotal) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"tabular-nums\">{{ shipping === 0 ? \"Free\" : money.format(shipping) }}</dd>\n              </div>\n              <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n                <dt>Total</dt>\n                <dd class=\"tabular-nums\">{{ money.format(subtotal + shipping) }}</dd>\n              </div>\n            </dl>\n            <UiButton class=\"w-full\" size=\"lg\" :disabled=\"!items.length\">Checkout</UiButton>\n          </UiCardContent>\n        </UiCard>\n      </aside>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      suggestions?: Product[];\n      freeShippingAt?: number;\n      shippingFee?: number;\n    }>(),\n    {\n      freeShippingAt: 75,\n      shippingFee: 8,\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n      suggestions: () => [\n        {\n          id: 10,\n          name: \"Stoneware Mug\",\n          category: \"Home\",\n          price: 24,\n          rating: 4.8,\n          reviews: 266,\n          colors: [{ name: \"White\", hex: \"#f4f4f5\" }],\n          image:\n            \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 14,\n          name: \"Crew Sweatshirt\",\n          category: \"Clothing\",\n          price: 58,\n          rating: 4.4,\n          reviews: 88,\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Grey\", hex: \"#a1a1aa\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 8,\n          name: \"Knit Poncho\",\n          category: \"Clothing\",\n          price: 76,\n          rating: 4.3,\n          reviews: 41,\n          colors: [{ name: \"Cream\", hex: \"#f3e9d2\" }],\n          image:\n            \"https://images.unsplash.com/photo-1434389677669-e08b4cac3105?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const items = ref<CartItem[]>(props.items.map((item) => ({ ...item })));\n\n  const available = computed(() =>\n    props.suggestions.filter((product) => !items.value.some((item) => item.id === product.id))\n  );\n  const count = computed(() => items.value.reduce((sum, item) => sum + item.quantity, 0));\n  const subtotal = computed(() =>\n    items.value.reduce((sum, item) => sum + item.price * item.quantity, 0)\n  );\n  const shipping = computed(() =>\n    subtotal.value >= props.freeShippingAt || !items.value.length ? 0 : props.shippingFee\n  );\n\n  function add(product: Product) {\n    items.value.push({\n      id: product.id,\n      name: product.name,\n      variant: product.colors[0]?.name ?? product.category,\n      price: product.price,\n      quantity: 1,\n      image: product.image,\n      href: product.href,\n    });\n  }\n\n  function remove(id: number) {\n    items.value = items.value.filter((item) => item.id !== id);\n  }\n</script>\n","category":"Cart","description":"Cart with add to your order suggestions. Features: Cart lines with quantity steppers, a sticky summary, and a row of suggested add ons that move into the cart with one click and update the totals instantly","path":"Ecommerce/Cart/BlockCart6.vue","components":["aspect-ratio","button","card","container","number-field"]},{"name":"Chart Bar","fileName":"BlockChartBar.client.vue","file":"<template>\n  <div class=\"h-[550px] w-full\">\n    <UiApexchart width=\"100%\" height=\"100%\" type=\"bar\" :options=\"options\" :series=\"series\" />\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n\n  const series: ApexOptions[\"series\"] = [\n    {\n      name: \"Series 1\",\n      data: [500, 1200, 250, 750, 900, 1800, 350, 650, 2100, 300, 800, 1600],\n      color: \"var(--color-violet-400)\", // Example color\n    },\n    {\n      name: \"Series 2\",\n      data: [50, 25, 70, 10, 2000, 100, 5, 150, 180, 300, 120, 800],\n      color: \"var(--color-violet-700)\", // Example color\n    },\n    {\n      name: \"Series 3\",\n      data: [300, 150, 250, 50, 80, 200, 400, 100, 120, 10, 500, 300],\n      color: \"var(--color-violet-900)\", // Example color\n    },\n  ];\n\n  const options: ApexOptions = {\n    plotOptions: {\n      bar: {\n        horizontal: true,\n        borderRadius: 2,\n        borderRadiusApplication: \"end\",\n      },\n    },\n    tooltip: {},\n    legend: {\n      fontFamily: \"inherit\",\n      fontWeight: 500,\n      offsetY: 5,\n      labels: {\n        colors: \"var(--color-muted-foreground)\",\n      },\n    },\n    dataLabels: {\n      enabled: false,\n    },\n    grid: {\n      borderColor: \"var(--color-border)\",\n    },\n    chart: {\n      toolbar: {\n        show: window.innerWidth > 768,\n      },\n    },\n    yaxis: {\n      title: {\n        text: window.innerWidth > 768 ? \"Active users\" : \"\",\n        offsetX: 5,\n        style: {\n          fontWeight: 600,\n          fontFamily: \"inherit\",\n          color: \"var(--color-muted-foreground)\",\n        },\n      },\n      labels: {\n        style: {\n          colors: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n      axisBorder: {\n        show: true,\n        color: \"var(--color-border)\",\n      },\n    },\n    xaxis: {\n      title: {\n        text: window.innerWidth > 768 ? \"Months\" : \"\",\n        offsetY: -2,\n        style: {\n          fontWeight: 600,\n          color: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n      labels: {\n        style: {\n          colors: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n      axisBorder: {\n        show: true,\n        color: \"var(--color-border)\",\n      },\n      axisTicks: {\n        show: true,\n        color: \"var(--color-border)\",\n      },\n      categories: [\n        \"Jan\",\n        \"Feb\",\n        \"Mar\",\n        \"Apr\",\n        \"May\",\n        \"Jun\",\n        \"Jul\",\n        \"Aug\",\n        \"Sep\",\n        \"Oct\",\n        \"Nov\",\n        \"Dec\",\n      ],\n    },\n  };\n</script>\n","category":"Chart","description":null,"path":"Chart/BlockChartBar.client.vue","components":["apexcharts"]},{"name":"Chart Bubble","fileName":"BlockChartBubble.client.vue","file":"<template>\n  <div class=\"h-[550px] w-full\">\n    <UiApexchart width=\"100%\" height=\"100%\" type=\"bubble\" :options=\"options\" :series=\"series\" />\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n\n  function generateData(baseval: number, count: number, yrange: { min: number; max: number }) {\n    let i = 0;\n    const series = [];\n    while (i < count) {\n      const x = Math.floor(Math.random() * (750 - 1 + 1)) + 1;\n      const y = Math.floor(Math.random() * (yrange.max - yrange.min + 1)) + yrange.min;\n      const z = Math.floor(Math.random() * (75 - 15 + 1)) + 15;\n\n      series.push([x, y, z]);\n      baseval += 86400000;\n      i++;\n    }\n    return series;\n  }\n  const series: ApexOptions[\"series\"] = [\n    {\n      name: \"Series 1\",\n      data: generateData(new Date(\"11 Feb 2017 GMT\").getTime(), 20, {\n        min: 10,\n        max: 60,\n      }),\n      color: \"var(--color-violet-400)\", // Example color\n    },\n    {\n      name: \"Series 2\",\n      data: generateData(new Date(\"11 Feb 2017 GMT\").getTime(), 20, {\n        min: 10,\n        max: 60,\n      }),\n      color: \"var(--color-violet-700)\", // Example color\n    },\n    {\n      name: \"Series 3\",\n      data: generateData(new Date(\"11 Feb 2017 GMT\").getTime(), 20, {\n        min: 10,\n        max: 60,\n      }),\n      color: \"var(--color-violet-900)\", // Example color\n    },\n  ];\n\n  const options: ApexOptions = {\n    legend: {\n      fontFamily: \"inherit\",\n      fontWeight: 500,\n      offsetY: 5,\n      labels: {\n        colors: \"var(--color-muted-foreground)\",\n      },\n    },\n    dataLabels: {\n      enabled: false,\n    },\n    fill: {\n      type: \"gradient\",\n    },\n    grid: {\n      borderColor: \"var(--color-border)\",\n    },\n    chart: {\n      toolbar: {\n        show: window.innerWidth > 768,\n      },\n    },\n    yaxis: {\n      labels: {\n        style: {\n          colors: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n    },\n    markers: {\n      strokeWidth: 0,\n    },\n    xaxis: {\n      title: {\n        style: {\n          fontWeight: 600,\n          fontFamily: \"inherit\",\n          color: \"var(--color-muted-foreground)\",\n        },\n      },\n      labels: {\n        style: {\n          colors: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n      axisBorder: {\n        show: true,\n        color: \"var(--color-border)\",\n      },\n      axisTicks: {\n        show: true,\n        color: \"var(--color-border)\",\n      },\n    },\n  };\n</script>\n","category":"Chart","description":null,"path":"Chart/BlockChartBubble.client.vue","components":["apexcharts"]},{"name":"Chart Donut","fileName":"BlockChartDonut.client.vue","file":"<template>\n  <div class=\"h-[550px] w-full\">\n    <UiApexchart width=\"100%\" height=\"100%\" type=\"donut\" :options=\"options\" :series=\"series\" />\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n\n  const series: ApexOptions[\"series\"] = [70, 30, 60];\n\n  const options: ApexOptions = {\n    plotOptions: {\n      pie: {\n        dataLabels: {\n          minAngleToShowLabel: 50,\n        },\n        donut: {\n          labels: {},\n          size: \"50px\",\n        },\n        expandOnClick: true,\n      },\n    },\n    dataLabels: {\n      style: {\n        fontWeight: 400,\n        fontFamily: \"inherit\",\n      },\n    },\n    legend: {\n      fontFamily: \"inherit\",\n      fontWeight: 500,\n      show: true,\n      position: \"bottom\",\n      labels: {\n        colors: \"var(--color-muted-foreground)\",\n      },\n    },\n    stroke: {\n      colors: [\"transparent\"],\n    },\n    colors: [\"var(--color-violet-400)\", \"var(--color-violet-700)\", \"var(--color-violet-900)\"],\n    chart: {\n      toolbar: {\n        show: window.innerWidth > 768,\n      },\n    },\n    labels: [\"Apples\", \"Oranges\", \"Bananas\"],\n  };\n</script>\n","category":"Chart","description":null,"path":"Chart/BlockChartDonut.client.vue","components":["apexcharts"]},{"name":"Chart Line","fileName":"BlockChartLine.client.vue","file":"<template>\n  <div class=\"h-[550px] w-full\">\n    <UiApexchart width=\"100%\" height=\"100%\" type=\"line\" :options=\"options\" :series=\"series\" />\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n\n  const series: ApexOptions[\"series\"] = [\n    {\n      name: \"Series 1\",\n      data: [500, 1200, 250, 750, 900, 1800, 350, 650, 2100, 300, 800, 1600],\n      color: \"var(--color-violet-400)\", // Example color\n    },\n    {\n      name: \"Series 2\",\n      data: [50, 25, 70, 10, 2000, 100, 5, 150, 180, 3000, 120, 800],\n      color: \"var(--color-violet-700)\", // Example color\n    },\n    {\n      name: \"Series 3\",\n      data: [3000, 150, 2500, 50, 800, 200, 400, 1000, 1200, 10, 5000, 300],\n      color: \"var(--color-violet-900)\", // Example color\n    },\n  ];\n\n  const options: ApexOptions = {\n    stroke: {\n      width: 3,\n      curve: \"smooth\",\n      lineCap: \"round\",\n    },\n    legend: {\n      fontFamily: \"inherit\",\n      fontWeight: 500,\n      offsetY: 5,\n      labels: {\n        colors: \"var(--color-muted-foreground)\",\n      },\n    },\n    grid: {\n      borderColor: \"var(--color-border)\",\n    },\n    chart: {\n      toolbar: {\n        show: window.innerWidth > 768,\n      },\n    },\n    yaxis: {\n      title: {\n        text: window.innerWidth > 768 ? \"Active users\" : \"\",\n        offsetX: 5,\n        style: {\n          fontWeight: 600,\n          fontSize: \"13px\",\n          color: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n      labels: {\n        style: {\n          colors: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n    },\n    xaxis: {\n      title: {\n        text: window.innerWidth > 768 ? \"Months\" : \"\",\n        offsetY: -2,\n        style: {\n          fontWeight: 600,\n          fontSize: \"13px\",\n          color: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n      labels: {\n        style: {\n          colors: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n\n      categories: [\n        \"Jan\",\n        \"Feb\",\n        \"Mar\",\n        \"Apr\",\n        \"May\",\n        \"Jun\",\n        \"Jul\",\n        \"Aug\",\n        \"Sep\",\n        \"Oct\",\n        \"Nov\",\n        \"Dec\",\n      ],\n    },\n  };\n</script>\n","category":"Chart","description":null,"path":"Chart/BlockChartLine.client.vue","components":["apexcharts"]},{"name":"Chart Pie","fileName":"BlockChartPie.client.vue","file":"<template>\n  <div class=\"h-[550px] w-full\">\n    <UiApexchart width=\"100%\" height=\"100%\" type=\"pie\" :options=\"options\" :series=\"series\" />\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n\n  const series: ApexOptions[\"series\"] = [70, 30, 60];\n\n  const options: ApexOptions = {\n    plotOptions: {\n      pie: {\n        dataLabels: {\n          minAngleToShowLabel: 50,\n          offset: -10,\n        },\n        expandOnClick: true,\n      },\n    },\n    legend: {\n      fontFamily: \"inherit\",\n      fontWeight: 500,\n      show: true,\n      position: \"bottom\",\n      labels: {\n        colors: \"var(--color-muted-foreground)\",\n      },\n    },\n    stroke: {\n      lineCap: \"round\",\n      colors: [\"transparent\"],\n      width: 2,\n    },\n    colors: [\"var(--color-violet-400)\", \"var(--color-violet-700)\", \"var(--color-violet-900)\"],\n    chart: {\n      toolbar: {\n        show: window.innerWidth > 768,\n      },\n    },\n    labels: [\"Apples\", \"Oranges\", \"Bananas\"],\n  };\n</script>\n","category":"Chart","description":null,"path":"Chart/BlockChartPie.client.vue","components":["apexcharts"]},{"name":"Chart Radar","fileName":"BlockChartRadar.client.vue","file":"<template>\n  <div class=\"h-[550px] w-full\">\n    <UiApexchart width=\"100%\" height=\"100%\" type=\"radar\" :options=\"options\" :series=\"series\" />\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n\n  const series: ApexOptions[\"series\"] = [\n    {\n      name: \"Series 2\",\n      data: [50, 25, 70, 10, 20, 100, 5, 150, 180, 300, 120, 200],\n      color: \"var(--color-violet-700)\", // Example color\n    },\n    {\n      name: \"Series 3\",\n      data: [300, 150, 250, 50, 80, 200, 400, 100, 120, 10, 500, 300],\n      color: \"var(--color-violet-900)\", // Example color\n    },\n  ];\n\n  const options: ApexOptions = {\n    plotOptions: {\n      radar: {\n        polygons: {\n          connectorColors: \"var(--color-border)\",\n          strokeColors: \"var(--color-border)\",\n        },\n      },\n    },\n    legend: {\n      fontFamily: \"inherit\",\n      fontWeight: 500,\n      offsetY: 5,\n      labels: {\n        colors: \"var(--color-muted-foreground)\",\n      },\n    },\n    stroke: { show: false },\n    markers: {\n      strokeWidth: 1,\n      strokeColors: [\"var(--color-border)\"],\n    },\n    chart: {\n      toolbar: {\n        show: window.innerWidth > 768,\n      },\n    },\n    tooltip: {\n      intersect: false,\n    },\n    yaxis: {\n      labels: {\n        style: {\n          fontSize: \"12px\",\n          colors: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n    },\n    xaxis: {\n      labels: {\n        style: {\n          colors: \"var(--color-muted-foreground)\",\n          fontFamily: \"inherit\",\n        },\n      },\n      categories: [\n        \"Jan\",\n        \"Feb\",\n        \"Mar\",\n        \"Apr\",\n        \"May\",\n        \"Jun\",\n        \"Jul\",\n        \"Aug\",\n        \"Sep\",\n        \"Oct\",\n        \"Nov\",\n        \"Dec\",\n      ],\n    },\n  };\n</script>\n","category":"Chart","description":null,"path":"Chart/BlockChartRadar.client.vue","components":["apexcharts"]},{"name":"Chart Radial Bar","fileName":"BlockChartRadialBar.client.vue","file":"<template>\n  <div class=\"h-[550px] w-full\">\n    <UiApexchart width=\"100%\" height=\"100%\" type=\"radialBar\" :options=\"options\" :series=\"series\" />\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n\n  const series: ApexOptions[\"series\"] = [70, 30, 60];\n\n  const options: ApexOptions = {\n    plotOptions: {\n      radialBar: {\n        track: {\n          background: \"rgba(var(--gray100),1)\",\n        },\n        dataLabels: {\n          name: {\n            fontFamily: \"inherit\",\n            fontWeight: 600,\n            fontSize: \"24px\",\n          },\n          total: {\n            show: true,\n            label: \"Total\",\n            fontFamily: \"inherit\",\n            fontWeight: 600,\n            fontSize: \"24px\",\n            formatter(opts) {\n              const total = opts.config?.series\n                ?.filter((value): value is number => typeof value === \"number\")\n                .reduce((acc, cur) => acc + cur, 0);\n              if (!total) return \"0\";\n              return Number(total / (opts.config?.series?.length ?? 1)).toFixed(2) + \"%\";\n            },\n          },\n          value: {\n            fontFamily: \"inherit\",\n            fontSize: \"16px\",\n            color: \"var(--color-muted-foreground)\",\n            formatter(val) {\n              return Number(val).toFixed(0) + \"%\";\n            },\n          },\n        },\n      },\n    },\n    legend: {\n      fontFamily: \"inherit\",\n      fontWeight: 500,\n      show: true,\n      position: \"bottom\",\n      labels: {\n        colors: \"var(--color-muted-foreground)\",\n      },\n    },\n    stroke: {\n      lineCap: \"round\",\n    },\n    colors: [\"var(--color-violet-400)\", \"var(--color-violet-700)\", \"var(--color-violet-900)\"],\n\n    chart: {\n      toolbar: {\n        show: window.innerWidth > 768,\n      },\n    },\n    labels: [\"Apples\", \"Oranges\", \"Bananas\"],\n  };\n</script>\n","category":"Chart","description":null,"path":"Chart/BlockChartRadialBar.client.vue","components":["apexcharts"]},{"name":"Checklist 1","fileName":"BlockChecklist1.vue","file":"<template>\n  <!--\n    Getting started checklist card\n    Features: Progress bar with a count, checkbox for every task, task descriptions and a call to action on the next task, completed tasks struck through and an all done message\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <UiCard class=\"mx-auto max-w-xl\">\n      <UiCardHeader>\n        <UiCardTitle>{{ title }}</UiCardTitle>\n        <UiCardDescription>{{ description }}</UiCardDescription>\n        <div class=\"mt-3 flex items-center gap-3\">\n          <UiProgress :model-value=\"percent\" class=\"h-2\" aria-label=\"Checklist progress\" />\n          <span\n            class=\"text-muted-foreground text-sm whitespace-nowrap tabular-nums\"\n            aria-live=\"polite\"\n          >\n            {{ done }} of {{ tasks.length }}\n          </span>\n        </div>\n      </UiCardHeader>\n      <UiCardContent>\n        <ul class=\"divide-y\">\n          <li v-for=\"task in tasks\" :key=\"task.id\" class=\"flex items-start gap-3 py-4\">\n            <UiCheckbox\n              :id=\"`task-${task.id}`\"\n              class=\"mt-0.5 rounded-full\"\n              :model-value=\"task.done\"\n              @update:model-value=\"task.done = Boolean($event)\"\n            />\n            <div class=\"min-w-0 flex-1\">\n              <UiLabel\n                :for=\"`task-${task.id}`\"\n                class=\"cursor-pointer font-medium\"\n                :class=\"task.done ? 'text-muted-foreground line-through' : ''\"\n              >\n                {{ task.title }}\n              </UiLabel>\n              <p v-if=\"!task.done\" class=\"text-muted-foreground mt-1 text-sm\">\n                {{ task.description }}\n              </p>\n              <UiButton\n                v-if=\"task.id === next?.id\"\n                size=\"sm\"\n                class=\"mt-3\"\n                @click=\"useSonner.info(`Opening: ${task.title}`)\"\n              >\n                {{ task.action }}\n                <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n              </UiButton>\n            </div>\n          </li>\n        </ul>\n        <p\n          v-if=\"!next\"\n          class=\"mt-4 flex items-center gap-2 rounded-lg bg-green-500/10 p-3 text-sm text-green-700 dark:text-green-400\"\n          role=\"status\"\n        >\n          <Icon name=\"lucide:party-popper\" class=\"size-4\" />\n          Everything is done. Nice work!\n        </p>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Task = { id: string; title: string; description: string; action: string; done: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      items?: Task[];\n    }>(),\n    {\n      title: \"Get started with Acme\",\n      description: \"Five quick steps to get the most out of your workspace.\",\n      items: () => [\n        {\n          id: \"profile\",\n          title: \"Complete your profile\",\n          description: \"Add a photo and your job title.\",\n          action: \"Edit profile\",\n          done: true,\n        },\n        {\n          id: \"project\",\n          title: \"Create your first project\",\n          description: \"Start from scratch or use a template.\",\n          action: \"New project\",\n          done: true,\n        },\n        {\n          id: \"invite\",\n          title: \"Invite a teammate\",\n          description: \"Projects are better with company.\",\n          action: \"Invite people\",\n          done: false,\n        },\n        {\n          id: \"integrate\",\n          title: \"Connect an integration\",\n          description: \"Sync with Slack, GitHub or Google Calendar.\",\n          action: \"Browse integrations\",\n          done: false,\n        },\n        {\n          id: \"publish\",\n          title: \"Publish your first update\",\n          description: \"Share progress with your team.\",\n          action: \"Write an update\",\n          done: false,\n        },\n      ],\n    }\n  );\n\n  const tasks = ref<Task[]>(props.items.map((item) => ({ ...item })));\n\n  const done = computed(() => tasks.value.filter((task) => task.done).length);\n  const percent = computed(() => (done.value / tasks.value.length) * 100);\n  const next = computed(() => tasks.value.find((task) => !task.done));\n</script>\n","category":"Checklist","description":"Getting started checklist card. Features: Progress bar with a count, checkbox for every task, task descriptions and a call to action on the next task, completed tasks struck through and an all done message","path":"Onboarding/Checklist/BlockChecklist1.vue","components":["button","card","checkbox","container","label","progress"]},{"name":"Checklist 2","fileName":"BlockChecklist2.vue","file":"<template>\n  <!--\n    Setup progress ring with a task list\n    Features: Large circular progress with a percentage, task list with status icons, the current task highlighted, mark complete buttons and a reset link\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto grid max-w-3xl items-center gap-10 md:grid-cols-[auto_1fr]\">\n      <div class=\"flex flex-col items-center text-center\">\n        <UiCircularProgress\n          :current-step=\"done\"\n          :total-steps=\"tasks.length\"\n          size=\"xl\"\n          :radius=\"52\"\n          :stroke-width=\"8\"\n          show-value\n          aria-label=\"Setup progress\"\n        />\n        <p class=\"mt-6 text-lg font-semibold\">\n          {{ done === tasks.length ? \"All set!\" : \"Almost there\" }}\n        </p>\n        <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n          {{ done }} of {{ tasks.length }} steps done\n        </p>\n        <UiButton variant=\"link\" size=\"sm\" class=\"mt-2\" @click=\"reset\">Reset</UiButton>\n      </div>\n\n      <ol class=\"space-y-3\">\n        <li\n          v-for=\"(task, index) in tasks\"\n          :key=\"task.title\"\n          class=\"flex items-center gap-4 rounded-xl border p-4 transition\"\n          :class=\"index === currentIndex ? 'border-primary bg-primary/5' : ''\"\n          :aria-current=\"index === currentIndex ? 'step' : undefined\"\n        >\n          <span\n            class=\"grid size-8 shrink-0 place-items-center rounded-full\"\n            :class=\"task.done ? 'bg-green-500 text-white' : 'bg-muted text-muted-foreground'\"\n          >\n            <Icon :name=\"task.done ? 'lucide:check' : task.icon\" class=\"size-4\" />\n          </span>\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"font-medium\" :class=\"task.done ? 'text-muted-foreground line-through' : ''\">\n              {{ task.title }}\n            </p>\n            <p class=\"text-muted-foreground text-sm\">{{ task.hint }}</p>\n          </div>\n          <UiButton\n            v-if=\"!task.done\"\n            size=\"sm\"\n            :variant=\"index === currentIndex ? 'default' : 'outline'\"\n            :aria-label=\"`Mark done: ${task.title}`\"\n            @click=\"task.done = true\"\n          >\n            Mark done\n          </UiButton>\n        </li>\n      </ol>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Task = { title: string; hint: string; icon: string; done: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Task[];\n    }>(),\n    {\n      items: () => [\n        {\n          title: \"Verify your email\",\n          hint: \"Confirms it is really you.\",\n          icon: \"lucide:mail-check\",\n          done: true,\n        },\n        {\n          title: \"Add a payment method\",\n          hint: \"Only needed when you upgrade.\",\n          icon: \"lucide:credit-card\",\n          done: false,\n        },\n        {\n          title: \"Set up two factor\",\n          hint: \"Keep your account safe.\",\n          icon: \"lucide:shield-check\",\n          done: false,\n        },\n        {\n          title: \"Customize your theme\",\n          hint: \"Pick colors that fit your brand.\",\n          icon: \"lucide:palette\",\n          done: false,\n        },\n      ],\n    }\n  );\n\n  const tasks = ref<Task[]>(props.items.map((item) => ({ ...item })));\n\n  const done = computed(() => tasks.value.filter((task) => task.done).length);\n  const currentIndex = computed(() => tasks.value.findIndex((task) => !task.done));\n\n  function reset() {\n    tasks.value = props.items.map((item) => ({ ...item }));\n  }\n</script>\n","category":"Checklist","description":"Setup progress ring with a task list. Features: Large circular progress with a percentage, task list with status icons, the current task highlighted, mark complete buttons and a reset link","path":"Onboarding/Checklist/BlockChecklist2.vue","components":["button","circular-progress","container"]},{"name":"Checklist 3","fileName":"BlockChecklist3.vue","file":"<template>\n  <!--\n    Collapsible checklist widget\n    Features: Floating style widget with a header that collapses and expands, progress bar always visible, expandable task details, minimise and close buttons and a restore button after closing\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto flex max-w-md justify-center\">\n      <UiCollapsible\n        v-if=\"!closed\"\n        v-model:open=\"open\"\n        class=\"bg-card w-full rounded-xl border shadow-lg\"\n      >\n        <div class=\"flex items-center gap-3 p-4\">\n          <UiCircularProgress\n            :current-step=\"done\"\n            :total-steps=\"tasks.length\"\n            size=\"sm\"\n            aria-label=\"Checklist progress\"\n          />\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"text-sm font-semibold\">Setup guide</p>\n            <p class=\"text-muted-foreground text-xs\" aria-live=\"polite\">\n              {{ done }} of {{ tasks.length }} complete\n            </p>\n          </div>\n          <UiCollapsibleTrigger as-child>\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              :aria-label=\"open ? 'Minimise setup guide' : 'Expand setup guide'\"\n            >\n              <Icon\n                name=\"lucide:chevron-down\"\n                class=\"size-4 transition-transform\"\n                :class=\"open ? '' : 'rotate-180'\"\n              />\n            </UiButton>\n          </UiCollapsibleTrigger>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            aria-label=\"Close setup guide\"\n            @click=\"closed = true\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </UiButton>\n        </div>\n        <UiProgress\n          :model-value=\"(done / tasks.length) * 100\"\n          class=\"h-1 rounded-none\"\n          aria-hidden=\"true\"\n        />\n        <UiCollapsibleContent>\n          <ul class=\"divide-y\">\n            <li v-for=\"task in tasks\" :key=\"task.id\">\n              <button\n                type=\"button\"\n                class=\"hover:bg-muted/50 focus-visible:ring-ring/50 flex w-full items-center gap-3 px-4 py-3 text-left outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n                :aria-expanded=\"expanded === task.id\"\n                :aria-controls=\"`task-panel-${task.id}`\"\n                @click=\"expanded = expanded === task.id ? '' : task.id\"\n              >\n                <span\n                  class=\"grid size-5 shrink-0 place-items-center rounded-full border\"\n                  :class=\"task.done ? 'border-green-500 bg-green-500 text-white' : ''\"\n                >\n                  <Icon v-if=\"task.done\" name=\"lucide:check\" class=\"size-3\" />\n                </span>\n                <span\n                  class=\"flex-1 text-sm font-medium\"\n                  :class=\"task.done ? 'text-muted-foreground line-through' : ''\"\n                >\n                  {{ task.title }}\n                </span>\n              </button>\n              <div\n                v-if=\"expanded === task.id\"\n                :id=\"`task-panel-${task.id}`\"\n                class=\"px-4 pb-4 pl-12\"\n              >\n                <p class=\"text-muted-foreground text-sm\">{{ task.description }}</p>\n                <UiButton v-if=\"!task.done\" size=\"sm\" class=\"mt-3\" @click=\"task.done = true\">\n                  Mark as done\n                </UiButton>\n              </div>\n            </li>\n          </ul>\n        </UiCollapsibleContent>\n      </UiCollapsible>\n      <UiButton v-else variant=\"outline\" @click=\"closed = false\">\n        <Icon name=\"lucide:list-checks\" class=\"size-4\" />\n        Show setup guide\n      </UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Task = { id: string; title: string; description: string; done: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Task[];\n    }>(),\n    {\n      items: () => [\n        {\n          id: \"a\",\n          title: \"Create a project\",\n          description: \"Projects hold your tasks, files and conversations.\",\n          done: true,\n        },\n        {\n          id: \"b\",\n          title: \"Add your first task\",\n          description: \"Break the work into small, finishable pieces.\",\n          done: false,\n        },\n        {\n          id: \"c\",\n          title: \"Invite your team\",\n          description: \"Share the project so everyone stays in sync.\",\n          done: false,\n        },\n        {\n          id: \"d\",\n          title: \"Turn on notifications\",\n          description: \"Never miss a mention or a deadline.\",\n          done: false,\n        },\n      ],\n    }\n  );\n\n  const tasks = ref<Task[]>(props.items.map((item) => ({ ...item })));\n  const open = ref(true);\n  const closed = ref(false);\n  const expanded = ref(\"\");\n\n  const done = computed(() => tasks.value.filter((task) => task.done).length);\n</script>\n","category":"Checklist","description":"Collapsible checklist widget. Features: Floating style widget with a header that collapses and expands, progress bar always visible, expandable task details, minimise and close buttons and a restore button after closing","path":"Onboarding/Checklist/BlockChecklist3.vue","components":["button","circular-progress","collapsible","container","progress"]},{"name":"Checklist 4","fileName":"BlockChecklist4.vue","file":"<template>\n  <!--\n    Milestone trail with rewards\n    Features: Horizontal trail of milestones with locked, current and done states, a badge reward per milestone, progress line that fills as you go and a button that completes the current milestone\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-4xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n      <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n      <ol class=\"relative mt-12 grid gap-8 md:grid-cols-4 md:gap-4\">\n        <div\n          class=\"bg-border absolute top-6 right-[12.5%] left-[12.5%] hidden h-0.5 md:block\"\n          aria-hidden=\"true\"\n        >\n          <div\n            class=\"bg-primary h-full transition-all duration-500\"\n            :style=\"{ width: `${(Math.max(reached - 1, 0) / (milestones.length - 1)) * 100}%` }\"\n          />\n        </div>\n        <li\n          v-for=\"(milestone, index) in milestones\"\n          :key=\"milestone.title\"\n          class=\"relative flex items-center gap-4 md:flex-col md:text-center\"\n          :aria-current=\"index + 1 === reached + 1 ? 'step' : undefined\"\n        >\n          <span\n            class=\"relative z-10 grid size-12 shrink-0 place-items-center rounded-full border-2 transition\"\n            :class=\"\n              index < reached\n                ? 'bg-primary text-primary-foreground border-primary'\n                : index === reached\n                  ? 'bg-background border-primary text-primary'\n                  : 'bg-background text-muted-foreground'\n            \"\n          >\n            <Icon\n              :name=\"\n                index < reached\n                  ? 'lucide:check'\n                  : index === reached\n                    ? milestone.icon\n                    : 'lucide:lock'\n              \"\n              class=\"size-5\"\n            />\n          </span>\n          <div class=\"md:mt-3\">\n            <p class=\"font-semibold\" :class=\"index > reached ? 'text-muted-foreground' : ''\">\n              {{ milestone.title }}\n            </p>\n            <p class=\"text-muted-foreground text-sm\">{{ milestone.description }}</p>\n            <UiBadge\n              v-if=\"index < reached\"\n              class=\"mt-2\"\n              variant=\"soft\"\n              color=\"amber\"\n              shape=\"pill\"\n              icon=\"lucide:award\"\n            >\n              {{ milestone.reward }}\n            </UiBadge>\n          </div>\n        </li>\n      </ol>\n\n      <div class=\"mt-12 flex items-center justify-center gap-3\">\n        <UiButton :disabled=\"reached >= milestones.length\" @click=\"reached++\">\n          {{\n            reached >= milestones.length\n              ? \"All milestones reached\"\n              : `Complete “${milestones[reached]?.title}”`\n          }}\n        </UiButton>\n        <UiButton variant=\"ghost\" :disabled=\"!reached\" @click=\"reached = 0\">Reset</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Milestone = { title: string; description: string; icon: string; reward: string };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      milestones?: Milestone[];\n    }>(),\n    {\n      title: \"Your journey\",\n      description: \"Hit each milestone to unlock a badge and new features.\",\n      milestones: () => [\n        {\n          title: \"First project\",\n          description: \"Create something.\",\n          icon: \"lucide:folder-plus\",\n          reward: \"Builder\",\n        },\n        {\n          title: \"First teammate\",\n          description: \"Invite a colleague.\",\n          icon: \"lucide:user-plus\",\n          reward: \"Collaborator\",\n        },\n        {\n          title: \"First automation\",\n          description: \"Save an hour a week.\",\n          icon: \"lucide:workflow\",\n          reward: \"Optimizer\",\n        },\n        {\n          title: \"First launch\",\n          description: \"Share it with the world.\",\n          icon: \"lucide:rocket\",\n          reward: \"Maker\",\n        },\n      ],\n    }\n  );\n\n  const reached = ref(1);\n</script>\n","category":"Checklist","description":"Milestone trail with rewards. Features: Horizontal trail of milestones with locked, current and done states, a badge reward per milestone, progress line that fills as you go and a button that completes the current milestone","path":"Onboarding/Checklist/BlockChecklist4.vue","components":["badge","button","container"]},{"name":"Checklist 5","fileName":"BlockChecklist5.vue","file":"<template>\n  <!--\n    Tip carousel for new users\n    Features: One tip at a time with an icon, previous and next buttons, numbered dots, a keyboard shortcut hint, got it button that removes the tip and an empty state when all tips are read\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-md\">\n      <UiCard\n        v-if=\"tips.length\"\n        role=\"region\"\n        aria-roledescription=\"carousel\"\n        aria-label=\"Tips and tricks\"\n      >\n        <UiCardHeader>\n          <div class=\"flex items-center gap-2\">\n            <span class=\"grid size-8 place-items-center rounded-lg bg-amber-500/15 text-amber-600\">\n              <Icon name=\"lucide:lightbulb\" class=\"size-4\" />\n            </span>\n            <UiCardTitle class=\"text-base\">Tip {{ index + 1 }} of {{ tips.length }}</UiCardTitle>\n          </div>\n        </UiCardHeader>\n        <UiCardContent aria-live=\"polite\">\n          <h2 class=\"text-lg font-semibold\">{{ tip!.title }}</h2>\n          <p class=\"text-muted-foreground mt-2\">{{ tip!.body }}</p>\n          <p v-if=\"tip!.shortcut\" class=\"mt-4 flex items-center gap-2 text-sm\">\n            Try it:\n            <UiKbd v-for=\"key in tip!.shortcut\" :key=\"key\">{{ key }}</UiKbd>\n          </p>\n        </UiCardContent>\n        <UiCardFooter class=\"justify-between\">\n          <div class=\"flex gap-1\">\n            <UiButton\n              variant=\"outline\"\n              size=\"icon-sm\"\n              aria-label=\"Previous tip\"\n              :disabled=\"tips.length < 2\"\n              @click=\"go(-1)\"\n            >\n              <Icon name=\"lucide:chevron-left\" class=\"size-4\" />\n            </UiButton>\n            <UiButton\n              variant=\"outline\"\n              size=\"icon-sm\"\n              aria-label=\"Next tip\"\n              :disabled=\"tips.length < 2\"\n              @click=\"go(1)\"\n            >\n              <Icon name=\"lucide:chevron-right\" class=\"size-4\" />\n            </UiButton>\n          </div>\n          <div class=\"flex gap-1.5\" aria-hidden=\"true\">\n            <span\n              v-for=\"(item, i) in tips\"\n              :key=\"item.title\"\n              class=\"size-1.5 rounded-full transition\"\n              :class=\"i === index ? 'bg-primary' : 'bg-muted-foreground/30'\"\n            />\n          </div>\n          <UiButton size=\"sm\" @click=\"dismiss\">Got it</UiButton>\n        </UiCardFooter>\n      </UiCard>\n      <div\n        v-else\n        class=\"flex flex-col items-center rounded-xl border border-dashed p-10 text-center\"\n        role=\"status\"\n      >\n        <Icon name=\"lucide:graduation-cap\" class=\"text-muted-foreground size-8\" />\n        <p class=\"mt-3 font-medium\">You have read every tip</p>\n        <UiButton class=\"mt-4\" variant=\"outline\" size=\"sm\" @click=\"restore\"\n          >Show tips again</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Tip = { title: string; body: string; shortcut?: string[] };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Tip[];\n    }>(),\n    {\n      items: () => [\n        {\n          title: \"Jump anywhere\",\n          body: \"Open the command menu to search projects, people and settings from one place.\",\n          shortcut: [\"Ctrl\", \"K\"],\n        },\n        {\n          title: \"Create faster\",\n          body: \"Press the shortcut anywhere to add a new task without leaving your page.\",\n          shortcut: [\"C\"],\n        },\n        {\n          title: \"Use templates\",\n          body: \"Save a project as a template and start your next one in seconds.\",\n        },\n        {\n          title: \"Collaborate in real time\",\n          body: \"Mention a teammate with the at sign and they will be notified straight away.\",\n          shortcut: [\"@\"],\n        },\n      ],\n    }\n  );\n\n  const tips = ref<Tip[]>(props.items.map((item) => ({ ...item })));\n  const index = ref(0);\n\n  const tip = computed(() => tips.value[index.value]);\n\n  function go(step: number) {\n    index.value = (index.value + step + tips.value.length) % tips.value.length;\n  }\n\n  function dismiss() {\n    tips.value.splice(index.value, 1);\n    index.value = Math.min(index.value, Math.max(tips.value.length - 1, 0));\n  }\n\n  function restore() {\n    tips.value = props.items.map((item) => ({ ...item }));\n    index.value = 0;\n  }\n</script>\n","category":"Checklist","description":"Tip carousel for new users. Features: One tip at a time with an icon, previous and next buttons, numbered dots, a keyboard shortcut hint, got it button that removes the tip and an empty state when all tips are read","path":"Onboarding/Checklist/BlockChecklist5.vue","components":["button","card","container","kbd"]},{"name":"Checklist 6","fileName":"BlockChecklist6.vue","file":"<template>\n  <!--\n    Dismissible setup banner\n    Features: Slim banner with progress, the next step as a link style button, a mini progress ring, remind me later and dismiss buttons and a screen reader friendly region\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div\n      v-if=\"visible\"\n      class=\"bg-primary/5 border-primary/20 flex flex-col gap-4 rounded-xl border p-4 sm:flex-row sm:items-center\"\n      role=\"region\"\n      aria-label=\"Finish setting up\"\n    >\n      <UiCircularProgress\n        :current-step=\"done\"\n        :total-steps=\"total\"\n        size=\"default\"\n        show-value\n        class=\"shrink-0\"\n        aria-label=\"Setup progress\"\n      />\n      <div class=\"min-w-0 flex-1\">\n        <p class=\"font-semibold\">Finish setting up your account</p>\n        <p class=\"text-muted-foreground text-sm\">\n          {{ done }} of {{ total }} steps done. Next:\n          <UiButton\n            variant=\"link\"\n            class=\"h-auto p-0 align-baseline\"\n            @click=\"useSonner.info(`Opening: ${next}`)\"\n          >\n            {{ next }}\n          </UiButton>\n        </p>\n      </div>\n      <div class=\"flex items-center gap-2\">\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"snooze\">Remind me later</UiButton>\n        <UiButton variant=\"ghost\" size=\"icon-sm\" aria-label=\"Dismiss\" @click=\"visible = false\">\n          <Icon name=\"lucide:x\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </div>\n    <div\n      v-else\n      class=\"text-muted-foreground flex items-center justify-between rounded-xl border border-dashed p-4 text-sm\"\n    >\n      <span>{{ snoozed ? \"We will remind you tomorrow.\" : \"Banner dismissed.\" }}</span>\n      <UiButton variant=\"link\" class=\"h-auto p-0\" @click=\"show\">Bring it back</UiButton>\n    </div>\n\n    <div class=\"mt-8 rounded-xl border p-6\">\n      <h1 class=\"text-xl font-semibold\">Dashboard</h1>\n      <p class=\"text-muted-foreground mt-1 text-sm\">Your page content sits below the banner.</p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      done?: number;\n      total?: number;\n      next?: string;\n    }>(),\n    { done: 3, total: 5, next: \"Invite a teammate\" }\n  );\n\n  const visible = ref(true);\n  const snoozed = ref(false);\n\n  function snooze() {\n    snoozed.value = true;\n    visible.value = false;\n  }\n\n  function show() {\n    snoozed.value = false;\n    visible.value = true;\n  }\n</script>\n","category":"Checklist","description":"Dismissible setup banner. Features: Slim banner with progress, the next step as a link style button, a mini progress ring, remind me later and dismiss buttons and a screen reader friendly region","path":"Onboarding/Checklist/BlockChecklist6.vue","components":["button","circular-progress","container"]},{"name":"Checkout 1","fileName":"BlockCheckout1.vue","file":"<template>\n  <!--\n    Single page checkout with order summary\n    Features: Contact, shipping address, delivery method and card payment on one page, yup validation with inline errors, masked card fields, delivery cards that update the total, a sticky order summary and a confirmation after paying\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div v-if=\"!placed\" class=\"grid gap-10 lg:grid-cols-[1fr_26rem] lg:gap-14\">\n      <form class=\"space-y-10\" novalidate @submit.prevent=\"submit\">\n        <section aria-labelledby=\"contact-title\">\n          <h2 id=\"contact-title\" class=\"text-lg font-semibold\">Contact</h2>\n          <div class=\"mt-4 space-y-4\">\n            <UiVeeInput\n              name=\"email\"\n              label=\"Email\"\n              type=\"email\"\n              placeholder=\"you@example.com\"\n              autocomplete=\"email\"\n            />\n            <UiVeeCheckbox name=\"news\" label=\"Email me about new arrivals and offers\" />\n          </div>\n        </section>\n\n        <section aria-labelledby=\"shipping-title\">\n          <h2 id=\"shipping-title\" class=\"text-lg font-semibold\">Shipping address</h2>\n          <div class=\"mt-4 grid gap-4 sm:grid-cols-2\">\n            <UiVeeInput name=\"firstName\" label=\"First name\" autocomplete=\"given-name\" />\n            <UiVeeInput name=\"lastName\" label=\"Last name\" autocomplete=\"family-name\" />\n            <div class=\"sm:col-span-2\">\n              <UiVeeInput\n                name=\"address\"\n                label=\"Address\"\n                placeholder=\"123 Market Street\"\n                autocomplete=\"address-line1\"\n              />\n            </div>\n            <UiVeeInput name=\"city\" label=\"City\" autocomplete=\"address-level2\" />\n            <UiVeeSelect name=\"state\" label=\"State\">\n              <option value=\"\" disabled>Select a state</option>\n              <option v-for=\"state in states\" :key=\"state\" :value=\"state\">{{ state }}</option>\n            </UiVeeSelect>\n            <UiVeeInput\n              name=\"zip\"\n              label=\"ZIP code\"\n              placeholder=\"94103\"\n              autocomplete=\"postal-code\"\n              inputmode=\"numeric\"\n            />\n          </div>\n        </section>\n\n        <section aria-labelledby=\"delivery-title\">\n          <h2 id=\"delivery-title\" class=\"text-lg font-semibold\">Delivery</h2>\n          <UiRadioGroup v-model=\"delivery\" class=\"mt-4 grid gap-3\" aria-label=\"Delivery method\">\n            <label\n              v-for=\"option in deliveryOptions\"\n              :key=\"option.value\"\n              :for=\"`delivery-${option.value}`\"\n              class=\"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 flex cursor-pointer items-center gap-4 rounded-xl border p-4 transition\"\n            >\n              <UiRadioGroupItem :id=\"`delivery-${option.value}`\" :value=\"option.value\" />\n              <span class=\"flex-1\">\n                <span class=\"block text-sm font-medium\">{{ option.label }}</span>\n                <span class=\"text-muted-foreground block text-xs\">{{ option.eta }}</span>\n              </span>\n              <span class=\"text-sm font-medium tabular-nums\">\n                {{ priceFor(option) === 0 ? \"Free\" : money.format(priceFor(option)) }}\n              </span>\n            </label>\n          </UiRadioGroup>\n        </section>\n\n        <section aria-labelledby=\"payment-title\">\n          <div class=\"flex items-center justify-between\">\n            <h2 id=\"payment-title\" class=\"text-lg font-semibold\">Payment</h2>\n            <span class=\"text-muted-foreground flex items-center gap-1.5 text-xs\">\n              <Icon name=\"lucide:lock\" class=\"size-3.5\" />\n              Encrypted\n            </span>\n          </div>\n          <div class=\"mt-4 grid gap-4 sm:grid-cols-2\">\n            <div class=\"sm:col-span-2\">\n              <UiVeeInput\n                v-maska=\"'#### #### #### ####'\"\n                name=\"cardNumber\"\n                label=\"Card number\"\n                placeholder=\"4242 4242 4242 4242\"\n                autocomplete=\"cc-number\"\n                inputmode=\"numeric\"\n                hint=\"Demo only. Try 4242 4242 4242 4242.\"\n              />\n            </div>\n            <UiVeeInput\n              v-maska=\"'##/##'\"\n              name=\"expiry\"\n              label=\"Expiry date\"\n              placeholder=\"MM/YY\"\n              autocomplete=\"cc-exp\"\n              inputmode=\"numeric\"\n            />\n            <UiVeeInput\n              v-maska=\"'####'\"\n              name=\"cvc\"\n              label=\"Security code\"\n              placeholder=\"123\"\n              autocomplete=\"cc-csc\"\n              inputmode=\"numeric\"\n            />\n          </div>\n        </section>\n\n        <UiButton type=\"submit\" size=\"lg\" class=\"w-full\" :loading=\"isSubmitting\">\n          Pay {{ money.format(total) }}\n        </UiButton>\n      </form>\n\n      <aside class=\"lg:sticky lg:top-8 lg:self-start\">\n        <UiCard>\n          <UiCardContent class=\"space-y-5\">\n            <h2 class=\"text-lg font-semibold\">Order summary</h2>\n            <ul class=\"divide-y\">\n              <li\n                v-for=\"item in items\"\n                :key=\"item.id\"\n                class=\"flex items-center gap-4 py-4 first:pt-0\"\n              >\n                <div class=\"relative shrink-0\">\n                  <img\n                    :src=\"item.image\"\n                    :alt=\"item.name\"\n                    class=\"bg-muted size-16 rounded-lg object-cover\"\n                  />\n                  <span\n                    class=\"bg-foreground text-background absolute -top-2 -right-2 grid size-5 place-items-center rounded-full text-xs font-medium\"\n                    aria-hidden=\"true\"\n                  >\n                    {{ item.quantity }}\n                  </span>\n                </div>\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">\n                    {{ item.variant }}, qty {{ item.quantity }}\n                  </p>\n                </div>\n                <p class=\"text-sm font-medium tabular-nums\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n              </li>\n            </ul>\n            <dl class=\"space-y-2 border-t pt-4 text-sm\" aria-live=\"polite\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Subtotal</dt>\n                <dd class=\"tabular-nums\">{{ money.format(subtotal) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"tabular-nums\">\n                  {{ shippingCost === 0 ? \"Free\" : money.format(shippingCost) }}\n                </dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Estimated tax</dt>\n                <dd class=\"tabular-nums\">{{ money.format(tax) }}</dd>\n              </div>\n              <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n                <dt>Total</dt>\n                <dd class=\"tabular-nums\">{{ money.format(total) }}</dd>\n              </div>\n            </dl>\n          </UiCardContent>\n        </UiCard>\n      </aside>\n    </div>\n\n    <div v-else class=\"mx-auto max-w-lg text-center\" role=\"status\">\n      <span\n        class=\"mx-auto grid size-14 place-items-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n      >\n        <Icon name=\"lucide:check\" class=\"size-7\" />\n      </span>\n      <h1 class=\"mt-6 text-3xl font-bold tracking-tight\">Thank you, {{ firstName }}!</h1>\n      <p class=\"text-muted-foreground mt-3\">\n        Order <strong class=\"text-foreground\">AR-48213</strong> is confirmed. We sent a receipt to\n        {{ email }}.\n      </p>\n      <UiButton class=\"mt-8\" @click=\"placed = false\">Continue shopping</UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  type DeliveryOption = {\n    value: string;\n    label: string;\n    eta: string;\n    price: number;\n    /** Orders at or above this subtotal ship free with this option. */\n    freeOver?: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      /** Estimated tax as a fraction, for example 0.08 for 8%. */\n      taxRate?: number;\n      deliveryOptions?: DeliveryOption[];\n    }>(),\n    {\n      taxRate: 0.08,\n      deliveryOptions: () => [\n        {\n          value: \"standard\",\n          label: \"Standard\",\n          eta: \"5 to 7 business days\",\n          price: 8,\n          freeOver: 75,\n        },\n        { value: \"express\", label: \"Express\", eta: \"2 to 3 business days\", price: 15 },\n        { value: \"overnight\", label: \"Next day\", eta: \"Order before 2 pm\", price: 25 },\n      ],\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const states = [\n    \"California\",\n    \"Colorado\",\n    \"Florida\",\n    \"Illinois\",\n    \"Massachusetts\",\n    \"New York\",\n    \"Texas\",\n    \"Washington\",\n  ];\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const delivery = ref(\"standard\");\n  const placed = ref(false);\n\n  const subtotal = computed(() =>\n    props.items.reduce((sum, item) => sum + item.price * item.quantity, 0)\n  );\n\n  function priceFor(option: DeliveryOption) {\n    return option.freeOver && subtotal.value >= option.freeOver ? 0 : option.price;\n  }\n\n  const shippingCost = computed(() => {\n    const option = props.deliveryOptions.find((o) => o.value === delivery.value);\n    return option ? priceFor(option) : 0;\n  });\n  const tax = computed(() => subtotal.value * props.taxRate);\n  const total = computed(() => subtotal.value + shippingCost.value + tax.value);\n\n  // Demo validation only. For real payments use your provider's hosted card fields.\n  function passesLuhn(value: string) {\n    const digits = value.replace(/\\D/g, \"\");\n    if (digits.length < 13) return false;\n    let sum = 0;\n    for (let i = 0; i < digits.length; i++) {\n      let digit = Number(digits[digits.length - 1 - i]);\n      if (i % 2 === 1) {\n        digit *= 2;\n        if (digit > 9) digit -= 9;\n      }\n      sum += digit;\n    }\n    return sum % 10 === 0;\n  }\n\n  function isFutureExpiry(value: string) {\n    const match = /^(\\d{2})\\/(\\d{2})$/.exec(value);\n    if (!match) return false;\n    const month = Number(match[1]);\n    const year = 2000 + Number(match[2]);\n    if (month < 1 || month > 12) return false;\n    return new Date(year, month, 0, 23, 59, 59) >= new Date();\n  }\n\n  const schema = object({\n    email: string().email(\"Enter a valid email address\").required().label(\"Email\"),\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    address: string().required().label(\"Address\"),\n    city: string().required().label(\"City\"),\n    state: string().required(\"Select a state\").label(\"State\"),\n    zip: string()\n      .matches(/^\\d{5}$/, \"Enter a 5 digit ZIP code\")\n      .required()\n      .label(\"ZIP code\"),\n    cardNumber: string()\n      .required()\n      .test(\"luhn\", \"Enter a valid card number\", (value) => passesLuhn(value ?? \"\"))\n      .label(\"Card number\"),\n    expiry: string()\n      .required()\n      .test(\"expiry\", \"Enter a valid expiry date\", (value) => isFutureExpiry(value ?? \"\"))\n      .label(\"Expiry date\"),\n    cvc: string()\n      .matches(/^\\d{3,4}$/, \"Enter 3 or 4 digits\")\n      .required()\n      .label(\"Security code\"),\n  });\n\n  const { handleSubmit, isSubmitting, values } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n    initialValues: { state: \"\" },\n  });\n\n  const firstName = computed(() => values.firstName || \"there\");\n  const email = computed(() => values.email || \"your email\");\n\n  // Replace the timeout with a request to your payment provider.\n  const submit = handleSubmit(async () => {\n    await new Promise((resolve) => setTimeout(resolve, 900));\n    placed.value = true;\n  });\n</script>\n","category":"Checkout","description":"Single page checkout with order summary. Features: Contact, shipping address, delivery method and card payment on one page, yup validation with inline errors, masked card fields, delivery cards that update the total, a sticky order summary and a confirmation after paying","path":"Ecommerce/Checkout/BlockCheckout1.vue","components":["button","card","container","radio-group","vee-checkbox","vee-input","vee-select"]},{"name":"Checkout 2","fileName":"BlockCheckout2.vue","file":"<template>\n  <!--\n    Multi step checkout with a stepper\n    Features: Information, shipping and payment steps with a numbered stepper that blocks skipping ahead, each step validates before continuing, entered values are kept when going back, delivery cards, a recap of earlier answers and a sticky order summary\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div v-if=\"!placed\" class=\"grid gap-10 lg:grid-cols-[1fr_26rem] lg:gap-14\">\n      <div>\n        <UiStepper v-model=\"step\" class=\"mb-10\">\n          <UiStepperItem\n            v-for=\"s in steps\"\n            :key=\"s.id\"\n            :step=\"s.id\"\n            :disabled=\"s.id > step\"\n            :class=\"s.id !== steps.length ? 'flex-1' : ''\"\n          >\n            <UiStepperTrigger class=\"flex-col gap-2 sm:flex-row\">\n              <UiStepperIndicator>{{ s.id }}</UiStepperIndicator>\n              <span class=\"hidden text-sm font-medium sm:block\">{{ s.title }}</span>\n            </UiStepperTrigger>\n            <UiStepperSeparator v-if=\"s.id < steps.length\" />\n          </UiStepperItem>\n        </UiStepper>\n\n        <div\n          v-if=\"step > 1\"\n          class=\"bg-muted/40 mb-8 divide-y rounded-xl border text-sm\"\n          aria-label=\"Your details so far\"\n        >\n          <div class=\"flex items-center justify-between gap-4 p-4\">\n            <span class=\"text-muted-foreground w-16 shrink-0\">Contact</span>\n            <span class=\"min-w-0 flex-1 truncate\">{{ values.email }}</span>\n            <button type=\"button\" class=\"underline underline-offset-4\" @click=\"step = 1\">\n              Change\n            </button>\n          </div>\n          <div class=\"flex items-center justify-between gap-4 p-4\">\n            <span class=\"text-muted-foreground w-16 shrink-0\">Ship to</span>\n            <span class=\"min-w-0 flex-1 truncate\">\n              {{ values.address }}, {{ values.city }} {{ values.zip }}\n            </span>\n            <button type=\"button\" class=\"underline underline-offset-4\" @click=\"step = 1\">\n              Change\n            </button>\n          </div>\n          <div v-if=\"step > 2\" class=\"flex items-center justify-between gap-4 p-4\">\n            <span class=\"text-muted-foreground w-16 shrink-0\">Method</span>\n            <span class=\"min-w-0 flex-1 truncate\"\n              >{{ selectedOption?.label }}, {{ selectedOption?.eta }}</span\n            >\n            <button type=\"button\" class=\"underline underline-offset-4\" @click=\"step = 2\">\n              Change\n            </button>\n          </div>\n        </div>\n\n        <form novalidate @submit.prevent=\"onSubmit\">\n          <section v-if=\"step === 1\" class=\"space-y-4\" aria-labelledby=\"step-1\">\n            <h2 id=\"step-1\" class=\"text-xl font-semibold\">Your information</h2>\n            <UiVeeInput\n              name=\"email\"\n              label=\"Email\"\n              type=\"email\"\n              placeholder=\"you@example.com\"\n              autocomplete=\"email\"\n            />\n            <div class=\"grid gap-4 sm:grid-cols-2\">\n              <UiVeeInput name=\"firstName\" label=\"First name\" autocomplete=\"given-name\" />\n              <UiVeeInput name=\"lastName\" label=\"Last name\" autocomplete=\"family-name\" />\n            </div>\n            <UiVeeInput\n              name=\"address\"\n              label=\"Address\"\n              placeholder=\"123 Market Street\"\n              autocomplete=\"address-line1\"\n            />\n            <div class=\"grid gap-4 sm:grid-cols-2\">\n              <UiVeeInput name=\"city\" label=\"City\" autocomplete=\"address-level2\" />\n              <UiVeeInput\n                name=\"zip\"\n                label=\"ZIP code\"\n                placeholder=\"94103\"\n                autocomplete=\"postal-code\"\n                inputmode=\"numeric\"\n              />\n            </div>\n          </section>\n\n          <section v-else-if=\"step === 2\" aria-labelledby=\"step-2\">\n            <h2 id=\"step-2\" class=\"text-xl font-semibold\">Delivery method</h2>\n            <UiRadioGroup v-model=\"delivery\" class=\"mt-4 grid gap-3\" aria-label=\"Delivery method\">\n              <label\n                v-for=\"option in deliveryOptions\"\n                :key=\"option.value\"\n                :for=\"`delivery-${option.value}`\"\n                class=\"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 flex cursor-pointer items-center gap-4 rounded-xl border p-4 transition\"\n              >\n                <UiRadioGroupItem :id=\"`delivery-${option.value}`\" :value=\"option.value\" />\n                <span class=\"flex-1\">\n                  <span class=\"block text-sm font-medium\">{{ option.label }}</span>\n                  <span class=\"text-muted-foreground block text-xs\">{{ option.eta }}</span>\n                </span>\n                <span class=\"text-sm font-medium tabular-nums\">\n                  {{ priceFor(option) === 0 ? \"Free\" : money.format(priceFor(option)) }}\n                </span>\n              </label>\n            </UiRadioGroup>\n          </section>\n\n          <section v-else class=\"space-y-4\" aria-labelledby=\"step-3\">\n            <h2 id=\"step-3\" class=\"text-xl font-semibold\">Payment</h2>\n            <UiVeeInput name=\"nameOnCard\" label=\"Name on card\" autocomplete=\"cc-name\" />\n            <UiVeeInput\n              v-maska=\"'#### #### #### ####'\"\n              name=\"cardNumber\"\n              label=\"Card number\"\n              placeholder=\"4242 4242 4242 4242\"\n              autocomplete=\"cc-number\"\n              inputmode=\"numeric\"\n              hint=\"Demo only. Try 4242 4242 4242 4242.\"\n            />\n            <div class=\"grid gap-4 sm:grid-cols-2\">\n              <UiVeeInput\n                v-maska=\"'##/##'\"\n                name=\"expiry\"\n                label=\"Expiry date\"\n                placeholder=\"MM/YY\"\n                autocomplete=\"cc-exp\"\n                inputmode=\"numeric\"\n              />\n              <UiVeeInput\n                v-maska=\"'####'\"\n                name=\"cvc\"\n                label=\"Security code\"\n                placeholder=\"123\"\n                autocomplete=\"cc-csc\"\n                inputmode=\"numeric\"\n              />\n            </div>\n          </section>\n\n          <div class=\"mt-8 flex items-center justify-between gap-3\">\n            <UiButton v-if=\"step > 1\" type=\"button\" variant=\"ghost\" @click=\"step--\">\n              <Icon name=\"lucide:arrow-left\" />\n              Back\n            </UiButton>\n            <span v-else />\n            <UiButton type=\"submit\" size=\"lg\" :loading=\"isSubmitting\">\n              {{ step === steps.length ? `Pay ${money.format(total)}` : \"Continue\" }}\n            </UiButton>\n          </div>\n        </form>\n      </div>\n\n      <aside class=\"lg:sticky lg:top-8 lg:self-start\">\n        <UiCard>\n          <UiCardContent class=\"space-y-5\">\n            <h2 class=\"text-lg font-semibold\">Order summary</h2>\n            <ul class=\"divide-y\">\n              <li\n                v-for=\"item in items\"\n                :key=\"item.id\"\n                class=\"flex items-center gap-4 py-4 first:pt-0\"\n              >\n                <div class=\"relative shrink-0\">\n                  <img\n                    :src=\"item.image\"\n                    :alt=\"item.name\"\n                    class=\"bg-muted size-16 rounded-lg object-cover\"\n                  />\n                  <span\n                    class=\"bg-foreground text-background absolute -top-2 -right-2 grid size-5 place-items-center rounded-full text-xs font-medium\"\n                    aria-hidden=\"true\"\n                  >\n                    {{ item.quantity }}\n                  </span>\n                </div>\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">\n                    {{ item.variant }}, qty {{ item.quantity }}\n                  </p>\n                </div>\n                <p class=\"text-sm font-medium tabular-nums\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n              </li>\n            </ul>\n            <dl class=\"space-y-2 border-t pt-4 text-sm\" aria-live=\"polite\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Subtotal</dt>\n                <dd class=\"tabular-nums\">{{ money.format(subtotal) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"tabular-nums\">\n                  {{ shippingCost === 0 ? \"Free\" : money.format(shippingCost) }}\n                </dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Estimated tax</dt>\n                <dd class=\"tabular-nums\">{{ money.format(tax) }}</dd>\n              </div>\n              <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n                <dt>Total</dt>\n                <dd class=\"tabular-nums\">{{ money.format(total) }}</dd>\n              </div>\n            </dl>\n          </UiCardContent>\n        </UiCard>\n      </aside>\n    </div>\n\n    <div v-else class=\"mx-auto max-w-lg text-center\" role=\"status\">\n      <span\n        class=\"mx-auto grid size-14 place-items-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n      >\n        <Icon name=\"lucide:check\" class=\"size-7\" />\n      </span>\n      <h1 class=\"mt-6 text-3xl font-bold tracking-tight\">Order confirmed</h1>\n      <p class=\"text-muted-foreground mt-3\">\n        Thanks {{ values.firstName }}. Order <strong class=\"text-foreground\">AR-48213</strong> is on\n        its way to {{ values.address }}.\n      </p>\n      <UiButton class=\"mt-8\" @click=\"restart\">Continue shopping</UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  type DeliveryOption = {\n    value: string;\n    label: string;\n    eta: string;\n    price: number;\n    /** Orders at or above this subtotal ship free with this option. */\n    freeOver?: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      taxRate?: number;\n      deliveryOptions?: DeliveryOption[];\n    }>(),\n    {\n      taxRate: 0.08,\n      deliveryOptions: () => [\n        {\n          value: \"standard\",\n          label: \"Standard\",\n          eta: \"5 to 7 business days\",\n          price: 8,\n          freeOver: 75,\n        },\n        { value: \"express\", label: \"Express\", eta: \"2 to 3 business days\", price: 15 },\n        { value: \"overnight\", label: \"Next day\", eta: \"Order before 2 pm\", price: 25 },\n      ],\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const steps = [\n    { id: 1, title: \"Information\" },\n    { id: 2, title: \"Shipping\" },\n    { id: 3, title: \"Payment\" },\n  ];\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const step = ref(1);\n  const delivery = ref(\"standard\");\n  const placed = ref(false);\n\n  const subtotal = computed(() =>\n    props.items.reduce((sum, item) => sum + item.price * item.quantity, 0)\n  );\n\n  function priceFor(option: DeliveryOption) {\n    return option.freeOver && subtotal.value >= option.freeOver ? 0 : option.price;\n  }\n\n  const selectedOption = computed(() =>\n    props.deliveryOptions.find((o) => o.value === delivery.value)\n  );\n  const shippingCost = computed(() => (selectedOption.value ? priceFor(selectedOption.value) : 0));\n  const tax = computed(() => subtotal.value * props.taxRate);\n  const total = computed(() => subtotal.value + shippingCost.value + tax.value);\n\n  // Demo validation only. For real payments use your provider's hosted card fields.\n  function passesLuhn(value: string) {\n    const digits = value.replace(/\\D/g, \"\");\n    if (digits.length < 13) return false;\n    let sum = 0;\n    for (let i = 0; i < digits.length; i++) {\n      let digit = Number(digits[digits.length - 1 - i]);\n      if (i % 2 === 1) {\n        digit *= 2;\n        if (digit > 9) digit -= 9;\n      }\n      sum += digit;\n    }\n    return sum % 10 === 0;\n  }\n\n  function isFutureExpiry(value: string) {\n    const match = /^(\\d{2})\\/(\\d{2})$/.exec(value);\n    if (!match) return false;\n    const month = Number(match[1]);\n    const year = 2000 + Number(match[2]);\n    if (month < 1 || month > 12) return false;\n    return new Date(year, month, 0, 23, 59, 59) >= new Date();\n  }\n\n  // Each step only validates its own fields, and values survive going back.\n  const schemas = [\n    object({\n      email: string().email(\"Enter a valid email address\").required().label(\"Email\"),\n      firstName: string().required().label(\"First name\"),\n      lastName: string().required().label(\"Last name\"),\n      address: string().required().label(\"Address\"),\n      city: string().required().label(\"City\"),\n      zip: string()\n        .matches(/^\\d{5}$/, \"Enter a 5 digit ZIP code\")\n        .required()\n        .label(\"ZIP code\"),\n    }),\n    object({}),\n    object({\n      nameOnCard: string().required().label(\"Name on card\"),\n      cardNumber: string()\n        .required()\n        .test(\"luhn\", \"Enter a valid card number\", (value) => passesLuhn(value ?? \"\"))\n        .label(\"Card number\"),\n      expiry: string()\n        .required()\n        .test(\"expiry\", \"Enter a valid expiry date\", (value) => isFutureExpiry(value ?? \"\"))\n        .label(\"Expiry date\"),\n      cvc: string()\n        .matches(/^\\d{3,4}$/, \"Enter 3 or 4 digits\")\n        .required()\n        .label(\"Security code\"),\n    }),\n  ];\n\n  const { handleSubmit, isSubmitting, values, resetForm } = useForm({\n    validationSchema: computed(() => schemas[step.value - 1]),\n    keepValuesOnUnmount: true,\n  });\n\n  // Replace the timeout with a request to your payment provider on the last step.\n  const onSubmit = handleSubmit(async () => {\n    if (step.value < steps.length) {\n      step.value++;\n      return;\n    }\n    await new Promise((resolve) => setTimeout(resolve, 900));\n    placed.value = true;\n  });\n\n  function restart() {\n    placed.value = false;\n    step.value = 1;\n    resetForm();\n  }\n</script>\n","category":"Checkout","description":"Multi step checkout with a stepper. Features: Information, shipping and payment steps with a numbered stepper that blocks skipping ahead, each step validates before continuing, entered values are kept when going back, delivery cards, a recap of earlier answers and a sticky order summary","path":"Ecommerce/Checkout/BlockCheckout2.vue","components":["button","card","container","radio-group","stepper","vee-input"]},{"name":"Checkout 3","fileName":"BlockCheckout3.vue","file":"<template>\n  <!--\n    Payment form with a live card preview\n    Features: Masked card number, expiry and security code fields, a card preview that updates as you type and detects the network, luhn and expiry validation, a fill test card shortcut and a secure payment confirmation\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-5xl items-start gap-12 lg:grid-cols-2 lg:gap-16\">\n      <div class=\"lg:order-2\">\n        <div class=\"mx-auto w-full max-w-sm lg:sticky lg:top-8\">\n          <UiCreditCard\n            :width=\"360\"\n            variant=\"gray-dark\"\n            company=\"Alder & Row\"\n            :card-number=\"displayNumber\"\n            :card-holder=\"(values.nameOnCard || 'Name on card').toUpperCase()\"\n            :card-expiration=\"values.expiry || 'MM/YY'\"\n            :network-icon=\"network\"\n          />\n          <ul class=\"text-muted-foreground mt-8 space-y-3 text-sm\">\n            <li class=\"flex items-center gap-3\">\n              <Icon name=\"lucide:shield-check\" class=\"text-primary size-4\" />\n              Your card details are encrypted and never stored on our servers.\n            </li>\n            <li class=\"flex items-center gap-3\">\n              <Icon name=\"lucide:rotate-ccw\" class=\"text-primary size-4\" />\n              Free returns for 30 days if you change your mind.\n            </li>\n          </ul>\n        </div>\n      </div>\n\n      <div class=\"lg:order-1\">\n        <div v-if=\"!paid\">\n          <div class=\"flex items-start justify-between gap-4\">\n            <div>\n              <h1 class=\"text-2xl font-bold tracking-tight\">Payment details</h1>\n              <p class=\"text-muted-foreground mt-1 text-sm\">\n                Pay {{ money.format(amount) }} securely.\n              </p>\n            </div>\n            <UiButton type=\"button\" variant=\"outline\" size=\"sm\" @click=\"fillTestCard\">\n              Fill test card\n            </UiButton>\n          </div>\n\n          <form class=\"mt-8 space-y-4\" novalidate @submit.prevent=\"submit\">\n            <UiVeeInput\n              name=\"nameOnCard\"\n              label=\"Name on card\"\n              placeholder=\"Sarah Johnson\"\n              autocomplete=\"cc-name\"\n            />\n            <UiVeeInput\n              v-maska=\"'#### #### #### ####'\"\n              name=\"cardNumber\"\n              label=\"Card number\"\n              placeholder=\"4242 4242 4242 4242\"\n              autocomplete=\"cc-number\"\n              inputmode=\"numeric\"\n              icon=\"lucide:credit-card\"\n            />\n            <div class=\"grid grid-cols-2 gap-4\">\n              <UiVeeInput\n                v-maska=\"'##/##'\"\n                name=\"expiry\"\n                label=\"Expiry date\"\n                placeholder=\"MM/YY\"\n                autocomplete=\"cc-exp\"\n                inputmode=\"numeric\"\n              />\n              <UiVeeInput\n                v-maska=\"'####'\"\n                name=\"cvc\"\n                label=\"Security code\"\n                placeholder=\"123\"\n                autocomplete=\"cc-csc\"\n                inputmode=\"numeric\"\n              />\n            </div>\n            <UiVeeInput\n              name=\"zip\"\n              label=\"Billing ZIP code\"\n              placeholder=\"94103\"\n              autocomplete=\"postal-code\"\n              inputmode=\"numeric\"\n            />\n            <UiVeeCheckbox name=\"save\" label=\"Save this card for next time\" />\n            <UiButton type=\"submit\" size=\"lg\" class=\"w-full\" :loading=\"isSubmitting\">\n              <Icon name=\"lucide:lock\" />\n              Pay {{ money.format(amount) }}\n            </UiButton>\n            <p class=\"text-muted-foreground text-center text-xs\">\n              Demo form. Connect your payment provider's hosted fields before taking real payments.\n            </p>\n          </form>\n        </div>\n\n        <div v-else class=\"text-center lg:text-left\" role=\"status\">\n          <span\n            class=\"grid size-14 place-items-center rounded-full bg-green-500/15 text-green-600 lg:mx-0 dark:text-green-400\"\n          >\n            <Icon name=\"lucide:check\" class=\"size-7\" />\n          </span>\n          <h1 class=\"mt-6 text-2xl font-bold tracking-tight\">Payment successful</h1>\n          <p class=\"text-muted-foreground mt-2\">\n            We charged {{ money.format(amount) }} to the card ending in {{ lastFour }}.\n          </p>\n          <UiButton class=\"mt-6\" variant=\"outline\" @click=\"paid = false\"\n            >Make another payment</UiButton\n          >\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  withDefaults(defineProps<{ amount?: number }>(), { amount: 248.4 });\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const paid = ref(false);\n\n  // Demo validation only. For real payments use your provider's hosted card fields.\n  function passesLuhn(value: string) {\n    const digits = value.replace(/\\D/g, \"\");\n    if (digits.length < 13) return false;\n    let sum = 0;\n    for (let i = 0; i < digits.length; i++) {\n      let digit = Number(digits[digits.length - 1 - i]);\n      if (i % 2 === 1) {\n        digit *= 2;\n        if (digit > 9) digit -= 9;\n      }\n      sum += digit;\n    }\n    return sum % 10 === 0;\n  }\n\n  function isFutureExpiry(value: string) {\n    const match = /^(\\d{2})\\/(\\d{2})$/.exec(value);\n    if (!match) return false;\n    const month = Number(match[1]);\n    const year = 2000 + Number(match[2]);\n    if (month < 1 || month > 12) return false;\n    return new Date(year, month, 0, 23, 59, 59) >= new Date();\n  }\n\n  const schema = object({\n    nameOnCard: string().required().label(\"Name on card\"),\n    cardNumber: string()\n      .required()\n      .test(\"luhn\", \"Enter a valid card number\", (value) => passesLuhn(value ?? \"\"))\n      .label(\"Card number\"),\n    expiry: string()\n      .required()\n      .test(\"expiry\", \"Enter a valid expiry date\", (value) => isFutureExpiry(value ?? \"\"))\n      .label(\"Expiry date\"),\n    cvc: string()\n      .matches(/^\\d{3,4}$/, \"Enter 3 or 4 digits\")\n      .required()\n      .label(\"Security code\"),\n    zip: string()\n      .matches(/^\\d{5}$/, \"Enter a 5 digit ZIP code\")\n      .required()\n      .label(\"Billing ZIP code\"),\n  });\n\n  const { handleSubmit, isSubmitting, values, setValues } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const displayNumber = computed(() => values.cardNumber || \"•••• •••• •••• ••••\");\n  // The form unmounts once paid, so the last four digits are kept here.\n  const lastFour = ref(\"\");\n\n  // Detects the card network from the first digits.\n  const network = computed(() => {\n    const digits = (values.cardNumber ?? \"\").replace(/\\D/g, \"\");\n    if (/^4/.test(digits)) return \"simple-icons:visa\";\n    if (/^(5[1-5]|2[2-7])/.test(digits)) return \"simple-icons:mastercard\";\n    if (/^3[47]/.test(digits)) return \"simple-icons:americanexpress\";\n    if (/^6(011|5)/.test(digits)) return \"simple-icons:discover\";\n    return \"lucide:credit-card\";\n  });\n\n  function fillTestCard() {\n    setValues({\n      nameOnCard: \"Sarah Johnson\",\n      cardNumber: \"4242 4242 4242 4242\",\n      expiry: \"12/30\",\n      cvc: \"123\",\n      zip: \"94103\",\n    });\n  }\n\n  // Replace the timeout with a request to your payment provider.\n  const submit = handleSubmit(async (formValues) => {\n    await new Promise((resolve) => setTimeout(resolve, 900));\n    lastFour.value = formValues.cardNumber.replace(/\\D/g, \"\").slice(-4);\n    paid.value = true;\n  });\n</script>\n","category":"Checkout","description":"Payment form with a live card preview. Features: Masked card number, expiry and security code fields, a card preview that updates as you type and detects the network, luhn and expiry validation, a fill test card shortcut and a secure payment confirmation","path":"Ecommerce/Checkout/BlockCheckout3.vue","components":["button","container","credit-card","vee-checkbox","vee-input"]},{"name":"Checkout 4","fileName":"BlockCheckout4.vue","file":"<template>\n  <!--\n    Delivery method step with radio cards\n    Features: Address recap with a change link, delivery cards with an icon, live estimated arrival dates and price, free shipping threshold, a gift wrap switch and an order summary that updates with the choice\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"grid gap-10 lg:grid-cols-[1fr_26rem] lg:gap-14\">\n      <div>\n        <div class=\"bg-muted/40 divide-y rounded-xl border text-sm\">\n          <div class=\"flex items-center justify-between gap-4 p-4\">\n            <span class=\"text-muted-foreground w-16 shrink-0\">Contact</span>\n            <span class=\"min-w-0 flex-1 truncate\">{{ contact }}</span>\n            <button type=\"button\" class=\"underline underline-offset-4\">Change</button>\n          </div>\n          <div class=\"flex items-center justify-between gap-4 p-4\">\n            <span class=\"text-muted-foreground w-16 shrink-0\">Ship to</span>\n            <span class=\"min-w-0 flex-1 truncate\">{{ address }}</span>\n            <button type=\"button\" class=\"underline underline-offset-4\">Change</button>\n          </div>\n        </div>\n\n        <h1 class=\"mt-10 text-2xl font-bold tracking-tight\">Delivery method</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Free standard shipping on orders over {{ money.format(freeOver) }}.\n        </p>\n\n        <UiRadioGroup v-model=\"selected\" class=\"mt-6 grid gap-3\" aria-label=\"Delivery method\">\n          <label\n            v-for=\"option in options\"\n            :key=\"option.value\"\n            :for=\"`method-${option.value}`\"\n            class=\"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 flex cursor-pointer items-center gap-4 rounded-xl border p-4 transition sm:p-5\"\n          >\n            <UiRadioGroupItem :id=\"`method-${option.value}`\" :value=\"option.value\" />\n            <span class=\"bg-muted grid size-10 shrink-0 place-items-center rounded-full\">\n              <Icon :name=\"option.icon\" class=\"size-5\" />\n            </span>\n            <span class=\"flex-1\">\n              <span class=\"block font-medium\">{{ option.label }}</span>\n              <span class=\"text-muted-foreground block text-sm\">{{ eta(option) }}</span>\n            </span>\n            <span class=\"font-semibold tabular-nums\">\n              {{ priceFor(option) === 0 ? \"Free\" : money.format(priceFor(option)) }}\n            </span>\n          </label>\n        </UiRadioGroup>\n\n        <div class=\"mt-6 flex items-center justify-between gap-4 rounded-xl border p-4\">\n          <div class=\"flex items-center gap-3\">\n            <Icon name=\"lucide:gift\" class=\"size-5\" />\n            <div>\n              <UiLabel for=\"gift-wrap\" class=\"cursor-pointer\">Add gift wrap</UiLabel>\n              <p class=\"text-muted-foreground text-xs\">\n                Recycled paper and a handwritten note, {{ money.format(giftWrapPrice) }}.\n              </p>\n            </div>\n          </div>\n          <UiSwitch id=\"gift-wrap\" v-model=\"giftWrap\" />\n        </div>\n\n        <div class=\"mt-8 flex items-center justify-between gap-3\">\n          <UiButton variant=\"ghost\">\n            <Icon name=\"lucide:arrow-left\" />\n            Back to information\n          </UiButton>\n          <UiButton size=\"lg\">Continue to payment</UiButton>\n        </div>\n      </div>\n\n      <aside class=\"lg:sticky lg:top-8 lg:self-start\">\n        <UiCard>\n          <UiCardContent class=\"space-y-5\">\n            <h2 class=\"text-lg font-semibold\">Order summary</h2>\n            <ul class=\"divide-y\">\n              <li\n                v-for=\"item in items\"\n                :key=\"item.id\"\n                class=\"flex items-center gap-4 py-4 first:pt-0\"\n              >\n                <div class=\"relative shrink-0\">\n                  <img\n                    :src=\"item.image\"\n                    :alt=\"item.name\"\n                    class=\"bg-muted size-16 rounded-lg object-cover\"\n                  />\n                  <span\n                    class=\"bg-foreground text-background absolute -top-2 -right-2 grid size-5 place-items-center rounded-full text-xs font-medium\"\n                    aria-hidden=\"true\"\n                  >\n                    {{ item.quantity }}\n                  </span>\n                </div>\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">\n                    {{ item.variant }}, qty {{ item.quantity }}\n                  </p>\n                </div>\n                <p class=\"text-sm font-medium tabular-nums\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n              </li>\n            </ul>\n            <dl class=\"space-y-2 border-t pt-4 text-sm\" aria-live=\"polite\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Subtotal</dt>\n                <dd class=\"tabular-nums\">{{ money.format(subtotal) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"tabular-nums\">\n                  {{ shippingCost === 0 ? \"Free\" : money.format(shippingCost) }}\n                </dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Estimated tax</dt>\n                <dd class=\"tabular-nums\">{{ money.format(tax) }}</dd>\n              </div>\n              <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n                <dt>Total</dt>\n                <dd class=\"tabular-nums\">{{ money.format(total) }}</dd>\n              </div>\n            </dl>\n          </UiCardContent>\n        </UiCard>\n      </aside>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  type Option = {\n    value: string;\n    label: string;\n    icon: string;\n    price: number;\n    /** Business days to arrive, earliest and latest. */\n    days: [number, number];\n    freeOver?: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      contact?: string;\n      address?: string;\n      taxRate?: number;\n      giftWrapPrice?: number;\n      options?: Option[];\n    }>(),\n    {\n      contact: \"sarah.johnson@example.com\",\n      address: \"123 Market Street, San Francisco CA 94103\",\n      taxRate: 0.08,\n      giftWrapPrice: 5,\n      options: () => [\n        {\n          value: \"standard\",\n          label: \"Standard\",\n          icon: \"lucide:package\",\n          price: 8,\n          days: [5, 7],\n          freeOver: 75,\n        },\n        { value: \"express\", label: \"Express\", icon: \"lucide:truck\", price: 15, days: [2, 3] },\n        { value: \"overnight\", label: \"Next day\", icon: \"lucide:zap\", price: 25, days: [1, 1] },\n      ],\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n  const dateFormat = new Intl.DateTimeFormat(\"en-US\", {\n    weekday: \"short\",\n    month: \"short\",\n    day: \"numeric\",\n  });\n\n  const selected = ref(\"standard\");\n  const giftWrap = ref(false);\n  // Dates are worked out after mount so server and client markup match.\n  const mounted = ref(false);\n  onMounted(() => (mounted.value = true));\n\n  const freeOver = computed(() => props.options.find((o) => o.freeOver)?.freeOver ?? 0);\n  const subtotal = computed(\n    () =>\n      props.items.reduce((sum, item) => sum + item.price * item.quantity, 0) +\n      (giftWrap.value ? props.giftWrapPrice : 0)\n  );\n\n  function priceFor(option: Option) {\n    return option.freeOver && subtotal.value >= option.freeOver ? 0 : option.price;\n  }\n\n  function addBusinessDays(days: number) {\n    const date = new Date();\n    let added = 0;\n    while (added < days) {\n      date.setDate(date.getDate() + 1);\n      if (date.getDay() !== 0 && date.getDay() !== 6) added++;\n    }\n    return date;\n  }\n\n  function eta(option: Option) {\n    const [min, max] = option.days;\n    if (!mounted.value) return min === max ? \"Next business day\" : `${min} to ${max} business days`;\n    return min === max\n      ? `Arrives ${dateFormat.format(addBusinessDays(min))}`\n      : `Arrives ${dateFormat.format(addBusinessDays(min))} to ${dateFormat.format(addBusinessDays(max))}`;\n  }\n\n  const shippingCost = computed(() => {\n    const option = props.options.find((o) => o.value === selected.value);\n    return option ? priceFor(option) : 0;\n  });\n  const tax = computed(() => subtotal.value * props.taxRate);\n  const total = computed(() => subtotal.value + shippingCost.value + tax.value);\n</script>\n","category":"Checkout","description":"Delivery method step with radio cards. Features: Address recap with a change link, delivery cards with an icon, live estimated arrival dates and price, free shipping threshold, a gift wrap switch and an order summary that updates with the choice","path":"Ecommerce/Checkout/BlockCheckout4.vue","components":["button","card","container","label","radio-group","switch"]},{"name":"Checkout 5","fileName":"BlockCheckout5.vue","file":"<template>\n  <!--\n    Express checkout with guest and sign in tabs\n    Features: Apple Pay, Google Pay and PayPal buttons, an or divider, tabs that switch between guest checkout and signing in with different validation, a password field with a show toggle and a continue confirmation\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-md\">\n      <h1 class=\"text-center text-2xl font-bold tracking-tight\">Checkout</h1>\n      <p class=\"text-muted-foreground mt-2 text-center text-sm\">\n        Pay in seconds with a saved wallet, or continue with your email.\n      </p>\n\n      <div class=\"mt-8\">\n        <p\n          class=\"text-muted-foreground mb-3 text-center text-xs font-medium tracking-wide uppercase\"\n        >\n          Express checkout\n        </p>\n        <div class=\"grid grid-cols-3 gap-3\">\n          <button\n            v-for=\"wallet in wallets\"\n            :key=\"wallet.name\"\n            type=\"button\"\n            class=\"focus-visible:ring-ring flex h-11 items-center justify-center rounded-lg transition hover:opacity-90 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n            :class=\"wallet.class\"\n            :aria-label=\"`Pay with ${wallet.name}`\"\n            @click=\"express(wallet.name)\"\n          >\n            <Icon :name=\"wallet.icon\" class=\"h-5 w-auto\" />\n          </button>\n        </div>\n        <p v-if=\"notice\" class=\"text-muted-foreground mt-3 text-center text-xs\" role=\"status\">\n          {{ notice }}\n        </p>\n      </div>\n\n      <div class=\"my-8 flex items-center gap-4\">\n        <UiSeparator class=\"flex-1\" />\n        <span class=\"text-muted-foreground text-xs\">or continue with email</span>\n        <UiSeparator class=\"flex-1\" />\n      </div>\n\n      <div v-if=\"!done\">\n        <UiTabs v-model=\"tab\">\n          <UiTabsList class=\"grid w-full grid-cols-2\">\n            <UiTabsTrigger value=\"guest\">Guest checkout</UiTabsTrigger>\n            <UiTabsTrigger value=\"signin\">Sign in</UiTabsTrigger>\n          </UiTabsList>\n\n          <form class=\"mt-6\" novalidate @submit.prevent=\"submit\">\n            <UiTabsContent value=\"guest\" class=\"space-y-4\">\n              <UiVeeInput\n                name=\"email\"\n                label=\"Email\"\n                type=\"email\"\n                placeholder=\"you@example.com\"\n                autocomplete=\"email\"\n              />\n              <UiVeeCheckbox name=\"updates\" label=\"Email me about new arrivals and offers\" />\n              <UiVeeCheckbox name=\"account\" label=\"Save my details and create an account\" />\n            </UiTabsContent>\n\n            <UiTabsContent value=\"signin\" class=\"space-y-4\">\n              <UiVeeInput\n                name=\"email\"\n                label=\"Email\"\n                type=\"email\"\n                placeholder=\"you@example.com\"\n                autocomplete=\"email\"\n              />\n              <UiVeePasswordInput\n                name=\"password\"\n                label=\"Password\"\n                autocomplete=\"current-password\"\n              />\n              <a href=\"#\" class=\"text-muted-foreground block text-sm underline underline-offset-4\">\n                Forgot your password?\n              </a>\n            </UiTabsContent>\n\n            <UiButton type=\"submit\" size=\"lg\" class=\"mt-6 w-full\" :loading=\"isSubmitting\">\n              {{ tab === \"guest\" ? \"Continue as guest\" : \"Sign in and continue\" }}\n            </UiButton>\n          </form>\n        </UiTabs>\n      </div>\n\n      <div v-else class=\"text-center\" role=\"status\">\n        <span\n          class=\"mx-auto grid size-12 place-items-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n        >\n          <Icon name=\"lucide:check\" class=\"size-6\" />\n        </span>\n        <p class=\"mt-4 font-medium\">\n          {{ tab === \"guest\" ? \"Continuing as guest\" : \"Signed in\" }} as {{ values.email }}\n        </p>\n        <UiButton variant=\"ghost\" class=\"mt-2\" @click=\"done = false\"\n          >Use a different email</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n\n  type Wallet = { name: string; icon: string; class: string };\n\n  withDefaults(\n    defineProps<{\n      wallets?: Wallet[];\n    }>(),\n    {\n      wallets: () => [\n        { name: \"Apple Pay\", icon: \"logos:apple-pay\", class: \"bg-white text-black border\" },\n        { name: \"Google Pay\", icon: \"logos:google-pay\", class: \"bg-white text-black border\" },\n        { name: \"PayPal\", icon: \"logos:paypal\", class: \"bg-[#ffc439] text-black\" },\n      ],\n    }\n  );\n\n  const tab = ref<\"guest\" | \"signin\">(\"guest\");\n  const done = ref(false);\n  const notice = ref(\"\");\n\n  // The schema follows the active tab, so guests are never asked for a password.\n  const schemas = {\n    guest: object({\n      email: string().email(\"Enter a valid email address\").required().label(\"Email\"),\n    }),\n    signin: object({\n      email: string().email(\"Enter a valid email address\").required().label(\"Email\"),\n      password: string().min(8, \"Use at least 8 characters\").required().label(\"Password\"),\n    }),\n  };\n\n  const { handleSubmit, isSubmitting, values, resetField } = useForm({\n    validationSchema: computed(() => schemas[tab.value]),\n    keepValuesOnUnmount: true,\n  });\n\n  watch(tab, () => resetField(\"password\"));\n\n  function express(name: string) {\n    notice.value = `Connect ${name} here. This demo does not open a payment sheet.`;\n  }\n\n  // Replace the timeout with a request that signs the user in or starts a guest session.\n  const submit = handleSubmit(async () => {\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    done.value = true;\n  });\n</script>\n","category":"Checkout","description":"Express checkout with guest and sign in tabs. Features: Apple Pay, Google Pay and PayPal buttons, an or divider, tabs that switch between guest checkout and signing in with different validation, a password field with a show toggle and a continue confirmation","path":"Ecommerce/Checkout/BlockCheckout5.vue","components":["button","container","separator","tabs","vee-checkbox","vee-input","vee-password-input"]},{"name":"Checkout 6","fileName":"BlockCheckout6.vue","file":"<template>\n  <!--\n    Address form that adapts to the selected country\n    Features: Country select that changes the region and postal code labels, region options and validation pattern, a free text region for countries without a list, phone and delivery notes, save address option and a formatted confirmation\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div v-if=\"!saved\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Shipping address</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Choose a country first and the form adjusts to match.\n        </p>\n\n        <form class=\"mt-8 grid gap-4 sm:grid-cols-2\" novalidate @submit.prevent=\"submit\">\n          <div class=\"sm:col-span-2\">\n            <UiVeeSelect name=\"country\" label=\"Country or region\">\n              <option v-for=\"(entry, code) in countries\" :key=\"code\" :value=\"code\">\n                {{ entry.name }}\n              </option>\n            </UiVeeSelect>\n          </div>\n          <UiVeeInput name=\"firstName\" label=\"First name\" autocomplete=\"given-name\" />\n          <UiVeeInput name=\"lastName\" label=\"Last name\" autocomplete=\"family-name\" />\n          <div class=\"sm:col-span-2\">\n            <UiVeeInput name=\"address\" label=\"Address\" autocomplete=\"address-line1\" />\n          </div>\n          <div class=\"sm:col-span-2\">\n            <UiVeeInput\n              name=\"address2\"\n              label=\"Apartment, suite or unit (optional)\"\n              autocomplete=\"address-line2\"\n            />\n          </div>\n          <UiVeeInput name=\"city\" label=\"City\" autocomplete=\"address-level2\" />\n\n          <UiVeeSelect\n            v-if=\"config.regions.length\"\n            :key=\"`region-${country}`\"\n            name=\"region\"\n            :label=\"config.regionLabel\"\n          >\n            <option value=\"\" disabled>Select</option>\n            <option v-for=\"region in config.regions\" :key=\"region\" :value=\"region\">\n              {{ region }}\n            </option>\n          </UiVeeSelect>\n          <UiVeeInput\n            v-else\n            :key=\"`region-text-${country}`\"\n            name=\"region\"\n            :label=\"`${config.regionLabel} (optional)`\"\n            autocomplete=\"address-level1\"\n          />\n\n          <UiVeeInput\n            :key=\"`postal-${country}`\"\n            name=\"postal\"\n            :label=\"config.postalLabel\"\n            :placeholder=\"config.postalExample\"\n            autocomplete=\"postal-code\"\n          />\n          <UiVeeInput\n            name=\"phone\"\n            label=\"Phone (optional)\"\n            type=\"tel\"\n            placeholder=\"+1 555 123 4567\"\n            autocomplete=\"tel\"\n          />\n          <div class=\"sm:col-span-2\">\n            <UiVeeTextarea\n              name=\"notes\"\n              label=\"Delivery notes (optional)\"\n              placeholder=\"Leave it with the front desk\"\n              :rows=\"3\"\n            />\n          </div>\n          <UiVeeCheckbox\n            name=\"save\"\n            label=\"Save this address for next time\"\n            class=\"sm:col-span-2\"\n          />\n          <UiButton type=\"submit\" size=\"lg\" class=\"w-full sm:col-span-2\" :loading=\"isSubmitting\">\n            Save and continue\n          </UiButton>\n        </form>\n      </div>\n\n      <div v-else role=\"status\">\n        <span\n          class=\"grid size-12 place-items-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n        >\n          <Icon name=\"lucide:map-pin-check\" class=\"size-6\" />\n        </span>\n        <h1 class=\"mt-4 text-2xl font-bold tracking-tight\">Address saved</h1>\n        <address class=\"text-muted-foreground mt-3 text-sm leading-relaxed not-italic\">\n          {{ values.firstName }} {{ values.lastName }}<br />\n          {{ values.address }}<template v-if=\"values.address2\">, {{ values.address2 }}</template\n          ><br />\n          {{ values.city }}<template v-if=\"values.region\">, {{ values.region }}</template>\n          {{ values.postal }}<br />\n          {{ config.name }}\n        </address>\n        <UiButton variant=\"outline\" class=\"mt-6\" @click=\"saved = false\">Edit address</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n\n  type CountryConfig = {\n    name: string;\n    regionLabel: string;\n    /** Leave empty to show a free text field instead of a select. */\n    regions: string[];\n    postalLabel: string;\n    postalExample: string;\n    postalPattern: RegExp;\n    postalMessage: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      /** Country configs keyed by ISO code. Add your own markets. */\n      countries?: Record<string, CountryConfig>;\n    }>(),\n    {\n      countries: () => ({\n        US: {\n          name: \"United States\",\n          regionLabel: \"State\",\n          regions: [\n            \"California\",\n            \"Colorado\",\n            \"Florida\",\n            \"Illinois\",\n            \"New York\",\n            \"Texas\",\n            \"Washington\",\n          ],\n          postalLabel: \"ZIP code\",\n          postalExample: \"94103\",\n          postalPattern: /^\\d{5}(-\\d{4})?$/,\n          postalMessage: \"Enter a valid ZIP code, like 94103\",\n        },\n        CA: {\n          name: \"Canada\",\n          regionLabel: \"Province\",\n          regions: [\"Alberta\", \"British Columbia\", \"Manitoba\", \"Ontario\", \"Quebec\"],\n          postalLabel: \"Postal code\",\n          postalExample: \"M5V 2T6\",\n          postalPattern: /^[A-Za-z]\\d[A-Za-z][ -]?\\d[A-Za-z]\\d$/,\n          postalMessage: \"Enter a valid postal code, like M5V 2T6\",\n        },\n        GB: {\n          name: \"United Kingdom\",\n          regionLabel: \"County\",\n          regions: [],\n          postalLabel: \"Postcode\",\n          postalExample: \"SW1A 1AA\",\n          postalPattern: /^[A-Za-z]{1,2}\\d[A-Za-z\\d]? ?\\d[A-Za-z]{2}$/,\n          postalMessage: \"Enter a valid postcode, like SW1A 1AA\",\n        },\n        AU: {\n          name: \"Australia\",\n          regionLabel: \"State or territory\",\n          regions: [\n            \"New South Wales\",\n            \"Queensland\",\n            \"South Australia\",\n            \"Victoria\",\n            \"Western Australia\",\n          ],\n          postalLabel: \"Postcode\",\n          postalExample: \"2000\",\n          postalPattern: /^\\d{4}$/,\n          postalMessage: \"Enter a 4 digit postcode\",\n        },\n      }),\n    }\n  );\n\n  const saved = ref(false);\n  const country = ref(Object.keys(props.countries)[0]!);\n  const config = computed(() => props.countries[country.value]!);\n\n  // The schema is rebuilt for the chosen country.\n  const schema = computed(() =>\n    object({\n      country: string().required(),\n      firstName: string().required().label(\"First name\"),\n      lastName: string().required().label(\"Last name\"),\n      address: string().required().label(\"Address\"),\n      city: string().required().label(\"City\"),\n      region: config.value.regions.length\n        ? string().required(`Select a ${config.value.regionLabel.toLowerCase()}`)\n        : string().optional(),\n      postal: string()\n        .required()\n        .matches(config.value.postalPattern, config.value.postalMessage)\n        .label(config.value.postalLabel),\n    })\n  );\n\n  const { handleSubmit, isSubmitting, values, setFieldValue, resetField } = useForm({\n    validationSchema: schema,\n    initialValues: { country: country.value, region: \"\" },\n  });\n\n  watch(\n    () => values.country,\n    (next) => {\n      if (!next || next === country.value) return;\n      country.value = next;\n      setFieldValue(\"region\", \"\");\n      resetField(\"postal\");\n    }\n  );\n\n  // Replace the timeout with a request that saves the address.\n  const submit = handleSubmit(async () => {\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    saved.value = true;\n  });\n</script>\n","category":"Checkout","description":"Address form that adapts to the selected country. Features: Country select that changes the region and postal code labels, region options and validation pattern, a free text region for countries without a list, phone and delivery notes, save address option and a formatted confirmation","path":"Ecommerce/Checkout/BlockCheckout6.vue","components":["button","container","vee-checkbox","vee-input","vee-select","vee-textarea"]},{"name":"Checkout 7","fileName":"BlockCheckout7.vue","file":"<template>\n  <!--\n    Order review before placing the order\n    Features: Recap of contact, delivery address, shipping method and payment with edit buttons that emit an event, item list with totals, a required terms checkbox validated with vee-validate and a place order button that confirms the order\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div v-if=\"!placed\" class=\"grid gap-10 lg:grid-cols-[1fr_26rem] lg:gap-14\">\n      <div>\n        <h1 class=\"text-2xl font-bold tracking-tight\">Review your order</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Check everything below, then place your order.\n        </p>\n\n        <dl class=\"mt-8 divide-y rounded-xl border\">\n          <div v-for=\"row in rows\" :key=\"row.key\" class=\"flex items-start gap-4 p-5\">\n            <span class=\"bg-muted grid size-10 shrink-0 place-items-center rounded-full\">\n              <Icon :name=\"row.icon\" class=\"size-5\" />\n            </span>\n            <div class=\"min-w-0 flex-1\">\n              <dt class=\"text-muted-foreground text-xs tracking-wide uppercase\">{{ row.label }}</dt>\n              <dd class=\"mt-1 text-sm font-medium\">{{ row.value }}</dd>\n              <dd v-if=\"row.detail\" class=\"text-muted-foreground text-sm\">{{ row.detail }}</dd>\n            </div>\n            <UiButton variant=\"ghost\" size=\"sm\" @click=\"emit('edit', row.key)\">Edit</UiButton>\n          </div>\n        </dl>\n\n        <form class=\"mt-8 space-y-6\" novalidate @submit.prevent=\"submit\">\n          <UiVeeCheckbox name=\"terms\" label=\"I agree to the terms of sale and the returns policy\" />\n          <UiButton type=\"submit\" size=\"lg\" class=\"w-full\" :loading=\"isSubmitting\">\n            Place order · {{ money.format(total) }}\n          </UiButton>\n          <p class=\"text-muted-foreground flex items-center justify-center gap-2 text-xs\">\n            <Icon name=\"lucide:lock\" class=\"size-3.5\" />\n            Your payment is processed securely.\n          </p>\n        </form>\n      </div>\n\n      <aside class=\"lg:sticky lg:top-8 lg:self-start\">\n        <UiCard>\n          <UiCardContent class=\"space-y-5\">\n            <h2 class=\"text-lg font-semibold\">Order summary</h2>\n            <ul class=\"divide-y\">\n              <li\n                v-for=\"item in items\"\n                :key=\"item.id\"\n                class=\"flex items-center gap-4 py-4 first:pt-0\"\n              >\n                <div class=\"relative shrink-0\">\n                  <img\n                    :src=\"item.image\"\n                    :alt=\"item.name\"\n                    class=\"bg-muted size-16 rounded-lg object-cover\"\n                  />\n                  <span\n                    class=\"bg-foreground text-background absolute -top-2 -right-2 grid size-5 place-items-center rounded-full text-xs font-medium\"\n                    aria-hidden=\"true\"\n                  >\n                    {{ item.quantity }}\n                  </span>\n                </div>\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">\n                    {{ item.variant }}, qty {{ item.quantity }}\n                  </p>\n                </div>\n                <p class=\"text-sm font-medium tabular-nums\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n              </li>\n            </ul>\n            <dl class=\"space-y-2 border-t pt-4 text-sm\" aria-live=\"polite\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Subtotal</dt>\n                <dd class=\"tabular-nums\">{{ money.format(subtotal) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"tabular-nums\">\n                  {{ shippingCost === 0 ? \"Free\" : money.format(shippingCost) }}\n                </dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Estimated tax</dt>\n                <dd class=\"tabular-nums\">{{ money.format(tax) }}</dd>\n              </div>\n              <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n                <dt>Total</dt>\n                <dd class=\"tabular-nums\">{{ money.format(total) }}</dd>\n              </div>\n            </dl>\n          </UiCardContent>\n        </UiCard>\n      </aside>\n    </div>\n\n    <div v-else class=\"mx-auto max-w-lg text-center\" role=\"status\">\n      <span\n        class=\"mx-auto grid size-14 place-items-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n      >\n        <Icon name=\"lucide:check\" class=\"size-7\" />\n      </span>\n      <h1 class=\"mt-6 text-3xl font-bold tracking-tight\">Order placed</h1>\n      <p class=\"text-muted-foreground mt-3\">\n        Order <strong class=\"text-foreground\">AR-48213</strong> is confirmed. A receipt is on its\n        way to {{ order.email }}.\n      </p>\n      <UiButton class=\"mt-8\" variant=\"outline\" @click=\"placed = false\">Back to review</UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object } from \"yup\";\n\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  type Order = {\n    email: string;\n    name: string;\n    address: string;\n    shipping: { label: string; eta: string; price: number };\n    payment: { brand: string; last4: string };\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      order?: Order;\n      taxRate?: number;\n    }>(),\n    {\n      taxRate: 0.08,\n      order: () => ({\n        email: \"sarah.johnson@example.com\",\n        name: \"Sarah Johnson\",\n        address: \"123 Market Street, San Francisco CA 94103\",\n        shipping: { label: \"Express\", eta: \"Arrives in 2 to 3 business days\", price: 15 },\n        payment: { brand: \"Visa\", last4: \"4242\" },\n      }),\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const emit = defineEmits<{\n    /** Fired with `contact`, `address`, `shipping` or `payment` when an Edit button is clicked. */\n    edit: [section: \"contact\" | \"address\" | \"shipping\" | \"payment\"];\n  }>();\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const placed = ref(false);\n\n  const rows = computed(() => [\n    { key: \"contact\" as const, icon: \"lucide:mail\", label: \"Contact\", value: props.order.email },\n    {\n      key: \"address\" as const,\n      icon: \"lucide:map-pin\",\n      label: \"Ship to\",\n      value: props.order.name,\n      detail: props.order.address,\n    },\n    {\n      key: \"shipping\" as const,\n      icon: \"lucide:truck\",\n      label: \"Delivery\",\n      value: `${props.order.shipping.label}, ${money.format(props.order.shipping.price)}`,\n      detail: props.order.shipping.eta,\n    },\n    {\n      key: \"payment\" as const,\n      icon: \"lucide:credit-card\",\n      label: \"Payment\",\n      value: `${props.order.payment.brand} ending in ${props.order.payment.last4}`,\n    },\n  ]);\n\n  const subtotal = computed(() =>\n    props.items.reduce((sum, item) => sum + item.price * item.quantity, 0)\n  );\n  const shippingCost = computed(() => props.order.shipping.price);\n  const tax = computed(() => subtotal.value * props.taxRate);\n  const total = computed(() => subtotal.value + shippingCost.value + tax.value);\n\n  const schema = object({\n    terms: boolean()\n      .required(\"Please accept the terms to place your order\")\n      .oneOf([true], \"Please accept the terms to place your order\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm({ validationSchema: schema });\n\n  // Replace the timeout with a request that creates the order.\n  const submit = handleSubmit(async () => {\n    await new Promise((resolve) => setTimeout(resolve, 900));\n    placed.value = true;\n  });\n</script>\n","category":"Checkout","description":"Order review before placing the order. Features: Recap of contact, delivery address, shipping method and payment with edit buttons that emit an event, item list with totals, a required terms checkbox validated with vee-validate and a place order button that confirms the order","path":"Ecommerce/Checkout/BlockCheckout7.vue","components":["button","card","container","vee-checkbox"]},{"name":"Checkout 8","fileName":"BlockCheckout8.vue","file":"<template>\n  <!--\n    Two column checkout with a collapsible mobile summary\n    Features: Compact form beside a shaded order summary panel on large screens, on phones the summary collapses behind a total bar at the top, express buttons, validated contact, address and card fields and a pay button\n  -->\n  <UiContainer class=\"py-8 lg:py-16\">\n    <div v-if=\"!paid\" class=\"overflow-hidden rounded-2xl border lg:grid lg:grid-cols-[1fr_28rem]\">\n      <UiCollapsible v-model:open=\"summaryOpen\" class=\"bg-muted/40 border-b lg:hidden\">\n        <UiCollapsibleTrigger as-child>\n          <button\n            type=\"button\"\n            class=\"flex w-full items-center justify-between gap-3 px-5 py-4 text-sm\"\n            :aria-expanded=\"summaryOpen\"\n          >\n            <span class=\"flex items-center gap-2 font-medium\">\n              <Icon name=\"lucide:shopping-bag\" class=\"size-4\" />\n              {{ summaryOpen ? \"Hide\" : \"Show\" }} order summary\n              <Icon\n                name=\"lucide:chevron-down\"\n                class=\"size-4 transition\"\n                :class=\"summaryOpen ? 'rotate-180' : ''\"\n              />\n            </span>\n            <span class=\"font-semibold tabular-nums\">{{ money.format(total) }}</span>\n          </button>\n        </UiCollapsibleTrigger>\n        <UiCollapsibleContent class=\"px-5 pb-5\">\n          <div class=\"space-y-5\">\n            <h2 class=\"text-lg font-semibold\">Order summary</h2>\n            <ul class=\"divide-y\">\n              <li\n                v-for=\"item in items\"\n                :key=\"item.id\"\n                class=\"flex items-center gap-4 py-4 first:pt-0\"\n              >\n                <div class=\"relative shrink-0\">\n                  <img\n                    :src=\"item.image\"\n                    :alt=\"item.name\"\n                    class=\"bg-muted size-16 rounded-lg object-cover\"\n                  />\n                  <span\n                    class=\"bg-foreground text-background absolute -top-2 -right-2 grid size-5 place-items-center rounded-full text-xs font-medium\"\n                    aria-hidden=\"true\"\n                  >\n                    {{ item.quantity }}\n                  </span>\n                </div>\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">\n                    {{ item.variant }}, qty {{ item.quantity }}\n                  </p>\n                </div>\n                <p class=\"text-sm font-medium tabular-nums\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n              </li>\n            </ul>\n            <dl class=\"space-y-2 border-t pt-4 text-sm\" aria-live=\"polite\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Subtotal</dt>\n                <dd class=\"tabular-nums\">{{ money.format(subtotal) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"tabular-nums\">\n                  {{ shippingCost === 0 ? \"Free\" : money.format(shippingCost) }}\n                </dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Estimated tax</dt>\n                <dd class=\"tabular-nums\">{{ money.format(tax) }}</dd>\n              </div>\n              <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n                <dt>Total</dt>\n                <dd class=\"tabular-nums\">{{ money.format(total) }}</dd>\n              </div>\n            </dl>\n          </div>\n        </UiCollapsibleContent>\n      </UiCollapsible>\n\n      <div class=\"p-6 sm:p-10\">\n        <div>\n          <p\n            class=\"text-muted-foreground mb-3 text-center text-xs font-medium tracking-wide uppercase\"\n          >\n            Express checkout\n          </p>\n          <div class=\"grid grid-cols-2 gap-3\">\n            <button\n              type=\"button\"\n              class=\"flex h-11 items-center justify-center rounded-lg border bg-white text-black transition hover:opacity-90\"\n              aria-label=\"Pay with Apple Pay\"\n            >\n              <Icon name=\"logos:apple-pay\" class=\"h-5 w-auto\" />\n            </button>\n            <button\n              type=\"button\"\n              class=\"flex h-11 items-center justify-center rounded-lg bg-[#ffc439] text-black transition hover:opacity-90\"\n              aria-label=\"Pay with PayPal\"\n            >\n              <Icon name=\"logos:paypal\" class=\"h-5 w-auto\" />\n            </button>\n          </div>\n          <div class=\"my-6 flex items-center gap-4\">\n            <UiSeparator class=\"flex-1\" />\n            <span class=\"text-muted-foreground text-xs\">or</span>\n            <UiSeparator class=\"flex-1\" />\n          </div>\n        </div>\n\n        <form class=\"space-y-8\" novalidate @submit.prevent=\"submit\">\n          <section class=\"space-y-4\" aria-labelledby=\"c8-contact\">\n            <h2 id=\"c8-contact\" class=\"font-semibold\">Contact</h2>\n            <UiVeeInput\n              name=\"email\"\n              label=\"Email\"\n              type=\"email\"\n              placeholder=\"you@example.com\"\n              autocomplete=\"email\"\n            />\n          </section>\n\n          <section class=\"space-y-4\" aria-labelledby=\"c8-ship\">\n            <h2 id=\"c8-ship\" class=\"font-semibold\">Delivery</h2>\n            <div class=\"grid gap-4 sm:grid-cols-2\">\n              <UiVeeInput name=\"firstName\" label=\"First name\" autocomplete=\"given-name\" />\n              <UiVeeInput name=\"lastName\" label=\"Last name\" autocomplete=\"family-name\" />\n            </div>\n            <UiVeeInput name=\"address\" label=\"Address\" autocomplete=\"address-line1\" />\n            <div class=\"grid gap-4 sm:grid-cols-2\">\n              <UiVeeInput name=\"city\" label=\"City\" autocomplete=\"address-level2\" />\n              <UiVeeInput\n                name=\"zip\"\n                label=\"ZIP code\"\n                autocomplete=\"postal-code\"\n                inputmode=\"numeric\"\n              />\n            </div>\n          </section>\n\n          <section class=\"space-y-4\" aria-labelledby=\"c8-pay\">\n            <h2 id=\"c8-pay\" class=\"font-semibold\">Payment</h2>\n            <UiVeeInput\n              v-maska=\"'#### #### #### ####'\"\n              name=\"cardNumber\"\n              label=\"Card number\"\n              placeholder=\"4242 4242 4242 4242\"\n              autocomplete=\"cc-number\"\n              inputmode=\"numeric\"\n              hint=\"Demo only. Try 4242 4242 4242 4242.\"\n            />\n            <div class=\"grid gap-4 sm:grid-cols-2\">\n              <UiVeeInput\n                v-maska=\"'##/##'\"\n                name=\"expiry\"\n                label=\"Expiry date\"\n                placeholder=\"MM/YY\"\n                autocomplete=\"cc-exp\"\n                inputmode=\"numeric\"\n              />\n              <UiVeeInput\n                v-maska=\"'####'\"\n                name=\"cvc\"\n                label=\"Security code\"\n                placeholder=\"123\"\n                autocomplete=\"cc-csc\"\n                inputmode=\"numeric\"\n              />\n            </div>\n          </section>\n\n          <UiButton type=\"submit\" size=\"lg\" class=\"w-full\" :loading=\"isSubmitting\">\n            Pay {{ money.format(total) }}\n          </UiButton>\n        </form>\n      </div>\n\n      <aside class=\"bg-muted/40 hidden border-l p-10 lg:block\">\n        <div class=\"sticky top-8\">\n          <div class=\"space-y-5\">\n            <h2 class=\"text-lg font-semibold\">Order summary</h2>\n            <ul class=\"divide-y\">\n              <li\n                v-for=\"item in items\"\n                :key=\"item.id\"\n                class=\"flex items-center gap-4 py-4 first:pt-0\"\n              >\n                <div class=\"relative shrink-0\">\n                  <img\n                    :src=\"item.image\"\n                    :alt=\"item.name\"\n                    class=\"bg-muted size-16 rounded-lg object-cover\"\n                  />\n                  <span\n                    class=\"bg-foreground text-background absolute -top-2 -right-2 grid size-5 place-items-center rounded-full text-xs font-medium\"\n                    aria-hidden=\"true\"\n                  >\n                    {{ item.quantity }}\n                  </span>\n                </div>\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">\n                    {{ item.variant }}, qty {{ item.quantity }}\n                  </p>\n                </div>\n                <p class=\"text-sm font-medium tabular-nums\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n              </li>\n            </ul>\n            <dl class=\"space-y-2 border-t pt-4 text-sm\" aria-live=\"polite\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Subtotal</dt>\n                <dd class=\"tabular-nums\">{{ money.format(subtotal) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"tabular-nums\">\n                  {{ shippingCost === 0 ? \"Free\" : money.format(shippingCost) }}\n                </dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Estimated tax</dt>\n                <dd class=\"tabular-nums\">{{ money.format(tax) }}</dd>\n              </div>\n              <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n                <dt>Total</dt>\n                <dd class=\"tabular-nums\">{{ money.format(total) }}</dd>\n              </div>\n            </dl>\n          </div>\n        </div>\n      </aside>\n    </div>\n\n    <div v-else class=\"mx-auto max-w-lg py-12 text-center\" role=\"status\">\n      <span\n        class=\"mx-auto grid size-14 place-items-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n      >\n        <Icon name=\"lucide:check\" class=\"size-7\" />\n      </span>\n      <h1 class=\"mt-6 text-3xl font-bold tracking-tight\">Thank you for your order</h1>\n      <p class=\"text-muted-foreground mt-3\">\n        We emailed your receipt and will let you know when it ships.\n      </p>\n      <UiButton class=\"mt-8\" variant=\"outline\" @click=\"paid = false\">Back to checkout</UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  type CartItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: CartItem[];\n      shippingFee?: number;\n      freeShippingAt?: number;\n      taxRate?: number;\n    }>(),\n    {\n      shippingFee: 8,\n      freeShippingAt: 75,\n      taxRate: 0.08,\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=400&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const summaryOpen = ref(false);\n  const paid = ref(false);\n\n  const subtotal = computed(() =>\n    props.items.reduce((sum, item) => sum + item.price * item.quantity, 0)\n  );\n  const shippingCost = computed(() =>\n    subtotal.value >= props.freeShippingAt ? 0 : props.shippingFee\n  );\n  const tax = computed(() => subtotal.value * props.taxRate);\n  const total = computed(() => subtotal.value + shippingCost.value + tax.value);\n\n  // Demo validation only. For real payments use your provider's hosted card fields.\n  function passesLuhn(value: string) {\n    const digits = value.replace(/\\D/g, \"\");\n    if (digits.length < 13) return false;\n    let sum = 0;\n    for (let i = 0; i < digits.length; i++) {\n      let digit = Number(digits[digits.length - 1 - i]);\n      if (i % 2 === 1) {\n        digit *= 2;\n        if (digit > 9) digit -= 9;\n      }\n      sum += digit;\n    }\n    return sum % 10 === 0;\n  }\n\n  function isFutureExpiry(value: string) {\n    const match = /^(\\d{2})\\/(\\d{2})$/.exec(value);\n    if (!match) return false;\n    const month = Number(match[1]);\n    const year = 2000 + Number(match[2]);\n    if (month < 1 || month > 12) return false;\n    return new Date(year, month, 0, 23, 59, 59) >= new Date();\n  }\n\n  const schema = object({\n    email: string().email(\"Enter a valid email address\").required().label(\"Email\"),\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    address: string().required().label(\"Address\"),\n    city: string().required().label(\"City\"),\n    zip: string()\n      .matches(/^\\d{5}$/, \"Enter a 5 digit ZIP code\")\n      .required()\n      .label(\"ZIP code\"),\n    cardNumber: string()\n      .required()\n      .test(\"luhn\", \"Enter a valid card number\", (value) => passesLuhn(value ?? \"\"))\n      .label(\"Card number\"),\n    expiry: string()\n      .required()\n      .test(\"expiry\", \"Enter a valid expiry date\", (value) => isFutureExpiry(value ?? \"\"))\n      .label(\"Expiry date\"),\n    cvc: string()\n      .matches(/^\\d{3,4}$/, \"Enter 3 or 4 digits\")\n      .required()\n      .label(\"Security code\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  // Replace the timeout with a request to your payment provider.\n  const submit = handleSubmit(async () => {\n    await new Promise((resolve) => setTimeout(resolve, 900));\n    paid.value = true;\n  });\n</script>\n","category":"Checkout","description":"Two column checkout with a collapsible mobile summary. Features: Compact form beside a shaded order summary panel on large screens, on phones the summary collapses behind a total bar at the top, express buttons, validated contact, address and card fields and a pay button","path":"Ecommerce/Checkout/BlockCheckout8.vue","components":["button","collapsible","container","separator","vee-input"]},{"name":"Comparison 1","fileName":"BlockComparison1.vue","file":"<template>\n  <!--\n    Feature comparison matrix\n    Features: A table with a column for each plan and features grouped by category, checks and dashes that have text for screen readers, short values like limits, a highlighted recommended plan and a call to action for each plan\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"text-center\">\n        <h1 class=\"text-3xl font-bold tracking-tight lg:text-4xl\">Compare plans</h1>\n        <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl\">\n          See what is included in each plan and pick the one that fits.\n        </p>\n      </div>\n\n      <div class=\"relative mt-10 overflow-x-auto rounded-xl border\">\n        <UiTable class=\"min-w-[40rem]\">\n          <UiTableHeader>\n            <UiTableRow>\n              <UiTableHead class=\"w-1/3\"><span class=\"sr-only\">Feature</span></UiTableHead>\n              <UiTableHead\n                v-for=\"plan in plans\"\n                :key=\"plan.name\"\n                class=\"text-center\"\n                :class=\"plan.recommended ? 'bg-primary/5' : ''\"\n              >\n                <p class=\"text-foreground text-base font-semibold\">{{ plan.name }}</p>\n                <p class=\"text-muted-foreground text-sm font-normal\">{{ plan.price }}</p>\n                <UiBadge\n                  v-if=\"plan.recommended\"\n                  variant=\"soft\"\n                  color=\"blue\"\n                  shape=\"pill\"\n                  class=\"mt-1\"\n                  >Recommended</UiBadge\n                >\n              </UiTableHead>\n            </UiTableRow>\n          </UiTableHeader>\n          <UiTableBody>\n            <template v-for=\"group in groups\" :key=\"group.name\">\n              <UiTableRow class=\"bg-muted/40 hover:bg-muted/40\">\n                <UiTableCell\n                  :colspan=\"plans.length + 1\"\n                  class=\"text-xs font-semibold tracking-wide uppercase\"\n                  >{{ group.name }}</UiTableCell\n                >\n              </UiTableRow>\n              <UiTableRow v-for=\"feature in group.features\" :key=\"feature.name\">\n                <UiTableCell class=\"font-medium\">{{ feature.name }}</UiTableCell>\n                <UiTableCell\n                  v-for=\"(value, index) in feature.values\"\n                  :key=\"index\"\n                  class=\"text-center\"\n                  :class=\"plans[index]?.recommended ? 'bg-primary/5' : ''\"\n                >\n                  <template v-if=\"value === true\"\n                    ><Icon name=\"lucide:check\" class=\"mx-auto size-5 text-green-500\" /><span\n                      class=\"sr-only\"\n                      >Included</span\n                    ></template\n                  >\n                  <template v-else-if=\"value === false\"\n                    ><Icon name=\"lucide:minus\" class=\"text-muted-foreground mx-auto size-5\" /><span\n                      class=\"sr-only\"\n                      >Not included</span\n                    ></template\n                  >\n                  <span v-else class=\"text-sm\">{{ value }}</span>\n                </UiTableCell>\n              </UiTableRow>\n            </template>\n            <UiTableRow>\n              <UiTableCell />\n              <UiTableCell\n                v-for=\"plan in plans\"\n                :key=\"plan.name\"\n                class=\"text-center\"\n                :class=\"plan.recommended ? 'bg-primary/5' : ''\"\n              >\n                <UiButton\n                  :variant=\"plan.recommended ? 'default' : 'outline'\"\n                  size=\"sm\"\n                  @click=\"useSonner.success(`${plan.name} selected`)\"\n                  >{{ plan.cta }}</UiButton\n                >\n              </UiTableCell>\n            </UiTableRow>\n          </UiTableBody>\n        </UiTable>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Plan = { name: string; price: string; cta: string; recommended?: boolean };\n  type Group = { name: string; features: { name: string; values: (boolean | string)[] }[] };\n\n  withDefaults(\n    defineProps<{\n      plans?: Plan[];\n      groups?: Group[];\n    }>(),\n    {\n      plans: () => [\n        { name: \"Free\", price: \"$0 per month\", cta: \"Start free\" },\n        { name: \"Pro\", price: \"$12 per month\", cta: \"Get Pro\", recommended: true },\n        { name: \"Business\", price: \"$39 per month\", cta: \"Contact sales\" },\n      ],\n      groups: () => [\n        {\n          name: \"Core\",\n          features: [\n            { name: \"Projects\", values: [\"3\", \"Unlimited\", \"Unlimited\"] },\n            { name: \"Team members\", values: [\"1\", \"10\", \"Unlimited\"] },\n            { name: \"Storage\", values: [\"1 GB\", \"100 GB\", \"2 TB\"] },\n            { name: \"Version history\", values: [\"7 days\", \"30 days\", \"1 year\"] },\n          ],\n        },\n        {\n          name: \"Collaboration\",\n          features: [\n            { name: \"Comments and mentions\", values: [true, true, true] },\n            { name: \"Shared workspaces\", values: [false, true, true] },\n            { name: \"Guest access\", values: [false, true, true] },\n            { name: \"Approval workflows\", values: [false, false, true] },\n          ],\n        },\n        {\n          name: \"Security and support\",\n          features: [\n            { name: \"Two factor authentication\", values: [true, true, true] },\n            { name: \"Single sign on\", values: [false, false, true] },\n            { name: \"Audit log\", values: [false, false, true] },\n            { name: \"Support\", values: [\"Community\", \"Email\", \"Priority and phone\"] },\n          ],\n        },\n      ],\n    }\n  );\n</script>\n","category":"Comparison","description":"Feature comparison matrix. Features: A table with a column for each plan and features grouped by category, checks and dashes that have text for screen readers, short values like limits, a highlighted recommended plan and a call to action for each plan","path":"Comparison/BlockComparison1.vue","components":["badge","button","container","table"]},{"name":"Comparison 2","fileName":"BlockComparison2.vue","file":"<template>\n  <!--\n    Plan comparison cards with differences\n    Features: Plan cards with the price and a button, specs lined up in rows under each card, a most popular badge and a switch that hides the rows where every plan is the same so you only see the differences\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-4\">\n        <div>\n          <h1 class=\"text-3xl font-bold tracking-tight\">Pick your plan</h1>\n          <p class=\"text-muted-foreground mt-2\">\n            Every plan includes the basics. Compare what changes.\n          </p>\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <UiSwitch id=\"differences\" v-model=\"onlyDifferences\" />\n          <UiLabel for=\"differences\" class=\"text-sm font-normal\">Show only differences</UiLabel>\n        </div>\n      </div>\n\n      <div class=\"mt-8 grid gap-4 md:grid-cols-3\">\n        <UiCard\n          v-for=\"plan in plans\"\n          :key=\"plan.name\"\n          class=\"gap-4\"\n          :class=\"plan.popular ? 'border-primary ring-primary/20 ring-4' : ''\"\n        >\n          <UiCardHeader>\n            <div class=\"flex items-center justify-between gap-2\">\n              <UiCardTitle>{{ plan.name }}</UiCardTitle>\n              <UiBadge v-if=\"plan.popular\" variant=\"solid\" color=\"blue\" shape=\"pill\"\n                >Most popular</UiBadge\n              >\n            </div>\n            <p class=\"text-3xl font-bold tabular-nums\">\n              ${{ plan.price\n              }}<span class=\"text-muted-foreground text-sm font-normal\"> / month</span>\n            </p>\n            <UiCardDescription>{{ plan.blurb }}</UiCardDescription>\n          </UiCardHeader>\n          <UiCardContent>\n            <ul class=\"divide-y text-sm\" aria-live=\"polite\">\n              <li\n                v-for=\"row in rows\"\n                :key=\"row.label\"\n                class=\"flex items-center justify-between gap-3 py-2.5\"\n              >\n                <span class=\"text-muted-foreground\">{{ row.label }}</span>\n                <span class=\"font-medium\">{{ row.values[plans.indexOf(plan)] }}</span>\n              </li>\n            </ul>\n          </UiCardContent>\n          <UiCardFooter>\n            <UiButton\n              class=\"w-full\"\n              :variant=\"plan.popular ? 'default' : 'outline'\"\n              @click=\"useSonner.success(`${plan.name} selected`)\"\n              >Choose {{ plan.name }}</UiButton\n            >\n          </UiCardFooter>\n        </UiCard>\n      </div>\n      <p class=\"text-muted-foreground mt-4 text-center text-sm\" aria-live=\"polite\">\n        {{\n          onlyDifferences\n            ? `Showing ${rows.length} of ${specs.length} rows that differ.`\n            : `Showing all ${specs.length} rows.`\n        }}\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Plan = { name: string; price: number; blurb: string; popular?: boolean };\n  type Spec = { label: string; values: string[] };\n\n  const props = withDefaults(\n    defineProps<{\n      plans?: Plan[];\n      specs?: Spec[];\n    }>(),\n    {\n      plans: () => [\n        { name: \"Starter\", price: 9, blurb: \"For individuals getting going.\" },\n        { name: \"Team\", price: 29, blurb: \"For small teams that ship together.\", popular: true },\n        { name: \"Scale\", price: 79, blurb: \"For companies with more needs.\" },\n      ],\n      specs: () => [\n        { label: \"Uptime guarantee\", values: [\"99.9%\", \"99.9%\", \"99.9%\"] },\n        { label: \"Projects\", values: [\"10\", \"Unlimited\", \"Unlimited\"] },\n        { label: \"Seats\", values: [\"1\", \"10\", \"50\"] },\n        { label: \"API requests\", values: [\"10k / day\", \"100k / day\", \"1M / day\"] },\n        { label: \"Data export\", values: [\"CSV\", \"CSV\", \"CSV\"] },\n        { label: \"Support\", values: [\"Email\", \"Email\", \"Priority\"] },\n        { label: \"Audit log\", values: [\"No\", \"No\", \"Yes\"] },\n      ],\n    }\n  );\n\n  const onlyDifferences = ref(false);\n  const rows = computed(() =>\n    onlyDifferences.value\n      ? props.specs.filter((spec) => new Set(spec.values).size > 1)\n      : props.specs\n  );\n</script>\n","category":"Comparison","description":"Plan comparison cards with differences. Features: Plan cards with the price and a button, specs lined up in rows under each card, a most popular badge and a switch that hides the rows where every plan is the same so you only see the differences","path":"Comparison/BlockComparison2.vue","components":["badge","button","card","container","label","switch"]},{"name":"Comparison 3","fileName":"BlockComparison3.vue","file":"<template>\n  <!--\n    Us versus them comparison\n    Features: Two columns that compare your product with an alternative, rows with checks, crosses and notes, a switch to hide the rows where both do the same, a score for each side and a call to action\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"text-center\">\n        <h1 class=\"text-3xl font-bold tracking-tight lg:text-4xl\">Acme vs Other Tool</h1>\n        <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl\">\n          An honest look at how they compare. We list the places where the other tool is better too.\n        </p>\n      </div>\n\n      <div class=\"mt-6 flex items-center justify-center gap-2\">\n        <UiSwitch id=\"hide-ties\" v-model=\"hideTies\" />\n        <UiLabel for=\"hide-ties\" class=\"text-sm font-normal\">Hide features both tools have</UiLabel>\n      </div>\n\n      <div class=\"mt-6 overflow-hidden rounded-xl border\">\n        <div\n          class=\"bg-muted/50 grid grid-cols-[1fr_6rem_6rem] items-center gap-2 border-b px-4 py-3 text-sm font-semibold sm:grid-cols-[1fr_9rem_9rem]\"\n        >\n          <span class=\"sr-only\">Feature</span><span aria-hidden=\"true\" />\n          <span class=\"text-center\">Acme</span>\n          <span class=\"text-muted-foreground text-center\">Other Tool</span>\n        </div>\n        <ul class=\"divide-y\" aria-live=\"polite\">\n          <li\n            v-for=\"row in visible\"\n            :key=\"row.name\"\n            class=\"grid grid-cols-[1fr_6rem_6rem] items-center gap-2 px-4 py-3 text-sm sm:grid-cols-[1fr_9rem_9rem]\"\n          >\n            <div>\n              <p class=\"font-medium\">{{ row.name }}</p>\n              <p v-if=\"row.note\" class=\"text-muted-foreground text-xs\">{{ row.note }}</p>\n            </div>\n            <span class=\"text-center\">\n              <Icon\n                :name=\"row.us ? 'lucide:circle-check' : 'lucide:circle-x'\"\n                class=\"mx-auto size-5\"\n                :class=\"row.us ? 'text-green-500' : 'text-red-400'\"\n              />\n              <span class=\"sr-only\">{{ row.us ? \"Yes\" : \"No\" }}</span>\n            </span>\n            <span class=\"text-center\">\n              <Icon\n                :name=\"row.them ? 'lucide:circle-check' : 'lucide:circle-x'\"\n                class=\"mx-auto size-5\"\n                :class=\"row.them ? 'text-green-500' : 'text-red-400'\"\n              />\n              <span class=\"sr-only\">{{ row.them ? \"Yes\" : \"No\" }}</span>\n            </span>\n          </li>\n          <li v-if=\"!visible.length\" class=\"text-muted-foreground px-4 py-8 text-center text-sm\">\n            No differences to show.\n          </li>\n        </ul>\n        <div\n          class=\"bg-muted/30 grid grid-cols-[1fr_6rem_6rem] gap-2 border-t px-4 py-3 text-sm font-semibold sm:grid-cols-[1fr_9rem_9rem]\"\n        >\n          <span>Features in this list</span>\n          <span class=\"text-center tabular-nums\">{{ score(\"us\") }} of {{ rows.length }}</span>\n          <span class=\"text-muted-foreground text-center tabular-nums\"\n            >{{ score(\"them\") }} of {{ rows.length }}</span\n          >\n        </div>\n      </div>\n\n      <div class=\"mt-8 text-center\">\n        <UiButton size=\"lg\" @click=\"useSonner.success('Starting your free trial')\"\n          >Try Acme free for 14 days</UiButton\n        >\n        <p class=\"text-muted-foreground mt-2 text-xs\">No credit card needed.</p>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Row = { name: string; us: boolean; them: boolean; note?: string };\n\n  const props = withDefaults(\n    defineProps<{\n      rows?: Row[];\n    }>(),\n    {\n      rows: () => [\n        {\n          name: \"Unlimited projects\",\n          us: true,\n          them: false,\n          note: \"Other Tool caps free accounts at 3.\",\n        },\n        { name: \"Real time collaboration\", us: true, them: true },\n        { name: \"Two factor authentication\", us: true, them: true },\n        { name: \"Import from CSV and JSON\", us: true, them: false },\n        { name: \"Public API and webhooks\", us: true, them: true },\n        { name: \"Offline mode\", us: false, them: true, note: \"On our roadmap for next quarter.\" },\n        { name: \"Single sign on on every paid plan\", us: true, them: false },\n        { name: \"Native mobile apps\", us: false, them: true },\n      ],\n    }\n  );\n\n  const hideTies = ref(false);\n  const visible = computed(() =>\n    hideTies.value ? props.rows.filter((row) => row.us !== row.them) : props.rows\n  );\n  const score = (side: \"us\" | \"them\") => props.rows.filter((row) => row[side]).length;\n</script>\n","category":"Comparison","description":"Us versus them comparison. Features: Two columns that compare your product with an alternative, rows with checks, crosses and notes, a switch to hide the rows where both do the same, a score for each side and a call to action","path":"Comparison/BlockComparison3.vue","components":["button","container","label","switch"]},{"name":"Comparison 4","fileName":"BlockComparison4.vue","file":"<template>\n  <!--\n    Matrix with a billing toggle\n    Features: A monthly and yearly switch that changes the price row and shows the yearly saving, a feature matrix under the prices, a plan you can select with a radio group that highlights its column and one button that follows the selected plan\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"text-center\">\n        <h1 class=\"text-3xl font-bold tracking-tight lg:text-4xl\">Choose a plan</h1>\n        <div class=\"mt-6 flex items-center justify-center gap-3\">\n          <span class=\"text-sm\" :class=\"yearly ? 'text-muted-foreground' : 'font-medium'\"\n            >Monthly</span\n          >\n          <UiSwitch v-model=\"yearly\" aria-label=\"Bill yearly\" />\n          <span class=\"text-sm\" :class=\"yearly ? 'font-medium' : 'text-muted-foreground'\"\n            >Yearly</span\n          >\n          <UiBadge variant=\"soft\" color=\"green\" shape=\"pill\">Save {{ saving }}%</UiBadge>\n        </div>\n      </div>\n\n      <UiRadioGroup\n        v-model=\"picked\"\n        class=\"relative mt-8 overflow-x-auto rounded-xl border\"\n        aria-label=\"Plan\"\n      >\n        <div class=\"min-w-[40rem]\">\n          <div class=\"grid grid-cols-[1.4fr_repeat(3,1fr)] border-b\">\n            <div />\n            <label\n              v-for=\"plan in plans\"\n              :key=\"plan.id\"\n              class=\"has-[[data-state=checked]]:bg-primary/5 flex cursor-pointer flex-col items-center gap-1 border-l p-4 text-center\"\n            >\n              <UiRadioGroupItem :value=\"plan.id\" :aria-label=\"plan.name\" />\n              <span class=\"font-semibold\">{{ plan.name }}</span>\n              <span class=\"text-2xl font-bold tabular-nums\">{{ money(price(plan)) }}</span>\n              <span class=\"text-muted-foreground text-xs\"\n                >per month{{ yearly ? \", billed yearly\" : \"\" }}</span\n              >\n            </label>\n          </div>\n          <div\n            v-for=\"row in rows\"\n            :key=\"row.name\"\n            class=\"grid grid-cols-[1.4fr_repeat(3,1fr)] border-b text-sm last:border-b-0\"\n          >\n            <div class=\"px-4 py-3 font-medium\">{{ row.name }}</div>\n            <div\n              v-for=\"(value, index) in row.values\"\n              :key=\"index\"\n              class=\"flex items-center justify-center border-l px-2 py-3\"\n              :class=\"plans[index]?.id === picked ? 'bg-primary/5' : ''\"\n            >\n              <template v-if=\"typeof value === 'boolean'\">\n                <Icon\n                  :name=\"value ? 'lucide:check' : 'lucide:minus'\"\n                  class=\"size-5\"\n                  :class=\"value ? 'text-green-500' : 'text-muted-foreground'\"\n                />\n                <span class=\"sr-only\">{{ value ? \"Included\" : \"Not included\" }}</span>\n              </template>\n              <span v-else>{{ value }}</span>\n            </div>\n          </div>\n        </div>\n      </UiRadioGroup>\n\n      <div class=\"mt-6 flex flex-col items-center gap-2\" aria-live=\"polite\">\n        <p class=\"text-sm\">\n          {{ chosen.name }}: <span class=\"font-semibold\">{{ money(billed) }}</span>\n          {{ yearly ? \"per year\" : \"per month\" }}\n          <span v-if=\"yearly\" class=\"text-muted-foreground\">(you save {{ money(saved) }})</span>\n        </p>\n        <UiButton size=\"lg\" @click=\"useSonner.success(`Continuing with ${chosen.name}`)\"\n          >Continue with {{ chosen.name }}</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Plan = { id: string; name: string; monthly: number };\n  type Row = { name: string; values: (boolean | string)[] };\n\n  const props = withDefaults(\n    defineProps<{\n      saving?: number;\n      plans?: Plan[];\n      rows?: Row[];\n    }>(),\n    {\n      saving: 20,\n      plans: () => [\n        { id: \"basic\", name: \"Basic\", monthly: 10 },\n        { id: \"pro\", name: \"Pro\", monthly: 25 },\n        { id: \"max\", name: \"Max\", monthly: 60 },\n      ],\n      rows: () => [\n        { name: \"Projects\", values: [\"5\", \"50\", \"Unlimited\"] },\n        { name: \"Team members\", values: [\"2\", \"10\", \"50\"] },\n        { name: \"Custom domains\", values: [false, true, true] },\n        { name: \"Advanced analytics\", values: [false, true, true] },\n        { name: \"Priority support\", values: [false, false, true] },\n      ],\n    }\n  );\n\n  const yearly = ref(true);\n  const picked = ref(props.plans[1]?.id ?? props.plans[0]?.id ?? \"\");\n\n  const price = (plan: Plan) =>\n    yearly.value ? Math.round(plan.monthly * (1 - props.saving / 100) * 100) / 100 : plan.monthly;\n  const chosen = computed(\n    () => props.plans.find((plan) => plan.id === picked.value) ?? props.plans[0]!\n  );\n  const billed = computed(() =>\n    yearly.value ? Math.round(price(chosen.value) * 12 * 100) / 100 : chosen.value.monthly\n  );\n  const saved = computed(() => Math.round((chosen.value.monthly * 12 - billed.value) * 100) / 100);\n  const money = (value: number) => `$${value.toFixed(2).replace(/\\.00$/, \"\")}`;\n</script>\n","category":"Comparison","description":"Matrix with a billing toggle. Features: A monthly and yearly switch that changes the price row and shows the yearly saving, a feature matrix under the prices, a plan you can select with a radio group that highlights its column and one button that follows the selected plan","path":"Comparison/BlockComparison4.vue","components":["badge","button","container","radio-group","switch"]},{"name":"Comparison 5","fileName":"BlockComparison5.vue","file":"<template>\n  <!--\n    Checklist columns\n    Features: One column for each plan with a checklist of what is included and what is not, a highlighted popular plan, a show all features button that expands each list and a call to action for each plan\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"text-center\">\n        <h1 class=\"text-3xl font-bold tracking-tight lg:text-4xl\">What you get</h1>\n        <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl\">\n          Every plan can be cancelled at any time.\n        </p>\n      </div>\n\n      <div class=\"mt-10 grid items-start gap-6 md:grid-cols-3\">\n        <UiCard\n          v-for=\"plan in plans\"\n          :key=\"plan.name\"\n          class=\"gap-4\"\n          :class=\"plan.popular ? 'border-primary' : ''\"\n        >\n          <UiCardHeader>\n            <div class=\"flex items-center justify-between\">\n              <UiCardTitle>{{ plan.name }}</UiCardTitle>\n              <UiBadge v-if=\"plan.popular\" variant=\"soft\" color=\"blue\" shape=\"pill\"\n                >Popular</UiBadge\n              >\n            </div>\n            <UiCardDescription>{{ plan.blurb }}</UiCardDescription>\n          </UiCardHeader>\n          <UiCardContent>\n            <ul class=\"space-y-2.5 text-sm\" :aria-label=\"`${plan.name} features`\">\n              <li\n                v-for=\"item in shown(plan)\"\n                :key=\"item.text\"\n                class=\"flex items-start gap-2.5\"\n                :class=\"item.included ? '' : 'text-muted-foreground'\"\n              >\n                <Icon\n                  :name=\"item.included ? 'lucide:circle-check' : 'lucide:circle-x'\"\n                  class=\"mt-0.5 size-4 shrink-0\"\n                  :class=\"item.included ? 'text-green-500' : 'text-muted-foreground/60'\"\n                />\n                <span\n                  >{{ item.text\n                  }}<span class=\"sr-only\">{{\n                    item.included ? \", included\" : \", not included\"\n                  }}</span></span\n                >\n              </li>\n            </ul>\n            <UiButton\n              v-if=\"plan.features.length > 5\"\n              variant=\"link\"\n              size=\"sm\"\n              class=\"mt-3 h-auto p-0\"\n              :aria-expanded=\"open\"\n              @click=\"open = !open\"\n            >\n              {{ open ? \"Show fewer features\" : `Show all ${plan.features.length} features` }}\n            </UiButton>\n          </UiCardContent>\n          <UiCardFooter>\n            <UiButton\n              class=\"w-full\"\n              :variant=\"plan.popular ? 'default' : 'outline'\"\n              @click=\"useSonner.success(`${plan.name} selected`)\"\n              >{{ plan.cta }}</UiButton\n            >\n          </UiCardFooter>\n        </UiCard>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Plan = {\n    name: string;\n    blurb: string;\n    cta: string;\n    popular?: boolean;\n    features: { text: string; included: boolean }[];\n  };\n\n  withDefaults(\n    defineProps<{\n      plans?: Plan[];\n    }>(),\n    {\n      plans: () => [\n        {\n          name: \"Free\",\n          blurb: \"Try it out on a side project.\",\n          cta: \"Start free\",\n          features: [\n            { text: \"3 projects\", included: true },\n            { text: \"1 team member\", included: true },\n            { text: \"Community support\", included: true },\n            { text: \"7 days of history\", included: true },\n            { text: \"Custom domains\", included: false },\n            { text: \"Advanced analytics\", included: false },\n            { text: \"Single sign on\", included: false },\n          ],\n        },\n        {\n          name: \"Pro\",\n          blurb: \"For people who ship every week.\",\n          cta: \"Get Pro\",\n          popular: true,\n          features: [\n            { text: \"Unlimited projects\", included: true },\n            { text: \"10 team members\", included: true },\n            { text: \"Email support\", included: true },\n            { text: \"30 days of history\", included: true },\n            { text: \"Custom domains\", included: true },\n            { text: \"Advanced analytics\", included: true },\n            { text: \"Single sign on\", included: false },\n          ],\n        },\n        {\n          name: \"Business\",\n          blurb: \"For teams with security needs.\",\n          cta: \"Contact sales\",\n          features: [\n            { text: \"Unlimited projects\", included: true },\n            { text: \"Unlimited team members\", included: true },\n            { text: \"Priority support\", included: true },\n            { text: \"1 year of history\", included: true },\n            { text: \"Custom domains\", included: true },\n            { text: \"Advanced analytics\", included: true },\n            { text: \"Single sign on\", included: true },\n          ],\n        },\n      ],\n    }\n  );\n\n  const open = ref(false);\n  const shown = (plan: Plan) => (open.value ? plan.features : plan.features.slice(0, 5));\n</script>\n","category":"Comparison","description":"Checklist columns. Features: One column for each plan with a checklist of what is included and what is not, a highlighted popular plan, a show all features button that expands each list and a call to action for each plan","path":"Comparison/BlockComparison5.vue","components":["badge","button","card","container"]},{"name":"Comparison 6","fileName":"BlockComparison6.vue","file":"<template>\n  <!--\n    Table with a sticky header\n    Features: A long comparison table in a scroll area where the plan names and buttons stay at the top while you scroll, a first column that stays in view on small screens, group headings, a highlighted plan and a jump menu to a group\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-3xl font-bold tracking-tight\">Full comparison</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\">\n            Scroll the table. The plan names stay in view.\n          </p>\n        </div>\n        <UiSelect :model-value=\"jump\" @update:model-value=\"(value) => go(String(value))\">\n          <UiSelectTrigger class=\"w-48\" aria-label=\"Jump to a group\"\n            ><UiSelectValue placeholder=\"Jump to a group\"\n          /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem v-for=\"group in groups\" :key=\"group.name\" :value=\"group.name\">{{\n              group.name\n            }}</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n\n      <div\n        ref=\"scroller\"\n        class=\"relative mt-6 max-h-[32rem] overflow-auto rounded-xl border\"\n        tabindex=\"0\"\n        role=\"region\"\n        aria-label=\"Plan comparison table\"\n      >\n        <table class=\"w-full min-w-[40rem] border-separate border-spacing-0 text-sm\">\n          <thead>\n            <tr>\n              <th scope=\"col\" class=\"bg-background sticky top-0 left-0 z-30 border-b p-4 text-left\">\n                <span class=\"sr-only\">Feature</span>\n              </th>\n              <th\n                v-for=\"plan in plans\"\n                :key=\"plan.name\"\n                scope=\"col\"\n                class=\"sticky top-0 z-20 border-b p-4 text-center\"\n                :class=\"plan.popular ? 'bg-secondary' : 'bg-background'\"\n              >\n                <p class=\"font-semibold\">{{ plan.name }}</p>\n                <p class=\"text-muted-foreground text-xs font-normal\">{{ plan.price }}</p>\n                <UiButton\n                  size=\"sm\"\n                  class=\"mt-2\"\n                  :variant=\"plan.popular ? 'default' : 'outline'\"\n                  @click=\"useSonner.success(`${plan.name} selected`)\"\n                  >Choose</UiButton\n                >\n              </th>\n            </tr>\n          </thead>\n          <tbody>\n            <template v-for=\"group in groups\" :key=\"group.name\">\n              <tr :id=\"`group-${slug(group.name)}`\">\n                <th\n                  :colspan=\"plans.length + 1\"\n                  scope=\"colgroup\"\n                  class=\"bg-muted text-muted-foreground border-b px-4 py-2 text-left text-xs font-semibold tracking-wide uppercase\"\n                >\n                  {{ group.name }}\n                </th>\n              </tr>\n              <tr v-for=\"row in group.rows\" :key=\"row.name\">\n                <th\n                  scope=\"row\"\n                  class=\"bg-background sticky left-0 z-10 border-b px-4 py-3 text-left font-medium\"\n                >\n                  {{ row.name }}\n                </th>\n                <td\n                  v-for=\"(value, index) in row.values\"\n                  :key=\"index\"\n                  class=\"border-b px-4 py-3 text-center\"\n                  :class=\"plans[index]?.popular ? 'bg-secondary/60' : ''\"\n                >\n                  <template v-if=\"typeof value === 'boolean'\">\n                    <Icon\n                      :name=\"value ? 'lucide:check' : 'lucide:minus'\"\n                      class=\"mx-auto size-4\"\n                      :class=\"value ? 'text-green-500' : 'text-muted-foreground'\"\n                    />\n                    <span class=\"sr-only\">{{ value ? \"Included\" : \"Not included\" }}</span>\n                  </template>\n                  <span v-else>{{ value }}</span>\n                </td>\n              </tr>\n            </template>\n          </tbody>\n        </table>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Plan = { name: string; price: string; popular?: boolean };\n  type Group = { name: string; rows: { name: string; values: (boolean | string)[] }[] };\n\n  withDefaults(\n    defineProps<{\n      plans?: Plan[];\n      groups?: Group[];\n    }>(),\n    {\n      plans: () => [\n        { name: \"Starter\", price: \"$9 / month\" },\n        { name: \"Team\", price: \"$29 / month\", popular: true },\n        { name: \"Scale\", price: \"$79 / month\" },\n      ],\n      groups: () => [\n        {\n          name: \"Projects\",\n          rows: [\n            { name: \"Active projects\", values: [\"10\", \"Unlimited\", \"Unlimited\"] },\n            { name: \"Archived projects\", values: [\"Unlimited\", \"Unlimited\", \"Unlimited\"] },\n            { name: \"Templates\", values: [\"5\", \"50\", \"Unlimited\"] },\n            { name: \"Custom fields\", values: [false, true, true] },\n            { name: \"Automation rules\", values: [\"3\", \"25\", \"Unlimited\"] },\n          ],\n        },\n        {\n          name: \"Collaboration\",\n          rows: [\n            { name: \"Seats\", values: [\"1\", \"10\", \"50\"] },\n            { name: \"Guests\", values: [false, \"20\", \"200\"] },\n            { name: \"Comments\", values: [true, true, true] },\n            { name: \"Shared views\", values: [false, true, true] },\n            { name: \"Approvals\", values: [false, false, true] },\n          ],\n        },\n        {\n          name: \"Data\",\n          rows: [\n            { name: \"Storage\", values: [\"10 GB\", \"200 GB\", \"2 TB\"] },\n            { name: \"Import\", values: [\"CSV\", \"CSV and JSON\", \"CSV, JSON and API\"] },\n            { name: \"Export\", values: [true, true, true] },\n            { name: \"Backups\", values: [false, \"Daily\", \"Hourly\"] },\n            { name: \"Data residency\", values: [false, false, true] },\n          ],\n        },\n        {\n          name: \"Security\",\n          rows: [\n            { name: \"Two factor authentication\", values: [true, true, true] },\n            { name: \"Single sign on\", values: [false, false, true] },\n            { name: \"Audit log\", values: [false, \"30 days\", \"1 year\"] },\n            { name: \"IP allow list\", values: [false, false, true] },\n          ],\n        },\n      ],\n    }\n  );\n\n  const scroller = useTemplateRef<HTMLElement>(\"scroller\");\n  const jump = ref<string>();\n  const slug = (value: string) => value.toLowerCase().replace(/[^a-z0-9]+/g, \"-\");\n\n  function go(name: string) {\n    jump.value = name;\n    const target = scroller.value?.querySelector<HTMLElement>(`#group-${slug(name)}`);\n    if (target && scroller.value)\n      scroller.value.scrollTo({ top: target.offsetTop - 110, behavior: \"smooth\" });\n  }\n</script>\n","category":"Comparison","description":"Table with a sticky header. Features: A long comparison table in a scroll area where the plan names and buttons stay at the top while you scroll, a first column that stays in view on small screens, group headings, a highlighted plan and a jump menu to a group","path":"Comparison/BlockComparison6.vue","components":["button","container","select"]},{"name":"Completion 1","fileName":"BlockCompletion1.vue","file":"<template>\n  <!--\n    All set success screen\n    Features: Animated check that respects reduced motion, short confirmation message with the workspace name, a primary action to go to the dashboard and a secondary link\n  -->\n  <UiContainer class=\"py-20 lg:py-32\">\n    <div class=\"mx-auto flex max-w-md flex-col items-center text-center\" role=\"status\">\n      <Motion\n        :initial=\"reduced ? false : { scale: 0.6, opacity: 0 }\"\n        :animate=\"{ scale: 1, opacity: 1 }\"\n        :transition=\"{ type: 'spring', stiffness: 260, damping: 18 }\"\n        class=\"grid size-20 place-items-center rounded-full bg-green-500/10 text-green-600 dark:text-green-400\"\n      >\n        <Icon name=\"lucide:check\" class=\"size-10\" />\n      </Motion>\n      <h1 class=\"mt-6 text-3xl font-bold tracking-tight text-balance\">You are all set</h1>\n      <p class=\"text-muted-foreground mt-3 text-balance\">\n        {{ workspace }} is ready. We saved your preferences and sent a confirmation to your inbox.\n      </p>\n      <div class=\"mt-8 flex flex-col gap-3 sm:flex-row\">\n        <UiButton size=\"lg\" @click=\"useSonner.success('Taking you to your dashboard')\">\n          Go to dashboard\n          <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n        </UiButton>\n        <UiButton size=\"lg\" variant=\"outline\" @click=\"useSonner.info('Opening the guide')\">\n          Read the quick guide\n        </UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      workspace?: string;\n    }>(),\n    { workspace: \"Acme Inc.\" }\n  );\n\n  const reduced = usePreferredReducedMotion().value === \"reduce\";\n</script>\n","category":"Completion","description":"All set success screen. Features: Animated check that respects reduced motion, short confirmation message with the workspace name, a primary action to go to the dashboard and a secondary link","path":"Onboarding/Completion/BlockCompletion1.vue","components":["button","container"]},{"name":"Completion 2","fileName":"BlockCompletion2.vue","file":"<template>\n  <!--\n    Celebration screen with a summary of what was set up\n    Features: Gradient hero with a trophy icon, recap list with check marks, time taken stat, share action and a continue button\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <UiCard class=\"mx-auto max-w-2xl gap-0 overflow-hidden pt-0\">\n      <div\n        class=\"from-primary/20 via-primary/10 to-background bg-linear-to-b px-6 py-12 text-center\"\n      >\n        <span class=\"bg-background mx-auto grid size-16 place-items-center rounded-2xl shadow-sm\">\n          <Icon name=\"lucide:trophy\" class=\"text-primary size-8\" />\n        </span>\n        <h1 class=\"mt-5 text-3xl font-bold tracking-tight\">Setup complete, {{ name }}!</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          You finished in {{ minutes }} minutes. That is faster than most teams.\n        </p>\n      </div>\n      <UiCardContent class=\"py-6\">\n        <h2 class=\"text-sm font-semibold\">What you set up</h2>\n        <ul class=\"mt-3 grid gap-2 sm:grid-cols-2\">\n          <li v-for=\"item in recap\" :key=\"item\" class=\"flex items-center gap-2 text-sm\">\n            <span class=\"grid size-5 place-items-center rounded-full bg-green-500 text-white\">\n              <Icon name=\"lucide:check\" class=\"size-3\" />\n            </span>\n            {{ item }}\n          </li>\n        </ul>\n      </UiCardContent>\n      <UiCardFooter class=\"flex-col gap-3 sm:flex-row sm:justify-between\">\n        <UiButton variant=\"outline\" class=\"w-full sm:w-auto\" @click=\"share\">\n          <Icon name=\"lucide:share-2\" class=\"size-4\" />\n          {{ copied ? \"Link copied\" : \"Share with your team\" }}\n        </UiButton>\n        <UiButton class=\"w-full sm:w-auto\" @click=\"useSonner.success('Welcome aboard')\">\n          Continue to Acme\n          <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n        </UiButton>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      name?: string;\n      minutes?: number;\n      recap?: string[];\n      link?: string;\n    }>(),\n    {\n      name: \"Maya\",\n      minutes: 4,\n      recap: () => [\n        \"Created your workspace\",\n        \"Uploaded a logo\",\n        \"Invited 3 teammates\",\n        \"Connected Slack\",\n        \"Imported 120 contacts\",\n        \"Chose notification settings\",\n      ],\n      link: \"https://acme.app/join/k3x9-p2mv\",\n    }\n  );\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  function share() {\n    copy(props.link);\n  }\n</script>\n","category":"Completion","description":"Celebration screen with a summary of what was set up. Features: Gradient hero with a trophy icon, recap list with check marks, time taken stat, share action and a continue button","path":"Onboarding/Completion/BlockCompletion2.vue","components":["button","card","container"]},{"name":"Completion 3","fileName":"BlockCompletion3.vue","file":"<template>\n  <!--\n    Next steps grid after setup\n    Features: Success heading, six next step cards with icons and arrows, each card is a real link target, a recommended badge on the best first move and a skip to dashboard link\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-4xl\">\n      <div class=\"text-center\">\n        <span\n          class=\"mx-auto grid size-12 place-items-center rounded-full bg-green-500/10 text-green-600 dark:text-green-400\"\n        >\n          <Icon name=\"lucide:check\" class=\"size-6\" />\n        </span>\n        <h1 class=\"mt-4 text-3xl font-bold tracking-tight\">\n          You are in. What would you like to do first?\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-2 max-w-xl\">\n          Pick a place to start. Everything is just a click away from your dashboard too.\n        </p>\n      </div>\n\n      <ul class=\"mt-10 grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n        <li v-for=\"step in steps\" :key=\"step.title\">\n          <a\n            :href=\"step.href\"\n            class=\"hover:border-primary/50 hover:bg-muted/40 focus-visible:ring-ring/50 group relative flex h-full flex-col rounded-xl border p-5 transition outline-none focus-visible:ring-[3px]\"\n            @click.prevent=\"useSonner.info(`Opening: ${step.title}`)\"\n          >\n            <UiBadge\n              v-if=\"step.recommended\"\n              class=\"absolute top-4 right-4\"\n              variant=\"soft\"\n              color=\"primary\"\n              shape=\"pill\"\n            >\n              Recommended\n            </UiBadge>\n            <span\n              class=\"bg-muted group-hover:bg-primary/10 grid size-10 place-items-center rounded-lg\"\n            >\n              <Icon :name=\"step.icon\" class=\"size-5\" />\n            </span>\n            <span class=\"mt-4 font-semibold\">{{ step.title }}</span>\n            <span class=\"text-muted-foreground mt-1 flex-1 text-sm\">{{ step.description }}</span>\n            <span class=\"text-primary mt-4 inline-flex items-center gap-1 text-sm font-medium\">\n              Get started\n              <Icon\n                name=\"lucide:arrow-right\"\n                class=\"size-4 transition-transform group-hover:translate-x-0.5\"\n              />\n            </span>\n          </a>\n        </li>\n      </ul>\n\n      <p class=\"mt-8 text-center\">\n        <UiButton\n          variant=\"link\"\n          class=\"text-muted-foreground\"\n          @click=\"useSonner.info('Going to the dashboard')\"\n        >\n          Skip and go to dashboard\n        </UiButton>\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Step = {\n    title: string;\n    description: string;\n    icon: string;\n    href: string;\n    recommended?: boolean;\n  };\n\n  withDefaults(\n    defineProps<{\n      steps?: Step[];\n    }>(),\n    {\n      steps: () => [\n        {\n          title: \"Create your first project\",\n          description: \"Start from a template or a blank page.\",\n          icon: \"lucide:folder-plus\",\n          href: \"#project\",\n          recommended: true,\n        },\n        {\n          title: \"Invite teammates\",\n          description: \"Bring in the people you work with.\",\n          icon: \"lucide:user-plus\",\n          href: \"#invite\",\n        },\n        {\n          title: \"Explore templates\",\n          description: \"Ready made setups for common workflows.\",\n          icon: \"lucide:layout-template\",\n          href: \"#templates\",\n        },\n        {\n          title: \"Watch a 3 minute tour\",\n          description: \"See the essentials in action.\",\n          icon: \"lucide:circle-play\",\n          href: \"#tour\",\n        },\n        {\n          title: \"Customize your workspace\",\n          description: \"Colors, logo and notifications.\",\n          icon: \"lucide:palette\",\n          href: \"#customize\",\n        },\n        {\n          title: \"Join the community\",\n          description: \"Ask questions and share ideas.\",\n          icon: \"lucide:messages-square\",\n          href: \"#community\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Completion","description":"Next steps grid after setup. Features: Success heading, six next step cards with icons and arrows, each card is a real link target, a recommended badge on the best first move and a skip to dashboard link","path":"Onboarding/Completion/BlockCompletion3.vue","components":["badge","button","container"]},{"name":"Completion 4","fileName":"BlockCompletion4.vue","file":"<template>\n  <!--\n    Invite and finish\n    Features: Success message, a short invite form with email and role, list of pending invites with remove buttons, a copy invite link row and a finish button that works with or without invites\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-lg\">\n      <div class=\"text-center\">\n        <span\n          class=\"mx-auto grid size-14 place-items-center rounded-full bg-green-500/10 text-green-600 dark:text-green-400\"\n        >\n          <Icon name=\"lucide:check\" class=\"size-7\" />\n        </span>\n        <h1 class=\"mt-4 text-3xl font-bold tracking-tight\">Your workspace is ready</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          One last thing: invite the people you will work with.\n        </p>\n      </div>\n\n      <form class=\"mt-8 flex flex-col gap-2 sm:flex-row\" novalidate @submit.prevent=\"add\">\n        <div class=\"grid flex-1 gap-1.5\">\n          <UiLabel for=\"finish-email\" class=\"sr-only\">Email address</UiLabel>\n          <UiInput\n            id=\"finish-email\"\n            v-model=\"email\"\n            type=\"email\"\n            placeholder=\"name@company.com\"\n            :aria-invalid=\"Boolean(error)\"\n          />\n        </div>\n        <UiNativeSelect v-model=\"role\" class=\"sm:w-28\" aria-label=\"Role\">\n          <option v-for=\"item in roles\" :key=\"item\">{{ item }}</option>\n        </UiNativeSelect>\n        <UiButton type=\"submit\">Invite</UiButton>\n      </form>\n      <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\" role=\"alert\">{{ error }}</p>\n\n      <ul v-if=\"invites.length\" class=\"mt-4 divide-y rounded-lg border\">\n        <li\n          v-for=\"invite in invites\"\n          :key=\"invite.email\"\n          class=\"flex items-center gap-3 p-3 text-sm\"\n        >\n          <Icon name=\"lucide:mail\" class=\"text-muted-foreground size-4\" />\n          <span class=\"min-w-0 flex-1 truncate\">{{ invite.email }}</span>\n          <UiBadge variant=\"secondary\">{{ invite.role }}</UiBadge>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            :aria-label=\"`Remove ${invite.email}`\"\n            @click=\"remove(invite.email)\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </UiButton>\n        </li>\n      </ul>\n\n      <div class=\"bg-muted/50 mt-6 flex items-center gap-3 rounded-lg border p-3 text-sm\">\n        <Icon name=\"lucide:link\" class=\"text-muted-foreground size-4 shrink-0\" />\n        <span class=\"text-muted-foreground min-w-0 flex-1 truncate\">{{ link }}</span>\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"copy(link)\">{{\n          copied ? \"Copied\" : \"Copy link\"\n        }}</UiButton>\n      </div>\n\n      <UiButton class=\"mt-8 w-full\" size=\"lg\" @click=\"finish\">\n        {{\n          invites.length\n            ? `Send ${invites.length} ${invites.length === 1 ? \"invite\" : \"invites\"} and finish`\n            : \"Finish without inviting\"\n        }}\n      </UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      link?: string;\n    }>(),\n    { link: \"https://acme.app/join/k3x9-p2mv\" }\n  );\n\n  const roles = [\"Admin\", \"Member\", \"Viewer\"];\n\n  const email = ref(\"\");\n  const role = ref(\"Member\");\n  const error = ref(\"\");\n  const invites = ref<{ email: string; role: string }[]>([]);\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  function add() {\n    const value = email.value.trim().toLowerCase();\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(value)) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    if (!invites.value.some((invite) => invite.email === value)) {\n      invites.value.push({ email: value, role: role.value });\n    }\n    email.value = \"\";\n  }\n\n  function remove(address: string) {\n    invites.value = invites.value.filter((invite) => invite.email !== address);\n  }\n\n  function finish() {\n    useSonner.success(invites.value.length ? `Sent ${invites.value.length} invites` : \"All done\");\n    invites.value = [];\n  }\n</script>\n","category":"Completion","description":"Invite and finish. Features: Success message, a short invite form with email and role, list of pending invites with remove buttons, a copy invite link row and a finish button that works with or without invites","path":"Onboarding/Completion/BlockCompletion4.vue","components":["badge","button","container","input","label","native-select"]},{"name":"Composer 1","fileName":"BlockComposer1.vue","file":"<template>\n  <!--\n    Simple message composer\n    Features: Rounded input with a send button, enter to send, disabled send while empty, sent messages shown above as bubbles and a polite live region for screen readers\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto flex max-w-lg flex-col gap-6\">\n      <div class=\"flex min-h-28 flex-col justify-end gap-2\" aria-live=\"polite\">\n        <UiMessage v-for=\"message in sent\" :key=\"message.id\" align=\"end\">\n          <UiMessageContent>\n            <UiBubble>\n              <UiBubbleContent>{{ message.text }}</UiBubbleContent>\n            </UiBubble>\n          </UiMessageContent>\n        </UiMessage>\n        <p v-if=\"!sent.length\" class=\"text-muted-foreground text-center text-sm\">\n          Say something to get started.\n        </p>\n      </div>\n\n      <form\n        class=\"bg-background flex items-center gap-2 rounded-full border p-1.5 pl-4 shadow-xs\"\n        @submit.prevent=\"send\"\n      >\n        <UiLabel for=\"composer1\" class=\"sr-only\">Message</UiLabel>\n        <input\n          id=\"composer1\"\n          v-model=\"draft\"\n          type=\"text\"\n          placeholder=\"Write a message\"\n          autocomplete=\"off\"\n          class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent text-sm outline-none\"\n        />\n        <UiButton\n          type=\"submit\"\n          size=\"icon\"\n          class=\"rounded-full\"\n          :disabled=\"!draft.trim()\"\n          aria-label=\"Send message\"\n        >\n          <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n        </UiButton>\n      </form>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const draft = ref(\"\");\n  const sent = ref<{ id: number; text: string }[]>([]);\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text) return;\n    sent.value.push({ id: sent.value.length, text });\n    sent.value = sent.value.slice(-3);\n    draft.value = \"\";\n  }\n</script>\n","category":"Composer","description":"Simple message composer. Features: Rounded input with a send button, enter to send, disabled send while empty, sent messages shown above as bubbles and a polite live region for screen readers","path":"Chat/Composer/BlockComposer1.vue","components":["bubble","button","container","label","message"]},{"name":"Composer 2","fileName":"BlockComposer2.vue","file":"<template>\n  <!--\n    Composer with file attachments\n    Features: Attach button that opens the file picker, drag and drop onto the composer, attachment chips with size and remove button, image thumbnails, file limit message and send with text or files\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto flex max-w-lg flex-col gap-6\">\n      <div v-if=\"lastSent\" class=\"flex flex-col items-end gap-2\" role=\"status\">\n        <UiBubble v-if=\"lastSent.text\">\n          <UiBubbleContent>{{ lastSent.text }}</UiBubbleContent>\n        </UiBubble>\n        <p class=\"text-muted-foreground text-xs\">\n          Sent with {{ lastSent.count }} {{ lastSent.count === 1 ? \"attachment\" : \"attachments\" }}\n        </p>\n      </div>\n\n      <form\n        ref=\"zone\"\n        class=\"bg-background rounded-2xl border p-3 shadow-xs transition\"\n        :class=\"isOverDropZone ? 'border-primary bg-primary/5' : ''\"\n        @submit.prevent=\"send\"\n      >\n        <ul v-if=\"files.length\" class=\"mb-3 flex flex-wrap gap-2\">\n          <li\n            v-for=\"file in files\"\n            :key=\"file.id\"\n            class=\"bg-muted flex max-w-full items-center gap-2 rounded-lg py-1 pr-1 pl-1.5 text-sm\"\n          >\n            <img\n              v-if=\"file.preview\"\n              :src=\"file.preview\"\n              alt=\"\"\n              class=\"size-8 rounded object-cover\"\n            />\n            <Icon v-else name=\"lucide:file\" class=\"text-muted-foreground size-5\" />\n            <span class=\"max-w-32 truncate\">{{ file.name }}</span>\n            <span class=\"text-muted-foreground text-xs\">{{ file.size }}</span>\n            <UiButton\n              type=\"button\"\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              class=\"size-6\"\n              :aria-label=\"`Remove ${file.name}`\"\n              @click=\"remove(file.id)\"\n            >\n              <Icon name=\"lucide:x\" class=\"size-3.5\" />\n            </UiButton>\n          </li>\n        </ul>\n        <UiLabel for=\"composer2\" class=\"sr-only\">Message</UiLabel>\n        <UiTextarea\n          id=\"composer2\"\n          v-model=\"draft\"\n          :rows=\"2\"\n          placeholder=\"Write a message or drop files here\"\n          class=\"resize-none border-0 bg-transparent p-0 shadow-none focus-visible:ring-0 dark:bg-transparent\"\n        />\n        <div class=\"mt-2 flex items-center justify-between\">\n          <div class=\"flex items-center gap-2\">\n            <input\n              ref=\"picker\"\n              type=\"file\"\n              multiple\n              class=\"sr-only\"\n              tabindex=\"-1\"\n              aria-hidden=\"true\"\n              @change=\"onPick\"\n            />\n            <UiButton\n              type=\"button\"\n              variant=\"ghost\"\n              size=\"icon\"\n              aria-label=\"Attach files\"\n              @click=\"picker?.click()\"\n            >\n              <Icon name=\"lucide:paperclip\" class=\"size-4\" />\n            </UiButton>\n            <span v-if=\"error\" class=\"text-destructive text-xs\" role=\"alert\">{{ error }}</span>\n          </div>\n          <UiButton type=\"submit\" size=\"sm\" :disabled=\"!draft.trim() && !files.length\">\n            Send\n            <Icon name=\"lucide:send-horizontal\" class=\"size-4\" />\n          </UiButton>\n        </div>\n      </form>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Attachment = { id: number; name: string; size: string; preview?: string };\n\n  const max = 4;\n  const draft = ref(\"\");\n  const files = ref<Attachment[]>([]);\n  const error = ref(\"\");\n  const lastSent = ref<{ text: string; count: number }>();\n  const zone = ref<HTMLElement>();\n  const picker = ref<HTMLInputElement>();\n  let counter = 0;\n\n  const { isOverDropZone } = useDropZone(zone, (dropped) => add(dropped ?? []));\n\n  function readable(bytes: number) {\n    if (bytes > 1024 * 1024) return `${(bytes / 1024 / 1024).toFixed(1)} MB`;\n    return `${Math.max(1, Math.round(bytes / 1024))} KB`;\n  }\n\n  function add(list: File[]) {\n    error.value = \"\";\n    for (const file of list) {\n      if (files.value.length >= max) {\n        error.value = `You can attach up to ${max} files.`;\n        break;\n      }\n      files.value.push({\n        id: counter++,\n        name: file.name,\n        size: readable(file.size),\n        preview: file.type.startsWith(\"image/\") ? URL.createObjectURL(file) : undefined,\n      });\n    }\n  }\n\n  function onPick(event: Event) {\n    const input = event.target as HTMLInputElement;\n    add([...(input.files ?? [])]);\n    input.value = \"\";\n  }\n\n  function remove(id: number) {\n    const file = files.value.find((item) => item.id === id);\n    if (file?.preview) URL.revokeObjectURL(file.preview);\n    files.value = files.value.filter((item) => item.id !== id);\n    error.value = \"\";\n  }\n\n  function send() {\n    lastSent.value = { text: draft.value.trim(), count: files.value.length };\n    files.value.forEach((file) => file.preview && URL.revokeObjectURL(file.preview));\n    files.value = [];\n    draft.value = \"\";\n  }\n\n  onBeforeUnmount(() =>\n    files.value.forEach((file) => file.preview && URL.revokeObjectURL(file.preview))\n  );\n</script>\n","category":"Composer","description":"Composer with file attachments. Features: Attach button that opens the file picker, drag and drop onto the composer, attachment chips with size and remove button, image thumbnails, file limit message and send with text or files","path":"Chat/Composer/BlockComposer2.vue","components":["bubble","button","container","label","textarea"]},{"name":"Composer 3","fileName":"BlockComposer3.vue","file":"<template>\n  <!--\n    Composer with emoji picker and mentions\n    Features: Emoji popover that inserts at the cursor, type at to mention a teammate with arrow key navigation and enter to pick, listbox semantics with aria active descendant and mentions highlighted in sent messages\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto flex max-w-lg flex-col gap-6\">\n      <div class=\"flex min-h-64 flex-col items-end justify-end gap-2\" aria-live=\"polite\">\n        <UiBubble v-for=\"(text, index) in sent\" :key=\"index\">\n          <UiBubbleContent>\n            <template v-for=\"(part, i) in parts(text)\" :key=\"i\">\n              <strong v-if=\"part.mention\" class=\"underline decoration-dotted\">{{\n                part.text\n              }}</strong>\n              <template v-else>{{ part.text }}</template>\n            </template>\n          </UiBubbleContent>\n        </UiBubble>\n      </div>\n\n      <form class=\"relative\" @submit.prevent=\"send\">\n        <div\n          v-if=\"menuOpen\"\n          class=\"bg-popover absolute right-0 bottom-full left-0 z-10 mb-2 overflow-hidden rounded-lg border shadow-md\"\n        >\n          <ul\n            id=\"mention-list\"\n            role=\"listbox\"\n            aria-label=\"Mention a teammate\"\n            class=\"max-h-48 overflow-auto p-1\"\n          >\n            <li\n              v-for=\"(person, index) in matches\"\n              :id=\"`mention-${index}`\"\n              :key=\"person.name\"\n              role=\"option\"\n              :aria-selected=\"index === active\"\n              class=\"flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm\"\n              :class=\"index === active ? 'bg-accent' : ''\"\n              @mousedown.prevent=\"pick(person)\"\n              @mousemove=\"active = index\"\n            >\n              <UiAvatar :src=\"person.avatar\" :fallback=\"person.name[0]\" class=\"size-6\" />\n              {{ person.name }}\n            </li>\n          </ul>\n        </div>\n\n        <div class=\"bg-background flex items-center gap-1 rounded-xl border p-2 shadow-xs\">\n          <UiPopover v-model:open=\"emojiOpen\">\n            <UiPopoverTrigger as-child>\n              <UiButton type=\"button\" variant=\"ghost\" size=\"icon\" aria-label=\"Insert emoji\">\n                <Icon name=\"lucide:smile\" class=\"size-4\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-64 p-2\">\n              <div class=\"grid grid-cols-8 gap-0.5\">\n                <button\n                  v-for=\"emoji in emojis\"\n                  :key=\"emoji\"\n                  type=\"button\"\n                  class=\"hover:bg-muted rounded p-1 text-lg\"\n                  :aria-label=\"`Insert ${emoji}`\"\n                  @click=\"insert(emoji)\"\n                >\n                  {{ emoji }}\n                </button>\n              </div>\n            </UiPopoverContent>\n          </UiPopover>\n          <UiLabel for=\"composer3\" class=\"sr-only\">Message</UiLabel>\n          <input\n            id=\"composer3\"\n            ref=\"field\"\n            v-model=\"draft\"\n            type=\"text\"\n            role=\"combobox\"\n            aria-autocomplete=\"list\"\n            :aria-expanded=\"menuOpen\"\n            aria-controls=\"mention-list\"\n            :aria-activedescendant=\"menuOpen ? `mention-${active}` : undefined\"\n            placeholder=\"Type @ to mention someone\"\n            autocomplete=\"off\"\n            class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent px-1 text-sm outline-none\"\n            @input=\"update\"\n            @click=\"update\"\n            @keydown=\"onKey\"\n          />\n          <UiButton type=\"submit\" size=\"icon\" :disabled=\"!draft.trim()\" aria-label=\"Send message\">\n            <Icon name=\"lucide:send-horizontal\" class=\"size-4\" />\n          </UiButton>\n        </div>\n      </form>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Person = { name: string; avatar: string };\n\n  const props = withDefaults(\n    defineProps<{\n      people?: Person[];\n    }>(),\n    {\n      people: () => [\n        { name: \"Sofia Alvarez\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n        { name: \"Liam Carter\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n        { name: \"Aisha Khan\", avatar: \"https://i.pravatar.cc/80?img=44\" },\n        { name: \"Noah Williams\", avatar: \"https://i.pravatar.cc/80?img=15\" },\n      ],\n    }\n  );\n\n  const emojis = [\n    \"😀\",\n    \"😂\",\n    \"😍\",\n    \"🥳\",\n    \"😎\",\n    \"🤔\",\n    \"😢\",\n    \"😡\",\n    \"👍\",\n    \"👏\",\n    \"🙏\",\n    \"🔥\",\n    \"🎉\",\n    \"🚀\",\n    \"💯\",\n    \"👀\",\n  ];\n\n  const field = ref<HTMLInputElement>();\n  const draft = ref(\"\");\n  const sent = ref<string[]>([]);\n  const emojiOpen = ref(false);\n  const query = ref<string | null>(null);\n  const active = ref(0);\n\n  const matches = computed(() =>\n    query.value === null\n      ? []\n      : props.people.filter((person) =>\n          person.name.toLowerCase().includes(query.value!.toLowerCase())\n        )\n  );\n  const menuOpen = computed(() => query.value !== null && matches.value.length > 0);\n\n  // Look for an at sign right before the cursor, with no spaces after it.\n  function update() {\n    const el = field.value;\n    if (!el) return;\n    const before = el.value.slice(0, el.selectionStart ?? 0);\n    const found = /(^|\\s)@([^\\s@]*)$/.exec(before);\n    query.value = found ? found[2]! : null;\n    active.value = 0;\n  }\n\n  function pick(person: Person) {\n    const el = field.value;\n    if (!el) return;\n    const cursor = el.selectionStart ?? el.value.length;\n    const before = el.value.slice(0, cursor).replace(/@[^\\s@]*$/, `@${person.name.split(\" \")[0]} `);\n    draft.value = before + el.value.slice(cursor);\n    query.value = null;\n    nextTick(() => {\n      el.focus();\n      el.setSelectionRange(before.length, before.length);\n    });\n  }\n\n  function onKey(event: KeyboardEvent) {\n    if (!menuOpen.value) return;\n    if (event.key === \"ArrowDown\") {\n      event.preventDefault();\n      active.value = (active.value + 1) % matches.value.length;\n    } else if (event.key === \"ArrowUp\") {\n      event.preventDefault();\n      active.value = (active.value - 1 + matches.value.length) % matches.value.length;\n    } else if (event.key === \"Enter\" || event.key === \"Tab\") {\n      event.preventDefault();\n      pick(matches.value[active.value]!);\n    } else if (event.key === \"Escape\") {\n      query.value = null;\n    }\n  }\n\n  function insert(emoji: string) {\n    const el = field.value;\n    const start = el?.selectionStart ?? draft.value.length;\n    const end = el?.selectionEnd ?? start;\n    draft.value = draft.value.slice(0, start) + emoji + draft.value.slice(end);\n    emojiOpen.value = false;\n    nextTick(() => {\n      el?.focus();\n      el?.setSelectionRange(start + emoji.length, start + emoji.length);\n    });\n  }\n\n  function parts(text: string) {\n    return text\n      .split(/(@\\w+)/g)\n      .filter(Boolean)\n      .map((part) => ({ text: part, mention: part.startsWith(\"@\") }));\n  }\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text) return;\n    sent.value = [...sent.value, text].slice(-3);\n    draft.value = \"\";\n    query.value = null;\n  }\n</script>\n","category":"Composer","description":"Composer with emoji picker and mentions. Features: Emoji popover that inserts at the cursor, type at to mention a teammate with arrow key navigation and enter to pick, listbox semantics with aria active descendant and mentions highlighted in sent messages","path":"Chat/Composer/BlockComposer3.vue","components":["avatar","bubble","button","container","label","popover"]},{"name":"Composer 4","fileName":"BlockComposer4.vue","file":"<template>\n  <!--\n    Composer with a slash command menu\n    Features: Type slash to open a filtered command list with icons and descriptions, arrow keys and enter to choose, escape to close, chosen command shown as a chip and a hint row with keyboard shortcuts\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto flex max-w-lg flex-col gap-6\">\n      <div class=\"flex min-h-72 flex-col items-end justify-end gap-2\" aria-live=\"polite\">\n        <UiBubble v-for=\"(entry, index) in log\" :key=\"index\">\n          <UiBubbleContent class=\"flex items-center gap-2\">\n            <UiBadge v-if=\"entry.command\" variant=\"secondary\">/{{ entry.command }}</UiBadge>\n            {{ entry.text }}\n          </UiBubbleContent>\n        </UiBubble>\n      </div>\n\n      <form class=\"relative\" @submit.prevent=\"send\">\n        <div\n          v-if=\"menuOpen\"\n          class=\"bg-popover absolute right-0 bottom-full left-0 z-10 mb-2 overflow-hidden rounded-lg border shadow-md\"\n        >\n          <ul\n            id=\"command-list\"\n            role=\"listbox\"\n            aria-label=\"Commands\"\n            class=\"max-h-56 overflow-auto p-1\"\n          >\n            <li\n              v-for=\"(command, index) in matches\"\n              :id=\"`command-${index}`\"\n              :key=\"command.name\"\n              role=\"option\"\n              :aria-selected=\"index === active\"\n              class=\"flex cursor-pointer items-center gap-3 rounded-md px-2 py-2 text-sm\"\n              :class=\"index === active ? 'bg-accent' : ''\"\n              @mousedown.prevent=\"choose(command)\"\n              @mousemove=\"active = index\"\n            >\n              <span class=\"bg-muted grid size-8 shrink-0 place-items-center rounded-md\">\n                <Icon :name=\"command.icon\" class=\"size-4\" />\n              </span>\n              <span class=\"min-w-0\">\n                <span class=\"block font-medium\">/{{ command.name }}</span>\n                <span class=\"text-muted-foreground block truncate text-xs\">{{\n                  command.description\n                }}</span>\n              </span>\n            </li>\n          </ul>\n          <p class=\"text-muted-foreground border-t px-3 py-1.5 text-xs\">\n            <UiKbd>↑</UiKbd> <UiKbd>↓</UiKbd> to move, <UiKbd>Enter</UiKbd> to choose,\n            <UiKbd>Esc</UiKbd> to close\n          </p>\n        </div>\n\n        <div class=\"bg-background flex items-center gap-2 rounded-xl border p-2 pl-3 shadow-xs\">\n          <UiBadge v-if=\"chosen\" variant=\"secondary\" class=\"gap-1 pr-1\">\n            /{{ chosen.name }}\n            <button\n              type=\"button\"\n              class=\"rounded p-0.5\"\n              :aria-label=\"`Remove ${chosen.name} command`\"\n              @click=\"chosen = undefined\"\n            >\n              <Icon name=\"lucide:x\" class=\"size-3\" />\n            </button>\n          </UiBadge>\n          <UiLabel for=\"composer4\" class=\"sr-only\">Message</UiLabel>\n          <input\n            id=\"composer4\"\n            v-model=\"draft\"\n            type=\"text\"\n            role=\"combobox\"\n            aria-autocomplete=\"list\"\n            :aria-expanded=\"menuOpen\"\n            aria-controls=\"command-list\"\n            :aria-activedescendant=\"menuOpen ? `command-${active}` : undefined\"\n            :placeholder=\"chosen ? chosen.placeholder : 'Type / for commands'\"\n            autocomplete=\"off\"\n            class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent text-sm outline-none\"\n            @keydown=\"onKey\"\n          />\n          <UiButton\n            type=\"submit\"\n            size=\"icon\"\n            :disabled=\"!draft.trim() && !chosen\"\n            aria-label=\"Send message\"\n          >\n            <Icon name=\"lucide:send-horizontal\" class=\"size-4\" />\n          </UiButton>\n        </div>\n      </form>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Command = { name: string; description: string; icon: string; placeholder: string };\n\n  const props = withDefaults(\n    defineProps<{\n      commands?: Command[];\n    }>(),\n    {\n      commands: () => [\n        {\n          name: \"remind\",\n          description: \"Set a reminder for later\",\n          icon: \"lucide:alarm-clock\",\n          placeholder: \"Remind me to...\",\n        },\n        {\n          name: \"poll\",\n          description: \"Create a quick poll\",\n          icon: \"lucide:chart-bar\",\n          placeholder: \"Ask a question\",\n        },\n        {\n          name: \"giphy\",\n          description: \"Search for a GIF\",\n          icon: \"lucide:image\",\n          placeholder: \"Search GIFs\",\n        },\n        {\n          name: \"summarize\",\n          description: \"Summarize this conversation\",\n          icon: \"lucide:sparkles\",\n          placeholder: \"Anything specific to focus on?\",\n        },\n        {\n          name: \"invite\",\n          description: \"Invite someone to the channel\",\n          icon: \"lucide:user-plus\",\n          placeholder: \"name@company.com\",\n        },\n      ],\n    }\n  );\n\n  const draft = ref(\"\");\n  const chosen = ref<Command>();\n  const active = ref(0);\n  const dismissed = ref(false);\n  const log = ref<{ command?: string; text: string }[]>([]);\n\n  const open = computed(\n    () =>\n      !chosen.value && draft.value.startsWith(\"/\") && !draft.value.includes(\" \") && !dismissed.value\n  );\n  const matches = computed(() =>\n    props.commands.filter((command) => command.name.startsWith(draft.value.slice(1).toLowerCase()))\n  );\n  const menuOpen = computed(() => open.value && matches.value.length > 0);\n\n  watch(draft, () => {\n    active.value = 0;\n    if (!draft.value.startsWith(\"/\")) dismissed.value = false;\n  });\n\n  function choose(command: Command) {\n    chosen.value = command;\n    draft.value = \"\";\n  }\n\n  function onKey(event: KeyboardEvent) {\n    if (!menuOpen.value) {\n      if (event.key === \"Backspace\" && !draft.value && chosen.value) chosen.value = undefined;\n      return;\n    }\n    if (event.key === \"ArrowDown\") {\n      event.preventDefault();\n      active.value = (active.value + 1) % matches.value.length;\n    } else if (event.key === \"ArrowUp\") {\n      event.preventDefault();\n      active.value = (active.value - 1 + matches.value.length) % matches.value.length;\n    } else if (event.key === \"Enter\" || event.key === \"Tab\") {\n      event.preventDefault();\n      choose(matches.value[active.value]!);\n    } else if (event.key === \"Escape\") {\n      dismissed.value = true;\n    }\n  }\n\n  function send() {\n    if (menuOpen.value) return choose(matches.value[active.value]!);\n    const text = draft.value.trim();\n    if (!text && !chosen.value) return;\n    log.value = [...log.value, { command: chosen.value?.name, text }].slice(-3);\n    draft.value = \"\";\n    chosen.value = undefined;\n  }\n</script>\n","category":"Composer","description":"Composer with a slash command menu. Features: Type slash to open a filtered command list with icons and descriptions, arrow keys and enter to choose, escape to close, chosen command shown as a chip and a hint row with keyboard shortcuts","path":"Chat/Composer/BlockComposer4.vue","components":["badge","bubble","button","container","kbd","label"]},{"name":"Composer 5","fileName":"BlockComposer5.vue","file":"<template>\n  <!--\n    Composer with voice notes\n    Features: Mic button that starts a simulated recording with a timer and live waveform, cancel and send buttons while recording, waveform stops moving for reduced motion and sent voice notes shown as playable looking bubbles\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto flex max-w-lg flex-col gap-6\">\n      <div v-if=\"notes.length\" class=\"flex flex-col items-end gap-2\" aria-live=\"polite\">\n        <UiBubble v-for=\"note in notes\" :key=\"note.id\">\n          <UiBubbleContent class=\"flex items-center gap-3\">\n            <Icon name=\"lucide:play\" class=\"size-4\" />\n            <span class=\"flex h-6 items-center gap-0.5\" aria-hidden=\"true\">\n              <span\n                v-for=\"(bar, i) in note.bars\"\n                :key=\"i\"\n                class=\"w-0.5 rounded-full bg-current\"\n                :style=\"{ height: `${bar}px` }\"\n              />\n            </span>\n            <span class=\"text-xs tabular-nums\">{{ format(note.seconds) }}</span>\n            <span class=\"sr-only\">Voice note, {{ note.seconds }} seconds</span>\n          </UiBubbleContent>\n        </UiBubble>\n      </div>\n\n      <form\n        class=\"bg-background flex items-center gap-2 rounded-full border p-1.5 pl-4 shadow-xs\"\n        @submit.prevent=\"send\"\n      >\n        <template v-if=\"!recording\">\n          <UiLabel for=\"composer5\" class=\"sr-only\">Message</UiLabel>\n          <input\n            id=\"composer5\"\n            v-model=\"draft\"\n            type=\"text\"\n            placeholder=\"Write a message\"\n            autocomplete=\"off\"\n            class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent text-sm outline-none\"\n          />\n          <UiButton\n            v-if=\"draft.trim()\"\n            type=\"submit\"\n            size=\"icon\"\n            class=\"rounded-full\"\n            aria-label=\"Send message\"\n          >\n            <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n          </UiButton>\n          <UiButton\n            v-else\n            type=\"button\"\n            size=\"icon\"\n            variant=\"ghost\"\n            class=\"rounded-full\"\n            aria-label=\"Record a voice note\"\n            @click=\"start\"\n          >\n            <Icon name=\"lucide:mic\" class=\"size-4\" />\n          </UiButton>\n        </template>\n        <template v-else>\n          <span\n            class=\"size-2.5 shrink-0 rounded-full bg-red-500\"\n            :class=\"reduced ? '' : 'animate-pulse'\"\n            aria-hidden=\"true\"\n          />\n          <span class=\"w-12 text-sm tabular-nums\" role=\"timer\" aria-label=\"Recording time\">{{\n            format(seconds)\n          }}</span>\n          <span class=\"flex h-8 flex-1 items-center gap-0.5 overflow-hidden\" aria-hidden=\"true\">\n            <span\n              v-for=\"(bar, i) in live\"\n              :key=\"i\"\n              class=\"bg-muted-foreground/60 w-0.5 shrink-0 rounded-full transition-[height] duration-150\"\n              :style=\"{ height: `${bar}px` }\"\n            />\n          </span>\n          <UiButton\n            type=\"button\"\n            variant=\"ghost\"\n            size=\"icon\"\n            class=\"rounded-full\"\n            aria-label=\"Cancel recording\"\n            @click=\"stop(false)\"\n          >\n            <Icon name=\"lucide:trash-2\" class=\"size-4\" />\n          </UiButton>\n          <UiButton\n            type=\"button\"\n            size=\"icon\"\n            class=\"rounded-full\"\n            aria-label=\"Send voice note\"\n            @click=\"stop(true)\"\n          >\n            <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n          </UiButton>\n        </template>\n      </form>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Note = { id: number; seconds: number; bars: number[] };\n\n  const draft = ref(\"\");\n  const recording = ref(false);\n  const seconds = ref(0);\n  const live = ref<number[]>([]);\n  const notes = ref<Note[]>([]);\n  const reduced = usePreferredReducedMotion().value === \"reduce\";\n\n  const randomBar = () => 4 + Math.round(Math.random() * 20);\n  let timer: ReturnType<typeof setInterval> | undefined;\n  let wave: ReturnType<typeof setInterval> | undefined;\n\n  function start() {\n    recording.value = true;\n    seconds.value = 0;\n    live.value = Array.from({ length: 40 }, randomBar);\n    timer = setInterval(() => seconds.value++, 1000);\n    // The waveform keeps still when the user prefers reduced motion.\n    if (!reduced) {\n      wave = setInterval(() => (live.value = [...live.value.slice(1), randomBar()]), 150);\n    }\n  }\n\n  function stop(save: boolean) {\n    clearInterval(timer);\n    clearInterval(wave);\n    recording.value = false;\n    if (save && seconds.value > 0) {\n      notes.value = [\n        ...notes.value,\n        {\n          id: notes.value.length,\n          seconds: seconds.value,\n          bars: Array.from({ length: 24 }, randomBar),\n        },\n      ].slice(-3);\n    }\n  }\n\n  function format(total: number) {\n    return `${Math.floor(total / 60)}:${String(total % 60).padStart(2, \"0\")}`;\n  }\n\n  function send() {\n    if (!draft.value.trim()) return;\n    draft.value = \"\";\n  }\n\n  onBeforeUnmount(() => {\n    clearInterval(timer);\n    clearInterval(wave);\n  });\n</script>\n","category":"Composer","description":"Composer with voice notes. Features: Mic button that starts a simulated recording with a timer and live waveform, cancel and send buttons while recording, waveform stops moving for reduced motion and sent voice notes shown as playable looking bubbles","path":"Chat/Composer/BlockComposer5.vue","components":["bubble","button","container","label"]},{"name":"Composer 6","fileName":"BlockComposer6.vue","file":"<template>\n  <!--\n    Expanding multi line composer\n    Features: Textarea that grows with its content up to a maximum height, enter to send and shift enter for a new line, character counter that turns red near the limit, formatting buttons and a send button that disables when empty or too long\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto flex max-w-lg flex-col gap-6\">\n      <div v-if=\"sent.length\" class=\"flex flex-col items-end gap-2\" aria-live=\"polite\">\n        <UiBubble v-for=\"(text, index) in sent\" :key=\"index\">\n          <UiBubbleContent class=\"whitespace-pre-wrap\">{{ text }}</UiBubbleContent>\n        </UiBubble>\n      </div>\n\n      <form class=\"bg-background rounded-2xl border p-3 shadow-xs\" @submit.prevent=\"send\">\n        <UiLabel for=\"composer6\" class=\"sr-only\">Message</UiLabel>\n        <UiTextarea\n          id=\"composer6\"\n          v-model=\"draft\"\n          :rows=\"1\"\n          placeholder=\"Write a message. Shift and enter adds a new line.\"\n          class=\"max-h-40 min-h-9 resize-none overflow-y-auto border-0 bg-transparent p-0 shadow-none focus-visible:ring-0 dark:bg-transparent\"\n          @keydown.enter.exact.prevent=\"send\"\n        />\n        <div class=\"mt-2 flex items-center justify-between\">\n          <div class=\"flex items-center gap-1\">\n            <UiButton\n              v-for=\"tool in tools\"\n              :key=\"tool.label\"\n              type=\"button\"\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              :aria-label=\"tool.label\"\n              @click=\"wrap(tool.mark)\"\n            >\n              <Icon :name=\"tool.icon\" class=\"size-4\" />\n            </UiButton>\n          </div>\n          <div class=\"flex items-center gap-3\">\n            <span\n              class=\"text-xs tabular-nums\"\n              :class=\"remaining < 20 ? 'text-destructive' : 'text-muted-foreground'\"\n              aria-live=\"polite\"\n            >\n              {{ remaining }}\n              <span class=\"sr-only\">characters left</span>\n            </span>\n            <UiButton type=\"submit\" size=\"sm\" :disabled=\"!draft.trim() || remaining < 0\"\n              >Send</UiButton\n            >\n          </div>\n        </div>\n      </form>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const limit = 280;\n\n  const tools = [\n    { label: \"Bold\", icon: \"lucide:bold\", mark: \"**\" },\n    { label: \"Italic\", icon: \"lucide:italic\", mark: \"_\" },\n    { label: \"Code\", icon: \"lucide:code\", mark: \"`\" },\n  ];\n\n  const draft = ref(\"\");\n  const sent = ref<string[]>([]);\n\n  const remaining = computed(() => limit - draft.value.length);\n\n  function field() {\n    return document.getElementById(\"composer6\") as HTMLTextAreaElement | null;\n  }\n\n  // Grow with the content, then scroll once the maximum height is reached.\n  function resize() {\n    const el = field();\n    if (!el) return;\n    el.style.height = \"auto\";\n    el.style.height = `${el.scrollHeight}px`;\n  }\n\n  watch(draft, () => nextTick(resize));\n\n  function wrap(mark: string) {\n    const el = field();\n    if (!el) return;\n    const start = el.selectionStart;\n    const end = el.selectionEnd;\n    const selected = draft.value.slice(start, end) || \"text\";\n    draft.value = `${draft.value.slice(0, start)}${mark}${selected}${mark}${draft.value.slice(end)}`;\n    nextTick(() => {\n      el.focus();\n      el.setSelectionRange(start + mark.length, start + mark.length + selected.length);\n    });\n  }\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text || remaining.value < 0) return;\n    sent.value = [...sent.value, text].slice(-3);\n    draft.value = \"\";\n  }\n</script>\n","category":"Composer","description":"Expanding multi line composer. Features: Textarea that grows with its content up to a maximum height, enter to send and shift enter for a new line, character counter that turns red near the limit, formatting buttons and a send button that disables when empty or too long","path":"Chat/Composer/BlockComposer6.vue","components":["bubble","button","container","label","textarea"]},{"name":"Conversation List 1","fileName":"BlockConversationList1.vue","file":"<template>\n  <!--\n    Simple conversation list\n    Features: Avatar, name, last message preview and time for every conversation, selected row highlight, truncated previews, keyboard friendly buttons and a compose button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-md overflow-hidden rounded-xl border\">\n      <div class=\"flex items-center justify-between border-b px-4 py-3\">\n        <h1 class=\"text-lg font-semibold\">{{ title }}</h1>\n        <UiButton\n          variant=\"ghost\"\n          size=\"icon-sm\"\n          aria-label=\"New message\"\n          @click=\"useSonner.info('Open your composer here')\"\n        >\n          <Icon name=\"lucide:square-pen\" class=\"size-4\" />\n        </UiButton>\n      </div>\n      <ul class=\"divide-y\" role=\"list\">\n        <li v-for=\"chat in conversations\" :key=\"chat.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-muted/50 focus-visible:ring-ring/50 flex w-full items-center gap-3 px-4 py-3 text-left outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n            :class=\"selected === chat.id ? 'bg-muted' : ''\"\n            :aria-current=\"selected === chat.id ? 'true' : undefined\"\n            @click=\"selected = chat.id\"\n          >\n            <UiAvatar :src=\"chat.avatar\" :fallback=\"chat.name[0]\" class=\"size-10\" />\n            <span class=\"min-w-0 flex-1\">\n              <span class=\"flex items-baseline justify-between gap-2\">\n                <span class=\"truncate font-medium\">{{ chat.name }}</span>\n                <span class=\"text-muted-foreground shrink-0 text-xs\">{{ chat.time }}</span>\n              </span>\n              <span class=\"text-muted-foreground block truncate text-sm\">{{ chat.preview }}</span>\n            </span>\n          </button>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Conversation = { id: string; name: string; avatar: string; preview: string; time: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      conversations?: Conversation[];\n    }>(),\n    {\n      title: \"Messages\",\n      conversations: () => [\n        {\n          id: \"1\",\n          name: \"Sofia Alvarez\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          preview: \"Can you review the new onboarding mockups before lunch?\",\n          time: \"9:41 AM\",\n        },\n        {\n          id: \"2\",\n          name: \"Liam Carter\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          preview: \"Deployed the fix to staging. Looks good on my end.\",\n          time: \"9:12 AM\",\n        },\n        {\n          id: \"3\",\n          name: \"Design team\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          preview: \"Aisha: Moodboard is ready for feedback\",\n          time: \"Yesterday\",\n        },\n        {\n          id: \"4\",\n          name: \"Noah Williams\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          preview: \"Thanks! I will send the invoice tomorrow.\",\n          time: \"Yesterday\",\n        },\n        {\n          id: \"5\",\n          name: \"Maya Chen\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          preview: \"Great call today. Notes are in the shared doc.\",\n          time: \"Mon\",\n        },\n      ],\n    }\n  );\n\n  const selected = ref(props.conversations[0]?.id ?? \"\");\n</script>\n","category":"ConversationList","description":"Simple conversation list. Features: Avatar, name, last message preview and time for every conversation, selected row highlight, truncated previews, keyboard friendly buttons and a compose button","path":"Chat/ConversationList/BlockConversationList1.vue","components":["avatar","button","container"]},{"name":"Conversation List 2","fileName":"BlockConversationList2.vue","file":"<template>\n  <!--\n    Conversation list with unread badges and tabs\n    Features: All and unread tabs with counts, bold names and a badge for unread conversations, opening a conversation marks it read, mark all as read action and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-md overflow-hidden rounded-xl border\">\n      <div class=\"flex items-center justify-between px-4 pt-3\">\n        <h1 class=\"text-lg font-semibold\">Inbox</h1>\n        <UiButton variant=\"ghost\" size=\"sm\" :disabled=\"!unread\" @click=\"markAll\"\n          >Mark all read</UiButton\n        >\n      </div>\n      <UiTabs v-model=\"tab\" class=\"px-4 pt-2 pb-3\">\n        <UiTabsList class=\"w-full\">\n          <UiTabsTrigger value=\"all\" class=\"flex-1\">All</UiTabsTrigger>\n          <UiTabsTrigger value=\"unread\" class=\"flex-1\">\n            Unread\n            <UiBadge v-if=\"unread\" class=\"ml-1.5\">{{ unread }}</UiBadge>\n          </UiTabsTrigger>\n        </UiTabsList>\n      </UiTabs>\n      <ul class=\"divide-y border-t\" role=\"list\">\n        <li v-for=\"chat in rows\" :key=\"chat.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-muted/50 focus-visible:ring-ring/50 flex w-full items-center gap-3 px-4 py-3 text-left outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n            @click=\"open(chat)\"\n          >\n            <UiAvatar :src=\"chat.avatar\" :fallback=\"chat.name[0]\" class=\"size-10\" />\n            <span class=\"min-w-0 flex-1\">\n              <span class=\"flex items-baseline justify-between gap-2\">\n                <span class=\"truncate\" :class=\"chat.unread ? 'font-semibold' : 'font-medium'\">{{\n                  chat.name\n                }}</span>\n                <span class=\"text-muted-foreground shrink-0 text-xs\">{{ chat.time }}</span>\n              </span>\n              <span class=\"flex items-center gap-2\">\n                <span\n                  class=\"block flex-1 truncate text-sm\"\n                  :class=\"chat.unread ? 'text-foreground' : 'text-muted-foreground'\"\n                >\n                  {{ chat.preview }}\n                </span>\n                <UiBadge v-if=\"chat.unread\" shape=\"pill\" class=\"min-w-5 justify-center\">\n                  {{ chat.unread }}\n                  <span class=\"sr-only\">unread messages</span>\n                </UiBadge>\n              </span>\n            </span>\n          </button>\n        </li>\n        <li\n          v-if=\"!rows.length\"\n          class=\"text-muted-foreground flex flex-col items-center gap-2 px-4 py-12 text-sm\"\n        >\n          <Icon name=\"lucide:inbox\" class=\"size-6\" />\n          You are all caught up.\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Conversation = {\n    id: string;\n    name: string;\n    avatar: string;\n    preview: string;\n    time: string;\n    unread: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      conversations?: Conversation[];\n    }>(),\n    {\n      conversations: () => [\n        {\n          id: \"1\",\n          name: \"Sofia Alvarez\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          preview: \"Can you review the new mockups?\",\n          time: \"9:41 AM\",\n          unread: 3,\n        },\n        {\n          id: \"2\",\n          name: \"Liam Carter\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          preview: \"Deployed the fix to staging.\",\n          time: \"9:12 AM\",\n          unread: 1,\n        },\n        {\n          id: \"3\",\n          name: \"Design team\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          preview: \"Aisha: Moodboard is ready\",\n          time: \"Yesterday\",\n          unread: 0,\n        },\n        {\n          id: \"4\",\n          name: \"Noah Williams\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          preview: \"I will send the invoice tomorrow.\",\n          time: \"Yesterday\",\n          unread: 0,\n        },\n        {\n          id: \"5\",\n          name: \"Ethan Brooks\",\n          avatar: \"https://i.pravatar.cc/80?img=33\",\n          preview: \"Are we still on for Thursday?\",\n          time: \"Mon\",\n          unread: 2,\n        },\n      ],\n    }\n  );\n\n  const items = ref<Conversation[]>(props.conversations.map((chat) => ({ ...chat })));\n  const tab = ref(\"all\");\n\n  const unread = computed(() => items.value.filter((chat) => chat.unread).length);\n  const rows = computed(() =>\n    tab.value === \"unread\" ? items.value.filter((chat) => chat.unread) : items.value\n  );\n\n  function open(chat: Conversation) {\n    chat.unread = 0;\n  }\n\n  function markAll() {\n    items.value.forEach((chat) => (chat.unread = 0));\n  }\n</script>\n","category":"ConversationList","description":"Conversation list with unread badges and tabs. Features: All and unread tabs with counts, bold names and a badge for unread conversations, opening a conversation marks it read, mark all as read action and an empty state","path":"Chat/ConversationList/BlockConversationList2.vue","components":["avatar","badge","button","container","tabs"]},{"name":"Conversation List 3","fileName":"BlockConversationList3.vue","file":"<template>\n  <!--\n    Conversation list grouped by date\n    Features: Sticky group headings for today, yesterday and earlier, a pinned section at the top, pin and unpin buttons that appear on hover and focus, relative times and a scroll area\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-md overflow-hidden rounded-xl border\">\n      <div class=\"border-b px-4 py-3\">\n        <h1 class=\"text-lg font-semibold\">Conversations</h1>\n      </div>\n      <UiScrollArea class=\"h-[28rem]\">\n        <section v-for=\"group in groups\" :key=\"group.label\" :aria-label=\"group.label\">\n          <h2\n            class=\"bg-muted/60 text-muted-foreground sticky top-0 z-10 px-4 py-1.5 text-xs font-semibold tracking-wide uppercase backdrop-blur\"\n          >\n            {{ group.label }}\n          </h2>\n          <ul class=\"divide-y\" role=\"list\">\n            <li\n              v-for=\"chat in group.items\"\n              :key=\"chat.id\"\n              class=\"group/row hover:bg-muted/50 relative flex items-center gap-3 px-4 py-3\"\n            >\n              <UiAvatar :src=\"chat.avatar\" :fallback=\"chat.name[0]\" class=\"size-10\" />\n              <div class=\"min-w-0 flex-1\">\n                <div class=\"flex items-baseline justify-between gap-2\">\n                  <p class=\"truncate font-medium\">{{ chat.name }}</p>\n                  <p class=\"text-muted-foreground shrink-0 text-xs\">{{ chat.time }}</p>\n                </div>\n                <p class=\"text-muted-foreground truncate text-sm\">{{ chat.preview }}</p>\n              </div>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"opacity-0 transition group-focus-within/row:opacity-100 group-hover/row:opacity-100\"\n                :aria-label=\"`${chat.pinned ? 'Unpin' : 'Pin'} ${chat.name}`\"\n                @click=\"chat.pinned = !chat.pinned\"\n              >\n                <Icon :name=\"chat.pinned ? 'lucide:pin-off' : 'lucide:pin'\" class=\"size-4\" />\n              </UiButton>\n            </li>\n          </ul>\n        </section>\n      </UiScrollArea>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Conversation = {\n    id: string;\n    name: string;\n    avatar: string;\n    preview: string;\n    time: string;\n    day: \"Today\" | \"Yesterday\" | \"Earlier\";\n    pinned: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      conversations?: Conversation[];\n    }>(),\n    {\n      conversations: () => [\n        {\n          id: \"1\",\n          name: \"Maya Chen\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          preview: \"Board deck is final.\",\n          time: \"Fri\",\n          day: \"Earlier\",\n          pinned: true,\n        },\n        {\n          id: \"2\",\n          name: \"Sofia Alvarez\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          preview: \"Can you review the mockups?\",\n          time: \"9:41 AM\",\n          day: \"Today\",\n          pinned: false,\n        },\n        {\n          id: \"3\",\n          name: \"Liam Carter\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          preview: \"Deployed to staging.\",\n          time: \"9:12 AM\",\n          day: \"Today\",\n          pinned: false,\n        },\n        {\n          id: \"4\",\n          name: \"Design team\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          preview: \"Aisha: Moodboard is ready\",\n          time: \"5:20 PM\",\n          day: \"Yesterday\",\n          pinned: false,\n        },\n        {\n          id: \"5\",\n          name: \"Noah Williams\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          preview: \"Invoice is on its way.\",\n          time: \"2:05 PM\",\n          day: \"Yesterday\",\n          pinned: false,\n        },\n        {\n          id: \"6\",\n          name: \"Ethan Brooks\",\n          avatar: \"https://i.pravatar.cc/80?img=33\",\n          preview: \"Thursday works for me.\",\n          time: \"Mon\",\n          day: \"Earlier\",\n          pinned: false,\n        },\n        {\n          id: \"7\",\n          name: \"Aisha Khan\",\n          avatar: \"https://i.pravatar.cc/80?img=44\",\n          preview: \"Campaign results look strong.\",\n          time: \"Sun\",\n          day: \"Earlier\",\n          pinned: false,\n        },\n      ],\n    }\n  );\n\n  const items = ref<Conversation[]>(props.conversations.map((chat) => ({ ...chat })));\n\n  const groups = computed(() => {\n    const result: { label: string; items: Conversation[] }[] = [];\n    const pinned = items.value.filter((chat) => chat.pinned);\n    if (pinned.length) result.push({ label: \"Pinned\", items: pinned });\n    for (const label of [\"Today\", \"Yesterday\", \"Earlier\"] as const) {\n      const rows = items.value.filter((chat) => !chat.pinned && chat.day === label);\n      if (rows.length) result.push({ label, items: rows });\n    }\n    return result;\n  });\n</script>\n","category":"ConversationList","description":"Conversation list grouped by date. Features: Sticky group headings for today, yesterday and earlier, a pinned section at the top, pin and unpin buttons that appear on hover and focus, relative times and a scroll area","path":"Chat/ConversationList/BlockConversationList3.vue","components":["avatar","button","container","scroll-area"]},{"name":"Conversation List 4","fileName":"BlockConversationList4.vue","file":"<template>\n  <!--\n    Searchable conversation list\n    Features: Search field with a clear button, matches highlighted in names and previews, result count announced to screen readers, no results state with a suggestion and a keyboard shortcut hint\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-md overflow-hidden rounded-xl border\">\n      <div class=\"border-b p-3\">\n        <div class=\"relative\">\n          <UiLabel for=\"chat-search\" class=\"sr-only\">Search conversations</UiLabel>\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            id=\"chat-search\"\n            v-model=\"query\"\n            placeholder=\"Search conversations\"\n            class=\"px-9\"\n          />\n          <button\n            v-if=\"query\"\n            type=\"button\"\n            class=\"text-muted-foreground hover:text-foreground absolute top-1/2 right-2 -translate-y-1/2 rounded p-1\"\n            aria-label=\"Clear search\"\n            @click=\"query = ''\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </button>\n          <UiKbd v-else class=\"pointer-events-none absolute top-1/2 right-2 -translate-y-1/2\"\n            >/</UiKbd\n          >\n        </div>\n        <p class=\"sr-only\" aria-live=\"polite\">{{ rows.length }} conversations found</p>\n      </div>\n      <ul v-if=\"rows.length\" class=\"divide-y\" role=\"list\">\n        <li v-for=\"chat in rows\" :key=\"chat.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-muted/50 focus-visible:ring-ring/50 flex w-full items-center gap-3 px-4 py-3 text-left outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n          >\n            <UiAvatar :src=\"chat.avatar\" :fallback=\"chat.name[0]\" class=\"size-10\" />\n            <span class=\"min-w-0 flex-1\">\n              <span class=\"block truncate font-medium\">\n                <template v-for=\"(part, i) in highlight(chat.name)\" :key=\"i\">\n                  <mark\n                    v-if=\"part.match\"\n                    class=\"rounded-sm bg-yellow-200 text-inherit dark:bg-yellow-500/40\"\n                    >{{ part.text }}</mark\n                  >\n                  <template v-else>{{ part.text }}</template>\n                </template>\n              </span>\n              <span class=\"text-muted-foreground block truncate text-sm\">\n                <template v-for=\"(part, i) in highlight(chat.preview)\" :key=\"i\">\n                  <mark\n                    v-if=\"part.match\"\n                    class=\"rounded-sm bg-yellow-200 text-inherit dark:bg-yellow-500/40\"\n                    >{{ part.text }}</mark\n                  >\n                  <template v-else>{{ part.text }}</template>\n                </template>\n              </span>\n            </span>\n          </button>\n        </li>\n      </ul>\n      <div v-else class=\"flex flex-col items-center px-6 py-12 text-center\">\n        <Icon name=\"lucide:search-x\" class=\"text-muted-foreground size-8\" />\n        <p class=\"mt-3 font-medium\">No conversations found</p>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Try a different name or a word from the message.\n        </p>\n        <UiButton variant=\"outline\" size=\"sm\" class=\"mt-4\" @click=\"query = ''\"\n          >Clear search</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Conversation = { id: string; name: string; avatar: string; preview: string };\n\n  const props = withDefaults(\n    defineProps<{\n      conversations?: Conversation[];\n    }>(),\n    {\n      conversations: () => [\n        {\n          id: \"1\",\n          name: \"Sofia Alvarez\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          preview: \"Can you review the onboarding mockups?\",\n        },\n        {\n          id: \"2\",\n          name: \"Liam Carter\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          preview: \"Deployed the fix to staging.\",\n        },\n        {\n          id: \"3\",\n          name: \"Design team\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          preview: \"Aisha: Moodboard is ready for review\",\n        },\n        {\n          id: \"4\",\n          name: \"Noah Williams\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          preview: \"I will send the invoice tomorrow.\",\n        },\n        {\n          id: \"5\",\n          name: \"Ethan Brooks\",\n          avatar: \"https://i.pravatar.cc/80?img=33\",\n          preview: \"Are we still on for Thursday?\",\n        },\n      ],\n    }\n  );\n\n  const query = ref(\"\");\n\n  const term = computed(() => query.value.trim().toLowerCase());\n\n  const rows = computed(() =>\n    props.conversations.filter(\n      (chat) =>\n        !term.value ||\n        chat.name.toLowerCase().includes(term.value) ||\n        chat.preview.toLowerCase().includes(term.value)\n    )\n  );\n\n  function highlight(text: string) {\n    if (!term.value) return [{ text, match: false }];\n    const parts: { text: string; match: boolean }[] = [];\n    const lower = text.toLowerCase();\n    let cursor = 0;\n    let found = lower.indexOf(term.value);\n    while (found !== -1) {\n      if (found > cursor) parts.push({ text: text.slice(cursor, found), match: false });\n      parts.push({ text: text.slice(found, found + term.value.length), match: true });\n      cursor = found + term.value.length;\n      found = lower.indexOf(term.value, cursor);\n    }\n    if (cursor < text.length) parts.push({ text: text.slice(cursor), match: false });\n    return parts;\n  }\n\n  // Press slash anywhere to jump to the search field.\n  useEventListener(\"keydown\", (event: KeyboardEvent) => {\n    const target = event.target as HTMLElement;\n    if (event.key === \"/\" && ![\"INPUT\", \"TEXTAREA\"].includes(target.tagName)) {\n      event.preventDefault();\n      document.getElementById(\"chat-search\")?.focus();\n    }\n  });\n</script>\n","category":"ConversationList","description":"Searchable conversation list. Features: Search field with a clear button, matches highlighted in names and previews, result count announced to screen readers, no results state with a suggestion and a keyboard shortcut hint","path":"Chat/ConversationList/BlockConversationList4.vue","components":["avatar","button","container","input","kbd","label"]},{"name":"Conversation List 5","fileName":"BlockConversationList5.vue","file":"<template>\n  <!--\n    Team channels and direct messages sidebar\n    Features: Collapsible channels and direct messages sections, hash icons, unread channels in bold with a count, presence dots on people, a create channel action and a selected row\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <nav\n      class=\"bg-muted/30 mx-auto w-72 overflow-hidden rounded-xl border\"\n      aria-label=\"Conversations\"\n    >\n      <div class=\"flex items-center gap-2 border-b px-4 py-3 font-semibold\">\n        <span class=\"bg-primary text-primary-foreground grid size-7 place-items-center rounded-md\">\n          <Icon name=\"lucide:layers\" class=\"size-4\" />\n        </span>\n        {{ team }}\n      </div>\n\n      <UiCollapsible v-model:open=\"channelsOpen\" class=\"px-2 py-3\">\n        <div class=\"flex items-center justify-between px-2\">\n          <UiCollapsibleTrigger as-child>\n            <button\n              type=\"button\"\n              class=\"text-muted-foreground hover:text-foreground flex items-center gap-1 text-xs font-semibold tracking-wide uppercase\"\n            >\n              <Icon\n                name=\"lucide:chevron-down\"\n                class=\"size-3.5 transition-transform\"\n                :class=\"channelsOpen ? '' : '-rotate-90'\"\n              />\n              Channels\n            </button>\n          </UiCollapsibleTrigger>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"size-6\"\n            aria-label=\"Create channel\"\n            @click=\"useSonner.info('Open your create channel dialog here')\"\n          >\n            <Icon name=\"lucide:plus\" class=\"size-3.5\" />\n          </UiButton>\n        </div>\n        <UiCollapsibleContent>\n          <ul class=\"mt-1 space-y-0.5\">\n            <li v-for=\"channel in channels\" :key=\"channel.name\">\n              <button\n                type=\"button\"\n                class=\"hover:bg-accent focus-visible:ring-ring/50 flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none focus-visible:ring-[3px]\"\n                :class=\"[\n                  active === channel.name ? 'bg-accent' : '',\n                  channel.unread ? 'font-semibold' : 'text-muted-foreground',\n                ]\"\n                :aria-current=\"active === channel.name ? 'true' : undefined\"\n                @click=\"select(channel)\"\n              >\n                <Icon name=\"lucide:hash\" class=\"size-4 shrink-0\" />\n                <span class=\"flex-1 truncate text-left\">{{ channel.name }}</span>\n                <UiBadge v-if=\"channel.unread\" shape=\"pill\">\n                  {{ channel.unread }}\n                  <span class=\"sr-only\">unread messages</span>\n                </UiBadge>\n              </button>\n            </li>\n          </ul>\n        </UiCollapsibleContent>\n      </UiCollapsible>\n\n      <UiCollapsible v-model:open=\"peopleOpen\" class=\"px-2 pb-3\">\n        <div class=\"px-2\">\n          <UiCollapsibleTrigger as-child>\n            <button\n              type=\"button\"\n              class=\"text-muted-foreground hover:text-foreground flex items-center gap-1 text-xs font-semibold tracking-wide uppercase\"\n            >\n              <Icon\n                name=\"lucide:chevron-down\"\n                class=\"size-3.5 transition-transform\"\n                :class=\"peopleOpen ? '' : '-rotate-90'\"\n              />\n              Direct messages\n            </button>\n          </UiCollapsibleTrigger>\n        </div>\n        <UiCollapsibleContent>\n          <ul class=\"mt-1 space-y-0.5\">\n            <li v-for=\"person in people\" :key=\"person.name\">\n              <button\n                type=\"button\"\n                class=\"hover:bg-accent focus-visible:ring-ring/50 flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none focus-visible:ring-[3px]\"\n                :class=\"active === person.name ? 'bg-accent' : ''\"\n                @click=\"active = person.name\"\n              >\n                <span class=\"relative\">\n                  <UiAvatar :src=\"person.avatar\" :fallback=\"person.name[0]\" class=\"size-6\" />\n                  <span\n                    class=\"ring-background absolute -right-0.5 -bottom-0.5 size-2.5 rounded-full ring-2\"\n                    :class=\"person.online ? 'bg-green-500' : 'bg-muted-foreground/40'\"\n                  />\n                </span>\n                <span class=\"flex-1 truncate text-left\">{{ person.name }}</span>\n                <span class=\"sr-only\">{{ person.online ? \"Online\" : \"Offline\" }}</span>\n              </button>\n            </li>\n          </ul>\n        </UiCollapsibleContent>\n      </UiCollapsible>\n    </nav>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Channel = { name: string; unread: number };\n  type Person = { name: string; avatar: string; online: boolean };\n\n  withDefaults(\n    defineProps<{\n      team?: string;\n    }>(),\n    { team: \"Acme\" }\n  );\n\n  const channels = ref<Channel[]>([\n    { name: \"general\", unread: 0 },\n    { name: \"design\", unread: 4 },\n    { name: \"engineering\", unread: 0 },\n    { name: \"launch-plan\", unread: 2 },\n    { name: \"random\", unread: 0 },\n  ]);\n\n  const people: Person[] = [\n    { name: \"Sofia Alvarez\", avatar: \"https://i.pravatar.cc/80?img=32\", online: true },\n    { name: \"Liam Carter\", avatar: \"https://i.pravatar.cc/80?img=12\", online: true },\n    { name: \"Noah Williams\", avatar: \"https://i.pravatar.cc/80?img=15\", online: false },\n    { name: \"Aisha Khan\", avatar: \"https://i.pravatar.cc/80?img=44\", online: false },\n  ];\n\n  const channelsOpen = ref(true);\n  const peopleOpen = ref(true);\n  const active = ref(\"general\");\n\n  function select(channel: Channel) {\n    active.value = channel.name;\n    channel.unread = 0;\n  }\n</script>\n","category":"ConversationList","description":"Team channels and direct messages sidebar. Features: Collapsible channels and direct messages sections, hash icons, unread channels in bold with a count, presence dots on people, a create channel action and a selected row","path":"Chat/ConversationList/BlockConversationList5.vue","components":["avatar","badge","button","collapsible","container"]},{"name":"Conversation List 6","fileName":"BlockConversationList6.vue","file":"<template>\n  <!--\n    Contacts list with alphabetical groups\n    Features: Sticky letter headings, online status dots, search that filters while keeping groups, message and call buttons per contact and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-md overflow-hidden rounded-xl border\">\n      <div class=\"space-y-3 border-b p-4\">\n        <h1 class=\"text-lg font-semibold\">Contacts</h1>\n        <div class=\"relative\">\n          <UiLabel for=\"contact-search\" class=\"sr-only\">Search contacts</UiLabel>\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput id=\"contact-search\" v-model=\"query\" placeholder=\"Search contacts\" class=\"pl-9\" />\n        </div>\n      </div>\n      <UiScrollArea class=\"h-96\">\n        <section\n          v-for=\"group in groups\"\n          :key=\"group.letter\"\n          :aria-label=\"`Contacts starting with ${group.letter}`\"\n        >\n          <h2\n            class=\"bg-background text-muted-foreground sticky top-0 z-10 border-b px-4 py-1.5 text-xs font-semibold\"\n          >\n            {{ group.letter }}\n          </h2>\n          <ul class=\"divide-y\" role=\"list\">\n            <li\n              v-for=\"contact in group.items\"\n              :key=\"contact.name\"\n              class=\"flex items-center gap-3 px-4 py-3\"\n            >\n              <span class=\"relative\">\n                <UiAvatar :src=\"contact.avatar\" :fallback=\"contact.name[0]\" class=\"size-10\" />\n                <span\n                  class=\"ring-background absolute right-0 bottom-0 size-3 rounded-full ring-2\"\n                  :class=\"contact.online ? 'bg-green-500' : 'bg-muted-foreground/40'\"\n                />\n              </span>\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"truncate font-medium\">{{ contact.name }}</p>\n                <p class=\"text-muted-foreground truncate text-xs\">\n                  {{ contact.role }} · {{ contact.online ? \"Online\" : \"Offline\" }}\n                </p>\n              </div>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                :aria-label=\"`Message ${contact.name}`\"\n                @click=\"useSonner.info(`Messaging ${contact.name}`)\"\n              >\n                <Icon name=\"lucide:message-circle\" class=\"size-4\" />\n              </UiButton>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                :aria-label=\"`Call ${contact.name}`\"\n                @click=\"useSonner.info(`Calling ${contact.name}`)\"\n              >\n                <Icon name=\"lucide:phone\" class=\"size-4\" />\n              </UiButton>\n            </li>\n          </ul>\n        </section>\n        <p v-if=\"!groups.length\" class=\"text-muted-foreground px-4 py-12 text-center text-sm\">\n          No contacts match “{{ query }}”.\n        </p>\n      </UiScrollArea>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Contact = { name: string; role: string; avatar: string; online: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      contacts?: Contact[];\n    }>(),\n    {\n      contacts: () => [\n        {\n          name: \"Aisha Khan\",\n          role: \"Marketing\",\n          avatar: \"https://i.pravatar.cc/80?img=44\",\n          online: false,\n        },\n        {\n          name: \"Amir Hassan\",\n          role: \"Sales\",\n          avatar: \"https://i.pravatar.cc/80?img=51\",\n          online: true,\n        },\n        {\n          name: \"Ben Taylor\",\n          role: \"Support\",\n          avatar: \"https://i.pravatar.cc/80?img=52\",\n          online: true,\n        },\n        {\n          name: \"Chloe Martin\",\n          role: \"Finance\",\n          avatar: \"https://i.pravatar.cc/80?img=26\",\n          online: false,\n        },\n        {\n          name: \"Ethan Brooks\",\n          role: \"Design\",\n          avatar: \"https://i.pravatar.cc/80?img=33\",\n          online: true,\n        },\n        {\n          name: \"Liam Carter\",\n          role: \"Engineering\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          online: true,\n        },\n        {\n          name: \"Maya Chen\",\n          role: \"CEO\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          online: false,\n        },\n        {\n          name: \"Noah Williams\",\n          role: \"Engineering\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          online: false,\n        },\n        {\n          name: \"Sofia Alvarez\",\n          role: \"Design\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          online: true,\n        },\n      ],\n    }\n  );\n\n  const query = ref(\"\");\n\n  const groups = computed(() => {\n    const term = query.value.trim().toLowerCase();\n    const matches = props.contacts\n      .filter(\n        (contact) =>\n          !term ||\n          contact.name.toLowerCase().includes(term) ||\n          contact.role.toLowerCase().includes(term)\n      )\n      .sort((a, b) => a.name.localeCompare(b.name));\n    const byLetter = new Map<string, Contact[]>();\n    for (const contact of matches) {\n      const letter = contact.name[0]!.toUpperCase();\n      byLetter.set(letter, [...(byLetter.get(letter) ?? []), contact]);\n    }\n    return [...byLetter.entries()].map(([letter, items]) => ({ letter, items }));\n  });\n</script>\n","category":"ConversationList","description":"Contacts list with alphabetical groups. Features: Sticky letter headings, online status dots, search that filters while keeping groups, message and call buttons per contact and an empty state","path":"Chat/ConversationList/BlockConversationList6.vue","components":["avatar","button","container","input","label","scroll-area"]},{"name":"CTA 1","fileName":"BlockCTA1.vue","file":"<template>\n  <!-- \n    Centered CTA with dual buttons\n    Features: Centered layout, staggered animations, action buttons\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"flex flex-col items-center py-16 text-center lg:py-24\">\n      <Motion\n        as=\"h3\"\n        :variants=\"childVariant\"\n        class=\"mb-4 text-3xl font-semibold md:mb-5 md:text-4xl\"\n      >\n        Start your free trial\n      </Motion>\n      <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg md:text-xl\">\n        Join over 4,000+ startups already growing with {{ COMPANY_NAME }}.\n      </Motion>\n      <Motion\n        :variants=\"childVariant\"\n        class=\"mt-8 flex w-full flex-col-reverse justify-center gap-3 md:w-auto md:flex-row\"\n      >\n        <UiButton size=\"lg\" class=\"w-full lg:w-auto\" variant=\"outline\">Learn more</UiButton>\n        <UiButton size=\"lg\" class=\"w-full whitespace-nowrap md:w-auto\">\n          Get started\n          <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n        </UiButton>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n","category":"CTA","description":"Centered CTA with dual buttons. Features: Centered layout, staggered animations, action buttons","path":"CTA/BlockCTA1.vue","components":["button","container"]},{"name":"CTA 2","fileName":"BlockCTA2.vue","file":"<template>\n  <!-- \n    Horizontal CTA with side-by-side layout\n    Features: Text left, buttons right, responsive stacking, animations\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"flex flex-col items-center py-16 lg:flex-row lg:py-24\">\n      <Motion :variants=\"childVariant\" class=\"grow text-center lg:text-left\">\n        <h3 class=\"mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\">Start your free trial</h3>\n        <p class=\"text-muted-foreground text-lg lg:text-xl\">\n          Join over 4,000+ startups already growing with {{ COMPANY_NAME }}.\n        </p>\n      </Motion>\n      <Motion\n        :variants=\"childVariant\"\n        class=\"mt-8 flex w-full shrink-0 flex-col-reverse justify-center gap-3 md:w-auto md:flex-row lg:mt-0\"\n      >\n        <UiButton size=\"lg\" class=\"w-full md:w-auto\" variant=\"outline\">Learn more</UiButton>\n        <UiButton size=\"lg\" class=\"w-full whitespace-nowrap md:w-auto\">\n          Get started\n          <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n        </UiButton>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n","category":"CTA","description":"Horizontal CTA with side-by-side layout. Features: Text left, buttons right, responsive stacking, animations","path":"CTA/BlockCTA2.vue","components":["button","container"]},{"name":"CTA 3","fileName":"BlockCTA3.vue","file":"<template>\n  <!-- \n    Feature list CTA with image\n    Features: Checklist items, decorative SVG, image, staggered animations\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer\n      class=\"relative flex flex-col items-center justify-center gap-y-12 py-10 lg:h-[720px] lg:flex-row\"\n    >\n      <Motion :variants=\"childVariant\" class=\"flex h-full items-center justify-center\">\n        <div>\n          <h3 class=\"text-3xl font-semibold lg:text-5xl\">\n            Join 4,000+ startups growing with {{ COMPANY_NAME }}\n          </h3>\n          <ul class=\"text-muted-foreground mt-8 flex flex-col gap-5\">\n            <Motion\n              v-for=\"(feature, idx) in features\"\n              :key=\"idx\"\n              :variants=\"childVariant\"\n              class=\"flex gap-3 lg:text-lg\"\n            >\n              <Icon name=\"heroicons:check-circle\" class=\"text-primary h-6 w-6 shrink-0\" />\n              <span>{{ feature }}</span>\n            </Motion>\n          </ul>\n          <Motion\n            :variants=\"childVariant\"\n            class=\"mt-8 flex w-full shrink-0 flex-col-reverse gap-3 md:mt-12 lg:w-auto lg:flex-row\"\n          >\n            <UiButton size=\"lg\" class=\"w-full lg:w-auto\" variant=\"outline\">Learn more</UiButton>\n            <UiButton size=\"lg\" class=\"w-full shrink-0 whitespace-nowrap md:w-auto\">\n              Get started\n              <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n            </UiButton>\n          </Motion>\n        </div>\n      </Motion>\n\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, x: 30 },\n          animate: {\n            opacity: 1,\n            x: 0,\n            transition: {\n              type: 'spring',\n              stiffness: 200,\n              damping: 25,\n            },\n          },\n        }\"\n        class=\"h-[300px] w-full overflow-hidden rounded-lg shadow-lg md:w-[600px] lg:h-full lg:w-1/2\"\n      >\n        <img\n          src=\"https://images.unsplash.com/photo-1608411404720-c8f0417bcdba?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n          alt=\"CTA image\"\n          :title=\"`${COMPANY_NAME} CTA image`\"\n          class=\"h-full w-full object-cover transition-transform duration-500 hover:scale-105\"\n        />\n      </Motion>\n\n      <Motion :variants=\"childVariant\" class=\"absolute bottom-5 left-[290px] hidden lg:block\">\n        <div class=\"h-[300px] w-[300px]\" style=\"transform: rotateY(180deg)\">\n          <svg viewBox=\"0 0 360 342\" class=\"fill-primary\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path\n              d=\"M342.654 174.227C343.704 172.945 345.594 172.756 346.876 173.806C348.158 174.856 348.346 176.746 347.296 178.028L342.654 174.227ZM159.589 141.42L159.868 138.433L159.869 138.434L159.589 141.42ZM184.236 248.724L182.479 246.293L182.479 246.292L184.236 248.724ZM34.9177 108.275C35.017 106.621 36.4382 105.361 38.0921 105.461C39.746 105.56 41.0062 106.981 40.9069 108.635L34.9177 108.275ZM350.512 200.044C350.567 201.7 349.269 203.087 347.613 203.142C345.957 203.197 344.57 201.899 344.515 200.243L350.512 200.044ZM346.66 174.344L346.944 171.357C348.447 171.5 349.609 172.737 349.659 174.245L346.66 174.344ZM320.295 174.307C318.67 173.981 317.619 172.399 317.945 170.775C318.272 169.15 319.854 168.098 321.478 168.425L320.295 174.307ZM344.975 176.127C347.296 178.028 347.295 178.029 347.294 178.03C347.294 178.031 347.292 178.033 347.29 178.035C347.287 178.039 347.283 178.044 347.278 178.051C347.267 178.064 347.251 178.083 347.231 178.107C347.19 178.156 347.131 178.227 347.054 178.32C346.899 178.505 346.672 178.776 346.373 179.125C345.776 179.824 344.897 180.839 343.754 182.117C341.468 184.673 338.125 188.283 333.881 192.526C325.399 201.004 313.281 212.038 298.76 222.223C269.869 242.488 230.675 259.93 191.571 245.779L193.613 240.138C229.851 253.251 266.849 237.278 295.314 217.311C309.471 207.381 321.322 196.595 329.639 188.282C333.795 184.129 337.06 180.601 339.282 178.117C340.392 176.876 341.241 175.896 341.81 175.23C342.094 174.897 342.308 174.642 342.45 174.473C342.52 174.388 342.573 174.325 342.607 174.284C342.624 174.263 342.637 174.248 342.644 174.238C342.648 174.234 342.651 174.23 342.653 174.228C342.653 174.227 342.654 174.227 342.654 174.226C342.654 174.226 342.654 174.227 344.975 176.127ZM191.571 245.779C152.934 231.798 135.393 204.746 132.163 181.185C130.558 169.476 132.484 158.514 137.294 150.563C142.156 142.526 150.052 137.516 159.868 138.433L159.31 144.407C152.19 143.742 146.326 147.224 142.428 153.668C138.478 160.198 136.646 169.707 138.107 180.37C141.011 201.554 156.908 226.855 193.613 240.138L191.571 245.779ZM159.869 138.434C169.254 139.314 178.636 144.72 186.578 152.506C194.556 160.328 201.323 170.778 205.438 182.242C213.68 205.207 211.378 232.813 185.993 251.156L182.479 246.292C205.099 229.948 207.407 205.49 199.79 184.269C195.975 173.64 189.696 163.966 182.377 156.791C175.023 149.58 166.856 145.115 159.309 144.407L159.869 138.434ZM185.993 251.155C173.06 260.503 156.569 261.895 139.593 257.576C122.621 253.258 104.888 243.182 88.9736 229.122C57.1795 201.031 32.0248 156.455 34.9177 108.275L40.9069 108.635C38.1513 154.528 62.1638 197.429 92.9463 224.626C108.321 238.209 125.227 247.73 141.073 251.762C156.915 255.792 171.417 254.288 182.479 246.293L185.993 251.155ZM344.515 200.243L343.662 174.443L349.659 174.245L350.512 200.044L344.515 200.243ZM346.66 174.344C346.377 177.33 346.377 177.33 346.376 177.33C346.376 177.33 346.376 177.33 346.376 177.33C346.375 177.33 346.374 177.33 346.373 177.33C346.37 177.33 346.366 177.329 346.361 177.329C346.351 177.328 346.336 177.327 346.316 177.325C346.276 177.321 346.217 177.315 346.139 177.308C345.985 177.293 345.758 177.271 345.468 177.243C344.888 177.187 344.054 177.106 343.037 177.005C341.005 176.804 338.243 176.524 335.322 176.214C329.566 175.602 322.953 174.842 320.295 174.307L321.478 168.425C323.797 168.892 330.071 169.621 335.957 170.248C338.859 170.556 341.606 170.834 343.629 171.034C344.64 171.134 345.47 171.215 346.046 171.271C346.334 171.299 346.559 171.321 346.712 171.335C346.788 171.343 346.847 171.348 346.886 171.352C346.905 171.354 346.92 171.355 346.93 171.356C346.935 171.356 346.938 171.357 346.941 171.357C346.942 171.357 346.943 171.357 346.943 171.357C346.944 171.357 346.944 171.357 346.944 171.357C346.944 171.357 346.944 171.357 346.66 174.344Z\"\n            />\n          </svg>\n        </div>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const features = [\"30-day free trial\", \"Personalized onboarding\", \"Access to all features\"];\n</script>\n","category":"CTA","description":"Feature list CTA with image. Features: Checklist items, decorative SVG, image, staggered animations","path":"CTA/BlockCTA3.vue","components":["button","container"]},{"name":"CTA 4","fileName":"BlockCTA4.vue","file":"<template>\n  <!-- \n    Review carousel CTA with Swiper\n    Features: Testimonial slider, decorative SVG, feature list, swiper carousel\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer\n      class=\"relative flex flex-col items-center justify-center gap-y-12 py-10 lg:h-[720px] lg:flex-row\"\n    >\n      <Motion :variants=\"childVariant\" class=\"flex h-full items-center justify-center\">\n        <div>\n          <h3 class=\"text-3xl font-semibold lg:text-5xl\">\n            Join 4,000+ startups growing with {{ COMPANY_NAME }}\n          </h3>\n          <ul class=\"text-muted-foreground mt-8 flex flex-col gap-5\">\n            <Motion\n              v-for=\"(feature, idx) in features\"\n              :key=\"idx\"\n              :variants=\"childVariant\"\n              class=\"flex gap-3 lg:text-lg\"\n            >\n              <Icon name=\"heroicons:check-circle\" class=\"text-primary h-6 w-6 shrink-0\" />\n              <span>{{ feature }}</span>\n            </Motion>\n          </ul>\n          <Motion\n            :variants=\"childVariant\"\n            class=\"mt-8 flex w-full shrink-0 flex-col-reverse gap-3 md:mt-12 lg:w-auto lg:flex-row\"\n          >\n            <UiButton size=\"lg\" class=\"w-full lg:w-auto\" variant=\"outline\">Learn more</UiButton>\n            <UiButton size=\"lg\" class=\"w-full shrink-0 whitespace-nowrap md:w-auto\">\n              Get started\n              <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n            </UiButton>\n          </Motion>\n        </div>\n      </Motion>\n\n      <Motion as-child :variants=\"childVariant\">\n        <swiper-container\n          ref=\"containerRef\"\n          :autoplay=\"{ delay: 4000 }\"\n          :speed=\"800\"\n          loop\n          grab-cursor\n          :slides-per-view=\"1\"\n          :breakpoints=\"{\n            640: { slidesPerView: 1.1, spaceBetween: 20, autoplay: { delay: 7000 } },\n          }\"\n          class=\"h-[350px] w-full bg-cover bg-no-repeat p-2 md:w-[600px] lg:h-full lg:w-1/2 lg:p-8\"\n          :style=\"{\n            backgroundImage:\n              'url(https://images.unsplash.com/photo-1602345397613-0934a8812d23?q=80&w=1968&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)',\n          }\"\n        >\n          <swiper-slide v-for=\"(item, index) in reviews\" :key=\"index\" class=\"flex items-end\">\n            <div\n              class=\"border border-white/20 bg-white/10 p-4 text-white backdrop-blur-lg lg:px-5 lg:py-6\"\n            >\n              <p class=\"mb-5 text-lg font-semibold lg:mb-8 lg:text-2xl\">{{ item.review }}</p>\n              <div class=\"flex items-center justify-between\">\n                <p class=\"text-xl font-semibold lg:text-2xl\">{{ item.user.name }}</p>\n                <div>\n                  <template v-for=\"s in item.rating\" :key=\"s\">\n                    <Icon name=\"material-symbols:kid-star\" class=\"inline size-5 text-white\" />\n                  </template>\n                </div>\n              </div>\n              <div class=\"mt-2 lg:mt-3\">\n                <p class=\"text-lg\">{{ item.user.position }}</p>\n                <p>{{ item.user.companyName }}</p>\n              </div>\n            </div>\n          </swiper-slide>\n        </swiper-container>\n      </Motion>\n\n      <Motion :variants=\"childVariant\" class=\"absolute right-[50%] bottom-5 hidden lg:block\">\n        <div class=\"h-[300px] w-[300px]\">\n          <svg viewBox=\"0 0 360 342\" class=\"fill-primary\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path\n              d=\"M342.654 174.227C343.704 172.945 345.594 172.756 346.876 173.806C348.158 174.856 348.346 176.746 347.296 178.028L342.654 174.227ZM159.589 141.42L159.868 138.433L159.869 138.434L159.589 141.42ZM184.236 248.724L182.479 246.293L182.479 246.292L184.236 248.724ZM34.9177 108.275C35.017 106.621 36.4382 105.361 38.0921 105.461C39.746 105.56 41.0062 106.981 40.9069 108.635L34.9177 108.275ZM350.512 200.044C350.567 201.7 349.269 203.087 347.613 203.142C345.957 203.197 344.57 201.899 344.515 200.243L350.512 200.044ZM346.66 174.344L346.944 171.357C348.447 171.5 349.609 172.737 349.659 174.245L346.66 174.344ZM320.295 174.307C318.67 173.981 317.619 172.399 317.945 170.775C318.272 169.15 319.854 168.098 321.478 168.425L320.295 174.307ZM344.975 176.127C347.296 178.028 347.295 178.029 347.294 178.03C347.294 178.031 347.292 178.033 347.29 178.035C347.287 178.039 347.283 178.044 347.278 178.051C347.267 178.064 347.251 178.083 347.231 178.107C347.19 178.156 347.131 178.227 347.054 178.32C346.899 178.505 346.672 178.776 346.373 179.125C345.776 179.824 344.897 180.839 343.754 182.117C341.468 184.673 338.125 188.283 333.881 192.526C325.399 201.004 313.281 212.038 298.76 222.223C269.869 242.488 230.675 259.93 191.571 245.779L193.613 240.138C229.851 253.251 266.849 237.278 295.314 217.311C309.471 207.381 321.322 196.595 329.639 188.282C333.795 184.129 337.06 180.601 339.282 178.117C340.392 176.876 341.241 175.896 341.81 175.23C342.094 174.897 342.308 174.642 342.45 174.473C342.52 174.388 342.573 174.325 342.607 174.284C342.624 174.263 342.637 174.248 342.644 174.238C342.648 174.234 342.651 174.23 342.653 174.228C342.653 174.227 342.654 174.227 342.654 174.226C342.654 174.226 342.654 174.227 344.975 176.127ZM191.571 245.779C152.934 231.798 135.393 204.746 132.163 181.185C130.558 169.476 132.484 158.514 137.294 150.563C142.156 142.526 150.052 137.516 159.868 138.433L159.31 144.407C152.19 143.742 146.326 147.224 142.428 153.668C138.478 160.198 136.646 169.707 138.107 180.37C141.011 201.554 156.908 226.855 193.613 240.138L191.571 245.779ZM159.869 138.434C169.254 139.314 178.636 144.72 186.578 152.506C194.556 160.328 201.323 170.778 205.438 182.242C213.68 205.207 211.378 232.813 185.993 251.156L182.479 246.292C205.099 229.948 207.407 205.49 199.79 184.269C195.975 173.64 189.696 163.966 182.377 156.791C175.023 149.58 166.856 145.115 159.309 144.407L159.869 138.434ZM185.993 251.155C173.06 260.503 156.569 261.895 139.593 257.576C122.621 253.258 104.888 243.182 88.9736 229.122C57.1795 201.031 32.0248 156.455 34.9177 108.275L40.9069 108.635C38.1513 154.528 62.1638 197.429 92.9463 224.626C108.321 238.209 125.227 247.73 141.073 251.762C156.915 255.792 171.417 254.288 182.479 246.293L185.993 251.155ZM344.515 200.243L343.662 174.443L349.659 174.245L350.512 200.044L344.515 200.243ZM346.66 174.344C346.377 177.33 346.377 177.33 346.376 177.33C346.376 177.33 346.376 177.33 346.376 177.33C346.375 177.33 346.374 177.33 346.373 177.33C346.37 177.33 346.366 177.329 346.361 177.329C346.351 177.328 346.336 177.327 346.316 177.325C346.276 177.321 346.217 177.315 346.139 177.308C345.985 177.293 345.758 177.271 345.468 177.243C344.888 177.187 344.054 177.106 343.037 177.005C341.005 176.804 338.243 176.524 335.322 176.214C329.566 175.602 322.953 174.842 320.295 174.307L321.478 168.425C323.797 168.892 330.071 169.621 335.957 170.248C338.859 170.556 341.606 170.834 343.629 171.034C344.64 171.134 345.47 171.215 346.046 171.271C346.334 171.299 346.559 171.321 346.712 171.335C346.788 171.343 346.847 171.348 346.886 171.352C346.905 171.354 346.92 171.355 346.93 171.356C346.935 171.356 346.938 171.357 346.941 171.357C346.942 171.357 346.943 171.357 346.943 171.357C346.944 171.357 346.944 171.357 346.944 171.357C346.944 171.357 346.944 171.357 346.66 174.344Z\"\n            />\n          </svg>\n        </div>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const features = [\"30-day free trial\", \"Personalized onboarding\", \"Access to all features\"];\n\n  const reviews = [\n    {\n      review: \"This library has made implementing our UI so much easier. It's intuitive and fast!\",\n      rating: 5,\n      user: {\n        name: \"James P.\",\n        position: \"Frontend Developer\",\n        companyName: \"TechLabs\",\n      },\n    },\n    {\n      review:\n        \"I was able to reduce development time by 40% thanks to the prebuilt components. Highly recommend!\",\n      rating: 4,\n      user: {\n        name: \"Sarah T.\",\n        position: \"UI/UX Designer\",\n        companyName: \"Design Studio\",\n      },\n    },\n    {\n      review:\n        \"Great library, but I think the documentation could use more examples for advanced use cases.\",\n      rating: 3,\n      user: {\n        name: \"Tom R.\",\n        position: \"Senior Software Engineer\",\n        companyName: \"CodeWorks\",\n      },\n    },\n    {\n      review:\n        \"A perfect tool for quick prototyping. The flexibility and performance are fantastic!\",\n      rating: 5,\n      user: {\n        name: \"Emily K.\",\n        position: \"Product Manager\",\n        companyName: \"Creative Solutions\",\n      },\n    },\n    {\n      review:\n        \"Good library overall. It could benefit from more integrations with other popular frameworks.\",\n      rating: 4,\n      user: {\n        name: \"Michael B.\",\n        position: \"Full Stack Developer\",\n        companyName: \"Innovative Tech\",\n      },\n    },\n  ];\n</script>\n","category":"CTA","description":"Review carousel CTA with Swiper. Features: Testimonial slider, decorative SVG, feature list, swiper carousel","path":"CTA/BlockCTA4.vue","components":["button","container"]},{"name":"CTA 5","fileName":"BlockCTA5.vue","file":"<template>\n  <!-- \n    App download CTA with mockup\n    Features: Mobile app showcase, platform buttons, phone mockup, animations\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <UiContainer\n      class=\"relative flex flex-col items-center justify-between gap-y-12 py-16 lg:h-[720px] lg:flex-row lg:pt-24\"\n    >\n      <Motion :variants=\"childVariant\" class=\"flex h-full items-center justify-center\">\n        <div>\n          <h3 class=\"text-center text-3xl font-semibold lg:text-left lg:text-5xl\">\n            Growth performance tracking made easy\n          </h3>\n          <p class=\"text-muted-foreground my-5 text-center text-lg md:text-xl lg:my-8 lg:text-left\">\n            Start your 30-day free trial today.\n          </p>\n          <div class=\"grid gap-2 md:flex md:justify-center lg:justify-start\">\n            <UiButton variant=\"outline\" class=\"h-11 transition-transform hover:scale-101\">\n              <Icon name=\"mdi:apple\" class=\"h-6 w-6\" />\n              <span>Download for iOS</span>\n            </UiButton>\n            <UiButton variant=\"outline\" class=\"h-11 transition-transform hover:scale-101\">\n              <Icon name=\"ion:logo-google-playstore\" class=\"h-6 w-6\" />\n              <span>Download for Android</span>\n            </UiButton>\n          </div>\n        </div>\n      </Motion>\n\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, y: 30 },\n          animate: {\n            opacity: 1,\n            y: 0,\n            transition: {\n              type: 'spring',\n              stiffness: 200,\n              damping: 25,\n            },\n          },\n        }\"\n        class=\"mx-auto h-[360px] w-full object-cover object-top sm:w-[400px] lg:h-[640px] lg:w-full lg:object-contain\"\n      >\n        <img\n          src=\"/phone-mockup.png\"\n          alt=\"Mobile phone mockup\"\n          class=\"h-full w-full object-contain transition-transform duration-500 hover:scale-105\"\n        />\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n","category":"CTA","description":"App download CTA with mockup. Features: Mobile app showcase, platform buttons, phone mockup, animations","path":"CTA/BlockCTA5.vue","components":["button","container"]},{"name":"CTA 6","fileName":"BlockCTA6.vue","file":"<template>\n  <!-- \n    Gradient background CTA with stats\n    Features: Full-width gradient, statistics badges, animated blobs\n  -->\n  <div\n    class=\"from-primary/10 via-background to-primary/5 relative overflow-hidden bg-linear-to-br py-20\"\n  >\n    <!-- Animated background blobs -->\n    <div class=\"absolute inset-0 overflow-hidden\">\n      <Motion\n        :variants=\"{\n          initial: { scale: 0.8, opacity: 0.3 },\n          animate: {\n            scale: [0.8, 1, 0.8],\n            opacity: [0.3, 0.5, 0.3],\n            transition: {\n              duration: 8,\n              repeat: Infinity,\n              ease: 'easeInOut',\n            },\n          },\n        }\"\n        initial=\"initial\"\n        animate=\"animate\"\n        class=\"bg-primary/20 absolute -top-20 -right-20 h-96 w-96 rounded-full blur-3xl\"\n      />\n      <Motion\n        :variants=\"{\n          initial: { scale: 0.8, opacity: 0.3 },\n          animate: {\n            scale: [0.8, 1.2, 0.8],\n            opacity: [0.3, 0.4, 0.3],\n            transition: {\n              duration: 10,\n              repeat: Infinity,\n              ease: 'easeInOut',\n              delay: 2,\n            },\n          },\n        }\"\n        initial=\"initial\"\n        animate=\"animate\"\n        class=\"bg-primary/15 absolute -bottom-32 -left-32 h-96 w-96 rounded-full blur-3xl\"\n      />\n    </div>\n\n    <Motion\n      initial=\"initial\"\n      while-in-view=\"animate\"\n      :in-view-options=\"{ once: true }\"\n      as-child\n      :variants=\"{\n        initial: { opacity: 0 },\n        animate: {\n          opacity: 1,\n          transition: {\n            when: 'beforeChildren',\n            delayChildren: stagger(0.1),\n          },\n        },\n      }\"\n    >\n      <UiContainer class=\"relative z-10 text-center\">\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mb-4 text-4xl font-bold lg:mb-6 lg:text-5xl\"\n        >\n          Ready to transform your business?\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto mb-10 max-w-[700px] text-lg lg:text-xl\"\n        >\n          Join thousands of companies already using {{ COMPANY_NAME }} to accelerate growth.\n        </Motion>\n\n        <Motion\n          :variants=\"childVariant\"\n          class=\"mb-12 flex flex-wrap items-center justify-center gap-8\"\n        >\n          <div v-for=\"stat in stats\" :key=\"stat.label\" class=\"text-center\">\n            <div class=\"text-primary text-3xl font-bold lg:text-4xl\">{{ stat.value }}</div>\n            <div class=\"text-muted-foreground mt-1 text-sm\">{{ stat.label }}</div>\n          </div>\n        </Motion>\n\n        <Motion :variants=\"childVariant\" class=\"flex flex-col justify-center gap-3 md:flex-row\">\n          <UiButton size=\"lg\" class=\"w-full md:w-auto\">\n            Start free trial\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n          <UiButton size=\"lg\" variant=\"outline\" class=\"w-full md:w-auto\"> Schedule demo </UiButton>\n        </Motion>\n      </UiContainer>\n    </Motion>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const stats = [\n    { value: \"50K+\", label: \"Active users\" },\n    { value: \"99.9%\", label: \"Uptime\" },\n    { value: \"4.9/5\", label: \"User rating\" },\n    { value: \"24/7\", label: \"Support\" },\n  ];\n</script>\n","category":"CTA","description":"Gradient background CTA with stats. Features: Full-width gradient, statistics badges, animated blobs","path":"CTA/BlockCTA6.vue","components":["button","container"]},{"name":"CTA 7","fileName":"BlockCTA7.vue","file":"<template>\n  <!-- \n    Newsletter signup CTA\n    Features: Email input with inline button, badge, animated entrance\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 text-center lg:py-24\">\n      <Motion as-child :variants=\"childVariant\">\n        <UiBadge variant=\"outline\" class=\"mb-4\">Newsletter</UiBadge>\n      </Motion>\n      <Motion\n        as=\"h3\"\n        :variants=\"childVariant\"\n        class=\"mb-4 text-3xl font-semibold md:mb-5 md:text-4xl\"\n      >\n        Stay up to date\n      </Motion>\n      <Motion\n        as=\"p\"\n        :variants=\"childVariant\"\n        class=\"text-muted-foreground mx-auto mb-8 max-w-[600px] text-lg md:text-xl\"\n      >\n        Subscribe to our newsletter to get the latest news and updates.\n      </Motion>\n      <Motion :variants=\"childVariant\" class=\"mx-auto max-w-[500px]\">\n        <form class=\"flex flex-col gap-3 md:flex-row\" @submit.prevent=\"handleSubmit\">\n          <UiInput\n            v-model=\"email\"\n            type=\"email\"\n            placeholder=\"Enter your email\"\n            required\n            class=\"flex-1\"\n          />\n          <UiButton type=\"submit\" class=\"md:w-auto\">\n            Subscribe\n            <Icon name=\"lucide:send\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </form>\n        <p class=\"text-muted-foreground mt-3 text-sm\">\n          We care about your data. Read our\n          <a href=\"#\" class=\"hover:text-primary underline\">Privacy Policy</a>.\n        </p>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n  import { ref } from \"vue\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const email = ref(\"\");\n\n  const handleSubmit = () => {\n    useSonner.success(\"Subscribed!\", {\n      description: \"You've been added to our newsletter.\",\n    });\n    email.value = \"\";\n  };\n</script>\n","category":"CTA","description":"Newsletter signup CTA. Features: Email input with inline button, badge, animated entrance","path":"CTA/BlockCTA7.vue","components":["badge","button","container","input"]},{"name":"CTA 8","fileName":"BlockCTA8.vue","file":"<template>\n  <!-- \n    Card-based CTA with features\n    Features: Centered card design, feature grid, icon badges, shadow effects\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion as-child :variants=\"childVariant\">\n        <UiCard class=\"mx-auto max-w-[900px] p-8 shadow-xl lg:p-12\">\n          <div class=\"text-center\">\n            <h3 class=\"mb-4 text-3xl font-semibold lg:mb-6 lg:text-4xl\">\n              Everything you need to succeed\n            </h3>\n            <p class=\"text-muted-foreground mx-auto mb-10 max-w-[600px] text-lg lg:text-xl\">\n              All the tools and features you need in one powerful platform.\n            </p>\n          </div>\n\n          <div class=\"mb-10 grid gap-6 md:grid-cols-3\">\n            <Motion\n              v-for=\"feature in features\"\n              :key=\"feature.title\"\n              :variants=\"childVariant\"\n              class=\"group text-center\"\n            >\n              <div\n                class=\"bg-primary/10 group-hover:bg-primary/20 mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full transition-colors\"\n              >\n                <Icon :name=\"feature.icon\" class=\"text-primary h-6 w-6\" />\n              </div>\n              <h4 class=\"mb-2 font-semibold\">{{ feature.title }}</h4>\n              <p class=\"text-muted-foreground text-sm\">{{ feature.description }}</p>\n            </Motion>\n          </div>\n\n          <div class=\"flex flex-col justify-center gap-3 md:flex-row\">\n            <UiButton size=\"lg\" class=\"w-full md:w-auto\">\n              Get started free\n              <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n            </UiButton>\n            <UiButton size=\"lg\" variant=\"outline\" class=\"w-full md:w-auto\"> View pricing </UiButton>\n          </div>\n        </UiCard>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const features = [\n    {\n      title: \"Easy Setup\",\n      description: \"Get started in minutes with our simple onboarding\",\n      icon: \"lucide:zap\",\n    },\n    {\n      title: \"Secure\",\n      description: \"Enterprise-grade security for your peace of mind\",\n      icon: \"lucide:shield-check\",\n    },\n    {\n      title: \"24/7 Support\",\n      description: \"Our team is here to help whenever you need\",\n      icon: \"lucide:headphones\",\n    },\n  ];\n</script>\n","category":"CTA","description":"Card-based CTA with features. Features: Centered card design, feature grid, icon badges, shadow effects","path":"CTA/BlockCTA8.vue","components":["button","card","container"]},{"name":"CTA 9","fileName":"BlockCTA9.vue","file":"<template>\n  <!-- \n    Testimonial slider CTA with Swiper\n    Features: Customer quotes carousel, avatar images, auto-play, rating stars\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <div class=\"text-center\">\n        <Motion\n          as=\"h3\"\n          :variants=\"childVariant\"\n          class=\"mb-4 text-3xl font-semibold md:mb-5 md:text-4xl\"\n        >\n          Loved by teams worldwide\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto mb-12 max-w-[700px] text-lg md:text-xl\"\n        >\n          See what our customers have to say about their experience.\n        </Motion>\n      </div>\n\n      <Motion :variants=\"childVariant\" as-child>\n        <div class=\"mx-auto max-w-[800px]\">\n          <swiper-container\n            :autoplay=\"{ delay: 5000 }\"\n            :speed=\"600\"\n            loop\n            grab-cursor\n            :slides-per-view=\"1\"\n            :space-between=\"20\"\n            class=\"pb-12\"\n          >\n            <swiper-slide v-for=\"(testimonial, index) in testimonials\" :key=\"index\">\n              <UiCard class=\"p-8 text-center\">\n                <div class=\"mb-6 flex justify-center\">\n                  <template v-for=\"star in 5\" :key=\"star\">\n                    <Icon\n                      name=\"material-symbols:star\"\n                      :class=\"[\n                        'h-5 w-5',\n                        star <= testimonial.rating ? 'text-yellow-500' : 'text-gray-300',\n                      ]\"\n                    />\n                  </template>\n                </div>\n                <p class=\"text-muted-foreground mb-6 text-lg italic lg:text-xl\">\n                  \"{{ testimonial.quote }}\"\n                </p>\n                <div class=\"flex items-center justify-center gap-3\">\n                  <UiAvatar>\n                    <UiAvatarImage :src=\"testimonial.avatar\" :alt=\"testimonial.name\" />\n                    <UiAvatarFallback>{{ testimonial.initials }}</UiAvatarFallback>\n                  </UiAvatar>\n                  <div class=\"text-left\">\n                    <p class=\"font-semibold\">{{ testimonial.name }}</p>\n                    <p class=\"text-muted-foreground text-sm\">\n                      {{ testimonial.role }} at {{ testimonial.company }}\n                    </p>\n                  </div>\n                </div>\n              </UiCard>\n            </swiper-slide>\n          </swiper-container>\n        </div>\n      </Motion>\n\n      <Motion :variants=\"childVariant\" class=\"mt-12 flex justify-center\">\n        <UiButton size=\"lg\">\n          Join {{ stats.users }}+ happy customers\n          <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n        </UiButton>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const stats = {\n    users: \"10,000\",\n  };\n\n  const testimonials = [\n    {\n      quote:\n        \"This platform has completely transformed how we work. The efficiency gains are remarkable.\",\n      name: \"Sarah Johnson\",\n      role: \"CEO\",\n      company: \"TechCorp\",\n      rating: 5,\n      avatar: \"https://i.pravatar.cc/150?img=1\",\n      initials: \"SJ\",\n    },\n    {\n      quote: \"Best investment we've made this year. The ROI was evident within the first month.\",\n      name: \"Michael Chen\",\n      role: \"CTO\",\n      company: \"InnovateLabs\",\n      rating: 5,\n      avatar: \"https://i.pravatar.cc/150?img=13\",\n      initials: \"MC\",\n    },\n    {\n      quote: \"Outstanding support team and amazing product features. Couldn't ask for more.\",\n      name: \"Emily Rodriguez\",\n      role: \"Product Manager\",\n      company: \"StartupHub\",\n      rating: 5,\n      avatar: \"https://i.pravatar.cc/150?img=5\",\n      initials: \"ER\",\n    },\n  ];\n</script>\n","category":"CTA","description":"Testimonial slider CTA with Swiper. Features: Customer quotes carousel, avatar images, auto-play, rating stars","path":"CTA/BlockCTA9.vue","components":["avatar","button","card","container"]},{"name":"Dashboards 1","fileName":"BlockDashboards1.vue","file":"<template>\n  <div\n    class=\"bg-background text-foreground min-h-screen [--color-primary:#8b5cf6] [--primary:#8b5cf6] [--radius:12px] [--ring:#8b5cf6]\"\n  >\n    <!-- Top navigation -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4.5rem] items-center justify-between gap-4\">\n        <div class=\"flex items-center gap-6\">\n          <div class=\"flex items-center gap-3\">\n            <div\n              class=\"border-border/70 bg-muted flex size-10 items-center justify-center rounded-xl border shadow-xs\"\n            >\n              <div\n                class=\"size-5 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <div class=\"flex items-center gap-2 text-lg font-semibold tracking-tight\">\n              <span>UI Thing</span>\n            </div>\n          </div>\n\n          <!-- Mobile nav popover -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton class=\"lg:hidden\" variant=\"ghost\" size=\"icon-sm\">\n                <Icon name=\"lucide:menu\" class=\"size-4\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navigationItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"\n                  item.active\n                    ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                    : 'text-muted-foreground'\n                \"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navigationItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <div class=\"flex items-center gap-2\">\n          <UiButton variant=\"outline\" size=\"sm\" class=\"hidden sm:inline-flex\">\n            <Icon name=\"lucide:sparkles\" class=\"size-4\" />\n            Upgrade now\n          </UiButton>\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                <Icon name=\"lucide:settings-2\" class=\"text-muted-foreground size-4\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"start\" side=\"left\" class=\"w-64\">\n              <UiDropdownMenuLabel>Dashboard settings</UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuCheckboxItem v-model=\"compactMetrics\" title=\"Compact KPI cards\" />\n              <UiDropdownMenuCheckboxItem v-model=\"emailAlerts\" title=\"Email performance alerts\" />\n              <UiDropdownMenuCheckboxItem\n                v-model=\"autoRefresh\"\n                title=\"Auto-refresh every 5 minutes\"\n              />\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"lucide:sliders-horizontal\" title=\"Manage filters\" />\n              <UiDropdownMenuItem icon=\"lucide:users\" title=\"Team permissions\" />\n              <UiDropdownMenuItem icon=\"lucide:keyboard\" title=\"Keyboard shortcuts\" shortcut=\"⌘/\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                <Icon name=\"lucide:bell\" class=\"text-muted-foreground size-4\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"start\" side=\"left\" class=\"w-80\">\n              <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                <span>Notifications</span>\n                <UiBadge variant=\"secondary\" size=\"sm\">3 new</UiBadge>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"lucide:shopping-cart\" title=\"New order from Sienna Hewitt\">\n                <template #shortcut>2m ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem icon=\"lucide:triangle-alert\" title=\"Refund requested for #26672\">\n                <template #shortcut>18m ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem\n                icon=\"lucide:chart-column-big\"\n                title=\"Sales report is ready to review\"\n              >\n                <template #shortcut>1h ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"lucide:badge-check\" title=\"Mark all as read\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger>\n              <UiAvatar\n                :src=\"currentUser.avatar\"\n                :alt=\"currentUser.name\"\n                :fallback=\"currentUser.fallback\"\n              />\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"start\" side=\"left\" class=\"w-52\">\n              <UiDropdownMenuLabel>\n                <div class=\"flex flex-col\">\n                  <p class=\"text-sm font-medium\">{{ currentUser.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">{{ currentUser.email }}</p>\n                </div>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuGroup>\n                <UiDropdownMenuItem icon=\"lucide:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"lucide:settings\" title=\"Settings\" />\n                <UiDropdownMenuItem icon=\"lucide:credit-card\" title=\"Billing\" />\n              </UiDropdownMenuGroup>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem variant=\"destructive\" icon=\"lucide:log-out\" title=\"Sign out\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <UiContainer class=\"space-y-8 py-8 md:space-y-10 md:py-10\">\n      <!-- Welcome header -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.15, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-4 md:flex-row md:items-start md:justify-between\"\n      >\n        <div class=\"flex items-center gap-4\">\n          <UiAvatar\n            :src=\"currentUser.avatar\"\n            :alt=\"currentUser.name\"\n            :fallback=\"currentUser.fallback\"\n            class=\"size-14\"\n          />\n          <div>\n            <h1 class=\"text-3xl font-semibold tracking-tight md:text-[2rem]\">\n              Welcome back, {{ currentUser.firstName }}!\n            </h1>\n\n            <p class=\"text-muted-foreground mt-1 text-lg\">\n              <ClientOnly>\n                {{ useDateFormat(new Date(), \"DD MMMM, YYYY\").value }}\n              </ClientOnly>\n            </p>\n          </div>\n        </div>\n        <div class=\"w-full md:w-[380px]\">\n          <UiVeeInput icon=\"lucide:search\" placeholder=\"Search dashboard...\" />\n        </div>\n      </Motion>\n\n      <!-- Range and date filters -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.25, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-4 md:flex-row md:items-center md:justify-between\"\n      >\n        <UiTabs v-model=\"activeRange\">\n          <UiTabsList class=\"border-border/70 bg-muted/30 border\">\n            <template v-for=\"item in ranges\" :key=\"item\">\n              <UiTabsTrigger :value=\"item\">{{ item }}</UiTabsTrigger>\n            </template>\n          </UiTabsList>\n        </UiTabs>\n        <UiDatepicker v-model.range=\"dateRange\" :columns=\"2\">\n          <template #default=\"{ togglePopover }\">\n            <UiButton\n              variant=\"outline\"\n              class=\"justify-start self-start text-left xl:self-auto\"\n              @click=\"togglePopover\"\n            >\n              <Icon name=\"lucide:calendar-days\" class=\"size-4\" />\n              {{ useDateFormat(dateRange.start, \"MMM DD, YYYY\").value }} -\n              {{ useDateFormat(dateRange.end, \"MMM DD, YYYY\").value }}\n            </UiButton>\n          </template>\n        </UiDatepicker>\n      </Motion>\n\n      <UiGradientDivider />\n\n      <!-- KPI cards -->\n      <Motion\n        as=\"section\"\n        :variants=\"kpiContainerVariant\"\n        initial=\"initial\"\n        animate=\"animate\"\n        class=\"grid gap-5 lg:grid-cols-3\"\n      >\n        <Motion\n          v-for=\"metric in metrics\"\n          :key=\"metric.label\"\n          as-child\n          :variants=\"kpiCardVariant\"\n          class=\"bg-card text-card-foreground relative overflow-hidden rounded-xl border shadow-sm\"\n        >\n          <UiCard>\n            <div\n              :class=\"[\n                'absolute inset-y-0 left-0 w-1',\n                metric.trend === 'up'\n                  ? 'bg-primary'\n                  : metric.trend === 'down'\n                    ? 'bg-red-500'\n                    : 'bg-primary',\n              ]\"\n            />\n            <UiCardContent class=\"pl-8\">\n              <div class=\"flex items-start justify-between\">\n                <div class=\"flex-1 space-y-1\">\n                  <p class=\"text-muted-foreground text-sm font-medium\">{{ metric.label }}</p>\n                  <div class=\"flex items-baseline gap-2\">\n                    <h3 class=\"text-2xl font-bold tracking-tight\">{{ metric.value }}</h3>\n                    <span\n                      :class=\"[\n                        'text-sm font-medium',\n                        metric.trend === 'up'\n                          ? 'text-green-600 dark:text-green-500'\n                          : metric.trend === 'down'\n                            ? 'text-red-600 dark:text-red-500'\n                            : 'text-muted-foreground',\n                      ]\"\n                    >\n                      {{ metric.change }}\n                    </span>\n                  </div>\n                  <p class=\"text-muted-foreground text-xs\">{{ metric.description }}</p>\n                </div>\n                <Icon :name=\"metric.icon\" class=\"text-muted-foreground/50 size-8\" />\n              </div>\n              <div class=\"mt-4 flex items-center gap-4 text-xs\">\n                <div class=\"flex items-center gap-1\">\n                  <div class=\"bg-primary size-2 rounded-full\" />\n                  <span class=\"text-muted-foreground\">Current: {{ metric.current }}</span>\n                </div>\n                <div class=\"flex items-center gap-1\">\n                  <div class=\"bg-muted size-2 rounded-full\" />\n                  <span class=\"text-muted-foreground\">Previous: {{ metric.previous }}</span>\n                </div>\n              </div>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n      </Motion>\n\n      <!-- Sales performance chart -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.45, ease: 'easeOut' }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <UiCardHeader class=\"border-border/60 border-b pt-4 pb-3!\">\n            <UiCardTitle class=\"text-base font-semibold\">Sales</UiCardTitle>\n            <UiCardDescription>\n              Total revenue generated in the selected date range, compared with the previous period.\n            </UiCardDescription>\n          </UiCardHeader>\n\n          <UiCardContent class=\"space-y-8 py-6\">\n            <div class=\"flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between\">\n              <div>\n                <p class=\"text-3xl font-semibold tracking-tight lg:text-5xl\">$8,422.60</p>\n                <p class=\"mt-3 flex items-center gap-2 lg:text-lg\">\n                  <span class=\"inline-flex items-center gap-1 font-medium text-emerald-600\">\n                    <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n                    3.2%\n                  </span>\n                  <span class=\"text-muted-foreground\">vs last 30 days</span>\n                </p>\n              </div>\n\n              <UiTabs default-value=\"30 days\">\n                <UiTabsList class=\"border-border/70 bg-muted/30 border\">\n                  <UiTabsTrigger v-for=\"range in chartRanges\" :key=\"range\" :value=\"range\">\n                    {{ range }}\n                  </UiTabsTrigger>\n                </UiTabsList>\n              </UiTabs>\n            </div>\n\n            <div class=\"bg-muted/20 h-[360px] overflow-hidden rounded-2xl p-2\">\n              <UiApexchart\n                type=\"area\"\n                height=\"100%\"\n                :series=\"salesChartSeries\"\n                :options=\"salesChartOptions\"\n              />\n            </div>\n          </UiCardContent>\n        </UiCard>\n      </Motion>\n\n      <!-- Orders table -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <UiCardHeader class=\"border-border/60 border-b py-4 pb-3!\">\n            <UiCardTitle class=\"text-base font-semibold\">Orders</UiCardTitle>\n            <UiCardDescription>\n              Recent orders placed in the selected date range, compared with the previous period.\n            </UiCardDescription>\n          </UiCardHeader>\n\n          <UiCardContent class=\"space-y-6 py-6\">\n            <!-- Orders summary and status tabs -->\n            <div class=\"flex flex-col gap-5 lg:flex-row lg:items-start lg:justify-between\">\n              <div>\n                <p class=\"text-3xl font-semibold tracking-tight lg:text-5xl\">\n                  {{ filteredOrders.length }}\n                </p>\n                <p class=\"mt-3 flex items-center gap-2 lg:text-lg\">\n                  <span class=\"inline-flex items-center gap-1 font-medium text-emerald-600\">\n                    <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n                    8.6%\n                  </span>\n                  <span class=\"text-muted-foreground\">vs last 30 days</span>\n                </p>\n              </div>\n\n              <UiTabs v-model=\"activeOrderTab\">\n                <UiTabsList class=\"border-border/70 bg-muted/30 border\">\n                  <UiTabsTrigger v-for=\"tab in orderTabs\" :key=\"tab\" :value=\"tab\">\n                    {{ tab }}\n                  </UiTabsTrigger>\n                </UiTabsList>\n              </UiTabs>\n            </div>\n          </UiCardContent>\n\n          <!-- Orders data grid -->\n          <div class=\"border-border/60 border-t\">\n            <UiTanStackTable\n              :data=\"filteredOrders\"\n              :columns=\"orderColumns\"\n              :show-rows-per-page=\"false\"\n              :show-page-info=\"false\"\n              :show-pagination=\"false\"\n              :show-selected-count=\"false\"\n              :show-footer=\"true\"\n              :loading=\"ordersPending\"\n              :table-options=\"{ enableRowSelection: true }\"\n            >\n              <template #select-header=\"{ table }\">\n                <UiCheckbox\n                  aria-label=\"Select all orders\"\n                  :model-value=\"table.getIsAllPageRowsSelected()\"\n                  @update:model-value=\"table.toggleAllPageRowsSelected(!!$event)\"\n                />\n              </template>\n\n              <template #select-cell=\"{ row }\">\n                <UiCheckbox\n                  :aria-label=\"`Select order ${row.original.id}`\"\n                  :model-value=\"row.getIsSelected()\"\n                  @update:model-value=\"row.toggleSelected(!!$event)\"\n                />\n              </template>\n\n              <template #status-cell=\"{ row }\">\n                <UiBadge\n                  variant=\"outline\"\n                  size=\"sm\"\n                  class=\"h-7 gap-1 rounded-full px-2.5 text-[11px]\"\n                >\n                  <span\n                    :class=\"[\n                      'size-1.5 rounded-full',\n                      row.original.status === 'Paid' ? 'bg-emerald-500' : 'bg-amber-500',\n                    ]\"\n                  />\n                  {{ row.original.status }}\n                </UiBadge>\n              </template>\n\n              <template #rating-cell=\"{ row }\">\n                <UiRating\n                  :model-value=\"row.original.rating\"\n                  size=\"sm\"\n                  filled-icon-class-name=\"fill-amber-400 text-amber-400\"\n                />\n              </template>\n\n              <template #customer-cell=\"{ row }\">\n                <UiAvatarLabelGroup\n                  :src=\"row.original.avatar\"\n                  :alt=\"row.original.customer\"\n                  :fallback=\"row.original.initials\"\n                  :title=\"row.original.customer\"\n                  :subtitle=\"row.original.email\"\n                  size=\"sm\"\n                />\n              </template>\n\n              <template #actions-cell=\"{ row }\">\n                <UiDropdownMenu>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                      <Icon name=\"lucide:ellipsis-vertical\" class=\"text-muted-foreground size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                  <UiDropdownMenuContent align=\"end\" class=\"min-w-44\">\n                    <UiDropdownMenuItem\n                      icon=\"lucide:eye\"\n                      title=\"View order\"\n                      @select=\"openOrderSheet(row.original)\"\n                    />\n                    <UiDropdownMenuItem icon=\"lucide:receipt-text\" title=\"Download invoice\" />\n                    <UiDropdownMenuSeparator />\n                    <UiDropdownMenuItem\n                      icon=\"lucide:rotate-ccw\"\n                      title=\"Refund order\"\n                      :disabled=\"row.original.status !== 'Paid'\"\n                      @select=\"openRefundDialog(row.original)\"\n                    />\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </template>\n\n              <template #footer=\"{ table }\">\n                <div\n                  class=\"border-border/60 text-muted-foreground flex w-full flex-col gap-4 border-t px-6 py-4 text-sm font-medium sm:flex-row sm:items-center sm:justify-between\"\n                >\n                  <p>\n                    Page {{ table.atoms.pagination.get().pageIndex + 1 }} of\n                    {{ table.getPageCount() }}\n                  </p>\n                  <div class=\"flex items-center gap-3\">\n                    <UiButton\n                      variant=\"outline\"\n                      size=\"sm\"\n                      :disabled=\"!table.getCanPreviousPage()\"\n                      @click=\"table.previousPage()\"\n                    >\n                      Previous\n                    </UiButton>\n                    <UiButton\n                      variant=\"outline\"\n                      size=\"sm\"\n                      :disabled=\"!table.getCanNextPage()\"\n                      @click=\"table.nextPage()\"\n                    >\n                      Next\n                    </UiButton>\n                  </div>\n                </div>\n              </template>\n            </UiTanStackTable>\n          </div>\n        </UiCard>\n      </Motion>\n\n      <!-- Refund confirmation dialog -->\n      <UiAlertDialog v-model:open=\"showRefundDialog\">\n        <UiAlertDialogContent class=\"max-w-md\">\n          <UiAlertDialogHeader>\n            <UiAlertDialogTitle>Refund this order?</UiAlertDialogTitle>\n            <UiAlertDialogDescription>\n              <template v-if=\"refundOrder\">\n                This will start a refund for order #{{ refundOrder.id }} placed by\n                {{ refundOrder.customer }}. Confirm to continue.\n              </template>\n              <template v-else>Confirm to continue with the selected refund request.</template>\n            </UiAlertDialogDescription>\n          </UiAlertDialogHeader>\n          <UiAlertDialogFooter>\n            <UiAlertDialogCancel>Keep order</UiAlertDialogCancel>\n            <UiAlertDialogAction variant=\"destructive\" @click=\"confirmRefund\">\n              Confirm refund\n            </UiAlertDialogAction>\n          </UiAlertDialogFooter>\n        </UiAlertDialogContent>\n      </UiAlertDialog>\n\n      <!-- Order details sheet -->\n      <UiSheet v-model:open=\"showOrderSheet\">\n        <UiSheetContent side=\"right\" translucent variant=\"floating\" class=\"w-[90%] sm:max-w-xl\">\n          <UiSheetHeader>\n            <UiSheetTitle>Order details</UiSheetTitle>\n            <UiSheetDescription>\n              Review the selected order, customer information, and fulfillment summary.\n            </UiSheetDescription>\n          </UiSheetHeader>\n\n          <div v-if=\"selectedOrder\" class=\"space-y-6 overflow-y-auto p-6\">\n            <UiCard class=\"border-border/70 shadow-xs\">\n              <UiCardContent class=\"space-y-5\">\n                <div class=\"flex items-start justify-between gap-4\">\n                  <div>\n                    <p class=\"text-muted-foreground text-sm font-medium\">Order number</p>\n                    <p class=\"mt-1 text-2xl font-semibold tracking-tight\">\n                      #{{ selectedOrder.id }}\n                    </p>\n                  </div>\n                  <UiBadge\n                    variant=\"outline\"\n                    size=\"sm\"\n                    class=\"h-7 gap-1 rounded-full px-2.5 text-[11px]\"\n                  >\n                    <span\n                      :class=\"[\n                        'size-1.5 rounded-full',\n                        selectedOrder.status === 'Paid' ? 'bg-emerald-500' : 'bg-amber-500',\n                      ]\"\n                    />\n                    {{ selectedOrder.status }}\n                  </UiBadge>\n                </div>\n\n                <UiAvatarLabelGroup\n                  :src=\"selectedOrder.avatar\"\n                  :alt=\"selectedOrder.customer\"\n                  :fallback=\"selectedOrder.initials\"\n                  :title=\"selectedOrder.customer\"\n                  :subtitle=\"selectedOrder.email\"\n                />\n\n                <div class=\"grid gap-4 sm:grid-cols-2\">\n                  <div class=\"border-border/70 bg-muted/20 rounded-xl border p-4\">\n                    <p class=\"text-muted-foreground text-xs font-medium tracking-wide uppercase\">\n                      Amount\n                    </p>\n                    <p class=\"mt-2 text-xl font-semibold\">{{ selectedOrder.amount }}</p>\n                  </div>\n                  <div class=\"border-border/70 bg-muted/20 rounded-xl border p-4\">\n                    <p class=\"text-muted-foreground text-xs font-medium tracking-wide uppercase\">\n                      Rating\n                    </p>\n                    <UiRating\n                      :model-value=\"selectedOrder.rating\"\n                      class=\"mt-2\"\n                      filled-icon-class-name=\"fill-amber-400 text-amber-400\"\n                    />\n                  </div>\n                </div>\n              </UiCardContent>\n            </UiCard>\n\n            <UiCard class=\"border-border/70 shadow-xs\">\n              <UiCardContent class=\"grid gap-4 sm:grid-cols-2\">\n                <div class=\"space-y-1.5\">\n                  <p class=\"text-muted-foreground text-sm font-medium\">Placed on</p>\n                  <p class=\"font-medium\">{{ selectedOrder.date }}</p>\n                </div>\n                <div class=\"space-y-1.5\">\n                  <p class=\"text-muted-foreground text-sm font-medium\">Payment method</p>\n                  <p class=\"font-medium\">Visa ending in {{ selectedOrder.id.slice(-4) }}</p>\n                </div>\n                <div class=\"space-y-1.5\">\n                  <p class=\"text-muted-foreground text-sm font-medium\">Fulfillment</p>\n                  <p class=\"font-medium\">\n                    {{ selectedOrder.status === \"Paid\" ? \"Ready to ship\" : \"Refund pending\" }}\n                  </p>\n                </div>\n                <div class=\"space-y-1.5\">\n                  <p class=\"text-muted-foreground text-sm font-medium\">Source</p>\n                  <p class=\"font-medium\">Online store</p>\n                </div>\n              </UiCardContent>\n            </UiCard>\n\n            <div class=\"border-border/70 bg-muted/20 rounded-2xl border border-dashed p-4\">\n              <p class=\"text-sm font-medium\">Internal note</p>\n              <p class=\"text-muted-foreground mt-2 text-sm leading-6\">\n                Customer activity and payment details look healthy. Consider following up with a\n                shipping update if the order remains in this state for more than 24 hours.\n              </p>\n            </div>\n          </div>\n          <UiSheetX />\n        </UiSheetContent>\n      </UiSheet>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { faker } from \"@faker-js/faker\";\n  import type { ColumnDef } from \"@tanstack/vue-table\";\n  import type { ApexOptions } from \"apexcharts\";\n  import dayjs from \"dayjs\";\n  import { Motion } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  import type { TanStackTableFeatures } from \"~/components/Ui/TanStackTable.vue\";\n\n  const kpiContainerVariant: MotionProps[\"variants\"] = {\n    initial: {},\n    animate: { transition: { staggerChildren: 0.08, delayChildren: 0.35 } },\n  };\n\n  const kpiCardVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 16 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  type Metric = {\n    label: string;\n    value: string;\n    change: string;\n    trend: \"up\" | \"down\" | \"neutral\";\n    description: string;\n    icon: string;\n    current: string;\n    previous: string;\n  };\n\n  type Order = {\n    id: string;\n    date: string;\n    status: \"Paid\" | \"Refunded\";\n    amount: string;\n    rating: number;\n    customer: string;\n    email: string;\n    initials: string;\n    avatar?: string;\n  };\n\n  const currentUser = {\n    name: \"Behon Baker\",\n    firstName: \"Behon\",\n    email: \"behon.baker@yahoo.com\",\n    avatar: \"https://behonbaker.com/icon.png\",\n    fallback: \"BB\",\n  };\n\n  const navigationItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  const ranges = [\"Custom\", \"12 months\", \"30 days\", \"7 days\", \"24 hours\"];\n  const activeRange = ref(\"12 months\");\n  const compactMetrics = ref(true);\n  const emailAlerts = ref(true);\n  const autoRefresh = ref(false);\n  const dateRange = useState(() => ({\n    start: dayjs().toDate(),\n    end: dayjs().add(7, \"day\").toDate(),\n  }));\n\n  const metrics: Metric[] = [\n    {\n      label: \"Sales\",\n      value: \"$2,114.40\",\n      change: \"+2.4%\",\n      trend: \"up\",\n      description: \"Based on the last 30 days of completed purchases\",\n      icon: \"lucide:badge-dollar-sign\",\n      current: \"$2,114.40\",\n      previous: \"$2,064.80\",\n    },\n    {\n      label: \"Orders\",\n      value: \"24\",\n      change: \"+8.6%\",\n      trend: \"up\",\n      description: \"Confirmed orders compared with the previous period\",\n      icon: \"lucide:shopping-bag\",\n      current: \"24\",\n      previous: \"22\",\n    },\n    {\n      label: \"Average order value\",\n      value: \"$88.10\",\n      change: \"+6.0%\",\n      trend: \"up\",\n      description: \"Higher basket size driven by bundled product sales\",\n      icon: \"lucide:chart-no-axes-column-increasing\",\n      current: \"$88.10\",\n      previous: \"$83.12\",\n    },\n  ];\n\n  const chartRanges = [\"12 months\", \"30 days\", \"7 days\", \"24 hours\"];\n  const chartLabels = [\n    \"2\",\n    \"4\",\n    \"6\",\n    \"8\",\n    \"10\",\n    \"12\",\n    \"14\",\n    \"16\",\n    \"18\",\n    \"20\",\n    \"22\",\n    \"24\",\n    \"26\",\n    \"28\",\n    \"30\",\n  ];\n\n  const salesChartSeries = ref<ApexOptions[\"series\"]>([\n    {\n      name: \"Sales\",\n      data: [18, 21, 30, 34, 28, 31, 29, 24, 34, 32, 38, 41, 47, 45, 54],\n    },\n    {\n      name: \"Orders\",\n      data: [12, 15, 19, 23, 20, 18, 21, 17, 26, 24, 31, 29, 36, 33, 39],\n    },\n    {\n      name: \"Revenue target\",\n      data: [8, 10, 12, 16, 14, 13, 15, 14, 18, 19, 22, 24, 27, 28, 30],\n    },\n  ]);\n\n  const salesChartOptions = ref<ApexOptions>({\n    chart: {\n      type: \"area\",\n      toolbar: { show: false },\n      zoom: { enabled: false },\n      parentHeightOffset: 0,\n    },\n    colors: [\"#8b5cf6\", \"#06b6d4\", \"#22c55e\"],\n    legend: {\n      show: true,\n      position: \"top\",\n      horizontalAlign: \"right\",\n      fontWeight: 500,\n      labels: {\n        colors: \"var(--color-muted-foreground)\",\n      },\n    },\n    dataLabels: {\n      enabled: false,\n    },\n    fill: {\n      type: \"gradient\",\n      gradient: {\n        shadeIntensity: 1,\n        inverseColors: false,\n        opacityFrom: 0.28,\n        opacityTo: 0.03,\n        stops: [0, 90, 100],\n      },\n    },\n    stroke: {\n      curve: \"smooth\",\n      width: [3, 3, 2.5],\n    },\n    markers: {\n      size: 0,\n      hover: { size: 5 },\n    },\n    tooltip: {\n      shared: true,\n      intersect: false,\n    },\n    grid: {\n      borderColor: \"color-mix(in oklab, var(--color-border) 70%, transparent)\",\n      strokeDashArray: 4,\n      padding: {\n        left: 12,\n        right: 18,\n        top: 10,\n        bottom: 0,\n      },\n    },\n    xaxis: {\n      categories: chartLabels,\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n      tooltip: { enabled: false },\n      labels: {\n        style: {\n          colors: \"var(--color-muted-foreground)\",\n          fontSize: \"12px\",\n          fontFamily: \"inherit\",\n        },\n      },\n    },\n    yaxis: {\n      min: 0,\n      max: 60,\n      tickAmount: 4,\n      labels: {\n        show: false,\n      },\n    },\n  });\n\n  const orderTabs = [\"All orders\", \"Paid\", \"Refunded\"];\n  const activeOrderTab = ref(\"All orders\");\n  const showOrderSheet = ref(false);\n  const selectedOrder = ref<Order | null>(null);\n  const showRefundDialog = ref(false);\n  const refundOrder = ref<Order | null>(null);\n\n  const orderColumns: ColumnDef<TanStackTableFeatures, Order>[] = [\n    {\n      id: \"select\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: {\n        class: {\n          th: \"w-12\",\n          td: \"w-12\",\n        },\n      },\n    },\n    {\n      accessorKey: \"id\",\n      header: \"Order\",\n      cell: ({ row }) => `#${row.original.id}`,\n    },\n    {\n      accessorKey: \"date\",\n      header: \"Date\",\n    },\n    {\n      id: \"status\",\n      accessorKey: \"status\",\n      header: \"Status\",\n      enableSorting: false,\n    },\n    {\n      accessorKey: \"amount\",\n      header: \"Amount\",\n    },\n    {\n      id: \"rating\",\n      accessorKey: \"rating\",\n      header: \"Rating\",\n      enableSorting: false,\n    },\n    {\n      id: \"customer\",\n      accessorKey: \"customer\",\n      header: \"Customer\",\n      enableSorting: false,\n    },\n    {\n      id: \"actions\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: {\n        class: {\n          th: \"w-12\",\n          td: \"w-12 text-right\",\n        },\n      },\n    },\n  ];\n\n  const currencyFormatter = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n  });\n\n  const createOrder = (): Order => {\n    const firstName = faker.person.firstName();\n    const lastName = faker.person.lastName();\n\n    return {\n      id: faker.string.numeric(5),\n      date: dayjs(faker.date.between({ from: \"2025-01-01\", to: \"2025-01-31\" })).format(\n        \"MMM DD, YYYY\"\n      ),\n      status: faker.helpers.weightedArrayElement([\n        { value: \"Paid\" as const, weight: 8 },\n        { value: \"Refunded\" as const, weight: 2 },\n      ]),\n      amount: currencyFormatter.format(\n        faker.number.float({ min: 48, max: 240, fractionDigits: 2 })\n      ),\n      rating: faker.number.int({ min: 3, max: 5 }),\n      customer: `${firstName} ${lastName}`,\n      email: faker.internet.email({ firstName, lastName }).toLowerCase(),\n      initials: `${firstName[0]}${lastName[0]}`,\n      avatar: faker.helpers.maybe(() => faker.image.avatar(), { probability: 0.85 }),\n    };\n  };\n\n  const { data: ordersData, pending: ordersPending } = await useAsyncData<Order[]>(\n    \"block-dashboard1-orders\",\n    async () => Array.from({ length: 500 }, createOrder),\n    {\n      default: () => [],\n    }\n  );\n\n  const orders = computed(() => ordersData.value ?? []);\n\n  const filteredOrders = computed(() => {\n    if (activeOrderTab.value === \"All orders\") {\n      return orders.value;\n    }\n\n    return orders.value.filter((order) => order.status === activeOrderTab.value);\n  });\n\n  const openRefundDialog = (order: Order) => {\n    refundOrder.value = order;\n    showRefundDialog.value = true;\n  };\n\n  const openOrderSheet = (order: Order) => {\n    selectedOrder.value = order;\n    showOrderSheet.value = true;\n  };\n\n  const confirmRefund = () => {\n    if (!refundOrder.value) return;\n\n    useSonner.success(\"Refund started\", {\n      description: `Order #${refundOrder.value.id} for ${refundOrder.value.customer} has been queued for refund.`,\n    });\n\n    showRefundDialog.value = false;\n    refundOrder.value = null;\n  };\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards1.vue","components":["alert-dialog","apexcharts","avatar","avatar-label-group","badge","button","card","checkbox","container","datepicker","dropdown-menu","gradient-divider","popover","rating","sheet","tabs","tanstacktable","vee-input"]},{"name":"Dashboards 10","fileName":"BlockDashboards10.vue","file":"<template>\n  <div class=\"bg-background text-foreground min-h-screen\">\n    <!-- Invite dialog -->\n    <UiDialog v-model:open=\"inviteOpen\" @update:open=\"onInviteDialogClose\">\n      <UiDialogContent class=\"sm:max-w-md\">\n        <UiDialogHeader>\n          <UiDialogTitle>Invite teammates</UiDialogTitle>\n          <UiDialogDescription>\n            Add up to 4 email addresses. Invites will be sent immediately.\n          </UiDialogDescription>\n        </UiDialogHeader>\n\n        <div class=\"space-y-4 py-1\">\n          <!-- Email chip input area -->\n          <div\n            class=\"border-border/70 bg-muted/20 focus-within:border-primary focus-within:ring-primary min-h-[80px] cursor-text rounded-xl border p-3 transition-colors focus-within:ring-1\"\n            @click=\"focusInviteInput\"\n          >\n            <div class=\"flex flex-wrap gap-2\">\n              <!-- Email chips -->\n              <span\n                v-for=\"email in inviteEmails\"\n                :key=\"email\"\n                class=\"border-border/70 bg-background text-foreground flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-medium shadow-xs\"\n              >\n                <span\n                  class=\"from-primary to-primary flex size-4 items-center justify-center rounded-full bg-linear-to-br text-[9px] font-bold text-white\"\n                  >{{ email[0]?.toUpperCase() }}</span\n                >\n                {{ email }}\n                <button\n                  type=\"button\"\n                  class=\"text-muted-foreground hover:text-foreground ml-0.5 rounded-full transition-colors\"\n                  @click.stop=\"removeInviteEmail(email)\"\n                >\n                  <Icon name=\"heroicons:x-mark\" class=\"size-3\" />\n                </button>\n              </span>\n\n              <!-- Input -->\n              <input\n                v-if=\"inviteEmails.length < 4\"\n                ref=\"inviteInputRef\"\n                v-model=\"inviteInputVal\"\n                type=\"email\"\n                placeholder=\"name@company.com\"\n                class=\"text-foreground placeholder:text-muted-foreground min-w-[160px] flex-1 bg-transparent text-sm outline-none\"\n                @keydown.enter.prevent=\"addInviteEmail\"\n                @keydown.tab.prevent=\"addInviteEmail\"\n                @keydown.space.prevent=\"addInviteEmail\"\n                @keydown.backspace=\"onInviteBackspace\"\n                @keydown=\"\n                  (e) => {\n                    if (e.key === ',') {\n                      e.preventDefault();\n                      addInviteEmail();\n                    }\n                  }\n                \"\n                @paste.prevent=\"onInvitePaste\"\n                @blur=\"addInviteEmail\"\n              />\n            </div>\n          </div>\n\n          <!-- Slot counter + validation -->\n          <div class=\"flex items-center justify-between text-xs\">\n            <p v-if=\"inviteError\" class=\"text-destructive\">{{ inviteError }}</p>\n            <p v-else class=\"text-muted-foreground\">\n              Press\n              <kbd class=\"border-border/70 bg-muted rounded border px-1 py-0.5 font-mono\">Enter</kbd\n              >,\n              <kbd class=\"border-border/70 bg-muted rounded border px-1 py-0.5 font-mono\">Tab</kbd>,\n              or\n              <kbd class=\"border-border/70 bg-muted rounded border px-1 py-0.5 font-mono\">,</kbd> to\n              add\n            </p>\n            <p\n              class=\"shrink-0 font-medium tabular-nums\"\n              :class=\"\n                inviteEmails.length >= 4\n                  ? 'text-amber-600 dark:text-amber-400'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ inviteEmails.length }}/4 added\n            </p>\n          </div>\n\n          <!-- Suggested teammates -->\n          <div v-if=\"inviteEmails.length < 4\" class=\"space-y-1.5\">\n            <p class=\"text-muted-foreground text-xs font-medium\">Suggestions</p>\n            <div class=\"space-y-1\">\n              <button\n                v-for=\"s in inviteSuggestions.filter((s) => !inviteEmails.includes(s.email))\"\n                :key=\"s.email\"\n                type=\"button\"\n                class=\"hover:bg-muted/60 flex w-full items-center gap-3 rounded-lg px-2 py-1.5 text-left transition-colors\"\n                @click=\"addSuggestedEmail(s.email)\"\n              >\n                <UiAvatar :src=\"s.avatar\" :alt=\"s.name\" :fallback=\"s.name[0]\" class=\"size-7\" />\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"truncate text-sm font-medium\">{{ s.name }}</p>\n                  <p class=\"text-muted-foreground truncate text-xs\">{{ s.email }}</p>\n                </div>\n                <Icon name=\"heroicons:plus\" class=\"text-muted-foreground size-4 shrink-0\" />\n              </button>\n            </div>\n          </div>\n        </div>\n\n        <UiDialogFooter>\n          <UiButton variant=\"outline\" @click=\"inviteOpen = false\">Cancel</UiButton>\n          <UiButton :disabled=\"inviteEmails.length === 0\" class=\"gap-2\" @click=\"submitInvites\">\n            <Icon name=\"heroicons:paper-airplane\" class=\"size-4\" />\n            Send\n            {{\n              inviteEmails.length > 0\n                ? `${inviteEmails.length} invite${inviteEmails.length > 1 ? \"s\" : \"\"}`\n                : \"invites\"\n            }}\n          </UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- Generate chart dialog -->\n    <UiDialog v-model:open=\"genChartOpen\" @update:open=\"onGenChartClose\">\n      <UiDialogContent class=\"sm:max-w-lg\">\n        <UiDialogHeader>\n          <UiDialogTitle>Generate chart</UiDialogTitle>\n          <UiDialogDescription>\n            Configure the parameters below and we'll build your chart.\n          </UiDialogDescription>\n        </UiDialogHeader>\n\n        <div class=\"space-y-5 py-1\">\n          <!-- Chart name -->\n          <div class=\"space-y-1.5\">\n            <label class=\"text-sm font-medium\">Chart name</label>\n            <input\n              v-model=\"genChartName\"\n              type=\"text\"\n              placeholder=\"e.g. Monthly revenue breakdown\"\n              class=\"border-border/70 bg-muted/20 text-foreground placeholder:text-muted-foreground focus:border-primary focus:ring-primary w-full rounded-lg border px-3 py-2 text-sm transition-colors outline-none focus:ring-1\"\n            />\n          </div>\n\n          <!-- Chart type picker -->\n          <div class=\"space-y-1.5\">\n            <label id=\"chart-type-label\" class=\"text-sm font-medium\">Chart type</label>\n            <UiToggleGroup\n              type=\"single\"\n              :model-value=\"genChartType\"\n              aria-labelledby=\"chart-type-label\"\n              class=\"grid grid-cols-5 gap-2\"\n              @update:model-value=\"\n                (val) => {\n                  if (typeof val === 'string') genChartType = val;\n                }\n              \"\n            >\n              <UiToggleGroupItem\n                v-for=\"ct in genChartTypes\"\n                :key=\"ct.value\"\n                :value=\"ct.value\"\n                :aria-label=\"ct.label\"\n                class=\"group border-border/60 bg-muted/30 hover:border-border hover:bg-muted/50 data-[state=on]:bg-card h-auto flex-col gap-1.5 rounded-xl border-2 p-3 data-[state=on]:shadow-sm\"\n                :style=\"genChartType === ct.value ? { borderColor: 'var(--color-primary)' } : {}\"\n              >\n                <span\n                  class=\"bg-muted text-muted-foreground group-hover:bg-muted/80 flex size-8 items-center justify-center rounded-lg transition-colors group-data-[state=on]:text-white\"\n                  :style=\"\n                    genChartType === ct.value ? { backgroundColor: 'var(--color-primary)' } : {}\n                  \"\n                >\n                  <Icon :name=\"ct.icon\" class=\"size-4\" />\n                </span>\n                <span class=\"text-[11px] leading-none font-medium\">{{ ct.label }}</span>\n              </UiToggleGroupItem>\n            </UiToggleGroup>\n          </div>\n\n          <!-- Metric + Date range row -->\n          <div class=\"grid grid-cols-2 gap-3\">\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Metric</label>\n              <div class=\"relative\">\n                <select\n                  v-model=\"genChartMetric\"\n                  class=\"border-border/70 bg-muted/20 text-foreground focus:border-primary focus:ring-primary w-full appearance-none rounded-lg border px-3 py-2 pr-8 text-sm transition-colors outline-none focus:ring-1\"\n                >\n                  <option v-for=\"m in genChartMetrics\" :key=\"m.value\" :value=\"m.value\">\n                    {{ m.label }}\n                  </option>\n                </select>\n                <Icon\n                  name=\"heroicons:chevron-down\"\n                  class=\"text-muted-foreground pointer-events-none absolute top-2.5 right-2.5 size-4\"\n                />\n              </div>\n            </div>\n\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Date range</label>\n              <div class=\"relative\">\n                <select\n                  v-model=\"genChartRange\"\n                  class=\"border-border/70 bg-muted/20 text-foreground focus:border-primary focus:ring-primary w-full appearance-none rounded-lg border px-3 py-2 pr-8 text-sm transition-colors outline-none focus:ring-1\"\n                >\n                  <option v-for=\"r in genChartRanges\" :key=\"r.value\" :value=\"r.value\">\n                    {{ r.label }}\n                  </option>\n                </select>\n                <Icon\n                  name=\"heroicons:chevron-down\"\n                  class=\"text-muted-foreground pointer-events-none absolute top-2.5 right-2.5 size-4\"\n                />\n              </div>\n            </div>\n          </div>\n\n          <!-- Compare toggle -->\n          <div\n            class=\"border-border/70 bg-muted/20 flex items-center justify-between rounded-lg border px-3 py-2.5\"\n          >\n            <div>\n              <p class=\"text-sm font-medium\">Compare to previous period</p>\n              <p class=\"text-muted-foreground text-xs\">\n                Overlay the prior period as a reference line\n              </p>\n            </div>\n            <button\n              type=\"button\"\n              role=\"switch\"\n              :aria-checked=\"genChartCompare\"\n              class=\"relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none\"\n              :style=\"{\n                backgroundColor: genChartCompare\n                  ? 'var(--color-primary)'\n                  : 'hsl(var(--muted-foreground) / 0.3)',\n              }\"\n              @click=\"genChartCompare = !genChartCompare\"\n            >\n              <span\n                class=\"pointer-events-none block size-4 rounded-full bg-white shadow-sm transition-transform\"\n                :class=\"genChartCompare ? 'translate-x-4' : 'translate-x-0'\"\n              />\n            </button>\n          </div>\n        </div>\n\n        <UiDialogFooter>\n          <UiButton variant=\"outline\" @click=\"genChartOpen = false\">Cancel</UiButton>\n          <UiButton\n            :disabled=\"!genChartName.trim() || !genChartType\"\n            class=\"gap-2\"\n            @click=\"submitGenChart\"\n          >\n            <Icon name=\"heroicons:sparkles\" class=\"size-4\" />\n            Generate chart\n          </UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- Export report dialog -->\n    <UiDialog v-model:open=\"exportOpen\">\n      <UiDialogContent class=\"sm:max-w-md\">\n        <UiDialogHeader>\n          <UiDialogTitle>Export report</UiDialogTitle>\n          <UiDialogDescription>\n            Choose a format. A download link will be sent to your email once ready.\n          </UiDialogDescription>\n        </UiDialogHeader>\n\n        <div class=\"grid grid-cols-2 gap-3 py-2\">\n          <button\n            v-for=\"fmt in exportFormats\"\n            :key=\"fmt.value\"\n            type=\"button\"\n            class=\"group relative flex cursor-pointer flex-col gap-3 rounded-xl border-2 p-4 text-left transition-all focus-visible:outline-none\"\n            :class=\"\n              selectedFormat === fmt.value\n                ? 'bg-card shadow-sm'\n                : 'border-border/60 bg-muted/30 hover:border-border hover:bg-muted/50'\n            \"\n            :style=\"selectedFormat === fmt.value ? { borderColor: 'var(--color-primary)' } : {}\"\n            @click=\"selectedFormat = fmt.value\"\n          >\n            <!-- Selection indicator -->\n            <div\n              class=\"absolute top-3 right-3 flex size-4 items-center justify-center rounded-full border-2 transition-all\"\n              :style=\"\n                selectedFormat === fmt.value\n                  ? { borderColor: 'var(--color-primary)', backgroundColor: 'var(--color-primary)' }\n                  : { borderColor: 'hsl(var(--border))' }\n              \"\n            >\n              <Icon\n                v-if=\"selectedFormat === fmt.value\"\n                name=\"heroicons:check\"\n                class=\"size-2.5 text-white\"\n              />\n            </div>\n\n            <!-- Format icon -->\n            <div\n              class=\"flex size-9 items-center justify-center rounded-lg transition-colors\"\n              :class=\"\n                selectedFormat === fmt.value\n                  ? 'text-white'\n                  : 'bg-muted text-muted-foreground group-hover:bg-muted/80'\n              \"\n              :style=\"\n                selectedFormat === fmt.value ? { backgroundColor: 'var(--color-primary)' } : {}\n              \"\n            >\n              <Icon :name=\"fmt.icon\" class=\"size-5\" />\n            </div>\n\n            <div>\n              <p class=\"text-sm leading-none font-semibold\">{{ fmt.label }}</p>\n              <p class=\"text-muted-foreground mt-1 text-xs\">{{ fmt.description }}</p>\n            </div>\n\n            <p class=\"text-muted-foreground/70 text-xs\">{{ fmt.size }}</p>\n          </button>\n        </div>\n\n        <UiDialogFooter>\n          <UiButton variant=\"outline\" @click=\"exportOpen = false\">Cancel</UiButton>\n          <UiButton :disabled=\"!selectedFormat\" class=\"gap-2\" @click=\"submitExport\">\n            <Icon name=\"heroicons:arrow-down-tray\" class=\"size-4\" />\n            Export {{ selectedFormat?.toUpperCase() }}\n          </UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- Command search dialog -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search\"\n      description=\"Search across your sales data\"\n    >\n      <UiCommandInput placeholder=\"Search...\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Quick actions\">\n          <UiCommandItem value=\"Export report\">\n            <Icon name=\"heroicons:arrow-down-tray\" />\n            <span>Export report</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Invite team member\">\n            <Icon name=\"heroicons:user-plus\" />\n            <span>Invite team member</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Reports\">\n          <UiCommandItem value=\"Sales report\">\n            <Icon name=\"heroicons:chart-bar\" />\n            <span>Sales report</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Store traffic\">\n            <Icon name=\"heroicons:arrow-trending-up\" />\n            <span>Store traffic</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- Sticky header -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile nav popover -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"lg:hidden\">\n                <Icon name=\"heroicons:bars-3\" class=\"size-5\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"\n                  item.active\n                    ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                    : 'text-muted-foreground'\n                \"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right actions -->\n        <div class=\"flex items-center gap-2\">\n          <!-- Upgrade now -->\n          <UiButton size=\"sm\" class=\"hidden gap-1.5 sm:flex\">\n            <Icon name=\"heroicons:bolt\" class=\"size-4\" />\n            Upgrade now\n          </UiButton>\n          <UiButton size=\"icon-sm\" class=\"sm:hidden\">\n            <Icon name=\"heroicons:bolt\" class=\"size-4\" />\n          </UiButton>\n\n          <div class=\"flex items-center gap-1\">\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                      <Icon name=\"heroicons:cog-6-tooth\" class=\"text-muted-foreground size-5\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Settings</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                  <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n                  <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n                  <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notifications\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    variant=\"destructive\"\n                    icon=\"heroicons:arrow-right-on-rectangle\"\n                    title=\"Sign out\"\n                  />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                      <Icon name=\"heroicons:bell\" class=\"text-muted-foreground size-5\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Notifications</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\" class=\"w-96\">\n                  <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                    <span>Notifications</span>\n                    <UiBadge variant=\"secondary\" size=\"sm\">3 new</UiBadge>\n                  </UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:shopping-bag\"\n                    title=\"Demi Wikinson purchased Webflow 101\"\n                  >\n                    <template #shortcut>1m ago</template>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:arrow-trending-up\"\n                    title=\"Revenue up 10% today\"\n                  >\n                    <template #shortcut>1h ago</template>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem icon=\"heroicons:users\" title=\"3 new team invites pending\">\n                    <template #shortcut>3h ago</template>\n                  </UiDropdownMenuItem>\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                      <UiAvatar\n                        src=\"https://i.pravatar.cc/150?img=47\"\n                        alt=\"Olivia Rhye\"\n                        fallback=\"OR\"\n                        class=\"size-8 cursor-pointer\"\n                      />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Account</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                  <UiDropdownMenuLabel>\n                    <div class=\"flex flex-col\">\n                      <p class=\"text-sm font-medium\">Olivia Rhye</p>\n                      <p class=\"text-muted-foreground text-xs\">olivia@ui-thing.com</p>\n                    </div>\n                  </UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                  <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                  <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing\" />\n                  <UiDropdownMenuItem icon=\"heroicons:users\" title=\"Team\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:question-mark-circle\"\n                    title=\"Help & support\"\n                  />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    variant=\"destructive\"\n                    icon=\"heroicons:arrow-right-on-rectangle\"\n                    title=\"Sign out\"\n                  />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n          </div>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Secondary tab nav -->\n    <Motion\n      :initial=\"{ opacity: 0, y: -8 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.35, delay: 0.05, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background border-b\"\n    >\n      <UiContainer class=\"flex items-center justify-between gap-4 py-0\">\n        <!-- Tabs (desktop) -->\n        <div class=\"hidden items-center gap-0.5 overflow-x-auto sm:flex\">\n          <button\n            v-for=\"tab in secondaryTabs\"\n            :key=\"tab.label\"\n            class=\"relative shrink-0 px-3 py-3.5 text-sm font-medium transition-colors\"\n            :class=\"\n              tab.active\n                ? 'text-foreground after:bg-primary after:absolute after:inset-x-0 after:bottom-0 after:h-0.5'\n                : 'text-muted-foreground hover:text-foreground'\n            \"\n            @click=\"setActiveTab(tab.label)\"\n          >\n            {{ tab.label }}\n          </button>\n        </div>\n\n        <!-- Mobile tab selector -->\n        <UiPopover class=\"sm:hidden\">\n          <UiPopoverTrigger as-child>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"gap-1.5 text-sm font-medium sm:hidden\">\n              {{ activeTabLabel }}\n              <Icon name=\"heroicons:chevron-down\" class=\"text-muted-foreground size-4\" />\n            </UiButton>\n          </UiPopoverTrigger>\n          <UiPopoverContent align=\"start\" class=\"w-52 p-1\">\n            <UiButton\n              v-for=\"tab in secondaryTabs\"\n              :key=\"tab.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              class=\"w-full justify-start\"\n              :class=\"tab.active ? 'bg-muted font-semibold' : 'text-muted-foreground'\"\n              @click=\"setActiveTab(tab.label)\"\n            >\n              {{ tab.label }}\n            </UiButton>\n          </UiPopoverContent>\n        </UiPopover>\n\n        <!-- ⌘K search -->\n        <UiButton\n          variant=\"outline\"\n          size=\"sm\"\n          class=\"text-muted-foreground hidden shrink-0 justify-start gap-2 sm:flex lg:w-60\"\n          @click=\"searchOpen = true\"\n        >\n          <Icon name=\"heroicons:magnifying-glass\" class=\"size-4\" />\n          <span class=\"text-sm\">Search...</span>\n          <UiKbd class=\"ml-auto\">⌘K</UiKbd>\n        </UiButton>\n      </UiContainer>\n    </Motion>\n\n    <!-- Page content -->\n    <UiContainer class=\"space-y-8 py-8\">\n      <!-- Page header -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\"\n      >\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Sales overview</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\">Your current sales summary and activity.</p>\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\" @click=\"exportOpen = true\">\n            <Icon name=\"heroicons:arrow-down-tray\" class=\"size-4\" />\n            Export report\n          </UiButton>\n          <UiButton size=\"sm\" class=\"gap-2\" @click=\"inviteOpen = true\">\n            <Icon name=\"heroicons:plus\" class=\"size-4\" />\n            Invite\n          </UiButton>\n        </div>\n      </Motion>\n\n      <!-- View selector row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 8 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.15, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <!-- View tabs -->\n        <UiButtonGroup>\n          <UiButton\n            v-for=\"view in viewTabs\"\n            :key=\"view.value\"\n            variant=\"outline\"\n            size=\"sm\"\n            :class=\"activeView === view.value ? 'bg-muted shadow-xs' : 'text-muted-foreground'\"\n            @click=\"activeView = view.value\"\n          >\n            <span v-if=\"view.dot\" class=\"mr-1.5 size-2 rounded-full bg-emerald-500\" />\n            {{ view.label }}\n          </UiButton>\n          <UiButton variant=\"outline\" size=\"sm\" class=\"text-muted-foreground\">\n            <Icon name=\"heroicons:plus\" class=\"size-4\" />\n          </UiButton>\n        </UiButtonGroup>\n\n        <!-- Date range + filters -->\n        <div class=\"flex items-center gap-2\">\n          <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2 text-sm\">\n            <Icon name=\"heroicons:calendar-days\" class=\"text-muted-foreground size-4\" />\n            Jan 10, 2025 – Jan 16, 2025\n          </UiButton>\n          <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\">\n            <Icon name=\"heroicons:adjustments-horizontal\" class=\"size-4\" />\n            Filters\n          </UiButton>\n        </div>\n      </Motion>\n\n      <!-- Main two-column layout -->\n      <div class=\"grid gap-6 lg:grid-cols-[1fr_280px]\">\n        <!-- Left: KPI cards + charts -->\n        <Motion\n          :initial=\"{ opacity: 0, y: 12 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ duration: 0.4, delay: 0.2, ease: 'easeOut' }\"\n          class=\"space-y-5\"\n        >\n          <!-- KPI cards -->\n          <div class=\"grid gap-4 sm:grid-cols-3\">\n            <div\n              v-for=\"kpi in kpiCards\"\n              :key=\"kpi.label\"\n              class=\"border-border/70 bg-card rounded-xl border p-5 shadow-xs\"\n            >\n              <div class=\"flex items-center justify-between\">\n                <p class=\"text-muted-foreground text-sm\">{{ kpi.label }}</p>\n                <UiTooltip>\n                  <UiDropdownMenu>\n                    <UiTooltipTrigger as-child>\n                      <UiDropdownMenuTrigger as-child>\n                        <UiButton\n                          variant=\"ghost\"\n                          size=\"icon-sm\"\n                          class=\"text-muted-foreground -mr-1\"\n                        >\n                          <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                        </UiButton>\n                      </UiDropdownMenuTrigger>\n                    </UiTooltipTrigger>\n                    <UiTooltipContent><p>Options</p></UiTooltipContent>\n                    <UiDropdownMenuContent align=\"end\">\n                      <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Refresh\" />\n                      <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export\" />\n                    </UiDropdownMenuContent>\n                  </UiDropdownMenu>\n                </UiTooltip>\n              </div>\n\n              <div class=\"mt-3 flex items-end justify-between gap-2\">\n                <p class=\"text-2xl font-bold tracking-tight\">{{ kpi.value }}</p>\n                <span\n                  class=\"mb-0.5 flex shrink-0 items-center gap-0.5 rounded-md border px-1.5 py-0.5 text-xs font-semibold\"\n                  :class=\"\n                    kpi.positive\n                      ? 'border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-800 dark:bg-emerald-950/50 dark:text-emerald-400'\n                      : 'border-red-200 bg-red-50 text-red-700 dark:border-red-800 dark:bg-red-950/50 dark:text-red-400'\n                  \"\n                >\n                  <Icon\n                    :name=\"kpi.positive ? 'heroicons:arrow-up' : 'heroicons:arrow-down'\"\n                    class=\"size-3\"\n                  />\n                  {{ kpi.trend }}\n                </span>\n              </div>\n\n              <div class=\"border-border/60 mt-4 border-t pt-3\">\n                <button\n                  class=\"text-sm font-medium transition-colors\"\n                  :style=\"{ color: 'var(--color-primary)' }\"\n                >\n                  View report\n                </button>\n              </div>\n            </div>\n          </div>\n\n          <!-- Sales report card -->\n          <div class=\"border-border/70 bg-card rounded-xl border shadow-xs\">\n            <div class=\"flex items-center justify-between px-5 pt-5\">\n              <h2 class=\"text-base font-semibold\">Sales report</h2>\n              <UiButton variant=\"outline\" size=\"sm\">View report</UiButton>\n            </div>\n\n            <!-- Time tabs -->\n            <div class=\"flex items-center gap-0 px-5 pt-3\">\n              <button\n                v-for=\"t in salesTimeTabs\"\n                :key=\"t\"\n                class=\"relative mr-4 pb-2 text-sm font-medium transition-colors\"\n                :class=\"\n                  activeSalesTab === t\n                    ? 'text-foreground after:bg-primary after:absolute after:inset-x-0 after:bottom-0 after:h-0.5'\n                    : 'text-muted-foreground hover:text-foreground'\n                \"\n                @click=\"activeSalesTab = t\"\n              >\n                {{ t }}\n              </button>\n            </div>\n            <div class=\"border-border/60 border-t\" />\n\n            <UiApexchart type=\"area\" height=\"220\" :series=\"salesSeries\" :options=\"salesOptions\" />\n          </div>\n\n          <!-- Store traffic card -->\n          <div class=\"border-border/70 bg-card rounded-xl border shadow-xs\">\n            <div class=\"flex items-center justify-between px-5 pt-5\">\n              <h2 class=\"text-base font-semibold\">Store traffic</h2>\n              <UiButton variant=\"outline\" size=\"sm\">View report</UiButton>\n            </div>\n\n            <!-- Time tabs -->\n            <div class=\"flex items-center gap-0 px-5 pt-3\">\n              <button\n                v-for=\"t in trafficTimeTabs\"\n                :key=\"t\"\n                class=\"relative mr-4 pb-2 text-sm font-medium transition-colors\"\n                :class=\"\n                  activeTrafficTab === t\n                    ? 'text-foreground after:bg-primary after:absolute after:inset-x-0 after:bottom-0 after:h-0.5'\n                    : 'text-muted-foreground hover:text-foreground'\n                \"\n                @click=\"activeTrafficTab = t\"\n              >\n                {{ t }}\n              </button>\n            </div>\n            <div class=\"border-border/60 border-t\" />\n\n            <UiApexchart\n              type=\"bar\"\n              height=\"220\"\n              :series=\"trafficSeries\"\n              :options=\"trafficOptions\"\n            />\n          </div>\n\n          <!-- Add button -->\n          <div class=\"border-border/60 flex justify-center border-t pt-2\">\n            <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\" @click=\"genChartOpen = true\">\n              <Icon name=\"heroicons:plus\" class=\"size-4\" />\n              Add\n            </UiButton>\n          </div>\n        </Motion>\n\n        <!-- Right: Activity feed -->\n        <Motion\n          :initial=\"{ opacity: 0, x: 12 }\"\n          :animate=\"{ opacity: 1, x: 0 }\"\n          :transition=\"{ duration: 0.4, delay: 0.25, ease: 'easeOut' }\"\n          class=\"space-y-3\"\n        >\n          <div class=\"flex items-center justify-between\">\n            <h2 class=\"text-base font-semibold\">Activity</h2>\n            <button\n              class=\"text-sm font-medium transition-colors\"\n              :style=\"{ color: 'var(--color-primary)' }\"\n            >\n              View all\n            </button>\n          </div>\n\n          <div class=\"space-y-4\">\n            <div v-for=\"(item, i) in activityFeed\" :key=\"i\" class=\"flex items-start gap-3\">\n              <div class=\"relative shrink-0\">\n                <UiAvatar\n                  :src=\"item.avatar\"\n                  :alt=\"item.name\"\n                  :fallback=\"item.name[0]\"\n                  class=\"size-8\"\n                />\n                <span\n                  v-if=\"item.online\"\n                  class=\"border-background absolute right-0 bottom-0 size-2.5 rounded-full border-2 bg-emerald-500\"\n                />\n              </div>\n              <div class=\"min-w-0 text-sm leading-snug\">\n                <span class=\"font-medium\">{{ item.name }}</span>\n                <span class=\"text-muted-foreground\"> Purchased </span>\n                <button\n                  class=\"font-medium transition-colors\"\n                  :style=\"{ color: 'var(--color-primary)' }\"\n                >\n                  {{ item.product }}\n                </button>\n              </div>\n            </div>\n          </div>\n        </Motion>\n      </div>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n\n  // ─── Navigation ────────────────────────────────────────────────────────────────\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // ─── Secondary tabs ─────────────────────────────────────────────────────────────\n  const secondaryTabs = ref([\n    { label: \"Overview\", active: true },\n    { label: \"Notifications\", active: false },\n    { label: \"Analytics\", active: false },\n    { label: \"Saved reports\", active: false },\n    { label: \"Scheduled reports\", active: false },\n    { label: \"User reports\", active: false },\n  ]);\n\n  const activeTabLabel = computed(\n    () => secondaryTabs.value.find((t) => t.active)?.label ?? \"Overview\"\n  );\n\n  const setActiveTab = (label: string) => {\n    secondaryTabs.value = secondaryTabs.value.map((t) => ({ ...t, active: t.label === label }));\n  };\n\n  // ─── Invite dialog ─────────────────────────────────────────────────────────────\n  const inviteOpen = ref(false);\n  const inviteEmails = ref<string[]>([]);\n  const inviteInputVal = ref(\"\");\n  const inviteError = ref(\"\");\n  const inviteInputRef = ref<HTMLInputElement | null>(null);\n\n  const inviteSuggestions = [\n    { name: \"Aliah Lane\", email: \"aliah@ui-thing.com\", avatar: \"https://i.pravatar.cc/150?img=2\" },\n    { name: \"Drew Cano\", email: \"drew@ui-thing.com\", avatar: \"https://i.pravatar.cc/150?img=8\" },\n    { name: \"Lana Steiner\", email: \"lana@ui-thing.com\", avatar: \"https://i.pravatar.cc/150?img=3\" },\n  ];\n\n  const isValidEmail = (val: string) => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(val.trim());\n\n  const focusInviteInput = () => inviteInputRef.value?.focus();\n\n  const addInviteEmail = () => {\n    const val = inviteInputVal.value.trim().replace(/,$/, \"\");\n    if (!val) return;\n    if (!isValidEmail(val)) {\n      inviteError.value = \"Please enter a valid email address.\";\n      return;\n    }\n    if (inviteEmails.value.includes(val)) {\n      inviteError.value = \"This email has already been added.\";\n      return;\n    }\n    if (inviteEmails.value.length >= 4) {\n      inviteError.value = \"You can invite up to 4 people at a time.\";\n      return;\n    }\n    inviteEmails.value.push(val);\n    inviteInputVal.value = \"\";\n    inviteError.value = \"\";\n  };\n\n  const removeInviteEmail = (email: string) => {\n    inviteEmails.value = inviteEmails.value.filter((e) => e !== email);\n    inviteError.value = \"\";\n  };\n\n  const onInviteBackspace = () => {\n    if (!inviteInputVal.value && inviteEmails.value.length > 0) {\n      inviteEmails.value.pop();\n    }\n  };\n\n  const onInvitePaste = (e: ClipboardEvent) => {\n    const text = e.clipboardData?.getData(\"text\") ?? \"\";\n    const pasted = text.split(/[\\s,;]+/).filter(Boolean);\n    for (const p of pasted) {\n      if (inviteEmails.value.length >= 4) break;\n      if (isValidEmail(p) && !inviteEmails.value.includes(p)) {\n        inviteEmails.value.push(p);\n      }\n    }\n    inviteInputVal.value = \"\";\n    inviteError.value = \"\";\n  };\n\n  const addSuggestedEmail = (email: string) => {\n    if (inviteEmails.value.length >= 4 || inviteEmails.value.includes(email)) return;\n    inviteEmails.value.push(email);\n    inviteError.value = \"\";\n  };\n\n  const submitInvites = () => {\n    if (inviteEmails.value.length === 0) return;\n    const count = inviteEmails.value.length;\n    inviteOpen.value = false;\n    useSonner(`${count} invite${count > 1 ? \"s\" : \"\"} sent`, {\n      description: `Invitations have been sent to ${inviteEmails.value.join(\", \")}.`,\n    });\n    inviteEmails.value = [];\n    inviteInputVal.value = \"\";\n    inviteError.value = \"\";\n  };\n\n  const onInviteDialogClose = (open: boolean) => {\n    if (!open) {\n      inviteInputVal.value = \"\";\n      inviteError.value = \"\";\n    }\n  };\n\n  // ─── Export dialog ─────────────────────────────────────────────────────────────\n  const exportOpen = ref(false);\n  const selectedFormat = ref<string | null>(null);\n\n  const exportFormats = [\n    {\n      value: \"csv\",\n      label: \"CSV\",\n      icon: \"heroicons:table-cells\",\n      description: \"Spreadsheet-compatible rows\",\n      size: \"~12 KB\",\n    },\n    {\n      value: \"pdf\",\n      label: \"PDF\",\n      icon: \"heroicons:document-text\",\n      description: \"Formatted, print-ready report\",\n      size: \"~340 KB\",\n    },\n    {\n      value: \"xlsx\",\n      label: \"Excel\",\n      icon: \"heroicons:document-chart-bar\",\n      description: \"Full workbook with charts\",\n      size: \"~85 KB\",\n    },\n    {\n      value: \"json\",\n      label: \"JSON\",\n      icon: \"heroicons:code-bracket\",\n      description: \"Raw data for developers\",\n      size: \"~28 KB\",\n    },\n  ];\n\n  const submitExport = () => {\n    if (!selectedFormat.value) return;\n    exportOpen.value = false;\n    useSonner(\"Export requested\", {\n      description: `A download link for your ${selectedFormat.value.toUpperCase()} report will be sent to olivia@ui-thing.com.`,\n    });\n    selectedFormat.value = null;\n  };\n\n  // ─── Search dialog ─────────────────────────────────────────────────────────────\n  const searchOpen = ref(false);\n  const handleKeydown = (e: KeyboardEvent) => {\n    if (e.key === \"Escape\") searchOpen.value = false;\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n  };\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // ─── View selector ──────────────────────────────────────────────────────────────\n  const viewTabs = [\n    { label: \"Default\", value: \"default\", dot: false },\n    { label: \"Saved view\", value: \"saved\", dot: true },\n    { label: \"SDR view\", value: \"sdr\", dot: false },\n  ];\n  const activeView = ref(\"saved\");\n\n  // ─── KPI cards ─────────────────────────────────────────────────────────────────\n  const kpiCards = [\n    { label: \"Today's revenue\", value: \"$1,280\", trend: \"10%\", positive: true },\n    { label: \"Today's orders\", value: \"14\", trend: \"12%\", positive: true },\n    { label: \"Avg. order value\", value: \"$91.42\", trend: \"2%\", positive: false },\n  ];\n\n  // ─── Sales report chart ────────────────────────────────────────────────────────\n  const salesTimeTabs = [\"12 months\", \"30 days\", \"7 days\", \"24 hours\"];\n  const activeSalesTab = ref(\"12 months\");\n\n  const months = [\n    \"Jan\",\n    \"Feb\",\n    \"Mar\",\n    \"Apr\",\n    \"May\",\n    \"Jun\",\n    \"Jul\",\n    \"Aug\",\n    \"Sep\",\n    \"Oct\",\n    \"Nov\",\n    \"Dec\",\n  ];\n\n  const salesSeries = [\n    {\n      name: \"Revenue\",\n      data: [42, 55, 50, 65, 72, 80, 88, 85, 92, 96, 105, 118],\n    },\n    {\n      name: \"Target\",\n      data: [30, 38, 36, 45, 52, 58, 62, 65, 70, 74, 80, 88],\n    },\n  ];\n\n  const salesOptions: ApexOptions = {\n    chart: {\n      type: \"area\",\n      background: \"transparent\",\n      parentHeightOffset: 0,\n      toolbar: { show: false },\n    },\n    colors: [\"var(--color-primary)\", \"color-mix(in oklab, var(--color-primary) 40%, white)\"],\n    stroke: { width: [2, 2], curve: \"smooth\" },\n    fill: {\n      type: [\"gradient\", \"gradient\"],\n      gradient: {\n        type: \"vertical\",\n        shadeIntensity: 0,\n        opacityFrom: 0.12,\n        opacityTo: 0,\n        stops: [0, 100],\n      },\n    },\n    dataLabels: { enabled: false },\n    markers: { size: 0, hover: { size: 5 } },\n    grid: {\n      strokeDashArray: 4,\n      xaxis: { lines: { show: false } },\n      yaxis: { lines: { show: true } },\n      padding: { left: 8, right: 8 },\n    },\n    xaxis: {\n      categories: months,\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n    },\n    yaxis: { show: false },\n    legend: { show: false },\n    tooltip: { y: { formatter: (v: number) => `$${v}k` } },\n  };\n\n  // ─── Store traffic chart ───────────────────────────────────────────────────────\n  const trafficTimeTabs = [\"12 months\", \"30 days\", \"7 days\", \"24 hours\"];\n  const activeTrafficTab = ref(\"12 months\");\n\n  const trafficSeries = [\n    {\n      name: \"Visitors\",\n      data: [4200, 7800, 3600, 5800, 4900, 6200, 7100, 5400, 6800, 7400, 8200, 6900],\n    },\n    {\n      name: \"Target\",\n      data: [2800, 3200, 2400, 3600, 3200, 4100, 3800, 2900, 4200, 3800, 4600, 3200],\n    },\n  ];\n\n  const trafficOptions: ApexOptions = {\n    chart: {\n      type: \"bar\",\n      stacked: true,\n      background: \"transparent\",\n      parentHeightOffset: 0,\n      toolbar: { show: false },\n    },\n    colors: [\"var(--color-primary)\", \"#e2e8f0\"],\n    plotOptions: {\n      bar: { borderRadius: 3, columnWidth: \"55%\", borderRadiusApplication: \"end\" },\n    },\n    dataLabels: { enabled: false },\n    xaxis: {\n      categories: months,\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n    },\n    yaxis: { show: false },\n    grid: {\n      strokeDashArray: 4,\n      xaxis: { lines: { show: false } },\n      yaxis: { lines: { show: false } },\n      padding: { left: 8, right: 8 },\n    },\n    legend: { show: false },\n    tooltip: { y: { formatter: (v: number) => `${v.toLocaleString()} visitors` } },\n  };\n\n  // ─── Activity feed ─────────────────────────────────────────────────────────────\n  const activityFeed = [\n    {\n      name: \"Demi Wikinson\",\n      product: \"Webflow 101\",\n      avatar: \"https://i.pravatar.cc/150?img=1\",\n      online: true,\n    },\n    {\n      name: \"Aliah Lane\",\n      product: \"SEO Masterclass\",\n      avatar: \"https://i.pravatar.cc/150?img=2\",\n      online: false,\n    },\n    {\n      name: \"Lana Steiner\",\n      product: \"Figma Mockups\",\n      avatar: \"https://i.pravatar.cc/150?img=3\",\n      online: false,\n    },\n    {\n      name: \"Candice Wu\",\n      product: \"Webflow 101\",\n      avatar: \"https://i.pravatar.cc/150?img=4\",\n      online: false,\n    },\n    {\n      name: \"Ava Wright\",\n      product: \"SEO Masterclass\",\n      avatar: \"https://i.pravatar.cc/150?img=5\",\n      online: false,\n    },\n    {\n      name: \"Koray Okumus\",\n      product: \"SEO Masterclass\",\n      avatar: \"https://i.pravatar.cc/150?img=6\",\n      online: false,\n    },\n    {\n      name: \"Andi Lane\",\n      product: \"The Ultimate Guide to Backlinks\",\n      avatar: \"https://i.pravatar.cc/150?img=7\",\n      online: false,\n    },\n    {\n      name: \"Drew Cano\",\n      product: \"The Figma Dashboard Bundle\",\n      avatar: \"https://i.pravatar.cc/150?img=8\",\n      online: false,\n    },\n    {\n      name: \"Zahir Mays\",\n      product: \"The Figma Dashboard Bundle\",\n      avatar: \"https://i.pravatar.cc/150?img=9\",\n      online: false,\n    },\n    {\n      name: \"Rene Wells\",\n      product: \"The Design Handbook\",\n      avatar: \"https://i.pravatar.cc/150?img=10\",\n      online: false,\n    },\n    {\n      name: \"Joshua Wilson\",\n      product: \"Phone 13 Mockups\",\n      avatar: \"https://i.pravatar.cc/150?img=11\",\n      online: false,\n    },\n    {\n      name: \"Lori Bryson\",\n      product: \"SEO Masterclass\",\n      avatar: \"https://i.pravatar.cc/150?img=12\",\n      online: false,\n    },\n    {\n      name: \"Loki Bright\",\n      product: \"Figma Mockups\",\n      avatar: \"https://i.pravatar.cc/150?img=13\",\n      online: false,\n    },\n    {\n      name: \"Anita Cruz\",\n      product: \"The Ultimate Guide to Backlinks\",\n      avatar: \"https://i.pravatar.cc/150?img=14\",\n      online: false,\n    },\n  ];\n\n  // ─── Generate chart dialog ──────────────────────────────────────────────────\n  const genChartOpen = ref(false);\n  const genChartName = ref(\"\");\n  const genChartType = ref(\"area\");\n  const genChartMetric = ref(\"revenue\");\n  const genChartRange = ref(\"30d\");\n  const genChartCompare = ref(false);\n\n  const genChartTypes = [\n    { value: \"area\", label: \"Area\", icon: \"heroicons:presentation-chart-line\" },\n    { value: \"bar\", label: \"Bar\", icon: \"heroicons:chart-bar\" },\n    { value: \"line\", label: \"Line\", icon: \"heroicons:arrow-trending-up\" },\n    { value: \"donut\", label: \"Donut\", icon: \"heroicons:chart-pie\" },\n    { value: \"scatter\", label: \"Scatter\", icon: \"heroicons:squares-2x2\" },\n  ];\n\n  const genChartMetrics = [\n    { value: \"revenue\", label: \"Revenue\" },\n    { value: \"orders\", label: \"Orders\" },\n    { value: \"aov\", label: \"Avg. order value\" },\n    { value: \"conversion\", label: \"Conversion rate\" },\n    { value: \"acquisition\", label: \"Customer acquisition\" },\n    { value: \"refunds\", label: \"Refunds\" },\n  ];\n\n  const genChartRanges = [\n    { value: \"7d\", label: \"Last 7 days\" },\n    { value: \"30d\", label: \"Last 30 days\" },\n    { value: \"90d\", label: \"Last 3 months\" },\n    { value: \"12m\", label: \"Last 12 months\" },\n    { value: \"ytd\", label: \"Year to date\" },\n  ];\n\n  const submitGenChart = () => {\n    if (!genChartName.value.trim() || !genChartType.value) return;\n    const label =\n      genChartTypes.find((t) => t.value === genChartType.value)?.label ?? genChartType.value;\n    genChartOpen.value = false;\n    useSonner(\"Generating chart…\", {\n      description: `Your \"${genChartName.value.trim()}\" ${label.toLowerCase()} chart is being generated.`,\n    });\n    genChartName.value = \"\";\n    genChartType.value = \"area\";\n    genChartMetric.value = \"revenue\";\n    genChartRange.value = \"30d\";\n    genChartCompare.value = false;\n  };\n\n  const onGenChartClose = (open: boolean) => {\n    if (!open) {\n      genChartName.value = \"\";\n      genChartType.value = \"area\";\n      genChartMetric.value = \"revenue\";\n      genChartRange.value = \"30d\";\n      genChartCompare.value = false;\n    }\n  };\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards10.vue","components":["apexcharts","avatar","badge","button","button-group","command","container","dialog","dropdown-menu","kbd","popover","toggle-group","tooltip"]},{"name":"Dashboards 11","fileName":"BlockDashboards11.vue","file":"<template>\n  <div class=\"bg-background text-foreground min-h-screen\">\n    <!-- ─── Upgrade dialog ──────────────────────────────────────────────────── -->\n    <UiDialog v-model:open=\"upgradeOpen\">\n      <UiDialogContent class=\"sm:max-w-lg\">\n        <UiDialogHeader>\n          <UiDialogTitle>Choose your plan</UiDialogTitle>\n          <UiDialogDescription>\n            Upgrade to unlock advanced analytics, more team members, and priority support.\n          </UiDialogDescription>\n        </UiDialogHeader>\n\n        <UiRadioGroup\n          v-model=\"selectedPlan\"\n          orientation=\"horizontal\"\n          class=\"mt-1 grid grid-cols-1 gap-4 sm:grid-cols-2\"\n        >\n          <div\n            v-for=\"plan in plans\"\n            :key=\"plan.id\"\n            class=\"relative cursor-pointer rounded-xl border-2 p-5 transition-all\"\n            :class=\"\n              selectedPlan === plan.id\n                ? 'border-primary bg-primary/5'\n                : 'border-border/60 hover:border-border'\n            \"\n            @click=\"selectedPlan = plan.id\"\n          >\n            <div class=\"flex items-start justify-between gap-2\">\n              <div class=\"min-w-0\">\n                <p class=\"leading-none font-semibold\">{{ plan.name }}</p>\n                <p class=\"text-muted-foreground mt-1 text-xs\">{{ plan.tagline }}</p>\n              </div>\n              <UiRadioGroupItem :value=\"plan.id\" @click.stop />\n            </div>\n\n            <div class=\"mt-4 flex items-baseline gap-1\">\n              <span class=\"text-3xl font-bold\">${{ plan.price }}</span>\n              <span class=\"text-muted-foreground text-sm\">/mo</span>\n            </div>\n\n            <ul class=\"mt-4 space-y-2\">\n              <li\n                v-for=\"feature in plan.features\"\n                :key=\"feature\"\n                class=\"text-muted-foreground flex items-center gap-2 text-xs\"\n              >\n                <Icon name=\"heroicons:check-circle\" class=\"size-3.5 shrink-0 text-emerald-500\" />\n                {{ feature }}\n              </li>\n            </ul>\n          </div>\n        </UiRadioGroup>\n\n        <UiDialogFooter class=\"mt-2\">\n          <UiButton variant=\"outline\" @click=\"upgradeOpen = false\">Cancel</UiButton>\n          <UiButton class=\"gap-2\" @click=\"submitUpgrade\">\n            <Icon name=\"heroicons:bolt\" class=\"size-4\" />\n            {{ selectedPlan === \"pro\" ? \"Upgrade to Pro\" : \"Continue with Free\" }}\n          </UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- ─── Filter dialog ──────────────────────────────────────────────────── -->\n    <UiDialog v-model:open=\"filterOpen\">\n      <UiDialogContent class=\"sm:max-w-sm\">\n        <UiDialogHeader>\n          <UiDialogTitle>Filter options</UiDialogTitle>\n          <UiDialogDescription\n            >Narrow the dashboard data by channel, status, and product type.</UiDialogDescription\n          >\n        </UiDialogHeader>\n\n        <div class=\"space-y-5 py-1\">\n          <div class=\"space-y-2.5\">\n            <p class=\"text-sm font-medium\">Channels</p>\n            <div class=\"space-y-2\">\n              <label\n                v-for=\"ch in filterChannels\"\n                :key=\"ch.key\"\n                class=\"flex cursor-pointer items-center gap-2.5 text-sm\"\n              >\n                <UiCheckbox :id=\"`ch-${ch.key}`\" v-model:checked=\"ch.checked\" />\n                {{ ch.label }}\n              </label>\n            </div>\n          </div>\n\n          <div class=\"space-y-2.5\">\n            <p class=\"text-sm font-medium\">Status</p>\n            <div class=\"space-y-2\">\n              <label\n                v-for=\"st in filterStatuses\"\n                :key=\"st.key\"\n                class=\"flex cursor-pointer items-center gap-2.5 text-sm\"\n              >\n                <UiCheckbox :id=\"`st-${st.key}`\" v-model:checked=\"st.checked\" />\n                {{ st.label }}\n              </label>\n            </div>\n          </div>\n\n          <div class=\"space-y-2.5\">\n            <p class=\"text-sm font-medium\">Products</p>\n            <div class=\"space-y-2\">\n              <label\n                v-for=\"pr in filterProducts\"\n                :key=\"pr.key\"\n                class=\"flex cursor-pointer items-center gap-2.5 text-sm\"\n              >\n                <UiCheckbox :id=\"`pr-${pr.key}`\" v-model:checked=\"pr.checked\" />\n                {{ pr.label }}\n              </label>\n            </div>\n          </div>\n        </div>\n\n        <UiDialogFooter>\n          <UiButton variant=\"outline\" @click=\"resetFilters\">Reset</UiButton>\n          <UiButton @click=\"applyFilters\">Apply filters</UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- ─── Command search dialog ──────────────────────────────────────────── -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search\"\n      description=\"Search across your sales data\"\n    >\n      <UiCommandInput placeholder=\"Search anything…\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Quick actions\">\n          <UiCommandItem value=\"Export report\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:arrow-down-tray\" />\n            <span>Export report</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Invite team member\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:user-plus\" />\n            <span>Invite team member</span>\n          </UiCommandItem>\n          <UiCommandItem\n            value=\"Upgrade plan\"\n            @select=\"\n              () => {\n                searchOpen = false;\n                upgradeOpen = true;\n              }\n            \"\n          >\n            <Icon name=\"heroicons:bolt\" />\n            <span>Upgrade plan</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Reports\">\n          <UiCommandItem value=\"Sales report\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:chart-bar\" />\n            <span>Sales report</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Revenue analytics\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:currency-dollar\" />\n            <span>Revenue analytics</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Customer overview\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:users\" />\n            <span>Customer overview</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Product performance\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:shopping-bag\" />\n            <span>Product performance</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Recent purchases\">\n          <UiCommandItem\n            v-for=\"item in activityFeed.slice(0, 4)\"\n            :key=\"item.name + item.product\"\n            :value=\"item.name\"\n            @select=\"searchOpen = false\"\n          >\n            <Icon name=\"heroicons:shopping-bag\" />\n            <span>{{ item.name }} — {{ item.product }}</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- ─── Sticky header ──────────────────────────────────────────────────── -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile menu -->\n          <UiTooltip>\n            <UiPopover class=\"lg:hidden\">\n              <UiTooltipTrigger as-child>\n                <UiPopoverTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"lg:hidden\">\n                    <Icon name=\"heroicons:bars-3\" class=\"size-5\" />\n                  </UiButton>\n                </UiPopoverTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Menu</p></UiTooltipContent>\n              <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n                <UiButton\n                  v-for=\"item in navItems\"\n                  :key=\"item.label\"\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  class=\"w-full justify-start\"\n                  :class=\"\n                    item.active ? 'bg-muted text-foreground shadow-xs' : 'text-muted-foreground'\n                  \"\n                >\n                  {{ item.label }}\n                </UiButton>\n              </UiPopoverContent>\n            </UiPopover>\n          </UiTooltip>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"item.active ? 'bg-muted text-foreground shadow-xs' : 'text-muted-foreground'\"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right actions -->\n        <div class=\"flex items-center gap-2\">\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton size=\"sm\" class=\"hidden gap-1.5 sm:flex\" @click=\"upgradeOpen = true\">\n                <Icon name=\"heroicons:bolt\" class=\"size-4\" />\n                Upgrade now\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>View upgrade options</p></UiTooltipContent>\n          </UiTooltip>\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"sm:hidden\"\n                @click=\"upgradeOpen = true\"\n              >\n                <Icon name=\"heroicons:bolt\" class=\"size-4\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Upgrade</p></UiTooltipContent>\n          </UiTooltip>\n\n          <div class=\"flex items-center gap-1\">\n            <!-- Settings -->\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\">\n                      <Icon name=\"heroicons:cog-6-tooth\" class=\"text-muted-foreground size-5\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Settings</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                  <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n                  <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n                  <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notification preferences\" />\n                  <UiDropdownMenuItem icon=\"heroicons:shield-check\" title=\"Security\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing & plans\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    variant=\"destructive\"\n                    icon=\"heroicons:arrow-right-on-rectangle\"\n                    title=\"Sign out\"\n                  />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n\n            <!-- Notifications -->\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"relative\">\n                      <Icon name=\"heroicons:bell\" class=\"text-muted-foreground size-5\" />\n                      <span\n                        class=\"border-background bg-primary absolute top-1.5 right-1.5 size-2 rounded-full border\"\n                      />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Notifications</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\" class=\"w-96\">\n                  <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                    <span>Notifications</span>\n                    <UiBadge variant=\"secondary\" size=\"sm\">3 new</UiBadge>\n                  </UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:shopping-bag\"\n                    title=\"Demi Wikinson purchased Webflow 101\"\n                  >\n                    <template #shortcut>1m ago</template>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:arrow-trending-up\"\n                    title=\"Revenue up 15% today\"\n                  >\n                    <template #shortcut>1h ago</template>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem icon=\"heroicons:users\" title=\"3 new team invites pending\">\n                    <template #shortcut>3h ago</template>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:check\" title=\"Mark all as read\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n\n            <!-- Avatar / account -->\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                      <UiAvatar\n                        src=\"https://i.pravatar.cc/150?img=47\"\n                        alt=\"Olivia Rhye\"\n                        fallback=\"OR\"\n                        class=\"size-8 cursor-pointer\"\n                      />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Account</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                  <UiDropdownMenuLabel>\n                    <div class=\"flex flex-col gap-0.5\">\n                      <p class=\"text-sm font-medium\">Olivia Rhye</p>\n                      <p class=\"text-muted-foreground text-xs font-normal\">olivia@ui-thing.com</p>\n                    </div>\n                  </UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                  <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                  <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing\" />\n                  <UiDropdownMenuItem icon=\"heroicons:users\" title=\"Team\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:question-mark-circle\"\n                    title=\"Help & support\"\n                  />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    variant=\"destructive\"\n                    icon=\"heroicons:arrow-right-on-rectangle\"\n                    title=\"Sign out\"\n                  />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n          </div>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- ─── Page content ───────────────────────────────────────────────────── -->\n    <UiContainer class=\"space-y-6 py-8\">\n      <!-- Welcome + search row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Welcome back, Olivia</h1>\n          <p class=\"text-muted-foreground mt-0.5 text-sm\">\n            Your current sales summary and activity.\n          </p>\n        </div>\n\n        <!-- Search button (desktop) -->\n        <UiTooltip>\n          <UiTooltipTrigger as-child>\n            <UiButton\n              variant=\"outline\"\n              class=\"text-muted-foreground hidden w-64 justify-between gap-2 sm:flex\"\n              @click=\"searchOpen = true\"\n            >\n              <span class=\"flex items-center gap-2\">\n                <Icon name=\"heroicons:magnifying-glass\" class=\"size-4\" />\n                Search\n              </span>\n              <UiKbd>⌘K</UiKbd>\n            </UiButton>\n          </UiTooltipTrigger>\n          <UiTooltipContent><p>Search (⌘K)</p></UiTooltipContent>\n        </UiTooltip>\n      </Motion>\n\n      <!-- Time tabs + date/filter row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 8 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.15, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <!-- Time filter tabs -->\n        <UiButtonGroup>\n          <UiButton\n            v-for=\"tab in timeTabs\"\n            :key=\"tab.value\"\n            variant=\"outline\"\n            size=\"sm\"\n            :class=\"activeTimeTab === tab.value ? 'bg-muted shadow-xs' : 'text-muted-foreground'\"\n            @click=\"activeTimeTab = tab.value\"\n          >\n            <span class=\"hidden sm:inline\">{{ tab.label }}</span>\n            <span class=\"sm:hidden\">{{ tab.short }}</span>\n          </UiButton>\n        </UiButtonGroup>\n\n        <!-- Date + filter actions -->\n        <div class=\"flex items-center gap-2\">\n          <!-- Date picker -->\n          <UiDatepicker v-model.range=\"dateRange\" :columns=\"2\">\n            <template #default=\"{ togglePopover }\">\n              <UiTooltip>\n                <UiTooltipTrigger as-child>\n                  <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\" @click=\"togglePopover\">\n                    <Icon name=\"heroicons:calendar-days\" class=\"text-muted-foreground size-4\" />\n                    <span class=\"hidden sm:inline\">\n                      {{ useDateFormat(dateRange.start, \"MMM D, YYYY\").value }} –\n                      {{ useDateFormat(dateRange.end, \"MMM D, YYYY\").value }}\n                    </span>\n                    <span class=\"sm:hidden\">Select dates</span>\n                  </UiButton>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Select date range</p></UiTooltipContent>\n              </UiTooltip>\n            </template>\n          </UiDatepicker>\n\n          <!-- Filters -->\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\" @click=\"filterOpen = true\">\n                <Icon name=\"heroicons:adjustments-horizontal\" class=\"size-4\" />\n                <span class=\"hidden sm:inline\">Filters</span>\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Filter data</p></UiTooltipContent>\n          </UiTooltip>\n\n          <!-- Mobile search icon -->\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton\n                variant=\"outline\"\n                size=\"icon-sm\"\n                class=\"sm:hidden\"\n                @click=\"searchOpen = true\"\n              >\n                <Icon name=\"heroicons:magnifying-glass\" class=\"size-4\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Search</p></UiTooltipContent>\n          </UiTooltip>\n        </div>\n      </Motion>\n\n      <!-- Stacked bar chart -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.2, ease: 'easeOut' }\"\n      >\n        <div class=\"border-border/70 bg-card rounded-xl border p-5 shadow-xs\">\n          <UiApexchart\n            :key=\"activeTimeTab\"\n            type=\"bar\"\n            height=\"280\"\n            :series=\"chartSeries\"\n            :options=\"chartOptions\"\n          />\n        </div>\n      </Motion>\n\n      <!-- KPI metric cards -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.25, ease: 'easeOut' }\"\n        class=\"grid gap-4 sm:grid-cols-3\"\n      >\n        <div\n          v-for=\"kpi in kpiCards\"\n          :key=\"kpi.label\"\n          class=\"border-border/70 bg-card flex flex-col rounded-xl border shadow-xs\"\n        >\n          <div class=\"flex items-start justify-between p-5 pb-2\">\n            <div class=\"space-y-1\">\n              <p class=\"text-muted-foreground text-sm\">{{ kpi.label }}</p>\n              <p class=\"text-2xl font-bold tracking-tight\">{{ kpi.value }}</p>\n            </div>\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground -mr-1\">\n                      <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Options</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Refresh\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export\" />\n                  <UiDropdownMenuItem icon=\"heroicons:eye\" title=\"View full report\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n          </div>\n\n          <div class=\"flex items-center gap-1.5 px-5 pb-3 text-xs\">\n            <span\n              class=\"flex items-center gap-0.5 font-semibold\"\n              :class=\"\n                kpi.positive\n                  ? 'text-emerald-600 dark:text-emerald-400'\n                  : 'text-red-500 dark:text-red-400'\n              \"\n            >\n              <Icon\n                :name=\"\n                  kpi.positive ? 'heroicons:arrow-trending-up' : 'heroicons:arrow-trending-down'\n                \"\n                class=\"size-3.5\"\n              />\n              {{ kpi.trend }}\n            </span>\n            <span class=\"text-muted-foreground\">last mth</span>\n          </div>\n\n          <!-- Sparkline -->\n          <div class=\"-mx-0.5 mt-auto -mb-0.5\">\n            <UiApexchart\n              type=\"area\"\n              height=\"72\"\n              :series=\"[{ name: kpi.label, data: kpi.sparkData }]\"\n              :options=\"sparklineOptions(kpi.positive)\"\n            />\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Recent activity -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.3, ease: 'easeOut' }\"\n        class=\"space-y-4\"\n      >\n        <div class=\"flex items-center justify-between\">\n          <h2 class=\"text-base font-semibold\">Recent activity</h2>\n          <div class=\"flex items-center gap-2\">\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiButton variant=\"outline\" size=\"sm\" @click=\"downloadActivity\">Download</UiButton>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Download activity log</p></UiTooltipContent>\n            </UiTooltip>\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiButton size=\"sm\">View all</UiButton>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>View all activity</p></UiTooltipContent>\n            </UiTooltip>\n          </div>\n        </div>\n\n        <div class=\"grid gap-x-8 gap-y-3 sm:grid-cols-2\">\n          <div\n            v-for=\"item in activityFeed\"\n            :key=\"item.name + item.product\"\n            class=\"flex items-center gap-3\"\n          >\n            <div class=\"relative shrink-0\">\n              <UiAvatar\n                :src=\"item.avatar\"\n                :alt=\"item.name\"\n                :fallback=\"item.name[0]\"\n                class=\"size-9\"\n              />\n              <span\n                v-if=\"item.online\"\n                class=\"border-background absolute right-0 bottom-0 size-2.5 rounded-full border-2 bg-emerald-500\"\n              />\n            </div>\n            <div class=\"min-w-0 flex-1 text-sm leading-snug\">\n              <span class=\"font-medium\">{{ item.name }}</span>\n              <span v-if=\"item.time\" class=\"text-muted-foreground ml-1 text-xs\">{{\n                item.time\n              }}</span>\n              <p class=\"text-muted-foreground\">\n                Purchased\n                <button class=\"font-medium\" :style=\"{ color: 'var(--color-primary)' }\">\n                  {{ item.product }}\n                </button>\n              </p>\n            </div>\n          </div>\n        </div>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n\n  // ─── Navigation ─────────────────────────────────────────────────────────────\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // ─── Upgrade dialog ──────────────────────────────────────────────────────────\n  const upgradeOpen = ref(false);\n  const selectedPlan = ref(\"pro\");\n\n  const plans = [\n    {\n      id: \"free\",\n      name: \"Free\",\n      tagline: \"For individuals and small teams\",\n      price: 0,\n      features: [\n        \"5 projects\",\n        \"Basic analytics\",\n        \"2 team members\",\n        \"1 GB storage\",\n        \"Email support\",\n      ],\n    },\n    {\n      id: \"pro\",\n      name: \"Pro\",\n      tagline: \"For growing teams and businesses\",\n      price: 29,\n      features: [\n        \"Unlimited projects\",\n        \"Advanced analytics\",\n        \"15 team members\",\n        \"50 GB storage\",\n        \"Priority support\",\n      ],\n    },\n  ];\n\n  const submitUpgrade = () => {\n    upgradeOpen.value = false;\n    useSonner(selectedPlan.value === \"pro\" ? \"Upgraded to Pro 🎉\" : \"Staying on Free plan\", {\n      description:\n        selectedPlan.value === \"pro\"\n          ? \"Your plan has been upgraded. Enjoy unlimited access!\"\n          : \"You can upgrade at any time from Settings.\",\n    });\n  };\n\n  // ─── Filter dialog ────────────────────────────────────────────────────────────\n  const filterOpen = ref(false);\n\n  const filterChannels = reactive([\n    { key: \"direct\", label: \"Direct\", checked: true },\n    { key: \"organic\", label: \"Organic search\", checked: true },\n    { key: \"referral\", label: \"Referral\", checked: false },\n    { key: \"email\", label: \"Email\", checked: false },\n    { key: \"social\", label: \"Social media\", checked: false },\n  ]);\n\n  const filterStatuses = reactive([\n    { key: \"active\", label: \"Active\", checked: true },\n    { key: \"inactive\", label: \"Inactive\", checked: false },\n    { key: \"pending\", label: \"Pending\", checked: false },\n  ]);\n\n  const filterProducts = reactive([\n    { key: \"courses\", label: \"Courses\", checked: true },\n    { key: \"templates\", label: \"Templates\", checked: true },\n    { key: \"mockups\", label: \"Mockups\", checked: false },\n    { key: \"guides\", label: \"Guides\", checked: false },\n  ]);\n\n  const resetFilters = () => {\n    filterChannels.forEach((c) => (c.checked = false));\n    filterStatuses.forEach((s) => (s.checked = false));\n    filterProducts.forEach((p) => (p.checked = false));\n  };\n\n  const applyFilters = () => {\n    filterOpen.value = false;\n    useSonner(\"Filters applied\", {\n      description: \"The dashboard has been updated with your filter selection.\",\n    });\n  };\n\n  // ─── Command / search dialog ─────────────────────────────────────────────────\n  const searchOpen = ref(false);\n  const handleKeydown = (e: KeyboardEvent) => {\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n  };\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // ─── Date range ───────────────────────────────────────────────────────────────\n  const dateRange = ref({ start: new Date(\"2025-01-10\"), end: new Date(\"2025-01-16\") });\n\n  // ─── Time tabs + stacked bar chart ────────────────────────────────────────────\n  const timeTabs = [\n    { value: \"12m\", label: \"12 months\", short: \"12m\" },\n    { value: \"30d\", label: \"30 days\", short: \"30d\" },\n    { value: \"7d\", label: \"7 days\", short: \"7d\" },\n    { value: \"24h\", label: \"24 hours\", short: \"24h\" },\n  ];\n  const activeTimeTab = ref(\"12m\");\n\n  const chartDataByTab: Record<\n    string,\n    { categories: string[]; series: { name: string; data: number[] }[] }\n  > = {\n    \"12m\": {\n      categories: [\n        \"Jan\",\n        \"Feb\",\n        \"Mar\",\n        \"Apr\",\n        \"May\",\n        \"Jun\",\n        \"Jul\",\n        \"Aug\",\n        \"Sep\",\n        \"Oct\",\n        \"Nov\",\n        \"Dec\",\n      ],\n      series: [\n        { name: \"2025\", data: [65, 72, 68, 80, 85, 92, 98, 88, 96, 102, 110, 122] },\n        { name: \"2024\", data: [48, 55, 52, 62, 68, 74, 78, 70, 78, 84, 90, 98] },\n        { name: \"2023\", data: [32, 38, 35, 44, 50, 56, 58, 52, 60, 66, 70, 78] },\n        { name: \"Series 4\", data: [18, 22, 20, 26, 28, 32, 34, 28, 34, 38, 40, 46] },\n      ],\n    },\n    \"30d\": {\n      categories: [\"Week 1\", \"Week 2\", \"Week 3\", \"Week 4\"],\n      series: [\n        { name: \"2025\", data: [280, 312, 295, 334] },\n        { name: \"2024\", data: [218, 242, 228, 260] },\n        { name: \"2023\", data: [155, 178, 162, 188] },\n        { name: \"Series 4\", data: [86, 100, 90, 112] },\n      ],\n    },\n    \"7d\": {\n      categories: [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"],\n      series: [\n        { name: \"2025\", data: [38, 52, 46, 60, 72, 56, 42] },\n        { name: \"2024\", data: [30, 42, 36, 48, 58, 44, 34] },\n        { name: \"2023\", data: [22, 30, 26, 34, 42, 32, 24] },\n        { name: \"Series 4\", data: [12, 16, 14, 20, 24, 18, 14] },\n      ],\n    },\n    \"24h\": {\n      categories: [\"12am\", \"3am\", \"6am\", \"9am\", \"12pm\", \"3pm\", \"6pm\", \"9pm\"],\n      series: [\n        { name: \"2025\", data: [4, 2, 8, 24, 42, 55, 46, 28] },\n        { name: \"2024\", data: [3, 2, 6, 19, 34, 44, 36, 22] },\n        { name: \"2023\", data: [2, 1, 4, 14, 24, 32, 26, 16] },\n        { name: \"Series 4\", data: [1, 1, 3, 8, 14, 18, 15, 10] },\n      ],\n    },\n  };\n\n  const chartSeries = computed(() => chartDataByTab[activeTimeTab.value]?.series ?? []);\n\n  const chartOptions = computed<ApexOptions>(() => ({\n    chart: {\n      type: \"bar\",\n      stacked: true,\n      background: \"transparent\",\n      toolbar: { show: false },\n      parentHeightOffset: 0,\n      animations: { enabled: true, speed: 350, easing: \"easeinout\" },\n    },\n    colors: [\n      \"var(--color-primary)\",\n      \"color-mix(in oklab, var(--color-primary) 70%, white)\",\n      \"color-mix(in oklab, var(--color-primary) 45%, white)\",\n      \"color-mix(in oklab, var(--color-primary) 22%, white)\",\n    ],\n    plotOptions: {\n      bar: { columnWidth: \"55%\", borderRadius: 3, borderRadiusApplication: \"end\" },\n    },\n    dataLabels: { enabled: false },\n    grid: {\n      strokeDashArray: 4,\n      xaxis: { lines: { show: false } },\n      yaxis: { lines: { show: true } },\n      padding: { left: 0, right: 0 },\n    },\n    xaxis: {\n      categories: chartDataByTab[activeTimeTab.value]?.categories,\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n    },\n    yaxis: { show: false },\n    legend: {\n      position: \"top\",\n      horizontalAlign: \"right\",\n      offsetY: -4,\n      markers: { size: 6 },\n    },\n    tooltip: { shared: true, intersect: false },\n  }));\n\n  // ─── KPI cards ───────────────────────────────────────────────────────────────\n  const kpiCards = [\n    {\n      label: \"Today's revenue\",\n      value: \"$1,280\",\n      trend: \"15%\",\n      positive: true,\n      sparkData: [22, 28, 24, 32, 30, 38, 35, 40, 36, 44, 48, 52, 58, 62],\n    },\n    {\n      label: \"Today's orders\",\n      value: \"14\",\n      trend: \"10%\",\n      positive: false,\n      sparkData: [30, 28, 32, 25, 22, 28, 20, 18, 22, 16, 14, 18, 12, 10],\n    },\n    {\n      label: \"Avg. order value\",\n      value: \"$91.42\",\n      trend: \"20%\",\n      positive: true,\n      sparkData: [55, 58, 54, 60, 64, 62, 68, 72, 70, 78, 82, 86, 88, 92],\n    },\n  ];\n\n  const sparklineOptions = (positive: boolean): ApexOptions => ({\n    chart: {\n      type: \"area\",\n      background: \"transparent\",\n      sparkline: { enabled: true },\n      parentHeightOffset: 0,\n      animations: { enabled: false },\n    },\n    stroke: { width: 2, curve: \"smooth\" },\n    colors: [positive ? \"#10b981\" : \"#ef4444\"],\n    fill: {\n      type: \"gradient\",\n      gradient: {\n        shadeIntensity: 1,\n        opacityFrom: positive ? 0.18 : 0.12,\n        opacityTo: 0,\n        stops: [0, 100],\n      },\n    },\n    tooltip: { enabled: false },\n    xaxis: {\n      labels: { show: false },\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n    },\n    yaxis: { show: false },\n  });\n\n  // ─── Activity actions ─────────────────────────────────────────────────────────\n  const downloadActivity = () => {\n    useSonner(\"Downloading records…\", {\n      description: \"Your activity records are being prepared and will download shortly.\",\n    });\n  };\n\n  // ─── Activity feed ────────────────────────────────────────────────────────────\n  const activityFeed = [\n    {\n      name: \"Demi Wikinson\",\n      product: \"Webflow 101\",\n      avatar: \"https://i.pravatar.cc/150?img=1\",\n      online: true,\n      time: undefined,\n    },\n    {\n      name: \"Drew Cano\",\n      product: \"The Figma Dashboard Bundle\",\n      avatar: \"https://i.pravatar.cc/150?img=8\",\n      online: false,\n      time: \"3 hours ago\",\n    },\n    {\n      name: \"Aliah Lane\",\n      product: \"SEO Masterclass\",\n      avatar: \"https://i.pravatar.cc/150?img=2\",\n      online: true,\n      time: undefined,\n    },\n    {\n      name: \"Zahir Mays\",\n      product: \"The Figma Dashboard Bundle\",\n      avatar: \"https://i.pravatar.cc/150?img=9\",\n      online: false,\n      time: \"4 hours ago\",\n    },\n    {\n      name: \"Lana Steiner\",\n      product: \"Figma Mockups\",\n      avatar: \"https://i.pravatar.cc/150?img=3\",\n      online: true,\n      time: undefined,\n    },\n    {\n      name: \"Rene Wells\",\n      product: \"The Design Handbook\",\n      avatar: \"https://i.pravatar.cc/150?img=10\",\n      online: false,\n      time: \"4 hours ago\",\n    },\n    {\n      name: \"Candice Wu\",\n      product: \"Webflow 101\",\n      avatar: \"https://i.pravatar.cc/150?img=4\",\n      online: false,\n      time: undefined,\n    },\n    {\n      name: \"Joshua Wilson\",\n      product: \"Phone 13 Mockups\",\n      avatar: \"https://i.pravatar.cc/150?img=11\",\n      online: false,\n      time: \"4 hours ago\",\n    },\n    {\n      name: \"Ava Wright\",\n      product: \"SEO Masterclass\",\n      avatar: \"https://i.pravatar.cc/150?img=5\",\n      online: false,\n      time: undefined,\n    },\n    {\n      name: \"Lori Bryson\",\n      product: \"SEO Masterclass\",\n      avatar: \"https://i.pravatar.cc/150?img=12\",\n      online: false,\n      time: \"4 hours ago\",\n    },\n    {\n      name: \"Koray Okumus\",\n      product: \"SEO Masterclass\",\n      avatar: \"https://i.pravatar.cc/150?img=6\",\n      online: false,\n      time: undefined,\n    },\n    {\n      name: \"Loki Bright\",\n      product: \"Figma Mockups\",\n      avatar: \"https://i.pravatar.cc/150?img=13\",\n      online: false,\n      time: \"5 hours ago\",\n    },\n    {\n      name: \"Andi Lane\",\n      product: \"The Guide to Backlinks\",\n      avatar: \"https://i.pravatar.cc/150?img=7\",\n      online: true,\n      time: undefined,\n    },\n    {\n      name: \"Anita Cruz\",\n      product: \"The Guide to Backlinks\",\n      avatar: \"https://i.pravatar.cc/150?img=14\",\n      online: false,\n      time: \"6 hours ago\",\n    },\n  ];\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards11.vue","components":["apexcharts","avatar","badge","button","button-group","checkbox","command","container","datepicker","dialog","dropdown-menu","kbd","popover","radio-group","tooltip"]},{"name":"Dashboards 12","fileName":"BlockDashboards12.vue","file":"<template>\n  <div class=\"bg-background text-foreground min-h-screen\">\n    <!-- ─── Add card dialog ─────────────────────────────────────────────────── -->\n    <UiDialog v-model:open=\"addCardOpen\" @update:open=\"onAddCardClose\">\n      <UiDialogContent class=\"sm:max-w-sm\">\n        <UiDialogHeader>\n          <UiDialogTitle>Add new card</UiDialogTitle>\n          <UiDialogDescription>Enter your card details below.</UiDialogDescription>\n        </UiDialogHeader>\n\n        <form @submit=\"submitAddCard\">\n          <fieldset :disabled=\"isAddingCard\" class=\"space-y-4 py-1\">\n            <UiVeeInput required label=\"Card label\" name=\"label\" placeholder=\"e.g. Personal Visa\" />\n            <UiVeeInput\n              required\n              label=\"Cardholder name\"\n              name=\"holderName\"\n              placeholder=\"e.g. SASHA PRYCE\"\n            />\n            <div class=\"grid grid-cols-2 gap-3\">\n              <UiVeeInput\n                required\n                label=\"Card number\"\n                name=\"cardNumber\"\n                placeholder=\"1234 1234 1234 1234\"\n                :maxlength=\"19\"\n                @input=\"formatCardNumber\"\n              />\n              <UiVeeInput\n                required\n                label=\"Expiry\"\n                name=\"expiry\"\n                placeholder=\"06/28\"\n                :maxlength=\"5\"\n                @input=\"formatExpiry\"\n              />\n            </div>\n          </fieldset>\n\n          <UiDialogFooter class=\"mt-4\">\n            <UiButton type=\"button\" variant=\"outline\" @click=\"addCardOpen = false\">Cancel</UiButton>\n            <UiButton type=\"submit\" :disabled=\"isAddingCard\">Add card</UiButton>\n          </UiDialogFooter>\n        </form>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- ─── Filter dialog ──────────────────────────────────────────────────── -->\n    <UiDialog v-model:open=\"filterOpen\">\n      <UiDialogContent class=\"sm:max-w-sm\">\n        <UiDialogHeader>\n          <UiDialogTitle>Apply filter</UiDialogTitle>\n          <UiDialogDescription\n            >Filter transactions by category, account, or amount.</UiDialogDescription\n          >\n        </UiDialogHeader>\n\n        <div class=\"space-y-5 py-1\">\n          <div class=\"space-y-2.5\">\n            <p class=\"text-sm font-medium\">Category</p>\n            <div class=\"space-y-2\">\n              <label\n                v-for=\"cat in filterCategories\"\n                :key=\"cat.key\"\n                class=\"flex cursor-pointer items-center gap-2.5 text-sm\"\n              >\n                <UiCheckbox :id=\"`cat-${cat.key}`\" v-model:checked=\"cat.checked\" />\n                {{ cat.label }}\n              </label>\n            </div>\n          </div>\n\n          <div class=\"space-y-2.5\">\n            <p class=\"text-sm font-medium\">Account</p>\n            <div class=\"space-y-2\">\n              <label\n                v-for=\"acc in filterAccounts\"\n                :key=\"acc.key\"\n                class=\"flex cursor-pointer items-center gap-2.5 text-sm\"\n              >\n                <UiCheckbox :id=\"`acc-${acc.key}`\" v-model:checked=\"acc.checked\" />\n                {{ acc.label }}\n              </label>\n            </div>\n          </div>\n\n          <div class=\"space-y-2.5\">\n            <p class=\"text-sm font-medium\">Transaction type</p>\n            <div class=\"space-y-2\">\n              <label\n                v-for=\"type in filterTypes\"\n                :key=\"type.key\"\n                class=\"flex cursor-pointer items-center gap-2.5 text-sm\"\n              >\n                <UiCheckbox :id=\"`type-${type.key}`\" v-model:checked=\"type.checked\" />\n                {{ type.label }}\n              </label>\n            </div>\n          </div>\n        </div>\n\n        <UiDialogFooter>\n          <UiButton variant=\"outline\" @click=\"resetFilters\">Reset</UiButton>\n          <UiButton @click=\"applyFilters\">Apply</UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- ─── Command dialog ─────────────────────────────────────────────────── -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search\"\n      description=\"Search transactions and actions\"\n    >\n      <UiCommandInput placeholder=\"Search transactions, categories…\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Quick actions\">\n          <UiCommandItem\n            value=\"Add card\"\n            @select=\"\n              () => {\n                searchOpen = false;\n                addCardOpen = true;\n              }\n            \"\n          >\n            <Icon name=\"heroicons:credit-card\" /><span>Add new card</span>\n          </UiCommandItem>\n          <UiCommandItem\n            value=\"Apply filter\"\n            @select=\"\n              () => {\n                searchOpen = false;\n                filterOpen = true;\n              }\n            \"\n          >\n            <Icon name=\"heroicons:funnel\" /><span>Apply filter</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Export transactions\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:arrow-down-tray\" /><span>Export transactions</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Transactions\">\n          <UiCommandItem\n            v-for=\"tx in allTransactions.slice(0, 5)\"\n            :key=\"tx.id\"\n            :value=\"tx.name\"\n            @select=\"searchOpen = false\"\n          >\n            <Icon name=\"heroicons:banknotes\" />\n            <span\n              >{{ tx.name }} — {{ tx.amount > 0 ? \"+\" : \"\" }}${{\n                Math.abs(tx.amount).toFixed(2)\n              }}</span\n            >\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Categories\">\n          <UiCommandItem\n            v-for=\"cat in categoryOptions\"\n            :key=\"cat\"\n            :value=\"cat\"\n            @select=\"searchOpen = false\"\n          >\n            <Icon name=\"heroicons:tag\" /><span>{{ cat }}</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- ─── Sticky header ──────────────────────────────────────────────────── -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile menu -->\n          <UiTooltip>\n            <UiPopover class=\"lg:hidden\">\n              <UiTooltipTrigger as-child>\n                <UiPopoverTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"lg:hidden\">\n                    <Icon name=\"heroicons:bars-3\" class=\"size-5\" />\n                  </UiButton>\n                </UiPopoverTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Menu</p></UiTooltipContent>\n              <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n                <UiButton\n                  v-for=\"item in navItems\"\n                  :key=\"item.label\"\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  class=\"w-full justify-start\"\n                  :class=\"item.active ? 'bg-muted text-foreground' : 'text-muted-foreground'\"\n                >\n                  {{ item.label }}\n                </UiButton>\n              </UiPopoverContent>\n            </UiPopover>\n          </UiTooltip>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"item.active ? 'bg-muted text-foreground shadow-xs' : 'text-muted-foreground'\"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right icon actions -->\n        <div class=\"flex items-center gap-1\">\n          <!-- Search -->\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" @click=\"searchOpen = true\">\n                <Icon name=\"heroicons:magnifying-glass\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Search (⌘K)</p></UiTooltipContent>\n          </UiTooltip>\n\n          <!-- Settings -->\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\">\n                    <Icon name=\"heroicons:cog-6-tooth\" class=\"text-muted-foreground size-5\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Settings</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n                <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notification preferences\" />\n                <UiDropdownMenuItem icon=\"heroicons:shield-check\" title=\"Security & privacy\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing & plans\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <!-- Notifications -->\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"relative\">\n                    <Icon name=\"heroicons:bell\" class=\"text-muted-foreground size-5\" />\n                    <span\n                      class=\"border-background bg-primary absolute top-1.5 right-1.5 size-2 rounded-full border\"\n                    />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Notifications</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-96\">\n                <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                  <span>Notifications</span>\n                  <UiBadge variant=\"secondary\" size=\"sm\">3 new</UiBadge>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  icon=\"heroicons:credit-card\"\n                  title=\"New card transaction: -$18.99 Spotify\"\n                >\n                  <template #shortcut>2m ago</template>\n                </UiDropdownMenuItem>\n                <UiDropdownMenuItem\n                  icon=\"heroicons:arrow-trending-up\"\n                  title=\"Balance increased by $88.00\"\n                >\n                  <template #shortcut>1h ago</template>\n                </UiDropdownMenuItem>\n                <UiDropdownMenuItem\n                  icon=\"heroicons:exclamation-triangle\"\n                  title=\"Subscription renewal in 3 days\"\n                >\n                  <template #shortcut>Today</template>\n                </UiDropdownMenuItem>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:check\" title=\"Mark all as read\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <!-- Avatar -->\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                    <UiAvatar\n                      src=\"https://i.pravatar.cc/150?img=47\"\n                      alt=\"Sasha Pryce\"\n                      fallback=\"OR\"\n                      class=\"size-8 cursor-pointer\"\n                    />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Account</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>\n                  <div class=\"flex flex-col gap-0.5\">\n                    <p class=\"text-sm font-medium\">Sasha Pryce</p>\n                    <p class=\"text-muted-foreground text-xs font-normal\">sasha@ui-thing.com</p>\n                  </div>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:question-mark-circle\" title=\"Help & support\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- ─── Page content ───────────────────────────────────────────────────── -->\n    <UiContainer class=\"py-8\">\n      <div class=\"grid gap-6 lg:grid-cols-[1fr_440px]\">\n        <!-- ─── Left: Balance + Transactions ──────────────────────────────── -->\n        <Motion\n          :initial=\"{ opacity: 0, y: 16 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n          class=\"border-border/70 bg-card rounded-2xl border shadow-xs\"\n        >\n          <!-- Balance section -->\n          <div class=\"flex flex-col gap-4 p-6 pb-2 sm:flex-row sm:items-start sm:justify-between\">\n            <div>\n              <p class=\"text-muted-foreground text-sm\">Your balance</p>\n              <p class=\"mt-1 flex items-center gap-2 text-3xl font-bold tracking-tight\">\n                <span>🇺🇸</span>\n                {{ balanceByTab[activeBalanceTab] }}\n              </p>\n            </div>\n            <!-- Account type tabs -->\n            <UiButtonGroup class=\"self-start\">\n              <UiButton\n                v-for=\"tab in balanceTabs\"\n                :key=\"tab.value\"\n                variant=\"outline\"\n                size=\"sm\"\n                :class=\"\n                  activeBalanceTab === tab.value ? 'bg-muted shadow-xs' : 'text-muted-foreground'\n                \"\n                @click=\"activeBalanceTab = tab.value\"\n              >\n                {{ tab.label }}\n              </UiButton>\n            </UiButtonGroup>\n          </div>\n\n          <!-- Area chart -->\n          <div class=\"px-2\">\n            <UiApexchart\n              :key=\"activeBalanceTab\"\n              type=\"area\"\n              height=\"200\"\n              :series=\"chartSeries\"\n              :options=\"chartOptions\"\n            />\n          </div>\n\n          <!-- Transaction history -->\n          <div class=\"px-6 pt-2 pb-3\">\n            <div class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\">\n              <h2 class=\"text-base font-semibold\">Transaction history</h2>\n              <div class=\"flex items-center gap-2\">\n                <!-- Date picker -->\n                <UiDatepicker v-model.range=\"txDateRange\">\n                  <template #default=\"{ togglePopover }\">\n                    <UiTooltip>\n                      <UiTooltipTrigger as-child>\n                        <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\" @click=\"togglePopover\">\n                          <Icon\n                            name=\"heroicons:calendar-days\"\n                            class=\"text-muted-foreground size-4\"\n                          />\n                          <span class=\"hidden sm:inline\">Select dates</span>\n                        </UiButton>\n                      </UiTooltipTrigger>\n                      <UiTooltipContent><p>Select date range</p></UiTooltipContent>\n                    </UiTooltip>\n                  </template>\n                </UiDatepicker>\n\n                <!-- Filter -->\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\" @click=\"filterOpen = true\">\n                      <Icon name=\"heroicons:adjustments-horizontal\" class=\"size-4\" />\n                      <span class=\"hidden sm:inline\">Apply filter</span>\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Filter transactions</p></UiTooltipContent>\n                </UiTooltip>\n              </div>\n            </div>\n          </div>\n\n          <!-- TanStack table -->\n          <UiTanStackTable\n            :data=\"allTransactions\"\n            :columns=\"txColumns\"\n            :show-rows-per-page=\"false\"\n            :show-page-info=\"false\"\n            :show-pagination=\"false\"\n            :show-selected-count=\"false\"\n            :show-footer=\"true\"\n            :table-options=\"{ initialState: { pagination: { pageSize: 7, pageIndex: 0 } } }\"\n          >\n            <!-- Transaction cell -->\n            <template #transaction-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <span\n                  class=\"flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-bold\"\n                  :style=\"{ backgroundColor: row.original.iconBg, color: row.original.iconColor }\"\n                >\n                  {{ row.original.fallback }}\n                </span>\n                <span class=\"text-sm font-medium\">{{ row.original.name }}</span>\n              </div>\n            </template>\n\n            <!-- Amount cell -->\n            <template #amount-cell=\"{ row }\">\n              <span\n                class=\"text-sm font-semibold tabular-nums\"\n                :class=\"\n                  row.original.amount > 0\n                    ? 'text-emerald-600 dark:text-emerald-400'\n                    : 'text-foreground'\n                \"\n              >\n                {{ row.original.amount > 0 ? \"+\" : \"\" }}${{\n                  Math.abs(row.original.amount).toFixed(2)\n                }}\n              </span>\n            </template>\n\n            <!-- Category cell -->\n            <template #category-cell=\"{ row }\">\n              <span\n                class=\"border-border/60 inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium\"\n              >\n                <span\n                  class=\"size-1.5 shrink-0 rounded-full\"\n                  :style=\"{ backgroundColor: row.original.categoryColor }\"\n                />\n                {{ row.original.category }}\n              </span>\n            </template>\n\n            <!-- Account cell -->\n            <template #account-cell=\"{ row }\">\n              <div class=\"flex items-center gap-2\">\n                <!-- <span\n                  class=\"flex h-5 items-center justify-center rounded px-1.5 text-[10px] font-black tracking-wide\"\n                  :style=\"\n                    row.original.cardType === 'visa'\n                      ? { background: '#1a1f71', color: '#fff' }\n                      : { background: '#eb001b', color: '#fff' }\n                  \"\n                >\n                  {{ row.original.cardType === \"visa\" ? \"VISA\" : \"MC\" }}\n                </span> -->\n                <div\n                  v-if=\"row.original.cardType == 'visa'\"\n                  class=\"inline-flex items-center justify-center rounded border px-1\"\n                >\n                  <Icon name=\"simple-icons:visa\" class=\"size-8 shrink-0\" />\n                </div>\n                <div v-else class=\"inline-flex items-center justify-center rounded border px-1\">\n                  <Icon name=\"simple-icons:mastercard\" class=\"size-8 shrink-0\" />\n                </div>\n                <div class=\"leading-tight\">\n                  <p class=\"text-xs font-medium\">\n                    {{ row.original.cardType === \"visa\" ? \"Visa\" : \"Mastercard\" }}\n                    {{ row.original.cardLast4 }}\n                  </p>\n                  <p class=\"text-muted-foreground text-xs\">Expiry {{ row.original.expiry }}</p>\n                </div>\n              </div>\n            </template>\n\n            <!-- Actions cell -->\n            <template #actions-cell=\"{ row }\">\n              <UiTooltip>\n                <UiTooltipTrigger as-child>\n                  <UiButton\n                    variant=\"ghost\"\n                    size=\"icon-sm\"\n                    class=\"text-muted-foreground\"\n                    @click=\"editTransaction(row.original)\"\n                  >\n                    <Icon name=\"heroicons:pencil-square\" class=\"size-4\" />\n                  </UiButton>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Edit transaction</p></UiTooltipContent>\n              </UiTooltip>\n            </template>\n\n            <!-- Footer with pagination -->\n            <template #footer=\"{ table }\">\n              <div\n                class=\"border-border/60 flex w-full flex-col gap-3 border-t px-4 py-3 sm:flex-row sm:items-center sm:justify-between\"\n              >\n                <p class=\"text-muted-foreground shrink-0 text-xs\">\n                  {{ allTransactions.length }} transactions\n                </p>\n                <UiPagination\n                  class=\"mx-0! justify-end!\"\n                  :total=\"allTransactions.length\"\n                  :items-per-page=\"7\"\n                  :sibling-count=\"1\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList v-slot=\"{ items }\" class=\"gap-1\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"sm\" class=\"gap-1.5\">\n                        <Icon name=\"heroicons:chevron-left\" class=\"size-3.5\" />\n                        <span class=\"hidden sm:inline\">Previous</span>\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <template v-for=\"(item, idx) in items\" :key=\"idx\">\n                      <UiPaginationItem v-if=\"item.type === 'page'\" as-child v-bind=\"item\" />\n                      <UiPaginationEllipsis\n                        v-else-if=\"item.type === 'ellipsis'\"\n                        as-child\n                        v-bind=\"item\"\n                        icon=\"heroicons:ellipsis-horizontal\"\n                      />\n                    </template>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"sm\" class=\"gap-1.5\">\n                        <span class=\"hidden sm:inline\">Next</span>\n                        <Icon name=\"heroicons:chevron-right\" class=\"size-3.5\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n              </div>\n            </template>\n          </UiTanStackTable>\n        </Motion>\n\n        <!-- ─── Right: Profile + Cards + Budgets ──────────────────────────── -->\n        <Motion\n          :initial=\"{ opacity: 0, y: 16 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ duration: 0.4, delay: 0.18, ease: 'easeOut' }\"\n          class=\"border-border/70 bg-card overflow-hidden rounded-2xl border shadow-xs\"\n        >\n          <!-- Profile banner -->\n          <div\n            class=\"relative h-28 bg-linear-to-br from-indigo-200 via-purple-100 to-rose-200 dark:from-indigo-900/60 dark:via-purple-900/40 dark:to-rose-900/60\"\n          />\n\n          <!-- Avatar + name section -->\n          <div class=\"px-5 pb-5\">\n            <div class=\"relative -mt-10 mb-3 flex items-end gap-3\">\n              <div class=\"relative shrink-0\">\n                <UiAvatar\n                  src=\"https://i.pravatar.cc/150?img=47\"\n                  alt=\"Sasha Pryce\"\n                  fallback=\"OR\"\n                  class=\"ring-card size-20 ring-4\"\n                />\n                <div\n                  class=\"ring-card absolute right-0 bottom-0 flex size-6 items-center justify-center rounded-full bg-blue-500 ring-2\"\n                >\n                  <Icon name=\"heroicons:check\" class=\"size-3 text-white\" />\n                </div>\n              </div>\n            </div>\n\n            <div class=\"flex flex-wrap items-center gap-2\">\n              <h2 class=\"text-xl font-bold\">Sasha Pryce</h2>\n              <span\n                class=\"border-border/60 bg-muted/40 inline-flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-xs font-medium\"\n              >\n                <span class=\"bg-primary size-1.5 rounded-full\" />\n                Premium\n              </span>\n            </div>\n            <p class=\"text-muted-foreground mt-0.5 text-sm\">sasha@ui-thing.com</p>\n          </div>\n\n          <div class=\"border-border/60 border-t\" />\n\n          <!-- My cards section -->\n          <div class=\"p-5\">\n            <div class=\"mb-3 flex items-center justify-between\">\n              <h3 class=\"text-sm font-semibold\">My cards</h3>\n              <UiTooltip>\n                <UiTooltipTrigger as-child>\n                  <UiButton\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    class=\"text-muted-foreground h-7 gap-1.5 text-xs\"\n                    @click=\"addCardOpen = true\"\n                  >\n                    <Icon name=\"heroicons:plus\" class=\"size-3.5\" />\n                    Add card\n                  </UiButton>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Add new card</p></UiTooltipContent>\n              </UiTooltip>\n            </div>\n\n            <!-- Scrollable cards -->\n            <div\n              class=\"flex scrollbar-none gap-3 overflow-x-auto pb-2 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden\"\n            >\n              <div\n                v-for=\"card in cards\"\n                :key=\"card.id\"\n                class=\"border-border/50 w-60 shrink-0 overflow-hidden rounded-lg border shadow-sm\"\n              >\n                <!-- Card top -->\n                <div\n                  class=\"from-muted to-muted/50 flex items-start justify-between bg-linear-to-br px-3.5 py-3.5\"\n                >\n                  <p class=\"text-muted-foreground truncate text-sm font-medium\">{{ card.label }}</p>\n                  <Icon name=\"heroicons:signal\" class=\"text-muted-foreground/60 size-5 rotate-90\" />\n                </div>\n                <!-- Card bottom -->\n                <div class=\"bg-zinc-900 px-3.5 py-4 text-zinc-50\">\n                  <div class=\"mb-2 flex items-center justify-between\">\n                    <div class=\"leading-tight\">\n                      <p class=\"text-xs font-medium tracking-wider uppercase opacity-60\">\n                        {{ card.holderName }}\n                      </p>\n                      <p class=\"text-xs opacity-60\">{{ card.expiry }}</p>\n                    </div>\n                    <!-- Toggle -->\n                    <UiSwitch v-model=\"card.active\" />\n                  </div>\n                  <p class=\"font-mono text-sm tracking-widest opacity-80\">\n                    {{ card.cardNumber }}\n                  </p>\n                </div>\n              </div>\n            </div>\n\n            <!-- Dot indicators -->\n            <div class=\"mt-2.5 flex items-center gap-1.5\">\n              <span\n                v-for=\"(card, i) in cards\"\n                :key=\"card.id\"\n                class=\"rounded-full transition-all\"\n                :class=\"i === 0 ? 'bg-primary size-2' : 'bg-muted-foreground/30 size-1.5'\"\n              />\n            </div>\n          </div>\n\n          <div class=\"border-border/60 border-t\" />\n\n          <!-- My budgets section -->\n          <div class=\"p-5\">\n            <div class=\"mb-4 flex items-center justify-between\">\n              <h3 class=\"text-sm font-semibold\">My budgets</h3>\n              <UiTooltip>\n                <UiDropdownMenu>\n                  <UiTooltipTrigger as-child>\n                    <UiDropdownMenuTrigger as-child>\n                      <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground\">\n                        <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                      </UiButton>\n                    </UiDropdownMenuTrigger>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Budget options</p></UiTooltipContent>\n                  <UiDropdownMenuContent align=\"end\">\n                    <UiDropdownMenuItem icon=\"heroicons:plus\" title=\"Add budget\" />\n                    <UiDropdownMenuItem icon=\"heroicons:pencil\" title=\"Edit budgets\" />\n                    <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Reset periods\" />\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </UiTooltip>\n            </div>\n\n            <div class=\"space-y-3\">\n              <div\n                v-for=\"budget in budgets\"\n                :key=\"budget.name\"\n                class=\"flex items-center gap-3 rounded-xl px-3 py-2.5\"\n                :style=\"{ backgroundColor: isDark ? budget.darkBgColor : budget.bgColor }\"\n              >\n                <div\n                  class=\"flex size-9 shrink-0 items-center justify-center rounded-xl\"\n                  :style=\"{ backgroundColor: isDark ? budget.darkIconBg : budget.iconBg }\"\n                >\n                  <Icon :name=\"budget.icon\" class=\"size-4\" :style=\"{ color: budget.color }\" />\n                </div>\n                <div class=\"min-w-0 flex-1\">\n                  <div class=\"flex items-center justify-between\">\n                    <p class=\"text-xs font-semibold\" :style=\"{ color: budget.color }\">\n                      {{ budget.name }}\n                    </p>\n                    <p class=\"text-muted-foreground text-xs font-medium\">${{ budget.left }} left</p>\n                  </div>\n                  <div\n                    class=\"mt-1.5 h-1.5 w-full overflow-hidden rounded-full bg-black/5 dark:bg-white/10\"\n                  >\n                    <div\n                      class=\"h-full rounded-full transition-all\"\n                      :style=\"{ width: `${budget.percent}%`, backgroundColor: budget.color }\"\n                    />\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n        </Motion>\n      </div>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ColumnDef } from \"@tanstack/vue-table\";\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n  import { object, string } from \"yup\";\n\n  import type { TanStackTableFeatures } from \"~/components/Ui/TanStackTable.vue\";\n\n  // ─── Navigation ──────────────────────────────────────────────────────────────\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // ─── Keyboard shortcut ────────────────────────────────────────────────────────\n  const searchOpen = ref(false);\n  const handleKeydown = (e: KeyboardEvent) => {\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n  };\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // ─── Balance tabs + chart ─────────────────────────────────────────────────────\n  const balanceTabs = [\n    { value: \"personal\", label: \"Personal\" },\n    { value: \"business\", label: \"Business\" },\n    { value: \"credit\", label: \"Credit\" },\n  ];\n  const activeBalanceTab = ref(\"personal\");\n\n  const balanceByTab: Record<string, string> = {\n    personal: \"$40,206.20\",\n    business: \"$128,450.00\",\n    credit: \"-$3,120.55\",\n  };\n\n  const chartDataByTab: Record<string, { name: string; data: number[] }[]> = {\n    personal: [\n      {\n        name: \"Balance\",\n        data: [38200, 39100, 38700, 39800, 39400, 40200, 40800, 39900, 40500, 41200, 40800, 40206],\n      },\n      {\n        name: \"Spending\",\n        data: [1100, 1350, 1080, 1520, 1240, 1480, 1720, 1180, 1360, 1540, 1660, 1480],\n      },\n      {\n        name: \"Income\",\n        data: [2400, 2700, 2550, 2850, 2650, 2950, 3100, 2750, 3000, 3200, 2850, 3050],\n      },\n    ],\n    business: [\n      {\n        name: \"Revenue\",\n        data: [\n          98000, 104000, 97500, 112000, 108000, 118000, 122000, 115000, 124000, 131000, 127000,\n          128450,\n        ],\n      },\n      {\n        name: \"Expenses\",\n        data: [42000, 46000, 41000, 50000, 47000, 52000, 55000, 50000, 54000, 58000, 56000, 58000],\n      },\n      {\n        name: \"Profit\",\n        data: [56000, 58000, 56500, 62000, 61000, 66000, 67000, 65000, 70000, 73000, 71000, 70450],\n      },\n    ],\n    credit: [\n      {\n        name: \"Balance\",\n        data: [-1800, -2100, -1650, -2400, -2200, -2550, -2800, -2400, -2700, -3000, -2900, -3121],\n      },\n      {\n        name: \"Limit\",\n        data: [5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000],\n      },\n      { name: \"Payments\", data: [600, 750, 580, 880, 780, 920, 1050, 820, 960, 1080, 980, 1020] },\n    ],\n  };\n\n  const chartSeries = computed(() => chartDataByTab[activeBalanceTab.value]);\n\n  const chartOptions = computed<ApexOptions>(() => ({\n    chart: {\n      type: \"area\",\n      background: \"transparent\",\n      toolbar: { show: false },\n      parentHeightOffset: 0,\n      animations: { enabled: true, speed: 400, easing: \"easeinout\" },\n    },\n    colors: [\n      \"var(--color-primary)\",\n      \"color-mix(in oklab, var(--color-primary) 60%, white)\",\n      \"color-mix(in oklab, var(--color-primary) 30%, white)\",\n    ],\n    stroke: { width: [2, 2, 2], curve: \"smooth\" },\n    fill: {\n      type: \"gradient\",\n      gradient: {\n        type: \"vertical\",\n        shadeIntensity: 0.5,\n        opacityFrom: 0.15,\n        opacityTo: 0,\n        stops: [0, 100],\n      },\n    },\n    dataLabels: { enabled: false },\n    markers: { size: 0 },\n    grid: {\n      strokeDashArray: 4,\n      xaxis: { lines: { show: false } },\n      yaxis: { lines: { show: true } },\n      padding: { left: 4, right: 4 },\n    },\n    xaxis: {\n      categories: [\n        \"Jan\",\n        \"Feb\",\n        \"Mar\",\n        \"Apr\",\n        \"May\",\n        \"Jun\",\n        \"Jul\",\n        \"Aug\",\n        \"Sep\",\n        \"Oct\",\n        \"Nov\",\n        \"Dec\",\n      ],\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n      labels: { style: { fontSize: \"11px\" } },\n    },\n    yaxis: { show: false },\n    legend: { show: false },\n    tooltip: { shared: true, intersect: false },\n  }));\n\n  // ─── Date picker ─────────────────────────────────────────────────────────────\n  const txDateRange = ref({ start: new Date(\"2025-01-01\"), end: new Date(\"2025-12-31\") });\n\n  // ─── Filter dialog ────────────────────────────────────────────────────────────\n  const filterOpen = ref(false);\n\n  const filterCategories = reactive([\n    { key: \"income\", label: \"Income\", checked: true },\n    { key: \"subscriptions\", label: \"Subscriptions\", checked: true },\n    { key: \"food\", label: \"Food and dining\", checked: true },\n    { key: \"groceries\", label: \"Groceries\", checked: true },\n    { key: \"travel\", label: \"Travel\", checked: false },\n    { key: \"entertainment\", label: \"Entertainment\", checked: false },\n  ]);\n\n  const filterAccounts = reactive([\n    { key: \"visa\", label: \"Visa 1234\", checked: true },\n    { key: \"mastercard\", label: \"Mastercard 1234\", checked: true },\n    { key: \"savings\", label: \"Savings account\", checked: false },\n  ]);\n\n  const filterTypes = reactive([\n    { key: \"debit\", label: \"Debits (outgoing)\", checked: true },\n    { key: \"credit\", label: \"Credits (incoming)\", checked: true },\n  ]);\n\n  const resetFilters = () => {\n    filterCategories.forEach((c) => (c.checked = false));\n    filterAccounts.forEach((a) => (a.checked = false));\n    filterTypes.forEach((t) => (t.checked = false));\n  };\n\n  const applyFilters = () => {\n    filterOpen.value = false;\n    useSonner(\"Filters applied\", {\n      description: \"Transaction history has been updated with your filter selection.\",\n    });\n  };\n\n  // ─── Transaction table ────────────────────────────────────────────────────────\n  type TransactionRow = {\n    id: number;\n    name: string;\n    fallback: string;\n    iconBg: string;\n    iconColor: string;\n    amount: number;\n    category: string;\n    categoryColor: string;\n    cardType: \"visa\" | \"mastercard\";\n    cardLast4: string;\n    expiry: string;\n  };\n\n  const txColumns: ColumnDef<TanStackTableFeatures, TransactionRow>[] = [\n    {\n      id: \"transaction\",\n      accessorKey: \"name\",\n      header: \"Transaction\",\n    },\n    {\n      id: \"amount\",\n      accessorKey: \"amount\",\n      header: \"Amount\",\n      meta: { class: { th: \"w-28\", td: \"w-28\" } },\n    },\n    {\n      id: \"category\",\n      accessorKey: \"category\",\n      header: \"Category\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden sm:table-cell\", td: \"hidden sm:table-cell\" } },\n    },\n    {\n      id: \"account\",\n      accessorKey: \"cardLast4\",\n      header: \"Account\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden md:table-cell\", td: \"hidden md:table-cell\" } },\n    },\n    {\n      id: \"actions\",\n      header: \"\",\n      enableSorting: false,\n      meta: { class: { th: \"w-10\", td: \"w-10\" } },\n    },\n  ];\n\n  const categoryOptions = [\"Income\", \"Subscriptions\", \"Food and dining\", \"Groceries\", \"Travel\"];\n\n  const allTransactions: TransactionRow[] = [\n    {\n      id: 1,\n      name: \"Spotify\",\n      fallback: \"🎵\",\n      iconBg: \"#1DB954\",\n      iconColor: \"#fff\",\n      amount: -18.99,\n      category: \"Subscriptions\",\n      categoryColor: \"#6366f1\",\n      cardType: \"visa\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 2,\n      name: \"A Coffee\",\n      fallback: \"AC\",\n      iconBg: \"#e5e7eb\",\n      iconColor: \"#374151\",\n      amount: -4.5,\n      category: \"Food and dining\",\n      categoryColor: \"#ec4899\",\n      cardType: \"visa\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 3,\n      name: \"Stripe\",\n      fallback: \"S\",\n      iconBg: \"#635bff\",\n      iconColor: \"#fff\",\n      amount: 88.0,\n      category: \"Income\",\n      categoryColor: \"#10b981\",\n      cardType: \"mastercard\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 4,\n      name: \"Figma\",\n      fallback: \"F\",\n      iconBg: \"#1e1e1e\",\n      iconColor: \"#fff\",\n      amount: -15.0,\n      category: \"Subscriptions\",\n      categoryColor: \"#6366f1\",\n      cardType: \"visa\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 5,\n      name: \"TBF Bakery\",\n      fallback: \"TB\",\n      iconBg: \"#fef3c7\",\n      iconColor: \"#92400e\",\n      amount: -12.5,\n      category: \"Food and dining\",\n      categoryColor: \"#ec4899\",\n      cardType: \"visa\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 6,\n      name: \"Fresh F&V\",\n      fallback: \"FV\",\n      iconBg: \"#dcfce7\",\n      iconColor: \"#166534\",\n      amount: -40.2,\n      category: \"Groceries\",\n      categoryColor: \"#3b82f6\",\n      cardType: \"visa\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 7,\n      name: \"Stripe\",\n      fallback: \"S\",\n      iconBg: \"#635bff\",\n      iconColor: \"#fff\",\n      amount: 88.0,\n      category: \"Income\",\n      categoryColor: \"#10b981\",\n      cardType: \"mastercard\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 8,\n      name: \"Netflix\",\n      fallback: \"N\",\n      iconBg: \"#e50914\",\n      iconColor: \"#fff\",\n      amount: -15.99,\n      category: \"Subscriptions\",\n      categoryColor: \"#6366f1\",\n      cardType: \"visa\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 9,\n      name: \"Amazon\",\n      fallback: \"A\",\n      iconBg: \"#ff9900\",\n      iconColor: \"#000\",\n      amount: -67.8,\n      category: \"Groceries\",\n      categoryColor: \"#3b82f6\",\n      cardType: \"visa\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 10,\n      name: \"Freelance\",\n      fallback: \"FL\",\n      iconBg: \"#dbeafe\",\n      iconColor: \"#1d4ed8\",\n      amount: 350.0,\n      category: \"Income\",\n      categoryColor: \"#10b981\",\n      cardType: \"mastercard\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 11,\n      name: \"Uber Eats\",\n      fallback: \"UE\",\n      iconBg: \"#1c1c1c\",\n      iconColor: \"#06c167\",\n      amount: -32.4,\n      category: \"Food and dining\",\n      categoryColor: \"#ec4899\",\n      cardType: \"visa\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 12,\n      name: \"Apple\",\n      fallback: \"🍎\",\n      iconBg: \"#f3f4f6\",\n      iconColor: \"#111827\",\n      amount: -9.99,\n      category: \"Subscriptions\",\n      categoryColor: \"#6366f1\",\n      cardType: \"visa\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 13,\n      name: \"Whole Foods\",\n      fallback: \"WF\",\n      iconBg: \"#f0fdf4\",\n      iconColor: \"#15803d\",\n      amount: -55.3,\n      category: \"Groceries\",\n      categoryColor: \"#3b82f6\",\n      cardType: \"mastercard\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n    {\n      id: 14,\n      name: \"Consulting\",\n      fallback: \"CO\",\n      iconBg: \"#ede9fe\",\n      iconColor: \"#7c3aed\",\n      amount: 500.0,\n      category: \"Income\",\n      categoryColor: \"#10b981\",\n      cardType: \"mastercard\",\n      cardLast4: \"1234\",\n      expiry: \"06/2025\",\n    },\n  ];\n\n  const editTransaction = (row: TransactionRow) => {\n    useSonner(`Editing transaction`, { description: `Opening editor for \"${row.name}\"` });\n  };\n\n  // ─── Add card dialog ──────────────────────────────────────────────────────────\n  const addCardOpen = ref(false);\n\n  interface CardItem {\n    id: string;\n    label: string;\n    cardNumber: string;\n    holderName: string;\n    expiry: string;\n    active: boolean;\n  }\n\n  const cards = ref<CardItem[]>([\n    {\n      id: \"1\",\n      label: \"Personal Visa\",\n      cardNumber: \"1234 1234 1234 1234\",\n      holderName: \"SASHA PRYCE\",\n      expiry: \"06/28\",\n      active: true,\n    },\n    {\n      id: \"2\",\n      label: \"Business Card\",\n      cardNumber: \"5678 5678 5678 5678\",\n      holderName: \"SASHA PRYCE\",\n      expiry: \"09/26\",\n      active: false,\n    },\n  ]);\n\n  const AddCardSchema = object({\n    label: string().required().label(\"Card label\").min(1).max(50),\n    holderName: string().required().label(\"Cardholder name\").min(2).max(60),\n    cardNumber: string()\n      .required()\n      .label(\"Card number\")\n      .matches(/^\\d{4} \\d{4} \\d{4} \\d{4}$/, \"Must be a valid 16-digit card number\"),\n    expiry: string()\n      .required()\n      .label(\"Expiry\")\n      .matches(/^\\d{2}\\/\\d{2}$/, \"Must be in MM/YY format\"),\n  });\n\n  const {\n    handleSubmit: handleAddCardSubmit,\n    isSubmitting: isAddingCard,\n    resetForm: resetAddCardForm,\n    setFieldValue,\n  } = useForm({ name: \"addCardForm12\", validationSchema: toTypedSchema(AddCardSchema) });\n\n  const formatCardNumber = (e: Event) => {\n    const input = e.target as HTMLInputElement;\n    const cleaned = input.value.replace(/\\D/g, \"\").slice(0, 16);\n    const formatted = cleaned.replace(/(.{4})/g, \"$1 \").trim();\n    input.value = formatted;\n    setFieldValue(\"cardNumber\", formatted);\n  };\n\n  const formatExpiry = (e: Event) => {\n    const input = e.target as HTMLInputElement;\n    let val = input.value.replace(/\\D/g, \"\").slice(0, 4);\n    if (val.length > 2) val = val.slice(0, 2) + \"/\" + val.slice(2);\n    input.value = val;\n    setFieldValue(\"expiry\", val);\n  };\n\n  const submitAddCard = handleAddCardSubmit((values) => {\n    cards.value.push({\n      id: Date.now().toString(),\n      label: values.label,\n      cardNumber: values.cardNumber,\n      holderName: values.holderName.toUpperCase(),\n      expiry: values.expiry,\n      active: true,\n    });\n    addCardOpen.value = false;\n    useSonner(\"Card added\", { description: `\"${values.label}\" has been added to your cards.` });\n    resetAddCardForm();\n  });\n\n  const onAddCardClose = (open: boolean) => {\n    if (!open) resetAddCardForm();\n  };\n\n  // ─── Budgets ──────────────────────────────────────────────────────────────────\n  const colorMode = useColorMode();\n  const isDark = computed(() => colorMode.value === \"dark\");\n\n  const budgets = [\n    {\n      name: \"Subscriptions\",\n      icon: \"heroicons:computer-desktop\",\n      left: 25,\n      percent: 82,\n      color: \"#6366f1\",\n      iconBg: \"#e0e7ff\",\n      bgColor: \"#eef2ff\",\n      darkIconBg: \"rgba(99,102,241,0.18)\",\n      darkBgColor: \"rgba(99,102,241,0.1)\",\n    },\n    {\n      name: \"Food and booze\",\n      icon: \"heroicons:shopping-bag\",\n      left: 120,\n      percent: 56,\n      color: \"#ec4899\",\n      iconBg: \"#fce7f3\",\n      bgColor: \"#fdf2f8\",\n      darkIconBg: \"rgba(236,72,153,0.18)\",\n      darkBgColor: \"rgba(236,72,153,0.1)\",\n    },\n    {\n      name: \"Groceries\",\n      icon: \"heroicons:shopping-cart\",\n      left: 200,\n      percent: 44,\n      color: \"#3b82f6\",\n      iconBg: \"#dbeafe\",\n      bgColor: \"#eff6ff\",\n      darkIconBg: \"rgba(59,130,246,0.18)\",\n      darkBgColor: \"rgba(59,130,246,0.1)\",\n    },\n    {\n      name: \"Savings\",\n      icon: \"heroicons:banknotes\",\n      left: 50,\n      percent: 68,\n      color: \"#10b981\",\n      iconBg: \"#d1fae5\",\n      bgColor: \"#f0fdf4\",\n      darkIconBg: \"rgba(16,185,129,0.18)\",\n      darkBgColor: \"rgba(16,185,129,0.1)\",\n    },\n  ];\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards12.vue","components":["apexcharts","avatar","badge","button","button-group","checkbox","command","container","datepicker","dialog","dropdown-menu","kbd","pagination","popover","switch","tanstacktable","tooltip","vee-input"]},{"name":"Dashboards 13","fileName":"BlockDashboards13.vue","file":"<template>\n  <div class=\"bg-muted/40 text-foreground dark:bg-muted/10 min-h-screen\">\n    <!-- ─── Deposit dialog ─────────────────────────────────────────────────────── -->\n    <UiDialog v-model:open=\"depositOpen\" @update:open=\"(o) => !o && resetDepositForm()\">\n      <UiDialogContent class=\"sm:max-w-md\">\n        <UiDialogHeader>\n          <UiDialogTitle>New bank deposit</UiDialogTitle>\n          <UiDialogDescription>Transfer funds to a recipient's bank account.</UiDialogDescription>\n        </UiDialogHeader>\n        <form @submit=\"submitDeposit\">\n          <fieldset :disabled=\"isSubmittingDeposit\" class=\"space-y-4 py-1\">\n            <UiVeeSelect required label=\"From account\" name=\"fromAccount\">\n              <option value=\"\" disabled>Select account</option>\n              <option value=\"primary\">\n                Primary — ${{\n                  user.primaryAccount.balance.toLocaleString(\"en-US\", { minimumFractionDigits: 2 })\n                }}\n              </option>\n              <option value=\"secondary\">\n                Secondary — ${{\n                  user.secondaryAccount.balance.toLocaleString(\"en-US\", {\n                    minimumFractionDigits: 2,\n                  })\n                }}\n              </option>\n            </UiVeeSelect>\n            <UiVeeInput\n              required\n              label=\"Recipient name\"\n              name=\"recipientName\"\n              placeholder=\"e.g. Jane Smith\"\n            />\n            <UiVeeInput\n              required\n              label=\"Bank name\"\n              name=\"bankName\"\n              placeholder=\"e.g. First National Bank\"\n            />\n            <div class=\"grid grid-cols-2 gap-3\">\n              <UiVeeInput\n                required\n                label=\"Account number\"\n                name=\"accountNumber\"\n                placeholder=\"e.g. 12345678\"\n              />\n              <UiVeeInput\n                required\n                label=\"Routing number\"\n                name=\"routingNumber\"\n                placeholder=\"9 digits\"\n                :maxlength=\"9\"\n                pattern=\"[0-9]{9}\"\n              />\n            </div>\n            <UiVeeInput required label=\"Amount ($)\" name=\"amount\" placeholder=\"0.00\" />\n            <UiVeeInput label=\"Memo (optional)\" name=\"memo\" placeholder=\"e.g. Invoice #1024\" />\n          </fieldset>\n          <UiDialogFooter class=\"mt-5\">\n            <UiButton type=\"button\" variant=\"outline\" @click=\"depositOpen = false\">Cancel</UiButton>\n            <UiButton type=\"submit\" :disabled=\"isSubmittingDeposit\">Send deposit</UiButton>\n          </UiDialogFooter>\n        </form>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- ─── Send funds dialog ──────────────────────────────────────────────────── -->\n    <UiDialog v-model:open=\"sendFundsOpen\" @update:open=\"(o) => !o && resetSendFundsForm()\">\n      <UiDialogContent class=\"sm:max-w-md\">\n        <UiDialogHeader>\n          <UiDialogTitle>Send funds</UiDialogTitle>\n          <UiDialogDescription>Send money to a friend or business instantly.</UiDialogDescription>\n        </UiDialogHeader>\n        <form @submit=\"submitSendFunds\">\n          <fieldset :disabled=\"isSubmittingSendFunds\" class=\"space-y-4 py-1\">\n            <UiVeeInput\n              required\n              label=\"To\"\n              name=\"recipient\"\n              placeholder=\"Name, email, or phone number\"\n            />\n            <UiVeeInput required label=\"Amount ($)\" name=\"amount\" placeholder=\"0.00\" />\n            <UiVeeSelect required label=\"From account\" name=\"fromAccount\">\n              <option value=\"\" disabled>Select account</option>\n              <option value=\"primary\">Primary account</option>\n              <option value=\"secondary\">Secondary account</option>\n            </UiVeeSelect>\n            <UiVeeSelect required label=\"Transfer type\" name=\"transferType\">\n              <option value=\"\" disabled>Select type</option>\n              <option value=\"instant\">Instant (arrives in minutes)</option>\n              <option value=\"standard\">Standard (1–3 business days)</option>\n            </UiVeeSelect>\n            <UiVeeInput label=\"Note (optional)\" name=\"note\" placeholder=\"What's it for?\" />\n          </fieldset>\n          <UiDialogFooter class=\"mt-5\">\n            <UiButton type=\"button\" variant=\"outline\" @click=\"sendFundsOpen = false\"\n              >Cancel</UiButton\n            >\n            <UiButton type=\"submit\" :disabled=\"isSubmittingSendFunds\">Send funds</UiButton>\n          </UiDialogFooter>\n        </form>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- ─── Filters dialog ────────────────────────────────────────────────────── -->\n    <UiDialog v-model:open=\"filtersOpen\">\n      <UiDialogContent class=\"sm:max-w-sm\">\n        <UiDialogHeader>\n          <UiDialogTitle>Filter transactions</UiDialogTitle>\n          <UiDialogDescription>Narrow down your account activity.</UiDialogDescription>\n        </UiDialogHeader>\n        <div class=\"space-y-5 py-1\">\n          <div>\n            <p class=\"mb-2.5 text-sm font-medium\">Transaction type</p>\n            <div class=\"space-y-2\">\n              <label\n                v-for=\"t in filterTypes\"\n                :key=\"t.key\"\n                class=\"flex cursor-pointer items-center gap-2.5 text-sm\"\n              >\n                <UiCheckbox :id=\"`type-${t.key}`\" v-model:checked=\"t.checked\" />\n                {{ t.label }}\n              </label>\n            </div>\n          </div>\n          <div>\n            <p class=\"mb-2.5 text-sm font-medium\">Account</p>\n            <div class=\"space-y-2\">\n              <label\n                v-for=\"a in filterAccounts\"\n                :key=\"a.key\"\n                class=\"flex cursor-pointer items-center gap-2.5 text-sm\"\n              >\n                <UiCheckbox :id=\"`acc-${a.key}`\" v-model:checked=\"a.checked\" />\n                {{ a.label }}\n              </label>\n            </div>\n          </div>\n          <div>\n            <p class=\"mb-2.5 text-sm font-medium\">Status</p>\n            <div class=\"space-y-2\">\n              <label\n                v-for=\"s in filterStatuses\"\n                :key=\"s.key\"\n                class=\"flex cursor-pointer items-center gap-2.5 text-sm\"\n              >\n                <UiCheckbox :id=\"`status-${s.key}`\" v-model:checked=\"s.checked\" />\n                {{ s.label }}\n              </label>\n            </div>\n          </div>\n        </div>\n        <UiDialogFooter class=\"mt-2\">\n          <UiButton variant=\"outline\" @click=\"resetFilters\">Reset</UiButton>\n          <UiButton @click=\"applyFilters\">Apply filters</UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- ─── Command dialog ────────────────────────────────────────────────────── -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search\"\n      description=\"Search transactions and actions\"\n    >\n      <UiCommandInput placeholder=\"Search transactions, accounts…\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Quick actions\">\n          <UiCommandItem\n            value=\"New deposit\"\n            @select=\"\n              () => {\n                searchOpen = false;\n                depositOpen = true;\n              }\n            \"\n          >\n            <Icon name=\"heroicons:arrow-down-circle\" class=\"mr-2 size-4\" />\n            New deposit\n          </UiCommandItem>\n          <UiCommandItem\n            value=\"Send funds\"\n            @select=\"\n              () => {\n                searchOpen = false;\n                sendFundsOpen = true;\n              }\n            \"\n          >\n            <Icon name=\"heroicons:paper-airplane\" class=\"mr-2 size-4\" />\n            Send funds\n          </UiCommandItem>\n          <UiCommandItem value=\"View statements\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:document-text\" class=\"mr-2 size-4\" />\n            Download statement\n          </UiCommandItem>\n          <UiCommandItem\n            value=\"Apply filters\"\n            @select=\"\n              () => {\n                searchOpen = false;\n                filtersOpen = true;\n              }\n            \"\n          >\n            <Icon name=\"heroicons:funnel\" class=\"mr-2 size-4\" />\n            Apply filters\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Recent deposits\">\n          <UiCommandItem\n            v-for=\"d in deposits.slice(0, 4)\"\n            :key=\"d.id\"\n            :value=\"d.description\"\n            @select=\"searchOpen = false\"\n          >\n            <Icon name=\"heroicons:banknotes\" class=\"mr-2 size-4\" />\n            {{ d.description }} — +${{ d.amount.toFixed(2) }}\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Accounts\">\n          <UiCommandItem value=\"Primary account\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:credit-card\" class=\"mr-2 size-4\" />\n            Primary — ${{ user.primaryAccount.balance.toLocaleString() }}\n          </UiCommandItem>\n          <UiCommandItem value=\"Secondary account\" @select=\"searchOpen = false\">\n            <Icon name=\"heroicons:credit-card\" class=\"mr-2 size-4\" />\n            Secondary — ${{ user.secondaryAccount.balance.toLocaleString() }}\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/60 text-muted-foreground flex items-center justify-between border-t px-3 py-2 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- ─── Header ────────────────────────────────────────────────────────────── -->\n    <header class=\"border-border/60 bg-background/95 sticky top-0 z-40 border-b backdrop-blur\">\n      <UiContainer class=\"flex min-h-[3.5rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-6\">\n          <div class=\"flex items-center gap-2.5\">\n            <div class=\"bg-primary flex size-7 items-center justify-center rounded-lg\">\n              <Icon name=\"heroicons:cube-transparent\" class=\"text-primary-foreground size-4\" />\n            </div>\n            <span class=\"hidden text-sm font-semibold sm:inline\">UI Thing</span>\n          </div>\n          <nav class=\"hidden items-center gap-0.5 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active ? 'bg-muted text-foreground font-medium' : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Icon buttons -->\n        <div class=\"flex items-center gap-1\">\n          <!-- Search -->\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" @click=\"searchOpen = true\">\n                <Icon name=\"heroicons:magnifying-glass\" class=\"size-4\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Search (⌘K)</p></UiTooltipContent>\n          </UiTooltip>\n\n          <!-- Settings -->\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\">\n                    <Icon name=\"heroicons:cog-6-tooth\" class=\"size-4\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Settings</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:shield-check\" title=\"Security & privacy\" />\n                <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notification preferences\" />\n                <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing & plans\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <!-- Notifications -->\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"relative\">\n                    <Icon name=\"heroicons:bell\" class=\"size-4\" />\n                    <span class=\"bg-primary absolute top-1 right-0 size-1.5 rounded-full\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Notifications</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-80\">\n                <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                  Notifications\n                  <UiBadge variant=\"secondary\" size=\"sm\">2 new</UiBadge>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  icon=\"heroicons:banknotes\"\n                  title=\"Stripe deposit of $408.00 received\"\n                />\n                <UiDropdownMenuItem\n                  icon=\"heroicons:arrow-trending-up\"\n                  title=\"Balance increased by $244.00\"\n                />\n                <UiDropdownMenuItem\n                  icon=\"heroicons:exclamation-triangle\"\n                  title=\"Card statement ready for June 2025\"\n                />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:check\" title=\"Mark all as read\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <!-- Avatar / account -->\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                    <UiAvatar\n                      :src=\"user.avatar\"\n                      :alt=\"user.name\"\n                      :fallback=\"user.initials\"\n                      class=\"size-8 cursor-pointer\"\n                    />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Account</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>\n                  <p class=\"font-semibold\">{{ user.name }}</p>\n                  <p class=\"text-muted-foreground text-xs font-normal\">{{ user.email }}</p>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <!-- Mobile menu -->\n          <UiTooltip>\n            <UiPopover class=\"lg:hidden\">\n              <UiTooltipTrigger as-child>\n                <UiPopoverTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"lg:hidden\">\n                    <Icon name=\"heroicons:bars-3\" class=\"size-4\" />\n                  </UiButton>\n                </UiPopoverTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Menu</p></UiTooltipContent>\n              <UiPopoverContent align=\"end\" class=\"w-48 p-1\">\n                <UiButton\n                  v-for=\"item in navItems\"\n                  :key=\"item.label\"\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  class=\"w-full justify-start\"\n                  :class=\"item.active ? 'text-foreground' : 'text-muted-foreground'\"\n                >\n                  {{ item.label }}\n                </UiButton>\n              </UiPopoverContent>\n            </UiPopover>\n          </UiTooltip>\n        </div>\n      </UiContainer>\n    </header>\n\n    <!-- ─── Main ──────────────────────────────────────────────────────────────── -->\n    <UiContainer class=\"space-y-5 py-8\">\n      <!-- Page header -->\n      <Motion\n        :initial=\"{ opacity: 0, y: -8 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.3, ease: 'easeOut' }\"\n      >\n        <div class=\"flex flex-wrap items-start justify-between gap-4\">\n          <div>\n            <h1 class=\"text-2xl font-bold tracking-tight\">Banking Dashboard</h1>\n            <p class=\"text-muted-foreground mt-0.5 text-sm\">\n              Here's your account details and deposits.\n            </p>\n          </div>\n          <div class=\"flex items-center gap-2\">\n            <UiButton variant=\"outline\" class=\"gap-2\" @click=\"depositOpen = true\">\n              <Icon name=\"heroicons:arrow-down-circle\" class=\"size-4\" />\n              Deposit\n            </UiButton>\n            <UiButton class=\"gap-2\" @click=\"sendFundsOpen = true\">\n              <Icon name=\"heroicons:paper-airplane\" class=\"size-4\" />\n              Send funds\n            </UiButton>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Time tabs + date picker + filters -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 8 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.3, delay: 0.05, ease: 'easeOut' }\"\n      >\n        <div class=\"flex flex-wrap items-center justify-between gap-3\">\n          <UiButtonGroup>\n            <UiButton\n              v-for=\"tab in timeTabs\"\n              :key=\"tab.value\"\n              :variant=\"activeTab === tab.value ? 'default' : 'outline'\"\n              size=\"sm\"\n              @click=\"activeTab = tab.value\"\n            >\n              <span class=\"hidden sm:inline\">{{ tab.label }}</span>\n              <span class=\"sm:hidden\">{{ tab.short }}</span>\n            </UiButton>\n          </UiButtonGroup>\n\n          <div class=\"flex items-center gap-2\">\n            <UiDatepicker v-model.range=\"dateRange\">\n              <template #default=\"{ togglePopover }\">\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\" @click=\"togglePopover\">\n                      <Icon name=\"heroicons:calendar-days\" class=\"size-4\" />\n                      Select dates\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Select date range</p></UiTooltipContent>\n                </UiTooltip>\n              </template>\n            </UiDatepicker>\n\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\" @click=\"filtersOpen = true\">\n                  <Icon name=\"heroicons:funnel\" class=\"size-4\" />\n                  Filters\n                </UiButton>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Filter transactions</p></UiTooltipContent>\n            </UiTooltip>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Account balance cards -->\n      <div class=\"grid grid-cols-1 gap-4 sm:grid-cols-2\">\n        <!-- Primary account -->\n        <Motion\n          :initial=\"{ opacity: 0, y: 12 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ duration: 0.35, delay: 0.1, ease: 'easeOut' }\"\n        >\n          <UiCard class=\"relative gap-0 overflow-hidden p-4 shadow-xs\">\n            <div class=\"flex items-start justify-between\">\n              <div class=\"flex grow flex-col gap-4 lg:flex-row lg:items-center\">\n                <div class=\"mx-auto shrink-0\">\n                  <UiApexchart\n                    :key=\"`primary-${activeTab}`\"\n                    type=\"radialBar\"\n                    :width=\"200\"\n                    :height=\"200\"\n                    :series=\"[chartDataByTab[activeTab as TabKey].primary]\"\n                    :options=\"radialBarOptions\"\n                  />\n                </div>\n                <div class=\"grow text-center lg:text-left\">\n                  <p class=\"font-semibold\">{{ user.primaryAccount.name }}</p>\n                  <p class=\"text-muted-foreground mt-6 mb-2 text-sm\">Current balance</p>\n                  <div class=\"flex flex-col items-center justify-between lg:flex-row\">\n                    <p class=\"text-3xl font-bold tracking-tight\">\n                      ${{\n                        user.primaryAccount.balance.toLocaleString(\"en-US\", {\n                          minimumFractionDigits: 2,\n                        })\n                      }}\n                    </p>\n                    <div\n                      class=\"mt-3 flex items-center gap-1 text-xs font-medium text-emerald-600 dark:text-emerald-400\"\n                    >\n                      <Icon name=\"heroicons:arrow-trending-up\" class=\"size-3.5\" />\n                      {{ user.primaryAccount.growth }}%\n                    </div>\n                  </div>\n                </div>\n              </div>\n              <UiTooltip>\n                <UiDropdownMenu>\n                  <UiTooltipTrigger as-child>\n                    <UiDropdownMenuTrigger as-child>\n                      <UiButton\n                        variant=\"ghost\"\n                        size=\"icon-sm\"\n                        class=\"text-muted-foreground absolute top-5 right-5 shrink-0\"\n                      >\n                        <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                      </UiButton>\n                    </UiDropdownMenuTrigger>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Account options</p></UiTooltipContent>\n                  <UiDropdownMenuContent align=\"end\">\n                    <UiDropdownMenuItem icon=\"heroicons:eye\" title=\"View details\" />\n                    <UiDropdownMenuItem\n                      icon=\"heroicons:arrow-down-circle\"\n                      title=\"Deposit funds\"\n                      @click.stop=\"depositOpen = true\"\n                    />\n                    <UiDropdownMenuItem icon=\"heroicons:document-text\" title=\"Download statement\" />\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </UiTooltip>\n            </div>\n          </UiCard>\n        </Motion>\n\n        <!-- Secondary account -->\n        <Motion\n          :initial=\"{ opacity: 0, y: 12 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ duration: 0.35, delay: 0.15, ease: 'easeOut' }\"\n        >\n          <UiCard class=\"relative gap-0 overflow-hidden p-4 shadow-xs\">\n            <div class=\"flex items-start justify-between\">\n              <div class=\"flex grow flex-col gap-4 lg:flex-row lg:items-center\">\n                <div class=\"mx-auto\">\n                  <UiApexchart\n                    :key=\"`secondary-${activeTab}`\"\n                    type=\"radialBar\"\n                    :width=\"200\"\n                    :height=\"200\"\n                    :series=\"[chartDataByTab[activeTab as TabKey].secondary]\"\n                    :options=\"radialBarOptions\"\n                  />\n                </div>\n                <div class=\"grow text-center lg:text-left\">\n                  <p class=\"font-semibold\">{{ user.secondaryAccount.name }}</p>\n                  <p class=\"text-muted-foreground mt-6 mb-2 text-sm\">Current balance</p>\n                  <div class=\"flex flex-col items-center justify-between lg:flex-row\">\n                    <p class=\"text-3xl font-bold tracking-tight\">\n                      ${{\n                        user.secondaryAccount.balance.toLocaleString(\"en-US\", {\n                          minimumFractionDigits: 2,\n                        })\n                      }}\n                    </p>\n                    <div\n                      class=\"mt-3 flex items-center gap-1 text-xs font-medium text-emerald-600 dark:text-emerald-400\"\n                    >\n                      <Icon name=\"heroicons:arrow-trending-up\" class=\"size-3.5\" />\n                      {{ user.secondaryAccount.growth }}%\n                    </div>\n                  </div>\n                </div>\n              </div>\n              <UiTooltip>\n                <UiDropdownMenu>\n                  <UiTooltipTrigger as-child>\n                    <UiDropdownMenuTrigger as-child>\n                      <UiButton\n                        variant=\"ghost\"\n                        size=\"icon-sm\"\n                        class=\"text-muted-foreground absolute top-5 right-5 shrink-0\"\n                      >\n                        <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                      </UiButton>\n                    </UiDropdownMenuTrigger>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Account options</p></UiTooltipContent>\n                  <UiDropdownMenuContent align=\"end\">\n                    <UiDropdownMenuItem icon=\"heroicons:eye\" title=\"View details\" />\n                    <UiDropdownMenuItem\n                      icon=\"heroicons:arrow-down-circle\"\n                      title=\"Deposit funds\"\n                      @click.stop=\"depositOpen = true\"\n                    />\n                    <UiDropdownMenuItem icon=\"heroicons:document-text\" title=\"Download statement\" />\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </UiTooltip>\n            </div>\n          </UiCard>\n        </Motion>\n      </div>\n\n      <!-- Main content: left = chart + cards, right = deposits -->\n      <div class=\"grid grid-cols-1 items-start gap-4 xl:grid-cols-[1fr_380px]\">\n        <!-- Left column: balance chart + cards stacked -->\n        <div class=\"space-y-4\">\n          <!-- Balance over time -->\n          <Motion\n            :initial=\"{ opacity: 0, y: 12 }\"\n            :animate=\"{ opacity: 1, y: 0 }\"\n            :transition=\"{ duration: 0.35, delay: 0.2, ease: 'easeOut' }\"\n          >\n            <UiCard>\n              <UiCardHeader class=\"flex items-center justify-between\">\n                <div class=\"space-y-1\">\n                  <UiCardTitle>Balance over time</UiCardTitle>\n                  <UiCardDescription>Track your account balance changes.</UiCardDescription>\n                </div>\n                <UiTooltip>\n                  <UiDropdownMenu>\n                    <UiTooltipTrigger as-child>\n                      <UiDropdownMenuTrigger as-child>\n                        <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground\">\n                          <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                        </UiButton>\n                      </UiDropdownMenuTrigger>\n                    </UiTooltipTrigger>\n                    <UiTooltipContent><p>Chart options</p></UiTooltipContent>\n                    <UiDropdownMenuContent align=\"end\">\n                      <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Download chart\" />\n                      <UiDropdownMenuItem\n                        icon=\"heroicons:arrows-pointing-out\"\n                        title=\"Full screen\"\n                      />\n                      <UiDropdownMenuItem icon=\"heroicons:table-cells\" title=\"View as table\" />\n                    </UiDropdownMenuContent>\n                  </UiDropdownMenu>\n                </UiTooltip>\n              </UiCardHeader>\n              <UiCardContent>\n                <UiApexchart\n                  :key=\"`line-${activeTab}`\"\n                  type=\"area\"\n                  height=\"300\"\n                  :series=\"activeChartSeries\"\n                  :options=\"lineChartOptions\"\n                />\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n\n          <!-- Your cards -->\n          <Motion\n            :initial=\"{ opacity: 0, y: 12 }\"\n            :animate=\"{ opacity: 1, y: 0 }\"\n            :transition=\"{ duration: 0.35, delay: 0.28, ease: 'easeOut' }\"\n          >\n            <UiCard>\n              <UiCardHeader class=\"flex items-start justify-between\">\n                <div class=\"space-y-1\">\n                  <UiCardTitle>Your cards</UiCardTitle>\n                  <UiCardDescription>Manage your saved payment methods.</UiCardDescription>\n                </div>\n                <UiTooltip>\n                  <UiDropdownMenu>\n                    <UiTooltipTrigger as-child>\n                      <UiDropdownMenuTrigger as-child>\n                        <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground\">\n                          <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                        </UiButton>\n                      </UiDropdownMenuTrigger>\n                    </UiTooltipTrigger>\n                    <UiTooltipContent><p>Card options</p></UiTooltipContent>\n                    <UiDropdownMenuContent align=\"end\">\n                      <UiDropdownMenuItem icon=\"heroicons:plus\" title=\"Add new card\" />\n                      <UiDropdownMenuItem icon=\"heroicons:pencil\" title=\"Edit cards\" />\n                      <UiDropdownMenuItem icon=\"heroicons:lock-closed\" title=\"Freeze all cards\" />\n                    </UiDropdownMenuContent>\n                  </UiDropdownMenu>\n                </UiTooltip>\n              </UiCardHeader>\n              <UiCardContent>\n                <div\n                  class=\"flex [scrollbar-width:none] gap-6 overflow-x-auto pb-2 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden\"\n                >\n                  <div v-for=\"card in user.cards\" :key=\"card.id\" class=\"shrink-0\">\n                    <UiCreditCard\n                      :variant=\"card.variant === 'primary' ? 'brand-dark' : 'gray-strip'\"\n                      :company=\"card.label\"\n                      :card-holder=\"card.holderName\"\n                      :card-number=\"card.cardNumber\"\n                      :card-expiration=\"card.expiry\"\n                    />\n\n                    <!-- Spending progress -->\n                    <div class=\"mt-3\">\n                      <div class=\"flex items-center justify-between text-sm\">\n                        <span class=\"text-muted-foreground\">Spending this month</span>\n                        <span class=\"font-medium\">\n                          ${{ card.spending.toLocaleString(\"en-US\", { minimumFractionDigits: 2 }) }}\n                        </span>\n                      </div>\n                      <UiProgress\n                        class=\"mt-2 h-2\"\n                        :model-value=\"(card.spending / card.spendLimit) * 100\"\n                      />\n                    </div>\n                  </div>\n                </div>\n\n                <div class=\"mt-4 flex\">\n                  <UiButton\n                    variant=\"outline\"\n                    @click=\"\n                      useSonner('Coming soon', { description: 'Card management is on the way.' })\n                    \"\n                  >\n                    Manage cards\n                  </UiButton>\n                </div>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n        </div>\n\n        <!-- Right column: recent deposits -->\n        <Motion\n          :initial=\"{ opacity: 0, y: 12 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ duration: 0.35, delay: 0.25, ease: 'easeOut' }\"\n        >\n          <UiCard>\n            <UiCardHeader class=\"flex items-start justify-between\">\n              <div class=\"space-y-1\">\n                <UiCardTitle>Recent deposits</UiCardTitle>\n                <UiCardDescription\n                  >Latest incoming transactions to your accounts.</UiCardDescription\n                >\n              </div>\n              <UiTooltip>\n                <UiDropdownMenu>\n                  <UiTooltipTrigger as-child>\n                    <UiDropdownMenuTrigger as-child>\n                      <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground\">\n                        <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                      </UiButton>\n                    </UiDropdownMenuTrigger>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Deposit options</p></UiTooltipContent>\n                  <UiDropdownMenuContent align=\"end\">\n                    <UiDropdownMenuItem\n                      icon=\"heroicons:arrow-down-circle\"\n                      title=\"New deposit\"\n                      @click.stop=\"depositOpen = true\"\n                    />\n                    <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export CSV\" />\n                    <UiDropdownMenuItem icon=\"heroicons:eye\" title=\"View all deposits\" />\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </UiTooltip>\n            </UiCardHeader>\n\n            <div class=\"divide-border/50 divide-y\">\n              <div\n                v-for=\"deposit in visibleDeposits\"\n                :key=\"deposit.id\"\n                class=\"flex items-center gap-3 px-5 py-3\"\n              >\n                <!-- Payment method badge -->\n                <div\n                  class=\"border-border/60 bg-muted/30 flex h-9 w-12 shrink-0 items-center justify-center rounded-md border\"\n                >\n                  <template v-if=\"deposit.method === 'visa'\">\n                    <Icon name=\"simple-icons:visa\" class=\"size-6 shrink-0\" />\n                  </template>\n                  <template v-else-if=\"deposit.method === 'stripe'\">\n                    <Icon name=\"logos:stripe\" class=\"size-8 shrink-0\" />\n                  </template>\n                  <template v-else-if=\"deposit.method === 'mastercard'\">\n                    <Icon name=\"logos:mastercard\" class=\"size-6 shrink-0\" />\n                  </template>\n                  <template v-else-if=\"deposit.method === 'paypal'\">\n                    <Icon name=\"logos:paypal\" class=\"size-5 shrink-0\" />\n                  </template>\n                  <template v-else-if=\"deposit.method === 'applepay'\">\n                    <Icon name=\"simple-icons:apple\" class=\"size-6 shrink-0\" />\n                  </template>\n                </div>\n\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"truncate text-sm font-medium\">{{ deposit.description }}</p>\n                  <p class=\"text-muted-foreground truncate text-xs\">{{ deposit.sub }}</p>\n                </div>\n                <p class=\"shrink-0 text-sm font-semibold text-emerald-600 dark:text-emerald-400\">\n                  +${{ deposit.amount.toFixed(2) }}\n                </p>\n              </div>\n            </div>\n\n            <div class=\"border-border/50 border-t px-5 py-3\">\n              <UiButton\n                variant=\"link\"\n                class=\"text-primary h-auto p-0\"\n                @click=\"showAllDeposits = !showAllDeposits\"\n              >\n                {{ showAllDeposits ? \"Show less\" : \"Show more\" }}\n              </UiButton>\n            </div>\n          </UiCard>\n        </Motion>\n      </div>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n  import { object, string } from \"yup\";\n\n  // ─── User data ────────────────────────────────────────────────────────────────\n  interface UserCard {\n    id: string;\n    label: string;\n    holderName: string;\n    cardNumber: string;\n    expiry: string;\n    variant: \"primary\" | \"secondary\";\n    spending: number;\n    spendLimit: number;\n    active: boolean;\n  }\n\n  const user = reactive({\n    name: \"George Reid\",\n    email: \"george@ui-thing.com\",\n    avatar: \"https://i.pravatar.cc/150?img=68\",\n    initials: \"GR\",\n    primaryAccount: { name: \"Primary account\", balance: 40206.2, growth: 3.4, lastFour: \"4242\" },\n    secondaryAccount: { name: \"Secondary account\", balance: 6421.1, growth: 2.0, lastFour: \"8899\" },\n    cards: [\n      {\n        id: \"1\",\n        label: \"UI Thing.\",\n        holderName: \"GEORGE REID\",\n        cardNumber: \"1234  1234  1234  1234\",\n        expiry: \"06/28\",\n        variant: \"primary\",\n        spending: 2840.4,\n        spendLimit: 5000,\n        active: true,\n      },\n      {\n        id: \"2\",\n        label: \"UI Thing.\",\n        holderName: \"GEORGE REID\",\n        cardNumber: \"5678  5678  5678  5678\",\n        expiry: \"11/27\",\n        variant: \"secondary\",\n        spending: 1260.2,\n        spendLimit: 3000,\n        active: false,\n      },\n    ] as UserCard[],\n  });\n\n  // ─── Navigation ───────────────────────────────────────────────────────────────\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // ─── Dialog state ─────────────────────────────────────────────────────────────\n  const depositOpen = ref(false);\n  const sendFundsOpen = ref(false);\n  const filtersOpen = ref(false);\n  const searchOpen = ref(false);\n\n  // ─── Keyboard shortcut ────────────────────────────────────────────────────────\n  const handleKeydown = (e: KeyboardEvent) => {\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = !searchOpen.value;\n    }\n  };\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // ─── Deposit form ─────────────────────────────────────────────────────────────\n  const DepositSchema = object({\n    fromAccount: string().required().label(\"From account\"),\n    recipientName: string().required().label(\"Recipient name\").min(2).max(80),\n    bankName: string().required().label(\"Bank name\").min(2).max(80),\n    accountNumber: string().required().label(\"Account number\"),\n    routingNumber: string().required().label(\"Routing number\"),\n    amount: string().required().label(\"Amount\"),\n    memo: string().optional().label(\"Memo\").max(100),\n  });\n\n  const {\n    handleSubmit: handleDepositSubmit,\n    isSubmitting: isSubmittingDeposit,\n    resetForm: resetDepositForm,\n  } = useForm({ name: \"depositForm13\", validationSchema: toTypedSchema(DepositSchema) });\n\n  const submitDeposit = handleDepositSubmit((values) => {\n    depositOpen.value = false;\n    useSonner(\"Deposit initiated\", {\n      description: `$${values.amount} to ${values.recipientName} is being processed.`,\n    });\n    resetDepositForm();\n  });\n\n  // ─── Send funds form ──────────────────────────────────────────────────────────\n  const SendFundsSchema = object({\n    recipient: string().required().label(\"Recipient\").min(2).max(80),\n    amount: string().required().label(\"Amount\"),\n    fromAccount: string().required().label(\"From account\"),\n    transferType: string().required().label(\"Transfer type\"),\n    note: string().optional().label(\"Note\").max(100),\n  });\n\n  const {\n    handleSubmit: handleSendFundsSubmit,\n    isSubmitting: isSubmittingSendFunds,\n    resetForm: resetSendFundsForm,\n  } = useForm({ name: \"sendFundsForm13\", validationSchema: toTypedSchema(SendFundsSchema) });\n\n  const submitSendFunds = handleSendFundsSubmit((values) => {\n    sendFundsOpen.value = false;\n    useSonner(\"Funds sent\", { description: `$${values.amount} sent to ${values.recipient}.` });\n    resetSendFundsForm();\n  });\n\n  // ─── Filters ──────────────────────────────────────────────────────────────────\n  const filterTypes = reactive([\n    { key: \"deposits\", label: \"Deposits\", checked: true },\n    { key: \"withdrawals\", label: \"Withdrawals\", checked: true },\n    { key: \"transfers\", label: \"Transfers\", checked: true },\n  ]);\n  const filterAccounts = reactive([\n    { key: \"all\", label: \"All accounts\", checked: true },\n    { key: \"primary\", label: \"Primary account\", checked: false },\n    { key: \"secondary\", label: \"Secondary account\", checked: false },\n  ]);\n  const filterStatuses = reactive([\n    { key: \"completed\", label: \"Completed\", checked: true },\n    { key: \"pending\", label: \"Pending\", checked: true },\n    { key: \"failed\", label: \"Failed\", checked: false },\n  ]);\n\n  const resetFilters = () => {\n    filterTypes.forEach((t) => (t.checked = true));\n    filterAccounts.forEach((a) => (a.checked = a.key === \"all\"));\n    filterStatuses.forEach((s) => (s.checked = s.key !== \"failed\"));\n    filtersOpen.value = false;\n  };\n\n  const applyFilters = () => {\n    filtersOpen.value = false;\n    useSonner(\"Filters applied\", { description: \"Your transaction view has been updated.\" });\n  };\n\n  // ─── Time tabs ────────────────────────────────────────────────────────────────\n  const timeTabs = [\n    { value: \"12m\", label: \"12 months\", short: \"12m\" },\n    { value: \"30d\", label: \"30 days\", short: \"30d\" },\n    { value: \"7d\", label: \"7 days\", short: \"7d\" },\n    { value: \"24h\", label: \"24 hours\", short: \"24h\" },\n  ];\n  const activeTab = ref(\"12m\");\n\n  // ─── Date range ───────────────────────────────────────────────────────────────\n  const dateRange = ref<{ start: Date; end: Date }>({} as any);\n\n  // ─── Deposits data ────────────────────────────────────────────────────────────\n  const deposits = [\n    {\n      id: 1,\n      method: \"visa\",\n      description: \"Visa ending in 1234\",\n      sub: \"Expiry 06/2025\",\n      amount: 244.0,\n    },\n    {\n      id: 2,\n      method: \"mastercard\",\n      description: \"Mastercard ending in 5678\",\n      sub: \"Expiry 06/2025\",\n      amount: 326.0,\n    },\n    {\n      id: 3,\n      method: \"stripe\",\n      description: \"Stripe deposit\",\n      sub: \"billing@ui-thing.com\",\n      amount: 408.0,\n    },\n    {\n      id: 4,\n      method: \"visa\",\n      description: \"Visa ending in 1234\",\n      sub: \"Expiry 06/2025\",\n      amount: 628.0,\n    },\n    {\n      id: 5,\n      method: \"paypal\",\n      description: \"PayPal deposit\",\n      sub: \"alina@ui-thing.com\",\n      amount: 166.0,\n    },\n    {\n      id: 6,\n      method: \"applepay\",\n      description: \"Apple Pay\",\n      sub: \"molly@ui-thing.com\",\n      amount: 250.0,\n    },\n    {\n      id: 7,\n      method: \"visa\",\n      description: \"Visa ending in 1234\",\n      sub: \"Expiry 06/2025\",\n      amount: 144.0,\n    },\n    {\n      id: 8,\n      method: \"stripe\",\n      description: \"Stripe deposit\",\n      sub: \"billing@ui-thing.com\",\n      amount: 408.0,\n    },\n  ];\n\n  const showAllDeposits = ref(false);\n  const visibleDeposits = computed(() => (showAllDeposits.value ? deposits : deposits.slice(0, 5)));\n\n  // ─── Chart data ───────────────────────────────────────────────────────────────\n  type TabKey = \"12m\" | \"30d\" | \"7d\" | \"24h\";\n\n  const chartDataByTab: Record<\n    TabKey,\n    {\n      primary: number;\n      secondary: number;\n      series: { name: string; data: number[] }[];\n      categories: string[];\n    }\n  > = {\n    \"12m\": {\n      primary: 68,\n      secondary: 42,\n      series: [\n        {\n          name: \"Primary\",\n          data: [\n            28000, 30000, 29500, 32000, 33500, 35000, 34000, 36000, 37500, 38000, 39500, 40206,\n          ],\n        },\n        {\n          name: \"Secondary\",\n          data: [5000, 5200, 5100, 5500, 5600, 5800, 5700, 5900, 6000, 6100, 6300, 6421],\n        },\n      ],\n      categories: [\n        \"Jan\",\n        \"Feb\",\n        \"Mar\",\n        \"Apr\",\n        \"May\",\n        \"Jun\",\n        \"Jul\",\n        \"Aug\",\n        \"Sep\",\n        \"Oct\",\n        \"Nov\",\n        \"Dec\",\n      ],\n    },\n    \"30d\": {\n      primary: 45,\n      secondary: 28,\n      series: [\n        {\n          name: \"Primary\",\n          data: [38000, 38500, 37800, 39200, 38800, 39500, 40000, 39800, 40100, 40206],\n        },\n        { name: \"Secondary\", data: [6200, 6150, 6250, 6300, 6280, 6350, 6380, 6410, 6415, 6421] },\n      ],\n      categories: [\n        \"Day 1\",\n        \"Day 4\",\n        \"Day 7\",\n        \"Day 10\",\n        \"Day 14\",\n        \"Day 17\",\n        \"Day 20\",\n        \"Day 24\",\n        \"Day 27\",\n        \"Day 30\",\n      ],\n    },\n    \"7d\": {\n      primary: 23,\n      secondary: 15,\n      series: [\n        { name: \"Primary\", data: [39800, 39900, 40000, 40050, 40100, 40150, 40206] },\n        { name: \"Secondary\", data: [6400, 6405, 6410, 6412, 6415, 6418, 6421] },\n      ],\n      categories: [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"],\n    },\n    \"24h\": {\n      primary: 8,\n      secondary: 5,\n      series: [\n        { name: \"Primary\", data: [40150, 40165, 40170, 40182, 40190, 40198, 40202, 40206] },\n        { name: \"Secondary\", data: [6418, 6419, 6419, 6420, 6420, 6421, 6421, 6421] },\n      ],\n      categories: [\"06:00\", \"08:00\", \"10:00\", \"12:00\", \"14:00\", \"16:00\", \"18:00\", \"Now\"],\n    },\n  };\n\n  const activeChartSeries = computed(() => chartDataByTab[activeTab.value as TabKey].series);\n  const activeChartCategories = computed(\n    () => chartDataByTab[activeTab.value as TabKey].categories\n  );\n\n  // ─── Chart options ────────────────────────────────────────────────────────────\n  const radialBarOptions = computed<ApexOptions>(() => ({\n    chart: { type: \"radialBar\" },\n    plotOptions: {\n      radialBar: {\n        hollow: { size: \"50%\", background: \"transparent\" },\n        track: { background: \"var(--muted)\", strokeWidth: \"70%\" },\n        dataLabels: { show: false },\n      },\n    },\n    colors: [\"var(--primary)\"],\n    stroke: { lineCap: \"round\" },\n  }));\n\n  const lineChartOptions = computed<ApexOptions>(() => ({\n    chart: { type: \"area\" },\n    dataLabels: { enabled: false },\n    stroke: { curve: \"smooth\", width: [2, 1.5] },\n    fill: {\n      type: \"gradient\",\n      gradient: { shadeIntensity: 1, opacityFrom: 0.2, opacityTo: 0.0, stops: [0, 100] },\n    },\n    colors: [\"var(--primary)\", \"var(--muted-foreground)\"],\n    xaxis: { categories: activeChartCategories.value },\n    yaxis: { show: false },\n    grid: {\n      strokeDashArray: 4,\n      yaxis: { lines: { show: false } },\n    },\n    legend: { show: false },\n  }));\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards13.vue","components":["apexcharts","avatar","badge","button","button-group","card","checkbox","command","container","credit-card","datepicker","dialog","dropdown-menu","kbd","popover","progress","tooltip","vee-input","vee-select"]},{"name":"Dashboards 2","fileName":"BlockDashboards2.vue","file":"<template>\n  <div\n    class=\"bg-background text-foreground min-h-screen [--color-primary:var(--color-emerald-500)] [--primary:var(--color-emerald-500)] [--radius:12px] [--ring:var(--color-emerald-500)]\"\n  >\n    <!-- Sticky top header -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile nav popover -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton class=\"lg:hidden\" variant=\"ghost\" size=\"icon-sm\">\n                <Icon name=\"solar:hamburger-menu-line-duotone\" class=\"size-4\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"\n                  item.active\n                    ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                    : 'text-muted-foreground'\n                \"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right: Settings, Notifications, User -->\n        <div class=\"flex items-center gap-1\">\n          <!-- Settings dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon\" class=\"rounded-full\">\n                <Icon name=\"solar:settings-bold-duotone\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-56\">\n              <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"solar:user-bold-duotone\" title=\"Account settings\" />\n              <UiDropdownMenuItem icon=\"solar:pallete-2-bold-duotone\" title=\"Appearance\" />\n              <UiDropdownMenuItem icon=\"solar:bell-bold-duotone\" title=\"Notification preferences\" />\n              <UiDropdownMenuItem icon=\"solar:shield-bold-duotone\" title=\"Privacy & security\" />\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuCheckboxItem v-model=\"compactView\" title=\"Compact view\" />\n              <UiDropdownMenuCheckboxItem v-model=\"showAvatars\" title=\"Show member avatars\" />\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                icon=\"solar:keyboard-bold-duotone\"\n                title=\"Keyboard shortcuts\"\n                shortcut=\"⌘/\"\n              />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n\n          <!-- Notifications dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon\" class=\"rounded-full\">\n                <Icon name=\"solar:bell-bold-duotone\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-80\">\n              <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                <span>Notifications</span>\n                <UiBadge variant=\"secondary\" size=\"sm\">4 new</UiBadge>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                icon=\"solar:user-plus-bold-duotone\"\n                title=\"Phoenix Baker joined your team\"\n              >\n                <template #shortcut>5m ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem\n                icon=\"solar:file-text-bold-duotone\"\n                title=\"New post by Lana Steiner\"\n              >\n                <template #shortcut>1h ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem\n                icon=\"solar:mailbox-bold-duotone\"\n                title=\"Email open rate exceeded 80%\"\n              >\n                <template #shortcut>3h ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem\n                icon=\"solar:arrow-right-up-bold-duotone\"\n                title=\"MRR milestone: $18k reached\"\n              >\n                <template #shortcut>1d ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                icon=\"solar:verified-check-bold-duotone\"\n                title=\"Mark all as read\"\n              />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n\n          <!-- User dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon\"\n                class=\"rounded-full\"\n                :aria-label=\"`Open user menu for ${currentUser.name}`\"\n              >\n                <UiAvatar\n                  :src=\"currentUser.avatar\"\n                  :alt=\"currentUser.name\"\n                  :fallback=\"currentUser.fallback\"\n                  class=\"size-8 cursor-pointer\"\n                />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n              <UiDropdownMenuLabel>\n                <div class=\"flex flex-col\">\n                  <p class=\"text-sm font-medium\">{{ currentUser.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">{{ currentUser.email }}</p>\n                </div>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuGroup>\n                <UiDropdownMenuItem icon=\"solar:user-bold-duotone\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"solar:settings-bold-duotone\" title=\"Settings\" />\n                <UiDropdownMenuItem icon=\"solar:card-2-bold-duotone\" title=\"Billing\" />\n                <UiDropdownMenuItem\n                  icon=\"solar:users-group-two-rounded-bold-duotone\"\n                  title=\"Team\"\n                />\n              </UiDropdownMenuGroup>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                variant=\"destructive\"\n                icon=\"solar:exit-bold-duotone\"\n                title=\"Sign out\"\n              />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Secondary sub-nav -->\n    <Motion\n      :initial=\"{ opacity: 0 }\"\n      :animate=\"{ opacity: 1 }\"\n      :transition=\"{ duration: 0.35, delay: 0.1 }\"\n      class=\"border-border/70 bg-background border-b\"\n    >\n      <UiContainer>\n        <div class=\"flex items-center justify-between gap-4\">\n          <div class=\"flex scrollbar-none overflow-x-auto\">\n            <button\n              v-for=\"tab in subNavTabs\"\n              :key=\"tab\"\n              class=\"shrink-0 border-b-2 px-4 py-3 text-sm font-medium whitespace-nowrap transition-colors\"\n              :class=\"\n                activeTab === tab\n                  ? 'border-primary text-foreground'\n                  : 'text-muted-foreground hover:text-foreground border-transparent'\n              \"\n              @click=\"activeTab = tab\"\n            >\n              {{ tab }}\n            </button>\n          </div>\n          <div class=\"hidden w-[300px] shrink-0 py-2 sm:block\">\n            <UiVeeInput\n              name=\"search\"\n              icon=\"solar:magnifer-bold-duotone\"\n              placeholder=\"Search...\"\n              class=\"h-8\"\n            />\n          </div>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Page content -->\n    <UiContainer class=\"py-8\">\n      <!-- Welcome heading -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.15, ease: 'easeOut' }\"\n        class=\"mb-6\"\n      >\n        <h1 class=\"text-2xl font-semibold tracking-tight\">\n          Welcome back, {{ currentUser.firstName }}\n        </h1>\n      </Motion>\n\n      <!-- Time range + filter row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.2, ease: 'easeOut' }\"\n        class=\"mb-8 flex flex-wrap items-center justify-between gap-3\"\n      >\n        <UiTabs v-model=\"activeRange\">\n          <UiTabsList class=\"border-border/70 bg-muted/30 border\">\n            <UiTabsTrigger v-for=\"range in timeRanges\" :key=\"range.value\" :value=\"range.value\">\n              <span class=\"hidden sm:inline\">{{ range.label }}</span>\n              <span class=\"sm:hidden\">{{ range.short }}</span>\n            </UiTabsTrigger>\n          </UiTabsList>\n        </UiTabs>\n        <div class=\"flex items-center gap-2\">\n          <UiButton variant=\"outline\">\n            <Icon name=\"solar:calendar-bold-duotone\" class=\"text-muted-foreground size-5\" />\n            <span class=\"hidden sm:inline\">Select dates</span>\n          </UiButton>\n          <UiButton variant=\"outline\">\n            <Icon name=\"solar:tuning-3-bold-duotone\" class=\"text-muted-foreground size-5\" />\n            <span class=\"hidden sm:inline\">Filters</span>\n          </UiButton>\n        </div>\n      </Motion>\n\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.25, ease: 'easeOut' }\"\n        class=\"mb-8\"\n      >\n        <UiGradientDivider />\n      </Motion>\n\n      <!-- Two-column layout: main + right sidebar -->\n      <div class=\"flex flex-col gap-10 lg:flex-row\">\n        <!-- Main content column -->\n        <div class=\"min-w-0 flex-1 space-y-10\">\n          <!-- MRR chart -->\n          <Motion\n            :initial=\"{ opacity: 0, y: 16 }\"\n            :animate=\"{ opacity: 1, y: 0 }\"\n            :transition=\"{ duration: 0.4, delay: 0.28, ease: 'easeOut' }\"\n          >\n            <div>\n              <p class=\"text-muted-foreground text-xs font-semibold tracking-widest uppercase\">\n                MRR\n              </p>\n              <div class=\"mt-1.5 flex items-center gap-3\">\n                <span class=\"text-4xl font-bold tracking-tight\">$18,880</span>\n                <span\n                  class=\"inline-flex items-center gap-1 rounded-full bg-emerald-50 px-2 py-0.5 text-xs font-semibold text-emerald-700 dark:bg-emerald-950 dark:text-emerald-400\"\n                >\n                  <Icon name=\"solar:course-up-bold-duotone\" class=\"size-3\" />\n                  7.4%\n                </span>\n              </div>\n              <div class=\"mt-4 h-52\">\n                <UiApexchart\n                  type=\"line\"\n                  height=\"100%\"\n                  :series=\"mrrChartSeries\"\n                  :options=\"mrrChartOptions\"\n                />\n              </div>\n            </div>\n          </Motion>\n\n          <!-- Member stats — mobile only (3 columns) -->\n          <Motion\n            :initial=\"{ opacity: 0, y: 16 }\"\n            :animate=\"{ opacity: 1, y: 0 }\"\n            :transition=\"{ duration: 0.4, delay: 0.35, ease: 'easeOut' }\"\n            class=\"grid grid-cols-3 gap-4 lg:hidden\"\n          >\n            <div v-for=\"stat in memberStats\" :key=\"stat.label\" class=\"space-y-1\">\n              <p class=\"text-muted-foreground text-xs\">{{ stat.label }}</p>\n              <div class=\"flex flex-wrap items-center gap-1.5\">\n                <span class=\"text-xl font-bold tracking-tight\">{{ stat.value }}</span>\n                <span\n                  class=\"inline-flex items-center gap-0.5 rounded-full bg-emerald-50 px-1.5 py-0.5 text-xs font-semibold text-emerald-700 dark:bg-emerald-950 dark:text-emerald-400\"\n                >\n                  <Icon name=\"solar:course-up-bold-duotone\" class=\"size-2.5\" />\n                  {{ stat.change }}\n                </span>\n              </div>\n            </div>\n          </Motion>\n\n          <!-- Start creating content -->\n          <Motion\n            :initial=\"{ opacity: 0, y: 16 }\"\n            :animate=\"{ opacity: 1, y: 0 }\"\n            :transition=\"{ duration: 0.4, delay: 0.38, ease: 'easeOut' }\"\n          >\n            <div>\n              <div class=\"mb-4 flex items-center justify-between\">\n                <h2 class=\"text-base font-semibold\">Start creating content</h2>\n                <UiDropdownMenu>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\">\n                      <Icon\n                        name=\"solar:menu-dots-bold-duotone\"\n                        class=\"text-muted-foreground size-5 rotate-90\"\n                      />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                  <UiDropdownMenuContent align=\"end\" class=\"w-44\">\n                    <UiDropdownMenuItem\n                      icon=\"solar:user-plus-bold-duotone\"\n                      title=\"Add content type\"\n                    />\n                    <UiDropdownMenuItem icon=\"solar:tuning-2-bold-duotone\" title=\"Manage content\" />\n                    <UiDropdownMenuSeparator />\n                    <UiDropdownMenuItem icon=\"solar:eye-closed-bold-duotone\" title=\"Hide section\" />\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </div>\n              <UiGradientDivider class=\"mb-6\" />\n              <div class=\"grid gap-4 sm:grid-cols-2\">\n                <div\n                  v-for=\"action in quickActions\"\n                  :key=\"action.title\"\n                  class=\"border-border/70 bg-card hover:bg-muted/30 flex cursor-pointer items-center gap-4 rounded-xl border p-4 transition-colors\"\n                >\n                  <UiFancyIcon class=\"rounded-lg\" theme=\"light\" :icon=\"action.icon\" />\n                  <div>\n                    <p class=\"text-sm font-semibold\">{{ action.title }}</p>\n                    <p class=\"text-muted-foreground text-sm\">{{ action.description }}</p>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </Motion>\n\n          <!-- Recent posts -->\n          <Motion\n            :initial=\"{ opacity: 0, y: 16 }\"\n            :while-in-view=\"{ opacity: 1, y: 0 }\"\n            :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n          >\n            <div>\n              <div class=\"mb-4 flex items-center justify-between\">\n                <h2 class=\"text-base font-semibold\">Recent posts</h2>\n                <UiDropdownMenu>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\">\n                      <Icon\n                        name=\"solar:menu-dots-bold-duotone\"\n                        class=\"text-muted-foreground size-5 rotate-90\"\n                      />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                  <UiDropdownMenuContent align=\"end\" class=\"w-44\">\n                    <UiDropdownMenuItem icon=\"solar:document-add-bold-duotone\" title=\"New post\" />\n                    <UiDropdownMenuItem\n                      icon=\"solar:documents-bold-duotone\"\n                      title=\"View all posts\"\n                    />\n                    <UiDropdownMenuSeparator />\n                    <UiDropdownMenuItem icon=\"solar:eye-closed-bold-duotone\" title=\"Hide section\" />\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </div>\n              <UiGradientDivider class=\"mb-6\" />\n              <div class=\"grid gap-5 sm:grid-cols-2\">\n                <div v-for=\"post in recentPosts\" :key=\"post.id\" class=\"group cursor-pointer\">\n                  <div class=\"relative overflow-hidden rounded-xl\">\n                    <img\n                      :src=\"post.image\"\n                      :alt=\"post.title\"\n                      class=\"h-64 w-full object-cover transition-transform duration-500 group-hover:scale-105\"\n                    />\n                    <div\n                      class=\"absolute inset-0 bg-linear-to-t from-black/70 via-black/10 to-transparent\"\n                    />\n                    <div class=\"absolute right-0 bottom-0 left-0 p-3\">\n                      <div class=\"flex items-end justify-between\">\n                        <div>\n                          <p class=\"text-xs font-semibold text-white\">{{ post.author }}</p>\n                          <p class=\"text-xs text-white/75\">{{ post.date }}</p>\n                        </div>\n                        <span\n                          class=\"rounded-full bg-white/20 px-2.5 py-0.5 text-xs font-medium text-white backdrop-blur-sm\"\n                        >\n                          {{ post.category }}\n                        </span>\n                      </div>\n                    </div>\n                  </div>\n                  <div class=\"mt-3 space-y-1\">\n                    <h3 class=\"leading-snug font-semibold\">{{ post.title }}</h3>\n                    <p class=\"text-muted-foreground line-clamp-2 text-sm leading-relaxed\">\n                      {{ post.excerpt }}\n                    </p>\n                    <span\n                      class=\"text-primary mt-1 inline-flex cursor-pointer items-center gap-1 text-sm font-medium hover:underline\"\n                    >\n                      Read post\n                      <Icon name=\"solar:arrow-right-up-bold-duotone\" class=\"size-3.5\" />\n                    </span>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </Motion>\n\n          <!-- Top members — mobile only -->\n          <Motion\n            :initial=\"{ opacity: 0, y: 16 }\"\n            :while-in-view=\"{ opacity: 1, y: 0 }\"\n            :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n            class=\"lg:hidden\"\n          >\n            <div>\n              <h2 class=\"mb-4 text-base font-semibold\">Top members</h2>\n              <div class=\"max-h-80 space-y-3 overflow-y-auto\">\n                <div\n                  v-for=\"member in topMembers\"\n                  :key=\"member.name\"\n                  class=\"flex items-center gap-3\"\n                >\n                  <div class=\"relative shrink-0\">\n                    <UiAvatar\n                      :src=\"member.avatar\"\n                      :alt=\"member.name\"\n                      :fallback=\"member.initials\"\n                      class=\"size-9\"\n                    />\n                    <span\n                      class=\"border-background absolute right-0 bottom-0 size-2.5 rounded-full border-2 bg-emerald-500\"\n                    />\n                  </div>\n                  <div class=\"min-w-0 flex-1\">\n                    <p class=\"truncate text-sm font-medium\">{{ member.name }}</p>\n                    <p class=\"text-muted-foreground truncate text-xs\">{{ member.since }}</p>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </Motion>\n        </div>\n\n        <!-- Right sidebar — desktop only -->\n        <div class=\"hidden shrink-0 space-y-8 lg:block lg:w-[260px]\">\n          <!-- Member stats -->\n          <Motion\n            :variants=\"statsContainerVariant\"\n            initial=\"initial\"\n            animate=\"animate\"\n            class=\"border-border/70 space-y-6 border-b pb-8\"\n          >\n            <Motion\n              v-for=\"stat in memberStats\"\n              :key=\"stat.label\"\n              :variants=\"statItemVariant\"\n              class=\"space-y-1.5\"\n            >\n              <p class=\"text-muted-foreground text-sm\">{{ stat.label }}</p>\n              <div class=\"flex items-center gap-2\">\n                <span class=\"text-3xl font-bold tracking-tight\">{{ stat.value }}</span>\n                <span\n                  class=\"inline-flex items-center gap-1 rounded-full bg-emerald-50 px-2 py-0.5 text-xs font-semibold text-emerald-700 dark:bg-emerald-950 dark:text-emerald-400\"\n                >\n                  <Icon name=\"solar:arrow-right-up-bold-duotone\" class=\"size-3\" />\n                  {{ stat.change }}\n                </span>\n              </div>\n            </Motion>\n          </Motion>\n\n          <!-- Top members (scrollable) -->\n          <Motion\n            :initial=\"{ opacity: 0, y: 12 }\"\n            :animate=\"{ opacity: 1, y: 0 }\"\n            :transition=\"{ duration: 0.4, delay: 0.6, ease: 'easeOut' }\"\n          >\n            <div>\n              <h3 class=\"mb-4 text-sm font-semibold\">Top members</h3>\n              <div class=\"space-y-4 overflow-y-auto pr-1\">\n                <div\n                  v-for=\"member in topMembers\"\n                  :key=\"member.name\"\n                  class=\"flex items-center gap-3\"\n                >\n                  <div class=\"relative shrink-0\">\n                    <UiAvatar\n                      :src=\"member.avatar\"\n                      :alt=\"member.name\"\n                      :fallback=\"member.initials\"\n                      class=\"size-9\"\n                    />\n                    <span\n                      class=\"border-background absolute right-0 bottom-0 size-2.5 rounded-full border-2 bg-emerald-500\"\n                    />\n                  </div>\n                  <div class=\"min-w-0 flex-1\">\n                    <p class=\"truncate text-sm font-medium\">{{ member.name }}</p>\n                    <p class=\"text-muted-foreground truncate text-xs\">{{ member.since }}</p>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </Motion>\n        </div>\n      </div>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  // Animation variants\n  const statsContainerVariant: MotionProps[\"variants\"] = {\n    initial: {},\n    animate: { transition: { staggerChildren: 0.12, delayChildren: 0.32 } },\n  };\n\n  const statItemVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 12 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  // User data\n  const currentUser = {\n    name: \"Behon Baker\",\n    firstName: \"Behon\",\n    email: \"behon.baker@yahoo.com\",\n    avatar: \"https://behonbaker.com/icon.png\",\n    fallback: \"BB\",\n  };\n\n  // Navigation\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  const subNavTabs = [\n    \"Overview\",\n    \"Notifications\",\n    \"Analytics\",\n    \"Saved reports\",\n    \"Scheduled reports\",\n    \"User reports\",\n  ];\n  const activeTab = ref(\"Overview\");\n\n  // Time range filter\n  const timeRanges = [\n    { label: \"12 months\", short: \"12m\", value: \"12months\" },\n    { label: \"30 days\", short: \"30d\", value: \"30days\" },\n    { label: \"7 days\", short: \"7d\", value: \"7days\" },\n    { label: \"24 hours\", short: \"24h\", value: \"24hours\" },\n  ];\n  const activeRange = ref(\"12months\");\n\n  // Settings toggles\n  const compactView = ref(false);\n  const showAvatars = ref(true);\n\n  // Sidebar stats\n  const memberStats = [\n    { label: \"Total members\", value: \"4,862\", change: \"9.2%\" },\n    { label: \"Paid members\", value: \"2,671\", change: \"6.6%\" },\n    { label: \"Email open rate\", value: \"82%\", change: \"8.1%\" },\n  ];\n\n  // Quick actions\n  const quickActions = [\n    {\n      icon: \"solar:user-plus-bold-duotone\",\n      title: \"Create your first member\",\n      description: \"Add yourself or import from CSV\",\n    },\n    {\n      icon: \"solar:pen-2-bold-duotone\",\n      title: \"Create a new post\",\n      description: \"Dive into the editor and start creating\",\n    },\n  ];\n\n  // Recent posts\n  const recentPosts = [\n    {\n      id: 1,\n      title: \"Building your API Stack\",\n      excerpt:\n        \"The rise of RESTful APIs has been met with a rise in tools for creating, testing, and managing them.\",\n      author: \"Lana Steiner\",\n      date: \"18 Jan 2025\",\n      category: \"Design\",\n      image: \"https://images.unsplash.com/photo-1618005198919-d3d4b5a92ead?w=600&h=400&fit=crop\",\n    },\n    {\n      id: 2,\n      title: \"Collaboration = better designer\",\n      excerpt: \"Collaboration can make our teams stronger, and our individual designs better.\",\n      author: \"Natali Craig\",\n      date: \"14 Jan 2025\",\n      category: \"Design\",\n      image: \"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=600&h=400&fit=crop\",\n    },\n  ];\n\n  // Top members\n  const topMembers = [\n    {\n      name: \"Phoenix Baker\",\n      since: \"Member since Feb 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=1\",\n      initials: \"PB\",\n    },\n    {\n      name: \"Lana Steiner\",\n      since: \"Member since Jan 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=5\",\n      initials: \"LS\",\n    },\n    {\n      name: \"Demi Wikinson\",\n      since: \"Member since Mar 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=10\",\n      initials: \"DW\",\n    },\n    {\n      name: \"Candice Wu\",\n      since: \"Member since Feb 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=20\",\n      initials: \"CW\",\n    },\n    {\n      name: \"Natali Craig\",\n      since: \"Member since Mar 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=25\",\n      initials: \"NC\",\n    },\n    {\n      name: \"Orlando Diggs\",\n      since: \"Member since Apr 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=12\",\n      initials: \"OD\",\n    },\n    {\n      name: \"Drew Cano\",\n      since: \"Member since Apr 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=15\",\n      initials: \"DC\",\n    },\n    {\n      name: \"Kate Morrison\",\n      since: \"Member since Jan 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=30\",\n      initials: \"KM\",\n    },\n    {\n      name: \"Koray Okumus\",\n      since: \"Member since Feb 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=33\",\n      initials: \"KO\",\n    },\n    {\n      name: \"Ava Wright\",\n      since: \"Member since Mar 2025\",\n      avatar: \"https://i.pravatar.cc/40?img=47\",\n      initials: \"AW\",\n    },\n  ];\n\n  // MRR chart\n  const mrrChartSeries = ref<ApexOptions[\"series\"]>([\n    {\n      name: \"Current year\",\n      data: [14200, 15800, 14900, 16200, 15500, 17100, 16800, 17900, 18200, 17600, 18500, 18880],\n    },\n    {\n      name: \"Previous year\",\n      data: [11000, 12200, 11800, 13100, 12700, 13800, 14100, 14600, 15200, 15800, 16400, 17200],\n    },\n  ]);\n\n  const mrrChartOptions = ref<ApexOptions>({\n    chart: {\n      type: \"line\",\n      toolbar: { show: false },\n      zoom: { enabled: false },\n      parentHeightOffset: 0,\n    },\n    colors: [\"var(--color-emerald-500)\", \"var(--color-purple-300)\"],\n    legend: { show: false },\n    dataLabels: { enabled: false },\n    stroke: {\n      curve: \"smooth\",\n      width: [2.5, 2],\n      dashArray: [0, 5],\n    },\n    markers: {\n      size: 0,\n      hover: { size: 4 },\n    },\n    tooltip: {\n      shared: true,\n      intersect: false,\n      y: {\n        formatter: (val: number) => `$${val.toLocaleString()}`,\n      },\n    },\n    grid: {\n      borderColor: \"color-mix(in oklab, var(--color-border) 60%, transparent)\",\n      strokeDashArray: 4,\n      padding: { left: 4, right: 4, top: 0, bottom: 0 },\n    },\n    xaxis: {\n      categories: [\n        \"Jan\",\n        \"Feb\",\n        \"Mar\",\n        \"Apr\",\n        \"May\",\n        \"Jun\",\n        \"Jul\",\n        \"Aug\",\n        \"Sep\",\n        \"Oct\",\n        \"Nov\",\n        \"Dec\",\n      ],\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n      tooltip: { enabled: false },\n      labels: {\n        style: {\n          colors: \"var(--color-muted-foreground)\",\n          fontSize: \"11px\",\n          fontFamily: \"inherit\",\n        },\n      },\n    },\n    yaxis: {\n      labels: { show: false },\n    },\n  });\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards2.vue","components":["apexcharts","avatar","badge","button","container","dropdown-menu","fancy-icon","gradient-divider","popover","tabs","vee-input"]},{"name":"Dashboards 3","fileName":"BlockDashboards3.vue","file":"<template>\n  <div\n    class=\"bg-background text-foreground min-h-screen [--color-primary:#8b5cf6] [--primary:#8b5cf6] [--radius:12px] [--ring:#8b5cf6]\"\n  >\n    <!-- Edit page sheet -->\n    <UiSheet v-model:open=\"editOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Edit page\"\n        description=\"Update the page details below.\"\n      >\n        <template #content>\n          <div class=\"space-y-5 px-6\">\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Page URL</label>\n              <UiVeeInput\n                v-model=\"editForm.page\"\n                name=\"edit-page\"\n                placeholder=\"e.g. uithing.com/pricing\"\n              />\n            </div>\n\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Folder</label>\n              <UiSelect v-model=\"editForm.folder\">\n                <UiSelectTrigger class=\"w-full\">\n                  <UiSelectValue placeholder=\"Select folder\" />\n                </UiSelectTrigger>\n                <UiSelectContent>\n                  <UiSelectItem v-for=\"f in folders\" :key=\"f\" :value=\"f\">{{ f }}</UiSelectItem>\n                </UiSelectContent>\n              </UiSelect>\n            </div>\n\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Visibility</label>\n              <UiSelect v-model=\"editForm.visibility\">\n                <UiSelectTrigger class=\"w-full\">\n                  <UiSelectValue placeholder=\"Select visibility\" />\n                </UiSelectTrigger>\n                <UiSelectContent>\n                  <UiSelectItem value=\"public\">Public</UiSelectItem>\n                  <UiSelectItem value=\"private\">Private</UiSelectItem>\n                </UiSelectContent>\n              </UiSelect>\n            </div>\n          </div>\n        </template>\n\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" @click=\"saveEdit\">Save changes</UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Delete confirmation dialog -->\n    <UiAlertDialog v-model:open=\"deleteOpen\">\n      <UiAlertDialogContent>\n        <UiAlertDialogHeader>\n          <UiAlertDialogTitle title=\"Delete page?\" />\n          <UiAlertDialogDescription\n            :description=\"`Are you sure you want to delete '${deleteTarget?.page}'? This action cannot be undone.`\"\n          />\n        </UiAlertDialogHeader>\n        <UiAlertDialogFooter>\n          <UiAlertDialogCancel />\n          <UiAlertDialogAction @click=\"confirmDelete\" />\n        </UiAlertDialogFooter>\n      </UiAlertDialogContent>\n    </UiAlertDialog>\n\n    <!-- Command palette / search dialog -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search\"\n      description=\"Search for pages, reports, and quick actions\"\n    >\n      <UiCommandInput placeholder=\"Search anything...\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n\n        <UiCommandGroup heading=\"Recent\">\n          <UiCommandItem v-for=\"item in recentSearches\" :key=\"item\" :value=\"item\">\n            <Icon name=\"heroicons:clock\" />\n            <span>{{ item }}</span>\n            <Icon name=\"heroicons:arrow-up-left\" class=\"ml-auto opacity-40\" />\n          </UiCommandItem>\n        </UiCommandGroup>\n\n        <UiCommandSeparator />\n\n        <UiCommandGroup heading=\"Quick links\">\n          <UiCommandItem v-for=\"link in quickLinks\" :key=\"link.label\" :value=\"link.label\">\n            <Icon :name=\"link.icon\" />\n            <span>{{ link.label }}</span>\n            <UiCommandShortcut>{{ link.path }}</UiCommandShortcut>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n\n      <!-- Keyboard shortcuts footer -->\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\">\n          <kbd\n            class=\"border-border/70 bg-background rounded border px-1.5 py-0.5 font-mono text-[10px]\"\n            >↵</kbd\n          >\n          to select\n        </span>\n        <span class=\"flex items-center gap-1.5\">\n          <kbd\n            class=\"border-border/70 bg-background rounded border px-1.5 py-0.5 font-mono text-[10px]\"\n            >↑↓</kbd\n          >\n          to navigate\n        </span>\n        <span class=\"flex items-center gap-1.5\">\n          <kbd\n            class=\"border-border/70 bg-background rounded border px-1.5 py-0.5 font-mono text-[10px]\"\n            >ESC</kbd\n          >\n          to close\n        </span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- Sticky header -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile nav popover -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton class=\"lg:hidden\" variant=\"ghost\" size=\"icon-sm\">\n                <Icon name=\"heroicons:bars-3\" class=\"size-5\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"\n                  item.active\n                    ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                    : 'text-muted-foreground'\n                \"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right actions -->\n        <div class=\"flex items-center gap-1\">\n          <!-- Search (opens modal) -->\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"rounded-full\"\n            aria-label=\"Open search\"\n            @click=\"searchOpen = true\"\n          >\n            <Icon name=\"heroicons:magnifying-glass\" class=\"text-muted-foreground size-5\" />\n          </UiButton>\n\n          <!-- Settings dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                <Icon name=\"heroicons:cog-6-tooth\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-56\">\n              <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n              <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n              <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notification preferences\" />\n              <UiDropdownMenuItem icon=\"heroicons:shield-check\" title=\"Privacy & security\" />\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuCheckboxItem v-model=\"compactRows\" title=\"Compact rows\" />\n              <UiDropdownMenuCheckboxItem v-model=\"showTrends\" title=\"Show trend indicators\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n\n          <!-- Notifications dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                <Icon name=\"heroicons:bell\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-80\">\n              <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                <span>Notifications</span>\n                <UiBadge variant=\"secondary\" size=\"sm\">3 new</UiBadge>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                icon=\"heroicons:arrow-trending-up\"\n                title=\"Traffic up 12% this week\"\n              >\n                <template #shortcut>2h ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem icon=\"heroicons:document-text\" title=\"Weekly report is ready\">\n                <template #shortcut>1d ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem\n                icon=\"heroicons:exclamation-circle\"\n                title=\"Bounce rate spike on /pricing\"\n              >\n                <template #shortcut>2d ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"heroicons:check\" title=\"Mark all as read\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n\n          <!-- User dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                <UiAvatar\n                  :src=\"currentUser.avatar\"\n                  :alt=\"currentUser.name\"\n                  :fallback=\"currentUser.fallback\"\n                  class=\"size-8 cursor-pointer\"\n                />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n              <UiDropdownMenuLabel>\n                <div class=\"flex flex-col\">\n                  <p class=\"text-sm font-medium\">{{ currentUser.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">{{ currentUser.email }}</p>\n                </div>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuGroup>\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing\" />\n                <UiDropdownMenuItem icon=\"heroicons:users\" title=\"Team\" />\n              </UiDropdownMenuGroup>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                variant=\"destructive\"\n                icon=\"heroicons:arrow-right-on-rectangle\"\n                title=\"Sign out\"\n              />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Page content -->\n    <UiContainer class=\"space-y-6 py-8\">\n      <!-- Page title + action buttons -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n        class=\"flex flex-wrap items-center justify-between gap-4\"\n      >\n        <h1 class=\"text-2xl font-semibold tracking-tight\">Site traffic</h1>\n        <div class=\"flex items-center gap-2\">\n          <UiButton variant=\"outline\">\n            <Icon name=\"heroicons:arrow-path\" class=\"size-4\" />\n            Switch dashboard\n          </UiButton>\n          <UiButton>\n            <Icon name=\"heroicons:arrow-down-tray\" class=\"size-4\" />\n            Export report\n          </UiButton>\n        </div>\n      </Motion>\n\n      <!-- Source tabs + time range tabs -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.15, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <!-- Traffic source tabs -->\n        <div class=\"scrollbar-none overflow-x-auto\">\n          <UiTabs v-model=\"activeSource\">\n            <UiTabsList class=\"border-border/70 bg-muted/30 border\">\n              <UiTabsTrigger v-for=\"tab in sourceTabs\" :key=\"tab\" :value=\"tab\">\n                {{ tab }}\n              </UiTabsTrigger>\n            </UiTabsList>\n          </UiTabs>\n        </div>\n\n        <!-- Time range tabs -->\n        <UiTabs v-model=\"activeRange\" class=\"shrink-0\">\n          <UiTabsList class=\"border-border/70 bg-muted/30 border\">\n            <UiTabsTrigger v-for=\"r in timeRanges\" :key=\"r.value\" :value=\"r.value\">\n              {{ r.label }}\n            </UiTabsTrigger>\n          </UiTabsList>\n        </UiTabs>\n      </Motion>\n\n      <!-- Metric cards with sparklines -->\n      <Motion\n        as=\"section\"\n        :variants=\"metricsContainerVariant\"\n        initial=\"initial\"\n        animate=\"animate\"\n        class=\"grid gap-4 md:grid-cols-3\"\n      >\n        <Motion\n          v-for=\"metric in metrics\"\n          :key=\"metric.label\"\n          :variants=\"metricCardVariant\"\n          class=\"border-border/70 bg-card overflow-hidden rounded-xl border shadow-xs\"\n        >\n          <div class=\"px-5 pt-5 pb-3\">\n            <!-- Card header -->\n            <div class=\"mb-3 flex items-center justify-between\">\n              <p class=\"text-muted-foreground text-sm\">{{ metric.label }}</p>\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\">\n                    <Icon name=\"heroicons:ellipsis-vertical\" class=\"text-muted-foreground size-4\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent align=\"end\" class=\"w-56\">\n                  <UiDropdownMenuItem icon=\"heroicons:chart-bar\" title=\"View detailed report\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Download data\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrows-right-left\" title=\"Compare periods\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:eye-slash\" title=\"Hide metric\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </div>\n\n            <!-- Value + trend -->\n            <div class=\"flex flex-wrap items-baseline gap-x-3 gap-y-1\">\n              <span class=\"text-3xl font-bold tracking-tight\">{{ metric.value }}</span>\n              <span\n                class=\"inline-flex items-center gap-1 text-sm font-medium text-emerald-600 dark:text-emerald-500\"\n              >\n                <Icon name=\"heroicons:arrow-trending-up\" class=\"size-4\" />\n                {{ metric.change }} vs last month\n              </span>\n            </div>\n          </div>\n\n          <!-- Sparkline -->\n          <div class=\"h-20\">\n            <UiApexchart\n              type=\"area\"\n              height=\"100%\"\n              :series=\"metric.series\"\n              :options=\"sparklineOptions\"\n            />\n          </div>\n        </Motion>\n      </Motion>\n\n      <Motion\n        :initial=\"{ opacity: 0 }\"\n        :animate=\"{ opacity: 1 }\"\n        :transition=\"{ duration: 0.4, delay: 0.4, ease: 'easeOut' }\"\n      >\n        <UiGradientDivider />\n      </Motion>\n\n      <!-- Pages and screens table -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, ease: 'easeOut', delay: 0.45 }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <!-- Section header -->\n          <UiCardHeader class=\"border-border/60 border-b py-5\">\n            <div class=\"mb-4 flex items-center justify-between\">\n              <UiCardTitle class=\"text-base font-semibold\">Pages and screens</UiCardTitle>\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\">\n                    <Icon name=\"heroicons:ellipsis-vertical\" class=\"text-muted-foreground size-4\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent align=\"end\" class=\"w-44\">\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export data\" />\n                  <UiDropdownMenuItem icon=\"heroicons:funnel\" title=\"Edit filters\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:eye-slash\" title=\"Hide section\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </div>\n\n            <!-- Controls -->\n            <div class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\">\n              <!-- Button group: View all / Public / Private -->\n              <UiToggleGroup\n                v-model=\"activeFilter\"\n                type=\"single\"\n                class=\"border-border/70 bg-muted/20 gap-0.5 rounded-lg border p-0.5\"\n              >\n                <UiToggleGroupItem\n                  v-for=\"f in tableFilters\"\n                  :key=\"f\"\n                  :value=\"f\"\n                  class=\"text-muted-foreground data-[state=on]:bg-background data-[state=on]:text-foreground w-full rounded-md px-3.5 data-[state=on]:shadow-xs sm:w-auto\"\n                >\n                  {{ f }}\n                </UiToggleGroupItem>\n              </UiToggleGroup>\n\n              <!-- Search + Filters -->\n              <div class=\"grid gap-4 sm:flex sm:items-center sm:gap-2\">\n                <div class=\"shrink-0 sm:w-48\">\n                  <UiVeeInput\n                    v-model=\"tableSearch\"\n                    icon=\"heroicons:magnifying-glass\"\n                    name=\"table-search\"\n                    placeholder=\"Search\"\n                  >\n                    <template #trailingIcon>\n                      <div class=\"absolute inset-y-0 right-3 flex items-center justify-center\">\n                        <UiKbd>⌘K</UiKbd>\n                      </div>\n                    </template>\n                  </UiVeeInput>\n                </div>\n                <UiButton variant=\"outline\" class=\"shrink-0\">\n                  <Icon name=\"heroicons:funnel\" class=\"size-4\" />\n                  Filters\n                </UiButton>\n              </div>\n            </div>\n          </UiCardHeader>\n\n          <!-- TanStack table -->\n          <UiTanStackTable\n            :data=\"filteredPages\"\n            :columns=\"pageColumns\"\n            :show-rows-per-page=\"false\"\n            :show-page-info=\"false\"\n            :show-pagination=\"false\"\n            :show-selected-count=\"false\"\n            :show-footer=\"true\"\n            :loading=\"pagesPending\"\n            :table-options=\"{ enableRowSelection: true }\"\n          >\n            <template #select-header=\"{ table }\">\n              <UiCheckbox\n                aria-label=\"Select all\"\n                :model-value=\"table.getIsAllPageRowsSelected()\"\n                @update:model-value=\"table.toggleAllPageRowsSelected(!!$event)\"\n              />\n            </template>\n\n            <template #select-cell=\"{ row }\">\n              <UiCheckbox\n                :aria-label=\"`Select ${row.original.page}`\"\n                :model-value=\"row.getIsSelected()\"\n                @update:model-value=\"row.toggleSelected(!!$event)\"\n              />\n            </template>\n\n            <template #percentage-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <div class=\"bg-muted h-1.5 w-28 overflow-hidden rounded-full\">\n                  <div\n                    class=\"bg-primary h-full rounded-full transition-all\"\n                    :style=\"{ width: `${Math.min(100, (row.original.percentage / 65) * 100)}%` }\"\n                  />\n                </div>\n                <span class=\"text-sm tabular-nums\">{{ row.original.percentage }}%</span>\n              </div>\n            </template>\n\n            <template #folder-cell=\"{ row }\">\n              <span\n                class=\"border-border/70 inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium\"\n              >\n                <span class=\"size-1.5 rounded-full bg-emerald-500\" />\n                {{ row.original.folder }}\n              </span>\n            </template>\n\n            <template #actions-cell=\"{ row }\">\n              <div class=\"flex items-center justify-end gap-0.5\">\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  class=\"text-muted-foreground hover:text-destructive\"\n                  :title=\"`Delete ${row.original.page}`\"\n                  @click=\"\n                    () => {\n                      deleteTarget = row.original;\n                      deleteOpen = true;\n                    }\n                  \"\n                >\n                  <Icon name=\"heroicons:trash\" class=\"size-4\" />\n                </UiButton>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  class=\"text-muted-foreground hover:text-foreground\"\n                  :title=\"`Edit ${row.original.page}`\"\n                  @click=\"openEdit(row.original)\"\n                >\n                  <Icon name=\"heroicons:pencil\" class=\"size-4\" />\n                </UiButton>\n              </div>\n            </template>\n\n            <template #footer=\"{ table }\">\n              <div\n                class=\"border-border/60 text-muted-foreground flex w-full flex-col gap-4 border-t px-6 py-4 text-sm font-medium sm:flex-row sm:items-center sm:justify-between\"\n              >\n                <p>\n                  Page {{ table.atoms.pagination.get().pageIndex + 1 }} of\n                  {{ table.getPageCount() }}\n                </p>\n                <div class=\"flex items-center gap-2\">\n                  <UiButton\n                    variant=\"outline\"\n                    size=\"sm\"\n                    :disabled=\"!table.getCanPreviousPage()\"\n                    @click=\"table.previousPage()\"\n                  >\n                    <Icon name=\"heroicons:chevron-left\" class=\"size-4\" />\n                    Previous\n                  </UiButton>\n                  <UiButton\n                    variant=\"outline\"\n                    size=\"sm\"\n                    :disabled=\"!table.getCanNextPage()\"\n                    @click=\"table.nextPage()\"\n                  >\n                    Next\n                    <Icon name=\"heroicons:chevron-right\" class=\"size-4\" />\n                  </UiButton>\n                </div>\n              </div>\n            </template>\n          </UiTanStackTable>\n        </UiCard>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ColumnDef } from \"@tanstack/vue-table\";\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  import type { TanStackTableFeatures } from \"~/components/Ui/TanStackTable.vue\";\n\n  // Animation variants\n  const metricsContainerVariant: MotionProps[\"variants\"] = {\n    initial: {},\n    animate: { transition: { staggerChildren: 0.1, delayChildren: 0.22 } },\n  };\n\n  const metricCardVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 16 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  // User data\n  const currentUser = {\n    name: \"Behon Baker\",\n    firstName: \"Behon\",\n    email: \"behon.baker@yahoo.com\",\n    avatar: \"https://behonbaker.com/icon.png\",\n    fallback: \"BB\",\n  };\n\n  // Navigation\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // Search modal\n  const searchOpen = ref(false);\n\n  const recentSearches = [\n    \"Total sessions last 30 days\",\n    \"Organic traffic conversion rate\",\n    \"Mobile bounce rate by page\",\n  ];\n\n  const quickLinks = [\n    { label: \"Analytics overview\", icon: \"heroicons:chart-bar\", path: \"/analytics\" },\n    { label: \"Traffic sources report\", icon: \"heroicons:arrow-trending-up\", path: \"/traffic\" },\n    { label: \"Page performance\", icon: \"heroicons:document-text\", path: \"/pages\" },\n  ];\n\n  const handleKeydown = (e: KeyboardEvent) => {\n    if (e.key === \"Escape\") searchOpen.value = false;\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n  };\n\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // Settings toggles\n  const compactRows = ref(false);\n  const showTrends = ref(true);\n\n  // Traffic source tabs\n  const sourceTabs = [\n    \"All sessions\",\n    \"Direct traffic\",\n    \"Organic traffic\",\n    \"Paid traffic\",\n    \"Mobile users\",\n    \"Returning users\",\n  ];\n  const activeSource = ref(\"All sessions\");\n\n  // Time range tabs\n  const timeRanges = [\n    { label: \"12m\", value: \"12months\" },\n    { label: \"30d\", value: \"30days\" },\n    { label: \"7d\", value: \"7days\" },\n    { label: \"24h\", value: \"24hours\" },\n  ];\n  const activeRange = ref(\"30days\");\n\n  // Metric cards\n  const metrics = [\n    {\n      label: \"Total sessions\",\n      value: \"526\",\n      change: \"2.4%\",\n      series: [\n        {\n          name: \"Sessions\",\n          data: [120, 108, 140, 118, 155, 138, 165, 145, 180, 162, 195, 178],\n        },\n      ],\n    },\n    {\n      label: \"Session duration\",\n      value: \"2:24\",\n      change: \"8.6%\",\n      series: [\n        {\n          name: \"Duration\",\n          data: [100, 122, 110, 135, 115, 148, 130, 158, 142, 165, 152, 175],\n        },\n      ],\n    },\n    {\n      label: \"Pages per session\",\n      value: \"316\",\n      change: \"6.0%\",\n      series: [\n        {\n          name: \"Pages\",\n          data: [80, 95, 88, 110, 98, 122, 112, 132, 118, 145, 135, 158],\n        },\n      ],\n    },\n  ];\n\n  const sparklineOptions = ref<ApexOptions>({\n    chart: {\n      type: \"area\",\n      sparkline: { enabled: true },\n      parentHeightOffset: 0,\n    },\n    stroke: { curve: \"smooth\", width: 2 },\n    fill: {\n      type: \"gradient\",\n      gradient: {\n        shadeIntensity: 1,\n        opacityFrom: 0.25,\n        opacityTo: 0.02,\n        stops: [0, 95, 100],\n      },\n    },\n    colors: [\"#10b981\"],\n    tooltip: { enabled: false },\n  });\n\n  // Edit sheet\n  const editOpen = ref(false);\n  const editTarget = ref<PageRow | null>(null);\n  const editForm = reactive({ page: \"\", folder: \"\", visibility: \"\" as \"public\" | \"private\" });\n\n  const openEdit = (row: PageRow) => {\n    editTarget.value = row;\n    editForm.page = row.page;\n    editForm.folder = row.folder;\n    editForm.visibility = row.visibility;\n    editOpen.value = true;\n  };\n\n  const saveEdit = () => {\n    editOpen.value = false;\n    useSonner(\"Page updated\", { description: `'${editForm.page}' has been saved.` });\n  };\n\n  // Delete dialog\n  const deleteOpen = ref(false);\n  const deleteTarget = ref<PageRow | null>(null);\n\n  const confirmDelete = () => {\n    if (!deleteTarget.value) return;\n    useSonner(`'${deleteTarget.value.page}' deleted`, {\n      description: \"The page has been permanently removed.\",\n    });\n    deleteTarget.value = null;\n  };\n\n  // Pages table\n  type PageRow = {\n    id: number;\n    page: string;\n    sessions: number;\n    avgTime: string;\n    percentage: number;\n    folder: string;\n    visibility: \"public\" | \"private\";\n  };\n\n  const tableFilters = [\"View all\", \"Public\", \"Private\"] as const;\n  const activeFilter = ref(\"View all\");\n  const tableSearch = ref(\"\");\n\n  const pageColumns: ColumnDef<TanStackTableFeatures, PageRow>[] = [\n    {\n      id: \"select\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-12\", td: \"w-12\" } },\n    },\n    {\n      accessorKey: \"page\",\n      header: \"Page\",\n    },\n    {\n      accessorKey: \"sessions\",\n      header: \"Sessions\",\n      meta: { class: { th: \"tabular-nums\", td: \"tabular-nums\" } },\n    },\n    {\n      accessorKey: \"avgTime\",\n      header: \"Avg time\",\n    },\n    {\n      id: \"percentage\",\n      accessorKey: \"percentage\",\n      header: \"% of total\",\n      enableSorting: true,\n    },\n    {\n      id: \"folder\",\n      accessorKey: \"folder\",\n      header: \"Folder\",\n      enableSorting: false,\n    },\n    {\n      id: \"actions\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-20\", td: \"w-20\" } },\n    },\n  ];\n\n  const basePaths = [\n    \"uithing.com\",\n    \"uithing.com/free-icons\",\n    \"uithing.com/icons\",\n    \"uithing.com/components\",\n    \"uithing.com/pricing\",\n    \"uithing.com/faqs\",\n    \"uithing.com/blog\",\n    \"uithing.com/templates\",\n    \"uithing.com/dashboard\",\n    \"uithing.com/signup\",\n    \"uithing.com/login\",\n    \"uithing.com/docs\",\n    \"uithing.com/resources\",\n    \"uithing.com/changelog\",\n    \"uithing.com/about\",\n  ];\n\n  const avgTimes = [\n    \"48s\",\n    \"56s\",\n    \"1m 8s\",\n    \"1m 12s\",\n    \"1m 24s\",\n    \"1m 36s\",\n    \"2m 2s\",\n    \"2m 14s\",\n    \"2m 22s\",\n    \"45s\",\n  ];\n\n  const folders = [\"General\", \"Marketing\", \"Docs\", \"Blog\", \"Resources\"];\n\n  const createPage = (i: number): PageRow => {\n    const base = basePaths[i % basePaths.length]!;\n    const page = i < basePaths.length ? base : `${base}?ref=${Math.floor(i / basePaths.length)}`;\n    const sessions = Math.max(8, Math.round(4288 / (i * 0.65 + 1)));\n    const percentage = Math.round((sessions / 4288) * 62.4 * 10) / 10;\n    return {\n      id: i + 1,\n      page,\n      sessions,\n      avgTime: avgTimes[i % avgTimes.length]!,\n      percentage,\n      folder: folders[i % folders.length]!,\n      visibility: i % 4 === 0 ? \"private\" : \"public\",\n    };\n  };\n\n  const { data: pagesData, pending: pagesPending } = await useAsyncData<PageRow[]>(\n    \"block-dashboard3-pages\",\n    async () => Array.from({ length: 100 }, (_, i) => createPage(i)),\n    { default: () => [] }\n  );\n\n  const pages = computed(() => pagesData.value ?? []);\n\n  const filteredPages = computed(() => {\n    let result = pages.value;\n    if (activeFilter.value === \"Public\") result = result.filter((p) => p.visibility === \"public\");\n    if (activeFilter.value === \"Private\") result = result.filter((p) => p.visibility === \"private\");\n    if (tableSearch.value.trim()) {\n      const q = tableSearch.value.toLowerCase();\n      result = result.filter((p) => p.page.toLowerCase().includes(q));\n    }\n    return result;\n  });\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards3.vue","components":["alert-dialog","apexcharts","avatar","badge","button","card","checkbox","command","container","dropdown-menu","gradient-divider","kbd","popover","select","sheet","tabs","tanstacktable","toggle-group","vee-input"]},{"name":"Dashboards 4","fileName":"BlockDashboards4.vue","file":"<template>\n  <div\n    class=\"bg-background text-foreground min-h-screen [--color-primary:#8b5cf6] [--primary:#8b5cf6] [--ring:#8b5cf6]\"\n  >\n    <!-- Edit customer sheet -->\n    <UiSheet v-model:open=\"editOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Edit customer\"\n        description=\"Update the customer details below.\"\n      >\n        <template #content>\n          <div class=\"space-y-5 px-6\">\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Name</label>\n              <UiVeeInput v-model=\"editForm.name\" name=\"edit-name\" placeholder=\"Full name\" />\n            </div>\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Email</label>\n              <UiVeeInput\n                v-model=\"editForm.email\"\n                name=\"edit-email\"\n                placeholder=\"email@example.com\"\n              />\n            </div>\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Amount</label>\n              <UiVeeInput v-model=\"editForm.amount\" name=\"edit-amount\" placeholder=\"$0.00\" />\n            </div>\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Status</label>\n              <UiSelect v-model=\"editForm.status\">\n                <UiSelectTrigger class=\"w-full\">\n                  <UiSelectValue placeholder=\"Select status\" />\n                </UiSelectTrigger>\n                <UiSelectContent>\n                  <UiSelectItem value=\"Paid\">Paid</UiSelectItem>\n                  <UiSelectItem value=\"Pending\">Pending</UiSelectItem>\n                  <UiSelectItem value=\"Failed\">Failed</UiSelectItem>\n                </UiSelectContent>\n              </UiSelect>\n            </div>\n          </div>\n        </template>\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" @click=\"saveEdit\">Save changes</UiButton>\n            <UiSheetX />\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Delete confirmation dialog -->\n    <UiAlertDialog v-model:open=\"deleteOpen\">\n      <UiAlertDialogContent>\n        <UiAlertDialogHeader>\n          <UiAlertDialogTitle title=\"Remove customer?\" />\n          <UiAlertDialogDescription\n            :description=\"`Are you sure you want to remove '${deleteTarget?.name}'? This action cannot be undone.`\"\n          />\n        </UiAlertDialogHeader>\n        <UiAlertDialogFooter>\n          <UiAlertDialogCancel />\n          <UiAlertDialogAction @click=\"confirmDelete\" />\n        </UiAlertDialogFooter>\n      </UiAlertDialogContent>\n    </UiAlertDialog>\n\n    <!-- Command palette search -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search\"\n      description=\"Search for customers, reports, and quick actions\"\n    >\n      <UiCommandInput placeholder=\"Search anything...\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Quick links\">\n          <UiCommandItem v-for=\"link in quickLinks\" :key=\"link.label\" :value=\"link.label\">\n            <Icon :name=\"link.icon\" />\n            <span>{{ link.label }}</span>\n            <UiCommandShortcut>{{ link.path }}</UiCommandShortcut>\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Recent customers\">\n          <UiCommandItem v-for=\"c in customers.slice(0, 4)\" :key=\"c.id\" :value=\"c.name\">\n            <Icon name=\"fluent:person-24-regular\" />\n            <span>{{ c.name }}</span>\n            <UiCommandShortcut>{{ c.email }}</UiCommandShortcut>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- Sticky header -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-14 items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-7 items-center justify-center rounded-md border shadow-xs\"\n            >\n              <div\n                class=\"size-3.5 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.9),rgba(255,255,255,0.15)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile nav -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full lg:hidden\">\n                <Icon\n                  name=\"fluent:line-horizontal-3-24-regular\"\n                  class=\"text-muted-foreground size-5\"\n                />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"item.active ? 'bg-muted text-foreground' : 'text-muted-foreground'\"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-0.5 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right actions -->\n        <div class=\"flex items-center gap-1.5\">\n          <!-- Upgrade now -->\n          <UiButton variant=\"outline\" size=\"sm\" class=\"hidden gap-1.5 sm:flex\">\n            <Icon name=\"fluent:flash-24-regular\" class=\"size-4 text-amber-500\" />\n            Upgrade now\n          </UiButton>\n\n          <!-- Settings dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                <Icon name=\"fluent:settings-24-regular\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-56\">\n              <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"fluent:person-24-regular\" title=\"Account settings\" />\n              <UiDropdownMenuItem icon=\"fluent:color-24-regular\" title=\"Appearance\" />\n              <UiDropdownMenuItem icon=\"fluent:alert-24-regular\" title=\"Notification preferences\" />\n              <UiDropdownMenuItem icon=\"fluent:shield-24-regular\" title=\"Privacy & security\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n\n          <!-- Notifications dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                <Icon name=\"fluent:alert-24-regular\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-80\">\n              <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                <span>Notifications</span>\n                <UiBadge variant=\"secondary\" size=\"sm\">3 new</UiBadge>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                icon=\"fluent:arrow-up-right-24-regular\"\n                title=\"Revenue up 2.4% this month\"\n              >\n                <template #shortcut>2h ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem icon=\"fluent:people-24-regular\" title=\"96 users active right now\">\n                <template #shortcut>1d ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem icon=\"fluent:document-24-regular\" title=\"Monthly report is ready\">\n                <template #shortcut>2d ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"fluent:checkmark-24-regular\" title=\"Mark all as read\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n\n          <!-- User dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                <UiAvatar\n                  :src=\"currentUser.avatar\"\n                  :alt=\"currentUser.name\"\n                  :fallback=\"currentUser.fallback\"\n                  class=\"size-8 cursor-pointer\"\n                />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n              <UiDropdownMenuLabel>\n                <div class=\"flex flex-col\">\n                  <p class=\"text-sm font-medium\">{{ currentUser.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">{{ currentUser.email }}</p>\n                </div>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuGroup>\n                <UiDropdownMenuItem icon=\"fluent:person-24-regular\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"fluent:settings-24-regular\" title=\"Settings\" />\n                <UiDropdownMenuItem icon=\"fluent:card-ui-24-regular\" title=\"Billing\" />\n                <UiDropdownMenuItem icon=\"fluent:people-24-regular\" title=\"Team\" />\n              </UiDropdownMenuGroup>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                variant=\"destructive\"\n                icon=\"fluent:arrow-exit-24-regular\"\n                title=\"Sign out\"\n              />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Sub-nav -->\n    <div class=\"border-border/70 bg-background/85 border-b backdrop-blur-md\">\n      <UiContainer class=\"flex items-center justify-between gap-4\">\n        <div class=\"scrollbar-none overflow-x-auto\">\n          <UiTabs v-model=\"activeSubNav\">\n            <UiTabsList class=\"h-auto gap-0 rounded-none bg-transparent px-0 pb-0\">\n              <UiTabsTrigger\n                v-for=\"tab in subNavTabs\"\n                :key=\"tab\"\n                :value=\"tab\"\n                class=\"text-muted-foreground hover:text-foreground data-[state=active]:border-primary data-[state=active]:text-foreground rounded-none border-b-2 border-transparent px-3.5 py-3.5 text-sm font-medium shadow-none transition-colors data-[state=active]:bg-transparent data-[state=active]:shadow-none\"\n              >\n                {{ tab }}\n              </UiTabsTrigger>\n            </UiTabsList>\n          </UiTabs>\n        </div>\n\n        <!-- Global search trigger -->\n        <div class=\"hidden shrink-0 sm:block\">\n          <UiButton\n            variant=\"outline\"\n            class=\"border-border/70 text-muted-foreground h-9 w-52 justify-start gap-2 font-normal\"\n            @click=\"searchOpen = true\"\n          >\n            <Icon name=\"fluent:search-24-regular\" class=\"size-4 shrink-0\" />\n            <span>Search</span>\n            <UiKbd class=\"ml-auto\">⌘K</UiKbd>\n          </UiButton>\n        </div>\n      </UiContainer>\n    </div>\n\n    <!-- Page content -->\n    <UiContainer class=\"space-y-6 py-8\">\n      <!-- Title -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n      >\n        <h1 class=\"text-2xl font-semibold tracking-tight\">My dashboard</h1>\n      </Motion>\n\n      <!-- KPI cards -->\n      <Motion\n        as=\"section\"\n        :variants=\"cardContainerVariant\"\n        initial=\"initial\"\n        animate=\"animate\"\n        class=\"grid gap-4 sm:grid-cols-3\"\n      >\n        <Motion v-for=\"metric in metrics\" :key=\"metric.label\" :variants=\"cardVariant\">\n          <UiCard\n            class=\"border-border/70 hover:border-primary/50 hover:ring-primary/15 gap-4 p-5 shadow-xs transition-all hover:ring-1\"\n          >\n            <div\n              class=\"border-border/70 bg-muted/50 flex size-9 items-center justify-center rounded-lg border\"\n            >\n              <Icon :name=\"metric.icon\" class=\"text-muted-foreground size-5\" />\n            </div>\n            <div>\n              <p class=\"text-muted-foreground mb-1 text-sm\">{{ metric.label }}</p>\n              <div class=\"flex flex-wrap items-baseline gap-x-2 gap-y-1\">\n                <span class=\"text-2xl font-bold tracking-tight\">{{ metric.value }}</span>\n                <span\n                  class=\"inline-flex items-center gap-1 text-xs font-medium text-emerald-600 dark:text-emerald-500\"\n                >\n                  <Icon name=\"fluent:arrow-trending-up-24-regular\" class=\"size-3.5\" />\n                  {{ metric.change }} vs last month\n                </span>\n              </div>\n            </div>\n          </UiCard>\n        </Motion>\n      </Motion>\n\n      <!-- Net revenue + chart -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.3, ease: 'easeOut' }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <!-- Header row -->\n          <div\n            class=\"flex flex-col gap-4 px-6 pt-6 pb-4 sm:flex-row sm:items-start sm:justify-between\"\n          >\n            <!-- Net revenue label + value -->\n            <div>\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger\n                  class=\"text-muted-foreground hover:text-foreground flex items-center gap-1 text-sm font-medium transition-colors\"\n                >\n                  Net revenue\n                  <Icon name=\"fluent:chevron-down-24-regular\" class=\"size-3.5\" />\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent class=\"w-44\">\n                  <UiDropdownMenuItem title=\"Net revenue\" />\n                  <UiDropdownMenuItem title=\"Gross revenue\" />\n                  <UiDropdownMenuItem title=\"Total refunds\" />\n                  <UiDropdownMenuItem title=\"New MRR\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n              <div class=\"mt-1.5 flex items-baseline gap-2\">\n                <span class=\"text-3xl font-bold tracking-tight\">$7,804.16</span>\n                <span\n                  class=\"inline-flex items-center gap-1 text-sm font-medium text-emerald-600 dark:text-emerald-500\"\n                >\n                  <Icon name=\"fluent:arrow-trending-up-24-regular\" class=\"size-4\" />\n                  2.4%\n                </span>\n              </div>\n            </div>\n\n            <!-- Time tabs + filters -->\n            <div class=\"flex flex-wrap items-center gap-2\">\n              <UiTabs v-model=\"activeRange\">\n                <UiTabsList class=\"border-border/70 bg-muted/30 border\">\n                  <UiTabsTrigger v-for=\"r in timeRanges\" :key=\"r.value\" :value=\"r.value\">\n                    {{ r.label }}\n                  </UiTabsTrigger>\n                </UiTabsList>\n              </UiTabs>\n              <UiButton variant=\"outline\" class=\"gap-1.5\">\n                <Icon name=\"fluent:filter-24-regular\" class=\"size-4\" />\n                Filters\n              </UiButton>\n            </div>\n          </div>\n\n          <!-- Bar + line chart -->\n          <div class=\"px-2 pb-2\">\n            <UiApexchart type=\"bar\" height=\"340\" :series=\"chartSeries\" :options=\"chartOptions\" />\n          </div>\n        </UiCard>\n      </Motion>\n\n      <Motion\n        :initial=\"{ opacity: 0 }\"\n        :animate=\"{ opacity: 1 }\"\n        :transition=\"{ duration: 0.4, delay: 0.35, ease: 'easeOut' }\"\n      >\n        <UiGradientDivider />\n      </Motion>\n\n      <!-- Customers table -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.4, ease: 'easeOut' }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <UiCardHeader class=\"border-border/60 border-b py-5\">\n            <div class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\">\n              <UiCardTitle class=\"text-base font-semibold\">Customers</UiCardTitle>\n              <div class=\"shrink-0 sm:w-56\">\n                <UiVeeInput\n                  v-model=\"tableSearch\"\n                  name=\"customer-search\"\n                  icon=\"fluent:search-24-regular\"\n                  placeholder=\"Search\"\n                >\n                  <template #trailingIcon>\n                    <span class=\"absolute inset-y-0 right-3 flex items-center justify-center\">\n                      <UiKbd>⌘K</UiKbd>\n                    </span>\n                  </template>\n                </UiVeeInput>\n              </div>\n            </div>\n          </UiCardHeader>\n\n          <UiTanStackTable\n            :data=\"filteredCustomers\"\n            :columns=\"customerColumns\"\n            :loading=\"customersPending\"\n            :show-rows-per-page=\"false\"\n            :show-page-info=\"false\"\n            :show-selected-count=\"false\"\n            :show-footer=\"true\"\n            :table-options=\"{ enableRowSelection: true }\"\n          >\n            <template #select-header=\"{ table }\">\n              <UiCheckbox\n                aria-label=\"Select all\"\n                :model-value=\"table.getIsAllPageRowsSelected()\"\n                @update:model-value=\"table.toggleAllPageRowsSelected(!!$event)\"\n              />\n            </template>\n\n            <template #select-cell=\"{ row }\">\n              <UiCheckbox\n                :aria-label=\"`Select ${row.original.name}`\"\n                :model-value=\"row.getIsSelected()\"\n                @update:model-value=\"row.toggleSelected(!!$event)\"\n              />\n            </template>\n\n            <template #name-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <UiAvatar\n                  :src=\"row.original.avatar\"\n                  :alt=\"row.original.name\"\n                  :fallback=\"row.original.name.slice(0, 2)\"\n                  class=\"size-8 shrink-0\"\n                />\n                <div class=\"min-w-0\">\n                  <p class=\"truncate text-sm font-medium\">{{ row.original.name }}</p>\n                  <p class=\"text-muted-foreground truncate text-xs\">{{ row.original.handle }}</p>\n                </div>\n              </div>\n            </template>\n\n            <template #status-cell=\"{ row }\">\n              <UiBadge variant=\"outline\" class=\"gap-1.5\">\n                <span\n                  class=\"size-1.5 rounded-full\"\n                  :class=\"{\n                    'bg-emerald-500': row.original.status === 'Paid',\n                    'bg-amber-500': row.original.status === 'Pending',\n                    'bg-red-500': row.original.status === 'Failed',\n                  }\"\n                />\n                {{ row.original.status }}\n              </UiBadge>\n            </template>\n\n            <template #actions-cell=\"{ row }\">\n              <div class=\"flex items-center justify-end gap-0.5\">\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  class=\"text-muted-foreground hover:text-destructive\"\n                  :title=\"`Delete ${row.original.name}`\"\n                  @click=\"\n                    () => {\n                      deleteTarget = row.original;\n                      deleteOpen = true;\n                    }\n                  \"\n                >\n                  <Icon name=\"fluent:delete-24-regular\" class=\"size-4\" />\n                </UiButton>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  class=\"text-muted-foreground hover:text-foreground\"\n                  :title=\"`Edit ${row.original.name}`\"\n                  @click=\"openEdit(row.original)\"\n                >\n                  <Icon name=\"fluent:edit-24-regular\" class=\"size-4\" />\n                </UiButton>\n              </div>\n            </template>\n\n            <template #footer=\"{ table }\">\n              <div\n                class=\"border-border/60 text-muted-foreground flex w-full flex-col gap-4 border-t px-6 py-4 text-sm font-medium sm:flex-row sm:items-center sm:justify-between\"\n              >\n                <p>\n                  Page {{ table.atoms.pagination.get().pageIndex + 1 }} of\n                  {{ table.getPageCount() }}\n                </p>\n                <div class=\"flex items-center gap-2\">\n                  <UiButton\n                    variant=\"outline\"\n                    size=\"sm\"\n                    :disabled=\"!table.getCanPreviousPage()\"\n                    @click=\"table.previousPage()\"\n                  >\n                    <Icon name=\"fluent:arrow-left-24-regular\" class=\"size-4\" />\n                    Previous\n                  </UiButton>\n                  <UiButton\n                    variant=\"outline\"\n                    size=\"sm\"\n                    :disabled=\"!table.getCanNextPage()\"\n                    @click=\"table.nextPage()\"\n                  >\n                    Next\n                    <Icon name=\"fluent:arrow-right-24-regular\" class=\"size-4\" />\n                  </UiButton>\n                </div>\n              </div>\n            </template>\n          </UiTanStackTable>\n        </UiCard>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { ColumnDef } from \"@tanstack/vue-table\";\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  import type { TanStackTableFeatures } from \"~/components/Ui/TanStackTable.vue\";\n\n  // Animation variants\n  const cardContainerVariant: MotionProps[\"variants\"] = {\n    initial: {},\n    animate: { transition: { staggerChildren: 0.08, delayChildren: 0.2 } },\n  };\n\n  const cardVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 16 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  // User\n  const currentUser = {\n    name: \"Behon Baker\",\n    email: \"behon.baker@yahoo.com\",\n    avatar: \"https://behonbaker.com/icon.png\",\n    fallback: \"BB\",\n  };\n\n  // Navigation\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // Sub-nav tabs\n  const subNavTabs = [\n    \"Overview\",\n    \"Notifications\",\n    \"Analytics\",\n    \"Saved reports\",\n    \"Scheduled reports\",\n    \"User reports\",\n  ];\n  const activeSubNav = ref(\"Overview\");\n\n  // Search\n  const searchOpen = ref(false);\n\n  const quickLinks = [\n    {\n      label: \"Analytics overview\",\n      icon: \"fluent:data-bar-vertical-24-regular\",\n      path: \"/analytics\",\n    },\n    {\n      label: \"Revenue report\",\n      icon: \"fluent:arrow-up-right-24-regular\",\n      path: \"/reports/revenue\",\n    },\n    { label: \"All customers\", icon: \"fluent:people-24-regular\", path: \"/customers\" },\n  ];\n\n  const handleKeydown = (e: KeyboardEvent) => {\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n    if (e.key === \"Escape\") searchOpen.value = false;\n  };\n\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // KPI metrics\n  const metrics = [\n    {\n      label: \"All revenue\",\n      value: \"$8,746.22\",\n      change: \"2.4%\",\n      icon: \"fluent:money-24-regular\",\n      highlighted: true,\n    },\n    {\n      label: \"Page views\",\n      value: \"12,440\",\n      change: \"6.2%\",\n      icon: \"fluent:eye-24-regular\",\n      highlighted: false,\n    },\n    {\n      label: \"Active now\",\n      value: \"96\",\n      change: \"0.8%\",\n      icon: \"fluent:person-24-regular\",\n      highlighted: false,\n    },\n  ];\n\n  // Time range tabs\n  const timeRanges = [\n    { label: \"12 months\", value: \"12months\" },\n    { label: \"30 days\", value: \"30days\" },\n    { label: \"7 days\", value: \"7days\" },\n    { label: \"24 hours\", value: \"24hours\" },\n  ];\n  const activeRange = ref(\"12months\");\n\n  // Revenue chart — data per time range\n  const rangeDataMap: Record<\n    string,\n    { categories: string[]; revenue: number[]; target: number[] }\n  > = {\n    \"12months\": {\n      categories: [\n        \"Jan '24\",\n        \"Feb '24\",\n        \"Mar '24\",\n        \"Apr '24\",\n        \"May '24\",\n        \"Jun '24\",\n        \"Jul '24\",\n        \"Aug '24\",\n        \"Sep '24\",\n        \"Oct '24\",\n        \"Nov '24\",\n        \"Dec '24\",\n        \"Jan '25\",\n        \"Feb '25\",\n        \"Mar '25\",\n        \"Apr '25\",\n        \"May '25\",\n        \"Jun '25\",\n        \"Jul '25\",\n        \"Aug '25\",\n        \"Sep '25\",\n        \"Oct '25\",\n        \"Nov '25\",\n        \"Dec '25\",\n      ],\n      revenue: [\n        3100, 4400, 3800, 5200, 4100, 6300, 5700, 7200, 6500, 7800, 6900, 8400, 4200, 5800, 4800,\n        6200, 5100, 7300, 6800, 8100, 7400, 8900, 7600, 9200,\n      ],\n      target: [\n        3500, 3900, 4200, 4600, 5000, 5300, 5600, 6000, 6300, 6700, 7000, 7400, 4500, 5200, 5500,\n        5800, 6200, 6600, 7000, 7400, 7800, 8200, 8600, 9000,\n      ],\n    },\n    \"30days\": {\n      categories: Array.from({ length: 30 }, (_, i) => {\n        const d = new Date(2025, 2, i + 1);\n        return `${d.getDate()} Mar`;\n      }),\n      revenue: [\n        210, 185, 240, 195, 310, 275, 340, 290, 260, 380, 320, 410, 350, 295, 430, 370, 445, 390,\n        320, 480, 415, 460, 395, 510, 440, 390, 530, 470, 420, 560,\n      ],\n      target: [\n        220, 225, 230, 235, 245, 250, 260, 265, 270, 280, 285, 295, 300, 310, 315, 325, 330, 340,\n        345, 355, 360, 370, 375, 385, 390, 400, 405, 415, 420, 430,\n      ],\n    },\n    \"7days\": {\n      categories: [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"],\n      revenue: [1240, 980, 1580, 1320, 1750, 820, 640],\n      target: [1100, 1100, 1300, 1300, 1500, 900, 900],\n    },\n    \"24hours\": {\n      categories: Array.from({ length: 24 }, (_, i) => `${String(i).padStart(2, \"0\")}:00`),\n      revenue: [\n        42, 28, 18, 12, 10, 15, 38, 95, 180, 260, 310, 345, 390, 420, 375, 340, 310, 295, 320, 380,\n        350, 290, 210, 140,\n      ],\n      target: [\n        50, 50, 50, 50, 50, 80, 120, 180, 250, 300, 330, 360, 380, 380, 360, 330, 300, 280, 300,\n        350, 320, 270, 200, 130,\n      ],\n    },\n  };\n\n  const chartOptions = computed<ApexOptions>(() => ({\n    chart: {\n      type: \"bar\",\n      toolbar: { show: false },\n      fontFamily: \"inherit\",\n      parentHeightOffset: 0,\n      animations: { enabled: true, easing: \"easeinout\", speed: 400 },\n    },\n    plotOptions: {\n      bar: { columnWidth: \"42%\", borderRadius: 3, borderRadiusApplication: \"end\" },\n    },\n    stroke: { width: [0, 2], curve: \"smooth\", dashArray: [0, 5] },\n    colors: [\"#8b5cf6\", \"#c4b5fd\"],\n    fill: { opacity: [1, 0.8] },\n    xaxis: {\n      categories: rangeDataMap?.[activeRange.value]?.categories,\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n      labels: {\n        style: {\n          colors: Array(rangeDataMap?.[activeRange.value]?.categories.length ?? 0).fill(\n            \"var(--color-muted-foreground)\"\n          ) as string[],\n          fontSize: \"12px\",\n        },\n      },\n    },\n    yaxis: { show: false },\n    grid: { show: false, padding: { left: 8, right: 8 } },\n    legend: { show: false },\n    tooltip: { shared: true, intersect: false },\n    dataLabels: { enabled: false },\n  }));\n\n  const chartSeries = computed<ApexOptions[\"series\"]>(() => [\n    { name: \"Revenue\", type: \"bar\", data: rangeDataMap?.[activeRange.value]?.revenue ?? [] },\n    { name: \"Target\", type: \"line\", data: rangeDataMap?.[activeRange.value]?.target ?? [] },\n  ]);\n\n  // Customers table\n  type CustomerRow = {\n    id: number;\n    name: string;\n    handle: string;\n    avatar: string;\n    email: string;\n    date: string;\n    status: \"Paid\" | \"Pending\" | \"Failed\";\n    amount: string;\n  };\n\n  const tableSearch = ref(\"\");\n\n  const customerColumns: ColumnDef<TanStackTableFeatures, CustomerRow>[] = [\n    {\n      id: \"select\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-12\", td: \"w-12\" } },\n    },\n    {\n      accessorKey: \"name\",\n      header: \"Customer\",\n      meta: { class: { td: \"min-w-[180px]\" } },\n    },\n    {\n      accessorKey: \"email\",\n      header: \"Email\",\n      meta: { class: { td: \"text-muted-foreground\" } },\n    },\n    {\n      accessorKey: \"date\",\n      header: \"Date\",\n      meta: { class: { td: \"text-muted-foreground tabular-nums\" } },\n    },\n    {\n      id: \"status\",\n      accessorKey: \"status\",\n      header: \"Status\",\n      enableSorting: false,\n    },\n    {\n      accessorKey: \"amount\",\n      header: \"Amount\",\n      meta: { class: { th: \"text-right\", td: \"text-right tabular-nums font-medium\" } },\n    },\n    {\n      id: \"actions\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-20\", td: \"w-20\" } },\n    },\n  ];\n\n  const firstNames = [\n    \"Lily-Rose\",\n    \"Caitlyn\",\n    \"Fleur\",\n    \"Marco\",\n    \"Lulu\",\n    \"Mikey\",\n    \"Freya\",\n    \"James\",\n    \"Sofia\",\n    \"Noah\",\n    \"Emma\",\n    \"Liam\",\n    \"Olivia\",\n    \"Ethan\",\n    \"Ava\",\n    \"Mason\",\n    \"Isabella\",\n    \"Logan\",\n    \"Mia\",\n    \"Lucas\",\n  ];\n\n  const lastNames = [\n    \"Chedjou\",\n    \"King\",\n    \"Cook\",\n    \"Kelly\",\n    \"Meyers\",\n    \"Lawrence\",\n    \"Browning\",\n    \"Smith\",\n    \"Johnson\",\n    \"Williams\",\n    \"Brown\",\n    \"Jones\",\n    \"Garcia\",\n    \"Miller\",\n    \"Davis\",\n    \"Wilson\",\n    \"Taylor\",\n    \"Anderson\",\n    \"Thomas\",\n    \"Jackson\",\n  ];\n\n  const amounts = [\n    \"$100.14\",\n    \"$96.32\",\n    \"$104.24\",\n    \"$88.48\",\n    \"$107.10\",\n    \"$82.04\",\n    \"$91.50\",\n    \"$115.00\",\n    \"$78.25\",\n    \"$123.60\",\n  ];\n\n  const statuses: CustomerRow[\"status\"][] = [\n    \"Paid\",\n    \"Paid\",\n    \"Paid\",\n    \"Paid\",\n    \"Pending\",\n    \"Paid\",\n    \"Paid\",\n    \"Failed\",\n  ];\n\n  const domains = [\"gmail.com\", \"icloud.com\", \"yahoo.com\", \"outlook.com\"];\n\n  const createCustomer = (i: number): CustomerRow => {\n    const first = firstNames[i % firstNames.length] ?? \"User\";\n    const last = lastNames[i % lastNames.length] ?? \"Name\";\n    const name = `${first} ${last}`;\n    const slug = first.toLowerCase().replace(/[-\\s]/g, \"\");\n    const handle = `@${slug}${last.toLowerCase()}`;\n    const email = `${slug}@${domains[i % domains.length] ?? \"example.com\"}`;\n    const day = Math.max(1, 16 - Math.floor(i / 6));\n    const month = i < 60 ? \"Jan\" : \"Feb\";\n    return {\n      id: i + 1,\n      name,\n      handle,\n      avatar: `https://i.pravatar.cc/40?img=${(i % 70) + 1}`,\n      email,\n      date: `${month} ${day}, 2025`,\n      status: statuses[i % statuses.length] ?? \"Paid\",\n      amount: amounts[i % amounts.length] ?? \"$0.00\",\n    };\n  };\n\n  const { data: customersData, pending: customersPending } = await useAsyncData<CustomerRow[]>(\n    \"block-dashboard4-customers\",\n    async () => Array.from({ length: 100 }, (_, i) => createCustomer(i)),\n    { default: () => [] }\n  );\n\n  const customers = computed(() => customersData.value ?? []);\n\n  const filteredCustomers = computed(() => {\n    if (!tableSearch.value.trim()) return customers.value;\n    const q = tableSearch.value.toLowerCase();\n    return customers.value.filter(\n      (c) => c.name.toLowerCase().includes(q) || c.email.toLowerCase().includes(q)\n    );\n  });\n\n  // Delete dialog\n  const deleteOpen = ref(false);\n  const deleteTarget = ref<CustomerRow | null>(null);\n\n  const confirmDelete = () => {\n    if (!deleteTarget.value) return;\n    useSonner(`'${deleteTarget.value.name}' removed`, {\n      description: \"The customer has been permanently deleted.\",\n    });\n    deleteTarget.value = null;\n  };\n\n  // Edit sheet\n  const editOpen = ref(false);\n  const editForm = reactive({\n    name: \"\",\n    email: \"\",\n    amount: \"\",\n    status: \"\" as CustomerRow[\"status\"],\n  });\n\n  const openEdit = (row: CustomerRow) => {\n    editForm.name = row.name;\n    editForm.email = row.email;\n    editForm.amount = row.amount;\n    editForm.status = row.status;\n    editOpen.value = true;\n  };\n\n  const saveEdit = () => {\n    editOpen.value = false;\n    useSonner(\"Customer updated\", { description: `${editForm.name} has been saved.` });\n  };\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards4.vue","components":["alert-dialog","apexcharts","avatar","badge","button","card","checkbox","command","container","dropdown-menu","gradient-divider","kbd","popover","select","sheet","tabs","tanstacktable","vee-input"]},{"name":"Dashboards 5","fileName":"BlockDashboards5.vue","file":"<template>\n  <div\n    class=\"bg-background text-foreground min-h-screen [--color-primary:#E3A514] [--primary:#E3A514] [--radius:12px] [--ring:#E3A514]\"\n  >\n    <!-- Edit user sheet -->\n    <UiSheet v-model:open=\"editOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Edit user\"\n        description=\"Update the user's details below.\"\n      >\n        <template #content>\n          <div class=\"space-y-5 px-6\">\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Full name</label>\n              <UiVeeInput v-model=\"editForm.name\" name=\"edit-name\" placeholder=\"Full name\" />\n            </div>\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Email</label>\n              <UiVeeInput v-model=\"editForm.email\" name=\"edit-email\" placeholder=\"Email address\" />\n            </div>\n            <div class=\"space-y-1.5\">\n              <label class=\"text-sm font-medium\">Role</label>\n              <UiSelect v-model=\"editForm.role\">\n                <UiSelectTrigger class=\"w-full\">\n                  <UiSelectValue placeholder=\"Select role\" />\n                </UiSelectTrigger>\n                <UiSelectContent>\n                  <UiSelectItem value=\"Admin\">Admin</UiSelectItem>\n                  <UiSelectItem value=\"Member\">Member</UiSelectItem>\n                  <UiSelectItem value=\"Viewer\">Viewer</UiSelectItem>\n                </UiSelectContent>\n              </UiSelect>\n            </div>\n          </div>\n        </template>\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" @click=\"saveEdit\">Save changes</UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Delete confirmation dialog -->\n    <UiAlertDialog v-model:open=\"deleteOpen\">\n      <UiAlertDialogContent>\n        <UiAlertDialogHeader>\n          <UiAlertDialogTitle title=\"Remove user?\" />\n          <UiAlertDialogDescription\n            :description=\"`Are you sure you want to remove '${deleteTarget?.name}'? This action cannot be undone.`\"\n          />\n        </UiAlertDialogHeader>\n        <UiAlertDialogFooter>\n          <UiAlertDialogCancel />\n          <UiAlertDialogAction @click=\"confirmDelete\" />\n        </UiAlertDialogFooter>\n      </UiAlertDialogContent>\n    </UiAlertDialog>\n\n    <!-- Command / search dialog -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search\"\n      description=\"Search for users, reports, and quick actions\"\n    >\n      <UiCommandInput placeholder=\"Search anything...\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Recent\">\n          <UiCommandItem v-for=\"item in recentSearches\" :key=\"item\" :value=\"item\">\n            <Icon name=\"heroicons:clock\" />\n            <span>{{ item }}</span>\n            <Icon name=\"heroicons:arrow-up-left\" class=\"ml-auto opacity-40\" />\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Quick links\">\n          <UiCommandItem v-for=\"link in quickLinks\" :key=\"link.label\" :value=\"link.label\">\n            <Icon :name=\"link.icon\" />\n            <span>{{ link.label }}</span>\n            <UiCommandShortcut>{{ link.path }}</UiCommandShortcut>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- Sticky header -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile nav popover -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton class=\"lg:hidden\" variant=\"ghost\" size=\"icon-sm\">\n                <Icon name=\"heroicons:bars-3\" class=\"size-5\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"\n                  item.active\n                    ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                    : 'text-muted-foreground'\n                \"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right actions -->\n        <div class=\"flex items-center gap-1\">\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"rounded-full\"\n            aria-label=\"Open search\"\n            @click=\"searchOpen = true\"\n          >\n            <Icon name=\"heroicons:magnifying-glass\" class=\"text-muted-foreground size-5\" />\n          </UiButton>\n\n          <!-- Settings dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                <Icon name=\"heroicons:cog-6-tooth\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-56\">\n              <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n              <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n              <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notification preferences\" />\n              <UiDropdownMenuItem icon=\"heroicons:shield-check\" title=\"Privacy & security\" />\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuCheckboxItem v-model=\"compactRows\" title=\"Compact rows\" />\n              <UiDropdownMenuCheckboxItem v-model=\"showTrends\" title=\"Show trend indicators\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n\n          <!-- Notifications dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                <Icon name=\"heroicons:bell\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-80\">\n              <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                <span>Notifications</span>\n                <UiBadge variant=\"secondary\" size=\"sm\">3 new</UiBadge>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                icon=\"heroicons:arrow-trending-up\"\n                title=\"Traffic up 12% this week\"\n              >\n                <template #shortcut>2h ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem icon=\"heroicons:user-plus\" title=\"5 new users joined today\">\n                <template #shortcut>4h ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuItem\n                icon=\"heroicons:exclamation-circle\"\n                title=\"Unusual login detected\"\n              >\n                <template #shortcut>1d ago</template>\n              </UiDropdownMenuItem>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"heroicons:check\" title=\"Mark all as read\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n\n          <!-- User dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                <UiAvatar\n                  :src=\"currentUser.avatar\"\n                  :alt=\"currentUser.name\"\n                  :fallback=\"currentUser.fallback\"\n                  class=\"size-8 cursor-pointer\"\n                />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n              <UiDropdownMenuLabel>\n                <div class=\"flex flex-col\">\n                  <p class=\"text-sm font-medium\">{{ currentUser.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">{{ currentUser.email }}</p>\n                </div>\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuGroup>\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing\" />\n                <UiDropdownMenuItem icon=\"heroicons:users\" title=\"Team\" />\n              </UiDropdownMenuGroup>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                variant=\"destructive\"\n                icon=\"heroicons:arrow-right-on-rectangle\"\n                title=\"Sign out\"\n              />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Page content -->\n    <UiContainer class=\"space-y-8 py-8\">\n      <!-- Breadcrumb + welcome + user card -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n      >\n        <div class=\"flex flex-col gap-5 lg:flex-row lg:items-start lg:justify-between\">\n          <div class=\"space-y-1.5\">\n            <!-- Breadcrumb -->\n            <div class=\"text-muted-foreground flex items-center gap-2 text-sm\">\n              <UiAvatar\n                :src=\"currentUser.avatar\"\n                :alt=\"currentUser.name\"\n                :fallback=\"currentUser.fallback\"\n                class=\"size-5\"\n              />\n              <span>{{ currentUser.name }}</span>\n              <Icon name=\"heroicons:chevron-right\" class=\"size-3.5 shrink-0\" />\n              <span class=\"text-foreground font-medium\">Dashboard</span>\n            </div>\n            <h1 class=\"text-2xl font-bold tracking-tight\">\n              Welcome back, {{ currentUser.firstName }}\n            </h1>\n            <p class=\"text-muted-foreground text-sm\">\n              Here's an overview of your site traffic and recently active users.\n            </p>\n          </div>\n\n          <!-- User card dropdown -->\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <button\n                class=\"border-border/70 bg-card hover:bg-muted/40 focus-visible:ring-ring flex w-fit cursor-pointer items-center gap-2 rounded-xl border px-4 py-3 shadow-xs transition-colors focus-visible:ring-1 focus-visible:outline-none\"\n              >\n                <UiAvatarLabelGroup\n                  :src=\"currentUser.avatar\"\n                  :alt=\"currentUser.name\"\n                  :fallback=\"currentUser.fallback\"\n                  :title=\"currentUser.name\"\n                  :subtitle=\"currentUser.email\"\n                  size=\"sm\"\n                />\n                <Icon\n                  name=\"heroicons:chevron-down\"\n                  class=\"text-muted-foreground ml-1 size-4 shrink-0\"\n                />\n              </button>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\" class=\"w-56\">\n              <UiDropdownMenuLabel>\n                <UiAvatarLabelGroup\n                  :src=\"currentUser.avatar\"\n                  :alt=\"currentUser.name\"\n                  :fallback=\"currentUser.fallback\"\n                  :title=\"currentUser.name\"\n                  :subtitle=\"currentUser.email\"\n                  size=\"sm\"\n                />\n              </UiDropdownMenuLabel>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuGroup>\n                <UiDropdownMenuItem icon=\"heroicons:user-circle\" title=\"View profile\" />\n                <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Account settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing & plans\" />\n                <UiDropdownMenuItem icon=\"heroicons:users\" title=\"Switch team\" />\n              </UiDropdownMenuGroup>\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem icon=\"heroicons:question-mark-circle\" title=\"Help & support\" />\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem\n                variant=\"destructive\"\n                icon=\"heroicons:arrow-right-on-rectangle\"\n                title=\"Sign out\"\n              />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n        </div>\n      </Motion>\n\n      <!-- Site traffic + chart -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.2, ease: 'easeOut' }\"\n        class=\"space-y-4\"\n      >\n        <div class=\"flex flex-wrap items-center justify-between gap-3\">\n          <h2 class=\"text-xl font-semibold\">\n            Site traffic\n            <span class=\"ml-1.5 text-emerald-500 dark:text-emerald-400\">+104%</span>\n          </h2>\n          <div class=\"flex flex-wrap items-center gap-2\">\n            <UiTabs v-model=\"activeRange\">\n              <UiTabsList class=\"border-border/70 bg-muted/30 border\">\n                <UiTabsTrigger v-for=\"r in timeRanges\" :key=\"r.value\" :value=\"r.value\">\n                  <span class=\"hidden sm:inline\">{{ r.label }}</span>\n                  <span class=\"sm:hidden\">{{ r.short }}</span>\n                </UiTabsTrigger>\n              </UiTabsList>\n            </UiTabs>\n            <UiButton variant=\"outline\" size=\"sm\">\n              <Icon name=\"heroicons:funnel\" class=\"size-4\" />\n              Filters\n            </UiButton>\n          </div>\n        </div>\n\n        <!-- Chart -->\n        <div class=\"border-border/70 bg-card overflow-hidden rounded-xl border shadow-xs\">\n          <UiApexchart type=\"area\" height=\"380\" :series=\"chartSeries\" :options=\"chartOptions\" />\n        </div>\n      </Motion>\n\n      <Motion\n        :initial=\"{ opacity: 0 }\"\n        :animate=\"{ opacity: 1 }\"\n        :transition=\"{ duration: 0.4, delay: 0.3, ease: 'easeOut' }\"\n      >\n        <UiGradientDivider />\n      </Motion>\n\n      <!-- Recently active table -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, ease: 'easeOut', delay: 0.35 }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <!-- Card header -->\n          <UiCardHeader class=\"border-border/60 border-b py-5\">\n            <div class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\">\n              <UiCardTitle class=\"text-lg font-semibold\">Recently active</UiCardTitle>\n              <!-- Search -->\n              <div class=\"w-full sm:w-56\">\n                <UiVeeInput\n                  v-model=\"tableSearch\"\n                  icon=\"heroicons:magnifying-glass\"\n                  name=\"user-search\"\n                  placeholder=\"Search\"\n                />\n              </div>\n            </div>\n          </UiCardHeader>\n\n          <!-- TanStack table -->\n          <UiTanStackTable\n            :data=\"filteredUsers\"\n            :columns=\"userColumns\"\n            :show-rows-per-page=\"false\"\n            :show-page-info=\"false\"\n            :show-pagination=\"false\"\n            :show-selected-count=\"false\"\n            :show-footer=\"true\"\n            :loading=\"usersPending\"\n            :table-options=\"{ enableRowSelection: true }\"\n          >\n            <template #select-header=\"{ table }\">\n              <UiCheckbox\n                aria-label=\"Select all\"\n                :model-value=\"\n                  table.getIsAllPageRowsSelected() ||\n                  (table.getIsSomePageRowsSelected() && 'indeterminate')\n                \"\n                @update:model-value=\"table.toggleAllPageRowsSelected(!!$event)\"\n              />\n            </template>\n\n            <template #select-cell=\"{ row }\">\n              <UiCheckbox\n                :aria-label=\"`Select ${row.original.name}`\"\n                :model-value=\"row.getIsSelected()\"\n                @update:model-value=\"row.toggleSelected(!!$event)\"\n              />\n            </template>\n\n            <template #name-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <UiAvatar\n                  :src=\"row.original.avatar\"\n                  :alt=\"row.original.name\"\n                  :fallback=\"row.original.fallback\"\n                  class=\"size-8 shrink-0\"\n                />\n                <div class=\"flex min-w-0 flex-col\">\n                  <span class=\"truncate text-sm font-medium\">{{ row.original.name }}</span>\n                  <span class=\"text-muted-foreground truncate text-xs\">{{\n                    row.original.email\n                  }}</span>\n                </div>\n              </div>\n            </template>\n\n            <template #access-cell=\"{ row }\">\n              <div class=\"flex flex-wrap gap-1.5\">\n                <span\n                  v-for=\"perm in row.original.access\"\n                  :key=\"perm\"\n                  class=\"border-border/70 inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium\"\n                >\n                  <span class=\"size-1.5 shrink-0 rounded-full\" :class=\"accessDotColor(perm)\" />\n                  {{ perm }}\n                </span>\n              </div>\n            </template>\n\n            <template #actions-cell=\"{ row }\">\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground\">\n                    <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent align=\"end\" class=\"w-44\">\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:pencil\"\n                    title=\"Edit user\"\n                    @select=\"openEdit(row.original)\"\n                  />\n                  <UiDropdownMenuItem icon=\"heroicons:eye\" title=\"View profile\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:trash\"\n                    title=\"Remove user\"\n                    class=\"text-destructive focus:text-destructive\"\n                    @select=\"\n                      () => {\n                        deleteTarget = row.original;\n                        deleteOpen = true;\n                      }\n                    \"\n                  />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </template>\n\n            <template #footer=\"{ table }\">\n              <div\n                class=\"border-border/60 flex w-full flex-col gap-3 border-t px-6 py-4 text-sm sm:flex-row sm:items-center sm:justify-between\"\n              >\n                <!-- Selected count -->\n                <p class=\"text-muted-foreground shrink-0 font-medium\">\n                  <template v-if=\"table.getFilteredSelectedRowModel().rows.length > 0\">\n                    {{ table.getFilteredSelectedRowModel().rows.length }} selected\n                  </template>\n                </p>\n\n                <!-- Desktop pagination — numbered pages -->\n                <UiPagination\n                  class=\"mx-0! hidden! justify-end! sm:flex!\"\n                  :total=\"filteredUsers.length\"\n                  :items-per-page=\"10\"\n                  :sibling-count=\"1\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList v-slot=\"{ items }\" class=\"gap-1\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        <Icon name=\"heroicons:chevron-left\" class=\"size-4\" />\n                        Previous\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <template v-for=\"(item, idx) in items\" :key=\"idx\">\n                      <UiPaginationItem v-if=\"item.type === 'page'\" as-child v-bind=\"item\" />\n                      <UiPaginationEllipsis\n                        v-else-if=\"item.type === 'ellipsis'\"\n                        as-child\n                        v-bind=\"item\"\n                        icon=\"heroicons:ellipsis-horizontal\"\n                      />\n                    </template>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        Next\n                        <Icon name=\"heroicons:chevron-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n\n                <!-- Mobile pagination — prev / page info / next -->\n                <UiPagination\n                  class=\"mx-0! sm:hidden!\"\n                  :total=\"filteredUsers.length\"\n                  :items-per-page=\"10\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList class=\"w-full justify-between\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-left\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <span class=\"text-muted-foreground text-sm\">\n                      Page {{ table.atoms.pagination.get().pageIndex + 1 }} of\n                      {{ table.getPageCount() }}\n                    </span>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n              </div>\n            </template>\n          </UiTanStackTable>\n        </UiCard>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { faker } from \"@faker-js/faker\";\n  import type { ColumnDef } from \"@tanstack/vue-table\";\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n\n  import type { TanStackTableFeatures } from \"~/components/Ui/TanStackTable.vue\";\n\n  // ─── Current user ────────────────────────────────────────────────────────────\n  const currentUser = {\n    name: \"Sienna Hewitt\",\n    firstName: \"Sienna\",\n    email: \"sienna@example.com\",\n    avatar: \"https://i.pravatar.cc/150?img=47\",\n    fallback: \"SH\",\n  };\n\n  // ─── Navigation ──────────────────────────────────────────────────────────────\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // ─── Settings toggles ────────────────────────────────────────────────────────\n  const compactRows = ref(false);\n  const showTrends = ref(true);\n\n  // ─── Search / command dialog ─────────────────────────────────────────────────\n  const searchOpen = ref(false);\n\n  const recentSearches = [\"Recently active users\", \"Traffic this month\", \"New signups last 7 days\"];\n\n  const quickLinks = [\n    { label: \"User management\", icon: \"heroicons:users\", path: \"/users\" },\n    { label: \"Analytics overview\", icon: \"heroicons:chart-bar\", path: \"/analytics\" },\n    { label: \"Traffic sources\", icon: \"heroicons:arrow-trending-up\", path: \"/traffic\" },\n  ];\n\n  const handleKeydown = (e: KeyboardEvent) => {\n    if (e.key === \"Escape\") searchOpen.value = false;\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n  };\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // ─── Time range tabs ─────────────────────────────────────────────────────────\n  const timeRanges = [\n    { label: \"12 months\", short: \"12m\", value: \"12months\" },\n    { label: \"30 days\", short: \"30d\", value: \"30days\" },\n    { label: \"7 days\", short: \"7d\", value: \"7days\" },\n    { label: \"24 hours\", short: \"24h\", value: \"24hours\" },\n  ];\n  const activeRange = ref(\"12months\");\n\n  // ─── Chart data per range ─────────────────────────────────────────────────────\n  const rangeDataMap: Record<\n    string,\n    { categories: string[]; traffic: number[]; previous: number[] }\n  > = {\n    \"12months\": {\n      categories: [\n        \"Jan\",\n        \"Feb\",\n        \"Mar\",\n        \"Apr\",\n        \"May\",\n        \"Jun\",\n        \"Jul\",\n        \"Aug\",\n        \"Sep\",\n        \"Oct\",\n        \"Nov\",\n        \"Dec\",\n      ],\n      traffic: [820, 932, 901, 960, 1290, 1330, 1320, 1540, 1480, 1680, 1750, 1920],\n      previous: [480, 520, 490, 560, 620, 680, 700, 760, 810, 850, 890, 940],\n    },\n    \"30days\": {\n      categories: Array.from({ length: 30 }, (_, i) => `${i + 1} Jan`),\n      traffic: [\n        180, 210, 195, 230, 215, 260, 245, 280, 265, 300, 285, 320, 305, 340, 325, 360, 345, 380,\n        365, 400, 385, 420, 405, 440, 425, 460, 445, 480, 465, 500,\n      ],\n      previous: [\n        120, 135, 128, 148, 138, 165, 155, 175, 165, 188, 178, 198, 188, 210, 200, 220, 210, 235,\n        224, 248, 238, 260, 248, 270, 258, 280, 268, 290, 278, 310,\n      ],\n    },\n    \"7days\": {\n      categories: [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"],\n      traffic: [480, 520, 610, 540, 680, 320, 290],\n      previous: [320, 360, 420, 380, 450, 240, 210],\n    },\n    \"24hours\": {\n      categories: Array.from({ length: 24 }, (_, i) => `${String(i).padStart(2, \"0\")}:00`),\n      traffic: [\n        45, 32, 28, 25, 30, 48, 85, 148, 186, 210, 224, 238, 252, 245, 232, 218, 195, 178, 165, 145,\n        125, 108, 88, 65,\n      ],\n      previous: [\n        30, 22, 18, 16, 20, 32, 60, 110, 138, 158, 168, 178, 188, 182, 172, 162, 145, 132, 122, 108,\n        92, 80, 65, 48,\n      ],\n    },\n  };\n\n  // ─── Reactive chart options ───────────────────────────────────────────────────\n  // Most defaults (fontFamily, foreColor, toolbar, zoom, stroke.curve, dataLabels,\n  // grid.borderColor, axis label colors/sizes, legend) are set globally in\n  // UiApexchart.client.vue via window.Apex — only chart-specific overrides live here.\n  const chartOptions = computed<ApexOptions>(() => {\n    const data = rangeDataMap[activeRange.value];\n    return {\n      chart: {\n        type: \"area\",\n        background: \"transparent\",\n        parentHeightOffset: 0,\n        animations: { enabled: true, easing: \"easeinout\", speed: 500 },\n      },\n      // Per-series stroke widths + dashed second line\n      stroke: { width: [2, 1.5], dashArray: [0, 6] },\n      // Hex values — ApexCharts can't resolve CSS custom properties reliably\n      colors: [\"#E3A514\", \"#94a3b8\"],\n      fill: {\n        type: [\"gradient\", \"solid\"],\n        gradient: {\n          type: \"vertical\",\n          gradientToColors: [\"#E3A514\"],\n          shadeIntensity: 0,\n          opacityFrom: 0.22,\n          opacityTo: 0,\n          stops: [0, 100],\n        },\n        opacity: [1, 0], // no fill for the dashed previous-period line\n      },\n      grid: {\n        strokeDashArray: 4,\n        xaxis: { lines: { show: false } },\n        yaxis: { lines: { show: true } },\n        padding: { left: 8, right: 8 },\n      },\n      xaxis: {\n        categories: data?.categories ?? [],\n        axisBorder: { show: false },\n        axisTicks: { show: false },\n      },\n      yaxis: {\n        labels: {\n          formatter: (v: number) => (v >= 1000 ? `${(v / 1000).toFixed(1)}k` : String(v)),\n        },\n      },\n      tooltip: {\n        y: { formatter: (v: number) => `${v.toLocaleString()} visitors` },\n      },\n      markers: { size: 0, hover: { size: 5 } },\n    };\n  });\n\n  const chartSeries = computed(() => [\n    { name: \"Traffic\", type: \"area\", data: rangeDataMap[activeRange.value]?.traffic ?? [] },\n    {\n      name: \"Previous period\",\n      type: \"line\",\n      data: rangeDataMap[activeRange.value]?.previous ?? [],\n    },\n  ]);\n\n  // ─── User table ───────────────────────────────────────────────────────────────\n  type UserRow = {\n    id: number;\n    name: string;\n    email: string;\n    avatar: string;\n    fallback: string;\n    access: string[];\n    lastActive: string;\n    dateAdded: string;\n  };\n\n  const accessDotColor = (permission: string): string => {\n    if (permission === \"Admin\") return \"bg-violet-500\";\n    if (permission === \"Data export\") return \"bg-sky-500\";\n    if (permission === \"Data import\") return \"bg-emerald-500\";\n    return \"bg-muted-foreground\";\n  };\n\n  const userColumns: ColumnDef<TanStackTableFeatures, UserRow>[] = [\n    {\n      id: \"select\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-12\", td: \"w-12\" } },\n    },\n    {\n      id: \"name\",\n      accessorKey: \"name\",\n      header: \"Name\",\n    },\n    {\n      id: \"access\",\n      accessorKey: \"access\",\n      header: \"Access\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden md:table-cell\", td: \"hidden md:table-cell\" } },\n    },\n    {\n      accessorKey: \"lastActive\",\n      header: \"Last active\",\n      meta: { class: { th: \"hidden sm:table-cell\", td: \"hidden sm:table-cell\" } },\n    },\n    {\n      accessorKey: \"dateAdded\",\n      header: \"Date added\",\n      meta: { class: { th: \"hidden lg:table-cell\", td: \"hidden lg:table-cell\" } },\n    },\n    {\n      id: \"actions\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-14\", td: \"w-14\" } },\n    },\n  ];\n\n  // ─── User data generation ─────────────────────────────────────────────────────\n  const accessSets = [\n    [\"Admin\", \"Data export\", \"Data import\"],\n    [\"Data export\", \"Data import\"],\n    [\"Admin\", \"Data export\"],\n    [\"Data import\"],\n    [\"Data export\"],\n  ] as const;\n\n  const createUser = (i: number): UserRow => {\n    faker.seed(i);\n    const firstName = faker.person.firstName();\n    const lastName = faker.person.lastName();\n    const name = `${firstName} ${lastName}`;\n    const email = faker.internet.email({ firstName, lastName }).toLowerCase();\n    const fallback = `${firstName[0] ?? \"U\"}${lastName[0] ?? \"N\"}`;\n    const access = [...(accessSets[i % accessSets.length] ?? [\"Data export\"])];\n    const lastActive = faker.date.recent({ days: 30, refDate: new Date(\"2025-03-21\") });\n    const dateAdded = faker.date.past({ years: 2, refDate: new Date(\"2025-03-21\") });\n    return {\n      id: i + 1,\n      name,\n      email,\n      avatar: `https://i.pravatar.cc/150?img=${(i % 70) + 1}`,\n      fallback,\n      access,\n      lastActive: lastActive.toLocaleDateString(\"en-US\", {\n        month: \"short\",\n        day: \"numeric\",\n        year: \"numeric\",\n      }),\n      dateAdded: dateAdded.toLocaleDateString(\"en-US\", {\n        month: \"short\",\n        day: \"numeric\",\n        year: \"numeric\",\n      }),\n    };\n  };\n\n  const { data: usersData, pending: usersPending } = await useAsyncData<UserRow[]>(\n    \"block-dashboard5-users\",\n    async () => Array.from({ length: 100 }, (_, i) => createUser(i)),\n    { default: () => [] }\n  );\n\n  const users = computed(() => usersData.value ?? []);\n  const tableSearch = ref(\"\");\n\n  const filteredUsers = computed(() => {\n    if (!tableSearch.value.trim()) return users.value;\n    const q = tableSearch.value.toLowerCase();\n    return users.value.filter(\n      (u) => u.name.toLowerCase().includes(q) || u.email.toLowerCase().includes(q)\n    );\n  });\n\n  // ─── Edit sheet ───────────────────────────────────────────────────────────────\n  const editOpen = ref(false);\n  const editTarget = ref<UserRow | null>(null);\n  const editForm = reactive({ name: \"\", email: \"\", role: \"\" });\n\n  const openEdit = (user: UserRow) => {\n    editTarget.value = user;\n    editForm.name = user.name;\n    editForm.email = user.email;\n    editForm.role = user.access[0] ?? \"Member\";\n    editOpen.value = true;\n  };\n\n  const saveEdit = () => {\n    editOpen.value = false;\n    useSonner(\"User updated\", { description: `'${editForm.name}' has been saved.` });\n  };\n\n  // ─── Delete dialog ────────────────────────────────────────────────────────────\n  const deleteOpen = ref(false);\n  const deleteTarget = ref<UserRow | null>(null);\n\n  const confirmDelete = () => {\n    if (!deleteTarget.value) return;\n    useSonner(`'${deleteTarget.value.name}' removed`, {\n      description: \"The user has been permanently removed.\",\n    });\n    deleteTarget.value = null;\n  };\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards5.vue","components":["alert-dialog","apexcharts","avatar","avatar-label-group","badge","button","card","checkbox","command","container","dropdown-menu","gradient-divider","kbd","pagination","popover","select","sheet","tabs","tanstacktable","vee-input"]},{"name":"Dashboards 6","fileName":"BlockDashboards6.vue","file":"<template>\n  <div\n    class=\"bg-background text-foreground min-h-screen [--color-primary:#0ea5e9] [--primary:#0ea5e9] [--radius:12px] [--ring:#0ea5e9]\"\n  >\n    <!-- Import CSV dialog -->\n    <UiDialog v-model:open=\"importOpen\">\n      <UiDialogContent class=\"sm:max-w-md\">\n        <UiDialogHeader>\n          <UiDialogTitle>Import customers</UiDialogTitle>\n          <UiDialogDescription>\n            Upload a CSV file to import customers in bulk. The file must include columns for company\n            name, domain, and status.\n          </UiDialogDescription>\n        </UiDialogHeader>\n\n        <div class=\"space-y-4 py-2\">\n          <!-- Drop zone -->\n          <label\n            class=\"border-border/70 bg-muted/30 hover:bg-muted/50 flex cursor-pointer flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed px-6 py-10 text-center transition-colors\"\n            :class=\"{ 'border-[--color-primary] bg-sky-50/50 dark:bg-sky-950/20': importDragOver }\"\n            @dragover.prevent=\"importDragOver = true\"\n            @dragleave.prevent=\"importDragOver = false\"\n            @drop.prevent=\"onImportDrop\"\n          >\n            <div\n              class=\"bg-muted text-muted-foreground flex size-12 items-center justify-center rounded-full\"\n            >\n              <Icon name=\"heroicons:arrow-up-tray\" class=\"size-6\" />\n            </div>\n            <div class=\"space-y-1\">\n              <p class=\"text-sm font-medium\">\n                <span class=\"text-[--color-primary]\">Click to upload</span> or drag and drop\n              </p>\n              <p class=\"text-muted-foreground text-xs\">CSV files only, up to 10 MB</p>\n            </div>\n            <input type=\"file\" accept=\".csv\" class=\"sr-only\" @change=\"onImportFileChange\" />\n          </label>\n\n          <!-- Selected file -->\n          <div\n            v-if=\"importFile\"\n            class=\"border-border/70 bg-card flex items-center gap-3 rounded-lg border px-4 py-3\"\n          >\n            <Icon name=\"heroicons:document-text\" class=\"size-5 shrink-0 text-[--color-primary]\" />\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"truncate text-sm font-medium\">{{ importFile.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">\n                {{ (importFile.size / 1024).toFixed(1) }} KB\n              </p>\n            </div>\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              class=\"text-muted-foreground shrink-0\"\n              @click=\"importFile = null\"\n            >\n              <Icon name=\"heroicons:x-mark\" class=\"size-4\" />\n            </UiButton>\n          </div>\n\n          <!-- Download template link -->\n          <p class=\"text-muted-foreground text-center text-xs\">\n            Not sure about the format?\n            <button class=\"font-medium text-[--color-primary] underline-offset-2 hover:underline\">\n              Download template\n            </button>\n          </p>\n        </div>\n\n        <UiDialogFooter>\n          <UiButton variant=\"outline\" @click=\"importOpen = false\">Cancel</UiButton>\n          <UiButton :disabled=\"!importFile\" @click=\"onImportSubmit\">\n            <Icon name=\"heroicons:arrow-up-tray\" class=\"size-4\" />\n            Import customers\n          </UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- Add customer sheet -->\n    <UiSheet v-model:open=\"addOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Add customer\"\n        description=\"Fill in the details below to add a new customer.\"\n      >\n        <template #content>\n          <form class=\"space-y-5 px-6\" @submit=\"submitAdd\">\n            <fieldset :disabled=\"isSubmittingAdd\" class=\"space-y-5\">\n              <UiVeeInput required label=\"Company name\" name=\"addName\" placeholder=\"Acme Corp\" />\n              <UiVeeInput required label=\"Domain\" name=\"addDomain\" placeholder=\"acme.com\" />\n              <UiVeeInput\n                label=\"About / product\"\n                name=\"addProduct\"\n                placeholder=\"e.g. Project management tool\"\n              />\n              <UiVeeSelect required label=\"Status\" name=\"addStatus\">\n                <option disabled>Select an option</option>\n                <option value=\"Customer\">Customer</option>\n                <option value=\"Churned\">Churned</option>\n              </UiVeeSelect>\n              <UiVeeInput\n                label=\"Number of users\"\n                name=\"addUsers\"\n                type=\"number\"\n                placeholder=\"e.g. 10\"\n              />\n            </fieldset>\n          </form>\n        </template>\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" :disabled=\"isSubmittingAdd\" @click=\"submitAdd\">\n              Add customer\n            </UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Edit company sheet -->\n    <UiSheet v-model:open=\"editOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Edit customer\"\n        description=\"Update the customer's details below.\"\n      >\n        <template #content>\n          <form class=\"space-y-5 px-6\" @submit=\"submitEdit\">\n            <fieldset :disabled=\"isSubmittingEdit\" class=\"space-y-5\">\n              <UiVeeInput required label=\"Company name\" name=\"editName\" placeholder=\"Acme Corp\" />\n              <UiVeeInput required label=\"Domain\" name=\"editDomain\" placeholder=\"acme.com\" />\n              <UiVeeSelect required label=\"Status\" name=\"editStatus\">\n                <option disabled>Select an option</option>\n                <option value=\"Customer\">Customer</option>\n                <option value=\"Churned\">Churned</option>\n              </UiVeeSelect>\n            </fieldset>\n          </form>\n        </template>\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" @click=\"submitEdit\">Save changes</UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Delete confirmation dialog -->\n    <UiAlertDialog v-model:open=\"deleteOpen\">\n      <UiAlertDialogContent>\n        <UiAlertDialogHeader>\n          <UiAlertDialogTitle title=\"Remove customer?\" />\n          <UiAlertDialogDescription\n            :description=\"`Are you sure you want to remove '${deleteTarget?.name}'? This action cannot be undone.`\"\n          />\n        </UiAlertDialogHeader>\n        <UiAlertDialogFooter>\n          <UiAlertDialogCancel />\n          <UiAlertDialogAction @click=\"confirmDelete\" />\n        </UiAlertDialogFooter>\n      </UiAlertDialogContent>\n    </UiAlertDialog>\n\n    <!-- Command / search dialog -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search customers\"\n      description=\"Search by company name, domain, or product\"\n    >\n      <UiCommandInput placeholder=\"Search customers...\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Quick actions\">\n          <UiCommandItem value=\"Add customer\">\n            <Icon name=\"heroicons:plus\" />\n            <span>Add customer</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Import customers\">\n            <Icon name=\"heroicons:arrow-up-tray\" />\n            <span>Import customers</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Export list\">\n            <Icon name=\"heroicons:arrow-down-tray\" />\n            <span>Export list</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Filter by status\">\n          <UiCommandItem value=\"Customers only\">\n            <Icon name=\"heroicons:check-circle\" />\n            <span>Customers only</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Churned only\">\n            <Icon name=\"heroicons:x-circle\" />\n            <span>Churned only</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- Sticky header -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile nav popover -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton class=\"lg:hidden\" variant=\"ghost\" size=\"icon-sm\">\n                <Icon name=\"heroicons:bars-3\" class=\"size-5\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"\n                  item.active\n                    ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                    : 'text-muted-foreground'\n                \"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right actions -->\n        <div class=\"flex items-center gap-1\">\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"rounded-full\"\n                aria-label=\"Open search\"\n                @click=\"searchOpen = true\"\n              >\n                <Icon name=\"heroicons:magnifying-glass\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Search</p></UiTooltipContent>\n          </UiTooltip>\n\n          <!-- Settings dropdown -->\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiTooltipTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                    <Icon name=\"heroicons:cog-6-tooth\" class=\"text-muted-foreground size-5\" />\n                  </UiButton>\n                </UiTooltipTrigger>\n              </UiDropdownMenuTrigger>\n              <UiTooltipContent><p>Settings</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n                <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notifications\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <!-- Notifications dropdown -->\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiTooltipTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                    <Icon name=\"heroicons:bell\" class=\"text-muted-foreground size-5\" />\n                  </UiButton>\n                </UiTooltipTrigger>\n              </UiDropdownMenuTrigger>\n              <UiTooltipContent><p>Notifications</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-96\">\n                <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                  <span>Notifications</span>\n                  <UiBadge variant=\"secondary\" size=\"sm\">2 new</UiBadge>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user-plus\" title=\"Ephemeral signed a new plan\">\n                  <template #shortcut>1h ago</template>\n                </UiDropdownMenuItem>\n                <UiDropdownMenuItem\n                  icon=\"heroicons:arrow-trending-up\"\n                  title=\"Customer growth up 12% this week\"\n                >\n                  <template #shortcut>3h ago</template>\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <!-- User avatar dropdown -->\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiTooltipTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                    <UiAvatar\n                      src=\"https://i.pravatar.cc/150?img=47\"\n                      alt=\"Current user\"\n                      fallback=\"SH\"\n                      class=\"size-8 cursor-pointer\"\n                    />\n                  </UiButton>\n                </UiTooltipTrigger>\n              </UiDropdownMenuTrigger>\n              <UiTooltipContent><p>Account</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>\n                  <div class=\"flex flex-col\">\n                    <p class=\"text-sm font-medium\">Sienna Hewitt</p>\n                    <p class=\"text-muted-foreground text-xs\">sienna@ui-thing.com</p>\n                  </div>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Page content -->\n    <UiContainer class=\"space-y-6 py-8\">\n      <!-- Page header -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <h1 class=\"text-2xl font-bold tracking-tight\">Customers</h1>\n        <div class=\"flex items-center gap-3\">\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"importOpen = true\">\n            <Icon name=\"heroicons:arrow-up-tray\" class=\"size-4\" />\n            Import\n          </UiButton>\n          <UiButton size=\"sm\" @click=\"addOpen = true\">\n            <Icon name=\"heroicons:plus\" class=\"size-4\" />\n            Add customer\n          </UiButton>\n        </div>\n      </Motion>\n\n      <!-- Two-column charts row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.2, ease: 'easeOut' }\"\n        class=\"grid gap-4 lg:grid-cols-[1fr_2fr]\"\n      >\n        <!-- Active now — radial rings card -->\n        <div class=\"border-border/70 bg-card overflow-hidden rounded-xl border shadow-xs\">\n          <div class=\"border-border/60 flex items-center justify-between border-b px-5 py-4\">\n            <h2 class=\"text-sm font-semibold\">Active now</h2>\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground -mr-1\">\n                      <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Refresh\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n              <UiTooltipContent><p>Options</p></UiTooltipContent>\n            </UiTooltip>\n          </div>\n          <div class=\"p-2\">\n            <UiApexchart\n              type=\"radialBar\"\n              height=\"280\"\n              :series=\"radialSeries\"\n              :options=\"radialOptions\"\n            />\n          </div>\n        </div>\n\n        <!-- Total customers — multi-line chart card -->\n        <div class=\"border-border/70 bg-card overflow-hidden rounded-xl border shadow-xs\">\n          <div class=\"border-border/60 flex items-center justify-between border-b px-5 py-4\">\n            <h2 class=\"text-sm font-semibold\">Total customers</h2>\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground -mr-1\">\n                      <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Refresh\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n              <UiTooltipContent><p>Options</p></UiTooltipContent>\n            </UiTooltip>\n          </div>\n          <UiApexchart type=\"area\" height=\"280\" :series=\"lineSeries\" :options=\"lineOptions\" />\n        </div>\n      </Motion>\n\n      <!-- Filters + search row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 8 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.3, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <!-- Filter chips -->\n        <div class=\"flex flex-wrap items-center gap-2\">\n          <button\n            v-for=\"chip in activeFilters\"\n            :key=\"chip.label\"\n            class=\"border-border/70 bg-card text-foreground hover:bg-muted/60 flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium transition-colors\"\n            @click=\"removeFilter(chip.label)\"\n          >\n            {{ chip.label }}\n            <Icon name=\"heroicons:x-mark\" class=\"text-muted-foreground size-3.5\" />\n          </button>\n          <UiButton variant=\"outline\" size=\"sm\" class=\"h-7 rounded-full text-xs\">\n            <Icon name=\"heroicons:funnel\" class=\"size-3.5\" />\n            More filters\n          </UiButton>\n        </div>\n\n        <!-- Search input (filters table) -->\n        <div class=\"relative w-full sm:w-64\">\n          <Icon\n            name=\"heroicons:magnifying-glass\"\n            class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <input\n            v-model=\"tableSearch\"\n            type=\"text\"\n            placeholder=\"Search customers...\"\n            class=\"border-border/70 bg-card text-foreground placeholder:text-muted-foreground h-9 w-full rounded-lg border pr-3 pl-9 text-sm shadow-xs transition-colors focus:border-[--color-primary] focus:ring-1 focus:ring-[--color-primary] focus:outline-none\"\n          />\n        </div>\n      </Motion>\n\n      <!-- Customers table card -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.35, ease: 'easeOut' }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <UiTanStackTable\n            :data=\"filteredCompanies\"\n            :columns=\"companyColumns\"\n            :show-rows-per-page=\"false\"\n            :show-page-info=\"false\"\n            :show-pagination=\"false\"\n            :show-selected-count=\"false\"\n            :show-footer=\"true\"\n            :loading=\"companiesPending\"\n            :table-options=\"{ enableRowSelection: true }\"\n          >\n            <!-- Select all -->\n            <template #select-header=\"{ table }\">\n              <UiCheckbox\n                aria-label=\"Select all\"\n                :model-value=\"\n                  table.getIsAllPageRowsSelected() ||\n                  (table.getIsSomePageRowsSelected() && 'indeterminate')\n                \"\n                @update:model-value=\"table.toggleAllPageRowsSelected(!!$event)\"\n              />\n            </template>\n\n            <template #select-cell=\"{ row }\">\n              <UiCheckbox\n                :aria-label=\"`Select ${row.original.name}`\"\n                :model-value=\"row.getIsSelected()\"\n                @update:model-value=\"row.toggleSelected(!!$event)\"\n              />\n            </template>\n\n            <!-- Company cell: logo + name + domain -->\n            <template #company-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <div\n                  class=\"flex size-9 shrink-0 items-center justify-center rounded-lg text-sm font-semibold text-white\"\n                  :style=\"{ backgroundColor: row.original.logoColor }\"\n                >\n                  {{ row.original.logoInitial }}\n                </div>\n                <div class=\"flex min-w-0 flex-col\">\n                  <span class=\"truncate text-sm font-medium\">{{ row.original.name }}</span>\n                  <span class=\"text-muted-foreground truncate text-xs\">{{\n                    row.original.domain\n                  }}</span>\n                </div>\n              </div>\n            </template>\n\n            <!-- Status cell -->\n            <template #status-cell=\"{ row }\">\n              <UiBadge\n                v-if=\"row.original.status === 'Customer'\"\n                variant=\"outline\"\n                class=\"rounded-full border-emerald-300 bg-emerald-50 text-emerald-700 dark:border-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-400\"\n              >\n                {{ row.original.status }}\n              </UiBadge>\n              <span v-else class=\"text-muted-foreground text-sm\">{{ row.original.status }}</span>\n            </template>\n\n            <!-- About cell: product + description -->\n            <template #about-cell=\"{ row }\">\n              <div class=\"flex min-w-0 flex-col\">\n                <span class=\"truncate text-sm font-medium\">{{ row.original.aboutProduct }}</span>\n                <span class=\"text-muted-foreground truncate text-xs\">{{\n                  row.original.aboutDescription\n                }}</span>\n              </div>\n            </template>\n\n            <!-- Users cell: avatar group -->\n            <template #users-cell=\"{ row }\">\n              <div class=\"flex items-center\">\n                <div class=\"flex -space-x-2\">\n                  <UiAvatar\n                    v-for=\"(url, i) in row.original.userAvatars\"\n                    :key=\"i\"\n                    :src=\"url\"\n                    :alt=\"`User ${i + 1}`\"\n                    fallback=\"U\"\n                    class=\"ring-background size-7 shrink-0 ring-2\"\n                  />\n                </div>\n                <span class=\"text-muted-foreground ml-1.5 text-xs\">+5</span>\n              </div>\n            </template>\n\n            <!-- License use cell: progress bar + value -->\n            <template #licenseUse-cell=\"{ row }\">\n              <div class=\"flex w-28 flex-col gap-1.5\">\n                <span class=\"text-muted-foreground text-xs\">{{ row.original.licenseUse }}%</span>\n                <div class=\"bg-muted h-1.5 w-full overflow-hidden rounded-full\">\n                  <div\n                    class=\"h-full rounded-full\"\n                    :style=\"{\n                      width: `${row.original.licenseUse}%`,\n                      backgroundColor: 'var(--color-primary)',\n                    }\"\n                  />\n                </div>\n              </div>\n            </template>\n\n            <!-- Actions cell -->\n            <template #actions-cell=\"{ row }\">\n              <div class=\"flex items-center gap-1\">\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground hover:text-destructive\"\n                      aria-label=\"Delete customer\"\n                      @click=\"\n                        () => {\n                          deleteTarget = row.original;\n                          deleteOpen = true;\n                        }\n                      \"\n                    >\n                      <Icon name=\"heroicons:trash\" class=\"size-4\" />\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Delete customer</p></UiTooltipContent>\n                </UiTooltip>\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground\"\n                      aria-label=\"Edit customer\"\n                      @click=\"openEdit(row.original)\"\n                    >\n                      <Icon name=\"heroicons:pencil\" class=\"size-4\" />\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Edit customer</p></UiTooltipContent>\n                </UiTooltip>\n              </div>\n            </template>\n\n            <!-- Footer with pagination -->\n            <template #footer=\"{ table }\">\n              <div\n                class=\"border-border/60 flex w-full flex-col gap-3 border-t px-5 py-4 sm:flex-row sm:items-center sm:justify-between\"\n              >\n                <p class=\"text-muted-foreground shrink-0 text-sm\">\n                  <template v-if=\"table.getFilteredSelectedRowModel().rows.length > 0\">\n                    {{ table.getFilteredSelectedRowModel().rows.length }} selected\n                  </template>\n                </p>\n\n                <!-- Desktop pagination -->\n                <UiPagination\n                  class=\"mx-0! hidden! justify-end! sm:flex!\"\n                  :total=\"filteredCompanies.length\"\n                  :items-per-page=\"10\"\n                  :sibling-count=\"1\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList class=\"w-full justify-between gap-1\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        <Icon name=\"heroicons:chevron-left\" class=\"size-4\" />\n                        Previous\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <div class=\"text-muted-foreground text-sm\">\n                      Page\n                      <span class=\"text-foreground font-medium\">{{\n                        table.atoms.pagination.get().pageIndex + 1\n                      }}</span>\n                      of\n                      <span class=\"text-foreground font-medium\">{{ table.getPageCount() }}</span>\n                    </div>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        Next\n                        <Icon name=\"heroicons:chevron-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n\n                <!-- Mobile pagination -->\n                <UiPagination\n                  class=\"mx-0! sm:hidden!\"\n                  :total=\"filteredCompanies.length\"\n                  :items-per-page=\"10\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList class=\"w-full justify-between\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-left\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <span class=\"text-muted-foreground text-sm\">\n                      Page {{ table.atoms.pagination.get().pageIndex + 1 }} of\n                      {{ table.getPageCount() }}\n                    </span>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n              </div>\n            </template>\n          </UiTanStackTable>\n        </UiCard>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { faker } from \"@faker-js/faker\";\n  import type { ColumnDef } from \"@tanstack/vue-table\";\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  import type { TanStackTableFeatures } from \"~/components/Ui/TanStackTable.vue\";\n\n  // ─── Navigation ────────────────────────────────────────────────────────────────\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Customers\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // ─── Search dialog ─────────────────────────────────────────────────────────────\n  const searchOpen = ref(false);\n  const handleKeydown = (e: KeyboardEvent) => {\n    if (e.key === \"Escape\") searchOpen.value = false;\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n  };\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // ─── Filter chips ──────────────────────────────────────────────────────────────\n  const activeFilters = ref([{ label: \"All time\" }, { label: \"US, AU, +4\" }]);\n  const removeFilter = (label: string) => {\n    activeFilters.value = activeFilters.value.filter((f) => f.label !== label);\n  };\n\n  // ─── Radial chart (Active now) ─────────────────────────────────────────────────\n  // Three concentric rings representing engagement tiers across 2025, 2024, 2023\n  const radialSeries = [78, 54, 38];\n\n  const radialOptions: ApexOptions = {\n    chart: { type: \"radialBar\", background: \"transparent\", parentHeightOffset: 0 },\n    stroke: { lineCap: \"round\" },\n    colors: [\"#0ea5e9\", \"#38bdf8\", \"#7dd3fc\"],\n    plotOptions: {\n      radialBar: {\n        hollow: { size: \"42%\", background: \"transparent\", margin: 0 },\n        track: { background: \"transparent\", margin: 6 },\n        dataLabels: {\n          show: true,\n          name: {\n            show: true,\n            fontSize: \"11px\",\n            offsetY: 24,\n          },\n          value: {\n            show: true,\n            fontSize: \"30px\",\n            fontWeight: \"700\",\n            offsetY: -8,\n          },\n          total: {\n            show: true,\n            label: \"Active users\",\n            formatter: () => \"316\",\n          },\n        },\n      },\n    },\n    legend: {\n      show: true,\n      position: \"bottom\",\n      horizontalAlign: \"center\",\n      fontSize: \"12px\",\n    },\n    labels: [\"2025\", \"2024\", \"2023\"],\n    states: { hover: { filter: { type: \"none\" } }, active: { filter: { type: \"none\" } } },\n  };\n\n  // ─── Line chart (Total customers) ─────────────────────────────────────────────\n  const months = [\n    \"Jan\",\n    \"Feb\",\n    \"Mar\",\n    \"Apr\",\n    \"May\",\n    \"Jun\",\n    \"Jul\",\n    \"Aug\",\n    \"Sep\",\n    \"Oct\",\n    \"Nov\",\n    \"Dec\",\n  ];\n\n  const lineSeries = [\n    { name: \"2025\", data: [320, 380, 410, 460, 520, 590, 640, 700, 780, 850, 920, 1010] },\n    { name: \"2024\", data: [200, 240, 260, 295, 330, 370, 395, 430, 470, 510, 550, 590] },\n    { name: \"2023\", data: [120, 145, 158, 175, 195, 220, 235, 255, 275, 295, 315, 340] },\n  ];\n\n  const lineOptions: ApexOptions = {\n    chart: { type: \"area\", background: \"transparent\", parentHeightOffset: 0 },\n    stroke: { width: [2, 1.5, 1.5], dashArray: [0, 6, 3] },\n    colors: [\"#0ea5e9\", \"#38bdf8\", \"#7dd3fc\"],\n    fill: {\n      type: [\"gradient\", \"solid\", \"solid\"],\n      gradient: {\n        type: \"vertical\",\n        gradientToColors: [\"#0ea5e9\"],\n        shadeIntensity: 0,\n        opacityFrom: 0.15,\n        opacityTo: 0,\n        stops: [0, 100],\n      },\n      opacity: [1, 0, 0],\n    },\n    grid: {\n      strokeDashArray: 4,\n      xaxis: { lines: { show: false } },\n      yaxis: { lines: { show: true } },\n      padding: { left: 8, right: 8 },\n    },\n    xaxis: {\n      categories: months,\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n    },\n    yaxis: {\n      labels: {\n        formatter: (v: number) => (v >= 1000 ? `${(v / 1000).toFixed(1)}k` : String(v)),\n      },\n    },\n    tooltip: { y: { formatter: (v: number) => `${v.toLocaleString()} customers` } },\n    markers: { size: 0, hover: { size: 5 } },\n    legend: {\n      show: true,\n      position: \"top\",\n      horizontalAlign: \"right\",\n      markers: { size: 6, shape: \"circle\" },\n    },\n  };\n\n  // ─── Company table ─────────────────────────────────────────────────────────────\n  type CompanyRow = {\n    id: number;\n    name: string;\n    domain: string;\n    logoColor: string;\n    logoInitial: string;\n    status: \"Customer\" | \"Churned\";\n    aboutProduct: string;\n    aboutDescription: string;\n    userAvatars: string[];\n    licenseUse: number;\n  };\n\n  const logoColors = [\n    \"#0ea5e9\",\n    \"#6366f1\",\n    \"#10b981\",\n    \"#f59e0b\",\n    \"#ef4444\",\n    \"#ec4899\",\n    \"#14b8a6\",\n    \"#f97316\",\n    \"#8b5cf6\",\n    \"#84cc16\",\n  ];\n\n  const createCompany = (i: number): CompanyRow => {\n    faker.seed(i + 200);\n    const name = faker.company.name();\n    const domain = `${name\n      .toLowerCase()\n      .replace(/[^a-z0-9]/g, \"\")\n      .slice(0, 12)}.com`;\n    const status: \"Customer\" | \"Churned\" = i % 5 === 1 ? \"Churned\" : \"Customer\";\n    const logoColor = logoColors[i % logoColors.length]!;\n    const logoInitial = name[0]?.toUpperCase() ?? \"C\";\n    const userAvatars = Array.from(\n      { length: 3 },\n      (_, j) => `https://i.pravatar.cc/150?img=${((i * 3 + j) % 70) + 1}`\n    );\n    const licenseUse = faker.number.int({ min: 15, max: 95 });\n    const aboutProduct = faker.commerce.productName();\n    const aboutDescription = faker.commerce.productDescription().slice(0, 48);\n    return {\n      id: i + 1,\n      name,\n      domain,\n      logoColor,\n      logoInitial,\n      status,\n      aboutProduct,\n      aboutDescription,\n      userAvatars,\n      licenseUse,\n    };\n  };\n\n  const { data: companiesData, pending: companiesPending } = await useAsyncData<CompanyRow[]>(\n    \"block-dashboards6-companies\",\n    async () => Array.from({ length: 100 }, (_, i) => createCompany(i)),\n    { default: () => [] }\n  );\n\n  const companies = computed(() => companiesData.value ?? []);\n\n  const tableSearch = ref(\"\");\n\n  const filteredCompanies = computed(() => {\n    const q = tableSearch.value.trim().toLowerCase();\n    if (!q) return companies.value;\n    return companies.value.filter(\n      (c) =>\n        c.name.toLowerCase().includes(q) ||\n        c.domain.toLowerCase().includes(q) ||\n        c.aboutProduct.toLowerCase().includes(q) ||\n        c.status.toLowerCase().includes(q)\n    );\n  });\n\n  // ─── Table columns ─────────────────────────────────────────────────────────────\n  const companyColumns: ColumnDef<TanStackTableFeatures, CompanyRow>[] = [\n    {\n      id: \"select\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-12\", td: \"w-12\" } },\n    },\n    {\n      id: \"company\",\n      accessorKey: \"name\",\n      header: \"Company\",\n    },\n    {\n      id: \"status\",\n      accessorKey: \"status\",\n      header: \"Status\",\n    },\n    {\n      id: \"about\",\n      accessorKey: \"aboutProduct\",\n      header: \"About\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden md:table-cell\", td: \"hidden md:table-cell\" } },\n    },\n    {\n      id: \"users\",\n      accessorKey: \"userAvatars\",\n      header: \"Users\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden lg:table-cell\", td: \"hidden lg:table-cell\" } },\n    },\n    {\n      id: \"licenseUse\",\n      accessorKey: \"licenseUse\",\n      header: \"License use\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden lg:table-cell w-36\", td: \"hidden lg:table-cell w-36\" } },\n    },\n    {\n      id: \"actions\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-20\", td: \"w-20\" } },\n    },\n  ];\n\n  // ─── Add customer sheet (vee-validate) ────────────────────────────────────────\n  const addOpen = ref(false);\n\n  const AddSchema = object({\n    addName: string().required().label(\"Company name\").min(2).max(100),\n    addDomain: string().required().label(\"Domain\").min(3).max(80),\n    addProduct: string().optional().label(\"About / product\").max(120),\n    addStatus: string().required().label(\"Status\"),\n    addUsers: string().optional().label(\"Number of users\"),\n  });\n\n  const {\n    handleSubmit: handleAddSubmit,\n    isSubmitting: isSubmittingAdd,\n    resetForm: resetAddForm,\n    controlledValues: addControlledValues,\n  } = useForm({ name: \"addForm\", validationSchema: toTypedSchema(AddSchema) });\n\n  const submitAdd = handleAddSubmit(() => {\n    addOpen.value = false;\n    useSonner(\"Customer added\", {\n      description: `'${addControlledValues.value.addName}' has been added.`,\n    });\n    resetAddForm();\n  });\n\n  // ─── Edit sheet (vee-validate) ─────────────────────────────────────────────────\n  const editOpen = ref(false);\n  const editTarget = ref<CompanyRow | null>(null);\n\n  const EditSchema = object({\n    editName: string().required().label(\"Company name\").min(2).max(100),\n    editDomain: string().required().label(\"Domain\").min(3).max(80),\n    editStatus: string().required().label(\"Status\"),\n  });\n\n  const {\n    handleSubmit: handleEditSubmit,\n    isSubmitting: isSubmittingEdit,\n    setValues,\n  } = useForm<InferType<typeof EditSchema>>({\n    validationSchema: EditSchema,\n  });\n\n  const submitEdit = handleEditSubmit(() => {\n    editOpen.value = false;\n    useSonner(\"Customer updated\", {\n      description: `'${editTarget.value?.name}' has been saved.`,\n    });\n  });\n\n  const openEdit = (company: CompanyRow) => {\n    editTarget.value = company;\n    setValues({\n      editName: company.name,\n      editDomain: company.domain,\n      editStatus: company.status,\n    });\n    editOpen.value = true;\n  };\n\n  // ─── Import CSV dialog ─────────────────────────────────────────────────────────\n  const importOpen = ref(false);\n  const importFile = ref<File | null>(null);\n  const importDragOver = ref(false);\n\n  const onImportFileChange = (e: Event) => {\n    const file = (e.target as HTMLInputElement).files?.[0];\n    if (file) importFile.value = file;\n  };\n\n  const onImportDrop = (e: DragEvent) => {\n    importDragOver.value = false;\n    const file = e.dataTransfer?.files?.[0];\n    if (file && file.name.endsWith(\".csv\")) importFile.value = file;\n  };\n\n  const onImportSubmit = () => {\n    if (!importFile.value) return;\n    importOpen.value = false;\n    useSonner(\"Import started\", {\n      description: `'${importFile.value.name}' is being processed.`,\n    });\n    importFile.value = null;\n  };\n\n  // ─── Delete dialog ─────────────────────────────────────────────────────────────\n  const deleteOpen = ref(false);\n  const deleteTarget = ref<CompanyRow | null>(null);\n\n  const confirmDelete = () => {\n    if (!deleteTarget.value) return;\n    useSonner(`'${deleteTarget.value.name}' removed`, {\n      description: \"The customer has been permanently removed.\",\n    });\n    deleteTarget.value = null;\n  };\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards6.vue","components":["alert-dialog","apexcharts","avatar","badge","button","card","checkbox","command","container","dialog","dropdown-menu","kbd","pagination","popover","sheet","tanstacktable","tooltip","vee-input","vee-select"]},{"name":"Dashboards 7","fileName":"BlockDashboards7.vue","file":"<template>\n  <div class=\"bg-background text-foreground min-h-screen\">\n    <!-- Upgrade plan dialog -->\n    <UiDialog v-model:open=\"upgradeOpen\">\n      <UiDialogContent class=\"sm:max-w-lg\">\n        <UiDialogHeader class=\"text-center sm:text-center\">\n          <div\n            class=\"mx-auto mb-3 flex size-12 items-center justify-center rounded-full\"\n            :style=\"{ backgroundColor: 'var(--color-primary)' }\"\n          >\n            <Icon name=\"heroicons:bolt\" class=\"size-6 text-white\" />\n          </div>\n          <UiDialogTitle class=\"text-xl\">Upgrade to Pro</UiDialogTitle>\n          <UiDialogDescription>\n            Unlock unlimited customers, advanced analytics, and priority support.\n          </UiDialogDescription>\n        </UiDialogHeader>\n\n        <div class=\"space-y-3 py-2\">\n          <!-- Plan cards (radio-style) -->\n          <div class=\"grid grid-cols-2 gap-3\">\n            <!-- Free -->\n            <button\n              type=\"button\"\n              class=\"relative cursor-pointer rounded-xl border-2 p-4 text-left transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n              :class=\"\n                selectedPlan === 'free'\n                  ? 'border-foreground bg-card shadow-sm'\n                  : 'border-border/60 bg-muted/30 hover:border-border hover:bg-muted/50'\n              \"\n              :style=\"\n                selectedPlan === 'free'\n                  ? { borderColor: 'var(--color-primary)', outline: 'none' }\n                  : {}\n              \"\n              @click=\"selectedPlan = 'free'\"\n            >\n              <!-- Selected check -->\n              <div\n                class=\"absolute top-3 right-3 flex size-5 items-center justify-center rounded-full border-2 transition-colors\"\n                :style=\"\n                  selectedPlan === 'free'\n                    ? {\n                        borderColor: 'var(--color-primary)',\n                        backgroundColor: 'var(--color-primary)',\n                      }\n                    : { borderColor: 'var(--border)' }\n                \"\n              >\n                <Icon\n                  v-if=\"selectedPlan === 'free'\"\n                  name=\"heroicons:check\"\n                  class=\"size-3 text-white\"\n                />\n              </div>\n\n              <p class=\"text-muted-foreground pr-6 text-xs font-semibold tracking-wider uppercase\">\n                Free\n              </p>\n              <p class=\"mt-2 text-2xl font-bold\">$0<span class=\"text-sm font-normal\">/mo</span></p>\n              <ul class=\"text-muted-foreground mt-3 space-y-2 text-sm\">\n                <li class=\"flex items-center gap-2\">\n                  <Icon name=\"heroicons:check\" class=\"size-4 shrink-0 text-emerald-500\" />\n                  Up to 250 customers\n                </li>\n                <li class=\"flex items-center gap-2\">\n                  <Icon name=\"heroicons:check\" class=\"size-4 shrink-0 text-emerald-500\" />\n                  Basic analytics\n                </li>\n                <li class=\"flex items-center gap-2\">\n                  <Icon name=\"heroicons:x-mark\" class=\"text-muted-foreground/40 size-4 shrink-0\" />\n                  CSV import\n                </li>\n                <li class=\"flex items-center gap-2\">\n                  <Icon name=\"heroicons:x-mark\" class=\"text-muted-foreground/40 size-4 shrink-0\" />\n                  Priority support\n                </li>\n              </ul>\n            </button>\n\n            <!-- Pro -->\n            <button\n              type=\"button\"\n              class=\"relative cursor-pointer rounded-xl border-2 p-4 text-left transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n              :class=\"\n                selectedPlan === 'pro'\n                  ? 'bg-card shadow-sm'\n                  : 'border-border/60 bg-muted/30 hover:border-border hover:bg-muted/50'\n              \"\n              :style=\"selectedPlan === 'pro' ? { borderColor: 'var(--color-primary)' } : {}\"\n              @click=\"selectedPlan = 'pro'\"\n            >\n              <!-- Selected check -->\n              <div\n                class=\"absolute top-3 right-3 flex size-5 items-center justify-center rounded-full border-2 transition-colors\"\n                :style=\"\n                  selectedPlan === 'pro'\n                    ? {\n                        borderColor: 'var(--color-primary)',\n                        backgroundColor: 'var(--color-primary)',\n                      }\n                    : { borderColor: 'var(--border)' }\n                \"\n              >\n                <Icon\n                  v-if=\"selectedPlan === 'pro'\"\n                  name=\"heroicons:check\"\n                  class=\"size-3 text-white\"\n                />\n              </div>\n\n              <p\n                class=\"pr-6 text-xs font-semibold tracking-wider uppercase\"\n                :style=\"{ color: 'var(--color-primary)' }\"\n              >\n                Pro\n              </p>\n              <p class=\"mt-2 text-2xl font-bold\">$29<span class=\"text-sm font-normal\">/mo</span></p>\n              <ul class=\"mt-3 space-y-2 text-sm\">\n                <li class=\"flex items-center gap-2\">\n                  <Icon name=\"heroicons:check\" class=\"size-4 shrink-0 text-emerald-500\" />\n                  Unlimited customers\n                </li>\n                <li class=\"flex items-center gap-2\">\n                  <Icon name=\"heroicons:check\" class=\"size-4 shrink-0 text-emerald-500\" />\n                  Advanced analytics\n                </li>\n                <li class=\"flex items-center gap-2\">\n                  <Icon name=\"heroicons:check\" class=\"size-4 shrink-0 text-emerald-500\" />\n                  CSV import &amp; export\n                </li>\n                <li class=\"flex items-center gap-2\">\n                  <Icon name=\"heroicons:check\" class=\"size-4 shrink-0 text-emerald-500\" />\n                  Priority support\n                </li>\n              </ul>\n            </button>\n          </div>\n\n          <p class=\"text-muted-foreground text-center text-xs\">\n            No credit card required. Cancel anytime.\n          </p>\n        </div>\n\n        <UiDialogFooter class=\"flex-col gap-2 sm:flex-col\">\n          <UiButton v-if=\"selectedPlan === 'pro'\" class=\"w-full gap-2\" @click=\"upgradeOpen = false\">\n            <Icon name=\"heroicons:bolt\" class=\"size-4\" />\n            Upgrade to Pro — $29/mo\n          </UiButton>\n          <UiButton v-else variant=\"outline\" class=\"w-full\" @click=\"upgradeOpen = false\">\n            Continue with Free\n          </UiButton>\n          <UiButton variant=\"ghost\" class=\"w-full\" @click=\"upgradeOpen = false\">\n            Maybe later\n          </UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- Import CSV dialog -->\n    <UiDialog v-model:open=\"importOpen\">\n      <UiDialogContent class=\"sm:max-w-md\">\n        <UiDialogHeader>\n          <UiDialogTitle>Import customers</UiDialogTitle>\n          <UiDialogDescription>\n            Upload a CSV file to import customers in bulk. The file must include columns for company\n            name, domain, and status.\n          </UiDialogDescription>\n        </UiDialogHeader>\n\n        <div class=\"space-y-4 py-2\">\n          <label\n            class=\"border-border/70 bg-muted/30 hover:bg-muted/50 flex cursor-pointer flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed px-6 py-10 text-center transition-colors\"\n            :class=\"{ 'border-[--color-primary] bg-sky-50/50 dark:bg-sky-950/20': importDragOver }\"\n            @dragover.prevent=\"importDragOver = true\"\n            @dragleave.prevent=\"importDragOver = false\"\n            @drop.prevent=\"onImportDrop\"\n          >\n            <div\n              class=\"bg-muted text-muted-foreground flex size-12 items-center justify-center rounded-full\"\n            >\n              <Icon name=\"heroicons:arrow-up-tray\" class=\"size-6\" />\n            </div>\n            <div class=\"space-y-1\">\n              <p class=\"text-sm font-medium\">\n                <span class=\"text-[--color-primary]\">Click to upload</span> or drag and drop\n              </p>\n              <p class=\"text-muted-foreground text-xs\">CSV files only, up to 10 MB</p>\n            </div>\n            <input type=\"file\" accept=\".csv\" class=\"sr-only\" @change=\"onImportFileChange\" />\n          </label>\n\n          <div\n            v-if=\"importFile\"\n            class=\"border-border/70 bg-card flex items-center gap-3 rounded-lg border px-4 py-3\"\n          >\n            <Icon name=\"heroicons:document-text\" class=\"size-5 shrink-0 text-[--color-primary]\" />\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"truncate text-sm font-medium\">{{ importFile.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">\n                {{ (importFile.size / 1024).toFixed(1) }} KB\n              </p>\n            </div>\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              class=\"text-muted-foreground shrink-0\"\n              @click=\"importFile = null\"\n            >\n              <Icon name=\"heroicons:x-mark\" class=\"size-4\" />\n            </UiButton>\n          </div>\n\n          <p class=\"text-muted-foreground text-center text-xs\">\n            Not sure about the format?\n            <button class=\"font-medium text-[--color-primary] underline-offset-2 hover:underline\">\n              Download template\n            </button>\n          </p>\n        </div>\n\n        <UiDialogFooter>\n          <UiButton variant=\"outline\" @click=\"importOpen = false\">Cancel</UiButton>\n          <UiButton :disabled=\"!importFile\" @click=\"onImportSubmit\">\n            <Icon name=\"heroicons:arrow-up-tray\" class=\"size-4\" />\n            Import customers\n          </UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n\n    <!-- Add customer sheet -->\n    <UiSheet v-model:open=\"addOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Add customer\"\n        description=\"Fill in the details below to add a new customer.\"\n      >\n        <template #content>\n          <form class=\"space-y-5 px-6\" @submit=\"submitAdd\">\n            <fieldset :disabled=\"isSubmittingAdd\" class=\"space-y-5\">\n              <UiVeeInput required label=\"Company name\" name=\"addName\" placeholder=\"Acme Corp\" />\n              <UiVeeInput required label=\"Domain\" name=\"addDomain\" placeholder=\"acme.com\" />\n              <UiVeeInput\n                label=\"About / product\"\n                name=\"addProduct\"\n                placeholder=\"e.g. Project management tool\"\n              />\n              <UiVeeSelect required label=\"Status\" name=\"addStatus\">\n                <option disabled>Select an option</option>\n                <option value=\"Customer\">Customer</option>\n                <option value=\"Churned\">Churned</option>\n              </UiVeeSelect>\n              <UiVeeInput\n                label=\"Number of users\"\n                name=\"addUsers\"\n                type=\"number\"\n                placeholder=\"e.g. 10\"\n              />\n            </fieldset>\n          </form>\n        </template>\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" :disabled=\"isSubmittingAdd\" @click=\"submitAdd\">\n              Add customer\n            </UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Edit customer sheet -->\n    <UiSheet v-model:open=\"editOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Edit customer\"\n        description=\"Update the customer's details below.\"\n      >\n        <template #content>\n          <form class=\"space-y-5 px-6\" @submit=\"submitEdit\">\n            <fieldset :disabled=\"isSubmittingEdit\" class=\"space-y-5\">\n              <UiVeeInput required label=\"Company name\" name=\"editName\" placeholder=\"Acme Corp\" />\n              <UiVeeInput required label=\"Domain\" name=\"editDomain\" placeholder=\"acme.com\" />\n              <UiVeeSelect required label=\"Status\" name=\"editStatus\">\n                <option disabled>Select an option</option>\n                <option value=\"Customer\">Customer</option>\n                <option value=\"Churned\">Churned</option>\n              </UiVeeSelect>\n            </fieldset>\n          </form>\n        </template>\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" @click=\"submitEdit\">Save changes</UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Delete confirmation dialog -->\n    <UiAlertDialog v-model:open=\"deleteOpen\">\n      <UiAlertDialogContent>\n        <UiAlertDialogHeader>\n          <UiAlertDialogTitle title=\"Remove customer?\" />\n          <UiAlertDialogDescription\n            :description=\"`Are you sure you want to remove '${deleteTarget?.name}'? This action cannot be undone.`\"\n          />\n        </UiAlertDialogHeader>\n        <UiAlertDialogFooter>\n          <UiAlertDialogCancel />\n          <UiAlertDialogAction @click=\"confirmDelete\" />\n        </UiAlertDialogFooter>\n      </UiAlertDialogContent>\n    </UiAlertDialog>\n\n    <!-- Command / search dialog -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search customers\"\n      description=\"Search by company name, domain, or product\"\n    >\n      <UiCommandInput placeholder=\"Search customers...\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Quick actions\">\n          <UiCommandItem value=\"Add customer\">\n            <Icon name=\"heroicons:plus\" />\n            <span>Add customer</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Import customers\">\n            <Icon name=\"heroicons:arrow-up-tray\" />\n            <span>Import customers</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Export list\">\n            <Icon name=\"heroicons:arrow-down-tray\" />\n            <span>Export list</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Filter by status\">\n          <UiCommandItem value=\"Customers only\">\n            <Icon name=\"heroicons:check-circle\" />\n            <span>Customers only</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Churned only\">\n            <Icon name=\"heroicons:x-circle\" />\n            <span>Churned only</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- Sticky header -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile nav popover -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton class=\"lg:hidden\" variant=\"ghost\" size=\"icon-sm\">\n                <Icon name=\"heroicons:bars-3\" class=\"size-5\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"\n                  item.active\n                    ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                    : 'text-muted-foreground'\n                \"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right actions -->\n        <div class=\"flex items-center gap-2\">\n          <!-- Upgrade now button -->\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <!-- Desktop: icon + label -->\n              <UiButton size=\"sm\" class=\"hidden gap-1.5 sm:flex\" @click=\"upgradeOpen = true\">\n                <Icon name=\"heroicons:bolt\" class=\"size-4\" />\n                Upgrade now\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent class=\"sm:hidden\"><p>Upgrade to Pro</p></UiTooltipContent>\n          </UiTooltip>\n          <!-- Mobile: icon only -->\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton size=\"icon-sm\" class=\"sm:hidden\" @click=\"upgradeOpen = true\">\n                <Icon name=\"heroicons:bolt\" class=\"size-4\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Upgrade to Pro</p></UiTooltipContent>\n          </UiTooltip>\n\n          <div class=\"flex items-center gap-1\">\n            <!-- Settings dropdown -->\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                      <Icon name=\"heroicons:cog-6-tooth\" class=\"text-muted-foreground size-5\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Settings</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                  <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n                  <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n                  <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notifications\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    variant=\"destructive\"\n                    icon=\"heroicons:arrow-right-on-rectangle\"\n                    title=\"Sign out\"\n                  />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n\n            <!-- Notifications dropdown -->\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                      <Icon name=\"heroicons:bell\" class=\"text-muted-foreground size-5\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Notifications</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\" class=\"w-96\">\n                  <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                    <span>Notifications</span>\n                    <UiBadge variant=\"secondary\" size=\"sm\">2 new</UiBadge>\n                  </UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:user-plus\"\n                    title=\"Ephemeral signed a new plan\"\n                  >\n                    <template #shortcut>1h ago</template>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem\n                    icon=\"heroicons:arrow-trending-up\"\n                    title=\"Customer growth up 12% this week\"\n                  >\n                    <template #shortcut>3h ago</template>\n                  </UiDropdownMenuItem>\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n\n            <!-- User avatar dropdown -->\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                      <UiAvatar\n                        src=\"https://i.pravatar.cc/150?img=47\"\n                        alt=\"Olivia Rhye\"\n                        fallback=\"OR\"\n                        class=\"size-8 cursor-pointer\"\n                      />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Account</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                  <UiDropdownMenuLabel>\n                    <div class=\"flex flex-col\">\n                      <p class=\"text-sm font-medium\">Olivia Rhye</p>\n                      <p class=\"text-muted-foreground text-xs\">olivia@ui-thing.com</p>\n                    </div>\n                  </UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                  <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    variant=\"destructive\"\n                    icon=\"heroicons:arrow-right-on-rectangle\"\n                    title=\"Sign out\"\n                  />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n          </div>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Secondary tab nav -->\n    <Motion\n      :initial=\"{ opacity: 0, y: -8 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.35, delay: 0.05, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background border-b\"\n    >\n      <UiContainer class=\"flex items-center justify-between gap-4 py-0\">\n        <!-- Tabs (desktop) -->\n        <div class=\"hidden items-center gap-0.5 overflow-x-auto sm:flex\">\n          <button\n            v-for=\"tab in secondaryTabs\"\n            :key=\"tab.label\"\n            class=\"relative shrink-0 px-3 py-3.5 text-sm font-medium transition-colors\"\n            :class=\"\n              tab.active\n                ? 'text-foreground after:bg-primary after:absolute after:inset-x-0 after:bottom-0 after:h-0.5'\n                : 'text-muted-foreground hover:text-foreground'\n            \"\n            @click=\"setActiveTab(tab.label)\"\n          >\n            {{ tab.label }}\n          </button>\n        </div>\n\n        <!-- Mobile tab selector -->\n        <UiPopover class=\"sm:hidden\">\n          <UiPopoverTrigger as-child>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"gap-1.5 text-sm font-medium sm:hidden\">\n              {{ activeTabLabel }}\n              <Icon name=\"heroicons:chevron-down\" class=\"text-muted-foreground size-4\" />\n            </UiButton>\n          </UiPopoverTrigger>\n          <UiPopoverContent align=\"start\" class=\"w-52 p-1\">\n            <UiButton\n              v-for=\"tab in secondaryTabs\"\n              :key=\"tab.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              class=\"w-full justify-start\"\n              :class=\"tab.active ? 'bg-muted font-semibold' : 'text-muted-foreground'\"\n              @click=\"setActiveTab(tab.label)\"\n            >\n              {{ tab.label }}\n            </UiButton>\n          </UiPopoverContent>\n        </UiPopover>\n\n        <!-- ⌘K search button -->\n        <UiButton\n          variant=\"outline\"\n          size=\"sm\"\n          class=\"text-muted-foreground hidden shrink-0 gap-2 sm:flex\"\n          @click=\"searchOpen = true\"\n        >\n          <Icon name=\"heroicons:magnifying-glass\" class=\"size-4\" />\n          <span class=\"text-sm\">Search...</span>\n          <UiKbd class=\"ml-1\">⌘K</UiKbd>\n        </UiButton>\n      </UiContainer>\n    </Motion>\n\n    <!-- Page content -->\n    <UiContainer class=\"space-y-6 py-8\">\n      <!-- Page header -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\"\n      >\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Welcome back, Olivia</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\">\n            Track, manage and forecast your customers and orders.\n          </p>\n        </div>\n        <div class=\"flex items-center gap-3\">\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"importOpen = true\">\n            <Icon name=\"heroicons:arrow-up-tray\" class=\"size-4\" />\n            Import\n          </UiButton>\n          <UiButton size=\"sm\" @click=\"addOpen = true\">\n            <Icon name=\"heroicons:plus\" class=\"size-4\" />\n            Add customer\n          </UiButton>\n        </div>\n      </Motion>\n\n      <!-- Stat cards row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.18, ease: 'easeOut' }\"\n        class=\"grid gap-4 sm:grid-cols-3\"\n      >\n        <div\n          v-for=\"stat in statCards\"\n          :key=\"stat.label\"\n          class=\"border-border/70 bg-card flex flex-col justify-between overflow-hidden rounded-xl border p-5 shadow-xs\"\n        >\n          <!-- Card header -->\n          <div class=\"flex items-center justify-between\">\n            <p class=\"text-muted-foreground text-sm font-medium\">{{ stat.label }}</p>\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground -mr-1\">\n                      <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Options</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Refresh\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n          </div>\n\n          <!-- Value + trend -->\n          <div class=\"mt-3 flex items-end justify-between gap-3\">\n            <div>\n              <p class=\"text-3xl font-bold tracking-tight\">{{ stat.value }}</p>\n              <div class=\"mt-1.5 flex items-center gap-1.5\">\n                <span\n                  class=\"flex items-center gap-0.5 rounded-full px-1.5 py-0.5 text-xs font-medium\"\n                  :class=\"\n                    stat.positive\n                      ? 'bg-emerald-50 text-emerald-700 dark:bg-emerald-950/60 dark:text-emerald-400'\n                      : 'bg-red-50 text-red-700 dark:bg-red-950/60 dark:text-red-400'\n                  \"\n                >\n                  <Icon\n                    :name=\"\n                      stat.positive\n                        ? 'heroicons:arrow-trending-up'\n                        : 'heroicons:arrow-trending-down'\n                    \"\n                    class=\"size-3\"\n                  />\n                  {{ stat.trend }}\n                </span>\n                <span class=\"text-muted-foreground text-xs\">vs last month</span>\n              </div>\n            </div>\n\n            <!-- Sparkline -->\n            <div class=\"-mr-2 -mb-1 w-28 shrink-0\">\n              <UiApexchart\n                type=\"line\"\n                height=\"56\"\n                :series=\"[{ name: stat.label, data: stat.sparkData }]\"\n                :options=\"sparklineOptions(stat.positive)\"\n              />\n            </div>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Filter row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 8 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.26, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <!-- Filter chips -->\n        <div class=\"flex flex-wrap items-center gap-2\">\n          <button\n            v-for=\"chip in activeFilters\"\n            :key=\"chip.label\"\n            class=\"border-border/70 bg-card text-foreground hover:bg-muted/60 flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium transition-colors\"\n            @click=\"removeFilter(chip.label)\"\n          >\n            {{ chip.label }}\n            <Icon name=\"heroicons:x-mark\" class=\"text-muted-foreground size-3.5\" />\n          </button>\n          <UiButton variant=\"outline\" size=\"sm\" class=\"h-7 rounded-full text-xs\">\n            <Icon name=\"heroicons:funnel\" class=\"size-3.5\" />\n            More filters\n          </UiButton>\n        </div>\n\n        <!-- Table search -->\n        <div class=\"relative w-full sm:w-64\">\n          <Icon\n            name=\"heroicons:magnifying-glass\"\n            class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <input\n            v-model=\"tableSearch\"\n            type=\"text\"\n            placeholder=\"Search customers...\"\n            class=\"border-border/70 bg-card text-foreground placeholder:text-muted-foreground h-9 w-full rounded-lg border pr-3 pl-9 text-sm shadow-xs transition-colors focus:border-[--color-primary] focus:ring-1 focus:ring-[--color-primary] focus:outline-none\"\n          />\n        </div>\n      </Motion>\n\n      <!-- Customers table card -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.32, ease: 'easeOut' }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <UiTanStackTable\n            :data=\"filteredCompanies\"\n            :columns=\"companyColumns\"\n            :show-rows-per-page=\"false\"\n            :show-page-info=\"false\"\n            :show-pagination=\"false\"\n            :show-selected-count=\"false\"\n            :show-footer=\"true\"\n            :loading=\"companiesPending\"\n            :table-options=\"{ enableRowSelection: true }\"\n          >\n            <!-- Select all -->\n            <template #select-header=\"{ table }\">\n              <UiCheckbox\n                aria-label=\"Select all\"\n                :model-value=\"\n                  table.getIsAllPageRowsSelected() ||\n                  (table.getIsSomePageRowsSelected() && 'indeterminate')\n                \"\n                @update:model-value=\"table.toggleAllPageRowsSelected(!!$event)\"\n              />\n            </template>\n\n            <template #select-cell=\"{ row }\">\n              <UiCheckbox\n                :aria-label=\"`Select ${row.original.name}`\"\n                :model-value=\"row.getIsSelected()\"\n                @update:model-value=\"row.toggleSelected(!!$event)\"\n              />\n            </template>\n\n            <!-- Company cell: logo + name + domain -->\n            <template #company-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <div\n                  class=\"flex size-9 shrink-0 items-center justify-center rounded-lg text-sm font-semibold text-white\"\n                  :style=\"{ backgroundColor: row.original.logoColor }\"\n                >\n                  {{ row.original.logoInitial }}\n                </div>\n                <div class=\"flex min-w-0 flex-col\">\n                  <span class=\"truncate text-sm font-medium\">{{ row.original.name }}</span>\n                  <span class=\"text-muted-foreground truncate text-xs\">{{\n                    row.original.domain\n                  }}</span>\n                </div>\n              </div>\n            </template>\n\n            <!-- License use cell: progress bar + value -->\n            <template #licenseUse-cell=\"{ row }\">\n              <div class=\"flex w-28 flex-col gap-1.5\">\n                <span class=\"text-muted-foreground text-xs\">{{ row.original.licenseUse }}%</span>\n                <div class=\"bg-muted h-1.5 w-full overflow-hidden rounded-full\">\n                  <div\n                    class=\"h-full rounded-full\"\n                    :style=\"{\n                      width: `${row.original.licenseUse}%`,\n                      backgroundColor: 'var(--color-primary)',\n                    }\"\n                  />\n                </div>\n              </div>\n            </template>\n\n            <!-- Status cell -->\n            <template #status-cell=\"{ row }\">\n              <UiBadge\n                v-if=\"row.original.status === 'Customer'\"\n                variant=\"outline\"\n                class=\"rounded-full border-emerald-300 bg-emerald-50 text-emerald-700 dark:border-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-400\"\n              >\n                {{ row.original.status }}\n              </UiBadge>\n              <span v-else class=\"text-muted-foreground text-sm\">{{ row.original.status }}</span>\n            </template>\n\n            <!-- Users cell: avatar group -->\n            <template #users-cell=\"{ row }\">\n              <div class=\"flex items-center\">\n                <div class=\"flex -space-x-2\">\n                  <UiAvatar\n                    v-for=\"(url, i) in row.original.userAvatars\"\n                    :key=\"i\"\n                    :src=\"url\"\n                    :alt=\"`User ${i + 1}`\"\n                    fallback=\"U\"\n                    class=\"ring-background size-7 shrink-0 ring-2\"\n                  />\n                </div>\n                <span class=\"text-muted-foreground ml-1.5 text-xs\">+5</span>\n              </div>\n            </template>\n\n            <!-- About cell: product + description -->\n            <template #about-cell=\"{ row }\">\n              <div class=\"flex min-w-0 flex-col\">\n                <span class=\"truncate text-sm font-medium\">{{ row.original.aboutProduct }}</span>\n                <span class=\"text-muted-foreground truncate text-xs\">{{\n                  row.original.aboutDescription\n                }}</span>\n              </div>\n            </template>\n\n            <!-- Actions cell -->\n            <template #actions-cell=\"{ row }\">\n              <div class=\"flex items-center gap-1\">\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground hover:text-destructive\"\n                      aria-label=\"Delete customer\"\n                      @click=\"\n                        () => {\n                          deleteTarget = row.original;\n                          deleteOpen = true;\n                        }\n                      \"\n                    >\n                      <Icon name=\"heroicons:trash\" class=\"size-4\" />\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Delete customer</p></UiTooltipContent>\n                </UiTooltip>\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground\"\n                      aria-label=\"Edit customer\"\n                      @click=\"openEdit(row.original)\"\n                    >\n                      <Icon name=\"heroicons:pencil\" class=\"size-4\" />\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Edit customer</p></UiTooltipContent>\n                </UiTooltip>\n              </div>\n            </template>\n\n            <!-- Footer with pagination -->\n            <template #footer=\"{ table }\">\n              <div\n                class=\"border-border/60 flex w-full flex-col gap-3 border-t px-5 py-4 sm:flex-row sm:items-center sm:justify-between\"\n              >\n                <p class=\"text-muted-foreground shrink-0 text-sm\">\n                  <template v-if=\"table.getFilteredSelectedRowModel().rows.length > 0\">\n                    {{ table.getFilteredSelectedRowModel().rows.length }} selected\n                  </template>\n                </p>\n\n                <!-- Desktop pagination -->\n                <UiPagination\n                  class=\"mx-0! hidden! justify-end! sm:flex!\"\n                  :total=\"filteredCompanies.length\"\n                  :items-per-page=\"10\"\n                  :sibling-count=\"1\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList class=\"w-full justify-between gap-1\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        <Icon name=\"heroicons:chevron-left\" class=\"size-4\" />\n                        Previous\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <div class=\"text-muted-foreground text-sm\">\n                      Page\n                      <span class=\"text-foreground font-medium\">{{\n                        table.atoms.pagination.get().pageIndex + 1\n                      }}</span>\n                      of\n                      <span class=\"text-foreground font-medium\">{{ table.getPageCount() }}</span>\n                    </div>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        Next\n                        <Icon name=\"heroicons:chevron-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n\n                <!-- Mobile pagination -->\n                <UiPagination\n                  class=\"mx-0! sm:hidden!\"\n                  :total=\"filteredCompanies.length\"\n                  :items-per-page=\"10\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList class=\"w-full justify-between\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-left\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <span class=\"text-muted-foreground text-sm\">\n                      Page {{ table.atoms.pagination.get().pageIndex + 1 }} of\n                      {{ table.getPageCount() }}\n                    </span>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n              </div>\n            </template>\n          </UiTanStackTable>\n        </UiCard>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { faker } from \"@faker-js/faker\";\n  import type { ColumnDef } from \"@tanstack/vue-table\";\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  import type { TanStackTableFeatures } from \"~/components/Ui/TanStackTable.vue\";\n\n  // ─── Navigation ────────────────────────────────────────────────────────────────\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Customers\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // ─── Secondary tabs ─────────────────────────────────────────────────────────────\n  const secondaryTabs = ref([\n    { label: \"Overview\", active: true },\n    { label: \"Notifications\", active: false },\n    { label: \"Analytics\", active: false },\n    { label: \"Saved reports\", active: false },\n    { label: \"Scheduled reports\", active: false },\n    { label: \"User reports\", active: false },\n  ]);\n\n  const activeTabLabel = computed(\n    () => secondaryTabs.value.find((t) => t.active)?.label ?? \"Overview\"\n  );\n\n  const setActiveTab = (label: string) => {\n    secondaryTabs.value = secondaryTabs.value.map((t) => ({ ...t, active: t.label === label }));\n  };\n\n  // ─── Upgrade dialog ────────────────────────────────────────────────────────────\n  const upgradeOpen = ref(false);\n  const selectedPlan = ref<\"free\" | \"pro\">(\"pro\");\n\n  // ─── Search dialog ─────────────────────────────────────────────────────────────\n  const searchOpen = ref(false);\n  const handleKeydown = (e: KeyboardEvent) => {\n    if (e.key === \"Escape\") searchOpen.value = false;\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n  };\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // ─── Filter chips ──────────────────────────────────────────────────────────────\n  const activeFilters = ref([{ label: \"All time\" }, { label: \"US, AU, +4\" }]);\n  const removeFilter = (label: string) => {\n    activeFilters.value = activeFilters.value.filter((f) => f.label !== label);\n  };\n\n  // ─── Stat cards with sparklines ────────────────────────────────────────────────\n  const statCards = [\n    {\n      label: \"Total customers\",\n      value: \"2,420\",\n      trend: \"+40%\",\n      positive: true,\n      sparkData: [18, 22, 19, 25, 30, 28, 35, 32, 40, 38, 45, 48],\n    },\n    {\n      label: \"Members\",\n      value: \"1,210\",\n      trend: \"-10%\",\n      positive: false,\n      sparkData: [30, 28, 32, 25, 22, 28, 20, 18, 22, 16, 14, 12],\n    },\n    {\n      label: \"Active now\",\n      value: \"316\",\n      trend: \"+20%\",\n      positive: true,\n      sparkData: [10, 14, 12, 18, 16, 22, 20, 26, 24, 28, 30, 32],\n    },\n  ];\n\n  const sparklineOptions = (positive: boolean): ApexOptions => ({\n    chart: {\n      type: \"line\",\n      background: \"transparent\",\n      sparkline: { enabled: true },\n      parentHeightOffset: 0,\n      animations: { enabled: false },\n    },\n    stroke: { width: 2, curve: \"smooth\" },\n    colors: [positive ? \"#10b981\" : \"#ef4444\"],\n    markers: {\n      size: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5],\n      colors: [positive ? \"#10b981\" : \"#ef4444\"],\n      strokeWidth: 0,\n      hover: { size: 5 },\n    },\n    tooltip: { enabled: false },\n    grid: { show: false },\n    xaxis: { labels: { show: false }, axisBorder: { show: false }, axisTicks: { show: false } },\n    yaxis: { show: false },\n  });\n\n  // ─── Company table ─────────────────────────────────────────────────────────────\n  type CompanyRow = {\n    id: number;\n    name: string;\n    domain: string;\n    logoColor: string;\n    logoInitial: string;\n    status: \"Customer\" | \"Churned\";\n    aboutProduct: string;\n    aboutDescription: string;\n    userAvatars: string[];\n    licenseUse: number;\n  };\n\n  const logoColors = [\n    \"#0ea5e9\",\n    \"#6366f1\",\n    \"#10b981\",\n    \"#f59e0b\",\n    \"#ef4444\",\n    \"#ec4899\",\n    \"#14b8a6\",\n    \"#f97316\",\n    \"#8b5cf6\",\n    \"#84cc16\",\n  ];\n\n  const createCompany = (i: number): CompanyRow => {\n    faker.seed(i + 700);\n    const name = faker.company.name();\n    const domain = `${name\n      .toLowerCase()\n      .replace(/[^a-z0-9]/g, \"\")\n      .slice(0, 12)}.com`;\n    const status: \"Customer\" | \"Churned\" = i % 5 === 1 ? \"Churned\" : \"Customer\";\n    const logoColor = logoColors[i % logoColors.length]!;\n    const logoInitial = name[0]?.toUpperCase() ?? \"C\";\n    const userAvatars = Array.from(\n      { length: 3 },\n      (_, j) => `https://i.pravatar.cc/150?img=${((i * 3 + j) % 70) + 1}`\n    );\n    const licenseUse = faker.number.int({ min: 15, max: 95 });\n    const aboutProduct = faker.commerce.productName();\n    const aboutDescription = faker.commerce.productDescription().slice(0, 48);\n    return {\n      id: i + 1,\n      name,\n      domain,\n      logoColor,\n      logoInitial,\n      status,\n      aboutProduct,\n      aboutDescription,\n      userAvatars,\n      licenseUse,\n    };\n  };\n\n  const { data: companiesData, pending: companiesPending } = await useAsyncData<CompanyRow[]>(\n    \"block-dashboards7-companies\",\n    async () => Array.from({ length: 100 }, (_, i) => createCompany(i)),\n    { default: () => [] }\n  );\n\n  const companies = computed(() => companiesData.value ?? []);\n\n  const tableSearch = ref(\"\");\n\n  const filteredCompanies = computed(() => {\n    const q = tableSearch.value.trim().toLowerCase();\n    if (!q) return companies.value;\n    return companies.value.filter(\n      (c) =>\n        c.name.toLowerCase().includes(q) ||\n        c.domain.toLowerCase().includes(q) ||\n        c.aboutProduct.toLowerCase().includes(q) ||\n        c.status.toLowerCase().includes(q)\n    );\n  });\n\n  // ─── Table columns ─────────────────────────────────────────────────────────────\n  const companyColumns: ColumnDef<TanStackTableFeatures, CompanyRow>[] = [\n    {\n      id: \"select\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-12\", td: \"w-12\" } },\n    },\n    {\n      id: \"company\",\n      accessorKey: \"name\",\n      header: \"Company\",\n    },\n    {\n      id: \"licenseUse\",\n      accessorKey: \"licenseUse\",\n      header: \"License use\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden lg:table-cell w-36\", td: \"hidden lg:table-cell w-36\" } },\n    },\n    {\n      id: \"status\",\n      accessorKey: \"status\",\n      header: \"Status\",\n    },\n    {\n      id: \"users\",\n      accessorKey: \"userAvatars\",\n      header: \"Users\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden lg:table-cell\", td: \"hidden lg:table-cell\" } },\n    },\n    {\n      id: \"about\",\n      accessorKey: \"aboutProduct\",\n      header: \"About\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden md:table-cell\", td: \"hidden md:table-cell\" } },\n    },\n    {\n      id: \"actions\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-20\", td: \"w-20\" } },\n    },\n  ];\n\n  // ─── Add customer sheet (vee-validate) ────────────────────────────────────────\n  const addOpen = ref(false);\n\n  const AddSchema = object({\n    addName: string().required().label(\"Company name\").min(2).max(100),\n    addDomain: string().required().label(\"Domain\").min(3).max(80),\n    addProduct: string().optional().label(\"About / product\").max(120),\n    addStatus: string().required().label(\"Status\"),\n    addUsers: string().optional().label(\"Number of users\"),\n  });\n\n  const {\n    handleSubmit: handleAddSubmit,\n    isSubmitting: isSubmittingAdd,\n    resetForm: resetAddForm,\n    controlledValues: addControlledValues,\n  } = useForm({ name: \"addForm7\", validationSchema: toTypedSchema(AddSchema) });\n\n  const submitAdd = handleAddSubmit(() => {\n    addOpen.value = false;\n    useSonner(\"Customer added\", {\n      description: `'${addControlledValues.value.addName}' has been added.`,\n    });\n    resetAddForm();\n  });\n\n  // ─── Edit sheet (vee-validate) ─────────────────────────────────────────────────\n  const editOpen = ref(false);\n  const editTarget = ref<CompanyRow | null>(null);\n\n  const EditSchema = object({\n    editName: string().required().label(\"Company name\").min(2).max(100),\n    editDomain: string().required().label(\"Domain\").min(3).max(80),\n    editStatus: string().required().label(\"Status\"),\n  });\n\n  const {\n    handleSubmit: handleEditSubmit,\n    isSubmitting: isSubmittingEdit,\n    setValues,\n  } = useForm<InferType<typeof EditSchema>>({\n    validationSchema: EditSchema,\n  });\n\n  const submitEdit = handleEditSubmit(() => {\n    editOpen.value = false;\n    useSonner(\"Customer updated\", {\n      description: `'${editTarget.value?.name}' has been saved.`,\n    });\n  });\n\n  const openEdit = (company: CompanyRow) => {\n    editTarget.value = company;\n    setValues({\n      editName: company.name,\n      editDomain: company.domain,\n      editStatus: company.status,\n    });\n    editOpen.value = true;\n  };\n\n  // ─── Import CSV dialog ─────────────────────────────────────────────────────────\n  const importOpen = ref(false);\n  const importFile = ref<File | null>(null);\n  const importDragOver = ref(false);\n\n  const onImportFileChange = (e: Event) => {\n    const file = (e.target as HTMLInputElement).files?.[0];\n    if (file) importFile.value = file;\n  };\n\n  const onImportDrop = (e: DragEvent) => {\n    importDragOver.value = false;\n    const file = e.dataTransfer?.files?.[0];\n    if (file && file.name.endsWith(\".csv\")) importFile.value = file;\n  };\n\n  const onImportSubmit = () => {\n    if (!importFile.value) return;\n    importOpen.value = false;\n    useSonner(\"Import started\", {\n      description: `'${importFile.value.name}' is being processed.`,\n    });\n    importFile.value = null;\n  };\n\n  // ─── Delete dialog ─────────────────────────────────────────────────────────────\n  const deleteOpen = ref(false);\n  const deleteTarget = ref<CompanyRow | null>(null);\n\n  const confirmDelete = () => {\n    if (!deleteTarget.value) return;\n    useSonner(`'${deleteTarget.value.name}' removed`, {\n      description: \"The customer has been permanently removed.\",\n    });\n    deleteTarget.value = null;\n  };\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards7.vue","components":["alert-dialog","apexcharts","avatar","badge","button","card","checkbox","command","container","dialog","dropdown-menu","kbd","pagination","popover","sheet","tanstacktable","tooltip","vee-input","vee-select"]},{"name":"Dashboards 8","fileName":"BlockDashboards8.vue","file":"<template>\n  <div class=\"bg-background text-foreground min-h-screen\">\n    <!-- Delete confirmation dialog -->\n    <UiAlertDialog v-model:open=\"deleteOpen\">\n      <UiAlertDialogContent>\n        <UiAlertDialogHeader>\n          <UiAlertDialogTitle title=\"Remove vendor?\" />\n          <UiAlertDialogDescription\n            :description=\"`Are you sure you want to remove '${deleteTarget?.name}'? This action cannot be undone.`\"\n          />\n        </UiAlertDialogHeader>\n        <UiAlertDialogFooter>\n          <UiAlertDialogCancel />\n          <UiAlertDialogAction @click=\"confirmDelete\" />\n        </UiAlertDialogFooter>\n      </UiAlertDialogContent>\n    </UiAlertDialog>\n\n    <!-- Edit vendor sheet -->\n    <UiSheet v-model:open=\"editOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Edit vendor\"\n        description=\"Update the vendor's details below.\"\n      >\n        <template #content>\n          <form class=\"space-y-5 px-6\" @submit=\"submitEdit\">\n            <fieldset :disabled=\"isSubmittingEdit\" class=\"space-y-5\">\n              <UiVeeInput required label=\"Vendor name\" name=\"editName\" placeholder=\"Acme Corp\" />\n              <UiVeeInput required label=\"Domain\" name=\"editDomain\" placeholder=\"acme.com\" />\n              <UiVeeSelect required label=\"Status\" name=\"editStatus\">\n                <option disabled>Select an option</option>\n                <option value=\"Active\">Active</option>\n                <option value=\"Inactive\">Inactive</option>\n              </UiVeeSelect>\n            </fieldset>\n          </form>\n        </template>\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" @click=\"submitEdit\">Save changes</UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Command search dialog -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search vendors\"\n      description=\"Search by vendor name, domain, or category\"\n    >\n      <UiCommandInput placeholder=\"Search vendors...\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Quick actions\">\n          <UiCommandItem value=\"Export data\">\n            <Icon name=\"heroicons:arrow-down-tray\" />\n            <span>Export data</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Customize columns\">\n            <Icon name=\"heroicons:adjustments-horizontal\" />\n            <span>Customize columns</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Filter by status\">\n          <UiCommandItem value=\"Active vendors\">\n            <Icon name=\"heroicons:check-circle\" />\n            <span>Active vendors</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Inactive vendors\">\n            <Icon name=\"heroicons:x-circle\" />\n            <span>Inactive vendors</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- Sticky header -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile nav popover -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"lg:hidden\">\n                <Icon name=\"heroicons:bars-3\" class=\"size-5\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"\n                  item.active\n                    ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                    : 'text-muted-foreground'\n                \"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right actions -->\n        <div class=\"flex items-center gap-1\">\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"rounded-full\"\n                @click=\"searchOpen = true\"\n              >\n                <Icon name=\"heroicons:magnifying-glass\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Search</p></UiTooltipContent>\n          </UiTooltip>\n\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                    <Icon name=\"heroicons:cog-6-tooth\" class=\"text-muted-foreground size-5\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Settings</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n                <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notifications\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                    <Icon name=\"heroicons:bell\" class=\"text-muted-foreground size-5\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Notifications</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-96\">\n                <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                  <span>Notifications</span>\n                  <UiBadge variant=\"secondary\" size=\"sm\">2 new</UiBadge>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  icon=\"heroicons:shield-check\"\n                  title=\"Warpspeed passed security review\"\n                >\n                  <template #shortcut>2h ago</template>\n                </UiDropdownMenuItem>\n                <UiDropdownMenuItem\n                  icon=\"heroicons:arrow-trending-down\"\n                  title=\"CloudWatch rating dropped below 40\"\n                >\n                  <template #shortcut>5h ago</template>\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                    <UiAvatar\n                      src=\"https://i.pravatar.cc/150?img=47\"\n                      alt=\"Current user\"\n                      fallback=\"OR\"\n                      class=\"size-8 cursor-pointer\"\n                    />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Account</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>\n                  <div class=\"flex flex-col\">\n                    <p class=\"text-sm font-medium\">Olivia Rhye</p>\n                    <p class=\"text-muted-foreground text-xs\">olivia@ui-thing.com</p>\n                  </div>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing\" />\n                <UiDropdownMenuItem icon=\"heroicons:users\" title=\"Team\" />\n                <UiDropdownMenuItem icon=\"heroicons:shield-check\" title=\"Security\" />\n                <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notification preferences\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:question-mark-circle\" title=\"Help & support\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Page content -->\n    <UiContainer class=\"space-y-6 py-8\">\n      <!-- Page header -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <h1 class=\"text-2xl font-bold tracking-tight\">Organization overview</h1>\n\n        <div class=\"flex flex-wrap items-center gap-2\">\n          <!-- Search icon (desktop only) -->\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"hidden sm:flex\"\n                @click=\"searchOpen = true\"\n              >\n                <Icon name=\"heroicons:magnifying-glass\" class=\"text-muted-foreground size-4\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Search vendors</p></UiTooltipContent>\n          </UiTooltip>\n\n          <!-- Filters (desktop) -->\n          <UiButton variant=\"outline\" size=\"sm\" class=\"hidden gap-2 sm:flex\">\n            <Icon name=\"heroicons:adjustments-horizontal\" class=\"size-4\" />\n            Filters\n          </UiButton>\n\n          <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\">\n            <Icon name=\"heroicons:squares-2x2\" class=\"size-4\" />\n            Customize\n          </UiButton>\n\n          <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\">\n            <Icon name=\"heroicons:arrow-up-tray\" class=\"size-4\" />\n            Export\n          </UiButton>\n        </div>\n      </Motion>\n\n      <!-- Charts row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.18, ease: 'easeOut' }\"\n        class=\"grid gap-4 lg:grid-cols-[5fr_7fr]\"\n      >\n        <!-- Vendor breakdown — radar chart -->\n        <div class=\"border-border/70 bg-card overflow-hidden rounded-xl border shadow-xs\">\n          <div class=\"border-border/60 flex items-center justify-between border-b px-5 py-4\">\n            <h2 class=\"text-sm font-semibold\">Vendor breakdown</h2>\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground -mr-1\">\n                      <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Options</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Refresh\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n          </div>\n\n          <div class=\"p-2\">\n            <UiApexchart type=\"radar\" height=\"300\" :series=\"radarSeries\" :options=\"radarOptions\" />\n          </div>\n\n          <div class=\"border-border/60 border-t px-5 py-3\">\n            <UiButton variant=\"outline\" size=\"sm\" class=\"w-full\">View full report</UiButton>\n          </div>\n        </div>\n\n        <!-- Average vendor rating — stacked bar chart -->\n        <div class=\"border-border/70 bg-card overflow-hidden rounded-xl border shadow-xs\">\n          <div class=\"border-border/60 flex items-start justify-between border-b px-5 py-4\">\n            <div>\n              <h2 class=\"text-sm font-semibold\">Average vendor rating</h2>\n              <p class=\"text-muted-foreground mt-0.5 text-xs\">\n                Track how your rating compares to your industry average.\n              </p>\n            </div>\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"text-muted-foreground -mr-1\">\n                      <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Options</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Refresh\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n          </div>\n\n          <UiApexchart type=\"bar\" height=\"340\" :series=\"barSeries\" :options=\"barOptions\" />\n        </div>\n      </Motion>\n\n      <!-- Vendor movements section header -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 8 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.26, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between\"\n      >\n        <div>\n          <h2 class=\"text-lg font-bold tracking-tight\">Vendor movements</h2>\n          <p class=\"text-muted-foreground mt-0.5 text-sm\">\n            Keep track of vendors and their security ratings.\n          </p>\n        </div>\n\n        <!-- Search input (desktop) -->\n        <div class=\"relative hidden w-64 sm:block\">\n          <Icon\n            name=\"heroicons:magnifying-glass\"\n            class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <input\n            v-model=\"tableSearch\"\n            type=\"text\"\n            placeholder=\"Search\"\n            class=\"border-border/70 bg-card text-foreground placeholder:text-muted-foreground focus:border-primary focus:ring-primary h-9 w-full rounded-lg border pr-12 pl-9 text-sm shadow-xs transition-colors focus:ring-1 focus:outline-none\"\n          />\n          <div class=\"absolute top-1/2 right-2.5 -translate-y-1/2\">\n            <UiKbd class=\"text-[10px]\">⌘K</UiKbd>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Mobile: search + filters row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 4 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.3, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-2 sm:hidden\"\n      >\n        <div class=\"relative\">\n          <Icon\n            name=\"heroicons:magnifying-glass\"\n            class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <input\n            v-model=\"tableSearch\"\n            type=\"text\"\n            placeholder=\"Search\"\n            class=\"border-border/70 bg-card text-foreground placeholder:text-muted-foreground focus:border-primary focus:ring-primary h-9 w-full rounded-lg border pr-12 pl-9 text-sm shadow-xs transition-colors focus:ring-1 focus:outline-none\"\n          />\n          <div class=\"absolute top-1/2 right-2.5 -translate-y-1/2\">\n            <UiKbd class=\"text-[10px]\">⌘K</UiKbd>\n          </div>\n        </div>\n        <UiButton variant=\"outline\" size=\"sm\" class=\"w-full gap-2\">\n          <Icon name=\"heroicons:adjustments-horizontal\" class=\"size-4\" />\n          Filters\n        </UiButton>\n      </Motion>\n\n      <!-- Vendor table -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.33, ease: 'easeOut' }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <UiTanStackTable\n            :data=\"filteredVendors\"\n            :columns=\"vendorColumns\"\n            :show-rows-per-page=\"false\"\n            :show-page-info=\"false\"\n            :show-pagination=\"false\"\n            :show-selected-count=\"false\"\n            :show-footer=\"true\"\n            :loading=\"vendorsPending\"\n            :table-options=\"{ enableRowSelection: true }\"\n          >\n            <!-- Select all -->\n            <template #select-header=\"{ table }\">\n              <UiCheckbox\n                aria-label=\"Select all\"\n                :model-value=\"\n                  table.getIsAllPageRowsSelected() ||\n                  (table.getIsSomePageRowsSelected() && 'indeterminate')\n                \"\n                @update:model-value=\"table.toggleAllPageRowsSelected(!!$event)\"\n              />\n            </template>\n\n            <template #select-cell=\"{ row }\">\n              <UiCheckbox\n                :aria-label=\"`Select ${row.original.name}`\"\n                :model-value=\"row.getIsSelected()\"\n                @update:model-value=\"row.toggleSelected(!!$event)\"\n              />\n            </template>\n\n            <!-- Vendor cell: avatar + name + domain -->\n            <template #vendor-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <div\n                  class=\"flex size-10 shrink-0 items-center justify-center rounded-full\"\n                  :style=\"{ backgroundColor: row.original.logoColor }\"\n                >\n                  <Icon :name=\"row.original.logoIcon\" class=\"size-5 text-white\" />\n                </div>\n                <div class=\"flex min-w-0 flex-col\">\n                  <span class=\"truncate text-sm font-semibold\">{{ row.original.name }}</span>\n                  <span class=\"text-muted-foreground truncate text-xs\">{{\n                    row.original.domain\n                  }}</span>\n                </div>\n              </div>\n            </template>\n\n            <!-- Rating cell: progress bar + number + trend badge -->\n            <template #rating-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <div class=\"bg-muted h-1.5 w-32 overflow-hidden rounded-full\">\n                  <div\n                    class=\"h-full rounded-full transition-all\"\n                    :style=\"{\n                      width: `${row.original.rating}%`,\n                      backgroundColor: 'var(--color-primary)',\n                    }\"\n                  />\n                </div>\n                <span class=\"w-6 shrink-0 text-sm font-medium tabular-nums\">{{\n                  row.original.rating\n                }}</span>\n                <span\n                  class=\"flex shrink-0 items-center gap-0.5 rounded-full px-1.5 py-0.5 text-xs font-medium\"\n                  :class=\"\n                    row.original.trendPositive\n                      ? 'bg-emerald-50 text-emerald-700 dark:bg-emerald-950/60 dark:text-emerald-400'\n                      : 'bg-red-50 text-red-700 dark:bg-red-950/60 dark:text-red-400'\n                  \"\n                >\n                  <Icon\n                    :name=\"\n                      row.original.trendPositive ? 'heroicons:arrow-up' : 'heroicons:arrow-down'\n                    \"\n                    class=\"size-2.5\"\n                  />\n                  {{ Math.abs(row.original.trendPct) }}%\n                </span>\n              </div>\n            </template>\n\n            <!-- Last assessed cell -->\n            <template #lastAssessed-cell=\"{ row }\">\n              <span class=\"text-muted-foreground text-sm\">{{ row.original.lastAssessed }}</span>\n            </template>\n\n            <!-- Categories cell: status + tags + overflow -->\n            <template #categories-cell=\"{ row }\">\n              <div class=\"flex flex-wrap items-center gap-1.5\">\n                <!-- Status badge with dot -->\n                <span\n                  class=\"flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium\"\n                  :class=\"\n                    row.original.status === 'Active'\n                      ? 'border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-800 dark:bg-emerald-950/50 dark:text-emerald-400'\n                      : 'border-border/70 bg-muted/50 text-muted-foreground'\n                  \"\n                >\n                  <span\n                    class=\"size-1.5 rounded-full\"\n                    :class=\"\n                      row.original.status === 'Active' ? 'bg-emerald-500' : 'bg-muted-foreground'\n                    \"\n                  />\n                  {{ row.original.status }}\n                </span>\n\n                <!-- Category tags (up to 2 visible) -->\n                <span\n                  v-for=\"cat in row.original.categories.slice(0, 2)\"\n                  :key=\"cat\"\n                  class=\"border-border/60 bg-card text-foreground rounded-full border px-2 py-0.5 text-xs font-medium\"\n                >\n                  {{ cat }}\n                </span>\n\n                <!-- Overflow count -->\n                <span\n                  v-if=\"row.original.categories.length > 2\"\n                  class=\"border-border/60 bg-card text-muted-foreground rounded-full border px-2 py-0.5 text-xs font-medium\"\n                >\n                  +{{ row.original.categories.length - 2 }}\n                </span>\n              </div>\n            </template>\n\n            <!-- Actions cell -->\n            <template #actions-cell=\"{ row }\">\n              <div class=\"flex items-center gap-1\">\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground hover:text-destructive\"\n                      aria-label=\"Delete vendor\"\n                      @click=\"\n                        () => {\n                          deleteTarget = row.original;\n                          deleteOpen = true;\n                        }\n                      \"\n                    >\n                      <Icon name=\"heroicons:trash\" class=\"size-4\" />\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Delete vendor</p></UiTooltipContent>\n                </UiTooltip>\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground\"\n                      aria-label=\"Edit vendor\"\n                      @click=\"openEdit(row.original)\"\n                    >\n                      <Icon name=\"heroicons:pencil\" class=\"size-4\" />\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Edit vendor</p></UiTooltipContent>\n                </UiTooltip>\n              </div>\n            </template>\n\n            <!-- Footer with pagination -->\n            <template #footer=\"{ table }\">\n              <div\n                class=\"border-border/60 flex w-full flex-col gap-3 border-t px-5 py-4 sm:flex-row sm:items-center sm:justify-between\"\n              >\n                <p class=\"text-muted-foreground shrink-0 text-sm\">\n                  <template v-if=\"table.getFilteredSelectedRowModel().rows.length > 0\">\n                    {{ table.getFilteredSelectedRowModel().rows.length }} selected\n                  </template>\n                </p>\n\n                <!-- Desktop pagination -->\n                <UiPagination\n                  class=\"mx-0! hidden! justify-end! sm:flex!\"\n                  :total=\"filteredVendors.length\"\n                  :items-per-page=\"10\"\n                  :sibling-count=\"1\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList class=\"w-full justify-between gap-1\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        <Icon name=\"heroicons:chevron-left\" class=\"size-4\" />\n                        Previous\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <div class=\"text-muted-foreground text-sm\">\n                      Page\n                      <span class=\"text-foreground font-medium\">{{\n                        table.atoms.pagination.get().pageIndex + 1\n                      }}</span>\n                      of\n                      <span class=\"text-foreground font-medium\">{{ table.getPageCount() }}</span>\n                    </div>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        Next\n                        <Icon name=\"heroicons:chevron-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n\n                <!-- Mobile pagination -->\n                <UiPagination\n                  class=\"mx-0! sm:hidden!\"\n                  :total=\"filteredVendors.length\"\n                  :items-per-page=\"10\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList class=\"w-full justify-between\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-left\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <span class=\"text-muted-foreground text-sm\">\n                      Page {{ table.atoms.pagination.get().pageIndex + 1 }} of\n                      {{ table.getPageCount() }}\n                    </span>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n              </div>\n            </template>\n          </UiTanStackTable>\n        </UiCard>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { faker } from \"@faker-js/faker\";\n  import type { ColumnDef } from \"@tanstack/vue-table\";\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  import type { TanStackTableFeatures } from \"~/components/Ui/TanStackTable.vue\";\n\n  // ─── Navigation ────────────────────────────────────────────────────────────────\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // ─── Search dialog ─────────────────────────────────────────────────────────────\n  const searchOpen = ref(false);\n  const handleKeydown = (e: KeyboardEvent) => {\n    if (e.key === \"Escape\") searchOpen.value = false;\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n  };\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // ─── Radar chart (Vendor breakdown) ───────────────────────────────────────────\n  const radarSeries = [\n    { name: \"2025\", data: [850, 750, 620, 380, 480, 420, 680] },\n    { name: \"2024\", data: [680, 900, 480, 340, 320, 370, 560] },\n    { name: \"2023\", data: [580, 620, 730, 480, 430, 580, 480] },\n  ];\n\n  const radarOptions: ApexOptions = {\n    chart: {\n      type: \"radar\",\n      background: \"transparent\",\n      parentHeightOffset: 0,\n      toolbar: { show: false },\n    },\n    colors: [\"#0ea5e9\", \"#f43f5e\", \"#a78bfa\"],\n    fill: { opacity: 0.15 },\n    stroke: { width: 2 },\n    markers: { size: 0 },\n    xaxis: {\n      categories: [\"Tier 1\", \"Tier 2\", \"Tier 3\", \"Tier 4\", \"Tier 5\", \"Tier 6\", \"Tier 7\"],\n    },\n    yaxis: { show: true, tickAmount: 4, min: 0, max: 1000 },\n    legend: {\n      show: true,\n      position: \"bottom\",\n      horizontalAlign: \"center\",\n      fontSize: \"12px\",\n    },\n    tooltip: { y: { formatter: (v: number) => v.toLocaleString() } },\n  };\n\n  // ─── Stacked bar chart (Average vendor rating) ─────────────────────────────────\n  const months = [\n    \"Jan\",\n    \"Feb\",\n    \"Mar\",\n    \"Apr\",\n    \"May\",\n    \"Jun\",\n    \"Jul\",\n    \"Aug\",\n    \"Sep\",\n    \"Oct\",\n    \"Nov\",\n    \"Dec\",\n  ];\n\n  const barSeries = [\n    { name: \"Your rating\", data: [58, 55, 64, 56, 62, 62, 54, 58, 60, 62, 64, 60] },\n    { name: \"Industry Average\", data: [24, 22, 16, 22, 18, 18, 22, 18, 16, 16, 20, 14] },\n  ];\n\n  const barOptions: ApexOptions = {\n    chart: {\n      type: \"bar\",\n      stacked: true,\n      background: \"transparent\",\n      parentHeightOffset: 0,\n      toolbar: { show: false },\n    },\n    colors: [\"var(--primary)\", \"#cbd5e1\"],\n    plotOptions: {\n      bar: { borderRadius: 2, columnWidth: \"55%\", borderRadiusApplication: \"end\" },\n    },\n    dataLabels: { enabled: false },\n    xaxis: {\n      categories: months,\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n      title: { text: \"Month\", offsetY: -4, style: { fontSize: \"11px\", fontWeight: 400 } },\n    },\n    yaxis: {\n      min: 0,\n      max: 100,\n      tickAmount: 5,\n      title: { text: \"Security rating\", style: { fontSize: \"11px\", fontWeight: 400 } },\n    },\n    grid: {\n      strokeDashArray: 4,\n      xaxis: { lines: { show: false } },\n      yaxis: { lines: { show: true } },\n      padding: { left: 8, right: 8 },\n    },\n    legend: {\n      show: true,\n      position: \"top\",\n      horizontalAlign: \"right\",\n      markers: { size: 7, shape: \"circle\" },\n    },\n    tooltip: {\n      y: { formatter: (v: number) => `${v} / 100` },\n    },\n  };\n\n  // ─── Vendor table ───────────────────────────────────────────────────────────────\n  type VendorRow = {\n    id: number;\n    name: string;\n    domain: string;\n    logoColor: string;\n    logoIcon: string;\n    rating: number;\n    trendPct: number;\n    trendPositive: boolean;\n    lastAssessed: string;\n    status: \"Active\" | \"Inactive\";\n    categories: string[];\n  };\n\n  const logoColors = [\n    \"#6366f1\",\n    \"#0ea5e9\",\n    \"#1a1a2e\",\n    \"#38bdf8\",\n    \"#6d28d9\",\n    \"#0f172a\",\n    \"#10b981\",\n    \"#f59e0b\",\n    \"#ef4444\",\n    \"#ec4899\",\n  ];\n\n  const logoIcons = [\n    \"heroicons:cpu-chip\",\n    \"heroicons:cube-transparent\",\n    \"heroicons:bolt\",\n    \"heroicons:cloud\",\n    \"heroicons:eye\",\n    \"heroicons:signal\",\n    \"heroicons:arrow-path\",\n    \"heroicons:globe-alt\",\n    \"heroicons:shield-check\",\n    \"heroicons:chart-bar\",\n  ];\n\n  const allCategories = [\n    \"Customer data\",\n    \"Business data\",\n    \"Database access\",\n    \"Salesforce\",\n    \"Financials\",\n    \"Admin\",\n    \"HR data\",\n    \"Legal\",\n  ];\n\n  const assessmentDates = [\n    \"22 Jan 2025\",\n    \"20 Jan 2025\",\n    \"24 Jan 2025\",\n    \"26 Jan 2025\",\n    \"18 Jan 2025\",\n    \"28 Jan 2025\",\n    \"16 Jan 2025\",\n    \"14 Jan 2025\",\n    \"30 Jan 2025\",\n    \"12 Jan 2025\",\n  ];\n\n  const vendorNames = [\n    \"Ephemeral\",\n    \"Stack3d Lab\",\n    \"Warpspeed\",\n    \"CloudWatch\",\n    \"ContrastAI\",\n    \"Convergence\",\n    \"Sisyphus\",\n    \"NovaSec\",\n    \"DataForge\",\n    \"Axiom\",\n    \"Meridian\",\n    \"Vaultix\",\n    \"TrustLayer\",\n    \"CipherBase\",\n    \"Sentinel\",\n    \"Gridlock\",\n    \"Helios\",\n    \"Prism\",\n    \"Velox\",\n    \"Ironclad\",\n  ];\n\n  const vendorDomains = [\n    \"ephemeral.io\",\n    \"stack3dlab.com\",\n    \"getwarpspeed.com\",\n    \"cloudwatch.app\",\n    \"contrastai.com\",\n    \"convergence.io\",\n    \"sisyphus.com\",\n    \"novasec.io\",\n    \"dataforge.co\",\n    \"axiom.xyz\",\n    \"meridian.ai\",\n    \"vaultix.com\",\n    \"trustlayer.io\",\n    \"cipherbase.dev\",\n    \"sentinel.app\",\n    \"gridlock.io\",\n    \"helios.ai\",\n    \"prism.co\",\n    \"velox.app\",\n    \"ironclad.io\",\n  ];\n\n  const createVendor = (i: number): VendorRow => {\n    faker.seed(i + 800);\n    const trendPct = faker.number.int({ min: -10, max: 10 });\n    const catCount = faker.number.int({ min: 2, max: 5 });\n    const shuffled = [...allCategories].sort(() => faker.number.float() - 0.5);\n    return {\n      id: i + 1,\n      name: vendorNames[i % vendorNames.length]!,\n      domain: vendorDomains[i % vendorDomains.length]!,\n      logoColor: logoColors[i % logoColors.length]!,\n      logoIcon: logoIcons[i % logoIcons.length]!,\n      rating: faker.number.int({ min: 28, max: 95 }),\n      trendPct,\n      trendPositive: trendPct >= 0,\n      lastAssessed: assessmentDates[i % assessmentDates.length]!,\n      status: i % 6 === 4 ? \"Inactive\" : \"Active\",\n      categories: shuffled.slice(0, catCount),\n    };\n  };\n\n  const { data: vendorsData, pending: vendorsPending } = await useAsyncData<VendorRow[]>(\n    \"block-dashboards8-vendors\",\n    async () => Array.from({ length: 100 }, (_, i) => createVendor(i)),\n    { default: () => [] }\n  );\n\n  const vendors = computed(() => vendorsData.value ?? []);\n\n  const tableSearch = ref(\"\");\n\n  const filteredVendors = computed(() => {\n    const q = tableSearch.value.trim().toLowerCase();\n    if (!q) return vendors.value;\n    return vendors.value.filter(\n      (v) =>\n        v.name.toLowerCase().includes(q) ||\n        v.domain.toLowerCase().includes(q) ||\n        v.status.toLowerCase().includes(q) ||\n        v.categories.some((c) => c.toLowerCase().includes(q))\n    );\n  });\n\n  // ─── Table columns ──────────────────────────────────────────────────────────────\n  const vendorColumns: ColumnDef<TanStackTableFeatures, VendorRow>[] = [\n    {\n      id: \"select\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-12\", td: \"w-12\" } },\n    },\n    {\n      id: \"vendor\",\n      accessorKey: \"name\",\n      header: \"Vendor\",\n    },\n    {\n      id: \"rating\",\n      accessorKey: \"rating\",\n      header: \"Rating\",\n      meta: { class: { th: \"min-w-[220px]\", td: \"min-w-[220px]\" } },\n    },\n    {\n      id: \"lastAssessed\",\n      accessorKey: \"lastAssessed\",\n      header: \"Last assessed\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden md:table-cell\", td: \"hidden md:table-cell\" } },\n    },\n    {\n      id: \"categories\",\n      accessorKey: \"categories\",\n      header: \"Categories\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden lg:table-cell\", td: \"hidden lg:table-cell\" } },\n    },\n    {\n      id: \"actions\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-20\", td: \"w-20\" } },\n    },\n  ];\n\n  // ─── Edit sheet (vee-validate) ──────────────────────────────────────────────────\n  const editOpen = ref(false);\n  const editTarget = ref<VendorRow | null>(null);\n\n  const EditSchema = object({\n    editName: string().required().label(\"Vendor name\").min(2).max(100),\n    editDomain: string().required().label(\"Domain\").min(3).max(80),\n    editStatus: string().required().label(\"Status\"),\n  });\n\n  const {\n    handleSubmit: handleEditSubmit,\n    isSubmitting: isSubmittingEdit,\n    setValues,\n  } = useForm<InferType<typeof EditSchema>>({ validationSchema: EditSchema });\n\n  const submitEdit = handleEditSubmit(() => {\n    editOpen.value = false;\n    useSonner(\"Vendor updated\", {\n      description: `'${editTarget.value?.name}' has been saved.`,\n    });\n  });\n\n  const openEdit = (vendor: VendorRow) => {\n    editTarget.value = vendor;\n    setValues({\n      editName: vendor.name,\n      editDomain: vendor.domain,\n      editStatus: vendor.status,\n    });\n    editOpen.value = true;\n  };\n\n  // ─── Delete dialog ───────────────────────────────────────────────────────────────\n  const deleteOpen = ref(false);\n  const deleteTarget = ref<VendorRow | null>(null);\n\n  const confirmDelete = () => {\n    if (!deleteTarget.value) return;\n    useSonner(`'${deleteTarget.value.name}' removed`, {\n      description: \"The vendor has been permanently removed.\",\n    });\n    deleteTarget.value = null;\n  };\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards8.vue","components":["alert-dialog","apexcharts","avatar","badge","button","card","checkbox","command","container","dropdown-menu","kbd","pagination","popover","sheet","tanstacktable","tooltip","vee-input","vee-select"]},{"name":"Dashboards 9","fileName":"BlockDashboards9.vue","file":"<template>\n  <div class=\"bg-background text-foreground min-h-screen\">\n    <!-- Delete confirmation dialog -->\n    <UiAlertDialog v-model:open=\"deleteOpen\">\n      <UiAlertDialogContent>\n        <UiAlertDialogHeader>\n          <UiAlertDialogTitle title=\"Remove vendor?\" />\n          <UiAlertDialogDescription\n            :description=\"`Are you sure you want to remove '${deleteTarget?.name}'? This action cannot be undone.`\"\n          />\n        </UiAlertDialogHeader>\n        <UiAlertDialogFooter>\n          <UiAlertDialogCancel />\n          <UiAlertDialogAction @click=\"confirmDelete\" />\n        </UiAlertDialogFooter>\n      </UiAlertDialogContent>\n    </UiAlertDialog>\n\n    <!-- Add vendor sheet -->\n    <UiSheet v-model:open=\"addOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Add vendor\"\n        description=\"Fill in the details to add a new vendor.\"\n      >\n        <template #content>\n          <form class=\"space-y-5 px-6\" @submit=\"submitAdd\">\n            <fieldset :disabled=\"isSubmittingAdd\" class=\"space-y-5\">\n              <UiVeeInput required label=\"Vendor name\" name=\"addName\" placeholder=\"Acme Corp\" />\n              <UiVeeInput required label=\"Domain\" name=\"addDomain\" placeholder=\"acme.com\" />\n              <UiVeeSelect required label=\"Status\" name=\"addStatus\">\n                <option disabled>Select an option</option>\n                <option value=\"Active\">Active</option>\n                <option value=\"Inactive\">Inactive</option>\n              </UiVeeSelect>\n            </fieldset>\n          </form>\n        </template>\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" :disabled=\"isSubmittingAdd\" @click=\"submitAdd\">\n              Add vendor\n            </UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Edit vendor sheet -->\n    <UiSheet v-model:open=\"editOpen\">\n      <UiSheetContent\n        side=\"right\"\n        variant=\"floating\"\n        translucent\n        title=\"Edit vendor\"\n        description=\"Update the vendor's details below.\"\n      >\n        <template #content>\n          <form class=\"space-y-5 px-6\" @submit=\"submitEdit\">\n            <fieldset :disabled=\"isSubmittingEdit\" class=\"space-y-5\">\n              <UiVeeInput required label=\"Vendor name\" name=\"editName\" placeholder=\"Acme Corp\" />\n              <UiVeeInput required label=\"Domain\" name=\"editDomain\" placeholder=\"acme.com\" />\n              <UiVeeSelect required label=\"Status\" name=\"editStatus\">\n                <option disabled>Select an option</option>\n                <option value=\"Active\">Active</option>\n                <option value=\"Inactive\">Inactive</option>\n              </UiVeeSelect>\n            </fieldset>\n          </form>\n        </template>\n        <template #footer>\n          <UiSheetFooter class=\"px-6 pb-6\">\n            <UiSheetClose as-child>\n              <UiButton variant=\"outline\" class=\"w-full\">Cancel</UiButton>\n            </UiSheetClose>\n            <UiButton class=\"w-full\" @click=\"submitEdit\">Save changes</UiButton>\n          </UiSheetFooter>\n        </template>\n      </UiSheetContent>\n    </UiSheet>\n\n    <!-- Command search dialog -->\n    <UiCommandDialog\n      v-model:open=\"searchOpen\"\n      title=\"Search vendors\"\n      description=\"Search by vendor name, domain, or category\"\n    >\n      <UiCommandInput placeholder=\"Search vendors...\" />\n      <UiCommandList>\n        <UiCommandEmpty>No results found.</UiCommandEmpty>\n        <UiCommandGroup heading=\"Quick actions\">\n          <UiCommandItem value=\"Add vendor\">\n            <Icon name=\"heroicons:plus\" />\n            <span>Add vendor</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Import vendors\">\n            <Icon name=\"heroicons:arrow-up-tray\" />\n            <span>Import vendors</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Export data\">\n            <Icon name=\"heroicons:arrow-down-tray\" />\n            <span>Export data</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n        <UiCommandSeparator />\n        <UiCommandGroup heading=\"Filter by status\">\n          <UiCommandItem value=\"Active vendors\">\n            <Icon name=\"heroicons:check-circle\" />\n            <span>Active vendors</span>\n          </UiCommandItem>\n          <UiCommandItem value=\"Inactive vendors\">\n            <Icon name=\"heroicons:x-circle\" />\n            <span>Inactive vendors</span>\n          </UiCommandItem>\n        </UiCommandGroup>\n      </UiCommandList>\n      <div\n        class=\"border-border/70 bg-muted/20 text-muted-foreground flex items-center gap-5 border-t px-4 py-2.5 text-xs\"\n      >\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↵</UiKbd> to select</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>↑↓</UiKbd> to navigate</span>\n        <span class=\"flex items-center gap-1.5\"><UiKbd>ESC</UiKbd> to close</span>\n      </div>\n    </UiCommandDialog>\n\n    <!-- Sticky header -->\n    <Motion\n      as=\"header\"\n      :initial=\"{ opacity: 0, y: -16 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n      class=\"border-border/70 bg-background/85 sticky top-0 z-10 border-b backdrop-blur-md\"\n    >\n      <UiContainer class=\"flex min-h-[4rem] items-center justify-between gap-4\">\n        <!-- Logo + nav -->\n        <div class=\"flex items-center gap-5\">\n          <div class=\"flex items-center gap-2.5\">\n            <div\n              class=\"border-border/70 bg-muted flex size-8 items-center justify-center rounded-lg border shadow-xs\"\n            >\n              <div\n                class=\"size-4 rounded-full bg-[radial-gradient(circle_at_35%_35%,rgba(255,255,255,0.95),rgba(255,255,255,0.2)_32%,transparent_34%),linear-gradient(135deg,var(--color-primary),color-mix(in_oklab,var(--color-primary)_40%,white))]\"\n              />\n            </div>\n            <span class=\"font-semibold tracking-tight\">UI Thing</span>\n          </div>\n\n          <!-- Mobile nav popover -->\n          <UiPopover class=\"lg:hidden\">\n            <UiPopoverTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"lg:hidden\">\n                <Icon name=\"heroicons:bars-3\" class=\"size-5\" />\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"start\" class=\"w-48 p-1\">\n              <UiButton\n                v-for=\"item in navItems\"\n                :key=\"item.label\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"w-full justify-start\"\n                :class=\"\n                  item.active\n                    ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                    : 'text-muted-foreground'\n                \"\n              >\n                {{ item.label }}\n              </UiButton>\n            </UiPopoverContent>\n          </UiPopover>\n\n          <!-- Desktop nav -->\n          <nav class=\"hidden items-center gap-1 lg:flex\">\n            <UiButton\n              v-for=\"item in navItems\"\n              :key=\"item.label\"\n              variant=\"ghost\"\n              size=\"sm\"\n              :class=\"\n                item.active\n                  ? 'bg-muted text-foreground hover:bg-muted shadow-xs'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ item.label }}\n            </UiButton>\n          </nav>\n        </div>\n\n        <!-- Right actions -->\n        <div class=\"flex items-center gap-1\">\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"rounded-full\"\n                @click=\"searchOpen = true\"\n              >\n                <Icon name=\"heroicons:magnifying-glass\" class=\"text-muted-foreground size-5\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Search</p></UiTooltipContent>\n          </UiTooltip>\n\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                    <Icon name=\"heroicons:cog-6-tooth\" class=\"text-muted-foreground size-5\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Settings</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>Settings</UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Account settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:swatch\" title=\"Appearance\" />\n                <UiDropdownMenuItem icon=\"heroicons:bell\" title=\"Notifications\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full\">\n                    <Icon name=\"heroicons:bell\" class=\"text-muted-foreground size-5\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Notifications</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-96\">\n                <UiDropdownMenuLabel class=\"flex items-center justify-between\">\n                  <span>Notifications</span>\n                  <UiBadge variant=\"secondary\" size=\"sm\">2 new</UiBadge>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  icon=\"heroicons:shield-check\"\n                  title=\"Warpspeed passed security review\"\n                >\n                  <template #shortcut>2h ago</template>\n                </UiDropdownMenuItem>\n                <UiDropdownMenuItem\n                  icon=\"heroicons:arrow-trending-down\"\n                  title=\"CloudWatch rating dropped below 40\"\n                >\n                  <template #shortcut>5h ago</template>\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n\n          <UiTooltip>\n            <UiDropdownMenu>\n              <UiTooltipTrigger as-child>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" class=\"rounded-full p-0\">\n                    <UiAvatar\n                      src=\"https://i.pravatar.cc/150?img=47\"\n                      alt=\"Sasha Smith\"\n                      fallback=\"OR\"\n                      class=\"size-8 cursor-pointer\"\n                    />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n              </UiTooltipTrigger>\n              <UiTooltipContent><p>Account</p></UiTooltipContent>\n              <UiDropdownMenuContent align=\"end\" class=\"w-52\">\n                <UiDropdownMenuLabel>\n                  <div class=\"flex flex-col\">\n                    <p class=\"text-sm font-medium\">Sasha Smith</p>\n                    <p class=\"text-muted-foreground text-xs\">sasha@ui-thing.com</p>\n                  </div>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"heroicons:cog-6-tooth\" title=\"Settings\" />\n                <UiDropdownMenuItem icon=\"heroicons:credit-card\" title=\"Billing\" />\n                <UiDropdownMenuItem icon=\"heroicons:users\" title=\"Team\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"heroicons:question-mark-circle\" title=\"Help & support\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem\n                  variant=\"destructive\"\n                  icon=\"heroicons:arrow-right-on-rectangle\"\n                  title=\"Sign out\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiTooltip>\n        </div>\n      </UiContainer>\n    </Motion>\n\n    <!-- Page content -->\n    <UiContainer class=\"space-y-6 py-8\">\n      <!-- Page header -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n        class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <h1 class=\"text-2xl font-bold tracking-tight\">Welcome back, Sasha</h1>\n        <div class=\"flex items-center gap-2\">\n          <UiTooltip>\n            <UiTooltipTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"hidden sm:flex\"\n                @click=\"searchOpen = true\"\n              >\n                <Icon name=\"heroicons:magnifying-glass\" class=\"text-muted-foreground size-4\" />\n              </UiButton>\n            </UiTooltipTrigger>\n            <UiTooltipContent><p>Search vendors</p></UiTooltipContent>\n          </UiTooltip>\n          <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\">\n            <Icon name=\"heroicons:squares-2x2\" class=\"size-4\" />\n            Customize\n          </UiButton>\n          <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\">\n            <Icon name=\"heroicons:arrow-up-tray\" class=\"size-4\" />\n            Export\n          </UiButton>\n        </div>\n      </Motion>\n\n      <!-- Two-column charts row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.18, ease: 'easeOut' }\"\n        class=\"grid gap-4 lg:grid-cols-[3fr_2fr]\"\n      >\n        <!-- Vendor breakdown — line chart -->\n        <div class=\"border-border/70 bg-card overflow-hidden rounded-xl border shadow-xs\">\n          <!-- Card header -->\n          <div class=\"border-border/60 flex items-start justify-between border-b px-5 py-4\">\n            <div class=\"flex items-center gap-3\">\n              <div\n                class=\"bg-foreground flex size-10 shrink-0 items-center justify-center rounded-full\"\n              >\n                <Icon name=\"heroicons:arrow-path\" class=\"text-background size-5\" />\n              </div>\n              <div>\n                <p class=\"text-sm font-semibold\">Vendor breakdown</p>\n                <p class=\"text-muted-foreground text-xs\">\n                  Keep track of vendors and their security ratings.\n                </p>\n              </div>\n            </div>\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground -mr-1 shrink-0\"\n                    >\n                      <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Options</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Refresh\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-down-tray\" title=\"Export\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n          </div>\n\n          <!-- Line chart -->\n          <UiApexchart type=\"line\" height=\"300\" :series=\"lineSeries\" :options=\"lineOptions\" />\n\n          <!-- Footer -->\n          <div class=\"border-border/60 border-t px-5 py-3\">\n            <UiButton variant=\"outline\" size=\"sm\" class=\"w-full\">View full report</UiButton>\n          </div>\n        </div>\n\n        <!-- Vendors monitored — donut card -->\n        <div\n          class=\"border-border/70 bg-card flex flex-col overflow-hidden rounded-xl border shadow-xs\"\n        >\n          <!-- Card header -->\n          <div class=\"border-border/60 flex items-start justify-between border-b px-5 py-4\">\n            <div>\n              <p class=\"text-sm font-semibold\">Vendors monitored</p>\n              <p class=\"text-muted-foreground text-xs\">You're using 80% of available spots.</p>\n            </div>\n            <UiTooltip>\n              <UiDropdownMenu>\n                <UiTooltipTrigger as-child>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground -mr-1 shrink-0\"\n                    >\n                      <Icon name=\"heroicons:ellipsis-vertical\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                </UiTooltipTrigger>\n                <UiTooltipContent><p>Options</p></UiTooltipContent>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-path\" title=\"Refresh\" />\n                  <UiDropdownMenuItem icon=\"heroicons:arrow-up-tray\" title=\"Upgrade plan\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTooltip>\n          </div>\n\n          <!-- Donut chart area -->\n          <div class=\"relative flex-1 px-5 pt-2\">\n            <!-- +10% trend badge -->\n            <div class=\"flex justify-end\">\n              <span\n                class=\"flex items-center gap-0.5 rounded-full bg-emerald-50 px-2 py-0.5 text-xs font-medium text-emerald-700 dark:bg-emerald-950/60 dark:text-emerald-400\"\n              >\n                <Icon name=\"heroicons:arrow-up\" class=\"size-3\" />\n                10%\n              </span>\n            </div>\n            <UiApexchart type=\"donut\" height=\"200\" :series=\"donutSeries\" :options=\"donutOptions\" />\n          </div>\n\n          <!-- Warning message -->\n          <div class=\"border-border/60 space-y-3 border-t px-5 py-4\">\n            <div>\n              <p class=\"text-sm font-semibold\">You've almost reached your limit</p>\n              <p class=\"text-muted-foreground mt-0.5 text-xs\">\n                You have used 80% of your available spots. Upgrade plan to monitor more vendors.\n              </p>\n            </div>\n            <UiButton variant=\"outline\" size=\"sm\" class=\"w-full gap-2\">\n              <Icon name=\"heroicons:bolt\" class=\"size-4\" />\n              Upgrade plan\n            </UiButton>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Vendor movements card -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.26, ease: 'easeOut' }\"\n      >\n        <UiCard class=\"border-border/70 gap-0 overflow-hidden py-0 shadow-xs\">\n          <!-- Section header -->\n          <div\n            class=\"border-border/60 flex flex-col gap-3 border-b px-5 py-4 sm:flex-row sm:items-start sm:justify-between\"\n          >\n            <div>\n              <div class=\"flex flex-wrap items-center gap-2\">\n                <h2 class=\"text-base font-bold tracking-tight\">Vendor movements</h2>\n                <UiBadge variant=\"secondary\" class=\"rounded-full text-xs font-medium\">\n                  240 vendors\n                </UiBadge>\n              </div>\n              <p class=\"text-muted-foreground mt-0.5 text-sm\">\n                Keep track of vendor and their security ratings.\n              </p>\n            </div>\n            <div class=\"flex shrink-0 items-center gap-2\">\n              <UiButton variant=\"outline\" size=\"sm\" class=\"gap-2\">\n                <Icon name=\"heroicons:arrow-up-tray\" class=\"size-4\" />\n                Import\n              </UiButton>\n              <UiButton size=\"sm\" class=\"gap-2\" @click=\"addOpen = true\">\n                <Icon name=\"heroicons:plus\" class=\"size-4\" />\n                Add vendor\n              </UiButton>\n            </div>\n          </div>\n\n          <!-- Filter tabs + search row -->\n          <div\n            class=\"border-border/60 flex flex-col gap-3 border-b px-5 py-3 sm:flex-row sm:items-center sm:justify-between\"\n          >\n            <!-- Tab buttons -->\n            <UiButtonGroup>\n              <UiButton\n                v-for=\"tab in filterTabs\"\n                :key=\"tab.value\"\n                variant=\"outline\"\n                size=\"sm\"\n                :class=\"activeFilter === tab.value ? 'text-primary hover:text-primary' : ''\"\n                @click=\"activeFilter = tab.value\"\n              >\n                {{ tab.label }}\n              </UiButton>\n            </UiButtonGroup>\n\n            <!-- Search + filters -->\n            <div class=\"flex items-center gap-2\">\n              <div class=\"relative w-full sm:w-52\">\n                <Icon\n                  name=\"heroicons:magnifying-glass\"\n                  class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n                />\n                <UiInput v-model=\"tableSearch\" placeholder=\"Search\" class=\"pr-12 pl-9\" />\n                <div class=\"absolute top-1/2 right-2.5 -translate-y-1/2\">\n                  <UiKbd class=\"text-[10px]\">⌘K</UiKbd>\n                </div>\n              </div>\n              <UiButton variant=\"outline\" size=\"sm\" class=\"shrink-0 gap-2\">\n                <Icon name=\"heroicons:adjustments-horizontal\" class=\"size-4\" />\n                <span class=\"hidden sm:inline\">Filters</span>\n              </UiButton>\n            </div>\n          </div>\n\n          <!-- Table -->\n          <UiTanStackTable\n            :data=\"filteredVendors\"\n            :columns=\"vendorColumns\"\n            :show-rows-per-page=\"false\"\n            :show-page-info=\"false\"\n            :show-pagination=\"false\"\n            :show-selected-count=\"false\"\n            :show-footer=\"true\"\n            :loading=\"vendorsPending\"\n            :table-options=\"{ enableRowSelection: true }\"\n          >\n            <!-- Select all -->\n            <template #select-header=\"{ table }\">\n              <UiCheckbox\n                aria-label=\"Select all\"\n                :model-value=\"\n                  table.getIsAllPageRowsSelected() ||\n                  (table.getIsSomePageRowsSelected() && 'indeterminate')\n                \"\n                @update:model-value=\"table.toggleAllPageRowsSelected(!!$event)\"\n              />\n            </template>\n\n            <template #select-cell=\"{ row }\">\n              <UiCheckbox\n                :aria-label=\"`Select ${row.original.name}`\"\n                :model-value=\"row.getIsSelected()\"\n                @update:model-value=\"row.toggleSelected(!!$event)\"\n              />\n            </template>\n\n            <!-- Vendor cell: avatar + name + domain -->\n            <template #vendor-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <div\n                  class=\"flex size-10 shrink-0 items-center justify-center rounded-full\"\n                  :style=\"{ backgroundColor: row.original.logoColor }\"\n                >\n                  <Icon :name=\"row.original.logoIcon\" class=\"size-5 text-white\" />\n                </div>\n                <div class=\"flex min-w-0 flex-col\">\n                  <span class=\"truncate text-sm font-semibold\">{{ row.original.name }}</span>\n                  <span class=\"text-muted-foreground truncate text-xs\">{{\n                    row.original.domain\n                  }}</span>\n                </div>\n              </div>\n            </template>\n\n            <!-- Rating cell: progress bar + number + trend badge -->\n            <template #rating-cell=\"{ row }\">\n              <div class=\"flex items-center gap-3\">\n                <div class=\"bg-muted h-1.5 w-32 overflow-hidden rounded-full\">\n                  <div\n                    class=\"h-full rounded-full transition-all\"\n                    :style=\"{\n                      width: `${row.original.rating}%`,\n                      backgroundColor: 'var(--color-primary)',\n                    }\"\n                  />\n                </div>\n                <span class=\"w-6 shrink-0 text-sm font-medium tabular-nums\">{{\n                  row.original.rating\n                }}</span>\n                <span\n                  class=\"flex shrink-0 items-center gap-0.5 rounded-full px-1.5 py-0.5 text-xs font-medium\"\n                  :class=\"\n                    row.original.trendPositive\n                      ? 'bg-emerald-50 text-emerald-700 dark:bg-emerald-950/60 dark:text-emerald-400'\n                      : 'bg-red-50 text-red-700 dark:bg-red-950/60 dark:text-red-400'\n                  \"\n                >\n                  <Icon\n                    :name=\"\n                      row.original.trendPositive ? 'heroicons:arrow-up' : 'heroicons:arrow-down'\n                    \"\n                    class=\"size-2.5\"\n                  />\n                  {{ Math.abs(row.original.trendPct) }}%\n                </span>\n              </div>\n            </template>\n\n            <!-- Last assessed cell -->\n            <template #lastAssessed-cell=\"{ row }\">\n              <span class=\"text-muted-foreground text-sm\">{{ row.original.lastAssessed }}</span>\n            </template>\n\n            <!-- Categories cell: status + tags + overflow -->\n            <template #categories-cell=\"{ row }\">\n              <div class=\"flex flex-wrap items-center gap-1.5\">\n                <span\n                  class=\"flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium\"\n                  :class=\"\n                    row.original.status === 'Active'\n                      ? 'border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-800 dark:bg-emerald-950/50 dark:text-emerald-400'\n                      : 'border-border/70 bg-muted/50 text-muted-foreground'\n                  \"\n                >\n                  <span\n                    class=\"size-1.5 rounded-full\"\n                    :class=\"\n                      row.original.status === 'Active' ? 'bg-emerald-500' : 'bg-muted-foreground'\n                    \"\n                  />\n                  {{ row.original.status }}\n                </span>\n                <span\n                  v-for=\"cat in row.original.categories.slice(0, 2)\"\n                  :key=\"cat\"\n                  class=\"border-border/60 bg-card text-foreground rounded-full border px-2 py-0.5 text-xs font-medium\"\n                >\n                  {{ cat }}\n                </span>\n                <span\n                  v-if=\"row.original.categories.length > 2\"\n                  class=\"border-border/60 bg-card text-muted-foreground rounded-full border px-2 py-0.5 text-xs font-medium\"\n                >\n                  +{{ row.original.categories.length - 2 }}\n                </span>\n              </div>\n            </template>\n\n            <!-- Actions cell -->\n            <template #actions-cell=\"{ row }\">\n              <div class=\"flex items-center gap-1\">\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground hover:text-destructive\"\n                      aria-label=\"Delete vendor\"\n                      @click=\"\n                        () => {\n                          deleteTarget = row.original;\n                          deleteOpen = true;\n                        }\n                      \"\n                    >\n                      <Icon name=\"heroicons:trash\" class=\"size-4\" />\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Delete vendor</p></UiTooltipContent>\n                </UiTooltip>\n                <UiTooltip>\n                  <UiTooltipTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      class=\"text-muted-foreground\"\n                      aria-label=\"Edit vendor\"\n                      @click=\"openEdit(row.original)\"\n                    >\n                      <Icon name=\"heroicons:pencil\" class=\"size-4\" />\n                    </UiButton>\n                  </UiTooltipTrigger>\n                  <UiTooltipContent><p>Edit vendor</p></UiTooltipContent>\n                </UiTooltip>\n              </div>\n            </template>\n\n            <!-- Footer with pagination -->\n            <template #footer=\"{ table }\">\n              <div\n                class=\"border-border/60 flex w-full items-center justify-between border-t px-5 py-4\"\n              >\n                <p class=\"text-muted-foreground text-sm\">\n                  Page {{ table.atoms.pagination.get().pageIndex + 1 }} of\n                  {{ table.getPageCount() }}\n                </p>\n\n                <!-- Desktop pagination -->\n                <UiPagination\n                  class=\"mx-0! hidden! justify-end! sm:flex!\"\n                  :total=\"filteredVendors.length\"\n                  :items-per-page=\"10\"\n                  :sibling-count=\"1\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList class=\"gap-1\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        <Icon name=\"heroicons:chevron-left\" class=\"size-4\" />\n                        Previous\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"sm\">\n                        Next\n                        <Icon name=\"heroicons:chevron-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n\n                <!-- Mobile pagination -->\n                <UiPagination\n                  class=\"mx-0! sm:hidden!\"\n                  :total=\"filteredVendors.length\"\n                  :items-per-page=\"10\"\n                  :page=\"table.atoms.pagination.get().pageIndex + 1\"\n                  @update:page=\"(p) => table.setPageIndex(p - 1)\"\n                >\n                  <UiPaginationList class=\"gap-1\">\n                    <UiPaginationPrev as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-left\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationPrev>\n                    <UiPaginationNext as-child>\n                      <UiButton variant=\"outline\" size=\"icon-sm\">\n                        <Icon name=\"heroicons:arrow-right\" class=\"size-4\" />\n                      </UiButton>\n                    </UiPaginationNext>\n                  </UiPaginationList>\n                </UiPagination>\n              </div>\n            </template>\n          </UiTanStackTable>\n        </UiCard>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { faker } from \"@faker-js/faker\";\n  import type { ColumnDef } from \"@tanstack/vue-table\";\n  import type { ApexOptions } from \"apexcharts\";\n  import { Motion } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  import type { TanStackTableFeatures } from \"~/components/Ui/TanStackTable.vue\";\n\n  // ─── Navigation ────────────────────────────────────────────────────────────────\n  const navItems = [\n    { label: \"Home\", active: false },\n    { label: \"Dashboard\", active: true },\n    { label: \"Projects\", active: false },\n    { label: \"Tasks\", active: false },\n    { label: \"Reporting\", active: false },\n    { label: \"Users\", active: false },\n  ];\n\n  // ─── Search dialog ─────────────────────────────────────────────────────────────\n  const searchOpen = ref(false);\n  const handleKeydown = (e: KeyboardEvent) => {\n    if (e.key === \"Escape\") searchOpen.value = false;\n    if ((e.metaKey || e.ctrlKey) && e.key === \"k\") {\n      e.preventDefault();\n      searchOpen.value = true;\n    }\n  };\n  onMounted(() => document.addEventListener(\"keydown\", handleKeydown));\n  onUnmounted(() => document.removeEventListener(\"keydown\", handleKeydown));\n\n  // ─── Line chart (Vendor breakdown) ────────────────────────────────────────────\n  const months = [\n    \"Jan\",\n    \"Feb\",\n    \"Mar\",\n    \"Apr\",\n    \"May\",\n    \"Jun\",\n    \"Jul\",\n    \"Aug\",\n    \"Sep\",\n    \"Oct\",\n    \"Nov\",\n    \"Dec\",\n  ];\n\n  const lineSeries = [\n    { name: \"Your rating\", data: [42, 46, 50, 53, 58, 62, 66, 70, 76, 80, 85, 90] },\n    { name: \"Industry average\", data: [8, 10, 13, 14, 18, 20, 22, 26, 28, 32, 36, 40] },\n  ];\n\n  const lineOptions: ApexOptions = {\n    chart: {\n      type: \"line\",\n      background: \"transparent\",\n      parentHeightOffset: 0,\n      toolbar: { show: false },\n    },\n    colors: [\"var(--color-primary)\", \"#94a3b8\"],\n    stroke: { width: [2, 2], curve: \"smooth\" },\n    fill: { opacity: 1 },\n    dataLabels: { enabled: false },\n    markers: { size: 0, hover: { size: 5 } },\n    grid: {\n      strokeDashArray: 4,\n      xaxis: { lines: { show: false } },\n      yaxis: { lines: { show: true } },\n      padding: { left: 8, right: 8 },\n    },\n    xaxis: {\n      categories: months,\n      axisBorder: { show: false },\n      axisTicks: { show: false },\n      title: { text: \"Month\", offsetY: -4, style: { fontSize: \"11px\", fontWeight: 400 } },\n    },\n    yaxis: {\n      min: 0,\n      max: 100,\n      tickAmount: 5,\n      title: { text: \"Security rating\", style: { fontSize: \"11px\", fontWeight: 400 } },\n    },\n    legend: {\n      show: true,\n      position: \"top\",\n      horizontalAlign: \"right\",\n      markers: { size: 6, shape: \"circle\" },\n    },\n    tooltip: { y: { formatter: (v: number) => `${v} / 100` } },\n  };\n\n  // ─── Donut chart (Vendors monitored) ──────────────────────────────────────────\n  const donutSeries = [80, 20];\n\n  const donutOptions: ApexOptions = {\n    chart: {\n      type: \"donut\",\n      background: \"transparent\",\n      parentHeightOffset: 0,\n    },\n    colors: [\"var(--color-primary)\", \"#e2e8f0\"],\n    labels: [\"Used\", \"Available\"],\n    dataLabels: { enabled: false },\n    plotOptions: {\n      pie: {\n        donut: {\n          size: \"72%\",\n          labels: {\n            show: true,\n            name: { show: false },\n            value: {\n              show: true,\n              fontSize: \"36px\",\n              fontWeight: \"700\",\n              offsetY: 10,\n              color: undefined,\n              formatter: () => \"240\",\n            },\n            total: {\n              show: true,\n              label: \"\",\n              formatter: () => \"240\",\n            },\n          },\n        },\n      },\n    },\n    stroke: { width: 0 },\n    legend: { show: false },\n    tooltip: { enabled: false },\n    states: { hover: { filter: { type: \"none\" } }, active: { filter: { type: \"none\" } } },\n  };\n\n  // ─── Filter tabs ──────────────────────────────────────────────────────────────\n  const filterTabs = [\n    { label: \"View all\", value: \"all\" },\n    { label: \"Monitored\", value: \"monitored\" },\n    { label: \"Unmonitored\", value: \"unmonitored\" },\n  ];\n  const activeFilter = ref(\"all\");\n\n  // ─── Vendor table ──────────────────────────────────────────────────────────────\n  type VendorRow = {\n    id: number;\n    name: string;\n    domain: string;\n    logoColor: string;\n    logoIcon: string;\n    rating: number;\n    trendPct: number;\n    trendPositive: boolean;\n    lastAssessed: string;\n    status: \"Active\" | \"Inactive\";\n    monitored: boolean;\n    categories: string[];\n  };\n\n  const logoColors = [\n    \"#6366f1\",\n    \"#0ea5e9\",\n    \"#1a1a2e\",\n    \"#38bdf8\",\n    \"#6d28d9\",\n    \"#0f172a\",\n    \"#10b981\",\n    \"#f59e0b\",\n    \"#ef4444\",\n    \"#ec4899\",\n  ];\n\n  const logoIcons = [\n    \"heroicons:cpu-chip\",\n    \"heroicons:cube-transparent\",\n    \"heroicons:bolt\",\n    \"heroicons:cloud\",\n    \"heroicons:eye\",\n    \"heroicons:signal\",\n    \"heroicons:arrow-path\",\n    \"heroicons:globe-alt\",\n    \"heroicons:shield-check\",\n    \"heroicons:chart-bar\",\n  ];\n\n  const allCategories = [\n    \"Customer data\",\n    \"Business data\",\n    \"Database access\",\n    \"Salesforce\",\n    \"Financials\",\n    \"Admin\",\n    \"HR data\",\n    \"Legal\",\n  ];\n\n  const assessmentDates = [\n    \"22 Jan 2025\",\n    \"20 Jan 2025\",\n    \"24 Jan 2025\",\n    \"26 Jan 2025\",\n    \"18 Jan 2025\",\n    \"28 Jan 2025\",\n    \"16 Jan 2025\",\n    \"14 Jan 2025\",\n    \"30 Jan 2025\",\n    \"12 Jan 2025\",\n  ];\n\n  const vendorNames = [\n    \"Ephemeral\",\n    \"Stack3d Lab\",\n    \"Warpspeed\",\n    \"CloudWatch\",\n    \"ContrastAI\",\n    \"Convergence\",\n    \"Sisyphus\",\n    \"NovaSec\",\n    \"DataForge\",\n    \"Axiom\",\n    \"Meridian\",\n    \"Vaultix\",\n    \"TrustLayer\",\n    \"CipherBase\",\n    \"Sentinel\",\n    \"Gridlock\",\n    \"Helios\",\n    \"Prism\",\n    \"Velox\",\n    \"Ironclad\",\n  ];\n\n  const vendorDomains = [\n    \"ephemeral.io\",\n    \"stack3dlab.com\",\n    \"getwarpspeed.com\",\n    \"cloudwatch.app\",\n    \"contrastai.com\",\n    \"convergence.io\",\n    \"sisyphus.com\",\n    \"novasec.io\",\n    \"dataforge.co\",\n    \"axiom.xyz\",\n    \"meridian.ai\",\n    \"vaultix.com\",\n    \"trustlayer.io\",\n    \"cipherbase.dev\",\n    \"sentinel.app\",\n    \"gridlock.io\",\n    \"helios.ai\",\n    \"prism.co\",\n    \"velox.app\",\n    \"ironclad.io\",\n  ];\n\n  const createVendor = (i: number): VendorRow => {\n    faker.seed(i + 900);\n    const trendPct = faker.number.int({ min: -10, max: 10 });\n    const catCount = faker.number.int({ min: 2, max: 5 });\n    const shuffled = [...allCategories].sort(() => faker.number.float() - 0.5);\n    return {\n      id: i + 1,\n      name: vendorNames[i % vendorNames.length]!,\n      domain: vendorDomains[i % vendorDomains.length]!,\n      logoColor: logoColors[i % logoColors.length]!,\n      logoIcon: logoIcons[i % logoIcons.length]!,\n      rating: faker.number.int({ min: 28, max: 95 }),\n      trendPct,\n      trendPositive: trendPct >= 0,\n      lastAssessed: assessmentDates[i % assessmentDates.length]!,\n      status: i % 6 === 4 ? \"Inactive\" : \"Active\",\n      monitored: i % 4 !== 3,\n      categories: shuffled.slice(0, catCount),\n    };\n  };\n\n  const { data: vendorsData, pending: vendorsPending } = await useAsyncData<VendorRow[]>(\n    \"block-dashboards9-vendors\",\n    async () => Array.from({ length: 100 }, (_, i) => createVendor(i)),\n    { default: () => [] }\n  );\n\n  const vendors = computed(() => vendorsData.value ?? []);\n\n  const tableSearch = ref(\"\");\n\n  const filteredVendors = computed(() => {\n    let list = vendors.value;\n\n    if (activeFilter.value === \"monitored\") list = list.filter((v) => v.monitored);\n    else if (activeFilter.value === \"unmonitored\") list = list.filter((v) => !v.monitored);\n\n    const q = tableSearch.value.trim().toLowerCase();\n    if (!q) return list;\n    return list.filter(\n      (v) =>\n        v.name.toLowerCase().includes(q) ||\n        v.domain.toLowerCase().includes(q) ||\n        v.status.toLowerCase().includes(q) ||\n        v.categories.some((c) => c.toLowerCase().includes(q))\n    );\n  });\n\n  // ─── Table columns ─────────────────────────────────────────────────────────────\n  const vendorColumns: ColumnDef<TanStackTableFeatures, VendorRow>[] = [\n    {\n      id: \"select\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-12\", td: \"w-12\" } },\n    },\n    {\n      id: \"vendor\",\n      accessorKey: \"name\",\n      header: \"Vendor\",\n    },\n    {\n      id: \"rating\",\n      accessorKey: \"rating\",\n      header: \"Rating\",\n      meta: { class: { th: \"min-w-[220px]\", td: \"min-w-[220px]\" } },\n    },\n    {\n      id: \"lastAssessed\",\n      accessorKey: \"lastAssessed\",\n      header: \"Last assessed\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden md:table-cell\", td: \"hidden md:table-cell\" } },\n    },\n    {\n      id: \"categories\",\n      accessorKey: \"categories\",\n      header: \"Categories\",\n      enableSorting: false,\n      meta: { class: { th: \"hidden lg:table-cell\", td: \"hidden lg:table-cell\" } },\n    },\n    {\n      id: \"actions\",\n      header: \"\",\n      enableSorting: false,\n      enableHiding: false,\n      meta: { class: { th: \"w-20\", td: \"w-20\" } },\n    },\n  ];\n\n  // ─── Add vendor sheet ──────────────────────────────────────────────────────────\n  const addOpen = ref(false);\n\n  const AddSchema = object({\n    addName: string().required().label(\"Vendor name\").min(2).max(100),\n    addDomain: string().required().label(\"Domain\").min(3).max(80),\n    addStatus: string().required().label(\"Status\"),\n  });\n\n  const {\n    handleSubmit: handleAddSubmit,\n    isSubmitting: isSubmittingAdd,\n    resetForm: resetAddForm,\n    controlledValues: addControlledValues,\n  } = useForm({ name: \"addVendorForm9\", validationSchema: toTypedSchema(AddSchema) });\n\n  const submitAdd = handleAddSubmit(() => {\n    addOpen.value = false;\n    useSonner(\"Vendor added\", {\n      description: `'${addControlledValues.value.addName}' has been added.`,\n    });\n    resetAddForm();\n  });\n\n  // ─── Edit vendor sheet ─────────────────────────────────────────────────────────\n  const editOpen = ref(false);\n  const editTarget = ref<VendorRow | null>(null);\n\n  const EditSchema = object({\n    editName: string().required().label(\"Vendor name\").min(2).max(100),\n    editDomain: string().required().label(\"Domain\").min(3).max(80),\n    editStatus: string().required().label(\"Status\"),\n  });\n\n  const {\n    handleSubmit: handleEditSubmit,\n    isSubmitting: isSubmittingEdit,\n    setValues,\n  } = useForm<InferType<typeof EditSchema>>({ validationSchema: EditSchema });\n\n  const submitEdit = handleEditSubmit(() => {\n    editOpen.value = false;\n    useSonner(\"Vendor updated\", {\n      description: `'${editTarget.value?.name}' has been saved.`,\n    });\n  });\n\n  const openEdit = (vendor: VendorRow) => {\n    editTarget.value = vendor;\n    setValues({ editName: vendor.name, editDomain: vendor.domain, editStatus: vendor.status });\n    editOpen.value = true;\n  };\n\n  // ─── Delete dialog ─────────────────────────────────────────────────────────────\n  const deleteOpen = ref(false);\n  const deleteTarget = ref<VendorRow | null>(null);\n\n  const confirmDelete = () => {\n    if (!deleteTarget.value) return;\n    useSonner(`'${deleteTarget.value.name}' removed`, {\n      description: \"The vendor has been permanently removed.\",\n    });\n    deleteTarget.value = null;\n  };\n</script>\n","category":"Dashboards","description":null,"path":"Dashboards/BlockDashboards9.vue","components":["alert-dialog","apexcharts","avatar","badge","button","button-group","card","checkbox","command","container","dropdown-menu","input","kbd","pagination","popover","sheet","tanstacktable","tooltip","vee-input","vee-select"]},{"name":"App Empty State 1","fileName":"BlockAppEmptyState1.vue","file":"<template>\n  <!--\n    No search results with a faded ghost list\n    Features: Skeleton rows that fade out behind a search badge, suggested searches as chips, clear search and create actions\n  -->\n  <div class=\"flex items-center justify-center px-4 py-12 sm:px-6\">\n    <div class=\"flex w-full max-w-md flex-col items-center text-center\">\n      <div class=\"relative w-full max-w-xs\">\n        <div\n          class=\"space-y-2.5 mask-[linear-gradient(to_bottom,black_20%,transparent)] opacity-70\"\n          aria-hidden=\"true\"\n        >\n          <div\n            v-for=\"row in 4\"\n            :key=\"row\"\n            class=\"bg-card flex items-center gap-3 rounded-lg border p-3 shadow-xs\"\n          >\n            <div class=\"bg-muted size-9 shrink-0 rounded-full\" />\n            <div class=\"flex-1 space-y-2\">\n              <div class=\"bg-muted h-2.5 rounded-full\" :style=\"{ width: `${85 - row * 12}%` }\" />\n              <div class=\"bg-muted/70 h-2 w-1/2 rounded-full\" />\n            </div>\n          </div>\n        </div>\n        <div class=\"absolute inset-x-0 bottom-0 flex translate-y-1/2 justify-center\">\n          <div\n            class=\"bg-background flex size-16 items-center justify-center rounded-full border shadow-md\"\n          >\n            <Icon :name=\"props.icon\" class=\"text-muted-foreground size-7\" />\n          </div>\n        </div>\n      </div>\n\n      <div class=\"mt-14 flex flex-col gap-2\">\n        <slot name=\"title\">\n          <h2 class=\"text-xl font-bold tracking-tight\">{{ props.title }}</h2>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground text-sm text-balance\">{{ props.description }}</p>\n        </slot>\n      </div>\n\n      <div v-if=\"props.suggestions.length\" class=\"mt-5 flex flex-wrap justify-center gap-2\">\n        <span class=\"text-muted-foreground self-center text-xs\">Try</span>\n        <button\n          v-for=\"term in props.suggestions\"\n          :key=\"term\"\n          type=\"button\"\n          class=\"bg-muted hover:bg-accent rounded-full px-3 py-1 text-xs font-medium transition-colors\"\n        >\n          {{ term }}\n        </button>\n      </div>\n\n      <slot>\n        <div class=\"mt-7 flex flex-wrap items-center justify-center gap-3\">\n          <UiButton variant=\"outline\">\n            <Icon name=\"lucide:rotate-ccw\" class=\"size-4\" />\n            Clear search\n          </UiButton>\n          <UiButton>\n            <Icon name=\"lucide:plus\" class=\"size-4\" />\n            Create record\n          </UiButton>\n        </div>\n      </slot>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      icon?: string;\n      suggestions?: string[];\n    }>(),\n    {\n      title: \"No results found\",\n      description:\n        \"We couldn't find anything matching your search. Check the spelling or try a broader term.\",\n      icon: \"lucide:search-x\",\n      suggestions: () => [\"invoices\", \"customers\", \"reports\"],\n    }\n  );\n</script>\n","category":"EmptyState","description":"No search results with a faded ghost list. Features: Skeleton rows that fade out behind a search badge, suggested searches as chips, clear search and create actions","path":"App/EmptyState/BlockAppEmptyState1.vue","components":["button"]},{"name":"App Empty State 10","fileName":"BlockAppEmptyState10.vue","file":"<template>\n  <!--\n    Invite your team empty state with an inline invite form\n    Features: Overlapping dashed avatar placeholders, email field with validation and invite button, copyable invite link, list of pending invites\n  -->\n  <div class=\"flex items-center justify-center px-4 py-12 sm:px-6\">\n    <div class=\"flex w-full max-w-md flex-col items-center text-center\">\n      <div class=\"flex -space-x-3\" aria-hidden=\"true\">\n        <span\n          v-for=\"(avatar, i) in avatars\"\n          :key=\"i\"\n          class=\"bg-background flex size-14 items-center justify-center rounded-full border-2\"\n          :class=\"avatar.invited ? 'border-primary' : 'border-dashed'\"\n          :style=\"{ zIndex: avatars.length - i }\"\n        >\n          <img\n            v-if=\"avatar.src\"\n            :src=\"avatar.src\"\n            alt=\"\"\n            class=\"size-full rounded-full object-cover\"\n          />\n          <Icon v-else name=\"lucide:user-plus\" class=\"text-muted-foreground size-5\" />\n        </span>\n      </div>\n\n      <div class=\"mt-6 flex flex-col gap-2\">\n        <slot name=\"title\">\n          <h2 class=\"text-xl font-bold tracking-tight\">{{ props.title }}</h2>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground text-sm text-balance\">{{ props.description }}</p>\n        </slot>\n      </div>\n\n      <form class=\"mt-6 w-full\" novalidate @submit.prevent=\"invite\">\n        <div class=\"flex gap-2\">\n          <UiInput\n            v-model=\"email\"\n            type=\"email\"\n            placeholder=\"teammate@company.com\"\n            aria-label=\"Teammate email\"\n            :aria-invalid=\"!!error\"\n          />\n          <UiButton type=\"submit\">Invite</UiButton>\n        </div>\n        <p v-if=\"error\" class=\"text-destructive mt-2 text-left text-sm\">{{ error }}</p>\n      </form>\n\n      <ul v-if=\"pending.length\" class=\"mt-4 w-full space-y-2\">\n        <li\n          v-for=\"address in pending\"\n          :key=\"address\"\n          class=\"bg-card flex items-center gap-3 rounded-lg border p-2.5 text-left text-sm\"\n        >\n          <span class=\"bg-muted flex size-8 items-center justify-center rounded-full\">\n            <Icon name=\"lucide:mail\" class=\"size-4\" />\n          </span>\n          <span class=\"min-w-0 flex-1 truncate\">{{ address }}</span>\n          <UiBadge variant=\"secondary\">Pending</UiBadge>\n        </li>\n      </ul>\n\n      <div class=\"my-6 flex w-full items-center gap-3\">\n        <div class=\"bg-border h-px flex-1\" />\n        <span class=\"text-muted-foreground text-xs\">or share a link</span>\n        <div class=\"bg-border h-px flex-1\" />\n      </div>\n\n      <slot>\n        <UiButton variant=\"outline\" class=\"w-full\" @click=\"copy\">\n          <Icon :name=\"copied ? 'lucide:check' : 'lucide:link'\" class=\"size-4\" />\n          {{ copied ? \"Link copied\" : \"Copy invite link\" }}\n        </UiButton>\n      </slot>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      inviteLink?: string;\n    }>(),\n    {\n      title: \"It's quiet in here\",\n      description:\n        \"You're the only one in this workspace. Invite teammates to start collaborating.\",\n      inviteLink: \"https://uithing.com/join/8f3k2a\",\n    }\n  );\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const pending = ref<string[]>([]);\n  const copied = ref(false);\n\n  const avatars = computed(() => [\n    { src: \"https://i.pravatar.cc/120?img=47\", invited: true },\n    ...pending.value.slice(0, 2).map(() => ({ src: \"\", invited: true })),\n    ...Array.from({ length: Math.max(0, 3 - pending.value.length) }, () => ({\n      src: \"\",\n      invited: false,\n    })),\n  ]);\n\n  const EMAIL = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n  function invite() {\n    const value = email.value.trim();\n    if (!EMAIL.test(value)) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    if (pending.value.includes(value)) {\n      error.value = \"That address has already been invited.\";\n      return;\n    }\n    error.value = \"\";\n    pending.value.push(value);\n    email.value = \"\";\n    useSonner.success(\"Invite sent\", { description: value });\n  }\n\n  async function copy() {\n    try {\n      await navigator.clipboard.writeText(props.inviteLink);\n    } catch {\n      // Clipboard access can be blocked inside an iframe; the UI still confirms.\n    }\n    copied.value = true;\n    setTimeout(() => (copied.value = false), 1500);\n  }\n</script>\n","category":"EmptyState","description":"Invite your team empty state with an inline invite form. Features: Overlapping dashed avatar placeholders, email field with validation and invite button, copyable invite link, list of pending invites","path":"App/EmptyState/BlockAppEmptyState10.vue","components":["badge","button","input"]},{"name":"App Empty State 2","fileName":"BlockAppEmptyState2.vue","file":"<template>\n  <!--\n    No payment methods with a fanned card illustration\n    Features: Three stacked cards built from theme tokens so it works in dark mode, add button badge, primary and secondary actions\n  -->\n  <div class=\"flex items-center justify-center px-4 py-12 sm:px-6\">\n    <div class=\"flex w-full max-w-md flex-col items-center gap-8 text-center\">\n      <slot name=\"image\">\n        <Motion\n          class=\"relative h-40 w-56\"\n          :initial=\"{ opacity: 0, y: 12 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ type: 'spring', stiffness: 120, damping: 18 }\"\n          aria-hidden=\"true\"\n        >\n          <div class=\"bg-muted/60 absolute inset-x-2 top-3 h-32 -rotate-12 rounded-2xl border\" />\n          <div class=\"bg-muted absolute inset-x-2 top-3 h-32 rotate-6 rounded-2xl border\" />\n          <div\n            class=\"bg-card absolute inset-x-0 top-6 h-32 rounded-2xl border p-4 text-left shadow-lg\"\n          >\n            <div class=\"bg-muted/80 h-5 w-7 rounded\" />\n            <div class=\"mt-8 flex gap-3\">\n              <div v-for=\"n in 4\" :key=\"n\" class=\"bg-muted h-2.5 w-8 rounded-full\" />\n            </div>\n            <div class=\"mt-3 flex justify-between\">\n              <div class=\"bg-muted/70 h-2 w-14 rounded-full\" />\n              <div class=\"bg-muted/70 h-2 w-8 rounded-full\" />\n            </div>\n          </div>\n          <div\n            class=\"bg-primary text-primary-foreground absolute -right-1 bottom-0 flex size-10 items-center justify-center rounded-full border-4 shadow-md\"\n            :style=\"{ borderColor: 'var(--background)' }\"\n          >\n            <Icon name=\"lucide:plus\" class=\"size-5\" />\n          </div>\n        </Motion>\n      </slot>\n\n      <div class=\"flex flex-col gap-2\">\n        <slot name=\"title\">\n          <h2 class=\"text-xl font-bold tracking-tight\">{{ props.title }}</h2>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground text-sm text-balance\">{{ props.description }}</p>\n        </slot>\n      </div>\n\n      <slot>\n        <div class=\"flex flex-wrap items-center justify-center gap-3\">\n          <UiButton>\n            <Icon name=\"lucide:credit-card\" class=\"size-4\" />\n            Add payment method\n          </UiButton>\n          <UiButton variant=\"ghost\">\n            <Icon name=\"lucide:shield-check\" class=\"size-4\" />\n            How we protect it\n          </UiButton>\n        </div>\n      </slot>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"No payment methods yet\",\n      description:\n        \"Add a card to start your subscription. We never store full card numbers on our servers.\",\n    }\n  );\n</script>\n","category":"EmptyState","description":"No payment methods with a fanned card illustration. Features: Three stacked cards built from theme tokens so it works in dark mode, add button badge, primary and secondary actions","path":"App/EmptyState/BlockAppEmptyState2.vue","components":["button"]},{"name":"App Empty State 3","fileName":"BlockAppEmptyState3.vue","file":"<template>\n  <!--\n    No data with a pulsing orbit illustration\n    Features: Dashed concentric rings with icon tiles, softly pulsing outer ring, create and refresh actions\n  -->\n  <div class=\"flex items-center justify-center px-4 py-12 sm:px-6\">\n    <div class=\"flex w-full max-w-md flex-col items-center text-center\">\n      <div class=\"relative flex size-56 items-center justify-center\" aria-hidden=\"true\">\n        <Motion\n          class=\"border-border absolute inset-0 rounded-full border border-dashed\"\n          :animate=\"{ scale: [1, 1.05, 1], opacity: [0.6, 1, 0.6] }\"\n          :transition=\"{ duration: 4, repeat: Infinity, ease: 'easeInOut' }\"\n        />\n        <div class=\"border-border absolute inset-9 rounded-full border border-dashed\" />\n        <div\n          class=\"from-primary/10 absolute inset-[4.5rem] rounded-full bg-radial to-transparent\"\n        />\n\n        <div\n          v-for=\"(tile, i) in tiles\"\n          :key=\"tile.icon\"\n          class=\"bg-background absolute flex size-11 items-center justify-center rounded-xl border shadow-sm\"\n          :class=\"tile.position\"\n        >\n          <Motion\n            :animate=\"{ y: [0, -4, 0] }\"\n            :transition=\"{ duration: 3, delay: i * 0.5, repeat: Infinity, ease: 'easeInOut' }\"\n          >\n            <Icon :name=\"tile.icon\" class=\"text-muted-foreground size-5\" />\n          </Motion>\n        </div>\n\n        <div\n          class=\"bg-primary text-primary-foreground relative flex size-16 items-center justify-center rounded-2xl shadow-lg\"\n        >\n          <Icon :name=\"props.icon\" class=\"size-8\" />\n        </div>\n      </div>\n\n      <div class=\"mt-6 flex flex-col gap-2\">\n        <slot name=\"title\">\n          <h2 class=\"text-xl font-bold tracking-tight\">{{ props.title }}</h2>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground text-sm text-balance\">{{ props.description }}</p>\n        </slot>\n      </div>\n\n      <slot>\n        <div class=\"mt-7 flex flex-wrap items-center justify-center gap-3\">\n          <UiButton>\n            <Icon name=\"lucide:plus\" class=\"size-4\" />\n            Create new\n          </UiButton>\n          <UiButton variant=\"outline\">\n            <Icon name=\"lucide:refresh-ccw\" class=\"size-4\" />\n            Refresh\n          </UiButton>\n        </div>\n      </slot>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      icon?: string;\n    }>(),\n    {\n      title: \"No data yet\",\n      description:\n        \"Once something is created or imported it will show up here. You can also refresh to check for new activity.\",\n      icon: \"lucide:database\",\n    }\n  );\n\n  const tiles = [\n    { icon: \"lucide:file-text\", position: \"top-3 left-10\" },\n    { icon: \"lucide:calendar\", position: \"top-8 right-5\" },\n    { icon: \"lucide:users\", position: \"bottom-5 left-6\" },\n  ];\n</script>\n","category":"EmptyState","description":"No data with a pulsing orbit illustration. Features: Dashed concentric rings with icon tiles, softly pulsing outer ring, create and refresh actions","path":"App/EmptyState/BlockAppEmptyState3.vue","components":["button"]},{"name":"App Empty State 4","fileName":"BlockAppEmptyState4.vue","file":"<template>\n  <!--\n    No projects with a ghost card grid\n    Features: A dashed new project card that leads the grid, skeleton project cards that fade out, heading with description and secondary import action\n  -->\n  <div class=\"flex items-center justify-center px-4 py-12 sm:px-6\">\n    <div class=\"flex w-full max-w-2xl flex-col items-center text-center\">\n      <div class=\"flex flex-col gap-2\">\n        <slot name=\"title\">\n          <h2 class=\"text-xl font-bold tracking-tight\">{{ props.title }}</h2>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground mx-auto max-w-md text-sm text-balance\">\n            {{ props.description }}\n          </p>\n        </slot>\n      </div>\n\n      <div class=\"mt-8 grid w-full grid-cols-2 gap-4 sm:grid-cols-3\">\n        <slot name=\"action\">\n          <button\n            type=\"button\"\n            class=\"group border-border hover:border-primary hover:bg-primary/5 flex min-h-36 flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed p-4 transition-colors\"\n          >\n            <span\n              class=\"bg-primary text-primary-foreground flex size-10 items-center justify-center rounded-full transition-transform group-hover:scale-110\"\n            >\n              <Icon name=\"lucide:plus\" class=\"size-5\" />\n            </span>\n            <span class=\"text-sm font-semibold\">New project</span>\n          </button>\n        </slot>\n\n        <div\n          v-for=\"(card, i) in 5\"\n          :key=\"card\"\n          class=\"bg-card flex min-h-36 flex-col justify-between rounded-xl border p-4 text-left\"\n          :class=\"[i > 1 && 'hidden sm:flex']\"\n          :style=\"{ opacity: 0.75 - i * 0.14 }\"\n          aria-hidden=\"true\"\n        >\n          <div class=\"bg-muted size-8 rounded-lg\" />\n          <div class=\"space-y-2\">\n            <div class=\"bg-muted h-2.5 w-2/3 rounded-full\" />\n            <div class=\"bg-muted/70 h-2 w-1/2 rounded-full\" />\n          </div>\n        </div>\n      </div>\n\n      <UiButton variant=\"ghost\" class=\"mt-6\">\n        <Icon name=\"lucide:upload\" class=\"size-4\" />\n        Import an existing project\n      </UiButton>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Create your first project\",\n      description:\n        \"Projects keep your files, tasks and teammates in one place. Start from scratch or bring something you already have.\",\n    }\n  );\n</script>\n","category":"EmptyState","description":"No projects with a ghost card grid. Features: A dashed new project card that leads the grid, skeleton project cards that fade out, heading with description and secondary import action","path":"App/EmptyState/BlockAppEmptyState4.vue","components":["button"]},{"name":"App Empty State 5","fileName":"BlockAppEmptyState5.vue","file":"<template>\n  <!--\n    Empty dashboard with a ghost preview behind a call to action\n    Features: Faded stat tiles, chart and table skeletons showing what the page will look like, an overlay card with primary and secondary actions\n  -->\n  <div class=\"flex items-center justify-center px-4 py-10 sm:px-6\">\n    <div class=\"relative w-full max-w-3xl overflow-hidden rounded-2xl border\">\n      <div class=\"mask-[linear-gradient(to_bottom,black_35%,transparent)] p-5\" aria-hidden=\"true\">\n        <div class=\"grid grid-cols-3 gap-3\">\n          <div v-for=\"stat in 3\" :key=\"stat\" class=\"bg-card rounded-xl border p-4\">\n            <div class=\"bg-muted h-2 w-1/2 rounded-full\" />\n            <div class=\"bg-muted mt-3 h-5 w-2/3 rounded-md\" />\n            <div class=\"bg-muted/70 mt-3 h-2 w-1/3 rounded-full\" />\n          </div>\n        </div>\n        <div class=\"bg-card mt-3 rounded-xl border p-4\">\n          <div class=\"bg-muted h-2.5 w-24 rounded-full\" />\n          <div class=\"mt-6 flex h-32 items-end gap-3\">\n            <div\n              v-for=\"(bar, i) in bars\"\n              :key=\"i\"\n              class=\"bg-muted flex-1 rounded-t-md\"\n              :style=\"{ height: `${bar}%` }\"\n            />\n          </div>\n        </div>\n        <div class=\"mt-3 space-y-2\">\n          <div\n            v-for=\"row in 3\"\n            :key=\"row\"\n            class=\"bg-card flex items-center gap-3 rounded-lg border p-3\"\n          >\n            <div class=\"bg-muted size-7 rounded-full\" />\n            <div class=\"bg-muted h-2 flex-1 rounded-full\" />\n            <div class=\"bg-muted/70 h-2 w-12 rounded-full\" />\n          </div>\n        </div>\n      </div>\n\n      <div class=\"absolute inset-0 flex items-center justify-center p-4\">\n        <Motion\n          class=\"bg-background/95 flex w-full max-w-sm flex-col items-center rounded-2xl border p-7 text-center shadow-xl backdrop-blur\"\n          :initial=\"{ opacity: 0, y: 16, scale: 0.97 }\"\n          :animate=\"{ opacity: 1, y: 0, scale: 1 }\"\n          :transition=\"{ type: 'spring', stiffness: 140, damping: 18 }\"\n        >\n          <div\n            class=\"bg-primary/10 text-primary flex size-12 items-center justify-center rounded-xl\"\n          >\n            <Icon :name=\"props.icon\" class=\"size-6\" />\n          </div>\n          <slot name=\"title\">\n            <h2 class=\"mt-4 text-lg font-bold tracking-tight\">{{ props.title }}</h2>\n          </slot>\n          <slot name=\"description\">\n            <p class=\"text-muted-foreground mt-1.5 text-sm text-balance\">{{ props.description }}</p>\n          </slot>\n          <slot>\n            <div class=\"mt-5 flex flex-wrap items-center justify-center gap-3\">\n              <UiButton>\n                <Icon name=\"lucide:plug-zap\" class=\"size-4\" />\n                Connect data\n              </UiButton>\n              <UiButton variant=\"outline\">\n                <Icon name=\"lucide:book-open\" class=\"size-4\" />\n                Learn more\n              </UiButton>\n            </div>\n          </slot>\n        </Motion>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      icon?: string;\n    }>(),\n    {\n      title: \"Your dashboard is waiting\",\n      description: \"Connect a data source and your metrics, charts and activity will appear here.\",\n      icon: \"lucide:layout-dashboard\",\n    }\n  );\n\n  const bars = [35, 55, 42, 70, 52, 85, 60, 78, 48, 66];\n</script>\n","category":"EmptyState","description":"Empty dashboard with a ghost preview behind a call to action. Features: Faded stat tiles, chart and table skeletons showing what the page will look like, an overlay card with primary and secondary actions","path":"App/EmptyState/BlockAppEmptyState5.vue","components":["button"]},{"name":"App Empty State 6","fileName":"BlockAppEmptyState6.vue","file":"<template>\n  <!--\n    Upload empty state with a working drop zone\n    Features: Drag and drop with a highlighted drag state, browse button, accepted file type chips, selected file list with remove buttons\n  -->\n  <div class=\"flex items-center justify-center px-4 py-12 sm:px-6\">\n    <div class=\"w-full max-w-lg\">\n      <div\n        class=\"flex flex-col items-center rounded-2xl border-2 border-dashed px-6 py-10 text-center transition-colors\"\n        :class=\"dragging ? 'border-primary bg-primary/5' : 'border-border hover:bg-muted/40'\"\n        @dragenter.prevent=\"dragging = true\"\n        @dragover.prevent=\"dragging = true\"\n        @dragleave.prevent=\"dragging = false\"\n        @drop.prevent=\"onDrop\"\n      >\n        <div class=\"relative mb-5 h-20 w-24\" aria-hidden=\"true\">\n          <div class=\"bg-muted absolute top-2 left-1 h-16 w-14 -rotate-12 rounded-lg border\" />\n          <div class=\"bg-muted/70 absolute top-2 right-1 h-16 w-14 rotate-12 rounded-lg border\" />\n          <div\n            class=\"bg-card absolute inset-x-5 top-0 flex h-[4.5rem] items-center justify-center rounded-lg border shadow-md transition-transform\"\n            :class=\"dragging && '-translate-y-1 scale-105'\"\n          >\n            <Icon\n              :name=\"dragging ? 'lucide:arrow-down-to-line' : 'lucide:cloud-upload'\"\n              class=\"text-primary size-8\"\n            />\n          </div>\n        </div>\n\n        <slot name=\"title\">\n          <h2 class=\"text-lg font-bold tracking-tight\">\n            {{ dragging ? \"Drop to upload\" : props.title }}\n          </h2>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground mt-1.5 text-sm text-balance\">{{ props.description }}</p>\n        </slot>\n\n        <div class=\"mt-4 flex flex-wrap justify-center gap-1.5\">\n          <UiBadge v-for=\"type in props.types\" :key=\"type\" variant=\"secondary\">{{ type }}</UiBadge>\n        </div>\n\n        <UiButton class=\"mt-6\" @click=\"input?.click()\">\n          <Icon name=\"lucide:upload\" class=\"size-4\" />\n          Browse files\n        </UiButton>\n        <input ref=\"input\" type=\"file\" multiple class=\"sr-only\" @change=\"onPick\" />\n      </div>\n\n      <ul v-if=\"files.length\" class=\"mt-4 space-y-2\">\n        <li\n          v-for=\"file in files\"\n          :key=\"file.name\"\n          class=\"bg-card flex items-center gap-3 rounded-lg border p-3 text-left\"\n        >\n          <span class=\"bg-muted flex size-9 items-center justify-center rounded-md\">\n            <Icon name=\"lucide:file\" class=\"size-4\" />\n          </span>\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate text-sm font-medium\">{{ file.name }}</p>\n            <p class=\"text-muted-foreground text-xs\">{{ formatSize(file.size) }}</p>\n          </div>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            :aria-label=\"`Remove ${file.name}`\"\n            @click=\"files = files.filter((item) => item !== file)\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </UiButton>\n        </li>\n      </ul>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      types?: string[];\n    }>(),\n    {\n      title: \"Drag and drop your files\",\n      description: \"Upload your first file to get started. You can add more at any time.\",\n      types: () => [\"PDF\", \"PNG\", \"JPG\", \"CSV\", \"Up to 10 MB\"],\n    }\n  );\n\n  const dragging = ref(false);\n  const files = ref<File[]>([]);\n  const input = ref<HTMLInputElement>();\n\n  function add(list: FileList | null | undefined) {\n    if (!list?.length) return;\n    files.value = [...files.value, ...Array.from(list)];\n    useSonner.success(`${list.length} ${list.length === 1 ? \"file\" : \"files\"} added`);\n  }\n\n  function onDrop(event: DragEvent) {\n    dragging.value = false;\n    add(event.dataTransfer?.files);\n  }\n\n  function onPick(event: Event) {\n    const target = event.target as HTMLInputElement;\n    add(target.files);\n    target.value = \"\";\n  }\n\n  function formatSize(bytes: number) {\n    if (bytes < 1024) return `${bytes} B`;\n    if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;\n    return `${(bytes / 1024 / 1024).toFixed(1)} MB`;\n  }\n</script>\n","category":"EmptyState","description":"Upload empty state with a working drop zone. Features: Drag and drop with a highlighted drag state, browse button, accepted file type chips, selected file list with remove buttons","path":"App/EmptyState/BlockAppEmptyState6.vue","components":["badge","button"]},{"name":"App Empty State 7","fileName":"BlockAppEmptyState7.vue","file":"<template>\n  <!--\n    Choose how to get started with selectable option cards\n    Features: Two large cards with icons and feature lists, recommended badge, selected state with check, continue button enabled after a choice\n  -->\n  <div class=\"flex items-center justify-center px-4 py-12 sm:px-6\">\n    <div class=\"w-full max-w-2xl\">\n      <div class=\"text-center\">\n        <slot name=\"title\">\n          <h2 class=\"text-xl font-bold tracking-tight\">{{ props.title }}</h2>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground mt-1.5 text-sm text-balance\">{{ props.description }}</p>\n        </slot>\n      </div>\n\n      <div class=\"mt-8 grid gap-4 sm:grid-cols-2\" role=\"radiogroup\" :aria-label=\"props.title\">\n        <button\n          v-for=\"option in props.options\"\n          :key=\"option.id\"\n          type=\"button\"\n          role=\"radio\"\n          :aria-checked=\"selected === option.id\"\n          class=\"focus-visible:ring-ring/50 relative flex flex-col rounded-2xl border-2 p-5 text-left transition-all outline-none focus-visible:ring-[3px]\"\n          :class=\"\n            selected === option.id\n              ? 'border-primary bg-primary/5 shadow-sm'\n              : 'border-border hover:border-ring hover:shadow-sm'\n          \"\n          @click=\"selected = option.id\"\n        >\n          <UiBadge v-if=\"option.recommended\" class=\"absolute -top-2.5 left-5\">Recommended</UiBadge>\n          <span\n            class=\"absolute top-4 right-4 flex size-5 items-center justify-center rounded-full border transition-colors\"\n            :class=\"\n              selected === option.id ? 'bg-primary text-primary-foreground border-primary' : ''\n            \"\n          >\n            <Icon v-if=\"selected === option.id\" name=\"lucide:check\" class=\"size-3\" />\n          </span>\n          <span\n            class=\"flex size-12 items-center justify-center rounded-xl transition-colors\"\n            :class=\"selected === option.id ? 'bg-primary text-primary-foreground' : 'bg-muted'\"\n          >\n            <Icon :name=\"option.icon\" class=\"size-6\" />\n          </span>\n          <span class=\"mt-4 text-base font-semibold\">{{ option.title }}</span>\n          <span class=\"text-muted-foreground mt-1 text-sm\">{{ option.description }}</span>\n          <ul class=\"text-muted-foreground mt-4 space-y-1.5 text-sm\">\n            <li v-for=\"point in option.points\" :key=\"point\" class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:check\" class=\"text-primary size-4 shrink-0\" />\n              {{ point }}\n            </li>\n          </ul>\n        </button>\n      </div>\n\n      <div class=\"mt-6 flex flex-col items-center gap-3\">\n        <slot>\n          <UiButton :disabled=\"!selected\" size=\"lg\" class=\"min-w-48\" @click=\"confirm\">\n            Continue\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n        </slot>\n        <p class=\"text-muted-foreground flex items-center gap-1.5 text-xs\">\n          <Icon name=\"lucide:info\" class=\"size-3.5\" />\n          You can change this later in your settings.\n        </p>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Option = {\n    id: string;\n    title: string;\n    description: string;\n    icon: string;\n    points: string[];\n    recommended?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      options?: Option[];\n    }>(),\n    {\n      title: \"Choose how to get started\",\n      description: \"Pick a starting point. Both options lead to the same workspace.\",\n      options: () => [\n        {\n          id: \"scratch\",\n          title: \"Start from scratch\",\n          description: \"A blank project you shape yourself.\",\n          icon: \"lucide:file-plus-2\",\n          points: [\"Full control over structure\", \"Add only what you need\"],\n        },\n        {\n          id: \"template\",\n          title: \"Use a template\",\n          description: \"A ready-made setup you can tweak.\",\n          icon: \"lucide:layout-template\",\n          points: [\"Sample data included\", \"Live in under a minute\"],\n          recommended: true,\n        },\n      ],\n    }\n  );\n\n  const selected = ref<string>();\n\n  function confirm() {\n    const option = props.options.find((item) => item.id === selected.value);\n    useSonner.success(`${option?.title} selected`);\n  }\n</script>\n","category":"EmptyState","description":"Choose how to get started with selectable option cards. Features: Two large cards with icons and feature lists, recommended badge, selected state with check, continue button enabled after a choice","path":"App/EmptyState/BlockAppEmptyState7.vue","components":["badge","button"]},{"name":"App Empty State 8","fileName":"BlockAppEmptyState8.vue","file":"<template>\n  <!--\n    Setup checklist with a live progress ring\n    Features: Progress ring that fills as steps complete, done, current and upcoming step states, action button on the current step, completed celebration state\n  -->\n  <div class=\"flex items-center justify-center px-4 py-12 sm:px-6\">\n    <div class=\"bg-card w-full max-w-md rounded-2xl border p-6 shadow-sm\">\n      <div class=\"flex items-center gap-4\">\n        <div class=\"relative size-16 shrink-0\">\n          <svg class=\"size-16 -rotate-90\" viewBox=\"0 0 64 64\" aria-hidden=\"true\">\n            <circle cx=\"32\" cy=\"32\" r=\"28\" fill=\"none\" stroke-width=\"6\" class=\"stroke-muted\" />\n            <circle\n              cx=\"32\"\n              cy=\"32\"\n              r=\"28\"\n              fill=\"none\"\n              stroke-width=\"6\"\n              stroke-linecap=\"round\"\n              class=\"stroke-primary transition-all duration-500\"\n              :stroke-dasharray=\"circumference\"\n              :stroke-dashoffset=\"circumference * (1 - progress)\"\n            />\n          </svg>\n          <span class=\"absolute inset-0 flex items-center justify-center text-sm font-bold\">\n            {{ doneCount }}/{{ steps.length }}\n          </span>\n        </div>\n        <div>\n          <slot name=\"title\">\n            <h2 class=\"text-lg font-bold tracking-tight\">\n              {{ complete ? \"You're all set\" : props.title }}\n            </h2>\n          </slot>\n          <slot name=\"description\">\n            <p class=\"text-muted-foreground text-sm\">\n              {{ complete ? \"Everything is connected and ready to go.\" : props.description }}\n            </p>\n          </slot>\n        </div>\n      </div>\n\n      <ol class=\"mt-6 space-y-2\">\n        <li\n          v-for=\"(step, i) in steps\"\n          :key=\"step.id\"\n          class=\"flex items-center gap-3 rounded-xl border p-3 transition-colors\"\n          :class=\"\n            step.done\n              ? 'bg-muted/40 border-transparent'\n              : i === currentIndex\n                ? 'border-primary/40 bg-primary/5'\n                : 'opacity-60'\n          \"\n        >\n          <span\n            class=\"flex size-8 shrink-0 items-center justify-center rounded-full border text-xs font-semibold transition-colors\"\n            :class=\"\n              step.done\n                ? 'bg-primary text-primary-foreground border-primary'\n                : i === currentIndex\n                  ? 'border-primary text-primary'\n                  : 'text-muted-foreground'\n            \"\n          >\n            <Icon v-if=\"step.done\" name=\"lucide:check\" class=\"size-4\" />\n            <Icon\n              v-else-if=\"loading === step.id\"\n              name=\"lucide:loader-circle\"\n              class=\"size-4 animate-spin\"\n            />\n            <template v-else>{{ i + 1 }}</template>\n          </span>\n          <div class=\"min-w-0 flex-1\">\n            <p\n              class=\"text-sm font-medium\"\n              :class=\"step.done && 'text-muted-foreground line-through'\"\n            >\n              {{ step.title }}\n            </p>\n            <p v-if=\"!step.done\" class=\"text-muted-foreground text-xs\">{{ step.description }}</p>\n          </div>\n          <UiButton\n            v-if=\"i === currentIndex && !step.done\"\n            size=\"sm\"\n            :disabled=\"loading === step.id\"\n            @click=\"run(step.id)\"\n          >\n            {{ step.action }}\n          </UiButton>\n        </li>\n      </ol>\n\n      <div class=\"mt-6 flex items-center justify-between gap-3\">\n        <UiButton v-if=\"!complete\" variant=\"ghost\" size=\"sm\" @click=\"reset\">Skip for now</UiButton>\n        <UiButton v-else variant=\"outline\" size=\"sm\" @click=\"reset\">Start over</UiButton>\n        <UiButton v-if=\"complete\" size=\"sm\">\n          Go to dashboard\n          <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Let's get you set up\",\n      description: \"Three quick steps and you're ready to go.\",\n    }\n  );\n\n  const steps = reactive([\n    {\n      id: \"account\",\n      title: \"Connect your account\",\n      description: \"Link the service you want to pull data from.\",\n      action: \"Connect\",\n      done: true,\n    },\n    {\n      id: \"prefs\",\n      title: \"Configure your preferences\",\n      description: \"Choose your timezone and notification settings.\",\n      action: \"Configure\",\n      done: false,\n    },\n    {\n      id: \"team\",\n      title: \"Invite your team members\",\n      description: \"Collaborate with the people you work with.\",\n      action: \"Invite\",\n      done: false,\n    },\n  ]);\n\n  const loading = ref<string>();\n  const circumference = 2 * Math.PI * 28;\n\n  const doneCount = computed(() => steps.filter((step) => step.done).length);\n  const progress = computed(() => doneCount.value / steps.length);\n  const currentIndex = computed(() => steps.findIndex((step) => !step.done));\n  const complete = computed(() => doneCount.value === steps.length);\n\n  async function run(id: string) {\n    loading.value = id;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    const step = steps.find((item) => item.id === id);\n    if (step) step.done = true;\n    loading.value = undefined;\n  }\n\n  function reset() {\n    steps.forEach((step, i) => {\n      step.done = i === 0;\n    });\n  }\n</script>\n","category":"EmptyState","description":"Setup checklist with a live progress ring. Features: Progress ring that fills as steps complete, done, current and upcoming step states, action button on the current step, completed celebration state","path":"App/EmptyState/BlockAppEmptyState8.vue","components":["button"]},{"name":"App Empty State 9","fileName":"BlockAppEmptyState9.vue","file":"<template>\n  <!--\n    All caught up empty state for inboxes and notification lists\n    Features: Animated check badge with confetti dots, read items fading out behind it, view archive and notification settings actions\n  -->\n  <div class=\"flex items-center justify-center px-4 py-12 sm:px-6\">\n    <div class=\"flex w-full max-w-md flex-col items-center text-center\">\n      <div class=\"relative flex h-44 w-full items-center justify-center\" aria-hidden=\"true\">\n        <div\n          class=\"absolute inset-0 space-y-2 mask-[radial-gradient(circle_at_center,black_20%,transparent_70%)] py-2 opacity-60\"\n        >\n          <div\n            v-for=\"row in 4\"\n            :key=\"row\"\n            class=\"bg-card mx-auto flex items-center gap-3 rounded-lg border p-2.5\"\n            :style=\"{ width: `${100 - row * 6}%` }\"\n          >\n            <div class=\"bg-muted size-6 rounded-full\" />\n            <div class=\"bg-muted h-2 flex-1 rounded-full\" />\n            <Icon name=\"lucide:check-check\" class=\"text-muted-foreground/60 size-4\" />\n          </div>\n        </div>\n\n        <span\n          v-for=\"dot in dots\"\n          :key=\"dot.class\"\n          class=\"absolute rounded-full\"\n          :class=\"dot.class\"\n        />\n\n        <Motion\n          class=\"relative flex size-20 items-center justify-center rounded-full bg-green-500 text-white shadow-lg\"\n          :initial=\"{ scale: 0.6, opacity: 0 }\"\n          :animate=\"{ scale: 1, opacity: 1 }\"\n          :transition=\"{ type: 'spring', stiffness: 220, damping: 14 }\"\n        >\n          <Icon name=\"lucide:check\" class=\"size-10\" />\n        </Motion>\n      </div>\n\n      <div class=\"mt-2 flex flex-col gap-2\">\n        <slot name=\"title\">\n          <h2 class=\"text-xl font-bold tracking-tight\">{{ props.title }}</h2>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground text-sm text-balance\">{{ props.description }}</p>\n        </slot>\n      </div>\n\n      <slot>\n        <div class=\"mt-6 flex flex-wrap items-center justify-center gap-3\">\n          <UiButton variant=\"outline\">\n            <Icon name=\"lucide:archive\" class=\"size-4\" />\n            View archive\n          </UiButton>\n          <UiButton variant=\"ghost\">\n            <Icon name=\"lucide:settings-2\" class=\"size-4\" />\n            Notification settings\n          </UiButton>\n        </div>\n      </slot>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"You're all caught up\",\n      description:\n        \"No new notifications. We'll let you know the moment something needs your attention.\",\n    }\n  );\n\n  const dots = [\n    { class: \"top-4 left-16 size-2 bg-amber-400\" },\n    { class: \"top-10 right-14 size-2.5 bg-sky-400\" },\n    { class: \"bottom-8 left-12 size-2.5 bg-rose-400\" },\n    { class: \"bottom-6 right-20 size-2 bg-violet-400\" },\n    { class: \"top-20 left-8 size-1.5 bg-green-400\" },\n    { class: \"top-6 right-32 size-1.5 bg-rose-400\" },\n  ];\n</script>\n","category":"EmptyState","description":"All caught up empty state for inboxes and notification lists. Features: Animated check badge with confetti dots, read items fading out behind it, view archive and notification settings actions","path":"App/EmptyState/BlockAppEmptyState9.vue","components":["button"]},{"name":"Error","fileName":"BlockError.vue","file":"<template>\n  <!-- \n    Simple error page with grid pattern\n    Features: Grid background pattern, staggered animations, error code badge\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <div class=\"relative flex min-h-screen items-center py-16\">\n      <div\n        class=\"absolute inset-0 bg-[linear-gradient(to_right,--alpha(var(--color-border)/80%)_1px,transparent_1px),linear-gradient(to_bottom,--alpha(var(--color-border)/80%)_1px,transparent_1px)] mask-[radial-gradient(ellipse_closest-side_at_50%_0%,#000_70%,transparent_110%)] bg-size-[60px_60px]\"\n      />\n      <div class=\"relative z-1 container\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary mb-5 font-bold tracking-tight\">\n          {{ statusCode }} error\n        </Motion>\n        <Motion\n          as=\"h1\"\n          :variants=\"childVariant\"\n          class=\"text-4xl font-bold tracking-tight lg:text-5xl\"\n        >\n          {{ title }}\n        </Motion>\n        <Motion :variants=\"childVariant\">\n          <UiButton class=\"mt-5\" @click=\"clearError({ redirect: '#' })\">\n            Take me home\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </Motion>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      statusCode?: number;\n      fatal?: boolean;\n      unhandled?: boolean;\n      statusMessage?: string;\n      message?: string;\n      data?: unknown;\n      cause?: unknown;\n    }>(),\n    {\n      statusCode: 404,\n      fatal: false,\n      unhandled: false,\n      statusMessage: \"\",\n      message: \"We can't find this page\",\n      data: undefined,\n      cause: undefined,\n    }\n  );\n\n  const title = computed(() => {\n    if (!props.message) return \"Error\";\n    return props.message;\n  });\n\n  useSeoMeta({ title });\n</script>\n","category":"Error","description":"Simple error page with grid pattern. Features: Grid background pattern, staggered animations, error code badge","path":"Error/BlockError.vue","components":["button"]},{"name":"Error 5","fileName":"BlockError5.vue","file":"<template>\n  <!-- \n    Animated error with gradient background\n    Features: Gradient background, GSAP text animation, animated blobs\n  -->\n  <div\n    ref=\"container\"\n    class=\"from-primary/10 via-background to-background relative flex min-h-screen items-center overflow-hidden bg-linear-to-br\"\n  >\n    <div\n      class=\"bg-primary/20 absolute top-[20%] left-[10%] h-[300px] w-[300px] rounded-full blur-[100px]\"\n      style=\"animation: blob-float 8s ease-in-out infinite\"\n    />\n    <div\n      class=\"bg-primary/10 absolute right-[10%] bottom-[20%] h-[400px] w-[400px] rounded-full blur-[120px]\"\n      style=\"animation: blob-float 10s ease-in-out infinite reverse\"\n    />\n    <div class=\"relative z-1 container\">\n      <p ref=\"errorCode\" class=\"text-primary mb-5 font-bold tracking-tight\">\n        {{ statusCode }} error\n      </p>\n      <h1 ref=\"errorTitle\" class=\"text-4xl font-bold tracking-tight lg:text-6xl\">\n        {{ title }}\n      </h1>\n      <p ref=\"errorDesc\" class=\"text-muted-foreground mt-5 max-w-md\">\n        The page you're looking for doesn't exist or has been moved. Let's get you back on track.\n      </p>\n      <div ref=\"errorButton\" class=\"mt-8 flex items-center gap-3\">\n        <UiButton @click=\"clearError({ redirect: '#' })\">\n          <Icon name=\"lucide:home\" class=\"mr-2 h-4 w-4\" />\n          Go Home\n        </UiButton>\n        <UiButton variant=\"outline\" @click=\"clearError({ redirect: '#' })\">\n          <Icon name=\"lucide:arrow-left\" class=\"mr-2 h-4 w-4\" />\n          Go Back\n        </UiButton>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import gsap from \"gsap\";\n\n  const props = withDefaults(\n    defineProps<{\n      statusCode?: number;\n      fatal?: boolean;\n      unhandled?: boolean;\n      statusMessage?: string;\n      message?: string;\n      data?: unknown;\n      cause?: unknown;\n    }>(),\n    {\n      statusCode: 404,\n      fatal: false,\n      unhandled: false,\n      statusMessage: \"\",\n      message: \"We can't find this page\",\n      data: undefined,\n      cause: undefined,\n    }\n  );\n\n  const title = computed(() => {\n    if (!props.message) return \"Error\";\n    return props.message;\n  });\n\n  useSeoMeta({ title });\n\n  const container = ref<HTMLElement | null>(null);\n  const errorCode = ref<HTMLElement | null>(null);\n  const errorTitle = ref<HTMLElement | null>(null);\n  const errorDesc = ref<HTMLElement | null>(null);\n  const errorButton = ref<HTMLElement | null>(null);\n\n  onMounted(() => {\n    const tl = gsap.timeline();\n    tl.from(errorCode.value, {\n      opacity: 0,\n      y: 10,\n      duration: 0.6,\n      ease: \"power2.out\",\n    })\n      .from(\n        errorTitle.value,\n        {\n          opacity: 0,\n          y: 10,\n          duration: 0.8,\n          ease: \"power3.out\",\n        },\n        \"-=0.3\"\n      )\n      .from(\n        errorDesc.value,\n        {\n          opacity: 0,\n          y: 10,\n          duration: 0.6,\n          ease: \"power2.out\",\n        },\n        \"-=0.4\"\n      )\n      .from(\n        errorButton.value,\n        {\n          opacity: 0,\n          y: 10,\n          duration: 0.6,\n          ease: \"back.out(1.2)\",\n        },\n        \"-=0.3\"\n      );\n  });\n</script>\n\n<style>\n  @keyframes blob-float {\n    0%,\n    100% {\n      transform: translate(0, 0) scale(1);\n    }\n    33% {\n      transform: translate(30px, -30px) scale(1.1);\n    }\n    66% {\n      transform: translate(-20px, 20px) scale(0.9);\n    }\n  }\n</style>\n","category":"Error","description":"Animated error with gradient background. Features: Gradient background, GSAP text animation, animated blobs","path":"Error/BlockError5.vue","components":["button"]},{"name":"Error 6","fileName":"BlockError6.vue","file":"<template>\n  <!-- \n    Error page with helpful suggestions carousel\n    Features: Swiper carousel, helpful links, search suggestion\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <div class=\"relative flex min-h-screen items-center\">\n      <div\n        class=\"absolute inset-0 bg-[radial-gradient(var(--color-border)_1px,transparent_1px)] bg-size-[20px_20px]\"\n      />\n      <div class=\"relative z-1 container max-w-4xl\">\n        <Motion as=\"div\" :variants=\"childVariant\" class=\"text-center\">\n          <p class=\"text-primary mb-3 text-6xl font-bold lg:text-8xl\">{{ statusCode }}</p>\n          <h1 class=\"text-3xl font-bold tracking-tight lg:text-4xl\">{{ title }}</h1>\n        </Motion>\n\n        <Motion as=\"div\" :variants=\"childVariant\" class=\"mt-8\">\n          <p class=\"text-muted-foreground mb-4 text-center text-sm font-medium\">\n            Here are some helpful resources:\n          </p>\n          <swiper-container\n            :autoplay=\"{ delay: 3500 }\"\n            :speed=\"800\"\n            loop\n            grab-cursor\n            :slides-per-view=\"1\"\n            :breakpoints=\"{\n              640: { slidesPerView: 2, spaceBetween: 20 },\n              1024: { slidesPerView: 3, spaceBetween: 20 },\n            }\"\n            class=\"pb-2!\"\n          >\n            <swiper-slide v-for=\"(item, i) in suggestions\" :key=\"i\">\n              <UiCard class=\"h-full transition-shadow hover:shadow-lg\">\n                <UiCardHeader class=\"flex flex-col\">\n                  <div class=\"bg-primary/10 mb-3 inline-flex rounded-lg p-3\">\n                    <Icon :name=\"item.icon\" class=\"text-primary h-5 w-5\" />\n                  </div>\n                  <UiCardTitle class=\"text-lg\">{{ item.title }}</UiCardTitle>\n                  <UiCardDescription>{{ item.description }}</UiCardDescription>\n                </UiCardHeader>\n                <UiCardFooter>\n                  <UiButton variant=\"ghost\" size=\"sm\" as=\"a\" :href=\"item.href\" class=\"w-full\">\n                    {{ item.action }}\n                    <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-3 w-3\" />\n                  </UiButton>\n                </UiCardFooter>\n              </UiCard>\n            </swiper-slide>\n          </swiper-container>\n        </Motion>\n\n        <Motion :variants=\"childVariant\">\n          <UiButton class=\"mt-8 w-full sm:w-auto\" @click=\"clearError({ redirect: '#' })\">\n            <Icon name=\"lucide:home\" class=\"mr-2 h-4 w-4\" />\n            Return to Homepage\n          </UiButton>\n        </Motion>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      statusCode?: number;\n      fatal?: boolean;\n      unhandled?: boolean;\n      statusMessage?: string;\n      message?: string;\n      data?: unknown;\n      cause?: unknown;\n    }>(),\n    {\n      statusCode: 404,\n      fatal: false,\n      unhandled: false,\n      statusMessage: \"\",\n      message: \"We can't find this page\",\n      data: undefined,\n      cause: undefined,\n    }\n  );\n\n  const title = computed(() => {\n    if (!props.message) return \"Error\";\n    return props.message;\n  });\n\n  useSeoMeta({ title });\n\n  const suggestions = [\n    {\n      icon: \"lucide:book-open\",\n      title: \"Documentation\",\n      description: \"Browse our comprehensive guides and API reference\",\n      action: \"View Docs\",\n      href: \"#\",\n    },\n    {\n      icon: \"lucide:message-circle\",\n      title: \"Get Help\",\n      description: \"Contact our support team for assistance\",\n      action: \"Contact Us\",\n      href: \"#\",\n    },\n    {\n      icon: \"lucide:search\",\n      title: \"Search\",\n      description: \"Find what you're looking for across the site\",\n      action: \"Start Search\",\n      href: \"#\",\n    },\n    {\n      icon: \"lucide:compass\",\n      title: \"Explore\",\n      description: \"Discover popular pages and features\",\n      action: \"Browse All\",\n      href: \"#\",\n    },\n  ];\n</script>\n","category":"Error","description":"Error page with helpful suggestions carousel. Features: Swiper carousel, helpful links, search suggestion","path":"Error/BlockError6.vue","components":["button","card"]},{"name":"Error 7","fileName":"BlockError7.vue","file":"<template>\n  <!-- \n    Minimal error page with illustration\n    Features: SVG illustration, clean minimal design, subtle animations\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.12),\n        },\n      },\n    }\"\n  >\n    <div class=\"flex min-h-screen items-center\">\n      <div class=\"container max-w-2xl text-center\">\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, scale: 0.8 },\n            animate: {\n              opacity: 1,\n              scale: 1,\n              transition: {\n                type: 'spring',\n                stiffness: 150,\n                damping: 15,\n              },\n            },\n          }\"\n          class=\"mb-8 inline-block\"\n        >\n          <svg\n            class=\"text-primary/20 h-48 w-48\"\n            viewBox=\"0 0 200 200\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <circle cx=\"100\" cy=\"100\" r=\"80\" stroke=\"currentColor\" stroke-width=\"2\" />\n            <path\n              d=\"M70 85 Q70 70 85 70 L115 70 Q130 70 130 85 L130 115 Q130 130 115 130 L85 130 Q70 130 70 115 Z\"\n              stroke=\"currentColor\"\n              stroke-width=\"2\"\n              fill=\"none\"\n            />\n            <circle cx=\"85\" cy=\"90\" r=\"5\" fill=\"currentColor\" />\n            <circle cx=\"115\" cy=\"90\" r=\"5\" fill=\"currentColor\" />\n            <path\n              d=\"M85 115 Q100 105 115 115\"\n              stroke=\"currentColor\"\n              stroke-width=\"2\"\n              stroke-linecap=\"round\"\n            />\n          </svg>\n        </Motion>\n\n        <Motion as=\"h1\" :variants=\"childVariant\" class=\"text-primary mb-3 text-6xl font-bold\">\n          {{ statusCode }}\n        </Motion>\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mb-4 text-2xl font-semibold tracking-tight lg:text-3xl\"\n        >\n          {{ title }}\n        </Motion>\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground mb-8\">\n          Oops! The page you're looking for seems to have wandered off. Don't worry, it happens to\n          the best of us.\n        </Motion>\n\n        <Motion\n          as=\"div\"\n          :variants=\"childVariant\"\n          class=\"flex flex-col items-center justify-center gap-3 sm:flex-row\"\n        >\n          <UiButton @click=\"clearError({ redirect: '#' })\">\n            <Icon name=\"lucide:home\" class=\"mr-2 h-4 w-4\" />\n            Go Home\n          </UiButton>\n          <UiButton variant=\"outline\" @click=\"clearError({ redirect: '#' })\">\n            <Icon name=\"lucide:arrow-left\" class=\"mr-2 h-4 w-4\" />\n            Go Back\n          </UiButton>\n        </Motion>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 15 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      statusCode?: number;\n      fatal?: boolean;\n      unhandled?: boolean;\n      statusMessage?: string;\n      message?: string;\n      data?: unknown;\n      cause?: unknown;\n    }>(),\n    {\n      statusCode: 404,\n      fatal: false,\n      unhandled: false,\n      statusMessage: \"\",\n      message: \"Page Not Found\",\n      data: undefined,\n      cause: undefined,\n    }\n  );\n\n  const title = computed(() => {\n    if (!props.message) return \"Error\";\n    return props.message;\n  });\n\n  useSeoMeta({ title });\n</script>\n","category":"Error","description":"Minimal error page with illustration. Features: SVG illustration, clean minimal design, subtle animations","path":"Error/BlockError7.vue","components":["button"]},{"name":"Error 8","fileName":"BlockError8.vue","file":"<template>\n  <!-- \n    Dark themed error with stats\n    Features: Dark gradient background, error stats cards, terminal-style code\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <div\n      class=\"from-background via-background to-primary/5 relative flex min-h-screen items-center bg-linear-to-br py-16\"\n    >\n      <div\n        class=\"absolute inset-0 bg-[linear-gradient(to_right,--alpha(var(--color-border)/40%)_1px,transparent_1px),linear-gradient(to_bottom,--alpha(var(--color-border)/40%)_1px,transparent_1px)] bg-size-[80px_80px]\"\n      />\n      <div class=\"relative z-1 container max-w-4xl\">\n        <Motion as=\"div\" :variants=\"childVariant\" class=\"mb-10\">\n          <UiBadge variant=\"outline\" class=\"mb-4\">Error {{ statusCode }}</UiBadge>\n          <h1 class=\"text-4xl font-bold tracking-tight lg:text-5xl\">{{ title }}</h1>\n          <p class=\"text-muted-foreground mt-4 text-lg\">\n            The server encountered an unexpected condition that prevented it from fulfilling the\n            request.\n          </p>\n        </Motion>\n\n        <Motion as=\"div\" :variants=\"childVariant\" class=\"mb-8 grid gap-4 sm:grid-cols-3\">\n          <UiCard>\n            <UiCardHeader class=\"pb-3\">\n              <UiCardDescription>Status Code</UiCardDescription>\n              <UiCardTitle class=\"text-2xl\">{{ statusCode }}</UiCardTitle>\n            </UiCardHeader>\n          </UiCard>\n          <UiCard>\n            <UiCardHeader class=\"pb-3\">\n              <UiCardDescription>Error Type</UiCardDescription>\n              <UiCardTitle class=\"text-2xl\">{{ fatal ? \"Fatal\" : \"Standard\" }}</UiCardTitle>\n            </UiCardHeader>\n          </UiCard>\n          <UiCard>\n            <UiCardHeader class=\"pb-3\">\n              <UiCardDescription>Timestamp</UiCardDescription>\n              <UiCardTitle class=\"text-2xl\">{{ timestamp }}</UiCardTitle>\n            </UiCardHeader>\n          </UiCard>\n        </Motion>\n\n        <Motion as-child :variants=\"childVariant\">\n          <UiCard class=\"border-primary/20 bg-primary/5 mb-8\">\n            <UiCardHeader>\n              <UiCardDescription class=\"font-mono text-xs\">Error Details</UiCardDescription>\n            </UiCardHeader>\n            <UiCardContent>\n              <pre\n                class=\"text-muted-foreground overflow-x-auto text-xs\"\n              ><code>{{ errorDetails }}</code></pre>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n\n        <Motion as=\"div\" :variants=\"childVariant\" class=\"flex flex-wrap gap-3\">\n          <UiButton @click=\"clearError({ redirect: '#' })\">\n            <Icon name=\"lucide:refresh-cw\" class=\"mr-2 h-4 w-4\" />\n            Retry\n          </UiButton>\n          <UiButton variant=\"outline\" @click=\"clearError({ redirect: '#' })\">\n            <Icon name=\"lucide:home\" class=\"mr-2 h-4 w-4\" />\n            Go Home\n          </UiButton>\n          <UiButton variant=\"ghost\" as=\"a\" href=\"#\">\n            <Icon name=\"lucide:bug\" class=\"mr-2 h-4 w-4\" />\n            Report Issue\n          </UiButton>\n        </Motion>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      statusCode?: number;\n      fatal?: boolean;\n      unhandled?: boolean;\n      statusMessage?: string;\n      message?: string;\n      data?: unknown;\n      cause?: unknown;\n    }>(),\n    {\n      statusCode: 500,\n      fatal: false,\n      unhandled: false,\n      statusMessage: \"\",\n      message: \"Internal Server Error\",\n      data: undefined,\n      cause: undefined,\n    }\n  );\n\n  const title = computed(() => {\n    if (!props.message) return \"Error\";\n    return props.message;\n  });\n\n  useSeoMeta({ title });\n\n  const timestamp = computed(() => {\n    const now = new Date();\n    return now.toLocaleTimeString(\"en-US\", { hour12: false });\n  });\n\n  const errorDetails = computed(() => {\n    return `{\n  \"error\": \"${props.message}\",\n  \"statusCode\": ${props.statusCode},\n  \"fatal\": ${props.fatal},\n  \"timestamp\": \"${new Date().toISOString()}\",\n  \"path\": \"${window.location.pathname}\"\n}`;\n  });\n</script>\n","category":"Error","description":"Dark themed error with stats. Features: Dark gradient background, error stats cards, terminal-style code","path":"Error/BlockError8.vue","components":["badge","button","card"]},{"name":"Error 9","fileName":"BlockError9.vue","file":"<template>\n  <!-- \n    Interactive error page with search\n    Features: Inline search, recent pages, quick actions\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.12),\n        },\n      },\n    }\"\n  >\n    <div class=\"flex min-h-screen items-center\">\n      <div class=\"container max-w-3xl py-16\">\n        <Motion as=\"div\" :variants=\"childVariant\" class=\"mb-10 text-center\">\n          <div\n            class=\"bg-primary/5 mb-4 inline-flex items-center gap-2 rounded-full border px-4 py-1.5\"\n          >\n            <Icon name=\"lucide:alert-circle\" class=\"text-primary h-4 w-4\" />\n            <span class=\"text-primary text-sm font-medium\">Error {{ statusCode }}</span>\n          </div>\n          <h1 class=\"mb-3 text-4xl font-bold tracking-tight lg:text-5xl\">{{ title }}</h1>\n          <p class=\"text-muted-foreground\">\n            We couldn't find what you're looking for. Try searching or explore our popular pages\n            below.\n          </p>\n        </Motion>\n\n        <Motion as-child :variants=\"childVariant\">\n          <UiCard class=\"mb-8\">\n            <UiCardHeader>\n              <UiCardTitle class=\"text-lg\">Search for what you need</UiCardTitle>\n            </UiCardHeader>\n            <UiCardContent>\n              <div class=\"relative\">\n                <Icon\n                  name=\"lucide:search\"\n                  class=\"text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2\"\n                />\n                <UiInput\n                  v-model=\"searchQuery\"\n                  placeholder=\"Search documentation, guides, articles...\"\n                  class=\"pl-10\"\n                />\n              </div>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n\n        <Motion as=\"div\" :variants=\"childVariant\" class=\"mb-8\">\n          <h2 class=\"text-muted-foreground mb-4 text-sm font-semibold tracking-wide uppercase\">\n            Popular Pages\n          </h2>\n          <div class=\"grid gap-3 sm:grid-cols-2\">\n            <Motion v-for=\"(page, i) in popularPages\" :key=\"i\" :variants=\"childVariant\">\n              <UiCard\n                class=\"group cursor-pointer transition-shadow hover:shadow-md\"\n                @click=\"clearError({ redirect: page.href })\"\n              >\n                <UiCardHeader>\n                  <div class=\"flex items-start justify-between\">\n                    <div class=\"flex items-center gap-3\">\n                      <div class=\"bg-primary/10 rounded-lg p-2\">\n                        <Icon :name=\"page.icon\" class=\"text-primary h-4 w-4\" />\n                      </div>\n                      <div>\n                        <UiCardTitle class=\"text-base\">{{ page.title }}</UiCardTitle>\n                        <UiCardDescription class=\"text-sm\">{{\n                          page.description\n                        }}</UiCardDescription>\n                      </div>\n                    </div>\n                    <Icon\n                      name=\"lucide:arrow-right\"\n                      class=\"text-muted-foreground h-4 w-4 transition-transform group-hover:translate-x-1\"\n                    />\n                  </div>\n                </UiCardHeader>\n              </UiCard>\n            </Motion>\n          </div>\n        </Motion>\n\n        <Motion as=\"div\" :variants=\"childVariant\" class=\"flex justify-center\">\n          <UiButton variant=\"outline\" @click=\"clearError({ redirect: '#' })\">\n            <Icon name=\"lucide:home\" class=\"mr-2 h-4 w-4\" />\n            Back to Homepage\n          </UiButton>\n        </Motion>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 15 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      statusCode?: number;\n      fatal?: boolean;\n      unhandled?: boolean;\n      statusMessage?: string;\n      message?: string;\n      data?: unknown;\n      cause?: unknown;\n    }>(),\n    {\n      statusCode: 404,\n      fatal: false,\n      unhandled: false,\n      statusMessage: \"\",\n      message: \"Page Not Found\",\n      data: undefined,\n      cause: undefined,\n    }\n  );\n\n  const title = computed(() => {\n    if (!props.message) return \"Error\";\n    return props.message;\n  });\n\n  useSeoMeta({ title });\n\n  const searchQuery = ref(\"\");\n\n  const popularPages = [\n    {\n      icon: \"lucide:book-open\",\n      title: \"Documentation\",\n      description: \"Complete guides and references\",\n      href: \"#\",\n    },\n    {\n      icon: \"lucide:rocket\",\n      title: \"Getting Started\",\n      description: \"Quick start tutorials\",\n      href: \"#\",\n    },\n    {\n      icon: \"lucide:puzzle\",\n      title: \"Components\",\n      description: \"UI component library\",\n      href: \"#\",\n    },\n    {\n      icon: \"lucide:life-buoy\",\n      title: \"Support\",\n      description: \"Get help from our team\",\n      href: \"#\",\n    },\n  ];\n</script>\n","category":"Error","description":"Interactive error page with search. Features: Inline search, recent pages, quick actions","path":"Error/BlockError9.vue","components":["button","card","input"]},{"name":"Error Centered","fileName":"BlockErrorCentered.vue","file":"<template>\n  <!-- \n    Centered error page with radial pattern\n    Features: Radial dot pattern, centered content, animated entrance\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <div class=\"relative flex min-h-screen items-center\">\n      <div\n        class=\"absolute h-full w-full bg-[radial-gradient(var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(ellipse_closest-side_at_50%_50%,#000_60%,transparent_100%)] bg-size-[20px_20px]\"\n      />\n      <div class=\"relative z-1 container flex flex-col items-center justify-center text-center\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary mb-5 font-bold tracking-tight\">\n          {{ statusCode }} error\n        </Motion>\n        <Motion\n          as=\"h1\"\n          :variants=\"childVariant\"\n          class=\"text-4xl font-bold tracking-tight lg:text-5xl\"\n        >\n          {{ title }}\n        </Motion>\n        <Motion :variants=\"childVariant\">\n          <UiButton class=\"mt-5\" @click=\"clearError({ redirect: '#' })\">\n            Take me home\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </Motion>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      statusCode?: number;\n      fatal?: boolean;\n      unhandled?: boolean;\n      statusMessage?: string;\n      message?: string;\n      data?: unknown;\n      cause?: unknown;\n    }>(),\n    {\n      statusCode: 404,\n      fatal: false,\n      unhandled: false,\n      statusMessage: \"\",\n      message: \"We can't find this page\",\n      data: undefined,\n      cause: undefined,\n    }\n  );\n\n  const title = computed(() => {\n    if (!props.message) return \"Error\";\n    return props.message;\n  });\n\n  useSeoMeta({ title });\n</script>\n","category":"Error","description":"Centered error page with radial pattern. Features: Radial dot pattern, centered content, animated entrance","path":"Error/BlockErrorCentered.vue","components":["button"]},{"name":"Error Image","fileName":"BlockErrorImage.vue","file":"<template>\n  <!-- \n    Error page with split image layout\n    Features: Two-column split, decorative image, animated content\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <div class=\"relative flex min-h-screen items-center overflow-x-hidden\">\n      <div class=\"container flex w-full items-center justify-center md:w-1/2\">\n        <div>\n          <Motion\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-primary mb-5 font-bold tracking-tight\"\n          >\n            {{ statusCode }} error\n          </Motion>\n          <Motion\n            as=\"h1\"\n            :variants=\"childVariant\"\n            class=\"text-4xl font-bold tracking-tight lg:text-5xl\"\n          >\n            {{ title }}\n          </Motion>\n          <Motion :variants=\"childVariant\">\n            <UiButton class=\"mt-5\" @click=\"clearError({ redirect: '#' })\">\n              Take me home\n              <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n            </UiButton>\n          </Motion>\n        </div>\n      </div>\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, x: 30 },\n          animate: {\n            opacity: 1,\n            x: 0,\n            transition: {\n              type: 'spring',\n              stiffness: 200,\n              damping: 25,\n            },\n          },\n        }\"\n        class=\"hidden h-screen md:block md:w-1/2 lg:w-1/2\"\n      >\n        <img\n          src=\"https://images.unsplash.com/photo-1512551980832-13df02babc9e?q=60&w=2864&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n          alt=\"Error page image\"\n          class=\"size-full object-cover\"\n        />\n      </Motion>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      statusCode?: number;\n      fatal?: boolean;\n      unhandled?: boolean;\n      statusMessage?: string;\n      message?: string;\n      data?: unknown;\n      cause?: unknown;\n    }>(),\n    {\n      statusCode: 404,\n      fatal: false,\n      unhandled: false,\n      statusMessage: \"\",\n      message: \"We can't find this page\",\n      data: undefined,\n      cause: undefined,\n    }\n  );\n\n  const title = computed(() => {\n    if (!props.message) return \"Error\";\n    return props.message;\n  });\n\n  useSeoMeta({ title });\n</script>\n","category":"Error","description":"Error page with split image layout. Features: Two-column split, decorative image, animated content","path":"Error/BlockErrorImage.vue","components":["button"]},{"name":"Error Links","fileName":"BlockErrorLinks.vue","file":"<template>\n  <!-- \n    Error page with helpful links\n    Features: Grid pattern, quick navigation links, staggered animations\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <div class=\"relative flex min-h-screen items-center\">\n      <div\n        class=\"absolute inset-0 bg-[linear-gradient(to_right,--alpha(var(--color-border)/80%)_1px,transparent_1px),linear-gradient(to_bottom,--alpha(var(--color-border)/80%)_1px,transparent_1px)] mask-[radial-gradient(ellipse_closest-side_at_50%_0%,#000_70%,transparent_110%)] bg-size-[60px_60px]\"\n      />\n      <div class=\"relative z-1 container\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary mb-5 font-bold tracking-tight\">\n          {{ statusCode }} error\n        </Motion>\n        <Motion\n          as=\"h1\"\n          :variants=\"childVariant\"\n          class=\"text-4xl font-bold tracking-tight lg:text-5xl\"\n        >\n          {{ title }}\n        </Motion>\n        <Motion :variants=\"childVariant\">\n          <UiButton class=\"mt-5\" @click=\"clearError({ redirect: '#' })\">\n            Take me home\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </Motion>\n        <ul class=\"mt-10 flex flex-col gap-5\">\n          <Motion v-for=\"(l, i) in links\" :key=\"i\" :variants=\"childVariant\" as=\"li\">\n            <NuxtLink class=\"group inline-flex flex-col gap-0.5\" :to=\"l.href\">\n              <span\n                class=\"text-primary font-bold underline-offset-2 transition-all group-hover:translate-x-1 group-hover:underline\"\n              >\n                {{ l.title }}\n                <Icon\n                  name=\"lucide:arrow-right\"\n                  class=\"ml-1 inline h-4 w-4 transition-transform group-hover:translate-x-1\"\n                />\n              </span>\n              <span class=\"text-muted-foreground text-sm\">{{ l.text }}</span>\n            </NuxtLink>\n          </Motion>\n        </ul>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      statusCode?: number;\n      fatal?: boolean;\n      unhandled?: boolean;\n      statusMessage?: string;\n      message?: string;\n      data?: unknown;\n      cause?: unknown;\n    }>(),\n    {\n      statusCode: 404,\n      fatal: false,\n      unhandled: false,\n      statusMessage: \"\",\n      message: \"We can't find this page\",\n      data: undefined,\n      cause: undefined,\n    }\n  );\n\n  const title = computed(() => {\n    if (!props.message) return \"Error\";\n    return props.message;\n  });\n\n  useSeoMeta({ title });\n\n  const links = [\n    { title: \"Documentation\", href: \"#\", text: \"Learn more about the error\" },\n    { title: \"Contact support\", href: \"#\", text: \"Get help from our support team\" },\n    { title: \"Our blog\", href: \"#\", text: \"Read the latest news\" },\n  ];\n</script>\n","category":"Error","description":"Error page with helpful links. Features: Grid pattern, quick navigation links, staggered animations","path":"Error/BlockErrorLinks.vue","components":["button"]},{"name":"Event Detail 1","fileName":"BlockEventDetail1.vue","file":"<template>\n  <!--\n    Event popover\n    Features: Event chips on a week row that open a popover with title, time, place, description, attendees and actions, join, duplicate and delete buttons that update the row, and focus that returns to the chip when the popover closes\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-4xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">This week</h1>\n      <div class=\"mt-4 grid gap-3 md:grid-cols-5\">\n        <section\n          v-for=\"day in week\"\n          :key=\"day\"\n          class=\"min-h-48 rounded-xl border p-2.5\"\n          :aria-label=\"longDate(day)\"\n        >\n          <p class=\"text-muted-foreground mb-2 px-1 text-xs font-medium\">\n            {{ weekday(day) }} <span class=\"text-foreground\">{{ Number(day.slice(8)) }}</span>\n          </p>\n          <div class=\"space-y-1.5\">\n            <UiPopover v-for=\"event in eventsOn(day)\" :key=\"event.id\">\n              <UiPopoverTrigger as-child>\n                <button\n                  type=\"button\"\n                  class=\"focus-visible:ring-ring/50 w-full truncate rounded-md border-l-4 px-2 py-1.5 text-left text-xs font-medium outline-none focus-visible:ring-[3px]\"\n                  :class=\"colors[event.color]\"\n                >\n                  <span class=\"block truncate\">{{ event.title }}</span>\n                  <span class=\"block font-normal opacity-80\">{{ clock(event.start) }}</span>\n                </button>\n              </UiPopoverTrigger>\n              <UiPopoverContent class=\"w-80 p-0\" align=\"start\">\n                <div class=\"space-y-3 p-4\">\n                  <div class=\"flex items-start gap-3\">\n                    <span class=\"mt-1.5 size-3 shrink-0 rounded-full\" :class=\"dots[event.color]\" />\n                    <div class=\"min-w-0\">\n                      <p class=\"font-semibold\">{{ event.title }}</p>\n                      <p class=\"text-muted-foreground text-sm\">\n                        {{ longDate(event.date) }}, {{ clock(event.start) }} to\n                        {{ clock(event.end) }}\n                      </p>\n                    </div>\n                  </div>\n                  <p class=\"text-muted-foreground flex items-center gap-2 text-sm\">\n                    <Icon name=\"lucide:map-pin\" class=\"size-4 shrink-0\" />{{ event.place }}\n                  </p>\n                  <p class=\"text-sm\">{{ event.description }}</p>\n                  <div class=\"flex items-center gap-2\">\n                    <div class=\"flex -space-x-1.5\">\n                      <UiAvatar\n                        v-for=\"person in event.people\"\n                        :key=\"person\"\n                        :src=\"`https://i.pravatar.cc/80?img=${person}`\"\n                        fallback=\"?\"\n                        class=\"ring-background size-6 ring-2\"\n                      />\n                    </div>\n                    <span class=\"text-muted-foreground text-xs\"\n                      >{{ event.people.length }} going</span\n                    >\n                  </div>\n                </div>\n                <div class=\"flex items-center gap-1 border-t p-2\">\n                  <UiButton size=\"sm\" @click=\"useSonner.success(`Joining ${event.title}`)\"\n                    ><Icon name=\"lucide:video\" class=\"size-4\" />Join</UiButton\n                  >\n                  <UiButton variant=\"ghost\" size=\"sm\" @click=\"duplicate(event)\"\n                    ><Icon name=\"lucide:copy\" class=\"size-4\" />Duplicate</UiButton\n                  >\n                  <UiButton\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    class=\"text-destructive hover:text-destructive ml-auto\"\n                    :aria-label=\"`Delete ${event.title}`\"\n                    @click=\"remove(event)\"\n                    ><Icon name=\"lucide:trash-2\" class=\"size-4\"\n                  /></UiButton>\n                </div>\n              </UiPopoverContent>\n            </UiPopover>\n            <p v-if=\"!eventsOn(day).length\" class=\"text-muted-foreground px-1 text-xs\">No events</p>\n          </div>\n        </section>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"blue\" | \"green\" | \"amber\" | \"rose\" | \"violet\";\n  type Event = {\n    id: string;\n    title: string;\n    date: string;\n    start: string;\n    end: string;\n    place: string;\n    description: string;\n    color: Color;\n    people: number[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      events?: Event[];\n    }>(),\n    {\n      today: \"2026-10-19\",\n      events: () => [\n        {\n          id: \"p1\",\n          title: \"Standup\",\n          date: \"2026-10-19\",\n          start: \"09:00\",\n          end: \"09:30\",\n          place: \"Video call\",\n          description: \"Quick round of updates and blockers.\",\n          color: \"blue\",\n          people: [12, 15, 44],\n        },\n        {\n          id: \"p2\",\n          title: \"Customer interview\",\n          date: \"2026-10-19\",\n          start: \"11:00\",\n          end: \"12:00\",\n          place: \"Video call\",\n          description: \"Talk to a customer about how they use reports.\",\n          color: \"amber\",\n          people: [32, 45],\n        },\n        {\n          id: \"p3\",\n          title: \"1:1 with Sofia\",\n          date: \"2026-10-20\",\n          start: \"13:00\",\n          end: \"14:00\",\n          place: \"Cafe on 5th\",\n          description: \"Career growth and next quarter goals.\",\n          color: \"green\",\n          people: [45],\n        },\n        {\n          id: \"p4\",\n          title: \"Sprint planning\",\n          date: \"2026-10-21\",\n          start: \"10:00\",\n          end: \"11:30\",\n          place: \"Meeting room 1\",\n          description: \"Pick the stories for the next sprint and set the goal.\",\n          color: \"violet\",\n          people: [12, 15, 45, 44],\n        },\n        {\n          id: \"p5\",\n          title: \"Demo day\",\n          date: \"2026-10-23\",\n          start: \"16:00\",\n          end: \"17:00\",\n          place: \"Main hall\",\n          description: \"Teams show what they shipped this month.\",\n          color: \"rose\",\n          people: [33, 32, 12],\n        },\n      ],\n    }\n  );\n\n  const items = ref<Event[]>(\n    props.events.map((event) => ({ ...event, people: [...event.people] }))\n  );\n  const colors: Record<Color, string> = {\n    blue: \"border-blue-500 bg-blue-100 text-blue-900 dark:bg-blue-500/20 dark:text-blue-200\",\n    green: \"border-green-500 bg-green-100 text-green-900 dark:bg-green-500/20 dark:text-green-200\",\n    amber: \"border-amber-500 bg-amber-100 text-amber-900 dark:bg-amber-500/20 dark:text-amber-200\",\n    rose: \"border-rose-500 bg-rose-100 text-rose-900 dark:bg-rose-500/20 dark:text-rose-200\",\n    violet:\n      \"border-violet-500 bg-violet-100 text-violet-900 dark:bg-violet-500/20 dark:text-violet-200\",\n  };\n  const dots: Record<Color, string> = {\n    blue: \"bg-blue-500\",\n    green: \"bg-green-500\",\n    amber: \"bg-amber-500\",\n    rose: \"bg-rose-500\",\n    violet: \"bg-violet-500\",\n  };\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n  const weekday = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", { weekday: \"short\", timeZone: \"UTC\" });\n  const longDate = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n\n  const week = computed(() => {\n    const date = parse(props.today);\n    const offset = (date.getUTCDay() + 6) % 7;\n    return Array.from({ length: 5 }, (_, index) => {\n      const day = parse(props.today);\n      day.setUTCDate(day.getUTCDate() - offset + index);\n      return day.toISOString().slice(0, 10);\n    });\n  });\n\n  const eventsOn = (day: string) =>\n    items.value\n      .filter((event) => event.date === day)\n      .sort((a, b) => a.start.localeCompare(b.start));\n\n  function duplicate(event: Event) {\n    items.value.push({\n      ...event,\n      id: `${event.id}-copy-${items.value.length}`,\n      title: `${event.title} (copy)`,\n      people: [...event.people],\n    });\n    useSonner.success(\"Event duplicated\");\n  }\n\n  function remove(event: Event) {\n    items.value = items.value.filter((item) => item.id !== event.id);\n    useSonner.success(`Deleted ${event.title}`);\n  }\n</script>\n","category":"EventDetail","description":"Event popover. Features: Event chips on a week row that open a popover with title, time, place, description, attendees and actions, join, duplicate and delete buttons that update the row, and focus that returns to the chip when the popover closes","path":"Calendar/EventDetail/BlockEventDetail1.vue","components":["avatar","button","container","popover"]},{"name":"Event Detail 2","fileName":"BlockEventDetail2.vue","file":"<template>\n  <!--\n    Event page\n    Features: Cover image, date, place and host, an about section, a schedule list, a map placeholder with a directions button, a sticky ticket card with a quantity stepper and total and a share button that copies the link\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <img\n        :src=\"event.cover\"\n        :alt=\"event.title\"\n        class=\"aspect-[21/9] w-full rounded-2xl object-cover\"\n        loading=\"lazy\"\n      />\n      <div class=\"mt-8 grid gap-10 lg:grid-cols-[1fr_20rem]\">\n        <div>\n          <UiBadge variant=\"soft\" color=\"blue\" shape=\"pill\">{{ event.category }}</UiBadge>\n          <h1 class=\"mt-3 text-3xl font-bold tracking-tight\">{{ event.title }}</h1>\n          <ul class=\"text-muted-foreground mt-4 space-y-2 text-sm\">\n            <li class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:calendar\" class=\"size-4\" />{{ event.when }}\n            </li>\n            <li class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:map-pin\" class=\"size-4\" />{{ event.place }}\n            </li>\n          </ul>\n          <div class=\"mt-5 flex items-center gap-3\">\n            <UiAvatar\n              :src=\"`https://i.pravatar.cc/80?img=${event.host.avatar}`\"\n              :fallback=\"event.host.name.slice(0, 1)\"\n              class=\"size-9\"\n            />\n            <p class=\"text-sm\">Hosted by <span class=\"font-medium\">{{ event.host.name }}</span></p>\n          </div>\n\n          <section class=\"mt-10\">\n            <h2 class=\"text-lg font-semibold\">About this event</h2>\n            <p\n              v-for=\"paragraph in event.about\"\n              :key=\"paragraph\"\n              class=\"text-muted-foreground mt-3 leading-relaxed\"\n            >\n              {{ paragraph }}\n            </p>\n          </section>\n\n          <section class=\"mt-10\">\n            <h2 class=\"text-lg font-semibold\">Schedule</h2>\n            <ol class=\"mt-4 divide-y rounded-xl border\">\n              <li v-for=\"item in event.schedule\" :key=\"item.time\" class=\"flex gap-4 px-4 py-3\">\n                <span class=\"text-muted-foreground w-20 shrink-0 text-sm tabular-nums\">{{\n                  item.time\n                }}</span>\n                <div>\n                  <p class=\"font-medium\">{{ item.title }}</p>\n                  <p class=\"text-muted-foreground text-sm\">{{ item.speaker }}</p>\n                </div>\n              </li>\n            </ol>\n          </section>\n\n          <section class=\"mt-10\">\n            <h2 class=\"text-lg font-semibold\">Location</h2>\n            <div\n              class=\"bg-muted text-muted-foreground mt-4 grid aspect-[16/6] place-items-center rounded-xl border bg-[radial-gradient(circle_at_1px_1px,var(--color-border)_1px,transparent_0)] [background-size:20px_20px]\"\n            >\n              <span\n                class=\"bg-background flex items-center gap-2 rounded-full border px-3 py-1.5 text-sm shadow-sm\"\n                ><Icon name=\"lucide:map-pin\" class=\"text-primary size-4\" />{{ event.place }}</span\n              >\n            </div>\n            <UiButton\n              variant=\"outline\"\n              size=\"sm\"\n              class=\"mt-3\"\n              @click=\"useSonner.info('Open directions in your map app')\"\n              ><Icon name=\"lucide:navigation\" class=\"size-4\" />Get directions</UiButton\n            >\n          </section>\n        </div>\n\n        <aside class=\"lg:sticky lg:top-6 lg:self-start\">\n          <UiCard class=\"gap-4\">\n            <UiCardHeader>\n              <UiCardTitle class=\"text-2xl\">{{\n                event.price === 0 ? \"Free\" : money(event.price)\n              }}</UiCardTitle>\n              <UiCardDescription>{{ left }} of {{ event.capacity }} spots left</UiCardDescription>\n            </UiCardHeader>\n            <UiCardContent class=\"space-y-4\">\n              <div class=\"flex items-center justify-between\">\n                <span id=\"ticket-qty\" class=\"text-sm font-medium\">Tickets</span>\n                <div class=\"flex items-center gap-2\" role=\"group\" aria-labelledby=\"ticket-qty\">\n                  <UiButton\n                    variant=\"outline\"\n                    size=\"icon-sm\"\n                    aria-label=\"Fewer tickets\"\n                    :disabled=\"quantity <= 1\"\n                    @click=\"quantity--\"\n                    ><Icon name=\"lucide:minus\" class=\"size-4\"\n                  /></UiButton>\n                  <span class=\"w-6 text-center tabular-nums\" aria-live=\"polite\">{{\n                    quantity\n                  }}</span>\n                  <UiButton\n                    variant=\"outline\"\n                    size=\"icon-sm\"\n                    aria-label=\"More tickets\"\n                    :disabled=\"quantity >= Math.min(left, 6)\"\n                    @click=\"quantity++\"\n                    ><Icon name=\"lucide:plus\" class=\"size-4\"\n                  /></UiButton>\n                </div>\n              </div>\n              <div class=\"flex justify-between border-t pt-4 font-semibold\">\n                <span>Total</span\n                ><span class=\"tabular-nums\">{{ money(event.price * quantity) }}</span>\n              </div>\n            </UiCardContent>\n            <UiCardFooter class=\"flex-col gap-2\">\n              <UiButton\n                class=\"w-full\"\n                @click=\"useSonner.success(`${quantity} ticket${quantity > 1 ? 's' : ''} reserved`)\"\n                >Reserve</UiButton\n              >\n              <UiButton variant=\"outline\" class=\"w-full\" @click=\"share\"\n                ><Icon :name=\"copied ? 'lucide:check' : 'lucide:share-2'\" class=\"size-4\" />{{\n                  copied ? \"Link copied\" : \"Share\"\n                }}</UiButton\n              >\n            </UiCardFooter>\n          </UiCard>\n        </aside>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type EventInfo = {\n    title: string;\n    category: string;\n    cover: string;\n    when: string;\n    place: string;\n    host: { name: string; avatar: number };\n    about: string[];\n    schedule: { time: string; title: string; speaker: string }[];\n    price: number;\n    capacity: number;\n    booked: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      event?: EventInfo;\n    }>(),\n    {\n      event: () => ({\n        title: \"Design Systems Meetup\",\n        category: \"Meetup\",\n        cover: \"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1600&q=80\",\n        when: \"Thursday, November 5, 6:00 PM to 9:00 PM\",\n        place: \"Northside Hall, 14 Mercer Street, New York\",\n        host: { name: \"Maya Patel\", avatar: 32 },\n        about: [\n          \"An evening for people who build and maintain design systems. Three short talks, a long break to meet people and an open panel at the end.\",\n          \"Bring a laptop if you want to join the workshop table. Food and drinks are included with every ticket.\",\n        ],\n        schedule: [\n          { time: \"6:00 PM\", title: \"Doors open and welcome drinks\", speaker: \"Hosts\" },\n          { time: \"6:30 PM\", title: \"Tokens that survive a rebrand\", speaker: \"Leo Fischer\" },\n          {\n            time: \"7:15 PM\",\n            title: \"Documenting components people read\",\n            speaker: \"Sofia Alvarez\",\n          },\n          { time: \"8:00 PM\", title: \"Open panel and questions\", speaker: \"All speakers\" },\n        ],\n        price: 25,\n        capacity: 120,\n        booked: 96,\n      }),\n    }\n  );\n\n  const quantity = ref(1);\n  const left = computed(() => props.event.capacity - props.event.booked);\n  const money = (value: number) => `$${value.toFixed(2).replace(/\\.00$/, \"\")}`;\n\n  const { copy, copied } = useClipboard({ copiedDuring: 2000 });\n  function share() {\n    copy(`${window.location.origin}/events/design-systems-meetup`);\n  }\n</script>\n","category":"EventDetail","description":"Event page. Features: Cover image, date, place and host, an about section, a schedule list, a map placeholder with a directions button, a sticky ticket card with a quantity stepper and total and a share button that copies the link","path":"Calendar/EventDetail/BlockEventDetail2.vue","components":["avatar","badge","button","card","container"]},{"name":"Event Detail 3","fileName":"BlockEventDetail3.vue","file":"<template>\n  <!--\n    RSVP card\n    Features: Going, maybe and can not go choices, a guest stepper, a dietary note, live counts that update with your answer, who is going avatars and a saved state with a change answer button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-md gap-5\">\n      <UiCardHeader>\n        <UiCardTitle>{{ event.title }}</UiCardTitle>\n        <UiCardDescription>{{ event.when }}</UiCardDescription>\n      </UiCardHeader>\n      <UiCardContent class=\"space-y-5\">\n        <div v-if=\"!saved\" class=\"space-y-5\">\n          <div class=\"space-y-2\">\n            <p id=\"rsvp-label\" class=\"text-sm font-medium\">Will you come?</p>\n            <UiToggleGroup\n              :model-value=\"answer\"\n              type=\"single\"\n              variant=\"outline\"\n              class=\"w-full\"\n              aria-labelledby=\"rsvp-label\"\n              @update:model-value=\"(value) => (answer = (value as Answer) || '')\"\n            >\n              <UiToggleGroupItem value=\"going\" class=\"flex-1\"\n                ><Icon name=\"lucide:check\" class=\"size-4\" />Going</UiToggleGroupItem\n              >\n              <UiToggleGroupItem value=\"maybe\" class=\"flex-1\"\n                ><Icon name=\"lucide:circle-help\" class=\"size-4\" />Maybe</UiToggleGroupItem\n              >\n              <UiToggleGroupItem value=\"no\" class=\"flex-1\"\n                ><Icon name=\"lucide:x\" class=\"size-4\" />Can not go</UiToggleGroupItem\n              >\n            </UiToggleGroup>\n          </div>\n\n          <div v-if=\"answer === 'going'\" class=\"space-y-4\">\n            <div class=\"flex items-center justify-between\">\n              <div>\n                <p id=\"guest-label\" class=\"text-sm font-medium\">Guests</p>\n                <p class=\"text-muted-foreground text-xs\">\n                  Up to {{ event.maxGuests }} extra people\n                </p>\n              </div>\n              <div class=\"flex items-center gap-2\" role=\"group\" aria-labelledby=\"guest-label\">\n                <UiButton\n                  variant=\"outline\"\n                  size=\"icon-sm\"\n                  aria-label=\"Fewer guests\"\n                  :disabled=\"guests === 0\"\n                  @click=\"guests--\"\n                  ><Icon name=\"lucide:minus\" class=\"size-4\"\n                /></UiButton>\n                <span class=\"w-5 text-center tabular-nums\" aria-live=\"polite\">{{ guests }}</span>\n                <UiButton\n                  variant=\"outline\"\n                  size=\"icon-sm\"\n                  aria-label=\"More guests\"\n                  :disabled=\"guests >= event.maxGuests\"\n                  @click=\"guests++\"\n                  ><Icon name=\"lucide:plus\" class=\"size-4\"\n                /></UiButton>\n              </div>\n            </div>\n            <div class=\"space-y-2\">\n              <UiLabel for=\"rsvp-diet\">Dietary needs (optional)</UiLabel>\n              <UiInput id=\"rsvp-diet\" v-model=\"diet\" placeholder=\"Vegetarian, nut allergy\" />\n            </div>\n          </div>\n\n          <UiButton class=\"w-full\" :disabled=\"!answer\" @click=\"save\">Send my answer</UiButton>\n        </div>\n\n        <div v-else class=\"bg-muted/50 rounded-xl p-4 text-center\" role=\"status\">\n          <Icon :name=\"answerIcon\" class=\"mx-auto size-6\" />\n          <p class=\"mt-2 font-medium\">{{ summary }}</p>\n          <UiButton variant=\"link\" size=\"sm\" @click=\"saved = false\">Change my answer</UiButton>\n        </div>\n\n        <div class=\"border-t pt-5\">\n          <div class=\"grid grid-cols-3 text-center\" aria-live=\"polite\">\n            <div v-for=\"item in counts\" :key=\"item.label\">\n              <p class=\"text-2xl font-bold tabular-nums\">{{ item.value }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ item.label }}</p>\n            </div>\n          </div>\n          <div class=\"mt-4 flex items-center gap-2\">\n            <div class=\"flex -space-x-1.5\">\n              <UiAvatar\n                v-for=\"person in event.going\"\n                :key=\"person\"\n                :src=\"`https://i.pravatar.cc/80?img=${person}`\"\n                fallback=\"?\"\n                class=\"ring-background size-7 ring-2\"\n              />\n            </div>\n            <span class=\"text-muted-foreground text-xs\"\n              >and {{ goingTotal - event.going.length }} others are going</span\n            >\n          </div>\n        </div>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Answer = \"going\" | \"maybe\" | \"no\" | \"\";\n\n  const props = withDefaults(\n    defineProps<{\n      event?: {\n        title: string;\n        when: string;\n        maxGuests: number;\n        going: number[];\n        counts: { going: number; maybe: number; no: number };\n      };\n    }>(),\n    {\n      event: () => ({\n        title: \"Team offsite dinner\",\n        when: \"Friday, October 30, 7:00 PM\",\n        maxGuests: 3,\n        going: [32, 12, 45, 15, 44],\n        counts: { going: 24, maybe: 6, no: 3 },\n      }),\n    }\n  );\n\n  const answer = ref<Answer>(\"\");\n  const guests = ref(0);\n  const diet = ref(\"\");\n  const saved = ref(false);\n\n  const counts = computed(() => {\n    const base = { ...props.event.counts };\n    if (saved.value && answer.value)\n      base[answer.value] += answer.value === \"going\" ? 1 + guests.value : 1;\n    return [\n      { label: \"Going\", value: base.going },\n      { label: \"Maybe\", value: base.maybe },\n      { label: \"Can not go\", value: base.no },\n    ];\n  });\n  const goingTotal = computed(() => counts.value[0]!.value);\n\n  const answerIcon = computed(\n    () =>\n      ({\n        going: \"lucide:party-popper\",\n        maybe: \"lucide:circle-help\",\n        no: \"lucide:heart-crack\",\n        \"\": \"lucide:circle\",\n      })[answer.value]\n  );\n  const summary = computed(() => {\n    if (answer.value === \"going\")\n      return guests.value\n        ? `You are going with ${guests.value} guest${guests.value > 1 ? \"s\" : \"\"}.`\n        : \"You are going.\";\n    if (answer.value === \"maybe\") return \"You said maybe. We will keep a spot for you.\";\n    return \"You can not make it. Thanks for letting us know.\";\n  });\n\n  function save() {\n    saved.value = true;\n    useSonner.success(\"Answer sent\");\n  }\n</script>\n","category":"EventDetail","description":"RSVP card. Features: Going, maybe and can not go choices, a guest stepper, a dietary note, live counts that update with your answer, who is going avatars and a saved state with a change answer button","path":"Calendar/EventDetail/BlockEventDetail3.vue","components":["avatar","button","card","container","input","label","toggle-group"]},{"name":"Event Detail 4","fileName":"BlockEventDetail4.vue","file":"<template>\n  <!--\n    Attendee list\n    Features: Search by name, filter tabs with counts for going, maybe and declined, avatar rows with role and status badges, a host label, remove and message actions and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex flex-wrap items-center justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Attendees</h1>\n          <p class=\"text-muted-foreground text-sm\">{{ people.length }} people invited</p>\n        </div>\n        <UiButton size=\"sm\" @click=\"useSonner.info('Open your invite form here')\"\n          ><Icon name=\"lucide:user-plus\" class=\"size-4\" />Invite</UiButton\n        >\n      </div>\n\n      <div class=\"relative mt-5\">\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput\n          v-model=\"query\"\n          class=\"pl-9\"\n          placeholder=\"Search people\"\n          aria-label=\"Search attendees\"\n        />\n      </div>\n\n      <UiTabs v-model=\"tab\" class=\"mt-4\">\n        <UiTabsList class=\"w-full\">\n          <UiTabsTrigger v-for=\"item in tabs\" :key=\"item.value\" :value=\"item.value\" class=\"flex-1\"\n            >{{ item.label\n            }}<span class=\"text-muted-foreground ml-1.5 text-xs\">{{\n              count(item.value)\n            }}</span></UiTabsTrigger\n          >\n        </UiTabsList>\n      </UiTabs>\n\n      <ul v-if=\"visible.length\" class=\"mt-4 divide-y rounded-xl border\" aria-live=\"polite\">\n        <li v-for=\"person in visible\" :key=\"person.id\" class=\"flex items-center gap-3 px-4 py-3\">\n          <UiAvatar\n            :src=\"`https://i.pravatar.cc/80?img=${person.avatar}`\"\n            :fallback=\"person.name.slice(0, 1)\"\n            class=\"size-10\"\n          />\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"flex items-center gap-2 truncate text-sm font-medium\">\n              {{ person.name }}\n              <UiBadge v-if=\"person.host\" variant=\"soft\" color=\"violet\" shape=\"pill\">Host</UiBadge>\n            </p>\n            <p class=\"text-muted-foreground truncate text-xs\">{{ person.role }}</p>\n          </div>\n          <UiBadge variant=\"soft\" shape=\"pill\" :color=\"statusColor[person.status]\">{{\n            statusLabel[person.status]\n          }}</UiBadge>\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon-sm\" :aria-label=\"`Actions for ${person.name}`\"\n                ><Icon name=\"lucide:ellipsis\" class=\"size-4\"\n              /></UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\">\n              <UiDropdownMenuItem @select=\"useSonner.info(`Message ${person.name}`)\"\n                ><Icon name=\"lucide:message-circle\" class=\"size-4\" />Message</UiDropdownMenuItem\n              >\n              <UiDropdownMenuItem\n                v-if=\"!person.host\"\n                class=\"text-destructive\"\n                @select=\"remove(person.id)\"\n                ><Icon name=\"lucide:user-minus\" class=\"size-4\" />Remove</UiDropdownMenuItem\n              >\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n        </li>\n      </ul>\n      <div\n        v-else\n        class=\"text-muted-foreground mt-4 rounded-xl border border-dashed py-12 text-center text-sm\"\n        aria-live=\"polite\"\n      >\n        <Icon name=\"lucide:users\" class=\"mx-auto mb-2 size-6\" />\n        Nobody matches.\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"going\" | \"maybe\" | \"declined\";\n  type Person = {\n    id: string;\n    name: string;\n    role: string;\n    avatar: number;\n    status: Status;\n    host?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      attendees?: Person[];\n    }>(),\n    {\n      attendees: () => [\n        {\n          id: \"a1\",\n          name: \"Maya Patel\",\n          role: \"Product designer\",\n          avatar: 32,\n          status: \"going\",\n          host: true,\n        },\n        { id: \"a2\", name: \"Leo Fischer\", role: \"Engineer\", avatar: 12, status: \"going\" },\n        { id: \"a3\", name: \"Sofia Alvarez\", role: \"Product manager\", avatar: 45, status: \"going\" },\n        { id: \"a4\", name: \"Noah Kim\", role: \"Engineering manager\", avatar: 15, status: \"maybe\" },\n        { id: \"a5\", name: \"Priya Nair\", role: \"Data analyst\", avatar: 44, status: \"maybe\" },\n        { id: \"a6\", name: \"Tom Becker\", role: \"Support lead\", avatar: 33, status: \"declined\" },\n        { id: \"a7\", name: \"Ines Costa\", role: \"Marketing\", avatar: 47, status: \"going\" },\n      ],\n    }\n  );\n\n  const tabs = [\n    { value: \"all\", label: \"All\" },\n    { value: \"going\", label: \"Going\" },\n    { value: \"maybe\", label: \"Maybe\" },\n    { value: \"declined\", label: \"Declined\" },\n  ];\n  const statusLabel: Record<Status, string> = {\n    going: \"Going\",\n    maybe: \"Maybe\",\n    declined: \"Declined\",\n  };\n  const statusColor: Record<Status, string> = { going: \"green\", maybe: \"amber\", declined: \"red\" };\n\n  const people = ref<Person[]>(props.attendees.map((person) => ({ ...person })));\n  const tab = ref(\"all\");\n  const query = ref(\"\");\n\n  const count = (value: string) =>\n    value === \"all\"\n      ? people.value.length\n      : people.value.filter((person) => person.status === value).length;\n\n  const visible = computed(() =>\n    people.value\n      .filter((person) => tab.value === \"all\" || person.status === tab.value)\n      .filter((person) => person.name.toLowerCase().includes(query.value.trim().toLowerCase()))\n  );\n\n  function remove(id: string) {\n    const person = people.value.find((item) => item.id === id);\n    people.value = people.value.filter((item) => item.id !== id);\n    if (person) useSonner.success(`Removed ${person.name}`);\n  }\n</script>\n","category":"EventDetail","description":"Attendee list. Features: Search by name, filter tabs with counts for going, maybe and declined, avatar rows with role and status badges, a host label, remove and message actions and an empty state","path":"Calendar/EventDetail/BlockEventDetail4.vue","components":["avatar","badge","button","container","dropdown-menu","input","tabs"]},{"name":"Event Detail 5","fileName":"BlockEventDetail5.vue","file":"<template>\n  <!--\n    Create event dialog\n    Features: Dialog with title, date, all day switch, start and end time, place, color swatches and guest chips added with Enter, a repeat select, inline validation including end after start and a list that shows the new event\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex items-center justify-between gap-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Calendar</h1>\n        <UiDialog v-model:open=\"open\">\n          <UiDialogTrigger as-child>\n            <UiButton><Icon name=\"lucide:plus\" class=\"size-4\" />New event</UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent class=\"sm:max-w-lg\">\n            <UiDialogHeader>\n              <UiDialogTitle>New event</UiDialogTitle>\n              <UiDialogDescription\n                >Add the details. Guests get an invitation by email.</UiDialogDescription\n              >\n            </UiDialogHeader>\n            <form class=\"grid gap-4\" novalidate @submit.prevent=\"save\">\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"event-title\">Title</UiLabel>\n                <UiInput\n                  id=\"event-title\"\n                  v-model=\"form.title\"\n                  placeholder=\"Team lunch\"\n                  :aria-invalid=\"!!errors.title\"\n                />\n                <p v-if=\"errors.title\" class=\"text-destructive text-sm\">{{ errors.title }}</p>\n              </div>\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"event-date\">Date</UiLabel>\n                <UiInput id=\"event-date\" v-model=\"form.date\" type=\"date\" />\n              </div>\n              <div class=\"flex items-center gap-2\">\n                <UiSwitch id=\"event-allday\" v-model=\"form.allDay\" />\n                <UiLabel for=\"event-allday\" class=\"font-normal\">All day</UiLabel>\n              </div>\n              <div v-if=\"!form.allDay\" class=\"grid grid-cols-2 gap-3\">\n                <div class=\"grid gap-1.5\">\n                  <UiLabel for=\"event-start\">Starts</UiLabel>\n                  <UiInput id=\"event-start\" v-model=\"form.start\" type=\"time\" />\n                </div>\n                <div class=\"grid gap-1.5\">\n                  <UiLabel for=\"event-end\">Ends</UiLabel>\n                  <UiInput\n                    id=\"event-end\"\n                    v-model=\"form.end\"\n                    type=\"time\"\n                    :aria-invalid=\"!!errors.time\"\n                  />\n                </div>\n                <p v-if=\"errors.time\" class=\"text-destructive col-span-2 text-sm\">\n                  {{ errors.time }}\n                </p>\n              </div>\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"event-place\">Place</UiLabel>\n                <UiInput id=\"event-place\" v-model=\"form.place\" placeholder=\"Add a room or a link\" />\n              </div>\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"event-guest\">Guests</UiLabel>\n                <div v-if=\"form.guests.length\" class=\"flex flex-wrap gap-1.5\">\n                  <UiBadge\n                    v-for=\"guest in form.guests\"\n                    :key=\"guest\"\n                    variant=\"soft\"\n                    shape=\"pill\"\n                    class=\"gap-1\"\n                  >\n                    {{ guest }}\n                    <button\n                      type=\"button\"\n                      :aria-label=\"`Remove ${guest}`\"\n                      @click=\"form.guests = form.guests.filter((item) => item !== guest)\"\n                    >\n                      <Icon name=\"lucide:x\" class=\"size-3\" />\n                    </button>\n                  </UiBadge>\n                </div>\n                <UiInput\n                  id=\"event-guest\"\n                  v-model=\"draft\"\n                  type=\"email\"\n                  placeholder=\"Type an email and press Enter\"\n                  @keydown.enter.prevent=\"addGuest\"\n                />\n                <p v-if=\"errors.guest\" class=\"text-destructive text-sm\">{{ errors.guest }}</p>\n              </div>\n              <div class=\"grid gap-1.5\">\n                <p id=\"event-color-label\" class=\"text-sm font-medium\">Color</p>\n                <UiRadioGroup\n                  v-model=\"form.color\"\n                  class=\"flex gap-2\"\n                  aria-labelledby=\"event-color-label\"\n                >\n                  <label v-for=\"item in colorNames\" :key=\"item\" class=\"relative cursor-pointer\">\n                    <UiRadioGroupItem\n                      :value=\"item\"\n                      :aria-label=\"item\"\n                      class=\"peer absolute inset-0 size-full cursor-pointer opacity-0\"\n                    />\n                    <span\n                      class=\"ring-offset-background peer-data-[state=checked]:ring-foreground peer-focus-visible:ring-ring block size-6 rounded-full ring-2 ring-transparent ring-offset-2\"\n                      :class=\"swatches[item]\"\n                    />\n                  </label>\n                </UiRadioGroup>\n              </div>\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"event-repeat\">Repeat</UiLabel>\n                <UiSelect v-model=\"form.repeat\">\n                  <UiSelectTrigger id=\"event-repeat\"><UiSelectValue /></UiSelectTrigger>\n                  <UiSelectContent>\n                    <UiSelectItem value=\"none\">Does not repeat</UiSelectItem>\n                    <UiSelectItem value=\"daily\">Every day</UiSelectItem>\n                    <UiSelectItem value=\"weekly\">Every week</UiSelectItem>\n                    <UiSelectItem value=\"monthly\">Every month</UiSelectItem>\n                  </UiSelectContent>\n                </UiSelect>\n              </div>\n              <UiDialogFooter>\n                <UiButton type=\"button\" variant=\"outline\" @click=\"open = false\">Cancel</UiButton>\n                <UiButton type=\"submit\">Create event</UiButton>\n              </UiDialogFooter>\n            </form>\n          </UiDialogContent>\n        </UiDialog>\n      </div>\n\n      <ul class=\"mt-6 space-y-2\" aria-label=\"Events\" aria-live=\"polite\">\n        <li\n          v-for=\"event in sorted\"\n          :key=\"event.id\"\n          class=\"flex items-center gap-3 rounded-xl border p-4\"\n        >\n          <span class=\"h-10 w-1 shrink-0 rounded-full\" :class=\"swatches[event.color]\" />\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate font-medium\">{{ event.title }}</p>\n            <p class=\"text-muted-foreground truncate text-sm\">\n              {{ longDate(event.date) }},\n              {{ event.allDay ? \"All day\" : `${clock(event.start)} to ${clock(event.end)}` }}\n              <template v-if=\"event.place\"> at {{ event.place }}</template>\n            </p>\n          </div>\n          <UiBadge v-if=\"event.repeat !== 'none'\" variant=\"soft\" shape=\"pill\">{{\n            repeatLabel[event.repeat]\n          }}</UiBadge>\n          <span\n            v-if=\"event.guests.length\"\n            class=\"text-muted-foreground flex items-center gap-1 text-xs\"\n            ><Icon name=\"lucide:users\" class=\"size-3.5\" />{{ event.guests.length }}</span\n          >\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            :aria-label=\"`Delete ${event.title}`\"\n            @click=\"remove(event.id)\"\n            ><Icon name=\"lucide:trash-2\" class=\"size-4\"\n          /></UiButton>\n        </li>\n        <li\n          v-if=\"!sorted.length\"\n          class=\"text-muted-foreground rounded-xl border border-dashed py-12 text-center text-sm\"\n        >\n          No events yet. Create your first one.\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"blue\" | \"green\" | \"amber\" | \"rose\" | \"violet\";\n  type Repeat = \"none\" | \"daily\" | \"weekly\" | \"monthly\";\n  type Event = {\n    id: string;\n    title: string;\n    date: string;\n    allDay: boolean;\n    start: string;\n    end: string;\n    place: string;\n    color: Color;\n    guests: string[];\n    repeat: Repeat;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      events?: Event[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      events: () => [\n        {\n          id: \"c1\",\n          title: \"Weekly planning\",\n          date: \"2026-10-19\",\n          allDay: false,\n          start: \"10:00\",\n          end: \"11:00\",\n          place: \"Meeting room 2\",\n          color: \"blue\",\n          guests: [\"leo@example.com\", \"sofia@example.com\"],\n          repeat: \"weekly\",\n        },\n        {\n          id: \"c2\",\n          title: \"Product launch\",\n          date: \"2026-10-22\",\n          allDay: true,\n          start: \"\",\n          end: \"\",\n          place: \"\",\n          color: \"rose\",\n          guests: [],\n          repeat: \"none\",\n        },\n      ],\n    }\n  );\n\n  const colorNames: Color[] = [\"blue\", \"green\", \"amber\", \"rose\", \"violet\"];\n  const swatches: Record<Color, string> = {\n    blue: \"bg-blue-500\",\n    green: \"bg-green-500\",\n    amber: \"bg-amber-500\",\n    rose: \"bg-rose-500\",\n    violet: \"bg-violet-500\",\n  };\n  const repeatLabel: Record<Repeat, string> = {\n    none: \"\",\n    daily: \"Daily\",\n    weekly: \"Weekly\",\n    monthly: \"Monthly\",\n  };\n\n  const blank = () => ({\n    title: \"\",\n    date: props.today,\n    allDay: false as boolean,\n    start: \"09:00\",\n    end: \"10:00\",\n    place: \"\",\n    color: \"blue\" as Color,\n    guests: [] as string[],\n    repeat: \"none\" as Repeat,\n  });\n\n  const items = ref<Event[]>(\n    props.events.map((event) => ({ ...event, guests: [...event.guests] }))\n  );\n  const open = ref(false);\n  const form = reactive(blank());\n  const draft = ref(\"\");\n  const errors = reactive({ title: \"\", time: \"\", guest: \"\" });\n\n  const sorted = computed(() =>\n    [...items.value].sort((a, b) => `${a.date}${a.start}`.localeCompare(`${b.date}${b.start}`))\n  );\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const longDate = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", {\n      weekday: \"short\",\n      month: \"short\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n\n  function addGuest() {\n    const value = draft.value.trim();\n    if (!value) return;\n    if (!/^\\S+@\\S+\\.\\S+$/.test(value)) {\n      errors.guest = \"Enter a valid email address.\";\n      return;\n    }\n    errors.guest = \"\";\n    if (!form.guests.includes(value)) form.guests.push(value);\n    draft.value = \"\";\n  }\n\n  function save() {\n    errors.title = form.title.trim() ? \"\" : \"Give the event a title.\";\n    errors.time = form.allDay || form.end > form.start ? \"\" : \"The end must be after the start.\";\n    if (errors.title || errors.time) return;\n    items.value.push({\n      id: `new-${items.value.length}-${form.title}`,\n      title: form.title.trim(),\n      date: form.date,\n      allDay: form.allDay,\n      start: form.allDay ? \"\" : form.start,\n      end: form.allDay ? \"\" : form.end,\n      place: form.place.trim(),\n      color: form.color,\n      guests: [...form.guests],\n      repeat: form.repeat,\n    });\n    useSonner.success(\"Event created\");\n    Object.assign(form, blank());\n    draft.value = \"\";\n    open.value = false;\n  }\n\n  function remove(id: string) {\n    items.value = items.value.filter((event) => event.id !== id);\n  }\n</script>\n","category":"EventDetail","description":"Create event dialog. Features: Dialog with title, date, all day switch, start and end time, place, color swatches and guest chips added with Enter, a repeat select, inline validation including end after start and a list that shows the new event","path":"Calendar/EventDetail/BlockEventDetail5.vue","components":["badge","button","container","dialog","input","label","radio-group","select","switch"]},{"name":"FAQ 1","fileName":"BlockFAQ1.vue","file":"<template>\n  <!-- \n    Grid FAQ layout with icon cards\n    Features: Three-column grid, icon cards, staggered animations, centered text\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-16\">\n      <UiContainer class=\"py-16 text-center lg:py-24\">\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n        >\n          Frequently asked questions\n        </Motion>\n\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n        >\n          Everything you need to know about the product and billing.\n        </Motion>\n      </UiContainer>\n      <section class=\"grid grid-cols-1 gap-10 md:grid-cols-2 lg:grid-cols-3 lg:gap-y-12\">\n        <Motion\n          v-for=\"(faq, n) in faqs\"\n          :key=\"n\"\n          :variants=\"childVariant\"\n          class=\"flex flex-col items-center text-center\"\n        >\n          <div\n            class=\"bg-primary/5 hover:bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg border transition-colors\"\n          >\n            <Icon :name=\"faq.icon\" class=\"text-primary h-6 w-6\" />\n          </div>\n          <p class=\"mt-5 text-lg font-semibold\">{{ faq.question }}</p>\n          <p class=\"text-muted-foreground mt-2\">\n            {{ faq.answer }}\n          </p>\n        </Motion>\n      </section>\n\n      <Motion as-child :variants=\"childVariant\">\n        <section\n          class=\"bg-muted/50 dark:bg-muted/20 mx-auto mt-16 flex flex-col items-center gap-6 rounded-lg py-8 text-center\"\n        >\n          <p class=\"text-lg font-semibold\">Still have questions?</p>\n          <p class=\"text-muted-foreground\">\n            Can't find the answer you're looking for? Please chat to our friendly team.\n          </p>\n          <UiButton>\n            Get in touch\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </section>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const faqs = [\n    {\n      icon: \"lucide:sparkles\",\n      question: \"Is there a free trial available?\",\n      answer:\n        \"Yes, you can try us for free for 30 days. Our friendly team will work with you to get you up and running as soon as possible.\",\n    },\n    {\n      icon: \"lucide:credit-card\",\n      question: \"Can I change my plan later?\",\n      answer:\n        \"Of course! You can upgrade or downgrade your plan at any time. Changes will be reflected in your next billing cycle.\",\n    },\n    {\n      icon: \"lucide:users\",\n      question: \"What is your cancellation policy?\",\n      answer:\n        \"You can cancel your subscription at any time. Your account will remain active until the end of your billing period.\",\n    },\n    {\n      icon: \"lucide:lock\",\n      question: \"Is my data secure?\",\n      answer:\n        \"Absolutely. We use industry-standard encryption and security measures to protect your data at all times.\",\n    },\n    {\n      icon: \"lucide:headphones\",\n      question: \"Do you offer customer support?\",\n      answer:\n        \"Yes! Our support team is available 24/7 via email and live chat to help you with any questions or issues.\",\n    },\n    {\n      icon: \"lucide:zap\",\n      question: \"How do I get started?\",\n      answer:\n        \"Simply sign up for an account, choose your plan, and you'll be up and running in minutes with our quick onboarding process.\",\n    },\n  ];\n</script>\n","category":"FAQ","description":"Grid FAQ layout with icon cards. Features: Three-column grid, icon cards, staggered animations, centered text","path":"FAQ/BlockFAQ1.vue","components":["button","container"]},{"name":"FAQ 10","fileName":"BlockFAQ10.vue","file":"<template>\n  <!--\n    FAQ with support contact card\n    Features: Grouped accordions with expand all and collapse all, sticky support card with team avatars, response time and contact actions\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"max-w-2xl\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">Questions about pricing and plans</h2>\n        <p class=\"text-muted-foreground mt-3 text-lg\">\n          The quick answers. For anything else, our team replies within a few hours.\n        </p>\n      </div>\n\n      <div class=\"mt-10 grid gap-8 lg:grid-cols-[1fr_20rem]\">\n        <div class=\"min-w-0\">\n          <div class=\"flex items-center justify-between gap-3\">\n            <p class=\"text-muted-foreground text-sm\" role=\"status\">\n              {{ open.length }} of {{ total }} open\n            </p>\n            <div class=\"flex gap-2\">\n              <UiButton\n                variant=\"outline\"\n                size=\"sm\"\n                :disabled=\"open.length === total\"\n                @click=\"expandAll\"\n              >\n                Expand all\n              </UiButton>\n              <UiButton variant=\"outline\" size=\"sm\" :disabled=\"!open.length\" @click=\"open = []\">\n                Collapse all\n              </UiButton>\n            </div>\n          </div>\n\n          <UiAccordion v-model=\"open\" type=\"multiple\" class=\"mt-4 space-y-6\">\n            <section v-for=\"group in groups\" :key=\"group.title\" :aria-label=\"group.title\">\n              <h3 class=\"text-muted-foreground mb-1 text-sm font-semibold tracking-wide uppercase\">\n                {{ group.title }}\n              </h3>\n              <UiAccordionItem v-for=\"item in group.items\" :key=\"item.value\" :value=\"item.value\">\n                <UiAccordionHeader>\n                  <UiAccordionTrigger class=\"text-base hover:no-underline\">{{\n                    item.question\n                  }}</UiAccordionTrigger>\n                </UiAccordionHeader>\n                <UiAccordionContent>\n                  <p class=\"text-muted-foreground\">{{ item.answer }}</p>\n                </UiAccordionContent>\n              </UiAccordionItem>\n            </section>\n          </UiAccordion>\n        </div>\n\n        <aside class=\"lg:sticky lg:top-6 lg:self-start\">\n          <UiCard>\n            <UiCardHeader>\n              <div class=\"flex -space-x-2\" aria-hidden=\"true\">\n                <UiAvatar\n                  v-for=\"member in team\"\n                  :key=\"member.name\"\n                  class=\"ring-card size-10 ring-2\"\n                >\n                  <UiAvatarImage :src=\"member.avatar\" :alt=\"member.name\" />\n                  <UiAvatarFallback>{{ member.name.slice(0, 1) }}</UiAvatarFallback>\n                </UiAvatar>\n              </div>\n              <UiCardTitle class=\"mt-3\">Still have questions?</UiCardTitle>\n              <UiCardDescription>\n                {{ team.map((member) => member.name).join(\", \") }} are online now.\n              </UiCardDescription>\n            </UiCardHeader>\n            <UiCardContent class=\"space-y-3\">\n              <p class=\"text-muted-foreground flex items-center gap-2 text-sm\">\n                <Icon name=\"lucide:clock\" class=\"size-4\" />Replies in about {{ responseTime }}\n              </p>\n              <UiButton class=\"w-full\"\n                ><Icon name=\"lucide:message-circle\" class=\"size-4\" />Start a chat</UiButton\n              >\n              <UiButton variant=\"outline\" class=\"w-full\"\n                ><Icon name=\"lucide:calendar\" class=\"size-4\" />Book a call</UiButton\n              >\n            </UiCardContent>\n          </UiCard>\n        </aside>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = { value: string; question: string; answer: string };\n  type Group = { title: string; items: Item[] };\n  type Member = { name: string; avatar: string };\n\n  const props = withDefaults(\n    defineProps<{\n      groups?: Group[];\n      team?: Member[];\n      responseTime?: string;\n    }>(),\n    {\n      groups: () => [\n        {\n          title: \"Plans\",\n          items: [\n            {\n              value: \"plans-1\",\n              question: \"What is included in the Starter plan?\",\n              answer:\n                \"Starter covers up to 5 members, 10 active projects and community support. It is free, with no card needed.\",\n            },\n            {\n              value: \"plans-2\",\n              question: \"Can I switch plans later?\",\n              answer:\n                \"Yes. Upgrades apply immediately and we prorate the difference. Downgrades take effect at the next billing date.\",\n            },\n          ],\n        },\n        {\n          title: \"Billing\",\n          items: [\n            {\n              value: \"billing-1\",\n              question: \"Which payment methods do you accept?\",\n              answer:\n                \"All major credit cards, plus bank transfer on annual plans. Invoices are issued in your local currency.\",\n            },\n            {\n              value: \"billing-2\",\n              question: \"Do you charge for guests?\",\n              answer:\n                \"No. Guests can view and comment on shared projects for free, and you only pay for full members.\",\n            },\n          ],\n        },\n        {\n          title: \"Security\",\n          items: [\n            {\n              value: \"security-1\",\n              question: \"Where is my data stored?\",\n              answer:\n                \"You can choose between the United States and the European Union when you create a workspace.\",\n            },\n          ],\n        },\n      ],\n      team: () => [\n        { name: \"Maya\", avatar: \"https://i.pravatar.cc/80?img=47\" },\n        { name: \"Leo\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n        { name: \"Sana\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n      ],\n      responseTime: \"2 hours\",\n    }\n  );\n\n  const open = ref<string[]>([props.groups[0]?.items[0]?.value ?? \"\"].filter(Boolean));\n  const allValues = computed(() =>\n    props.groups.flatMap((group) => group.items.map((i) => i.value))\n  );\n  const total = computed(() => allValues.value.length);\n\n  function expandAll() {\n    open.value = [...allValues.value];\n  }\n</script>\n","category":"FAQ","description":"FAQ with support contact card. Features: Grouped accordions with expand all and collapse all, sticky support card with team avatars, response time and contact actions","path":"FAQ/BlockFAQ10.vue","components":["accordion","avatar","button","card","container"]},{"name":"FAQ 11","fileName":"BlockFAQ11.vue","file":"<template>\n  <!--\n    Ask a question form with suggestions\n    Features: Question field that suggests matching existing answers as you type, expandable suggestion answers, email and details fields, validation, confirmation state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"text-center\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">Ask us anything</h2>\n        <p class=\"text-muted-foreground mt-3 text-lg\">\n          Start typing. We will check whether someone already asked.\n        </p>\n      </div>\n\n      <UiCard class=\"mt-8\">\n        <UiCardContent v-if=\"sent\" class=\"space-y-3 py-6 text-center\" role=\"status\">\n          <span\n            class=\"mx-auto grid size-12 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n            ><Icon name=\"lucide:check\" class=\"size-6\"\n          /></span>\n          <p class=\"text-lg font-semibold\">Question received</p>\n          <p class=\"text-muted-foreground text-sm\">\n            We will reply to\n            <span class=\"text-foreground font-medium\">{{ email.trim() }}</span> within one working\n            day.\n          </p>\n          <UiButton variant=\"outline\" @click=\"reset\">Ask another question</UiButton>\n        </UiCardContent>\n\n        <UiCardContent v-else>\n          <form class=\"grid gap-5\" novalidate @submit.prevent=\"submit\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"ask-question\">Your question</UiLabel>\n              <UiInput\n                id=\"ask-question\"\n                v-model=\"question\"\n                placeholder=\"How do I export my data?\"\n                autocomplete=\"off\"\n                :aria-invalid=\"!!errors.question\"\n              />\n              <p v-if=\"errors.question\" class=\"text-destructive text-sm\">{{ errors.question }}</p>\n            </div>\n\n            <div v-if=\"suggestions.length\" class=\"grid gap-2\" aria-live=\"polite\">\n              <p class=\"text-sm font-medium\">Maybe one of these answers it</p>\n              <ul class=\"divide-y rounded-lg border\">\n                <li v-for=\"item in suggestions\" :key=\"item.id\">\n                  <button\n                    type=\"button\"\n                    class=\"hover:bg-muted/50 flex w-full items-center justify-between gap-3 p-3 text-left text-sm transition-colors\"\n                    :aria-expanded=\"shown === item.id\"\n                    @click=\"shown = shown === item.id ? null : item.id\"\n                  >\n                    <span class=\"font-medium\">{{ item.question }}</span>\n                    <Icon\n                      name=\"lucide:chevron-down\"\n                      class=\"text-muted-foreground size-4 shrink-0 transition-transform\"\n                      :class=\"shown === item.id ? 'rotate-180' : ''\"\n                    />\n                  </button>\n                  <p v-if=\"shown === item.id\" class=\"text-muted-foreground px-3 pb-3 text-sm\">\n                    {{ item.answer }}\n                  </p>\n                </li>\n              </ul>\n            </div>\n\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"ask-email\">Email</UiLabel>\n              <UiInput\n                id=\"ask-email\"\n                v-model=\"email\"\n                type=\"email\"\n                autocomplete=\"email\"\n                placeholder=\"you@example.com\"\n                :aria-invalid=\"!!errors.email\"\n              />\n              <p v-if=\"errors.email\" class=\"text-destructive text-sm\">{{ errors.email }}</p>\n            </div>\n\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"ask-details\">More details (optional)</UiLabel>\n              <UiTextarea\n                id=\"ask-details\"\n                v-model=\"details\"\n                :rows=\"3\"\n                placeholder=\"Anything that helps us answer faster.\"\n              />\n            </div>\n\n            <UiButton type=\"submit\" size=\"lg\">Send question</UiButton>\n          </form>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Faq = { id: number; question: string; answer: string };\n\n  const props = withDefaults(\n    defineProps<{\n      faqs?: Faq[];\n    }>(),\n    {\n      faqs: () => [\n        {\n          id: 1,\n          question: \"How do I export my data?\",\n          answer:\n            \"Open Settings and Data, then choose Export. You will get an email with a download link for a CSV or JSON archive.\",\n        },\n        {\n          id: 2,\n          question: \"How do I delete my account?\",\n          answer:\n            \"Go to Settings and Account, then Delete account. Your data is removed within 30 days and cannot be recovered.\",\n        },\n        {\n          id: 3,\n          question: \"How do I change my plan?\",\n          answer:\n            \"Visit Billing and pick a new plan. Upgrades apply right away and downgrades start at the next renewal.\",\n        },\n        {\n          id: 4,\n          question: \"How do I connect Slack?\",\n          answer:\n            \"Open Integrations, choose Slack and approve the connection. Then pick the channel for notifications.\",\n        },\n        {\n          id: 5,\n          question: \"Can I export a single project?\",\n          answer:\n            \"Yes. Open the project menu and choose Export project to download just that project's data.\",\n        },\n      ],\n    }\n  );\n\n  const question = ref(\"\");\n  const email = ref(\"\");\n  const details = ref(\"\");\n  const errors = reactive({ question: \"\", email: \"\" });\n  const sent = ref(false);\n  const shown = ref<number | null>(null);\n\n  const suggestions = computed(() => {\n    const words = question.value\n      .toLowerCase()\n      .split(/\\W+/)\n      .filter((word) => word.length > 3);\n    if (!words.length) return [];\n    return props.faqs\n      .map((faq) => ({\n        faq,\n        score: words.filter((word) => faq.question.toLowerCase().includes(word)).length,\n      }))\n      .filter((entry) => entry.score > 0)\n      .sort((a, b) => b.score - a.score)\n      .slice(0, 3)\n      .map((entry) => entry.faq);\n  });\n\n  function submit() {\n    errors.question =\n      question.value.trim().length >= 8 ? \"\" : \"Write a question of at least 8 characters.\";\n    errors.email = /^\\S+@\\S+\\.\\S+$/.test(email.value.trim()) ? \"\" : \"Enter a valid email address.\";\n    if (errors.question || errors.email) return;\n    sent.value = true;\n  }\n\n  function reset() {\n    question.value = \"\";\n    email.value = \"\";\n    details.value = \"\";\n    shown.value = null;\n    sent.value = false;\n  }\n</script>\n","category":"FAQ","description":"Ask a question form with suggestions. Features: Question field that suggests matching existing answers as you type, expandable suggestion answers, email and details fields, validation, confirmation state","path":"FAQ/BlockFAQ11.vue","components":["button","card","container","input","label","textarea"]},{"name":"FAQ 2","fileName":"BlockFAQ2.vue","file":"<template>\n  <!-- \n    Grid FAQ with left-aligned cards\n    Features: Three-column grid, left-aligned text, icon cards, horizontal CTA\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-16\">\n      <UiContainer class=\"py-16 text-center lg:py-24\">\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n        >\n          FAQs\n        </Motion>\n\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n        >\n          Everything you need to know about the product and billing.\n        </Motion>\n      </UiContainer>\n      <section class=\"grid grid-cols-1 gap-10 md:grid-cols-2 lg:grid-cols-3 lg:gap-y-12\">\n        <Motion v-for=\"(faq, n) in faqs\" :key=\"n\" :variants=\"childVariant\" class=\"flex flex-col\">\n          <div\n            class=\"bg-primary/5 hover:bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg border transition-colors\"\n          >\n            <Icon :name=\"faq.icon\" class=\"text-primary h-6 w-6\" />\n          </div>\n          <p class=\"mt-5 text-lg font-semibold\">{{ faq.question }}</p>\n          <p class=\"text-muted-foreground mt-2\">\n            {{ faq.answer }}\n          </p>\n        </Motion>\n      </section>\n\n      <Motion as-child :variants=\"childVariant\">\n        <section\n          class=\"bg-muted/50 dark:bg-muted/20 mx-auto mt-16 flex flex-col items-center justify-between gap-6 rounded-lg p-8 py-8 text-center lg:flex-row lg:text-left\"\n        >\n          <div>\n            <p class=\"mb-3 text-lg font-semibold\">Still have questions?</p>\n            <p class=\"text-muted-foreground\">\n              Can't find the answer you're looking for? Please chat to our friendly team.\n            </p>\n          </div>\n          <UiButton class=\"shrink-0\">\n            Get in touch\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </section>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const faqs = [\n    {\n      icon: \"lucide:sparkles\",\n      question: \"Is there a free trial available?\",\n      answer:\n        \"Yes, you can try us for free for 30 days. Our friendly team will work with you to get you up and running as soon as possible.\",\n    },\n    {\n      icon: \"lucide:credit-card\",\n      question: \"Can I change my plan later?\",\n      answer:\n        \"Of course! You can upgrade or downgrade your plan at any time. Changes will be reflected in your next billing cycle.\",\n    },\n    {\n      icon: \"lucide:users\",\n      question: \"What is your cancellation policy?\",\n      answer:\n        \"You can cancel your subscription at any time. Your account will remain active until the end of your billing period.\",\n    },\n    {\n      icon: \"lucide:lock\",\n      question: \"Is my data secure?\",\n      answer:\n        \"Absolutely. We use industry-standard encryption and security measures to protect your data at all times.\",\n    },\n    {\n      icon: \"lucide:headphones\",\n      question: \"Do you offer customer support?\",\n      answer:\n        \"Yes! Our support team is available 24/7 via email and live chat to help you with any questions or issues.\",\n    },\n    {\n      icon: \"lucide:zap\",\n      question: \"How do I get started?\",\n      answer:\n        \"Simply sign up for an account, choose your plan, and you'll be up and running in minutes with our quick onboarding process.\",\n    },\n  ];\n</script>\n","category":"FAQ","description":"Grid FAQ with left-aligned cards. Features: Three-column grid, left-aligned text, icon cards, horizontal CTA","path":"FAQ/BlockFAQ2.vue","components":["button","container"]},{"name":"FAQ 3","fileName":"BlockFAQ3.vue","file":"<template>\n  <!-- \n    Accordion FAQ layout\n    Features: Classic accordion with expand/collapse, centered layout, animated content\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-16\">\n      <UiContainer class=\"py-16 text-center lg:py-24\">\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n        >\n          Frequently asked questions\n        </Motion>\n\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n        >\n          Everything you need to know about the product and billing.\n        </Motion>\n      </UiContainer>\n      <Motion as-child :variants=\"childVariant\">\n        <section class=\"mx-auto max-w-[768px]\">\n          <UiAccordion :default-value=\"['item-1']\" type=\"multiple\">\n            <UiAccordionItem v-for=\"i in items\" :key=\"i.value\" :value=\"i.value\">\n              <UiAccordionHeader>\n                <UiAccordionTrigger class=\"hover:text-primary text-lg\">{{\n                  i.title\n                }}</UiAccordionTrigger>\n              </UiAccordionHeader>\n              <UiAccordionContent>\n                <p class=\"text-muted-foreground text-base\">{{ i.content }}</p>\n              </UiAccordionContent>\n            </UiAccordionItem>\n          </UiAccordion>\n        </section>\n      </Motion>\n\n      <Motion as-child :variants=\"childVariant\">\n        <section\n          class=\"bg-muted/50 dark:bg-muted/20 mx-auto mt-16 flex flex-col items-center gap-6 rounded-lg py-8 text-center\"\n        >\n          <p class=\"text-lg font-semibold\">Still have questions?</p>\n          <p class=\"text-muted-foreground\">\n            Can't find the answer you're looking for? Please chat to our friendly team.\n          </p>\n          <UiButton>\n            Get in touch\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </section>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const items = [\n    {\n      value: \"item-1\",\n      title: \"Is there a free trial available?\",\n      content:\n        \"Yes, you can try us for free for 30 days. If you want, we'll provide you with a free, personalized 30-minute onboarding call to get you up and running as soon as possible.\",\n    },\n    {\n      value: \"item-2\",\n      title: \"Can I change my plan later?\",\n      content:\n        \"Of course! You can upgrade or downgrade your plan at any time. Changes will be reflected in your next billing cycle, and we'll prorate any differences.\",\n    },\n    {\n      value: \"item-3\",\n      title: \"What is your cancellation policy?\",\n      content:\n        \"You can cancel your subscription at any time with no penalties. Your account will remain active until the end of your current billing period.\",\n    },\n    {\n      value: \"item-4\",\n      title: \"Can other info be added to an invoice?\",\n      content:\n        \"Yes, you can add custom information to your invoices such as PO numbers, tax IDs, or billing addresses through your account settings.\",\n    },\n    {\n      value: \"item-5\",\n      title: \"How does billing work?\",\n      content:\n        \"We bill you automatically at the start of each billing period. You'll receive an invoice via email, and payment will be processed using your saved payment method.\",\n    },\n    {\n      value: \"item-6\",\n      title: \"How do I change my account email?\",\n      content:\n        \"You can update your email address in your account settings. We'll send a verification email to your new address to confirm the change.\",\n    },\n  ];\n</script>\n","category":"FAQ","description":"Accordion FAQ layout. Features: Classic accordion with expand/collapse, centered layout, animated content","path":"FAQ/BlockFAQ3.vue","components":["accordion","button","container"]},{"name":"FAQ 4","fileName":"BlockFAQ4.vue","file":"<template>\n  <!-- \n    Two-column FAQ with categories\n    Features: Split layout, category tabs, accordion per category, search bar\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <div class=\"mb-8 text-center\">\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:text-5xl\"\n        >\n          How can we help?\n        </Motion>\n\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n        >\n          Search our FAQ or browse by category below.\n        </Motion>\n\n        <Motion as-child :variants=\"childVariant\">\n          <div class=\"mx-auto mt-8 max-w-lg\">\n            <UiVeeInput\n              v-model=\"searchQuery\"\n              icon=\"lucide:search\"\n              placeholder=\"Search for answers...\"\n            />\n          </div>\n        </Motion>\n      </div>\n\n      <Motion :variants=\"childVariant\">\n        <UiTabs default-value=\"general\" class=\"mx-auto w-full max-w-lg\">\n          <UiTabsList class=\"mx-auto mb-8 grid w-full grid-cols-3\">\n            <UiTabsTrigger value=\"general\">General</UiTabsTrigger>\n            <UiTabsTrigger value=\"billing\">Billing</UiTabsTrigger>\n            <UiTabsTrigger value=\"technical\">Technical</UiTabsTrigger>\n          </UiTabsList>\n\n          <UiTabsContent value=\"general\">\n            <section class=\"mx-auto\">\n              <UiAccordion type=\"single\" collapsible>\n                <UiAccordionItem v-for=\"i in generalFaqs\" :key=\"i.value\" :value=\"i.value\">\n                  <UiAccordionHeader>\n                    <UiAccordionTrigger class=\"hover:text-primary text-base\">{{\n                      i.title\n                    }}</UiAccordionTrigger>\n                  </UiAccordionHeader>\n                  <UiAccordionContent>\n                    <p class=\"text-muted-foreground text-base\">{{ i.content }}</p>\n                  </UiAccordionContent>\n                </UiAccordionItem>\n              </UiAccordion>\n            </section>\n          </UiTabsContent>\n\n          <UiTabsContent value=\"billing\">\n            <section class=\"mx-auto\">\n              <UiAccordion type=\"single\" collapsible>\n                <UiAccordionItem v-for=\"i in billingFaqs\" :key=\"i.value\" :value=\"i.value\">\n                  <UiAccordionHeader>\n                    <UiAccordionTrigger class=\"hover:text-primary text-base\">{{\n                      i.title\n                    }}</UiAccordionTrigger>\n                  </UiAccordionHeader>\n                  <UiAccordionContent>\n                    <p class=\"text-muted-foreground text-base\">{{ i.content }}</p>\n                  </UiAccordionContent>\n                </UiAccordionItem>\n              </UiAccordion>\n            </section>\n          </UiTabsContent>\n\n          <UiTabsContent value=\"technical\">\n            <section class=\"mx-auto\">\n              <UiAccordion type=\"single\" collapsible>\n                <UiAccordionItem v-for=\"i in technicalFaqs\" :key=\"i.value\" :value=\"i.value\">\n                  <UiAccordionHeader>\n                    <UiAccordionTrigger class=\"hover:text-primary text-base\">{{\n                      i.title\n                    }}</UiAccordionTrigger>\n                  </UiAccordionHeader>\n                  <UiAccordionContent>\n                    <p class=\"text-muted-foreground text-base\">{{ i.content }}</p>\n                  </UiAccordionContent>\n                </UiAccordionItem>\n              </UiAccordion>\n            </section>\n          </UiTabsContent>\n        </UiTabs>\n      </Motion>\n\n      <Motion as-child :variants=\"childVariant\">\n        <section\n          class=\"bg-muted/50 dark:bg-muted/20 mx-auto mt-16 flex max-w-4xl flex-col items-center gap-6 rounded-lg py-8 text-center\"\n        >\n          <p class=\"text-lg font-semibold\">Still need help?</p>\n          <p class=\"text-muted-foreground\">Our support team is here to answer your questions.</p>\n          <UiButton>\n            Contact Support\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </section>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const searchQuery = ref(\"\");\n\n  const generalFaqs = [\n    {\n      value: \"gen-1\",\n      title: \"What is your product?\",\n      content:\n        \"Our product is a comprehensive solution that helps teams collaborate more effectively and get work done faster.\",\n    },\n    {\n      value: \"gen-2\",\n      title: \"Who can use this product?\",\n      content:\n        \"Anyone! Our product is designed for teams of all sizes, from startups to large enterprises.\",\n    },\n    {\n      value: \"gen-3\",\n      title: \"Is there a mobile app?\",\n      content:\n        \"Yes, we offer mobile apps for both iOS and Android devices with full feature parity.\",\n    },\n  ];\n\n  const billingFaqs = [\n    {\n      value: \"bill-1\",\n      title: \"What payment methods do you accept?\",\n      content:\n        \"We accept all major credit cards, PayPal, and bank transfers for enterprise customers.\",\n    },\n    {\n      value: \"bill-2\",\n      title: \"Can I get a refund?\",\n      content:\n        \"Yes, we offer a 30-day money-back guarantee if you're not satisfied with our service.\",\n    },\n    {\n      value: \"bill-3\",\n      title: \"Do you offer discounts for nonprofits?\",\n      content:\n        \"Yes, we offer special pricing for nonprofit organizations and educational institutions.\",\n    },\n  ];\n\n  const technicalFaqs = [\n    {\n      value: \"tech-1\",\n      title: \"What are the system requirements?\",\n      content:\n        \"Our product works on all modern browsers and requires a stable internet connection.\",\n    },\n    {\n      value: \"tech-2\",\n      title: \"How do I integrate with other tools?\",\n      content: \"We offer integrations with popular tools through our API and native connectors.\",\n    },\n    {\n      value: \"tech-3\",\n      title: \"Is my data backed up?\",\n      content:\n        \"Yes, we perform automated backups every hour and store them in multiple geographic locations.\",\n    },\n  ];\n</script>\n","category":"FAQ","description":"Two-column FAQ with categories. Features: Split layout, category tabs, accordion per category, search bar","path":"FAQ/BlockFAQ4.vue","components":["accordion","button","container","tabs","vee-input"]},{"name":"FAQ 5","fileName":"BlockFAQ5.vue","file":"<template>\n  <!-- \n    Card-based FAQ with search\n    Features: FAQ cards with hover effects, search filter, category badges\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.08),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-16\">\n      <div class=\"py-16 text-center lg:py-24\">\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n        >\n          Frequently Asked Questions\n        </Motion>\n\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n        >\n          Find answers to common questions about our service.\n        </Motion>\n\n        <Motion as-child :variants=\"childVariant\">\n          <div class=\"mx-auto mt-8 max-w-lg\">\n            <UiVeeInput v-model=\"searchQuery\" icon=\"lucide:search\" placeholder=\"Search FAQs...\" />\n          </div>\n        </Motion>\n      </div>\n\n      <section class=\"grid grid-cols-1 gap-6 md:grid-cols-2\">\n        <Motion v-for=\"faq in filteredFaqs\" :key=\"faq.id\" :variants=\"childVariant\" class=\"h-full\">\n          <UiCard\n            as-child\n            class=\"group hover:border-primary/50 cursor-pointer transition-all hover:shadow-lg\"\n          >\n            <NuxtLink :to=\"faq.link || '#'\" class=\"block h-full\">\n              <UiCardHeader>\n                <div class=\"mb-3 flex items-center gap-2\">\n                  <UiBadge variant=\"outline\" class=\"text-xs\">{{ faq.category }}</UiBadge>\n                </div>\n                <UiCardTitle class=\"group-hover:text-primary text-xl\">{{\n                  faq.question\n                }}</UiCardTitle>\n              </UiCardHeader>\n              <UiCardContent>\n                <p class=\"text-muted-foreground\">{{ faq.answer }}</p>\n              </UiCardContent>\n            </NuxtLink>\n          </UiCard>\n        </Motion>\n      </section>\n\n      <Motion as-child :variants=\"childVariant\">\n        <section\n          class=\"bg-muted/30 dark:bg-muted/10 mx-auto mt-16 flex flex-col items-center gap-6 rounded-lg border py-12 text-center\"\n        >\n          <div class=\"bg-primary/10 flex h-14 w-14 items-center justify-center rounded-full\">\n            <Icon name=\"lucide:message-circle\" class=\"text-primary h-7 w-7\" />\n          </div>\n          <div>\n            <p class=\"mb-2 text-xl font-semibold\">Can't find what you're looking for?</p>\n            <p class=\"text-muted-foreground\">\n              Our team is always happy to help you find the answers you need.\n            </p>\n          </div>\n          <div class=\"flex flex-wrap gap-3\">\n            <UiButton>\n              <Icon name=\"lucide:mail\" class=\"mr-2 h-4 w-4\" />\n              Email Us\n            </UiButton>\n            <UiButton variant=\"outline\">\n              <Icon name=\"lucide:phone\" class=\"mr-2 h-4 w-4\" />\n              Call Support\n            </UiButton>\n          </div>\n        </section>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const searchQuery = ref(\"\");\n\n  const faqs = [\n    {\n      id: 1,\n      category: \"General\",\n      question: \"How do I get started?\",\n      answer:\n        \"Sign up for a free account, complete the onboarding, and you'll be ready to go in minutes.\",\n      link: \"/getting-started/introduction\",\n    },\n    {\n      id: 2,\n      category: \"Billing\",\n      question: \"What payment methods are accepted?\",\n      answer: \"We accept all major credit cards, PayPal, and wire transfers for enterprise plans.\",\n      link: \"\",\n    },\n    {\n      id: 3,\n      category: \"Features\",\n      question: \"Can I collaborate with my team?\",\n      answer: \"Yes! You can invite unlimited team members and collaborate in real-time.\",\n      link: \"\",\n    },\n    {\n      id: 4,\n      category: \"Security\",\n      question: \"How secure is my data?\",\n      answer: \"We use bank-level encryption and security measures to protect all your data.\",\n      link: \"\",\n    },\n    {\n      id: 5,\n      category: \"Support\",\n      question: \"Do you offer 24/7 support?\",\n      answer: \"Yes, our support team is available around the clock via email and live chat.\",\n      link: \"\",\n    },\n    {\n      id: 6,\n      category: \"Integration\",\n      question: \"Does it integrate with other tools?\",\n      answer:\n        \"We integrate with over 50+ popular tools including Slack, Google Workspace, and more.\",\n      link: \"\",\n    },\n  ];\n\n  const filteredFaqs = computed(() => {\n    if (!searchQuery.value) return faqs;\n    const query = searchQuery.value.toLowerCase();\n    return faqs.filter(\n      (faq) =>\n        faq.question.toLowerCase().includes(query) ||\n        faq.answer.toLowerCase().includes(query) ||\n        faq.category.toLowerCase().includes(query)\n    );\n  });\n</script>\n","category":"FAQ","description":"Card-based FAQ with search. Features: FAQ cards with hover effects, search filter, category badges","path":"FAQ/BlockFAQ5.vue","components":["badge","button","card","container","vee-input"]},{"name":"FAQ 6","fileName":"BlockFAQ6.vue","file":"<template>\n  <!-- \n    Minimal two-column FAQ\n    Features: Side-by-side layout, compact design, visual hierarchy\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16\">\n      <div class=\"grid gap-16 lg:grid-cols-2 lg:gap-24\">\n        <Motion as-child :variants=\"childVariant\">\n          <div class=\"lg:sticky lg:top-16 lg:self-start\">\n            <UiBadge class=\"mb-4\">FAQ</UiBadge>\n            <h2 class=\"mb-4 text-4xl font-bold lg:text-5xl\">Questions & Answers</h2>\n            <p class=\"text-muted-foreground mb-8 text-lg\">\n              Everything you need to know about our product and how it works.\n            </p>\n            <UiButton variant=\"outline\">\n              Contact Support\n              <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n            </UiButton>\n          </div>\n        </Motion>\n\n        <ul class=\"space-y-8\">\n          <Motion\n            v-for=\"(faq, idx) in faqs\"\n            :key=\"idx\"\n            as=\"li\"\n            :variants=\"childVariant\"\n            class=\"border-b pb-8 last:border-0\"\n          >\n            <h3 class=\"mb-3 font-bold text-pretty\">{{ faq.question }}</h3>\n            <p class=\"text-muted-foreground\">{{ faq.answer }}</p>\n          </Motion>\n        </ul>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const faqs = [\n    {\n      question: \"Is there a free trial available?\",\n      answer:\n        \"Yes, you can try us for free for 30 days. Our friendly team will work with you to get you up and running as soon as possible.\",\n    },\n    {\n      question: \"Can I change my plan later?\",\n      answer:\n        \"Of course! You can upgrade or downgrade your plan at any time. Changes will be reflected in your next billing cycle.\",\n    },\n    {\n      question: \"What is your cancellation policy?\",\n      answer:\n        \"You can cancel your subscription at any time with no penalties. Your account will remain active until the end of your billing period.\",\n    },\n    {\n      question: \"Can other info be added to an invoice?\",\n      answer:\n        \"Yes, you can add custom information to your invoices such as PO numbers, tax IDs, or billing addresses.\",\n    },\n    {\n      question: \"How does billing work?\",\n      answer:\n        \"We bill you automatically at the start of each billing period. You'll receive an invoice via email.\",\n    },\n    {\n      question: \"How do I change my account email?\",\n      answer:\n        \"You can update your email address in your account settings. We'll send a verification email to confirm.\",\n    },\n  ];\n</script>\n","category":"FAQ","description":"Minimal two-column FAQ. Features: Side-by-side layout, compact design, visual hierarchy","path":"FAQ/BlockFAQ6.vue","components":["badge","button","container"]},{"name":"FAQ 7","fileName":"BlockFAQ7.vue","file":"<template>\n  <!-- \n    Interactive collapsible FAQ cards\n    Features: Animated expand/collapse, card hover, toggle icons\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.08),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-16\">\n      <div class=\"py-16 text-center lg:py-24\">\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:text-5xl\"\n        >\n          Got Questions?\n        </Motion>\n\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n        >\n          We've got answers. Browse our most common questions below.\n        </Motion>\n      </div>\n      <section class=\"mx-auto max-w-3xl space-y-4\">\n        <Motion v-for=\"(faq, idx) in faqs\" :key=\"idx\" :variants=\"childVariant\">\n          <UiCard\n            class=\"cursor-pointer gap-0 transition-all hover:shadow-md\"\n            :class=\"[openIndex === idx ? 'border-primary' : '']\"\n            @click=\"toggleFaq(idx)\"\n          >\n            <UiCardHeader>\n              <div class=\"flex items-center justify-between gap-4\">\n                <UiCardTitle class=\"text-lg\">{{ faq.question }}</UiCardTitle>\n                <Icon\n                  :name=\"openIndex === idx ? 'lucide:minus' : 'lucide:plus'\"\n                  class=\"text-primary h-5 w-5 shrink-0 transition-transform\"\n                />\n              </div>\n            </UiCardHeader>\n\n            <AnimatePresence>\n              <Motion\n                v-if=\"openIndex === idx\"\n                :initial=\"{ opacity: 0, height: 0 }\"\n                :animate=\"{ opacity: 1, height: 'auto' }\"\n                :exit=\"{ height: 0, opacity: 0 }\"\n              >\n                <UiCardContent class=\"mt-3\">\n                  <p class=\"text-muted-foreground\">{{ faq.answer }}</p>\n                </UiCardContent>\n              </Motion>\n            </AnimatePresence>\n          </UiCard>\n        </Motion>\n      </section>\n\n      <Motion as-child :variants=\"childVariant\">\n        <div class=\"mx-auto mt-16 max-w-2xl text-center\">\n          <p class=\"mb-4 text-lg font-semibold\">Still have a question?</p>\n          <p class=\"text-muted-foreground mb-6\">\n            If you can't find the answer you're looking for, please reach out to our support team.\n          </p>\n          <div class=\"flex flex-wrap justify-center gap-3\">\n            <UiButton>\n              <Icon name=\"lucide:headphones\" class=\"mr-2 h-4 w-4\" />\n              Live Chat\n            </UiButton>\n            <UiButton variant=\"outline\">\n              <Icon name=\"lucide:mail\" class=\"mr-2 h-4 w-4\" />\n              Send Email\n            </UiButton>\n          </div>\n        </div>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const openIndex = ref<number | null>(0);\n\n  const toggleFaq = (idx: number) => {\n    openIndex.value = openIndex.value === idx ? null : idx;\n  };\n\n  const faqs = [\n    {\n      question: \"What makes your product different?\",\n      answer:\n        \"Our product combines powerful features with an intuitive interface, making it easier for teams to collaborate and achieve their goals.\",\n    },\n    {\n      question: \"Is there a setup fee?\",\n      answer:\n        \"No, there are no setup fees. You only pay for your chosen plan, and you can start using the product immediately after signing up.\",\n    },\n    {\n      question: \"Do you offer training or onboarding?\",\n      answer:\n        \"Yes, we provide comprehensive onboarding for all new customers, including live training sessions and detailed documentation.\",\n    },\n    {\n      question: \"Can I export my data?\",\n      answer:\n        \"Absolutely! You can export all your data at any time in multiple formats including CSV, JSON, and Excel.\",\n    },\n    {\n      question: \"What kind of support do you offer?\",\n      answer:\n        \"We offer 24/7 email support for all plans, with priority live chat and phone support available on premium plans.\",\n    },\n    {\n      question: \"Do you have an API?\",\n      answer:\n        \"Yes, we provide a comprehensive REST API that allows you to integrate our platform with your existing tools and workflows.\",\n    },\n  ];\n</script>\n","category":"FAQ","description":"Interactive collapsible FAQ cards. Features: Animated expand/collapse, card hover, toggle icons","path":"FAQ/BlockFAQ7.vue","components":["button","card","container"]},{"name":"FAQ 8","fileName":"BlockFAQ8.vue","file":"<template>\n  <!--\n    FAQ search with highlighted matches\n    Features: Search field with clear button, popular topic chips, matched words highlighted in questions and answers, live result count, no results state with support link\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"text-center\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">How can we help?</h2>\n        <p class=\"text-muted-foreground mt-3 text-lg\">\n          Search the help center or pick a popular topic.\n        </p>\n      </div>\n\n      <div class=\"relative mt-8\">\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput\n          v-model=\"query\"\n          type=\"search\"\n          aria-label=\"Search questions\"\n          placeholder=\"Search for refunds, invoices, passwords...\"\n          class=\"h-11 px-9\"\n        />\n        <UiButton\n          v-if=\"query\"\n          variant=\"ghost\"\n          size=\"icon-sm\"\n          class=\"absolute top-1/2 right-1.5 -translate-y-1/2\"\n          aria-label=\"Clear search\"\n          @click=\"query = ''\"\n        >\n          <Icon name=\"lucide:x\" class=\"size-4\" />\n        </UiButton>\n      </div>\n\n      <div class=\"mt-4 flex flex-wrap items-center justify-center gap-2\">\n        <span class=\"text-muted-foreground text-sm\">Popular:</span>\n        <UiButton\n          v-for=\"topic in topics\"\n          :key=\"topic\"\n          variant=\"outline\"\n          size=\"xs\"\n          class=\"rounded-full\"\n          @click=\"query = topic\"\n        >\n          {{ topic }}\n        </UiButton>\n      </div>\n\n      <p class=\"text-muted-foreground mt-8 text-sm\" role=\"status\">\n        {{\n          term\n            ? `${results.length} ${results.length === 1 ? \"result\" : \"results\"} for \"${term}\"`\n            : `${results.length} questions`\n        }}\n      </p>\n\n      <ul v-if=\"results.length\" class=\"mt-3 grid gap-3\">\n        <li v-for=\"faq in results\" :key=\"faq.id\" class=\"rounded-xl border p-5\">\n          <UiBadge variant=\"secondary\" size=\"sm\">{{ faq.category }}</UiBadge>\n          <h3 class=\"mt-2 font-semibold\">\n            <template v-for=\"(part, index) in split(faq.question)\" :key=\"index\"\n              ><mark v-if=\"part.hit\" class=\"bg-primary/20 text-foreground rounded px-0.5\">{{\n                part.text\n              }}</mark\n              ><template v-else>{{ part.text }}</template></template\n            >\n          </h3>\n          <p class=\"text-muted-foreground mt-1.5 text-sm leading-relaxed\">\n            <template v-for=\"(part, index) in split(faq.answer)\" :key=\"index\"\n              ><mark v-if=\"part.hit\" class=\"bg-primary/20 text-foreground rounded px-0.5\">{{\n                part.text\n              }}</mark\n              ><template v-else>{{ part.text }}</template></template\n            >\n          </p>\n        </li>\n      </ul>\n\n      <div v-else class=\"mt-3 rounded-xl border border-dashed p-10 text-center\">\n        <p class=\"font-medium\">Nothing found for \"{{ term }}\"</p>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Check the spelling, try a broader word, or ask our team directly.\n        </p>\n        <div class=\"mt-4 flex flex-wrap justify-center gap-2\">\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"query = ''\">Clear search</UiButton>\n          <UiButton size=\"sm\"><Icon name=\"lucide:mail\" class=\"size-4\" />Contact support</UiButton>\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Faq = { id: number; category: string; question: string; answer: string };\n\n  const props = withDefaults(\n    defineProps<{\n      faqs?: Faq[];\n      topics?: string[];\n    }>(),\n    {\n      faqs: () => [\n        {\n          id: 1,\n          category: \"Billing\",\n          question: \"How do I download an invoice?\",\n          answer:\n            \"Open Settings, choose Billing and select any past payment. Each invoice can be saved as a PDF with your company details.\",\n        },\n        {\n          id: 2,\n          category: \"Billing\",\n          question: \"Can I get a refund?\",\n          answer:\n            \"Yes. Annual plans can be refunded in full within 30 days of purchase. Monthly plans are refunded for the current month only.\",\n        },\n        {\n          id: 3,\n          category: \"Account\",\n          question: \"How do I reset my password?\",\n          answer:\n            \"Use the Forgot password link on the sign in page. We email a reset link that stays valid for one hour.\",\n        },\n        {\n          id: 4,\n          category: \"Account\",\n          question: \"Can I change the email on my account?\",\n          answer:\n            \"You can change it under Settings and Profile. We send a confirmation link to the new address before the change applies.\",\n        },\n        {\n          id: 5,\n          category: \"Teams\",\n          question: \"How do I invite teammates?\",\n          answer:\n            \"Go to Members and choose Invite. Teammates receive an email, and you can set their role before they join.\",\n        },\n        {\n          id: 6,\n          category: \"Teams\",\n          question: \"What happens to data when someone leaves?\",\n          answer:\n            \"Their work stays in the workspace. An admin can reassign ownership of projects and remove the member in one step.\",\n        },\n        {\n          id: 7,\n          category: \"Security\",\n          question: \"Do you support two factor authentication?\",\n          answer:\n            \"Yes. Turn on an authenticator app or a security key under Settings and Security. Admins can require it for the whole team.\",\n        },\n      ],\n      topics: () => [\"invoice\", \"refund\", \"password\", \"invite\"],\n    }\n  );\n\n  const query = ref(\"\");\n  const term = computed(() => query.value.trim());\n\n  const results = computed(() => {\n    const needle = term.value.toLowerCase();\n    if (!needle) return props.faqs;\n    return props.faqs.filter((faq) =>\n      `${faq.question} ${faq.answer} ${faq.category}`.toLowerCase().includes(needle)\n    );\n  });\n\n  function split(text: string) {\n    const needle = term.value;\n    if (!needle) return [{ text, hit: false }];\n    const escaped = needle.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n    return text\n      .split(new RegExp(`(${escaped})`, \"gi\"))\n      .filter(Boolean)\n      .map((part) => ({ text: part, hit: part.toLowerCase() === needle.toLowerCase() }));\n  }\n</script>\n","category":"FAQ","description":"FAQ search with highlighted matches. Features: Search field with clear button, popular topic chips, matched words highlighted in questions and answers, live result count, no results state with support link","path":"FAQ/BlockFAQ8.vue","components":["badge","button","container","input"]},{"name":"FAQ 9","fileName":"BlockFAQ9.vue","file":"<template>\n  <!--\n    FAQ accordion with helpful votes\n    Features: Accordion answers with \"Was this helpful?\" thumbs up and down, thank you message, follow up link after a negative vote, vote tally per answer\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"text-center\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">Frequently asked questions</h2>\n        <p class=\"text-muted-foreground mt-3 text-lg\">\n          Tell us whether an answer helped. It shapes what we write next.\n        </p>\n      </div>\n\n      <UiAccordion type=\"single\" collapsible default-value=\"q-1\" class=\"mt-10\">\n        <UiAccordionItem v-for=\"faq in faqs\" :key=\"faq.id\" :value=\"`q-${faq.id}`\">\n          <UiAccordionHeader>\n            <UiAccordionTrigger class=\"text-base hover:no-underline\">{{\n              faq.question\n            }}</UiAccordionTrigger>\n          </UiAccordionHeader>\n          <UiAccordionContent>\n            <p class=\"text-muted-foreground\">{{ faq.answer }}</p>\n\n            <div class=\"mt-4 flex flex-wrap items-center gap-3 border-t pt-4\">\n              <template v-if=\"!votes[faq.id]\">\n                <span class=\"text-sm font-medium\">Was this helpful?</span>\n                <div class=\"flex gap-2\">\n                  <UiButton variant=\"outline\" size=\"sm\" @click=\"vote(faq.id, 'yes')\">\n                    <Icon name=\"lucide:thumbs-up\" class=\"size-4\" />Yes\n                  </UiButton>\n                  <UiButton variant=\"outline\" size=\"sm\" @click=\"vote(faq.id, 'no')\">\n                    <Icon name=\"lucide:thumbs-down\" class=\"size-4\" />No\n                  </UiButton>\n                </div>\n              </template>\n              <p v-else class=\"flex flex-wrap items-center gap-2 text-sm\" role=\"status\">\n                <Icon\n                  :name=\"votes[faq.id] === 'yes' ? 'lucide:circle-check' : 'lucide:message-circle'\"\n                  class=\"text-primary size-4\"\n                />\n                <span v-if=\"votes[faq.id] === 'yes'\"\n                  >Glad that helped. Thanks for the feedback.</span\n                >\n                <span v-else\n                  >Sorry about that.\n                  <a href=\"#contact\" class=\"text-primary underline underline-offset-4\"\n                    >Ask our team</a\n                  >\n                  and we will improve this answer.</span\n                >\n                <UiButton variant=\"link\" size=\"sm\" class=\"h-auto p-0\" @click=\"undo(faq.id)\"\n                  >Undo</UiButton\n                >\n              </p>\n              <span class=\"text-muted-foreground ml-auto text-xs\"\n                >{{ tally(faq) }}% found this helpful</span\n              >\n            </div>\n          </UiAccordionContent>\n        </UiAccordionItem>\n      </UiAccordion>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Faq = { id: number; question: string; answer: string; yes: number; no: number };\n\n  withDefaults(\n    defineProps<{\n      faqs?: Faq[];\n    }>(),\n    {\n      faqs: () => [\n        {\n          id: 1,\n          question: \"Is there a free plan?\",\n          answer:\n            \"Yes. The free plan includes three projects and one teammate, with no time limit and no credit card required.\",\n          yes: 92,\n          no: 8,\n        },\n        {\n          id: 2,\n          question: \"Can I cancel at any time?\",\n          answer:\n            \"You can cancel from Billing in two clicks. Your plan stays active until the end of the period you already paid for.\",\n          yes: 86,\n          no: 14,\n        },\n        {\n          id: 3,\n          question: \"How is my data protected?\",\n          answer:\n            \"Data is encrypted in transit and at rest, backups run every night, and we are audited each year against SOC 2.\",\n          yes: 78,\n          no: 22,\n        },\n        {\n          id: 4,\n          question: \"Do you offer discounts for nonprofits?\",\n          answer:\n            \"Registered nonprofits and open source projects get 50% off any paid plan. Send us your registration details to apply.\",\n          yes: 64,\n          no: 36,\n        },\n      ],\n    }\n  );\n\n  const votes = ref<Record<number, \"yes\" | \"no\" | undefined>>({});\n\n  function vote(id: number, value: \"yes\" | \"no\") {\n    votes.value = { ...votes.value, [id]: value };\n  }\n\n  function undo(id: number) {\n    votes.value = { ...votes.value, [id]: undefined };\n  }\n\n  function tally(faq: Faq) {\n    const mine = votes.value[faq.id];\n    const yes = faq.yes + (mine === \"yes\" ? 1 : 0);\n    const total = faq.yes + faq.no + (mine ? 1 : 0);\n    return Math.round((yes / total) * 100);\n  }\n</script>\n","category":"FAQ","description":"FAQ accordion with helpful votes. Features: Accordion answers with \"Was this helpful?\" thumbs up and down, thank you message, follow up link after a negative vote, vote tally per answer","path":"FAQ/BlockFAQ9.vue","components":["accordion","button","container"]},{"name":"Feature 1","fileName":"BlockFeature1.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.12),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion :variants=\"childVariant\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary text-center font-semibold\"\n          >Features</Motion\n        >\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-3 mb-4 text-center text-3xl font-semibold lg:mb-5 lg:text-4xl\"\n        >\n          Beautiful analytics to grow smarter\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[760px] text-center text-lg lg:text-xl\"\n        >\n          Powerful, self-serve product and growth analytics to help you convert, engage, and retain\n          more users. Trusted by over 4,000 startups.\n        </Motion>\n      </Motion>\n\n      <template v-for=\"(f, i) in features\" :key=\"i\">\n        <Motion :variants=\"childVariant\" :transition=\"{ delay: i * 0.2 }\">\n          <section\n            class=\"mt-12 grid grid-cols-1 items-center gap-10 lg:mt-24 lg:h-[520px] lg:grid-cols-2 lg:gap-20\"\n          >\n            <div :class=\"[i % 2 == 0 ? 'lg:order-0' : 'lg:order-1']\">\n              <div\n                class=\"bg-primary/20 mb-5 flex h-12 w-12 items-center justify-center rounded-full\"\n              >\n                <Icon name=\"heroicons:chat-bubble-left-right\" class=\"text-primary h-6 w-6\" />\n              </div>\n              <h3 class=\"mb-2 text-2xl font-semibold lg:mb-4 lg:text-3xl\" v-html=\"f.title\" />\n              <p class=\"text-muted-foreground lg:text-lg\" v-html=\"f.description\" />\n\n              <Motion\n                as=\"ul\"\n                class=\"text-muted-foreground mt-8 flex flex-col gap-5\"\n                :initial=\"{ opacity: 0 }\"\n                :visible-once=\"{ opacity: 1, transition: { staggerChildren: 0.1 } }\"\n              >\n                <Motion\n                  v-for=\"(p, k) in f.points\"\n                  :key=\"`Point-${k}`\"\n                  as=\"li\"\n                  class=\"flex gap-3 lg:text-lg\"\n                  :initial=\"{ opacity: 0, x: -10 }\"\n                  :visible-once=\"{ opacity: 1, x: 0 }\"\n                >\n                  <Icon name=\"heroicons:check-circle\" class=\"text-primary h-6 w-6 shrink-0\" />\n                  <span v-html=\"p.text\" />\n                </Motion>\n              </Motion>\n            </div>\n\n            <Motion\n              as=\"img\"\n              :while-hover=\"{ scale: 1.03 }\"\n              :variants=\"{\n                initial: { opacity: 0, scale: 1.1 },\n                animate: { opacity: 1, scale: 1, transition: { duration: 0.3 } },\n              }\"\n              :src=\"f.imageUrl\"\n              :alt=\"f.title\"\n              class=\"h-[300px] w-full rounded-lg object-cover shadow-xs lg:h-[520px]\"\n            />\n          </section>\n        </Motion>\n      </template>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: { when: \"beforeChildren\", delayChildren: stagger(0.12) },\n    },\n  };\n\n  const features = [\n    {\n      title: \"Share team inboxes\",\n      icon: \"heroicons:chat-bubble-left-right\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n      imageUrl:\n        \"https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      points: [\n        { text: \"Leverage automation to move fast\" },\n        { text: \"Always give customers a human to chat to\" },\n        { text: \"Automate customer support and close leads faster\" },\n      ],\n    },\n    {\n      title: \"Deliver instant answers\",\n      icon: \"heroicons:bolt\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n      imageUrl:\n        \"https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      points: [\n        { text: \"Keep your customers in the loop with live chat\" },\n        { text: \"Embed help articles right on your website\" },\n        { text: \"Customers never have to leave the page to find an answer\" },\n      ],\n    },\n    {\n      title: \"Manage your team with reports\",\n      icon: \"heroicons:cursor-arrow-rays\",\n      description: `Measure what matters with ${COMPANY_NAME} easy-to-use reports. You can filter, export, and drill down on the data in a couple clicks.`,\n      imageUrl:\n        \"https://images.unsplash.com/photo-1628348068343-c6a848d2b6dd?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      points: [\n        { text: \"Filter, export, and drilldown on the data quickly\" },\n        { text: \"Save, schedule, and automate reports to your inbox\" },\n        { text: \"Connect the tools you already use with 100+ integrations\" },\n      ],\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature1.vue","components":["container"]},{"name":"Feature 10","fileName":"BlockFeature10.vue","file":"<template>\n  <Motion initial=\"initial\" while-in-view=\"animate\" as-child :variants=\"parentVariant\">\n    <UiContainer class=\"py-16 lg:py-24\">\n      <div class=\"mx-auto max-w-[760px]\">\n        <Motion :variants=\"childVariant\" class=\"text-center\">\n          <UiBadge variant=\"outline\" class=\"gap-2 px-3 py-1.5 text-sm font-normal\"\n            ><Icon name=\"lucide:circle-dot\" class=\"text-primary size-4\" /> Features</UiBadge\n          >\n        </Motion>\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-3 mb-4 text-center text-3xl font-semibold lg:mt-7 lg:mb-5 lg:text-4xl\"\n        >\n          Cutting-edge features for advanced analytics\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[760px] text-center text-lg lg:text-xl\"\n        >\n          Powerful, self-serve product and growth analytics to help you convert, engage, and retain\n          more users. Trusted by over 4,000 startups.\n        </Motion>\n      </div>\n\n      <div\n        class=\"grid grid-cols-1 gap-y-12 py-10 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-16 lg:py-20\"\n      >\n        <Motion\n          as=\"div\"\n          class=\"flex flex-col gap-10 lg:gap-12\"\n          :variants=\"parentVariant\"\n          initial=\"initial\"\n          while-in-view=\"animate\"\n        >\n          <Motion\n            v-for=\"(f, i) in features1\"\n            :key=\"i\"\n            class=\"group flex flex-col\"\n            :variants=\"{\n              initial: { opacity: 0, x: -20 },\n              animate: { opacity: 1, x: 0 },\n            }\"\n          >\n            <div class=\"flex h-12 w-12 items-center justify-center rounded-md border\">\n              <Icon\n                :name=\"f.icon\"\n                class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-6 lg:w-6\"\n              />\n            </div>\n            <h3\n              class=\"mt-4 text-lg font-semibold text-balance lg:mt-5 lg:text-xl\"\n              v-text=\"f.title\"\n            />\n            <p class=\"text-muted-foreground mt-1 text-balance lg:mt-2\" v-text=\"f.description\" />\n            <NuxtLink\n              class=\"text-primary mt-4 inline-flex items-center gap-2 font-semibold underline-offset-2 hover:underline lg:mt-5\"\n              :to=\"f.link.url\"\n              >{{ f.link.text }}\n              <Icon\n                name=\"heroicons:arrow-right\"\n                class=\"size-4 transition-transform group-hover:translate-x-1\"\n            /></NuxtLink>\n          </Motion>\n        </Motion>\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, scale: 0.95 },\n            animate: { opacity: 1, scale: 1 },\n          }\"\n          :transition=\"{ duration: 0.6, delay: 0.3 }\"\n          class=\"order-last col-span-full lg:order-0 lg:col-span-1\"\n        >\n          <img\n            src=\"/phone-mockup.png\"\n            alt=\"Features section nine image\"\n            class=\"mx-auto h-[360px] w-[400px] object-cover object-top lg:h-[640px] lg:w-full lg:object-contain\"\n          />\n        </Motion>\n\n        <Motion\n          as=\"div\"\n          class=\"flex flex-col gap-10 lg:gap-12\"\n          :variants=\"parentVariant\"\n          initial=\"initial\"\n          while-in-view=\"animate\"\n        >\n          <Motion\n            v-for=\"(f, i) in features2\"\n            :key=\"i\"\n            class=\"group flex flex-col\"\n            :variants=\"{\n              initial: { opacity: 0, x: 20 },\n              animate: { opacity: 1, x: 0 },\n            }\"\n          >\n            <div class=\"flex h-12 w-12 items-center justify-center rounded-md border\">\n              <Icon\n                :name=\"f.icon\"\n                class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-6 lg:w-6\"\n              />\n            </div>\n            <h3\n              class=\"mt-4 text-lg font-semibold text-balance lg:mt-5 lg:text-xl\"\n              v-text=\"f.title\"\n            />\n            <p class=\"text-muted-foreground mt-1 text-balance lg:mt-2\" v-text=\"f.description\" />\n            <NuxtLink\n              class=\"text-primary mt-4 inline-flex items-center gap-2 font-semibold underline-offset-2 hover:underline lg:mt-5\"\n              :to=\"f.link.url\"\n              >{{ f.link.text }}\n              <Icon\n                name=\"heroicons:arrow-right\"\n                class=\"size-4 transition-transform group-hover:translate-x-1\"\n            /></NuxtLink>\n          </Motion>\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n  const features1 = [\n    {\n      icon: \"lucide:message-square-dot\",\n      title: \"Share team inboxes\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n    {\n      icon: \"lucide:zap\",\n      title: \"Deliver instant answers\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n  ];\n  const features2 = [\n    {\n      icon: \"lucide:mouse-pointer-click\",\n      title: \"Manage your team with reports\",\n      description: `Measure what matters with ${COMPANY_NAME} easy-to-use reports. You can filter, export, and drill down on the data in a couple clicks.`,\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n    {\n      icon: \"lucide:users\",\n      title: \"Connect with customers\",\n      description:\n        \"Solve a problem or close a sale in real-time with chat. If no one is available, customers are seamlessly routed to email without confusion.\",\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature10.vue","components":["badge","container"]},{"name":"Feature 11","fileName":"BlockFeature11.vue","file":"<template>\n  <Motion initial=\"initial\" while-in-view=\"animate\" as-child :variants=\"parentVariant\">\n    <UiContainer class=\"py-16 lg:py-24\">\n      <div class=\"mx-auto max-w-[760px]\">\n        <Motion :variants=\"childVariant\" class=\"text-center\">\n          <UiBadge variant=\"outline\" class=\"gap-2 px-3 py-1.5 text-sm font-normal\">\n            Integrations\n          </UiBadge>\n        </Motion>\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-3 mb-4 text-center text-3xl font-semibold lg:mt-7 lg:mb-5 lg:text-4xl\"\n        >\n          Get more value from your tools\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[760px] text-center text-lg lg:text-xl\"\n        >\n          Connect your tools, connect your teams. With over 100 apps already available in our\n          directory, your team's favourite tools are just a click away.\n        </Motion>\n      </div>\n\n      <Motion\n        as=\"div\"\n        class=\"my-12 grid grid-cols-1 gap-y-10 lg:my-24 lg:grid-cols-3 lg:gap-8 lg:gap-y-16\"\n        :variants=\"parentVariant\"\n        initial=\"initial\"\n        while-in-view=\"animate\"\n      >\n        <Motion\n          v-for=\"(f, i) in features\"\n          :key=\"i\"\n          class=\"group flex flex-col items-center\"\n          :variants=\"childVariant\"\n        >\n          <div class=\"flex h-12 w-12 items-center justify-center rounded-md border\">\n            <Icon\n              :name=\"f.icon\"\n              class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-6 lg:w-6\"\n            />\n          </div>\n          <h3 class=\"mt-4 text-center text-lg font-semibold text-balance lg:mt-5 lg:text-xl\">\n            {{ f.title }} integration\n          </h3>\n          <p class=\"text-muted-foreground mt-1 max-w-[650px] text-center text-balance lg:mt-2\">\n            Work faster and smarter by integrating directly with {{ f.title }}, right in the app.\n          </p>\n          <NuxtLink\n            class=\"text-primary mt-4 inline-flex items-center gap-2 font-semibold underline-offset-2 hover:underline lg:mt-5\"\n            to=\"#\"\n            >View integration\n            <Icon\n              name=\"heroicons:arrow-right\"\n              class=\"size-4 transition-transform group-hover:translate-x-1\"\n          /></NuxtLink>\n        </Motion>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n  const features = [\n    { icon: \"logos:notion-icon\", title: \"Notion\" },\n    { icon: \"logos:slack-icon\", title: \"Slack\" },\n    { icon: \"logos:figma\", title: \"Figma\" },\n    { icon: \"logos:google-analytics\", title: \"Google Analytics\" },\n    { icon: \"logos:google-drive\", title: \"Google Drive\" },\n    { icon: \"logos:jira\", title: \"Jira\" },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature11.vue","components":["badge","container"]},{"name":"Feature 12","fileName":"BlockFeature12.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"parentVariant\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion :variants=\"childVariant\">\n        <div class=\"mx-auto max-w-[760px] text-center\">\n          <h2 class=\"mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\">\n            Explore our powerful features\n          </h2>\n          <p class=\"text-muted-foreground text-lg lg:text-xl\">\n            Everything you need to build, deploy, and scale your applications with confidence.\n          </p>\n        </div>\n      </Motion>\n\n      <div class=\"mt-12 lg:mt-16\">\n        <UiTabs v-model=\"tab\" class=\"w-full\">\n          <Motion as-child :variants=\"childVariant\">\n            <UiTabsList class=\"mx-auto grid w-full max-w-lg grid-cols-3\">\n              <UiTabsTrigger v-for=\"(item, i) in feats\" :key=\"i\" :value=\"item.value\">\n                <Icon :name=\"item.icon\" class=\"mr-2 size-4\" />\n                <span class=\"capitalize\">{{ item.value }}</span>\n              </UiTabsTrigger>\n            </UiTabsList>\n          </Motion>\n\n          <template v-if=\"selectedFeat\">\n            <UiTabsContent :key=\"tab\" :value=\"selectedFeat?.value\" class=\"mt-8 lg:mt-12\">\n              <div class=\"grid grid-cols-1 gap-10 lg:grid-cols-2 lg:gap-16\">\n                <Motion :variants=\"childVariant\">\n                  <img\n                    :src=\"selectedFeat?.image\"\n                    :alt=\"selectedFeat?.alt\"\n                    class=\"h-[300px] w-full rounded-lg object-cover shadow-lg lg:h-[400px]\"\n                  />\n                </Motion>\n                <div>\n                  <Motion\n                    as=\"h3\"\n                    :variants=\"childVariant\"\n                    class=\"mb-4 text-2xl font-semibold lg:text-3xl\"\n                    >{{ selectedFeat?.title }}</Motion\n                  >\n                  <Motion\n                    as=\"p\"\n                    :variants=\"childVariant\"\n                    class=\"text-muted-foreground mb-6 lg:text-lg\"\n                  >\n                    {{ selectedFeat?.description }}\n                  </Motion>\n\n                  <Motion\n                    v-for=\"(f, i) in selectedFeat?.items\"\n                    :key=\"i\"\n                    class=\"mb-4 flex gap-3\"\n                    :variants=\"{\n                      initial: { opacity: 0, x: -10 },\n                      animate: { opacity: 1, x: 0 },\n                    }\"\n                  >\n                    <Icon name=\"heroicons:check-circle\" class=\"text-primary h-6 w-6 shrink-0\" />\n                    <div>\n                      <p class=\"font-semibold\">{{ f.title }}</p>\n                      <p class=\"text-muted-foreground text-sm\">{{ f.description }}</p>\n                    </div>\n                  </Motion>\n                </div>\n              </div>\n            </UiTabsContent>\n          </template>\n        </UiTabs>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.12),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const tab = ref(\"analytics\");\n\n  const feats = ref([\n    {\n      title: \"Advanced Analytics\",\n      description:\n        \"Get deep insights into your data with real-time analytics and customizable dashboards.\",\n      value: \"analytics\",\n      icon: \"lucide:bar-chart-3\",\n      image:\n        \"https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop\",\n      alt: \"Analytics dashboard\",\n      items: [\n        { title: \"Real-time Data\", description: \"Monitor your metrics as they happen\" },\n        { title: \"Custom Dashboards\", description: \"Build dashboards tailored to your needs\" },\n        { title: \"Export Reports\", description: \"Generate and share detailed reports\" },\n      ],\n    },\n    {\n      title: \"Enterprise Security\",\n      description:\n        \"Protect your data with industry-leading security features and compliance certifications.\",\n      value: \"security\",\n      icon: \"lucide:shield-check\",\n      image:\n        \"https://images.unsplash.com/photo-1563013544-824ae1b704d3?q=80&w=2070&auto=format&fit=crop\",\n      alt: \"Enterprise security\",\n      items: [\n        {\n          title: \"End-to-End Encryption\",\n          description: \"Your data is encrypted at rest and in transit\",\n        },\n        {\n          title: \"SSO Integration\",\n          description: \"Single sign-on with your existing identity provider\",\n        },\n        { title: \"Compliance Ready\", description: \"SOC 2, GDPR, and HIPAA compliant\" },\n      ],\n    },\n    {\n      title: \"Smart Automation\",\n      description:\n        \"Automate repetitive tasks and workflows to save time and increase productivity.\",\n      value: \"automation\",\n      icon: \"lucide:zap\",\n      image:\n        \"https://images.unsplash.com/photo-1518186285589-2f7649de83e0?q=80&w=2074&auto=format&fit=crop\",\n      alt: \"Automation workflows\",\n      items: [\n        { title: \"Workflow Builder\", description: \"Create custom workflows with drag-and-drop\" },\n        { title: \"API Integrations\", description: \"Connect with 1000+ apps and services\" },\n        { title: \"Scheduled Tasks\", description: \"Run tasks automatically on a schedule\" },\n      ],\n    },\n  ]);\n\n  const selectedFeat = computed(() => {\n    return feats.value.find((f) => f.value === tab.value);\n  });\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature12.vue","components":["container","tabs"]},{"name":"Feature 13","fileName":"BlockFeature13.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"parentVariant\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion :variants=\"childVariant\">\n        <div class=\"mx-auto max-w-[760px] text-center\">\n          <p class=\"text-primary font-semibold\">Everything you need</p>\n          <h2 class=\"mt-3 mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\">\n            Built for modern teams\n          </h2>\n          <p class=\"text-muted-foreground text-lg lg:text-xl\">\n            A comprehensive suite of tools designed to help teams collaborate and succeed.\n          </p>\n        </div>\n      </Motion>\n\n      <Motion\n        as=\"div\"\n        class=\"mt-12 grid grid-cols-1 gap-4 md:grid-cols-2 lg:mt-16 lg:grid-cols-3 lg:gap-6\"\n        :variants=\"parentVariant\"\n        initial=\"initial\"\n        while-in-view=\"animate\"\n        :in-view-options=\"{ once: true }\"\n      >\n        <!-- Large featured card -->\n        <Motion :variants=\"childVariant\" class=\"group col-span-1 md:col-span-2 lg:row-span-2\">\n          <UiCard class=\"h-full overflow-hidden py-0 transition-all hover:shadow-lg\">\n            <div class=\"relative h-[300px] overflow-hidden lg:h-full\">\n              <img\n                src=\"https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2015&auto=format&fit=crop\"\n                alt=\"Team collaboration\"\n                class=\"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105\"\n              />\n              <div class=\"absolute inset-0 bg-linear-to-t from-black/80 to-transparent\" />\n              <div class=\"absolute bottom-0 p-6 text-white lg:p-8\">\n                <div\n                  class=\"mb-3 flex h-12 w-12 items-center justify-center rounded-lg bg-white/20 backdrop-blur-sm\"\n                >\n                  <Icon name=\"lucide:users\" class=\"h-6 w-6\" />\n                </div>\n                <h3 class=\"mb-2 text-2xl font-semibold lg:text-3xl\">Team Collaboration</h3>\n                <p class=\"text-white/90 lg:text-lg\">\n                  Work together seamlessly with real-time collaboration tools and shared workspaces.\n                </p>\n              </div>\n            </div>\n          </UiCard>\n        </Motion>\n\n        <!-- Small cards -->\n        <Motion :variants=\"childVariant\" class=\"group col-span-1\">\n          <UiCard class=\"h-full p-6 transition-all hover:shadow-lg lg:p-8\">\n            <div class=\"bg-primary/10 mb-4 flex h-12 w-12 items-center justify-center rounded-lg\">\n              <Icon name=\"lucide:rocket\" class=\"text-primary h-6 w-6\" />\n            </div>\n            <h3 class=\"mb-2 text-xl font-semibold lg:text-2xl\">Fast Deployment</h3>\n            <p class=\"text-muted-foreground\">\n              Deploy in seconds with our streamlined CI/CD pipeline.\n            </p>\n          </UiCard>\n        </Motion>\n\n        <Motion :variants=\"childVariant\" class=\"group col-span-1\">\n          <UiCard class=\"h-full p-6 transition-all hover:shadow-lg lg:p-8\">\n            <div class=\"bg-primary/10 mb-4 flex h-12 w-12 items-center justify-center rounded-lg\">\n              <Icon name=\"lucide:code-2\" class=\"text-primary h-6 w-6\" />\n            </div>\n            <h3 class=\"mb-2 text-xl font-semibold lg:text-2xl\">Developer Tools</h3>\n            <p class=\"text-muted-foreground\">\n              Built-in debugging and testing tools for developers.\n            </p>\n          </UiCard>\n        </Motion>\n\n        <Motion :variants=\"childVariant\" class=\"group col-span-1 md:col-span-2 lg:col-span-1\">\n          <UiCard class=\"h-full p-6 transition-all hover:shadow-lg lg:p-8\">\n            <div class=\"bg-primary/10 mb-4 flex h-12 w-12 items-center justify-center rounded-lg\">\n              <Icon name=\"lucide:gauge\" class=\"text-primary h-6 w-6\" />\n            </div>\n            <h3 class=\"mb-2 text-xl font-semibold lg:text-2xl\">Performance</h3>\n            <p class=\"text-muted-foreground\">\n              Lightning-fast performance with global CDN and edge caching.\n            </p>\n          </UiCard>\n        </Motion>\n\n        <Motion :variants=\"childVariant\" class=\"group col-span-1\">\n          <UiCard class=\"h-full p-6 transition-all hover:shadow-lg lg:p-8\">\n            <div class=\"bg-primary/10 mb-4 flex h-12 w-12 items-center justify-center rounded-lg\">\n              <Icon name=\"lucide:lock\" class=\"text-primary h-6 w-6\" />\n            </div>\n            <h3 class=\"mb-2 text-xl font-semibold lg:text-2xl\">Secure</h3>\n            <p class=\"text-muted-foreground\">Enterprise-grade security with SOC 2 compliance.</p>\n          </UiCard>\n        </Motion>\n\n        <Motion :variants=\"childVariant\" class=\"group col-span-1\">\n          <UiCard class=\"h-full p-6 transition-all hover:shadow-lg lg:p-8\">\n            <div class=\"bg-primary/10 mb-4 flex h-12 w-12 items-center justify-center rounded-lg\">\n              <Icon name=\"lucide:headphones\" class=\"text-primary h-6 w-6\" />\n            </div>\n            <h3 class=\"mb-2 text-xl font-semibold lg:text-2xl\">24/7 Support</h3>\n            <p class=\"text-muted-foreground\">Expert support whenever you need it.</p>\n          </UiCard>\n        </Motion>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.08),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20, scale: 0.95 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      scale: 1,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature13.vue","components":["card","container"]},{"name":"Feature 14","fileName":"BlockFeature14.vue","file":"<template>\n  <div class=\"relative overflow-hidden py-16 lg:py-24\">\n    <!-- Background decoration -->\n    <div class=\"absolute inset-0\">\n      <div\n        class=\"bg-primary/5 absolute top-0 left-1/2 h-[500px] w-[500px] -translate-x-1/2 rounded-full blur-3xl\"\n      />\n    </div>\n\n    <Motion\n      initial=\"initial\"\n      while-in-view=\"animate\"\n      :in-view-options=\"{ once: true }\"\n      as-child\n      :variants=\"parentVariant\"\n    >\n      <UiContainer class=\"relative\">\n        <Motion :variants=\"childVariant\">\n          <div class=\"mx-auto max-w-[760px] text-center\">\n            <UiBadge variant=\"outline\" class=\"mb-4\">Our Services</UiBadge>\n            <h2 class=\"mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\">\n              Professional services tailored to your needs\n            </h2>\n            <p class=\"text-muted-foreground text-lg lg:text-xl\">\n              We offer comprehensive solutions to help your business thrive in the digital age.\n            </p>\n          </div>\n        </Motion>\n\n        <div\n          as=\"div\"\n          class=\"mt-12 grid grid-cols-1 gap-6 md:grid-cols-2 lg:mt-16 lg:grid-cols-3 lg:gap-8\"\n        >\n          <Motion\n            v-for=\"(service, i) in services\"\n            :key=\"i\"\n            class=\"group bg-card hover:border-primary relative overflow-hidden rounded-lg border p-6 hover:shadow-lg lg:p-6\"\n            :variants=\"childVariant\"\n          >\n            <div class=\"relative z-10 flex h-full flex-col\">\n              <div\n                class=\"mb-4 inline-flex h-14 w-14 items-center justify-center rounded-lg transition-colors\"\n                :class=\"service.bgClass\"\n              >\n                <Icon :name=\"service.icon\" class=\"h-7 w-7\" :class=\"service.iconClass\" />\n              </div>\n              <h3 class=\"mb-3 text-xl font-semibold lg:text-2xl\">{{ service.title }}</h3>\n              <p class=\"text-muted-foreground mb-4\">{{ service.description }}</p>\n              <ul class=\"space-y-2\">\n                <li\n                  v-for=\"(feature, j) in service.features\"\n                  :key=\"j\"\n                  class=\"flex items-center gap-2 text-sm\"\n                >\n                  <Icon name=\"heroicons:check\" class=\"text-primary h-4 w-4\" />\n                  <span>{{ feature }}</span>\n                </li>\n              </ul>\n              <div class=\"mt-auto\" />\n              <UiButton variant=\"ghost\" class=\"group-hover:bg-primary/10 mt-6 w-full\">\n                Learn More\n                <Icon\n                  name=\"heroicons:arrow-right\"\n                  class=\"ml-2 size-4 transition-transform group-hover:translate-x-1\"\n                />\n              </UiButton>\n            </div>\n            <div\n              class=\"absolute -right-20 -bottom-20 h-40 w-40 rounded-full opacity-0 blur-3xl transition-opacity group-hover:opacity-100\"\n              :class=\"service.glowClass\"\n            />\n          </Motion>\n        </div>\n      </UiContainer>\n    </Motion>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const services = [\n    {\n      icon: \"lucide:palette\",\n      title: \"Design Services\",\n      description: \"Create stunning, user-friendly designs that captivate your audience.\",\n      features: [\"UI/UX Design\", \"Brand Identity\", \"Prototyping\"],\n      bgClass: \"bg-blue-500/10\",\n      iconClass: \"text-blue-500\",\n      glowClass: \"bg-blue-500/20\",\n    },\n    {\n      icon: \"lucide:code\",\n      title: \"Development\",\n      description: \"Build robust, scalable applications with cutting-edge technologies.\",\n      features: [\"Web Development\", \"Mobile Apps\", \"API Integration\"],\n      bgClass: \"bg-green-500/10\",\n      iconClass: \"text-green-500\",\n      glowClass: \"bg-green-500/20\",\n    },\n    {\n      icon: \"lucide:megaphone\",\n      title: \"Marketing\",\n      description: \"Grow your brand with data-driven marketing strategies.\",\n      features: [\"SEO Optimization\", \"Content Strategy\", \"Social Media\"],\n      bgClass: \"bg-purple-500/10\",\n      iconClass: \"text-purple-500\",\n      glowClass: \"bg-purple-500/20\",\n    },\n    {\n      icon: \"lucide:line-chart\",\n      title: \"Analytics\",\n      description: \"Make informed decisions with comprehensive data analysis.\",\n      features: [\"Data Tracking\", \"Custom Reports\", \"Insights\"],\n      bgClass: \"bg-orange-500/10\",\n      iconClass: \"text-orange-500\",\n      glowClass: \"bg-orange-500/20\",\n    },\n    {\n      icon: \"lucide:shield-check\",\n      title: \"Security\",\n      description: \"Protect your business with enterprise-grade security solutions.\",\n      features: [\"Threat Detection\", \"Compliance\", \"Monitoring\"],\n      bgClass: \"bg-red-500/10\",\n      iconClass: \"text-red-500\",\n      glowClass: \"bg-red-500/20\",\n    },\n    {\n      icon: \"lucide:headset\",\n      title: \"Support\",\n      description: \"Get expert help whenever you need it with 24/7 support.\",\n      features: [\"Live Chat\", \"Phone Support\", \"Documentation\"],\n      bgClass: \"bg-cyan-500/10\",\n      iconClass: \"text-cyan-500\",\n      glowClass: \"bg-cyan-500/20\",\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature14.vue","components":["badge","button","container"]},{"name":"Feature 15","fileName":"BlockFeature15.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"parentVariant\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion :variants=\"childVariant\">\n        <div class=\"mx-auto max-w-[760px] text-center\">\n          <h2 class=\"mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\">Feature Comparison</h2>\n          <p class=\"text-muted-foreground text-lg lg:text-xl\">\n            See how our platform stacks up with comprehensive feature coverage.\n          </p>\n        </div>\n      </Motion>\n\n      <Motion :variants=\"childVariant\" class=\"mt-12 lg:mt-16\">\n        <UiCard class=\"overflow-hidden py-0\">\n          <div class=\"overflow-x-auto\">\n            <table class=\"w-full\">\n              <thead>\n                <tr class=\"bg-muted/50 border-b\">\n                  <th class=\"p-4 text-left font-semibold lg:p-6\">Feature</th>\n                  <th class=\"p-4 text-center font-semibold lg:p-6\">Starter</th>\n                  <th class=\"p-4 text-center font-semibold lg:p-6\">Professional</th>\n                  <th class=\"p-4 text-center font-semibold lg:p-6\">Enterprise</th>\n                </tr>\n              </thead>\n              <tbody>\n                <tr\n                  v-for=\"(feature, i) in features\"\n                  :key=\"i\"\n                  class=\"hover:bg-muted/50 border-b transition-colors last:border-b-0\"\n                >\n                  <td class=\"p-4 font-medium lg:p-6\">\n                    <div class=\"flex items-start gap-4\">\n                      <Icon :name=\"feature.icon\" class=\"text-primary size-6\" />\n                      <div class=\"flex flex-col gap-0.5\">\n                        <p class=\"leading-none\">{{ feature.name }}</p>\n                        <p class=\"text-muted-foreground text-sm whitespace-nowrap\">\n                          {{ feature.description }}\n                        </p>\n                      </div>\n                    </div>\n                  </td>\n                  <td class=\"p-4 text-center lg:p-6\">\n                    <component\n                      :is=\"getFeatureComponent(feature.starter)\"\n                      :value=\"feature.starter\"\n                    />\n                  </td>\n                  <td class=\"p-4 text-center lg:p-6\">\n                    <component\n                      :is=\"getFeatureComponent(feature.professional)\"\n                      :value=\"feature.professional\"\n                    />\n                  </td>\n                  <td class=\"p-4 text-center lg:p-6\">\n                    <component\n                      :is=\"getFeatureComponent(feature.enterprise)\"\n                      :value=\"feature.enterprise\"\n                    />\n                  </td>\n                </tr>\n              </tbody>\n            </table>\n          </div>\n        </UiCard>\n      </Motion>\n\n      <Motion :variants=\"childVariant\" class=\"mt-8 text-center\">\n        <UiButton size=\"lg\">\n          Get Started\n          <Icon name=\"heroicons:arrow-right\" class=\"ml-2 size-4\" />\n        </UiButton>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.15),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const features = [\n    {\n      name: \"Team Members\",\n      description: \"Number of users\",\n      icon: \"lucide:users\",\n      starter: \"5\",\n      professional: \"25\",\n      enterprise: \"Unlimited\",\n    },\n    {\n      name: \"Storage\",\n      description: \"File storage space\",\n      icon: \"lucide:hard-drive\",\n      starter: \"10 GB\",\n      professional: \"100 GB\",\n      enterprise: \"Unlimited\",\n    },\n    {\n      name: \"API Access\",\n      description: \"Programmatic access\",\n      icon: \"lucide:code\",\n      starter: false,\n      professional: true,\n      enterprise: true,\n    },\n    {\n      name: \"Advanced Analytics\",\n      description: \"Detailed insights\",\n      icon: \"lucide:bar-chart\",\n      starter: false,\n      professional: true,\n      enterprise: true,\n    },\n    {\n      name: \"Custom Integrations\",\n      description: \"Connect your tools\",\n      icon: \"lucide:puzzle\",\n      starter: false,\n      professional: \"Limited\",\n      enterprise: true,\n    },\n    {\n      name: \"Priority Support\",\n      description: \"Get help faster\",\n      icon: \"lucide:headphones\",\n      starter: false,\n      professional: true,\n      enterprise: true,\n    },\n    {\n      name: \"SLA Guarantee\",\n      description: \"Uptime commitment\",\n      icon: \"lucide:shield-check\",\n      starter: false,\n      professional: false,\n      enterprise: \"99.9%\",\n    },\n    {\n      name: \"Dedicated Manager\",\n      description: \"Personal account support\",\n      icon: \"lucide:user-check\",\n      starter: false,\n      professional: false,\n      enterprise: true,\n    },\n  ];\n\n  const getFeatureComponent = (value: boolean | string) => {\n    const IconComponent = resolveComponent(\"Icon\");\n    if (typeof value === \"boolean\") {\n      return value\n        ? h(IconComponent, { name: \"heroicons:check\", class: \"mx-auto size-5 text-green-500\" })\n        : h(IconComponent, {\n            name: \"heroicons:x-mark\",\n            class: \"mx-auto size-5 text-muted-foreground/50\",\n          });\n    }\n    return h(\"span\", { class: \"font-medium\" }, value);\n  };\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature15.vue","components":["button","card","container"]},{"name":"Feature 16","fileName":"BlockFeature16.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"parentVariant\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion :variants=\"childVariant\">\n        <div class=\"mx-auto max-w-[760px] text-center\">\n          <h2 class=\"mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\">Why choose our platform?</h2>\n          <p class=\"text-muted-foreground text-lg lg:text-xl\">\n            Discover the features that make us the best choice for your business.\n          </p>\n        </div>\n      </Motion>\n\n      <Motion\n        as=\"div\"\n        class=\"mt-12 grid grid-cols-1 gap-6 md:grid-cols-2 lg:mt-16 lg:gap-8\"\n        :variants=\"parentVariant\"\n        initial=\"initial\"\n        while-in-view=\"animate\"\n        :in-view-options=\"{ once: true }\"\n      >\n        <Motion\n          v-for=\"(feature, i) in features\"\n          :key=\"i\"\n          class=\"group bg-card relative overflow-hidden rounded-xl border p-6 hover:shadow-xl lg:p-8\"\n          :variants=\"childVariant\"\n        >\n          <div class=\"relative z-10\">\n            <div class=\"mb-4 inline-flex items-center gap-3\">\n              <div\n                class=\"flex h-12 w-12 items-center justify-center rounded-lg transition-all group-hover:scale-110\"\n                :class=\"feature.bgClass\"\n              >\n                <Icon :name=\"feature.icon\" class=\"h-6 w-6\" :class=\"feature.iconClass\" />\n              </div>\n              <UiBadge v-if=\"feature.badge\" variant=\"secondary\">{{ feature.badge }}</UiBadge>\n            </div>\n\n            <h3 class=\"mb-3 text-xl font-semibold lg:text-2xl\">{{ feature.title }}</h3>\n            <p class=\"text-muted-foreground mb-6\">{{ feature.description }}</p>\n\n            <div class=\"space-y-3\">\n              <div\n                v-for=\"(point, j) in feature.points\"\n                :key=\"j\"\n                class=\"flex items-start gap-2 transition-transform duration-300 hover:translate-x-1\"\n              >\n                <Icon name=\"heroicons:check-circle\" class=\"text-primary mt-0.5 h-5 w-5 shrink-0\" />\n                <span class=\"text-sm\">{{ point }}</span>\n              </div>\n            </div>\n\n            <div class=\"text-primary mt-6 flex items-center gap-2 text-sm font-semibold\">\n              <span>Explore feature</span>\n              <Icon\n                name=\"heroicons:arrow-right\"\n                class=\"h-4 w-4 transition-transform group-hover:translate-x-1\"\n              />\n            </div>\n          </div>\n\n          <!-- Hover effect -->\n          <div\n            class=\"absolute -top-10 -right-10 size-44 rounded-full opacity-0 blur-2xl transition-opacity duration-500 group-hover:opacity-100\"\n            :class=\"feature.glowClass\"\n          />\n        </Motion>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.12),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 30, rotateX: 10 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      rotateX: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const features = [\n    {\n      icon: \"lucide:zap\",\n      title: \"Lightning Fast\",\n      description: \"Experience blazing-fast performance with our optimized infrastructure.\",\n      badge: \"Popular\",\n      bgClass: \"bg-yellow-500/10\",\n      iconClass: \"text-yellow-500\",\n      glowClass: \"bg-yellow-500/30\",\n      points: [\n        \"Global CDN distribution\",\n        \"Edge caching for instant delivery\",\n        \"Optimized asset loading\",\n      ],\n    },\n    {\n      icon: \"lucide:shield\",\n      title: \"Enterprise Security\",\n      description: \"Keep your data safe with bank-grade security and compliance.\",\n      bgClass: \"bg-blue-500/10\",\n      iconClass: \"text-blue-500\",\n      glowClass: \"bg-blue-500/30\",\n      points: [\"End-to-end encryption\", \"SOC 2 Type II certified\", \"Regular security audits\"],\n    },\n    {\n      icon: \"lucide:scaling\",\n      title: \"Auto Scaling\",\n      description: \"Handle any traffic spike without breaking a sweat.\",\n      bgClass: \"bg-green-500/10\",\n      iconClass: \"text-green-500\",\n      glowClass: \"bg-green-500/30\",\n      points: [\n        \"Automatic resource allocation\",\n        \"Load balancing across regions\",\n        \"Zero-downtime deployments\",\n      ],\n    },\n    {\n      icon: \"lucide:bot\",\n      title: \"AI-Powered\",\n      description: \"Leverage artificial intelligence to automate and optimize.\",\n      badge: \"New\",\n      bgClass: \"bg-purple-500/10\",\n      iconClass: \"text-purple-500\",\n      glowClass: \"bg-purple-500/30\",\n      points: [\"Smart recommendations\", \"Automated workflows\", \"Predictive analytics\"],\n    },\n    {\n      icon: \"lucide:globe\",\n      title: \"Global Reach\",\n      description: \"Deploy to 200+ locations worldwide with a single click.\",\n      bgClass: \"bg-cyan-500/10\",\n      iconClass: \"text-cyan-500\",\n      glowClass: \"bg-cyan-500/30\",\n      points: [\"Multi-region deployment\", \"Geo-routing optimization\", \"Local data compliance\"],\n    },\n    {\n      icon: \"lucide:chart-line\",\n      title: \"Advanced Analytics\",\n      description: \"Make data-driven decisions with comprehensive insights.\",\n      bgClass: \"bg-orange-500/10\",\n      iconClass: \"text-orange-500\",\n      glowClass: \"bg-orange-500/30\",\n      points: [\"Real-time metrics dashboard\", \"Custom report builder\", \"API usage tracking\"],\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature16.vue","components":["badge","container"]},{"name":"Feature 17","fileName":"BlockFeature17.vue","file":"<template>\n  <div class=\"relative overflow-hidden py-16 lg:py-24\">\n    <!-- Gradient background -->\n    <div class=\"from-primary/10 absolute inset-0 bg-linear-to-br via-purple-500/5 to-pink-500/10\" />\n\n    <!-- Floating elements -->\n    <div class=\"absolute top-20 left-10 hidden lg:block\">\n      <div\n        class=\"animate-float from-primary/20 h-64 w-64 rounded-full bg-linear-to-br to-purple-500/20 blur-3xl\"\n      />\n    </div>\n\n    <div class=\"absolute right-10 bottom-20 hidden lg:block\">\n      <div\n        class=\"animate-float-delayed h-80 w-80 rounded-full bg-linear-to-br from-pink-500/20 to-orange-500/20 blur-3xl\"\n      />\n    </div>\n\n    <div class=\"absolute top-1/3 right-1/3 hidden lg:block\">\n      <div\n        class=\"animate-pulse-slow h-48 w-48 rounded-full bg-linear-to-br from-cyan-500/20 to-blue-500/20 blur-3xl\"\n      />\n    </div>\n\n    <Motion\n      initial=\"initial\"\n      while-in-view=\"animate\"\n      :in-view-options=\"{ once: true }\"\n      as-child\n      :variants=\"parentVariant\"\n    >\n      <UiContainer class=\"relative\">\n        <Motion :variants=\"childVariant\">\n          <div class=\"mx-auto max-w-[800px] text-center\">\n            <UiBadge variant=\"outline\" class=\"border-primary/50 bg-primary/10 mb-4\">\n              <Icon name=\"lucide:sparkles\" class=\"mr-2 size-3\" />\n              Next-Generation Platform\n            </UiBadge>\n            <h2 class=\"mb-4 text-3xl font-bold lg:mb-6 lg:text-5xl\">\n              Transform your workflow with\n              <span\n                class=\"from-primary bg-linear-to-r via-purple-500 to-pink-500 bg-clip-text text-transparent\"\n              >\n                intelligent features\n              </span>\n            </h2>\n            <p class=\"text-muted-foreground text-lg lg:text-xl\">\n              Harness the power of modern technology to streamline your operations and drive growth.\n            </p>\n          </div>\n        </Motion>\n\n        <Motion\n          as=\"div\"\n          class=\"mt-16 grid grid-cols-1 gap-6 md:grid-cols-2 lg:mt-24 lg:grid-cols-3 lg:gap-8\"\n          :variants=\"parentVariant\"\n          initial=\"initial\"\n          while-in-view=\"animate\"\n          :in-view-options=\"{ once: true }\"\n        >\n          <Motion\n            v-for=\"(feature, i) in features\"\n            :key=\"i\"\n            class=\"group border-primary/20 bg-card/50 hover:border-primary/40 relative overflow-hidden rounded-2xl border p-6 backdrop-blur-sm lg:p-8\"\n            :variants=\"childVariant\"\n          >\n            <!-- Card gradient -->\n            <div\n              class=\"absolute inset-0 -z-10 opacity-0 transition-opacity duration-500 group-hover:opacity-100\"\n            >\n              <div class=\"absolute inset-0 bg-linear-to-br\" :class=\"feature.gradientClass\" />\n            </div>\n\n            <div class=\"relative\">\n              <div\n                class=\"mb-4 inline-flex h-14 w-14 items-center justify-center rounded-xl bg-linear-to-br transition-transform duration-300 group-hover:scale-110\"\n                :class=\"feature.iconBgClass\"\n              >\n                <Icon :name=\"feature.icon\" class=\"h-7 w-7 text-white\" />\n              </div>\n\n              <h3 class=\"mb-3 text-xl font-semibold lg:text-2xl\">{{ feature.title }}</h3>\n              <p class=\"text-muted-foreground mb-6\">{{ feature.description }}</p>\n\n              <div class=\"flex flex-wrap gap-2\">\n                <UiBadge\n                  v-for=\"(tag, j) in feature.tags\"\n                  :key=\"j\"\n                  variant=\"outline\"\n                  class=\"text-xs\"\n                >\n                  {{ tag }}\n                </UiBadge>\n              </div>\n\n              <!-- Animated indicator -->\n              <div\n                class=\"text-primary mt-6 flex items-center gap-2 text-sm font-semibold opacity-0 transition-opacity group-hover:opacity-100\"\n              >\n                <span>Learn more</span>\n                <Icon name=\"heroicons:arrow-right\" class=\"animate-bounce-horizontal h-4 w-4\" />\n              </div>\n            </div>\n\n            <!-- Glow effect -->\n            <div\n              class=\"absolute -inset-px -z-10 rounded-2xl opacity-0 blur-xl transition-opacity duration-500 dark:group-hover:opacity-100\"\n              :class=\"feature.glowClass\"\n            />\n          </Motion>\n        </Motion>\n\n        <Motion :variants=\"childVariant\" class=\"mt-12 text-center lg:mt-16\">\n          <UiButton size=\"lg\" class=\"group\">\n            Start Building Today\n            <Icon\n              name=\"heroicons:rocket-launch\"\n              class=\"ml-2 size-5 transition-transform group-hover:translate-x-1\"\n            />\n          </UiButton>\n        </Motion>\n      </UiContainer>\n    </Motion>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 40 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const features = [\n    {\n      icon: \"lucide:brain\",\n      title: \"AI-Powered Insights\",\n      description: \"Leverage machine learning to uncover patterns and predictions in your data.\",\n      tags: [\"ML\", \"Automation\", \"Analytics\"],\n      gradientClass: \"from-purple-500/10 to-pink-500/10\",\n      iconBgClass: \"from-purple-500 to-pink-500\",\n      glowClass: \"bg-linear-to-br from-purple-500/50 to-pink-500/50\",\n    },\n    {\n      icon: \"lucide:rocket\",\n      title: \"Instant Deployment\",\n      description: \"Go from code to production in seconds with our streamlined pipeline.\",\n      tags: [\"CI/CD\", \"DevOps\", \"Speed\"],\n      gradientClass: \"from-blue-500/10 to-cyan-500/10\",\n      iconBgClass: \"from-blue-500 to-cyan-500\",\n      glowClass: \"bg-linear-to-br from-blue-500/50 to-cyan-500/50\",\n    },\n    {\n      icon: \"lucide:layers\",\n      title: \"Modular Architecture\",\n      description: \"Build scalable applications with our flexible component system.\",\n      tags: [\"Flexible\", \"Scalable\", \"Modern\"],\n      gradientClass: \"from-green-500/10 to-emerald-500/10\",\n      iconBgClass: \"from-green-500 to-emerald-500\",\n      glowClass: \"bg-linear-to-br from-green-500/50 to-emerald-500/50\",\n    },\n    {\n      icon: \"lucide:shield-check\",\n      title: \"Advanced Security\",\n      description: \"Enterprise-grade protection with automated threat detection.\",\n      tags: [\"Secure\", \"Compliant\", \"Protected\"],\n      gradientClass: \"from-red-500/10 to-orange-500/10\",\n      iconBgClass: \"from-red-500 to-orange-500\",\n      glowClass: \"bg-linear-to-br from-red-500/50 to-orange-500/50\",\n    },\n    {\n      icon: \"lucide:git-branch\",\n      title: \"Version Control\",\n      description: \"Track changes, collaborate seamlessly, and never lose progress.\",\n      tags: [\"Git\", \"Collaboration\", \"History\"],\n      gradientClass: \"from-indigo-500/10 to-violet-500/10\",\n      iconBgClass: \"from-indigo-500 to-violet-500\",\n      glowClass: \"bg-linear-to-br from-indigo-500/50 to-violet-500/50\",\n    },\n    {\n      icon: \"lucide:gauge\",\n      title: \"Real-time Monitoring\",\n      description: \"Keep track of performance metrics and health with live dashboards.\",\n      tags: [\"Metrics\", \"Monitoring\", \"Live\"],\n      gradientClass: \"from-amber-500/10 to-yellow-500/10\",\n      iconBgClass: \"from-amber-500 to-yellow-500\",\n      glowClass: \"bg-linear-to-br from-amber-500/50 to-yellow-500/50\",\n    },\n  ];\n</script>\n\n<style>\n  @keyframes float {\n    0%,\n    100% {\n      transform: translateY(0px);\n    }\n    50% {\n      transform: translateY(-20px);\n    }\n  }\n\n  @keyframes float-delayed {\n    0%,\n    100% {\n      transform: translateY(0px);\n    }\n    50% {\n      transform: translateY(-30px);\n    }\n  }\n\n  @keyframes pulse-slow {\n    0%,\n    100% {\n      opacity: 0.3;\n    }\n    50% {\n      opacity: 0.6;\n    }\n  }\n\n  @keyframes bounce-horizontal {\n    0%,\n    100% {\n      transform: translateX(0);\n    }\n    50% {\n      transform: translateX(4px);\n    }\n  }\n\n  .animate-float {\n    animation: float 6s ease-in-out infinite;\n  }\n\n  .animate-float-delayed {\n    animation: float-delayed 8s ease-in-out infinite;\n  }\n\n  .animate-pulse-slow {\n    animation: pulse-slow 4s ease-in-out infinite;\n  }\n\n  .animate-bounce-horizontal {\n    animation: bounce-horizontal 1s ease-in-out infinite;\n  }\n</style>\n","category":"Feature","description":null,"path":"Feature/BlockFeature17.vue","components":["badge","button","container"]},{"name":"Feature 18","fileName":"BlockFeature18.vue","file":"<template>\n  <div class=\"relative overflow-hidden bg-slate-950 py-16 text-slate-50 lg:py-24\">\n    <!-- Dark gradient background with mesh -->\n    <div class=\"absolute inset-0\">\n      <div class=\"absolute inset-0 bg-linear-to-br from-slate-900 via-slate-950 to-black\" />\n      <div\n        class=\"from-primary/20 absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,var(--tw-gradient-stops))] via-transparent to-transparent\"\n      />\n    </div>\n\n    <!-- Floating orbs with GSAP animation -->\n    <div ref=\"orb1\" class=\"absolute top-1/4 left-1/4 hidden lg:block\">\n      <div\n        class=\"from-primary/30 h-96 w-96 rounded-full bg-linear-to-r to-purple-500/30 blur-3xl\"\n      />\n    </div>\n    <div ref=\"orb2\" class=\"absolute right-1/4 bottom-1/4 hidden lg:block\">\n      <div\n        class=\"h-96 w-96 rounded-full bg-linear-to-r from-pink-500/30 to-orange-500/30 blur-3xl\"\n      />\n    </div>\n\n    <Motion\n      initial=\"initial\"\n      while-in-view=\"animate\"\n      :in-view-options=\"{ once: true }\"\n      as-child\n      :variants=\"parentVariant\"\n    >\n      <UiContainer class=\"relative\">\n        <div class=\"mx-auto max-w-[800px] text-center\">\n          <Motion\n            :variants=\"childVariant\"\n            class=\"border-primary/30 bg-primary/10 mb-4 inline-flex items-center gap-2 rounded-full border px-4 py-1.5 backdrop-blur-sm\"\n          >\n            <div class=\"bg-primary h-2 w-2 animate-pulse rounded-full\" />\n            <span class=\"text-sm font-medium\">Revolutionary Technology</span>\n          </Motion>\n          <Motion as=\"h2\" :variants=\"childVariant\" class=\"mb-6 text-4xl font-bold lg:text-6xl\">\n            Build the future with\n            <span\n              class=\"from-primary bg-linear-to-r via-purple-400 to-pink-400 bg-clip-text text-transparent\"\n            >\n              cutting-edge tools\n            </span>\n          </Motion>\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-lg text-slate-400 lg:text-xl\">\n            Experience the next generation of development with our comprehensive platform.\n          </Motion>\n        </div>\n\n        <Motion\n          as=\"div\"\n          class=\"mt-16 grid grid-cols-1 gap-6 md:grid-cols-2 lg:mt-24 lg:gap-8\"\n          :variants=\"parentVariant\"\n          initial=\"initial\"\n          while-in-view=\"animate\"\n          :in-view-options=\"{ once: true }\"\n        >\n          <Motion\n            v-for=\"(feature, i) in features\"\n            :key=\"i\"\n            class=\"group hover:border-primary/50 relative overflow-hidden rounded-2xl border border-slate-800 bg-slate-900/50 p-8 backdrop-blur-sm hover:bg-slate-900/80\"\n            :variants=\"childVariant\"\n          >\n            <!-- Gradient border effect -->\n            <div\n              class=\"absolute inset-0 -z-10 opacity-0 transition-opacity duration-500 group-hover:opacity-100\"\n            >\n              <div class=\"absolute inset-px rounded-2xl bg-slate-900\" />\n              <div class=\"absolute inset-0 bg-linear-to-r\" :class=\"feature.borderGradient\" />\n            </div>\n\n            <div class=\"relative\">\n              <!-- Icon -->\n              <div\n                class=\"mb-6 inline-flex h-16 w-16 items-center justify-center rounded-xl bg-linear-to-br shadow-lg transition-transform duration-300 group-hover:scale-110 group-hover:shadow-2xl\"\n                :class=\"feature.iconBg\"\n              >\n                <Icon :name=\"feature.icon\" class=\"h-8 w-8 text-white\" />\n              </div>\n\n              <!-- Title and description -->\n              <h3 class=\"mb-3 text-2xl font-bold\">{{ feature.title }}</h3>\n              <p class=\"mb-6 text-slate-400\">{{ feature.description }}</p>\n\n              <!-- Features list -->\n              <ul class=\"space-y-3\">\n                <li\n                  v-for=\"(item, j) in feature.items\"\n                  :key=\"j\"\n                  class=\"flex items-center gap-3 text-sm text-slate-300\"\n                >\n                  <div\n                    class=\"bg-primary/20 flex h-5 w-5 shrink-0 items-center justify-center rounded-full\"\n                  >\n                    <Icon name=\"heroicons:check\" class=\"text-primary h-3 w-3\" />\n                  </div>\n                  <span>{{ item }}</span>\n                </li>\n              </ul>\n\n              <!-- Stats -->\n              <div\n                v-if=\"feature.stat\"\n                class=\"mt-6 rounded-lg border border-slate-800 bg-slate-950/50 p-4\"\n              >\n                <p class=\"text-3xl font-bold\" :class=\"feature.statColor\">\n                  {{ feature.stat.value }}\n                </p>\n                <p class=\"text-sm text-slate-400\">{{ feature.stat.label }}</p>\n              </div>\n            </div>\n\n            <!-- Glow on hover -->\n            <div\n              class=\"absolute -inset-0.5 -z-20 rounded-2xl opacity-0 blur-xl transition-opacity duration-500 group-hover:opacity-70\"\n              :class=\"feature.glow\"\n            />\n          </Motion>\n        </Motion>\n\n        <Motion :variants=\"childVariant\" class=\"mt-16 text-center\">\n          <UiButton size=\"lg\" class=\"group bg-primary hover:bg-primary/90\">\n            Get Started Now\n            <Icon\n              name=\"heroicons:arrow-right\"\n              class=\"ml-2 size-5 transition-transform group-hover:translate-x-1\"\n            />\n          </UiButton>\n        </Motion>\n      </UiContainer>\n    </Motion>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import gsap from \"gsap\";\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n  import { onMounted, ref } from \"vue\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.12),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 30 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const orb1 = ref<HTMLElement | null>(null);\n  const orb2 = ref<HTMLElement | null>(null);\n\n  onMounted(() => {\n    if (orb1.value) {\n      gsap.to(orb1.value, {\n        x: 100,\n        y: -50,\n        duration: 4,\n        repeat: -1,\n        yoyo: true,\n        ease: \"sine.inOut\",\n      });\n    }\n\n    if (orb2.value) {\n      gsap.to(orb2.value, {\n        x: -180,\n        y: 160,\n        duration: 5,\n        repeat: -1,\n        yoyo: true,\n        ease: \"sine.inOut\",\n      });\n    }\n  });\n\n  const features = [\n    {\n      icon: \"lucide:code-2\",\n      title: \"Developer Experience\",\n      description:\n        \"Built with developers in mind, featuring intuitive APIs and comprehensive documentation.\",\n      items: [\"TypeScript support\", \"Auto-completion\", \"Live reload\"],\n      stat: { value: \"10x\", label: \"Faster development\", color: \"text-blue-400\" },\n      iconBg: \"from-blue-500 to-cyan-500\",\n      borderGradient: \"from-blue-500/50 to-cyan-500/50\",\n      glow: \"bg-linear-to-r from-blue-500/50 to-cyan-500/50\",\n      statColor: \"text-blue-400\",\n    },\n    {\n      icon: \"lucide:zap\",\n      title: \"Blazing Performance\",\n      description: \"Optimized for speed with edge computing and intelligent caching strategies.\",\n      items: [\"Edge runtime\", \"Global CDN\", \"Incremental builds\"],\n      stat: { value: \"99.9%\", label: \"Uptime guarantee\", color: \"text-green-400\" },\n      iconBg: \"from-green-500 to-emerald-500\",\n      borderGradient: \"from-green-500/50 to-emerald-500/50\",\n      glow: \"bg-linear-to-r from-green-500/50 to-emerald-500/50\",\n      statColor: \"text-green-400\",\n    },\n    {\n      icon: \"lucide:shield\",\n      title: \"Enterprise Security\",\n      description:\n        \"Bank-level security with automatic threat detection and compliance certifications.\",\n      items: [\"SOC 2 certified\", \"GDPR compliant\", \"Encrypted at rest\"],\n      stat: { value: \"0\", label: \"Security incidents\", color: \"text-purple-400\" },\n      iconBg: \"from-purple-500 to-pink-500\",\n      borderGradient: \"from-purple-500/50 to-pink-500/50\",\n      glow: \"bg-linear-to-r from-purple-500/50 to-pink-500/50\",\n      statColor: \"text-purple-400\",\n    },\n    {\n      icon: \"lucide:globe\",\n      title: \"Global Scale\",\n      description: \"Deploy to 200+ edge locations worldwide for lightning-fast global performance.\",\n      items: [\"Multi-region support\", \"Auto-scaling\", \"Load balancing\"],\n      stat: { value: \"200+\", label: \"Edge locations\", color: \"text-orange-400\" },\n      iconBg: \"from-orange-500 to-red-500\",\n      borderGradient: \"from-orange-500/50 to-red-500/50\",\n      glow: \"bg-linear-to-r from-orange-500/50 to-red-500/50\",\n      statColor: \"text-orange-400\",\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature18.vue","components":["button","container"]},{"name":"Feature 19","fileName":"BlockFeature19.vue","file":"<template>\n  <div class=\"relative overflow-hidden py-16 lg:py-24\">\n    <!-- Gradient mesh background -->\n    <div\n      class=\"absolute inset-0 bg-linear-to-br from-indigo-50 via-white to-pink-50 dark:from-slate-950 dark:via-slate-900 dark:to-slate-950\"\n    />\n\n    <!-- Animated gradient blobs -->\n    <div class=\"absolute inset-0 -z-10 overflow-hidden\">\n      <div\n        class=\"animate-blob absolute top-0 -left-20 h-96 w-96 rounded-full bg-linear-to-r from-purple-400 to-pink-400 opacity-20 mix-blend-multiply blur-3xl filter dark:opacity-30\"\n      />\n      <div\n        class=\"animation-delay-2000 animate-blob absolute top-0 -right-20 h-96 w-96 rounded-full bg-linear-to-r from-blue-400 to-cyan-400 opacity-20 mix-blend-multiply blur-3xl filter dark:opacity-30\"\n      />\n      <div\n        class=\"animation-delay-4000 animate-blob absolute -bottom-20 left-20 h-96 w-96 rounded-full bg-linear-to-r from-green-400 to-yellow-400 opacity-20 mix-blend-multiply blur-3xl filter dark:opacity-30\"\n      />\n    </div>\n\n    <Motion\n      initial=\"initial\"\n      while-in-view=\"animate\"\n      :in-view-options=\"{ once: true }\"\n      as-child\n      :variants=\"parentVariant\"\n    >\n      <UiContainer class=\"relative\">\n        <Motion :variants=\"childVariant\">\n          <div class=\"mx-auto max-w-[900px] text-center\">\n            <div\n              class=\"bg-background/50 mb-4 inline-flex items-center gap-2 rounded-full border px-4 py-1.5 shadow-sm backdrop-blur-sm\"\n            >\n              <Icon name=\"lucide:award\" class=\"text-primary size-4\" />\n              <span class=\"text-sm font-medium\">Award-Winning Platform</span>\n            </div>\n            <h2 class=\"mb-6 text-4xl font-extrabold tracking-tight lg:text-6xl\">\n              Experience features that\n              <br />\n              <span class=\"relative inline-block\">\n                <span\n                  class=\"bg-linear-to-r from-purple-600 via-pink-600 to-blue-600 bg-clip-text text-transparent\"\n                >\n                  redefine excellence\n                </span>\n                <svg\n                  class=\"absolute -bottom-2 left-0 w-full\"\n                  viewBox=\"0 0 300 12\"\n                  fill=\"none\"\n                  xmlns=\"http://www.w3.org/2000/svg\"\n                >\n                  <path\n                    d=\"M2 10C50 2 100 2 150 6C200 10 250 10 298 6\"\n                    stroke=\"url(#gradient)\"\n                    stroke-width=\"3\"\n                    stroke-linecap=\"round\"\n                  />\n                  <defs>\n                    <linearGradient id=\"gradient\" x1=\"0\" y1=\"0\" x2=\"300\" y2=\"0\">\n                      <stop offset=\"0%\" stop-color=\"#9333EA\" />\n                      <stop offset=\"50%\" stop-color=\"#DB2777\" />\n                      <stop offset=\"100%\" stop-color=\"#2563EB\" />\n                    </linearGradient>\n                  </defs>\n                </svg>\n              </span>\n            </h2>\n            <p class=\"text-muted-foreground text-lg lg:text-xl\">\n              Discover a new way to work with intelligent automation and seamless integrations.\n            </p>\n          </div>\n        </Motion>\n\n        <!-- Feature cards in masonry-like grid -->\n        <Motion\n          as=\"div\"\n          class=\"mt-16 grid grid-cols-1 gap-6 md:grid-cols-2 lg:mt-24 lg:grid-cols-4 lg:gap-8\"\n          :variants=\"parentVariant\"\n          initial=\"initial\"\n          while-in-view=\"animate\"\n          :in-view-options=\"{ once: true }\"\n        >\n          <Motion :variants=\"childVariant\" class=\"group relative md:col-span-2\">\n            <UiCard\n              class=\"hover:border-primary/50 h-full overflow-hidden bg-transparent pt-0 transition-all hover:shadow-2xl\"\n            >\n              <div\n                class=\"relative h-48 overflow-hidden bg-linear-to-br from-purple-500 to-pink-500\"\n              >\n                <div class=\"absolute inset-0 flex items-center justify-center\">\n                  <Icon name=\"lucide:sparkles\" class=\"h-16 w-16 text-white opacity-90\" />\n                </div>\n              </div>\n              <UiCardContent>\n                <h3 class=\"mb-3 text-2xl font-bold\">AI-First Approach</h3>\n                <p class=\"text-muted-foreground mb-4\">\n                  Harness the power of artificial intelligence to automate tasks, predict outcomes,\n                  and optimize your workflow.\n                </p>\n                <div class=\"flex flex-wrap gap-2\">\n                  <UiBadge>Machine Learning</UiBadge>\n                  <UiBadge>Automation</UiBadge>\n                  <UiBadge>Predictions</UiBadge>\n                </div>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n\n          <Motion :variants=\"childVariant\" class=\"group relative\">\n            <UiCard class=\"h-full bg-transparent transition-all hover:shadow-xl\">\n              <UiCardContent class=\"flex h-full flex-col\">\n                <div\n                  class=\"mb-4 flex h-14 w-14 items-center justify-center rounded-xl bg-linear-to-br from-blue-500 to-cyan-500\"\n                >\n                  <Icon name=\"lucide:gauge\" class=\"h-7 w-7 text-white\" />\n                </div>\n                <h3 class=\"mb-2 text-xl font-bold\">Lightning Speed</h3>\n                <p class=\"text-muted-foreground mb-4 text-sm\">\n                  Experience sub-100ms response times globally.\n                </p>\n                <div class=\"mt-auto\"></div>\n                <div class=\"bg-muted/50 rounded-lg p-4\">\n                  <p class=\"text-3xl font-bold text-blue-600\">99.9%</p>\n                  <p class=\"text-muted-foreground text-xs\">Uptime SLA</p>\n                </div>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n\n          <Motion :variants=\"childVariant\" class=\"group relative\">\n            <UiCard class=\"h-full bg-transparent transition-all hover:shadow-xl\">\n              <UiCardContent class=\"flex h-full flex-col\">\n                <div\n                  class=\"mb-4 flex h-14 w-14 items-center justify-center rounded-xl bg-linear-to-br from-green-500 to-emerald-500\"\n                >\n                  <Icon name=\"lucide:shield-check\" class=\"h-7 w-7 text-white\" />\n                </div>\n                <h3 class=\"mb-2 text-xl font-bold\">Secure by Default</h3>\n                <p class=\"text-muted-foreground mb-4 text-sm\">\n                  Enterprise-grade security built into every layer.\n                </p>\n                <div class=\"mt-auto\" />\n                <ul class=\"space-y-2 text-sm\">\n                  <li class=\"flex items-center gap-2\">\n                    <Icon name=\"heroicons:check\" class=\"h-4 w-4 text-green-600\" />\n                    <span>SOC 2 Certified</span>\n                  </li>\n                  <li class=\"flex items-center gap-2\">\n                    <Icon name=\"heroicons:check\" class=\"h-4 w-4 text-green-600\" />\n                    <span>GDPR Compliant</span>\n                  </li>\n                </ul>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n\n          <Motion :variants=\"childVariant\" class=\"group relative md:col-span-2\">\n            <UiCard class=\"h-full bg-transparent transition-all hover:shadow-xl\">\n              <UiCardContent class=\"flex h-full flex-col\">\n                <div class=\"mb-6 flex items-center gap-4\">\n                  <div\n                    class=\"flex h-14 w-14 items-center justify-center rounded-xl bg-linear-to-br from-orange-500 to-red-500\"\n                  >\n                    <Icon name=\"lucide:users\" class=\"h-7 w-7 text-white\" />\n                  </div>\n                  <div>\n                    <h3 class=\"text-2xl font-bold\">Team Collaboration</h3>\n                    <p class=\"text-muted-foreground text-sm\">Work together seamlessly</p>\n                  </div>\n                </div>\n                <div class=\"mt-auto\" />\n                <div class=\"grid grid-cols-3 gap-4\">\n                  <div class=\"bg-muted/50 rounded-lg p-4 text-center\">\n                    <p class=\"text-2xl font-bold text-orange-600\">50+</p>\n                    <p class=\"text-muted-foreground text-xs\">Integrations</p>\n                  </div>\n                  <div class=\"bg-muted/50 rounded-lg p-4 text-center\">\n                    <p class=\"text-2xl font-bold text-orange-600\">24/7</p>\n                    <p class=\"text-muted-foreground text-xs\">Support</p>\n                  </div>\n                  <div class=\"bg-muted/50 rounded-lg p-4 text-center\">\n                    <p class=\"text-2xl font-bold text-orange-600\">100%</p>\n                    <p class=\"text-muted-foreground text-xs\">Satisfaction</p>\n                  </div>\n                </div>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n\n          <Motion :variants=\"childVariant\" class=\"group relative\">\n            <UiCard class=\"h-full bg-transparent transition-all hover:shadow-xl\">\n              <UiCardContent class=\"flex h-full flex-col\">\n                <div\n                  class=\"mb-4 flex h-14 w-14 items-center justify-center rounded-xl bg-linear-to-br from-violet-500 to-purple-500\"\n                >\n                  <Icon name=\"lucide:rocket\" class=\"h-7 w-7 text-white\" />\n                </div>\n                <h3 class=\"mb-2 text-xl font-bold\">Deploy Anywhere</h3>\n                <p class=\"text-muted-foreground text-sm\">\n                  Multi-cloud support with one-click deployment.\n                </p>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n        </Motion>\n      </UiContainer>\n    </Motion>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 40 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n</script>\n\n<style>\n  @keyframes blob {\n    0%,\n    100% {\n      transform: translate(0, 0) scale(1);\n    }\n    33% {\n      transform: translate(30px, -50px) scale(1.1);\n    }\n    66% {\n      transform: translate(-20px, 20px) scale(0.9);\n    }\n  }\n\n  .animate-blob {\n    animation: blob 15s infinite;\n  }\n\n  .animation-delay-2000 {\n    animation-delay: 2s;\n  }\n\n  .animation-delay-4000 {\n    animation-delay: 4s;\n  }\n</style>\n","category":"Feature","description":null,"path":"Feature/BlockFeature19.vue","components":["badge","card","container"]},{"name":"Feature 2","fileName":"BlockFeature2.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary text-center font-semibold\"\n        >Features</Motion\n      >\n      <Motion\n        as=\"h2\"\n        :variants=\"childVariant\"\n        class=\"mt-3 mb-4 text-center text-3xl font-semibold lg:mb-5 lg:text-4xl\"\n      >\n        Beautiful analytics to grow smarter\n      </Motion>\n      <Motion\n        as=\"p\"\n        :variants=\"childVariant\"\n        class=\"text-muted-foreground mx-auto max-w-[760px] text-center text-lg lg:text-xl\"\n      >\n        Powerful, self-serve product and growth analytics to help you convert, engage, and retain\n        more users. Trusted by over 4,000 startups.\n      </Motion>\n\n      <template v-for=\"(f, i) in features\" :key=\"i\">\n        <Motion :variants=\"childVariant\">\n          <section\n            class=\"mt-12 grid grid-cols-1 items-center gap-10 lg:mt-24 lg:h-[520px] lg:grid-cols-2 lg:gap-20\"\n          >\n            <div :class=\"[i % 2 == 0 ? 'lg:order-0' : 'lg:order-1']\">\n              <div\n                class=\"bg-primary/20 mb-5 flex h-12 w-12 items-center justify-center rounded-full\"\n              >\n                <Icon name=\"heroicons:chat-bubble-left-right\" class=\"text-primary h-6 w-6\" />\n              </div>\n              <h3 class=\"mb-2 text-2xl font-semibold lg:mb-4 lg:text-3xl\" v-html=\"f.title\" />\n              <p class=\"text-muted-foreground lg:text-lg\" v-html=\"f.description\" />\n\n              <div\n                as=\"div\"\n                class=\"mt-8 flex gap-3\"\n                :variants=\"{\n                  initial: { opacity: 0 },\n                  animate: {\n                    opacity: 1,\n                    transition: { delayChildren: stagger(0.3) },\n                  },\n                }\"\n              >\n                <Motion\n                  v-for=\"(l, k) in f.links\"\n                  :key=\"`link-${k}`\"\n                  :variants=\"{\n                    initial: { opacity: 0, scale: 0.9 },\n                    animate: { opacity: 1, scale: 1 },\n                  }\"\n                >\n                  <!-- @vue-expect-error -->\n                  <UiButton :size=\"l.size\" :external=\"l.external\" :variant=\"l.variant\">\n                    <Icon v-if=\"l.icon\" :name=\"l.icon\" />\n                    <span v-html=\"l.text\" />\n                  </UiButton>\n                </Motion>\n              </div>\n            </div>\n\n            <Motion\n              as=\"img\"\n              :while-hover=\"{ scale: 1.03 }\"\n              :variants=\"{\n                initial: { opacity: 0, scale: 1.1 },\n                animate: { opacity: 1, scale: 1 },\n              }\"\n              :src=\"f.imageUrl\"\n              :alt=\"f.title\"\n              class=\"h-[300px] w-full rounded-lg object-cover shadow-xs lg:h-[520px]\"\n            />\n          </section>\n        </Motion>\n      </template>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.12),\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n  const features = [\n    {\n      title: \"Share team inboxes\",\n      icon: \"heroicons:chat-bubble-left-right\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n      imageUrl:\n        \"https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      links: [\n        {\n          text: \"Demo\",\n          variant: \"outline\",\n          icon: \"lucide:play-circle\",\n          size: \"lg\",\n          url: \"#\",\n          external: false,\n        },\n        { text: \"Learn more\", variant: \"default\", size: \"lg\", url: \"#\", external: false },\n      ],\n    },\n    {\n      title: \"Deliver instant answers\",\n      icon: \"heroicons:bolt\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n      imageUrl:\n        \"https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      links: [\n        {\n          text: \"Demo\",\n          variant: \"outline\",\n          icon: \"lucide:play-circle\",\n          size: \"lg\",\n          url: \"#\",\n          external: false,\n        },\n        { text: \"Learn more\", variant: \"default\", size: \"lg\", url: \"#\", external: false },\n      ],\n    },\n    {\n      title: \"Manage your team with reports\",\n      icon: \"heroicons:cursor-arrow-rays\",\n      description: `Measure what matters with ${COMPANY_NAME} easy-to-use reports. You can filter, export, and drill down on the data in a couple clicks.`,\n      imageUrl:\n        \"https://images.unsplash.com/photo-1628348068343-c6a848d2b6dd?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      links: [\n        {\n          text: \"Demo\",\n          variant: \"outline\",\n          icon: \"lucide:play-circle\",\n          size: \"lg\",\n          url: \"#\",\n          external: false,\n        },\n        { text: \"Learn more\", variant: \"default\", size: \"lg\", url: \"#\", external: false },\n      ],\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature2.vue","components":["button","container"]},{"name":"Feature 20","fileName":"BlockFeature20.vue","file":"<template>\n  <div\n    class=\"relative overflow-hidden bg-linear-to-br from-slate-900 via-purple-900 to-slate-900 py-16 text-white lg:py-24\"\n  >\n    <!-- Animated gradient background -->\n    <div class=\"absolute inset-0 -z-10\">\n      <div\n        class=\"absolute top-0 left-0 h-full w-1/2 bg-linear-to-br from-purple-600/20 to-transparent\"\n      />\n      <div\n        class=\"absolute right-0 bottom-0 h-full w-1/2 bg-linear-to-tl from-pink-600/20 to-transparent\"\n      />\n    </div>\n\n    <!-- Floating particles -->\n    <div class=\"absolute inset-0 -z-10\">\n      <div class=\"absolute top-1/4 left-1/4 h-2 w-2 animate-ping rounded-full bg-purple-400\" />\n      <div\n        class=\"animation-delay-1000 absolute top-1/3 right-1/4 h-2 w-2 animate-ping rounded-full bg-pink-400\"\n      />\n      <div\n        class=\"animation-delay-2000 absolute bottom-1/4 left-1/3 h-2 w-2 animate-ping rounded-full bg-blue-400\"\n      />\n    </div>\n\n    <Motion\n      initial=\"initial\"\n      while-in-view=\"animate\"\n      :in-view-options=\"{ once: true }\"\n      as-child\n      :variants=\"parentVariant\"\n    >\n      <UiContainer>\n        <Motion :variants=\"childVariant\">\n          <div class=\"mx-auto max-w-[800px] text-center\">\n            <div\n              class=\"mb-6 inline-flex items-center gap-2 rounded-full border border-white/20 bg-white/10 px-4 py-2 backdrop-blur-md\"\n            >\n              <div class=\"relative flex h-2 w-2\">\n                <span\n                  class=\"absolute inline-flex h-full w-full animate-ping rounded-full bg-purple-400 opacity-75\"\n                />\n                <span class=\"relative inline-flex h-2 w-2 rounded-full bg-purple-500\" />\n              </div>\n              <span class=\"text-sm font-medium\">Live Platform</span>\n            </div>\n            <h2 class=\"mb-6 text-4xl font-extrabold tracking-tight lg:text-6xl\">\n              The ultimate platform for\n              <span\n                class=\"bg-linear-to-r from-purple-400 via-pink-400 to-blue-400 bg-clip-text text-transparent\"\n              >\n                modern development\n              </span>\n            </h2>\n            <p class=\"text-lg text-purple-200 lg:text-xl\">\n              Experience glassmorphism design with powerful features that elevate your workflow.\n            </p>\n          </div>\n        </Motion>\n\n        <Motion\n          as=\"div\"\n          class=\"mt-16 grid grid-cols-1 gap-6 md:grid-cols-3 lg:mt-24 lg:gap-8\"\n          :variants=\"parentVariant\"\n          initial=\"initial\"\n          while-in-view=\"animate\"\n          :in-view-options=\"{ once: true }\"\n        >\n          <Motion\n            v-for=\"(feature, i) in features\"\n            :key=\"i\"\n            class=\"group relative overflow-hidden rounded-2xl border border-white/10 bg-white/5 p-8 backdrop-blur-xl hover:border-white/20 hover:bg-white/10 hover:shadow-2xl\"\n            :variants=\"childVariant\"\n          >\n            <!-- Glass effect shimmer -->\n            <div\n              class=\"absolute inset-0 -z-10 opacity-0 transition-opacity duration-500 group-hover:opacity-100\"\n            >\n              <div class=\"absolute inset-0 bg-linear-to-br from-white/10 to-transparent\" />\n            </div>\n\n            <!-- Icon with glow -->\n            <div class=\"relative mb-6\">\n              <div\n                class=\"flex h-16 w-16 items-center justify-center rounded-2xl bg-linear-to-br shadow-lg transition-all duration-300 group-hover:scale-110 group-hover:shadow-2xl\"\n                :class=\"feature.iconBg\"\n              >\n                <Icon :name=\"feature.icon\" class=\"h-8 w-8 text-white\" />\n              </div>\n            </div>\n            <div\n              class=\"absolute inset-0 -z-10 rounded-2xl opacity-0 blur-xl transition-opacity group-hover:opacity-20\"\n              :class=\"feature.glow\"\n            />\n\n            <h3 class=\"mb-3 text-2xl font-bold\">{{ feature.title }}</h3>\n            <p class=\"mb-6 text-purple-200\">{{ feature.description }}</p>\n\n            <!-- Feature highlights -->\n            <div class=\"space-y-3\">\n              <Motion\n                v-for=\"(highlight, j) in feature.highlights\"\n                :key=\"j\"\n                :variants=\"{\n                  initial: { opacity: 0, x: -20 },\n                  animate: {\n                    opacity: 1,\n                    x: 0,\n                    transition: { type: 'spring', stiffness: 100, damping: 20 },\n                  },\n                }\"\n                class=\"flex items-center gap-3 text-sm text-purple-100\"\n              >\n                <div\n                  class=\"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-white/10\"\n                >\n                  <Icon name=\"heroicons:check\" class=\"h-3 w-3\" />\n                </div>\n                <span>{{ highlight }}</span>\n              </Motion>\n            </div>\n\n            <!-- Metric -->\n            <div class=\"mt-6 rounded-xl border border-white/10 bg-white/5 p-4 backdrop-blur-sm\">\n              <p class=\"text-4xl font-bold\" :class=\"feature.metricColor\">{{ feature.metric }}</p>\n              <p class=\"text-sm text-purple-200\">{{ feature.metricLabel }}</p>\n            </div>\n\n            <!-- Bottom gradient line -->\n            <div\n              class=\"absolute right-0 bottom-0 left-0 h-1 opacity-0 transition-opacity duration-500 group-hover:opacity-100\"\n            >\n              <div class=\"h-full bg-linear-to-r\" :class=\"feature.gradientLine\" />\n            </div>\n          </Motion>\n        </Motion>\n\n        <!-- CTA Section -->\n        <Motion :variants=\"childVariant\" class=\"mt-16 text-center lg:mt-24\">\n          <div\n            class=\"mx-auto max-w-[600px] rounded-2xl border border-white/20 bg-white/10 p-8 backdrop-blur-xl lg:p-12\"\n          >\n            <h3 class=\"mb-4 text-2xl font-bold lg:text-3xl\">Ready to get started?</h3>\n            <p class=\"mb-6 text-purple-200\">\n              Join thousands of developers building the future with our platform.\n            </p>\n            <div class=\"flex flex-col gap-4 sm:flex-row sm:justify-center\">\n              <UiButton size=\"lg\" class=\"group\">\n                Start Free Trial\n                <Icon\n                  name=\"heroicons:arrow-right\"\n                  class=\"ml-2 size-5 transition-transform group-hover:translate-x-1\"\n                />\n              </UiButton>\n              <UiButton\n                size=\"lg\"\n                variant=\"outline\"\n                class=\"border-white/20 bg-white/5 hover:bg-white/10\"\n              >\n                View Pricing\n              </UiButton>\n            </div>\n          </div>\n        </Motion>\n      </UiContainer>\n    </Motion>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 40 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const features = [\n    {\n      icon: \"lucide:layers\",\n      title: \"Modular Design\",\n      description: \"Build with reusable components and scale effortlessly as your needs grow.\",\n      highlights: [\"Component library\", \"Design system\", \"Customizable themes\"],\n      metric: \"500+\",\n      metricLabel: \"Pre-built components\",\n      metricColor: \"text-purple-400\",\n      iconBg: \"from-purple-500 to-pink-500\",\n      glow: \"bg-purple-500\",\n      gradientLine: \"from-purple-500 via-pink-500 to-purple-500\",\n    },\n    {\n      icon: \"lucide:cpu\",\n      title: \"Edge Computing\",\n      description: \"Deploy to the edge for lightning-fast performance across the globe.\",\n      highlights: [\"Global distribution\", \"Edge functions\", \"Smart routing\"],\n      metric: \"<50ms\",\n      metricLabel: \"Average latency\",\n      metricColor: \"text-blue-400\",\n      iconBg: \"from-blue-500 to-cyan-500\",\n      glow: \"bg-blue-500\",\n      gradientLine: \"from-blue-500 via-cyan-500 to-blue-500\",\n    },\n    {\n      icon: \"lucide:sparkles\",\n      title: \"AI Integration\",\n      description: \"Leverage cutting-edge AI to automate workflows and gain insights.\",\n      highlights: [\"Natural language processing\", \"Predictive analytics\", \"Smart automation\"],\n      metric: \"10x\",\n      metricLabel: \"Productivity boost\",\n      metricColor: \"text-pink-400\",\n      iconBg: \"from-pink-500 to-orange-500\",\n      glow: \"bg-pink-500\",\n      gradientLine: \"from-pink-500 via-orange-500 to-pink-500\",\n    },\n  ];\n</script>\n\n<style scoped>\n  .animation-delay-1000 {\n    animation-delay: 1s;\n  }\n\n  .animation-delay-2000 {\n    animation-delay: 2s;\n  }\n</style>\n","category":"Feature","description":null,"path":"Feature/BlockFeature20.vue","components":["button","container"]},{"name":"Feature 3","fileName":"BlockFeature3.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <Motion\n      as=\"div\"\n      class=\"grid grid-cols-1 gap-y-10 md:gap-8 md:py-10 lg:grid-cols-3\"\n      :variants=\"{\n        initial: { opacity: 0 },\n        animate: { opacity: 1, transition: { delayChildren: stagger(0.15) } },\n      }\"\n      initial=\"initial\"\n      while-in-view=\"animate\"\n    >\n      <div\n        v-for=\"(f, i) in features\"\n        :key=\"i\"\n        class=\"group flex flex-col items-center justify-center\"\n      >\n        <Motion\n          :variants=\"itemVariant\"\n          class=\"flex h-12 w-12 items-center justify-center rounded-md border\"\n        >\n          <Icon\n            :name=\"f.icon\"\n            class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-6 lg:w-6\"\n          />\n        </Motion>\n        <Motion\n          as-child\n          :variants=\"itemVariant\"\n          class=\"mt-4 text-center text-lg font-semibold text-balance lg:mt-5 lg:text-xl\"\n        >\n          <h3 v-html=\"f.title\"\n        /></Motion>\n        <Motion\n          as-child\n          class=\"text-muted-foreground mt-1 max-w-[400px] text-center text-balance lg:mt-2 lg:max-w-none\"\n          :variants=\"itemVariant\"\n        >\n          <p v-html=\"f.description\" />\n        </Motion>\n      </div>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const itemVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, x: -20 },\n    animate: {\n      opacity: 1,\n      x: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const features = [\n    {\n      icon: \"heroicons:chat-bubble-left-right\",\n      title: \"Share team inboxes\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n    },\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Deliver instant answers\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n    },\n    {\n      icon: \"heroicons:cursor-arrow-rays\",\n      title: \"Manage your team with reports\",\n      description: `Measure what matters with ${COMPANY_NAME} easy-to-use reports. You can filter, export, and drill down on the data in a couple clicks.`,\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature3.vue","components":["container"]},{"name":"Feature 4","fileName":"BlockFeature4.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion :variants=\"childVariant\" :transition=\"{ duration: 0.5 }\">\n        <p class=\"text-primary text-center font-semibold\">Features</p>\n        <h2 class=\"mt-3 mb-4 text-center text-3xl font-semibold lg:mb-5 lg:text-4xl\">\n          Beautiful analytics to grow smarter\n        </h2>\n        <p class=\"text-muted-foreground mx-auto max-w-[760px] text-center text-lg lg:text-xl\">\n          Powerful, self-serve product and growth analytics to help you convert, engage, and retain\n          more users. Trusted by over 4,000 startups.\n        </p>\n      </Motion>\n\n      <div\n        class=\"grid grid-cols-1 gap-y-10 py-10 md:grid-cols-2 lg:grid-cols-3 lg:gap-8 lg:gap-y-16 lg:py-16\"\n      >\n        <Motion\n          v-for=\"(f, i) in features\"\n          :key=\"i\"\n          class=\"group flex flex-col items-center justify-center\"\n          :variants=\"childVariant\"\n        >\n          <div class=\"flex h-12 w-12 items-center justify-center rounded-md border\">\n            <Icon\n              :name=\"f.icon\"\n              class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-6 lg:w-6\"\n            />\n          </div>\n          <h3\n            class=\"mt-4 text-center text-lg font-semibold text-balance lg:mt-5 lg:text-xl\"\n            v-html=\"f.title\"\n          />\n          <p\n            class=\"text-muted-foreground mt-1 max-w-[400px] text-center text-balance lg:mt-2\"\n            v-html=\"f.description\"\n          />\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n  const features = [\n    {\n      icon: \"heroicons:chat-bubble-left-right\",\n      title: \"Share team inboxes\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n    },\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Deliver instant answers\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n    },\n    {\n      icon: \"heroicons:cursor-arrow-rays\",\n      title: \"Manage your team with reports\",\n      description: `Measure what matters with ${COMPANY_NAME} easy-to-use reports. You can filter, export, and drill down on the data in a couple clicks.`,\n    },\n    {\n      icon: \"heroicons:users\",\n      title: \"Connect with customers\",\n      description:\n        \"Solve a problem or close a sale in real-time with chat. If no one is available, customers are seamlessly routed to email without confusion.\",\n    },\n    {\n      icon: \"heroicons:command-line\",\n      title: \"Connect the tools you already use\",\n      description:\n        \"Explore 100+ integrations that make your day-to-day workflow more efficient and familiar. Plus, our extensive developer tools.\",\n    },\n    {\n      icon: \"heroicons:heart\",\n      title: \"Our people make the difference\",\n      description:\n        \"We're an extension of your customer service team, and all of our resources are free. Chat to our friendly team 24/7 when you need help.\",\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature4.vue","components":["container"]},{"name":"Feature 5","fileName":"BlockFeature5.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion :variants=\"childVariant\" :transition=\"{ duration: 0.5 }\">\n        <div class=\"max-w-[760px]\">\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary font-semibold\"\n            >Features</Motion\n          >\n          <Motion\n            as=\"h2\"\n            :variants=\"childVariant\"\n            class=\"mt-3 mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\"\n          >\n            Beautiful analytics to grow smarter\n          </Motion>\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg lg:text-xl\">\n            Powerful, self-serve product and growth analytics to help you convert, engage, and\n            retain more users. Trusted by over 4,000 startups.\n          </Motion>\n        </div>\n      </Motion>\n\n      <div\n        class=\"grid grid-cols-1 gap-y-10 py-10 md:grid-cols-2 lg:grid-cols-3 lg:gap-8 lg:gap-y-16 lg:py-16\"\n      >\n        <Motion\n          v-for=\"(f, i) in features\"\n          :key=\"i\"\n          class=\"group flex flex-col\"\n          :variants=\"childVariant\"\n        >\n          <div class=\"flex h-12 w-12 items-center justify-center rounded-md border\">\n            <Icon\n              :name=\"f.icon\"\n              class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-6 lg:w-6\"\n            />\n          </div>\n          <h3 class=\"mt-4 text-lg font-semibold text-balance lg:mt-5 lg:text-xl\" v-html=\"f.title\" />\n          <p class=\"text-muted-foreground mt-1 text-balance lg:mt-2\" v-html=\"f.description\" />\n          <NuxtLink\n            class=\"text-primary mt-4 inline-flex items-center gap-2 font-semibold underline-offset-2 hover:underline lg:mt-5\"\n            :to=\"f.link.to\"\n            >{{ f.link.text }}\n            <Icon\n              name=\"heroicons:arrow-right\"\n              class=\"size-4 transition-transform group-hover:translate-x-1\"\n          /></NuxtLink>\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n  const features = [\n    {\n      icon: \"lucide:message-square-dot\",\n      title: \"Share team inboxes\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n      link: { text: \"Learn more\", to: \"#\" },\n    },\n    {\n      icon: \"lucide:zap\",\n      title: \"Deliver instant answers\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n      link: { text: \"Learn more\", to: \"#\" },\n    },\n    {\n      icon: \"lucide:mouse-pointer-click\",\n      title: \"Manage your team with reports\",\n      description: `Measure what matters with ${COMPANY_NAME} easy-to-use reports. You can filter, export, and drill down on the data in a couple clicks.`,\n      link: { text: \"Learn more\", to: \"#\" },\n    },\n    {\n      icon: \"lucide:users\",\n      title: \"Connect with customers\",\n      description:\n        \"Solve a problem or close a sale in real-time with chat. If no one is available, customers are seamlessly routed to email without confusion.\",\n      link: { text: \"Learn more\", to: \"#\" },\n    },\n    {\n      icon: \"lucide:square-terminal\",\n      title: \"Connect the tools you already use\",\n      description:\n        \"Explore 100+ integrations that make your day-to-day workflow more efficient and familiar. Plus, our extensive developer tools.\",\n      link: { text: \"Learn more\", to: \"#\" },\n    },\n    {\n      icon: \"lucide:heart\",\n      title: \"Our people make the difference\",\n      description:\n        \"We're an extension of your customer service team, and all of our resources are free. Chat to our friendly team 24/7 when you need help.\",\n      link: { text: \"Learn more\", to: \"#\" },\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature5.vue","components":["container"]},{"name":"Feature 6","fileName":"BlockFeature6.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"relative py-16 lg:py-24\">\n      <Motion :variants=\"childVariant\" :transition=\"{ duration: 0.5 }\">\n        <div class=\"relative z-10 max-w-[760px]\">\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary font-semibold\"\n            >Features</Motion\n          >\n          <Motion\n            as=\"h2\"\n            :variants=\"childVariant\"\n            class=\"mt-3 mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\"\n          >\n            Overflowing with useful features\n          </Motion>\n          <Motion\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground max-w-[700px] text-lg lg:text-xl\"\n          >\n            Powerful, self-serve product and growth analytics to help you convert, engage, and\n            retain more users. Trusted by over 4,000 startups.\n          </Motion>\n        </div>\n      </Motion>\n\n      <div\n        class=\"grid grid-cols-1 gap-y-12 overflow-hidden py-10 lg:grid-cols-2 lg:gap-x-10 lg:py-20\"\n      >\n        <div class=\"grid grid-cols-1 grid-rows-2 gap-y-10 lg:grid-cols-2 lg:gap-8 lg:gap-y-12\">\n          <Motion\n            v-for=\"(f, i) in features\"\n            :key=\"i\"\n            class=\"group flex flex-col lg:row-span-1\"\n            :variants=\"childVariant\"\n          >\n            <div class=\"flex h-12 w-12 items-center justify-center rounded-md border\">\n              <Icon\n                :name=\"f.icon\"\n                class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-6 lg:w-6\"\n              />\n            </div>\n            <h3 class=\"mt-4 text-lg font-semibold lg:mt-5 lg:text-xl\" v-text=\"f.title\" />\n            <p\n              class=\"text-muted-foreground mt-1 max-w-[400px] lg:mt-2 lg:max-w-none\"\n              v-text=\"f.description\"\n            />\n          </Motion>\n        </div>\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, x: 30 },\n            animate: { opacity: 1, x: 0, transition: { duration: 0.6 } },\n          }\"\n          class=\"group overflow-hidden rounded-lg\"\n        >\n          <img\n            src=\"https://images.unsplash.com/photo-1507908708918-778587c9e563?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n            alt=\"Share team inboxes feature\"\n            class=\"h-[300px] w-full rounded-lg object-cover shadow-xs transition-all duration-1000 group-hover:scale-110 lg:h-[520px]\"\n          />\n        </Motion>\n      </div>\n\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, scale: 0.95 },\n          animate: { opacity: 1, scale: 1 },\n        }\"\n        :transition=\"{ duration: 0.7 }\"\n        class=\"absolute hidden lg:top-[50px] lg:right-[350px] lg:block xl:right-[350px]\"\n      >\n        <div\n          class=\"h-[300px] w-[300px] scale-x-100\"\n          style=\"transform: rotateX(180deg) rotate(309deg)\"\n        >\n          <svg viewBox=\"0 0 360 342\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path\n              d=\"M342.654 174.227C343.704 172.945 345.594 172.756 346.876 173.806C348.158 174.856 348.346 176.746 347.296 178.028L342.654 174.227ZM159.589 141.42L159.868 138.433L159.869 138.434L159.589 141.42ZM184.236 248.724L182.479 246.293L182.479 246.292L184.236 248.724ZM34.9177 108.275C35.017 106.621 36.4382 105.361 38.0921 105.461C39.746 105.56 41.0062 106.981 40.9069 108.635L34.9177 108.275ZM350.512 200.044C350.567 201.7 349.269 203.087 347.613 203.142C345.957 203.197 344.57 201.899 344.515 200.243L350.512 200.044ZM346.66 174.344L346.944 171.357C348.447 171.5 349.609 172.737 349.659 174.245L346.66 174.344ZM320.295 174.307C318.67 173.981 317.619 172.399 317.945 170.775C318.272 169.15 319.854 168.098 321.478 168.425L320.295 174.307ZM344.975 176.127C347.296 178.028 347.295 178.029 347.294 178.03C347.294 178.031 347.292 178.033 347.29 178.035C347.287 178.039 347.283 178.044 347.278 178.051C347.267 178.064 347.251 178.083 347.231 178.107C347.19 178.156 347.131 178.227 347.054 178.32C346.899 178.505 346.672 178.776 346.373 179.125C345.776 179.824 344.897 180.839 343.754 182.117C341.468 184.673 338.125 188.283 333.881 192.526C325.399 201.004 313.281 212.038 298.76 222.223C269.869 242.488 230.675 259.93 191.571 245.779L193.613 240.138C229.851 253.251 266.849 237.278 295.314 217.311C309.471 207.381 321.322 196.595 329.639 188.282C333.795 184.129 337.06 180.601 339.282 178.117C340.392 176.876 341.241 175.896 341.81 175.23C342.094 174.897 342.308 174.642 342.45 174.473C342.52 174.388 342.573 174.325 342.607 174.284C342.624 174.263 342.637 174.248 342.644 174.238C342.648 174.234 342.651 174.23 342.653 174.228C342.653 174.227 342.654 174.227 342.654 174.226C342.654 174.226 342.654 174.227 344.975 176.127ZM191.571 245.779C152.934 231.798 135.393 204.746 132.163 181.185C130.558 169.476 132.484 158.514 137.294 150.563C142.156 142.526 150.052 137.516 159.868 138.433L159.31 144.407C152.19 143.742 146.326 147.224 142.428 153.668C138.478 160.198 136.646 169.707 138.107 180.37C141.011 201.554 156.908 226.855 193.613 240.138L191.571 245.779ZM159.869 138.434C169.254 139.314 178.636 144.72 186.578 152.506C194.556 160.328 201.323 170.778 205.438 182.242C213.68 205.207 211.378 232.813 185.993 251.156L182.479 246.292C205.099 229.948 207.407 205.49 199.79 184.269C195.975 173.64 189.696 163.966 182.377 156.791C175.023 149.58 166.856 145.115 159.309 144.407L159.869 138.434ZM185.993 251.155C173.06 260.503 156.569 261.895 139.593 257.576C122.621 253.258 104.888 243.182 88.9736 229.122C57.1795 201.031 32.0248 156.455 34.9177 108.275L40.9069 108.635C38.1513 154.528 62.1638 197.429 92.9463 224.626C108.321 238.209 125.227 247.73 141.073 251.762C156.915 255.792 171.417 254.288 182.479 246.293L185.993 251.155ZM344.515 200.243L343.662 174.443L349.659 174.245L350.512 200.044L344.515 200.243ZM346.66 174.344C346.377 177.33 346.377 177.33 346.376 177.33C346.376 177.33 346.376 177.33 346.376 177.33C346.375 177.33 346.374 177.33 346.373 177.33C346.37 177.33 346.366 177.329 346.361 177.329C346.351 177.328 346.336 177.327 346.316 177.325C346.276 177.321 346.217 177.315 346.139 177.308C345.985 177.293 345.758 177.271 345.468 177.243C344.888 177.187 344.054 177.106 343.037 177.005C341.005 176.804 338.243 176.524 335.322 176.214C329.566 175.602 322.953 174.842 320.295 174.307L321.478 168.425C323.797 168.892 330.071 169.621 335.957 170.248C338.859 170.556 341.606 170.834 343.629 171.034C344.64 171.134 345.47 171.215 346.046 171.271C346.334 171.299 346.559 171.321 346.712 171.335C346.788 171.343 346.847 171.348 346.886 171.352C346.905 171.354 346.92 171.355 346.93 171.356C346.935 171.356 346.938 171.357 346.941 171.357C346.942 171.357 346.943 171.357 346.943 171.357C346.944 171.357 346.944 171.357 346.944 171.357C346.944 171.357 346.944 171.357 346.66 174.344Z\"\n              fill=\"#2970FF\"\n            />\n          </svg>\n        </div>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n  const features = [\n    {\n      icon: \"lucide:message-square-dot\",\n      title: \"Share team inboxes\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n    },\n    {\n      icon: \"lucide:zap\",\n      title: \"Deliver instant answers\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n    },\n    {\n      icon: \"lucide:chart-bar\",\n      title: \"Manage your team with reports\",\n      description: `Measure what matters with ${COMPANY_NAME}easy-to-use reports. You can filter, export, and drill down on the data in a couple clicks.`,\n    },\n    {\n      icon: \"lucide:users\",\n      title: \"Connect with customers\",\n      description:\n        \"Solve a problem or close a sale in real-time with chat. If no one is available, customers are seamlessly routed to email without confusion.\",\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature6.vue","components":["container"]},{"name":"Feature 7","fileName":"BlockFeature7.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"relative py-16 lg:py-24\">\n      <div class=\"max-w-[760px]\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary font-semibold\">Features</Motion>\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-3 mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\"\n        >\n          Overflowing with useful features\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground max-w-[800px] text-lg text-balance lg:text-xl\"\n        >\n          Powerful, self-serve product and growth analytics to help you convert, engage, and retain\n          more users. Trusted by over 4,000 startups.\n        </Motion>\n      </div>\n\n      <div\n        class=\"grid grid-cols-1 gap-y-12 overflow-hidden py-10 lg:grid-cols-2 lg:gap-x-10 lg:py-20\"\n      >\n        <Motion\n          class=\"grid grid-cols-1 gap-y-10 lg:gap-8 lg:gap-y-12\"\n          :variants=\"{\n            animate: { transition: { delayChildren: stagger(0.1) } },\n          }\"\n        >\n          <Motion\n            v-for=\"(f, i) in features\"\n            :key=\"i\"\n            class=\"group flex gap-5\"\n            :initial=\"{ opacity: 0, x: -20 }\"\n            :visible-once=\"{ opacity: 1, x: 0 }\"\n            :variants=\"{\n              initial: { opacity: 0, x: -20 },\n              animate: { opacity: 1, x: 0 },\n            }\"\n          >\n            <div class=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-md border\">\n              <Icon\n                :name=\"f.icon\"\n                class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-5 lg:w-5\"\n              />\n            </div>\n            <div class=\"grow\">\n              <h3 class=\"text-lg font-semibold lg:text-xl\" v-text=\"f.title\" />\n              <p\n                class=\"text-muted-foreground mt-1 max-w-[600px] lg:mt-2 lg:max-w-none\"\n                v-text=\"f.description\"\n              />\n              <NuxtLink\n                class=\"text-primary mt-4 inline-flex items-center gap-2 font-semibold underline-offset-2 hover:underline lg:mt-5\"\n                :to=\"f.link.url\"\n                >{{ f.link.text }} <Icon name=\"heroicons:arrow-right\" class=\"size-4\"\n              /></NuxtLink>\n            </div>\n          </Motion>\n        </Motion>\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, x: 30 },\n            animate: { opacity: 1, x: 0, transition: { duration: 0.6 } },\n          }\"\n          :transition=\"{ duration: 0.6, delay: 0.3 }\"\n        >\n          <img\n            src=\"https://images.unsplash.com/photo-1626908013351-800ddd734b8a?q=80&w=1972&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n            alt=\"Share team inboxes feature\"\n            class=\"h-[300px] w-full rounded-lg object-cover shadow-xs lg:h-full lg:max-h-[700px] lg:w-[590px]\"\n          />\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const features = [\n    {\n      icon: \"lucide:message-square-dot\",\n      title: \"Share team inboxes\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n    {\n      icon: \"lucide:zap\",\n      title: \"Deliver instant answers\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n    {\n      icon: \"lucide:mouse-pointer-click\",\n      title: \"Manage your team with reports\",\n      description: `Measure what matters with ${COMPANY_NAME}easy-to-use reports. You can filter, export, and drill down on the data in a couple clicks.`,\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n    {\n      icon: \"lucide:users\",\n      title: \"Connect with customers\",\n      description:\n        \"Solve a problem or close a sale in real-time with chat. If no one is available, customers are seamlessly routed to email without confusion.\",\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature7.vue","components":["container"]},{"name":"Feature 8","fileName":"BlockFeature8.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"relative py-16 lg:py-24\">\n      <div class=\"grid grid-cols-1 gap-y-12 lg:grid-cols-2 lg:gap-x-24\">\n        <Motion :variants=\"childVariant\" :transition=\"{ duration: 0.5 }\">\n          <p class=\"text-primary font-semibold\">New feature</p>\n          <h2 class=\"mt-3 mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\">\n            Introducing team inboxes\n          </h2>\n          <p class=\"text-muted-foreground text-lg lg:text-xl\">\n            Powerful, self-serve product and growth analytics to help you convert, engage, and\n            retain more users. Trusted by over 4,000 startups.\n          </p>\n        </Motion>\n\n        <div class=\"grid grid-cols-1 gap-y-10 lg:gap-8 lg:gap-y-12\">\n          <Motion\n            v-for=\"(f, i) in features\"\n            :key=\"i\"\n            class=\"group flex gap-5\"\n            :variants=\"{\n              initial: { opacity: 0, x: 20 },\n              animate: { opacity: 1, x: 0 },\n            }\"\n          >\n            <div class=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-md border\">\n              <Icon\n                :name=\"f.icon\"\n                class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-5 lg:w-5\"\n              />\n            </div>\n            <div class=\"grow\">\n              <h3 class=\"text-lg font-semibold lg:text-xl\" v-text=\"f.title\" />\n              <p class=\"text-muted-foreground mt-1 lg:mt-2\" v-text=\"f.description\" />\n            </div>\n          </Motion>\n        </div>\n      </div>\n\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, y: 30 },\n          animate: { opacity: 1, y: 0 },\n        }\"\n        class=\"mx-auto mt-10 h-[350px] w-full overflow-hidden rounded-md lg:mt-20 lg:h-[520px] lg:w-[900px] lg:rounded-lg\"\n      >\n        <iframe\n          width=\"100%\"\n          height=\"100%\"\n          src=\"https://www.youtube.com/embed/hmkHPI32D5Y?si=CVzjCZbUR9hMt7zq\"\n          :title=\"`${COMPANY_NAME} new feature section seven video`\"\n          frameborder=\"0\"\n          allow=\"\n            accelerometer;\n            autoplay;\n            clipboard-write;\n            encrypted-media;\n            gyroscope;\n            picture-in-picture;\n            web-share;\n          \"\n          allowfullscreen\n        />\n      </Motion>\n\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, scale: 0.8 },\n          animate: { opacity: 1, rotate: 45, scale: 1, transition: { duration: 0.8 } },\n        }\"\n        class=\"absolute top-[25%] hidden lg:-left-20 lg:block xl:-left-16\"\n      >\n        <div class=\"size-[250px] xl:size-[300px]\">\n          <svg viewBox=\"0 0 360 342\" class=\"fill-primary\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path\n              d=\"M342.654 174.227C343.704 172.945 345.594 172.756 346.876 173.806C348.158 174.856 348.346 176.746 347.296 178.028L342.654 174.227ZM159.589 141.42L159.868 138.433L159.869 138.434L159.589 141.42ZM184.236 248.724L182.479 246.293L182.479 246.292L184.236 248.724ZM34.9177 108.275C35.017 106.621 36.4382 105.361 38.0921 105.461C39.746 105.56 41.0062 106.981 40.9069 108.635L34.9177 108.275ZM350.512 200.044C350.567 201.7 349.269 203.087 347.613 203.142C345.957 203.197 344.57 201.899 344.515 200.243L350.512 200.044ZM346.66 174.344L346.944 171.357C348.447 171.5 349.609 172.737 349.659 174.245L346.66 174.344ZM320.295 174.307C318.67 173.981 317.619 172.399 317.945 170.775C318.272 169.15 319.854 168.098 321.478 168.425L320.295 174.307ZM344.975 176.127C347.296 178.028 347.295 178.029 347.294 178.03C347.294 178.031 347.292 178.033 347.29 178.035C347.287 178.039 347.283 178.044 347.278 178.051C347.267 178.064 347.251 178.083 347.231 178.107C347.19 178.156 347.131 178.227 347.054 178.32C346.899 178.505 346.672 178.776 346.373 179.125C345.776 179.824 344.897 180.839 343.754 182.117C341.468 184.673 338.125 188.283 333.881 192.526C325.399 201.004 313.281 212.038 298.76 222.223C269.869 242.488 230.675 259.93 191.571 245.779L193.613 240.138C229.851 253.251 266.849 237.278 295.314 217.311C309.471 207.381 321.322 196.595 329.639 188.282C333.795 184.129 337.06 180.601 339.282 178.117C340.392 176.876 341.241 175.896 341.81 175.23C342.094 174.897 342.308 174.642 342.45 174.473C342.52 174.388 342.573 174.325 342.607 174.284C342.624 174.263 342.637 174.248 342.644 174.238C342.648 174.234 342.651 174.23 342.653 174.228C342.653 174.227 342.654 174.227 342.654 174.226C342.654 174.226 342.654 174.227 344.975 176.127ZM191.571 245.779C152.934 231.798 135.393 204.746 132.163 181.185C130.558 169.476 132.484 158.514 137.294 150.563C142.156 142.526 150.052 137.516 159.868 138.433L159.31 144.407C152.19 143.742 146.326 147.224 142.428 153.668C138.478 160.198 136.646 169.707 138.107 180.37C141.011 201.554 156.908 226.855 193.613 240.138L191.571 245.779ZM159.869 138.434C169.254 139.314 178.636 144.72 186.578 152.506C194.556 160.328 201.323 170.778 205.438 182.242C213.68 205.207 211.378 232.813 185.993 251.156L182.479 246.292C205.099 229.948 207.407 205.49 199.79 184.269C195.975 173.64 189.696 163.966 182.377 156.791C175.023 149.58 166.856 145.115 159.309 144.407L159.869 138.434ZM185.993 251.155C173.06 260.503 156.569 261.895 139.593 257.576C122.621 253.258 104.888 243.182 88.9736 229.122C57.1795 201.031 32.0248 156.455 34.9177 108.275L40.9069 108.635C38.1513 154.528 62.1638 197.429 92.9463 224.626C108.321 238.209 125.227 247.73 141.073 251.762C156.915 255.792 171.417 254.288 182.479 246.293L185.993 251.155ZM344.515 200.243L343.662 174.443L349.659 174.245L350.512 200.044L344.515 200.243ZM346.66 174.344C346.377 177.33 346.377 177.33 346.376 177.33C346.376 177.33 346.376 177.33 346.376 177.33C346.375 177.33 346.374 177.33 346.373 177.33C346.37 177.33 346.366 177.329 346.361 177.329C346.351 177.328 346.336 177.327 346.316 177.325C346.276 177.321 346.217 177.315 346.139 177.308C345.985 177.293 345.758 177.271 345.468 177.243C344.888 177.187 344.054 177.106 343.037 177.005C341.005 176.804 338.243 176.524 335.322 176.214C329.566 175.602 322.953 174.842 320.295 174.307L321.478 168.425C323.797 168.892 330.071 169.621 335.957 170.248C338.859 170.556 341.606 170.834 343.629 171.034C344.64 171.134 345.47 171.215 346.046 171.271C346.334 171.299 346.559 171.321 346.712 171.335C346.788 171.343 346.847 171.348 346.886 171.352C346.905 171.354 346.92 171.355 346.93 171.356C346.935 171.356 346.938 171.357 346.941 171.357C346.942 171.357 346.943 171.357 346.943 171.357C346.944 171.357 346.944 171.357 346.944 171.357C346.944 171.357 346.944 171.357 346.66 174.344Z\"\n            />\n          </svg>\n        </div>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n  const features = [\n    {\n      icon: \"lucide:message-square-dot\",\n      title: \"Share team inboxes\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n    },\n    {\n      icon: \"lucide:zap\",\n      title: \"Deliver instant answers\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature8.vue","components":["container"]},{"name":"Feature 9","fileName":"BlockFeature9.vue","file":"<template>\n  <Motion initial=\"initial\" while-in-view=\"animate\" as-child :variants=\"parentVariant\">\n    <UiContainer class=\"py-16 lg:py-24\">\n      <div class=\"mx-auto max-w-[760px]\">\n        <Motion :variants=\"childVariant\" class=\"text-center\">\n          <UiBadge variant=\"outline\" class=\"gap-2 px-3 py-1.5 text-sm font-normal\"\n            ><Icon name=\"lucide:circle-dot\" class=\"text-primary size-4\" /> Features</UiBadge\n          >\n        </Motion>\n        <Motion\n          as=\"h2\"\n          :variants=\"childVariant\"\n          class=\"mt-3 mb-4 text-center text-3xl font-semibold lg:mt-7 lg:mb-5 lg:text-4xl\"\n        >\n          Cutting-edge features for advanced analytics\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mx-auto max-w-[760px] text-center text-lg lg:text-xl\"\n        >\n          Powerful, self-serve product and growth analytics to help you convert, engage, and retain\n          more users. Trusted by over 4,000 startups.\n        </Motion>\n      </div>\n\n      <Motion :variants=\"childVariant\">\n        <img\n          src=\"https://images.unsplash.com/photo-1608411404720-c8f0417bcdba?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n          alt=\"Cutting edge feature\"\n          width=\"700\"\n          height=\"600\"\n          class=\"mx-auto mt-12 h-[300px] w-full rounded-lg object-cover shadow-xs drop-shadow-md lg:mt-16 lg:h-[520px] lg:w-[770px]\"\n        />\n      </Motion>\n\n      <Motion\n        as=\"div\"\n        class=\"my-12 grid grid-cols-1 gap-y-10 lg:my-24 lg:grid-cols-3 lg:gap-8 lg:gap-y-16\"\n        :variants=\"parentVariant\"\n        initial=\"initial\"\n        while-in-view=\"animate\"\n      >\n        <Motion\n          v-for=\"(f, i) in features\"\n          :key=\"i\"\n          class=\"group flex flex-col items-center\"\n          :variants=\"childVariant\"\n        >\n          <div class=\"flex h-12 w-12 items-center justify-center rounded-md border\">\n            <Icon\n              :name=\"f.icon\"\n              class=\"group-hover:text-primary h-5 w-5 transition-colors lg:h-6 lg:w-6\"\n            />\n          </div>\n          <h3 class=\"mt-4 text-center text-lg font-semibold lg:mt-5 lg:text-xl\" v-text=\"f.title\" />\n          <p\n            class=\"text-muted-foreground mt-1 max-w-[500px] text-center text-balance lg:mt-2\"\n            v-text=\"f.description\"\n          />\n          <NuxtLink\n            class=\"text-primary mt-4 inline-flex items-center gap-2 font-semibold underline-offset-2 hover:underline lg:mt-5\"\n            :to=\"f.link.url\"\n            >{{ f.link.text }}\n            <Icon\n              name=\"heroicons:arrow-right\"\n              class=\"size-4 transition-transform group-hover:translate-x-1\"\n            />\n          </NuxtLink>\n        </Motion>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const parentVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0 },\n    animate: {\n      opacity: 1,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n  const features = [\n    {\n      icon: \"heroicons:chat-bubble-left-right\",\n      title: \"Share team inboxes\",\n      description:\n        \"Whether you have a team of 2 or 200, our shared team inboxes keep everyone on the same page and in the loop.\",\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Deliver instant answers\",\n      description:\n        \"An all-in-one customer service platform that helps you balance everything your customers need to be happy.\",\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n    {\n      icon: \"heroicons:cursor-arrow-rays\",\n      title: \"Manage your team with reports\",\n      description: `Measure what matters with ${COMPANY_NAME} easy-to-use reports. You can filter, export, and drill down on the data in a couple clicks.`,\n      link: { text: \"Learn more\", url: \"#\" },\n    },\n  ];\n</script>\n","category":"Feature","description":null,"path":"Feature/BlockFeature9.vue","components":["badge","container"]},{"name":"Feed 1","fileName":"BlockFeed1.vue","file":"<template>\n  <!--\n    Simple activity feed\n    Features: A plain list of events with a round icon for each kind, a short sentence, a relative time, a divider line between events and a load more button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Recent activity</h1>\n      <ul class=\"mt-6\" aria-live=\"polite\">\n        <li v-for=\"(item, index) in shown\" :key=\"item.id\" class=\"relative flex gap-4 pb-6\">\n          <span\n            v-if=\"index < shown.length - 1\"\n            class=\"bg-border absolute top-9 bottom-0 left-[1.0625rem] w-px\"\n            aria-hidden=\"true\"\n          />\n          <span class=\"bg-muted relative grid size-9 shrink-0 place-items-center rounded-full\">\n            <Icon :name=\"icons[item.kind]\" class=\"size-4\" />\n          </span>\n          <div class=\"min-w-0 flex-1 pt-1.5\">\n            <p class=\"text-sm\">\n              <span class=\"font-medium\">{{ item.who }}</span> {{ item.text }}\n              <span v-if=\"item.target\" class=\"font-medium\">{{ item.target }}</span>\n            </p>\n            <p class=\"text-muted-foreground mt-0.5 text-xs\">{{ ago(item.at) }}</p>\n          </div>\n        </li>\n      </ul>\n      <UiButton v-if=\"count < items.length\" variant=\"outline\" class=\"w-full\" @click=\"count += 3\"\n        >Load more</UiButton\n      >\n      <p v-else class=\"text-muted-foreground text-center text-sm\">That is everything so far.</p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Kind = \"create\" | \"edit\" | \"comment\" | \"complete\" | \"invite\";\n  type Item = { id: string; kind: Kind; who: string; text: string; target?: string; at: string };\n\n  const props = withDefaults(\n    defineProps<{\n      now?: string;\n      items?: Item[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      items: () => [\n        {\n          id: \"f1\",\n          kind: \"create\",\n          who: \"Maya Patel\",\n          text: \"created the project\",\n          target: \"Homepage redesign\",\n          at: \"2026-10-18T10:02\",\n        },\n        {\n          id: \"f2\",\n          kind: \"comment\",\n          who: \"Leo Fischer\",\n          text: \"commented on\",\n          target: \"API rate limits\",\n          at: \"2026-10-18T09:30\",\n        },\n        {\n          id: \"f3\",\n          kind: \"complete\",\n          who: \"Noah Kim\",\n          text: \"completed\",\n          target: \"Release 2.4\",\n          at: \"2026-10-18T08:10\",\n        },\n        {\n          id: \"f4\",\n          kind: \"edit\",\n          who: \"Sofia Alvarez\",\n          text: \"edited the roadmap\",\n          at: \"2026-10-17T17:20\",\n        },\n        {\n          id: \"f5\",\n          kind: \"invite\",\n          who: \"Priya Nair\",\n          text: \"invited Tom Becker to the team\",\n          at: \"2026-10-17T14:00\",\n        },\n        {\n          id: \"f6\",\n          kind: \"create\",\n          who: \"Ines Costa\",\n          text: \"created the doc\",\n          target: \"Launch checklist\",\n          at: \"2026-10-16T09:45\",\n        },\n        {\n          id: \"f7\",\n          kind: \"complete\",\n          who: \"Tom Becker\",\n          text: \"completed\",\n          target: \"Fix invoice rounding\",\n          at: \"2026-10-15T16:05\",\n        },\n      ],\n    }\n  );\n\n  const icons: Record<Kind, string> = {\n    create: \"lucide:plus\",\n    edit: \"lucide:pencil\",\n    comment: \"lucide:message-square\",\n    complete: \"lucide:circle-check\",\n    invite: \"lucide:user-plus\",\n  };\n\n  const count = ref(4);\n  const shown = computed(() => props.items.slice(0, count.value));\n\n  function ago(iso: string) {\n    const diff = Math.round(\n      (new Date(`${props.now}:00Z`).getTime() - new Date(`${iso}:00Z`).getTime()) / 60000\n    );\n    if (diff < 1) return \"Just now\";\n    if (diff < 60) return `${diff} minutes ago`;\n    if (diff < 1440) return `${Math.floor(diff / 60)} hours ago`;\n    const days = Math.floor(diff / 1440);\n    return days === 1 ? \"Yesterday\" : `${days} days ago`;\n  }\n</script>\n","category":"Feed","description":"Simple activity feed. Features: A plain list of events with a round icon for each kind, a short sentence, a relative time, a divider line between events and a load more button","path":"Activity/Feed/BlockFeed1.vue","components":["button","container"]},{"name":"Feed 2","fileName":"BlockFeed2.vue","file":"<template>\n  <!--\n    Feed with avatars and attachments\n    Features: Rows with the person's avatar, a sentence with the action and target in bold, a relative time, optional attachment chips and a preview card for shared links\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Team activity</h1>\n      <ul class=\"mt-6 space-y-5\">\n        <li v-for=\"item in items\" :key=\"item.id\" class=\"flex gap-3\">\n          <UiAvatar\n            :src=\"`https://i.pravatar.cc/80?img=${item.avatar}`\"\n            :fallback=\"item.who.slice(0, 1)\"\n            class=\"size-10\"\n          />\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"text-sm\">\n              <span class=\"font-medium\">{{ item.who }}</span> {{ item.text }}\n              <span v-if=\"item.target\" class=\"font-medium\">{{ item.target }}</span>\n              <span class=\"text-muted-foreground\"> · {{ ago(item.at) }}</span>\n            </p>\n            <p v-if=\"item.note\" class=\"text-muted-foreground mt-1 text-sm\">{{ item.note }}</p>\n            <div v-if=\"item.files?.length\" class=\"mt-2 flex flex-wrap gap-2\">\n              <span\n                v-for=\"file in item.files\"\n                :key=\"file.name\"\n                class=\"bg-muted/50 flex items-center gap-2 rounded-lg border px-2.5 py-1.5 text-xs\"\n              >\n                <Icon :name=\"file.icon\" class=\"text-muted-foreground size-4\" />{{ file.name }}\n                <span class=\"text-muted-foreground\">{{ file.size }}</span>\n              </span>\n            </div>\n            <div v-if=\"item.link\" class=\"mt-2 flex items-center gap-3 rounded-xl border p-3\">\n              <span class=\"bg-muted grid size-10 shrink-0 place-items-center rounded-lg\"\n                ><Icon name=\"lucide:link\" class=\"size-4\"\n              /></span>\n              <div class=\"min-w-0\">\n                <p class=\"truncate text-sm font-medium\">{{ item.link.title }}</p>\n                <p class=\"text-muted-foreground truncate text-xs\">{{ item.link.host }}</p>\n              </div>\n            </div>\n          </div>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = {\n    id: string;\n    who: string;\n    avatar: number;\n    text: string;\n    target?: string;\n    note?: string;\n    at: string;\n    files?: { name: string; size: string; icon: string }[];\n    link?: { title: string; host: string };\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      now?: string;\n      items?: Item[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      items: () => [\n        {\n          id: \"a1\",\n          who: \"Maya Patel\",\n          avatar: 32,\n          text: \"uploaded 2 files to\",\n          target: \"Homepage redesign\",\n          at: \"2026-10-18T10:02\",\n          files: [\n            { name: \"hero-v3.fig\", size: \"4.2 MB\", icon: \"lucide:file-image\" },\n            { name: \"copy-notes.pdf\", size: \"320 KB\", icon: \"lucide:file-text\" },\n          ],\n        },\n        {\n          id: \"a2\",\n          who: \"Leo Fischer\",\n          avatar: 12,\n          text: \"shared a link in\",\n          target: \"Engineering\",\n          note: \"Worth reading before we pick a rate limit strategy.\",\n          at: \"2026-10-18T09:30\",\n          link: { title: \"Designing rate limits that users forgive\", host: \"blog.example.com\" },\n        },\n        {\n          id: \"a3\",\n          who: \"Sofia Alvarez\",\n          avatar: 45,\n          text: \"moved\",\n          target: \"Q4 planning to In progress\",\n          at: \"2026-10-18T08:10\",\n        },\n        {\n          id: \"a4\",\n          who: \"Noah Kim\",\n          avatar: 15,\n          text: \"attached a report to\",\n          target: \"Release 2.4\",\n          at: \"2026-10-17T17:20\",\n          files: [{ name: \"test-results.csv\", size: \"88 KB\", icon: \"lucide:file-spreadsheet\" }],\n        },\n        {\n          id: \"a5\",\n          who: \"Priya Nair\",\n          avatar: 44,\n          text: \"joined the team\",\n          at: \"2026-10-16T09:00\",\n        },\n      ],\n    }\n  );\n\n  function ago(iso: string) {\n    const diff = Math.round(\n      (new Date(`${props.now}:00Z`).getTime() - new Date(`${iso}:00Z`).getTime()) / 60000\n    );\n    if (diff < 60) return `${Math.max(diff, 1)}m ago`;\n    if (diff < 1440) return `${Math.floor(diff / 60)}h ago`;\n    const days = Math.floor(diff / 1440);\n    return days === 1 ? \"Yesterday\" : `${days}d ago`;\n  }\n</script>\n","category":"Feed","description":"Feed with avatars and attachments. Features: Rows with the person's avatar, a sentence with the action and target in bold, a relative time, optional attachment chips and a preview card for shared links","path":"Activity/Feed/BlockFeed2.vue","components":["avatar","container"]},{"name":"Feed 3","fileName":"BlockFeed3.vue","file":"<template>\n  <!--\n    Feed with comments\n    Features: Posts with an author, a time and a like button with a count, a thread of comments under each post, an inline comment box that adds to the thread and a show all comments toggle\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl space-y-5\">\n      <UiCard v-for=\"post in posts\" :key=\"post.id\" class=\"gap-4\">\n        <UiCardContent class=\"space-y-3\">\n          <div class=\"flex items-center gap-3\">\n            <UiAvatar\n              :src=\"`https://i.pravatar.cc/80?img=${post.avatar}`\"\n              :fallback=\"post.who.slice(0, 1)\"\n              class=\"size-10\"\n            />\n            <div>\n              <p class=\"text-sm font-medium\">{{ post.who }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ post.when }}</p>\n            </div>\n          </div>\n          <p class=\"text-sm leading-relaxed\">{{ post.body }}</p>\n          <div class=\"flex items-center gap-1\">\n            <UiButton\n              variant=\"ghost\"\n              size=\"sm\"\n              :aria-pressed=\"post.liked\"\n              :aria-label=\"`${post.liked ? 'Unlike' : 'Like'} post by ${post.who}, ${post.likes} likes`\"\n              @click=\"like(post)\"\n              ><Icon\n                name=\"lucide:heart\"\n                class=\"size-4\"\n                :class=\"post.liked ? 'text-rose-500 [&_path]:fill-current' : ''\"\n              />{{ post.likes }}</UiButton\n            >\n            <UiButton variant=\"ghost\" size=\"sm\" @click=\"post.open = !post.open\"\n              ><Icon name=\"lucide:message-circle\" class=\"size-4\" />{{\n                post.comments.length\n              }}</UiButton\n            >\n          </div>\n        </UiCardContent>\n        <UiCardContent v-if=\"post.open\" class=\"space-y-3 border-t pt-4\">\n          <button\n            v-if=\"post.comments.length > 2 && !post.all\"\n            type=\"button\"\n            class=\"text-muted-foreground hover:text-foreground text-sm\"\n            @click=\"post.all = true\"\n          >\n            Show all {{ post.comments.length }} comments\n          </button>\n          <ul class=\"space-y-3\">\n            <li\n              v-for=\"comment in post.all ? post.comments : post.comments.slice(-2)\"\n              :key=\"comment.id\"\n              class=\"flex gap-2.5\"\n            >\n              <UiAvatar\n                :src=\"`https://i.pravatar.cc/80?img=${comment.avatar}`\"\n                :fallback=\"comment.who.slice(0, 1)\"\n                class=\"size-7\"\n              />\n              <div class=\"bg-muted/60 min-w-0 flex-1 rounded-lg px-3 py-2 text-sm\">\n                <p class=\"font-medium\">{{ comment.who }}</p>\n                <p>{{ comment.text }}</p>\n              </div>\n            </li>\n          </ul>\n          <form class=\"flex gap-2\" @submit.prevent=\"addComment(post)\">\n            <UiInput\n              v-model=\"post.draft\"\n              :aria-label=\"`Comment on post by ${post.who}`\"\n              placeholder=\"Write a comment\"\n            />\n            <UiButton type=\"submit\" size=\"sm\" :disabled=\"!post.draft.trim()\">Post</UiButton>\n          </form>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Comment = { id: string; who: string; avatar: number; text: string };\n  type PostInput = {\n    id: string;\n    who: string;\n    avatar: number;\n    when: string;\n    body: string;\n    likes: number;\n    comments: Comment[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      posts?: PostInput[];\n    }>(),\n    {\n      posts: () => [\n        {\n          id: \"p1\",\n          who: \"Maya Patel\",\n          avatar: 32,\n          when: \"Today, 10:02 AM\",\n          body: \"The new homepage hero is live on staging. Please click around on your phone and tell me what feels off.\",\n          likes: 8,\n          comments: [\n            {\n              id: \"c1\",\n              who: \"Leo Fischer\",\n              avatar: 12,\n              text: \"Looks great. The CTA is a bit low on small screens.\",\n            },\n            { id: \"c2\", who: \"Sofia Alvarez\", avatar: 45, text: \"Loving the new headline.\" },\n            { id: \"c3\", who: \"Noah Kim\", avatar: 15, text: \"Lighthouse score is up by 12 points.\" },\n          ],\n        },\n        {\n          id: \"p2\",\n          who: \"Priya Nair\",\n          avatar: 44,\n          when: \"Yesterday, 4:30 PM\",\n          body: \"Weekly metrics are in. Activation is up 4 percent after the onboarding changes.\",\n          likes: 14,\n          comments: [{ id: \"c4\", who: \"Maya Patel\", avatar: 32, text: \"Fantastic news.\" }],\n        },\n      ],\n    }\n  );\n\n  const posts = ref(\n    props.posts.map((post) => ({\n      ...post,\n      comments: post.comments.map((comment) => ({ ...comment })),\n      liked: false,\n      open: true,\n      all: false,\n      draft: \"\",\n    }))\n  );\n\n  function like(post: (typeof posts.value)[number]) {\n    post.liked = !post.liked;\n    post.likes += post.liked ? 1 : -1;\n  }\n\n  function addComment(post: (typeof posts.value)[number]) {\n    const text = post.draft.trim();\n    if (!text) return;\n    post.comments.push({ id: `new-${post.comments.length}`, who: \"You\", avatar: 32, text });\n    post.draft = \"\";\n    post.all = true;\n  }\n</script>\n","category":"Feed","description":"Feed with comments. Features: Posts with an author, a time and a like button with a count, a thread of comments under each post, an inline comment box that adds to the thread and a show all comments toggle","path":"Activity/Feed/BlockFeed3.vue","components":["avatar","button","card","container","input"]},{"name":"Feed 4","fileName":"BlockFeed4.vue","file":"<template>\n  <!--\n    Timeline feed grouped by date\n    Features: A vertical line with colored markers, date headings, a title and details for each event, an optional status badge and a reverse order toggle\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex items-center justify-between gap-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Project timeline</h1>\n        <UiButton\n          variant=\"outline\"\n          size=\"sm\"\n          :aria-pressed=\"oldestFirst\"\n          @click=\"oldestFirst = !oldestFirst\"\n          ><Icon name=\"lucide:arrow-up-down\" class=\"size-4\" />{{\n            oldestFirst ? \"Oldest first\" : \"Newest first\"\n          }}</UiButton\n        >\n      </div>\n\n      <div class=\"mt-8 space-y-8\" aria-live=\"polite\">\n        <section v-for=\"group in groups\" :key=\"group.date\" :aria-label=\"group.label\">\n          <h2 class=\"text-muted-foreground mb-4 text-xs font-semibold tracking-wide uppercase\">\n            {{ group.label }}\n          </h2>\n          <ol class=\"border-border ml-3 space-y-6 border-l\">\n            <li v-for=\"item in group.items\" :key=\"item.id\" class=\"relative pl-8\">\n              <span\n                class=\"ring-background absolute top-1 -left-[0.5625rem] size-[1.125rem] rounded-full ring-4\"\n                :class=\"dots[item.tone]\"\n                aria-hidden=\"true\"\n              />\n              <div class=\"flex flex-wrap items-center gap-2\">\n                <p class=\"text-sm font-medium\">{{ item.title }}</p>\n                <UiBadge v-if=\"item.status\" variant=\"soft\" shape=\"pill\" :color=\"item.tone\">{{\n                  item.status\n                }}</UiBadge>\n                <span class=\"text-muted-foreground ml-auto text-xs\">{{ item.time }}</span>\n              </div>\n              <p class=\"text-muted-foreground mt-1 text-sm\">{{ item.detail }}</p>\n            </li>\n          </ol>\n        </section>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Tone = \"blue\" | \"green\" | \"amber\" | \"red\";\n  type Item = {\n    id: string;\n    date: string;\n    time: string;\n    title: string;\n    detail: string;\n    tone: Tone;\n    status?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Item[];\n    }>(),\n    {\n      items: () => [\n        {\n          id: \"t1\",\n          date: \"2026-10-18\",\n          time: \"10:02 AM\",\n          title: \"Design handoff\",\n          detail: \"Final screens were shared with engineering.\",\n          tone: \"blue\",\n          status: \"In review\",\n        },\n        {\n          id: \"t2\",\n          date: \"2026-10-18\",\n          time: \"8:10 AM\",\n          title: \"Release 2.4 shipped\",\n          detail: \"Deployed to production with no errors.\",\n          tone: \"green\",\n          status: \"Shipped\",\n        },\n        {\n          id: \"t3\",\n          date: \"2026-10-17\",\n          time: \"4:45 PM\",\n          title: \"Build failed on staging\",\n          detail: \"A missing environment variable stopped the deploy. Fixed in the next commit.\",\n          tone: \"red\",\n          status: \"Failed\",\n        },\n        {\n          id: \"t4\",\n          date: \"2026-10-17\",\n          time: \"11:00 AM\",\n          title: \"Scope change approved\",\n          detail: \"The reporting module moved to the next quarter.\",\n          tone: \"amber\",\n        },\n        {\n          id: \"t5\",\n          date: \"2026-10-15\",\n          time: \"9:00 AM\",\n          title: \"Kickoff meeting\",\n          detail: \"Goals, owners and the schedule were agreed.\",\n          tone: \"blue\",\n        },\n      ],\n    }\n  );\n\n  const dots: Record<Tone, string> = {\n    blue: \"bg-blue-500\",\n    green: \"bg-green-500\",\n    amber: \"bg-amber-500\",\n    red: \"bg-red-500\",\n  };\n\n  const oldestFirst = ref(false);\n\n  const groups = computed(() => {\n    const dates = [...new Set(props.items.map((item) => item.date))].sort();\n    if (!oldestFirst.value) dates.reverse();\n    return dates.map((date) => {\n      const items = props.items.filter((item) => item.date === date);\n      return {\n        date,\n        label: new Date(`${date}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n          weekday: \"long\",\n          month: \"long\",\n          day: \"numeric\",\n          timeZone: \"UTC\",\n        }),\n        items: oldestFirst.value ? [...items].reverse() : items,\n      };\n    });\n  });\n</script>\n","category":"Feed","description":"Timeline feed grouped by date. Features: A vertical line with colored markers, date headings, a title and details for each event, an optional status badge and a reverse order toggle","path":"Activity/Feed/BlockFeed4.vue","components":["badge","button","container"]},{"name":"Feed 5","fileName":"BlockFeed5.vue","file":"<template>\n  <!--\n    Commit style activity feed\n    Features: Commits grouped by day, message, author avatar and time, a verified badge, a short hash with a copy button, branch tags and a link style icon to view the change\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex items-center gap-2\">\n        <Icon name=\"lucide:git-branch\" class=\"size-5\" />\n        <h1 class=\"text-2xl font-bold tracking-tight\">{{ branch }}</h1>\n      </div>\n\n      <div class=\"mt-6 space-y-8\">\n        <section\n          v-for=\"group in groups\"\n          :key=\"group.date\"\n          :aria-label=\"`Commits on ${group.label}`\"\n        >\n          <h2 class=\"text-muted-foreground mb-3 flex items-center gap-2 text-sm\">\n            <Icon name=\"lucide:git-commit-horizontal\" class=\"size-4\" />Commits on {{ group.label }}\n          </h2>\n          <ul class=\"divide-y rounded-xl border\">\n            <li\n              v-for=\"commit in group.items\"\n              :key=\"commit.hash\"\n              class=\"flex flex-wrap items-center gap-3 px-4 py-3 sm:flex-nowrap\"\n            >\n              <UiAvatar\n                :src=\"`https://i.pravatar.cc/80?img=${commit.avatar}`\"\n                :fallback=\"commit.author.slice(0, 1)\"\n                class=\"size-8\"\n              />\n              <div class=\"min-w-0 flex-1 basis-40\">\n                <p class=\"text-sm font-medium break-words sm:truncate\">{{ commit.message }}</p>\n                <p class=\"text-muted-foreground flex flex-wrap items-center gap-x-2 text-xs\">\n                  <span>{{ commit.author }} committed {{ commit.time }}</span>\n                  <UiBadge v-if=\"commit.verified\" variant=\"soft\" color=\"green\" shape=\"pill\"\n                    >Verified</UiBadge\n                  >\n                  <UiBadge v-for=\"tag in commit.tags\" :key=\"tag\" variant=\"outline\" shape=\"pill\">{{\n                    tag\n                  }}</UiBadge>\n                </p>\n              </div>\n              <div class=\"ml-auto flex shrink-0 items-center gap-1\">\n                <code class=\"bg-muted rounded-md px-2 py-1 font-mono text-xs\">{{\n                  commit.hash\n                }}</code>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  :aria-label=\"`Copy hash ${commit.hash}`\"\n                  @click=\"copyHash(commit.hash)\"\n                  ><Icon\n                    :name=\"copiedHash === commit.hash ? 'lucide:check' : 'lucide:copy'\"\n                    class=\"size-4\"\n                /></UiButton>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  :aria-label=\"`View changes for ${commit.hash}`\"\n                  @click=\"useSonner.info(`Open the diff for ${commit.hash}`)\"\n                  ><Icon name=\"lucide:code-xml\" class=\"size-4\"\n                /></UiButton>\n              </div>\n            </li>\n          </ul>\n        </section>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Commit = {\n    hash: string;\n    message: string;\n    author: string;\n    avatar: number;\n    date: string;\n    time: string;\n    verified?: boolean;\n    tags?: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      branch?: string;\n      commits?: Commit[];\n    }>(),\n    {\n      branch: \"main\",\n      commits: () => [\n        {\n          hash: \"a3f9c21\",\n          message: \"feat(billing): add proration preview\",\n          author: \"Maya Patel\",\n          avatar: 32,\n          date: \"2026-10-18\",\n          time: \"2 hours ago\",\n          verified: true,\n          tags: [\"v2.4.0\"],\n        },\n        {\n          hash: \"7be10d4\",\n          message: \"fix(auth): refresh the session before it expires\",\n          author: \"Leo Fischer\",\n          avatar: 12,\n          date: \"2026-10-18\",\n          time: \"5 hours ago\",\n          verified: true,\n        },\n        {\n          hash: \"c92e5aa\",\n          message: \"chore: bump dependencies\",\n          author: \"Noah Kim\",\n          avatar: 15,\n          date: \"2026-10-17\",\n          time: \"yesterday\",\n        },\n        {\n          hash: \"1d4b8f0\",\n          message: \"docs: explain the rate limit headers\",\n          author: \"Sofia Alvarez\",\n          avatar: 45,\n          date: \"2026-10-17\",\n          time: \"yesterday\",\n          verified: true,\n        },\n        {\n          hash: \"e60a7b3\",\n          message: \"refactor(table): extract the column menu\",\n          author: \"Priya Nair\",\n          avatar: 44,\n          date: \"2026-10-15\",\n          time: \"3 days ago\",\n        },\n      ],\n    }\n  );\n\n  const groups = computed(() =>\n    [...new Set(props.commits.map((commit) => commit.date))]\n      .sort()\n      .reverse()\n      .map((date) => ({\n        date,\n        label: new Date(`${date}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n          month: \"short\",\n          day: \"numeric\",\n          year: \"numeric\",\n          timeZone: \"UTC\",\n        }),\n        items: props.commits.filter((commit) => commit.date === date),\n      }))\n  );\n\n  const { copy } = useClipboard();\n  const copiedHash = ref(\"\");\n\n  async function copyHash(hash: string) {\n    await copy(hash);\n    copiedHash.value = hash;\n    setTimeout(() => (copiedHash.value = \"\"), 1500);\n  }\n</script>\n","category":"Feed","description":"Commit style activity feed. Features: Commits grouped by day, message, author avatar and time, a verified badge, a short hash with a copy button, branch tags and a link style icon to view the change","path":"Activity/Feed/BlockFeed5.vue","components":["avatar","badge","button","container"]},{"name":"Feed 6","fileName":"BlockFeed6.vue","file":"<template>\n  <!--\n    System events feed\n    Features: Monospace event lines with a severity icon, a timestamp, a service name, expandable details with a key and value list, a severity filter with counts and a pause live updates switch\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-center justify-between gap-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">System events</h1>\n        <div class=\"flex items-center gap-2\">\n          <UiSwitch id=\"live\" v-model=\"live\" />\n          <UiLabel for=\"live\" class=\"text-sm font-normal\">Live</UiLabel>\n        </div>\n      </div>\n\n      <UiToggleGroup\n        :model-value=\"level\"\n        type=\"single\"\n        variant=\"outline\"\n        size=\"sm\"\n        class=\"mt-4 flex-wrap justify-start\"\n        aria-label=\"Severity\"\n        @update:model-value=\"(value) => (level = (value as string) || 'all')\"\n      >\n        <UiToggleGroupItem v-for=\"item in levels\" :key=\"item\" :value=\"item\" class=\"capitalize\"\n          >{{ item\n          }}<span class=\"text-muted-foreground ml-1.5 text-xs\">{{\n            count(item)\n          }}</span></UiToggleGroupItem\n        >\n      </UiToggleGroup>\n\n      <ul class=\"mt-4 divide-y rounded-xl border font-mono text-sm\" aria-live=\"off\">\n        <li v-for=\"event in visible\" :key=\"event.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-accent/50 focus-visible:bg-accent/50 flex w-full items-start gap-3 px-4 py-2.5 text-left outline-none\"\n            :aria-expanded=\"open.has(event.id)\"\n            @click=\"toggle(event.id)\"\n          >\n            <Icon\n              :name=\"icons[event.level].name\"\n              class=\"mt-0.5 size-4 shrink-0\"\n              :class=\"icons[event.level].tone\"\n            />\n            <span class=\"text-muted-foreground shrink-0\">{{ event.time }}</span>\n            <span class=\"bg-muted shrink-0 rounded px-1.5 text-xs leading-5\">{{\n              event.service\n            }}</span>\n            <span class=\"min-w-0 flex-1 break-words\">{{ event.message }}</span>\n            <Icon\n              name=\"lucide:chevron-down\"\n              class=\"text-muted-foreground mt-0.5 size-4 shrink-0 transition-transform\"\n              :class=\"open.has(event.id) ? 'rotate-180' : ''\"\n            />\n          </button>\n          <dl\n            v-if=\"open.has(event.id)\"\n            class=\"bg-muted/40 grid grid-cols-[auto_1fr] gap-x-6 gap-y-1 px-4 py-3 text-xs\"\n          >\n            <template v-for=\"(value, key) in event.details\" :key=\"key\">\n              <dt class=\"text-muted-foreground\">{{ key }}</dt>\n              <dd class=\"break-all\">{{ value }}</dd>\n            </template>\n          </dl>\n        </li>\n        <li v-if=\"!visible.length\" class=\"text-muted-foreground px-4 py-10 text-center font-sans\">\n          No events at this level.\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Level = \"info\" | \"success\" | \"warning\" | \"error\";\n  type Event = {\n    id: string;\n    level: Level;\n    time: string;\n    service: string;\n    message: string;\n    details: Record<string, string>;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      events?: Event[];\n    }>(),\n    {\n      events: () => [\n        {\n          id: \"s1\",\n          level: \"error\",\n          time: \"10:18:42\",\n          service: \"billing\",\n          message: \"Webhook delivery failed after 3 retries\",\n          details: {\n            endpoint: \"https://example.com/hooks/billing\",\n            status: \"503\",\n            attempt: \"3 of 3\",\n          },\n        },\n        {\n          id: \"s2\",\n          level: \"warning\",\n          time: \"10:16:05\",\n          service: \"api\",\n          message: \"Latency above 800 ms on /v1/reports\",\n          details: { p95: \"812 ms\", region: \"us-east-1\", threshold: \"800 ms\" },\n        },\n        {\n          id: \"s3\",\n          level: \"success\",\n          time: \"10:12:31\",\n          service: \"deploy\",\n          message: \"Release 2.4.0 rolled out to production\",\n          details: { duration: \"2m 14s\", commit: \"a3f9c21\", instances: \"6\" },\n        },\n        {\n          id: \"s4\",\n          level: \"info\",\n          time: \"10:09:50\",\n          service: \"auth\",\n          message: \"Signing key rotated\",\n          details: { keyId: \"k_2026_10\", expires: \"2027-01-18\" },\n        },\n        {\n          id: \"s5\",\n          level: \"info\",\n          time: \"10:02:11\",\n          service: \"jobs\",\n          message: \"Nightly export queued\",\n          details: { rows: \"48,210\", queue: \"exports\" },\n        },\n        {\n          id: \"s6\",\n          level: \"warning\",\n          time: \"09:58:20\",\n          service: \"storage\",\n          message: \"Bucket at 82 percent of its quota\",\n          details: { used: \"820 GB\", quota: \"1 TB\" },\n        },\n      ],\n    }\n  );\n\n  const levels = [\"all\", \"info\", \"success\", \"warning\", \"error\"];\n  const icons: Record<Level, { name: string; tone: string }> = {\n    info: { name: \"lucide:info\", tone: \"text-blue-500\" },\n    success: { name: \"lucide:circle-check\", tone: \"text-green-500\" },\n    warning: { name: \"lucide:triangle-alert\", tone: \"text-amber-500\" },\n    error: { name: \"lucide:circle-x\", tone: \"text-red-500\" },\n  };\n\n  const live = ref(true);\n  const level = ref(\"all\");\n  const open = ref(new Set<string>([\"s1\"]));\n\n  const count = (value: string) =>\n    value === \"all\"\n      ? props.events.length\n      : props.events.filter((event) => event.level === value).length;\n  const visible = computed(() =>\n    props.events.filter((event) => level.value === \"all\" || event.level === level.value)\n  );\n\n  function toggle(id: string) {\n    const next = new Set(open.value);\n    if (next.has(id)) next.delete(id);\n    else next.add(id);\n    open.value = next;\n  }\n</script>\n","category":"Feed","description":"System events feed. Features: Monospace event lines with a severity icon, a timestamp, a service name, expandable details with a key and value list, a severity filter with counts and a pause live updates switch","path":"Activity/Feed/BlockFeed6.vue","components":["container","label","switch","toggle-group"]},{"name":"Feed 7","fileName":"BlockFeed7.vue","file":"<template>\n  <!--\n    Feed with filter chips\n    Features: Toggle chips for each activity type with counts, several filters at once, a clear filters button, a result count and an empty state with a reset link\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Activity</h1>\n\n      <div class=\"mt-4 flex flex-wrap items-center gap-2\" role=\"group\" aria-label=\"Filter by type\">\n        <UiButton\n          v-for=\"type in types\"\n          :key=\"type.value\"\n          size=\"sm\"\n          :variant=\"active.has(type.value) ? 'default' : 'outline'\"\n          class=\"rounded-full\"\n          :aria-pressed=\"active.has(type.value)\"\n          @click=\"toggle(type.value)\"\n        >\n          <Icon :name=\"type.icon\" class=\"size-4\" />{{ type.label }}\n          <span class=\"text-xs opacity-70\">{{ count(type.value) }}</span>\n        </UiButton>\n        <UiButton v-if=\"active.size\" variant=\"ghost\" size=\"sm\" @click=\"active = new Set()\"\n          >Clear filters</UiButton\n        >\n      </div>\n      <p class=\"text-muted-foreground mt-3 text-sm\" aria-live=\"polite\">\n        Showing {{ visible.length }} of {{ items.length }} updates\n      </p>\n\n      <ul v-if=\"visible.length\" class=\"mt-4 divide-y rounded-xl border\">\n        <li v-for=\"item in visible\" :key=\"item.id\" class=\"flex items-start gap-3 px-4 py-3.5\">\n          <span class=\"bg-muted grid size-8 shrink-0 place-items-center rounded-full\"\n            ><Icon :name=\"iconOf(item.type)\" class=\"size-4\"\n          /></span>\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"text-sm\">\n              <span class=\"font-medium\">{{ item.who }}</span> {{ item.text }}\n              <span class=\"font-medium\">{{ item.target }}</span>\n            </p>\n            <p class=\"text-muted-foreground mt-0.5 text-xs\">{{ item.when }}</p>\n          </div>\n          <UiBadge variant=\"soft\" shape=\"pill\">{{ labelOf(item.type) }}</UiBadge>\n        </li>\n      </ul>\n      <div\n        v-else\n        class=\"mt-4 rounded-xl border border-dashed px-6 py-12 text-center\"\n        aria-live=\"polite\"\n      >\n        <Icon name=\"lucide:filter-x\" class=\"text-muted-foreground mx-auto size-6\" />\n        <p class=\"mt-2 text-sm font-medium\">No updates match these filters</p>\n        <UiButton variant=\"link\" size=\"sm\" @click=\"active = new Set()\">Show everything</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Type = \"comment\" | \"deploy\" | \"issue\" | \"doc\";\n  type Item = { id: string; type: Type; who: string; text: string; target: string; when: string };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Item[];\n    }>(),\n    {\n      items: () => [\n        {\n          id: \"i1\",\n          type: \"comment\",\n          who: \"Maya Patel\",\n          text: \"commented on\",\n          target: \"Homepage redesign\",\n          when: \"10 minutes ago\",\n        },\n        {\n          id: \"i2\",\n          type: \"deploy\",\n          who: \"Noah Kim\",\n          text: \"deployed\",\n          target: \"Release 2.4 to production\",\n          when: \"2 hours ago\",\n        },\n        {\n          id: \"i3\",\n          type: \"issue\",\n          who: \"Leo Fischer\",\n          text: \"opened\",\n          target: \"Rate limits return 500\",\n          when: \"3 hours ago\",\n        },\n        {\n          id: \"i4\",\n          type: \"doc\",\n          who: \"Sofia Alvarez\",\n          text: \"updated\",\n          target: \"Onboarding guide\",\n          when: \"Yesterday\",\n        },\n        {\n          id: \"i5\",\n          type: \"comment\",\n          who: \"Priya Nair\",\n          text: \"replied in\",\n          target: \"Invoice rounding\",\n          when: \"Yesterday\",\n        },\n        {\n          id: \"i6\",\n          type: \"issue\",\n          who: \"Tom Becker\",\n          text: \"closed\",\n          target: \"Broken avatar upload\",\n          when: \"2 days ago\",\n        },\n        {\n          id: \"i7\",\n          type: \"deploy\",\n          who: \"Ines Costa\",\n          text: \"deployed\",\n          target: \"Marketing site to staging\",\n          when: \"3 days ago\",\n        },\n      ],\n    }\n  );\n\n  const types: { value: Type; label: string; icon: string }[] = [\n    { value: \"comment\", label: \"Comments\", icon: \"lucide:message-square\" },\n    { value: \"deploy\", label: \"Deploys\", icon: \"lucide:rocket\" },\n    { value: \"issue\", label: \"Issues\", icon: \"lucide:circle-dot\" },\n    { value: \"doc\", label: \"Docs\", icon: \"lucide:file-text\" },\n  ];\n\n  const active = ref(new Set<Type>());\n\n  const iconOf = (type: Type) => types.find((item) => item.value === type)!.icon;\n  const labelOf = (type: Type) =>\n    types.find((item) => item.value === type)!.label.replace(/s$/, \"\");\n  const count = (type: Type) => props.items.filter((item) => item.type === type).length;\n  const visible = computed(() =>\n    props.items.filter((item) => active.value.size === 0 || active.value.has(item.type))\n  );\n\n  function toggle(type: Type) {\n    const next = new Set(active.value);\n    if (next.has(type)) next.delete(type);\n    else next.add(type);\n    active.value = next;\n  }\n</script>\n","category":"Feed","description":"Feed with filter chips. Features: Toggle chips for each activity type with counts, several filters at once, a clear filters button, a result count and an empty state with a reset link","path":"Activity/Feed/BlockFeed7.vue","components":["badge","button","container"]},{"name":"Feed 8","fileName":"BlockFeed8.vue","file":"<template>\n  <!--\n    Compact activity sidebar widget\n    Features: Narrow card with small avatar rows built from the Item component, one line per event with a relative time, a new badge on unseen events, a mark as seen action and a view all link\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-xs gap-0 py-0\">\n      <div class=\"flex items-center justify-between px-4 py-3\">\n        <h1 class=\"text-sm font-semibold\">Activity</h1>\n        <UiButton\n          variant=\"ghost\"\n          size=\"sm\"\n          class=\"h-7 px-2 text-xs\"\n          :disabled=\"!fresh\"\n          @click=\"seen = true\"\n          >Mark as seen</UiButton\n        >\n      </div>\n      <UiItemGroup class=\"border-t\">\n        <template v-for=\"(item, index) in items\" :key=\"item.id\">\n          <UiItem size=\"sm\" class=\"rounded-none\">\n            <UiItemMedia>\n              <UiAvatar\n                :src=\"`https://i.pravatar.cc/80?img=${item.avatar}`\"\n                :fallback=\"item.who.slice(0, 1)\"\n                class=\"size-7\"\n              />\n            </UiItemMedia>\n            <UiItemContent>\n              <UiItemTitle class=\"text-xs leading-snug font-normal\">\n                <span><span class=\"font-medium\">{{ item.who }}</span> {{ item.text }}</span>\n              </UiItemTitle>\n              <UiItemDescription class=\"text-xs\">{{ item.when }}</UiItemDescription>\n            </UiItemContent>\n            <UiItemActions v-if=\"item.fresh && !seen\">\n              <UiBadge variant=\"soft\" color=\"blue\" shape=\"pill\">New</UiBadge>\n            </UiItemActions>\n          </UiItem>\n          <UiItemSeparator v-if=\"index < items.length - 1\" />\n        </template>\n      </UiItemGroup>\n      <div class=\"border-t px-4 py-2\">\n        <UiButton\n          variant=\"link\"\n          size=\"sm\"\n          class=\"h-auto p-0 text-xs\"\n          @click=\"useSonner.info('Open the full activity page here')\"\n          >View all activity</UiButton\n        >\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = {\n    id: string;\n    who: string;\n    avatar: number;\n    text: string;\n    when: string;\n    fresh?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Item[];\n    }>(),\n    {\n      items: () => [\n        {\n          id: \"c1\",\n          who: \"Maya\",\n          avatar: 32,\n          text: \"commented on Homepage redesign\",\n          when: \"10m ago\",\n          fresh: true,\n        },\n        {\n          id: \"c2\",\n          who: \"Leo\",\n          avatar: 12,\n          text: \"opened a pull request\",\n          when: \"1h ago\",\n          fresh: true,\n        },\n        { id: \"c3\", who: \"Noah\", avatar: 15, text: \"deployed Release 2.4\", when: \"2h ago\" },\n        { id: \"c4\", who: \"Sofia\", avatar: 45, text: \"updated the roadmap\", when: \"Yesterday\" },\n        { id: \"c5\", who: \"Priya\", avatar: 44, text: \"joined the team\", when: \"Mon\" },\n      ],\n    }\n  );\n\n  const seen = ref(false);\n  const fresh = computed(() => !seen.value && props.items.some((item) => item.fresh));\n</script>\n","category":"Feed","description":"Compact activity sidebar widget. Features: Narrow card with small avatar rows built from the Item component, one line per event with a relative time, a new badge on unseen events, a mark as seen action and a view all link","path":"Activity/Feed/BlockFeed8.vue","components":["avatar","badge","button","card","container","item"]},{"name":"File Manager 1","fileName":"BlockFileManager1.vue","file":"<template>\n  <!--\n    File grid with selection\n    Features: Grid of file and folder cards with image previews and type icons, a checkbox on every card, a bulk bar to download or delete, a sort select, search, inline rename from the card menu and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-wrap items-center justify-between gap-3\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Files</h1>\n      <div class=\"flex flex-wrap items-center gap-2\">\n        <div class=\"relative\">\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            v-model=\"query\"\n            class=\"w-48 pl-9\"\n            placeholder=\"Search files\"\n            aria-label=\"Search files\"\n          />\n        </div>\n        <UiSelect v-model=\"sort\">\n          <UiSelectTrigger class=\"w-36\" aria-label=\"Sort files\"><UiSelectValue /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"name\">Name</UiSelectItem>\n            <UiSelectItem value=\"modified\">Last modified</UiSelectItem>\n            <UiSelectItem value=\"size\">Size</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n    </div>\n\n    <div class=\"mt-4 flex min-h-9 items-center gap-3\" aria-live=\"polite\">\n      <p v-if=\"!selected.size\" class=\"text-muted-foreground text-sm\">{{ visible.length }} items</p>\n      <template v-else>\n        <p class=\"text-sm font-medium\">{{ selected.size }} selected</p>\n        <UiButton\n          variant=\"outline\"\n          size=\"sm\"\n          @click=\"useSonner.success(`Downloading ${selected.size} items`)\"\n          ><Icon name=\"lucide:download\" class=\"size-4\" />Download</UiButton\n        >\n        <UiButton variant=\"outline\" size=\"sm\" class=\"text-destructive\" @click=\"removeSelected\"\n          ><Icon name=\"lucide:trash-2\" class=\"size-4\" />Delete</UiButton\n        >\n        <UiButton variant=\"ghost\" size=\"sm\" @click=\"selected = new Set()\">Clear</UiButton>\n      </template>\n    </div>\n\n    <ul v-if=\"visible.length\" class=\"mt-2 grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5\">\n      <li\n        v-for=\"file in visible\"\n        :key=\"file.id\"\n        class=\"group bg-card relative overflow-hidden rounded-xl border\"\n        :class=\"selected.has(file.id) ? 'ring-primary ring-2' : ''\"\n      >\n        <div class=\"bg-muted relative grid aspect-[4/3] place-items-center overflow-hidden\">\n          <img\n            v-if=\"file.preview\"\n            :src=\"file.preview\"\n            :alt=\"file.name\"\n            class=\"size-full object-cover\"\n            loading=\"lazy\"\n          />\n          <Icon\n            v-else\n            :name=\"kinds[file.kind].icon\"\n            class=\"size-10\"\n            :class=\"kinds[file.kind].tint\"\n          />\n          <UiCheckbox\n            class=\"bg-background absolute top-2 left-2\"\n            :model-value=\"selected.has(file.id)\"\n            :aria-label=\"`Select ${file.name}`\"\n            @update:model-value=\"toggle(file.id)\"\n          />\n        </div>\n        <div class=\"flex items-start gap-1 p-3\">\n          <div class=\"min-w-0 flex-1\">\n            <form v-if=\"renaming === file.id\" @submit.prevent=\"commitRename(file)\">\n              <UiInput\n                v-model=\"draft\"\n                :aria-label=\"`New name for ${file.name}`\"\n                class=\"h-7 text-sm\"\n                @keydown.esc=\"renaming = ''\"\n              />\n            </form>\n            <template v-else>\n              <p class=\"truncate text-sm font-medium\">{{ file.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">\n                {{ file.kind === \"folder\" ? `${file.items} items` : size(file.bytes) }}\n              </p>\n            </template>\n          </div>\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"size-7\"\n                :aria-label=\"`Actions for ${file.name}`\"\n                ><Icon name=\"lucide:ellipsis-vertical\" class=\"size-4\"\n              /></UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\">\n              <UiDropdownMenuItem @select=\"startRename(file)\"\n                ><Icon name=\"lucide:pencil\" class=\"size-4\" />Rename</UiDropdownMenuItem\n              >\n              <UiDropdownMenuItem @select=\"useSonner.success(`Downloading ${file.name}`)\"\n                ><Icon name=\"lucide:download\" class=\"size-4\" />Download</UiDropdownMenuItem\n              >\n              <UiDropdownMenuItem class=\"text-destructive\" @select=\"remove(file.id)\"\n                ><Icon name=\"lucide:trash-2\" class=\"size-4\" />Delete</UiDropdownMenuItem\n              >\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n        </div>\n      </li>\n    </ul>\n    <div\n      v-else\n      class=\"text-muted-foreground mt-4 rounded-xl border border-dashed py-16 text-center text-sm\"\n      aria-live=\"polite\"\n    >\n      <Icon name=\"lucide:folder-search\" class=\"mx-auto mb-2 size-7\" />\n      No files found.\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Kind = \"folder\" | \"image\" | \"pdf\" | \"doc\" | \"sheet\" | \"video\" | \"zip\";\n  type FileItem = {\n    id: string;\n    name: string;\n    kind: Kind;\n    bytes: number;\n    modified: string;\n    items?: number;\n    preview?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      files?: FileItem[];\n    }>(),\n    {\n      files: () => [\n        {\n          id: \"f1\",\n          name: \"Brand assets\",\n          kind: \"folder\",\n          bytes: 0,\n          modified: \"2026-10-17T15:00\",\n          items: 24,\n        },\n        {\n          id: \"f2\",\n          name: \"Contracts\",\n          kind: \"folder\",\n          bytes: 0,\n          modified: \"2026-10-12T09:30\",\n          items: 8,\n        },\n        {\n          id: \"f3\",\n          name: \"Mountain lake.jpg\",\n          kind: \"image\",\n          bytes: 3_400_000,\n          modified: \"2026-10-16T11:20\",\n          preview: \"https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=480&q=70\",\n        },\n        {\n          id: \"f4\",\n          name: \"Forest trail.jpg\",\n          kind: \"image\",\n          bytes: 2_900_000,\n          modified: \"2026-10-15T18:05\",\n          preview: \"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=480&q=70\",\n        },\n        {\n          id: \"f5\",\n          name: \"Q3 report.pdf\",\n          kind: \"pdf\",\n          bytes: 1_200_000,\n          modified: \"2026-10-14T10:00\",\n        },\n        {\n          id: \"f6\",\n          name: \"Meeting notes.docx\",\n          kind: \"doc\",\n          bytes: 48_000,\n          modified: \"2026-10-18T08:40\",\n        },\n        {\n          id: \"f7\",\n          name: \"Budget 2027.xlsx\",\n          kind: \"sheet\",\n          bytes: 310_000,\n          modified: \"2026-10-13T16:15\",\n        },\n        {\n          id: \"f8\",\n          name: \"Product demo.mp4\",\n          kind: \"video\",\n          bytes: 84_000_000,\n          modified: \"2026-10-10T13:00\",\n        },\n        {\n          id: \"f9\",\n          name: \"Archive 2025.zip\",\n          kind: \"zip\",\n          bytes: 420_000_000,\n          modified: \"2026-09-30T12:00\",\n        },\n        {\n          id: \"f10\",\n          name: \"Valley view.jpg\",\n          kind: \"image\",\n          bytes: 4_100_000,\n          modified: \"2026-10-09T07:45\",\n          preview: \"https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=480&q=70\",\n        },\n      ],\n    }\n  );\n\n  const kinds: Record<Kind, { icon: string; tint: string }> = {\n    folder: { icon: \"lucide:folder\", tint: \"text-amber-500\" },\n    image: { icon: \"lucide:image\", tint: \"text-violet-500\" },\n    pdf: { icon: \"lucide:file-text\", tint: \"text-red-500\" },\n    doc: { icon: \"lucide:file-text\", tint: \"text-blue-500\" },\n    sheet: { icon: \"lucide:file-spreadsheet\", tint: \"text-green-500\" },\n    video: { icon: \"lucide:file-video\", tint: \"text-pink-500\" },\n    zip: { icon: \"lucide:file-archive\", tint: \"text-slate-500\" },\n  };\n\n  const items = ref<FileItem[]>(props.files.map((file) => ({ ...file })));\n  const query = ref(\"\");\n  const sort = ref(\"name\");\n  const selected = ref(new Set<string>());\n  const renaming = ref(\"\");\n  const draft = ref(\"\");\n\n  const visible = computed(() => {\n    const text = query.value.trim().toLowerCase();\n    return items.value\n      .filter((file) => !text || file.name.toLowerCase().includes(text))\n      .sort((a, b) => {\n        if (a.kind === \"folder\" && b.kind !== \"folder\") return -1;\n        if (b.kind === \"folder\" && a.kind !== \"folder\") return 1;\n        if (sort.value === \"size\") return b.bytes - a.bytes;\n        if (sort.value === \"modified\") return b.modified.localeCompare(a.modified);\n        return a.name.localeCompare(b.name);\n      });\n  });\n\n  function size(bytes: number) {\n    if (bytes >= 1e9) return `${(bytes / 1e9).toFixed(1)} GB`;\n    if (bytes >= 1e6) return `${(bytes / 1e6).toFixed(1)} MB`;\n    return `${Math.max(1, Math.round(bytes / 1e3))} KB`;\n  }\n\n  function toggle(id: string) {\n    const next = new Set(selected.value);\n    if (next.has(id)) next.delete(id);\n    else next.add(id);\n    selected.value = next;\n  }\n\n  function startRename(file: FileItem) {\n    draft.value = file.name;\n    renaming.value = file.id;\n  }\n\n  function commitRename(file: FileItem) {\n    if (draft.value.trim()) file.name = draft.value.trim();\n    renaming.value = \"\";\n  }\n\n  function remove(id: string) {\n    const file = items.value.find((item) => item.id === id);\n    items.value = items.value.filter((item) => item.id !== id);\n    selected.value.delete(id);\n    if (file) useSonner.success(`Moved ${file.name} to trash`);\n  }\n\n  function removeSelected() {\n    const count = selected.value.size;\n    items.value = items.value.filter((file) => !selected.value.has(file.id));\n    selected.value = new Set();\n    useSonner.success(`Moved ${count} items to trash`);\n  }\n</script>\n","category":"FileManager","description":"File grid with selection. Features: Grid of file and folder cards with image previews and type icons, a checkbox on every card, a bulk bar to download or delete, a sort select, search, inline rename from the card menu and an empty state","path":"Files/FileManager/BlockFileManager1.vue","components":["button","checkbox","container","dropdown-menu","input","select"]},{"name":"File Manager 2","fileName":"BlockFileManager2.vue","file":"<template>\n  <!--\n    File table\n    Features: Table with name, owner, last modified and size columns, sortable headers with aria-sort, a star toggle, row checkboxes with a select all, a bulk bar and relative modified dates\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-2xl font-bold tracking-tight\">All files</h1>\n\n    <div class=\"mt-4 flex min-h-9 items-center gap-3\" aria-live=\"polite\">\n      <p v-if=\"!selected.size\" class=\"text-muted-foreground text-sm\">{{ rows.length }} items</p>\n      <template v-else>\n        <p class=\"text-sm font-medium\">{{ selected.size }} selected</p>\n        <UiButton\n          variant=\"outline\"\n          size=\"sm\"\n          @click=\"useSonner.success(`Downloading ${selected.size} items`)\"\n          ><Icon name=\"lucide:download\" class=\"size-4\" />Download</UiButton\n        >\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"useSonner.info('Open the move dialog here')\"\n          ><Icon name=\"lucide:folder-input\" class=\"size-4\" />Move</UiButton\n        >\n        <UiButton variant=\"outline\" size=\"sm\" class=\"text-destructive\" @click=\"removeSelected\"\n          ><Icon name=\"lucide:trash-2\" class=\"size-4\" />Delete</UiButton\n        >\n      </template>\n    </div>\n\n    <div class=\"mt-2 rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"w-10\">\n              <UiCheckbox\n                :model-value=\"allSelected ? true : selected.size ? 'indeterminate' : false\"\n                aria-label=\"Select all files\"\n                @update:model-value=\"toggleAll\"\n              />\n            </UiTableHead>\n            <UiTableHead :aria-sort=\"ariaSort('name')\">\n              <button\n                type=\"button\"\n                class=\"flex items-center gap-1 font-medium\"\n                @click=\"sortBy('name')\"\n              >\n                Name<Icon :name=\"icon('name')\" class=\"size-3.5\" />\n              </button>\n            </UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Owner</UiTableHead>\n            <UiTableHead class=\"hidden md:table-cell\" :aria-sort=\"ariaSort('modified')\">\n              <button\n                type=\"button\"\n                class=\"flex items-center gap-1 font-medium\"\n                @click=\"sortBy('modified')\"\n              >\n                Modified<Icon :name=\"icon('modified')\" class=\"size-3.5\" />\n              </button>\n            </UiTableHead>\n            <UiTableHead class=\"text-right\" :aria-sort=\"ariaSort('bytes')\">\n              <button\n                type=\"button\"\n                class=\"ml-auto flex items-center gap-1 font-medium\"\n                @click=\"sortBy('bytes')\"\n              >\n                Size<Icon :name=\"icon('bytes')\" class=\"size-3.5\" />\n              </button>\n            </UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow\n            v-for=\"file in rows\"\n            :key=\"file.id\"\n            :data-state=\"selected.has(file.id) ? 'selected' : undefined\"\n          >\n            <UiTableCell>\n              <UiCheckbox\n                :model-value=\"selected.has(file.id)\"\n                :aria-label=\"`Select ${file.name}`\"\n                @update:model-value=\"toggle(file.id)\"\n              />\n            </UiTableCell>\n            <UiTableCell>\n              <div class=\"flex items-center gap-3\">\n                <Icon\n                  :name=\"kinds[file.kind].icon\"\n                  class=\"size-5 shrink-0\"\n                  :class=\"kinds[file.kind].tint\"\n                />\n                <span class=\"truncate font-medium\">{{ file.name }}</span>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  class=\"size-7\"\n                  :aria-pressed=\"file.starred\"\n                  :aria-label=\"`${file.starred ? 'Unstar' : 'Star'} ${file.name}`\"\n                  @click=\"file.starred = !file.starred\"\n                  ><Icon\n                    name=\"lucide:star\"\n                    class=\"size-4\"\n                    :class=\"\n                      file.starred\n                        ? 'text-amber-400 [&_path]:fill-amber-400'\n                        : 'text-muted-foreground'\n                    \"\n                /></UiButton>\n              </div>\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden sm:table-cell\">{{\n              file.owner\n            }}</UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden whitespace-nowrap md:table-cell\">{{\n              ago(file.modified)\n            }}</UiTableCell>\n            <UiTableCell class=\"text-muted-foreground text-right whitespace-nowrap\">{{\n              file.kind === \"folder\" ? \"—\" : size(file.bytes)\n            }}</UiTableCell>\n          </UiTableRow>\n          <UiTableRow v-if=\"!rows.length\">\n            <UiTableCell colspan=\"5\" class=\"text-muted-foreground py-10 text-center\"\n              >This folder is empty.</UiTableCell\n            >\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Kind = \"folder\" | \"image\" | \"pdf\" | \"doc\" | \"sheet\" | \"video\" | \"zip\";\n  type FileItem = {\n    id: string;\n    name: string;\n    kind: Kind;\n    owner: string;\n    modified: string;\n    bytes: number;\n    starred?: boolean;\n  };\n  type Key = \"name\" | \"modified\" | \"bytes\";\n\n  const props = withDefaults(\n    defineProps<{\n      now?: string;\n      files?: FileItem[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      files: () => [\n        {\n          id: \"t1\",\n          name: \"Brand assets\",\n          kind: \"folder\",\n          owner: \"Maya Patel\",\n          modified: \"2026-10-17T15:00\",\n          bytes: 0,\n          starred: true,\n        },\n        {\n          id: \"t2\",\n          name: \"Contracts\",\n          kind: \"folder\",\n          owner: \"Sofia Alvarez\",\n          modified: \"2026-10-12T09:30\",\n          bytes: 0,\n        },\n        {\n          id: \"t3\",\n          name: \"Q3 report.pdf\",\n          kind: \"pdf\",\n          owner: \"Priya Nair\",\n          modified: \"2026-10-14T10:00\",\n          bytes: 1_200_000,\n        },\n        {\n          id: \"t4\",\n          name: \"Meeting notes.docx\",\n          kind: \"doc\",\n          owner: \"You\",\n          modified: \"2026-10-18T08:40\",\n          bytes: 48_000,\n          starred: true,\n        },\n        {\n          id: \"t5\",\n          name: \"Budget 2027.xlsx\",\n          kind: \"sheet\",\n          owner: \"Noah Kim\",\n          modified: \"2026-10-13T16:15\",\n          bytes: 310_000,\n        },\n        {\n          id: \"t6\",\n          name: \"Product demo.mp4\",\n          kind: \"video\",\n          owner: \"Leo Fischer\",\n          modified: \"2026-10-10T13:00\",\n          bytes: 84_000_000,\n        },\n        {\n          id: \"t7\",\n          name: \"Archive 2025.zip\",\n          kind: \"zip\",\n          owner: \"You\",\n          modified: \"2026-09-30T12:00\",\n          bytes: 420_000_000,\n        },\n        {\n          id: \"t8\",\n          name: \"Hero image.png\",\n          kind: \"image\",\n          owner: \"Maya Patel\",\n          modified: \"2026-10-09T07:45\",\n          bytes: 2_100_000,\n        },\n      ],\n    }\n  );\n\n  const kinds: Record<Kind, { icon: string; tint: string }> = {\n    folder: { icon: \"lucide:folder\", tint: \"text-amber-500\" },\n    image: { icon: \"lucide:image\", tint: \"text-violet-500\" },\n    pdf: { icon: \"lucide:file-text\", tint: \"text-red-500\" },\n    doc: { icon: \"lucide:file-text\", tint: \"text-blue-500\" },\n    sheet: { icon: \"lucide:file-spreadsheet\", tint: \"text-green-500\" },\n    video: { icon: \"lucide:file-video\", tint: \"text-pink-500\" },\n    zip: { icon: \"lucide:file-archive\", tint: \"text-slate-500\" },\n  };\n\n  const items = ref<FileItem[]>(props.files.map((file) => ({ ...file })));\n  const selected = ref(new Set<string>());\n  const key = ref<Key>(\"name\");\n  const asc = ref(true);\n\n  const rows = computed(() =>\n    [...items.value].sort((a, b) => {\n      const dir = asc.value ? 1 : -1;\n      if (a.kind === \"folder\" && b.kind !== \"folder\") return -1;\n      if (b.kind === \"folder\" && a.kind !== \"folder\") return 1;\n      if (key.value === \"name\") return a.name.localeCompare(b.name) * dir;\n      if (key.value === \"modified\") return a.modified.localeCompare(b.modified) * dir;\n      return (a.bytes - b.bytes) * dir;\n    })\n  );\n  const allSelected = computed(\n    () => rows.value.length > 0 && rows.value.every((file) => selected.value.has(file.id))\n  );\n\n  const ariaSort = (value: Key) =>\n    key.value === value ? (asc.value ? \"ascending\" : \"descending\") : \"none\";\n  const icon = (value: Key) =>\n    key.value === value\n      ? asc.value\n        ? \"lucide:arrow-up\"\n        : \"lucide:arrow-down\"\n      : \"lucide:chevrons-up-down\";\n\n  function sortBy(value: Key) {\n    if (key.value === value) asc.value = !asc.value;\n    else {\n      key.value = value;\n      asc.value = value === \"name\";\n    }\n  }\n\n  function size(bytes: number) {\n    if (bytes >= 1e9) return `${(bytes / 1e9).toFixed(1)} GB`;\n    if (bytes >= 1e6) return `${(bytes / 1e6).toFixed(1)} MB`;\n    return `${Math.max(1, Math.round(bytes / 1e3))} KB`;\n  }\n\n  function ago(iso: string) {\n    const diff = Math.round(\n      (new Date(`${props.now}:00Z`).getTime() - new Date(`${iso}:00Z`).getTime()) / 60000\n    );\n    if (diff < 60) return `${Math.max(diff, 1)} minutes ago`;\n    if (diff < 1440) return `${Math.floor(diff / 60)} hours ago`;\n    const days = Math.floor(diff / 1440);\n    return days === 1 ? \"Yesterday\" : `${days} days ago`;\n  }\n\n  function toggle(id: string) {\n    const next = new Set(selected.value);\n    if (next.has(id)) next.delete(id);\n    else next.add(id);\n    selected.value = next;\n  }\n\n  function toggleAll() {\n    selected.value = allSelected.value ? new Set() : new Set(rows.value.map((file) => file.id));\n  }\n\n  function removeSelected() {\n    const count = selected.value.size;\n    items.value = items.value.filter((file) => !selected.value.has(file.id));\n    selected.value = new Set();\n    useSonner.success(`Moved ${count} items to trash`);\n  }\n</script>\n","category":"FileManager","description":"File table. Features: Table with name, owner, last modified and size columns, sortable headers with aria-sort, a star toggle, row checkboxes with a select all, a bulk bar and relative modified dates","path":"Files/FileManager/BlockFileManager2.vue","components":["button","checkbox","container","table"]},{"name":"File Manager 3","fileName":"BlockFileManager3.vue","file":"<template>\n  <!--\n    Folder browser with breadcrumbs and toolbar\n    Features: Breadcrumbs that follow the folder you are in, a back button, open a folder with a click or Enter, a toolbar with a new folder dialog, an upload button, a grid or list toggle and search, and an empty folder state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-wrap items-center justify-between gap-3\">\n      <div class=\"flex items-center gap-2\">\n        <UiButton\n          variant=\"ghost\"\n          size=\"icon\"\n          aria-label=\"Go up one folder\"\n          :disabled=\"!path.length\"\n          @click=\"path.pop()\"\n          ><Icon name=\"lucide:arrow-left\" class=\"size-4\"\n        /></UiButton>\n        <nav aria-label=\"Breadcrumb\">\n          <ol class=\"flex flex-wrap items-center gap-1 text-sm\">\n            <li class=\"flex items-center gap-1\">\n              <button\n                type=\"button\"\n                class=\"hover:bg-accent rounded px-1.5 py-1 font-medium\"\n                :aria-current=\"!path.length ? 'page' : undefined\"\n                @click=\"path = []\"\n              >\n                My files\n              </button>\n            </li>\n            <li v-for=\"(id, index) in path\" :key=\"id\" class=\"flex items-center gap-1\">\n              <Icon name=\"lucide:chevron-right\" class=\"text-muted-foreground size-3.5\" />\n              <button\n                type=\"button\"\n                class=\"hover:bg-accent rounded px-1.5 py-1 font-medium\"\n                :aria-current=\"index === path.length - 1 ? 'page' : undefined\"\n                @click=\"path = path.slice(0, index + 1)\"\n              >\n                {{ nameOf(id) }}\n              </button>\n            </li>\n          </ol>\n        </nav>\n      </div>\n      <div class=\"flex flex-wrap items-center gap-2\">\n        <div class=\"relative\">\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            v-model=\"query\"\n            class=\"w-44 pl-9\"\n            placeholder=\"Search here\"\n            aria-label=\"Search this folder\"\n          />\n        </div>\n        <UiToggleGroup\n          :model-value=\"view\"\n          type=\"single\"\n          variant=\"outline\"\n          aria-label=\"View\"\n          @update:model-value=\"(value) => (view = (value as 'grid' | 'list') || 'grid')\"\n        >\n          <UiToggleGroupItem value=\"grid\" aria-label=\"Grid view\"\n            ><Icon name=\"lucide:layout-grid\" class=\"size-4\"\n          /></UiToggleGroupItem>\n          <UiToggleGroupItem value=\"list\" aria-label=\"List view\"\n            ><Icon name=\"lucide:list\" class=\"size-4\"\n          /></UiToggleGroupItem>\n        </UiToggleGroup>\n        <UiDialog v-model:open=\"dialog\">\n          <UiDialogTrigger as-child>\n            <UiButton variant=\"outline\"\n              ><Icon name=\"lucide:folder-plus\" class=\"size-4\" />New folder</UiButton\n            >\n          </UiDialogTrigger>\n          <UiDialogContent class=\"sm:max-w-sm\">\n            <UiDialogHeader>\n              <UiDialogTitle>New folder</UiDialogTitle>\n              <UiDialogDescription\n                >Create it in\n                {{\n                  path.length ? nameOf(path[path.length - 1]!) : \"My files\"\n                }}.</UiDialogDescription\n              >\n            </UiDialogHeader>\n            <form class=\"grid gap-4\" @submit.prevent=\"createFolder\">\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"folder-name\">Name</UiLabel>\n                <UiInput id=\"folder-name\" v-model=\"folderName\" placeholder=\"Untitled folder\" />\n                <p v-if=\"folderError\" class=\"text-destructive text-sm\">{{ folderError }}</p>\n              </div>\n              <UiDialogFooter>\n                <UiButton type=\"button\" variant=\"outline\" @click=\"dialog = false\">Cancel</UiButton>\n                <UiButton type=\"submit\">Create</UiButton>\n              </UiDialogFooter>\n            </form>\n          </UiDialogContent>\n        </UiDialog>\n        <UiButton @click=\"useSonner.info('Open your file picker here')\"\n          ><Icon name=\"lucide:upload\" class=\"size-4\" />Upload</UiButton\n        >\n      </div>\n    </div>\n\n    <div v-if=\"listed.length\" class=\"mt-6\" aria-live=\"polite\">\n      <ul v-if=\"view === 'grid'\" class=\"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-5\">\n        <li v-for=\"entry in listed\" :key=\"entry.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-accent/50 focus-visible:ring-ring/50 flex w-full flex-col items-center gap-2 rounded-xl border p-4 text-center outline-none focus-visible:ring-[3px]\"\n            :aria-label=\"entry.folder ? `Open folder ${entry.name}` : entry.name\"\n            @click=\"open(entry)\"\n          >\n            <Icon\n              :name=\"entry.folder ? 'lucide:folder' : 'lucide:file'\"\n              class=\"size-10\"\n              :class=\"entry.folder ? 'text-amber-500' : 'text-muted-foreground'\"\n            />\n            <span class=\"w-full truncate text-sm font-medium\">{{ entry.name }}</span>\n            <span class=\"text-muted-foreground text-xs\">{{\n              entry.folder ? `${count(entry.id)} items` : entry.size\n            }}</span>\n          </button>\n        </li>\n      </ul>\n      <ul v-else class=\"divide-y rounded-xl border\">\n        <li v-for=\"entry in listed\" :key=\"entry.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-accent/50 focus-visible:bg-accent/50 flex w-full items-center gap-3 px-4 py-3 text-left outline-none\"\n            :aria-label=\"entry.folder ? `Open folder ${entry.name}` : entry.name\"\n            @click=\"open(entry)\"\n          >\n            <Icon\n              :name=\"entry.folder ? 'lucide:folder' : 'lucide:file'\"\n              class=\"size-5\"\n              :class=\"entry.folder ? 'text-amber-500' : 'text-muted-foreground'\"\n            />\n            <span class=\"flex-1 truncate text-sm font-medium\">{{ entry.name }}</span>\n            <span class=\"text-muted-foreground text-xs\">{{\n              entry.folder ? `${count(entry.id)} items` : entry.size\n            }}</span>\n          </button>\n        </li>\n      </ul>\n    </div>\n    <div\n      v-else\n      class=\"text-muted-foreground mt-6 rounded-xl border border-dashed py-16 text-center text-sm\"\n      aria-live=\"polite\"\n    >\n      <Icon name=\"lucide:folder-open\" class=\"mx-auto mb-2 size-7\" />\n      {{ query ? \"Nothing matches your search.\" : \"This folder is empty.\" }}\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Entry = { id: string; name: string; parent: string | null; folder?: boolean; size?: string };\n\n  const props = withDefaults(\n    defineProps<{\n      entries?: Entry[];\n    }>(),\n    {\n      entries: () => [\n        { id: \"d1\", name: \"Projects\", parent: null, folder: true },\n        { id: \"d2\", name: \"Invoices\", parent: null, folder: true },\n        { id: \"d3\", name: \"Photos\", parent: null, folder: true },\n        { id: \"f1\", name: \"Readme.md\", parent: null, size: \"4 KB\" },\n        { id: \"d4\", name: \"Website\", parent: \"d1\", folder: true },\n        { id: \"d5\", name: \"Mobile app\", parent: \"d1\", folder: true },\n        { id: \"f2\", name: \"Roadmap.pdf\", parent: \"d1\", size: \"820 KB\" },\n        { id: \"f3\", name: \"Wireframes.fig\", parent: \"d4\", size: \"12 MB\" },\n        { id: \"f4\", name: \"Sitemap.png\", parent: \"d4\", size: \"640 KB\" },\n        { id: \"f5\", name: \"Invoice 1041.pdf\", parent: \"d2\", size: \"92 KB\" },\n        { id: \"f6\", name: \"Invoice 1042.pdf\", parent: \"d2\", size: \"88 KB\" },\n        { id: \"f7\", name: \"Berlin.jpg\", parent: \"d3\", size: \"3.1 MB\" },\n      ],\n    }\n  );\n\n  const items = ref<Entry[]>(props.entries.map((entry) => ({ ...entry })));\n  const path = ref<string[]>([]);\n  const view = ref<\"grid\" | \"list\">(\"grid\");\n  const query = ref(\"\");\n  const dialog = ref(false);\n  const folderName = ref(\"\");\n  const folderError = ref(\"\");\n\n  const current = computed(() => path.value[path.value.length - 1] ?? null);\n  const nameOf = (id: string) => items.value.find((entry) => entry.id === id)?.name ?? \"\";\n  const count = (id: string) => items.value.filter((entry) => entry.parent === id).length;\n  const listed = computed(() => {\n    const text = query.value.trim().toLowerCase();\n    return items.value\n      .filter((entry) => entry.parent === current.value)\n      .filter((entry) => !text || entry.name.toLowerCase().includes(text))\n      .sort((a, b) => Number(!!b.folder) - Number(!!a.folder) || a.name.localeCompare(b.name));\n  });\n\n  watch(path, () => (query.value = \"\"), { deep: true });\n\n  function open(entry: Entry) {\n    if (entry.folder) path.value = [...path.value, entry.id];\n    else useSonner.info(`Open ${entry.name} here`);\n  }\n\n  function createFolder() {\n    const name = folderName.value.trim();\n    if (!name) {\n      folderError.value = \"Enter a name.\";\n      return;\n    }\n    if (\n      items.value.some(\n        (entry) => entry.parent === current.value && entry.name.toLowerCase() === name.toLowerCase()\n      )\n    ) {\n      folderError.value = \"A file or folder with this name already exists.\";\n      return;\n    }\n    items.value.push({\n      id: `new-${items.value.length}`,\n      name,\n      parent: current.value,\n      folder: true,\n    });\n    folderName.value = \"\";\n    folderError.value = \"\";\n    dialog.value = false;\n    useSonner.success(`Created ${name}`);\n  }\n</script>\n","category":"FileManager","description":"Folder browser with breadcrumbs and toolbar. Features: Breadcrumbs that follow the folder you are in, a back button, open a folder with a click or Enter, a toolbar with a new folder dialog, an upload button, a grid or list toggle and search, and an empty folder state","path":"Files/FileManager/BlockFileManager3.vue","components":["button","container","dialog","input","label","toggle-group"]},{"name":"File Manager 4","fileName":"BlockFileManager4.vue","file":"<template>\n  <!--\n    File manager with a folder tree\n    Features: A sidebar folder tree built with the Tree component, expand and collapse with the arrow keys, the selected folder drives the file list, item counts per folder and a storage meter at the bottom of the sidebar\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"grid overflow-hidden rounded-xl border md:grid-cols-[16rem_1fr]\">\n      <aside class=\"bg-muted/30 flex flex-col border-b md:border-r md:border-b-0\">\n        <p class=\"px-4 pt-4 pb-2 text-xs font-semibold tracking-wide uppercase\">Folders</p>\n        <UiTree\n          v-slot=\"{ flattenItems }\"\n          v-model=\"selected\"\n          :items=\"tree\"\n          :get-key=\"(item) => item.id\"\n          :default-expanded=\"['root', 'work']\"\n          class=\"flex flex-1 flex-col px-2 pb-2\"\n          aria-label=\"Folders\"\n        >\n          <template v-for=\"item in flattenItems\" :key=\"item._id\">\n            <UiTreeItem\n              v-slot=\"{ isExpanded, isSelected }\"\n              :data-folder=\"item.hasChildren == true || undefined\"\n              v-bind=\"item.bind\"\n              :style=\"{ 'padding-left': `${item.level * 14}px` }\"\n              class=\"outline-hidden select-none not-last:pb-0.5\"\n            >\n              <div\n                :class=\"isSelected ? 'bg-accent font-medium' : ''\"\n                class=\"hover:bg-accent focus-visible:ring-ring/50 flex items-center gap-1.5 rounded-md px-2 py-1.5 text-sm transition-colors [&_svg]:pointer-events-none [&_svg]:shrink-0\"\n              >\n                <Icon\n                  v-if=\"item.hasChildren\"\n                  name=\"lucide:chevron-right\"\n                  class=\"text-muted-foreground size-3.5 transition-transform\"\n                  :class=\"isExpanded ? 'rotate-90' : ''\"\n                />\n                <span v-else class=\"w-3.5\" />\n                <Icon\n                  :name=\"isExpanded && item.hasChildren ? 'lucide:folder-open' : 'lucide:folder'\"\n                  class=\"size-4 text-amber-500\"\n                />\n                <span class=\"flex-1 truncate\">{{ item.value.name }}</span>\n                <span class=\"text-muted-foreground text-xs tabular-nums\">{{\n                  countIn(item.value.id)\n                }}</span>\n              </div>\n            </UiTreeItem>\n          </template>\n        </UiTree>\n        <div class=\"border-t p-4\">\n          <div class=\"flex items-center justify-between text-xs\">\n            <span class=\"text-muted-foreground\">Storage</span>\n            <span class=\"tabular-nums\">{{ used }} of {{ quota }} GB</span>\n          </div>\n          <UiProgress\n            :model-value=\"(used / quota) * 100\"\n            class=\"mt-2 h-1.5\"\n            aria-label=\"Storage used\"\n          />\n        </div>\n      </aside>\n\n      <section class=\"min-w-0 p-5\" :aria-label=\"current.name\">\n        <div class=\"flex items-center justify-between gap-3\">\n          <div>\n            <h1 class=\"text-lg font-semibold\">{{ current.name }}</h1>\n            <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n              {{ files.length }} {{ files.length === 1 ? \"file\" : \"files\" }}\n            </p>\n          </div>\n          <UiButton size=\"sm\" @click=\"useSonner.info('Open your file picker here')\"\n            ><Icon name=\"lucide:upload\" class=\"size-4\" />Upload</UiButton\n          >\n        </div>\n        <ul v-if=\"files.length\" class=\"mt-4 divide-y rounded-lg border\" aria-live=\"polite\">\n          <li v-for=\"file in files\" :key=\"file.id\" class=\"flex items-center gap-3 px-4 py-3\">\n            <Icon name=\"lucide:file\" class=\"text-muted-foreground size-5 shrink-0\" />\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"truncate text-sm font-medium\">{{ file.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ file.modified }}</p>\n            </div>\n            <span class=\"text-muted-foreground text-xs\">{{ file.size }}</span>\n          </li>\n        </ul>\n        <div\n          v-else\n          class=\"text-muted-foreground mt-4 rounded-lg border border-dashed py-14 text-center text-sm\"\n          aria-live=\"polite\"\n        >\n          <Icon name=\"lucide:folder-open\" class=\"mx-auto mb-2 size-6\" />\n          No files in this folder.\n        </div>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Folder = { id: string; name: string; children?: Folder[] };\n  type FileItem = { id: string; name: string; folder: string; size: string; modified: string };\n\n  const props = withDefaults(\n    defineProps<{\n      tree?: Folder[];\n      files?: FileItem[];\n      used?: number;\n      quota?: number;\n    }>(),\n    {\n      used: 7.4,\n      quota: 15,\n      tree: () => [\n        {\n          id: \"root\",\n          name: \"My files\",\n          children: [\n            {\n              id: \"work\",\n              name: \"Work\",\n              children: [\n                { id: \"clients\", name: \"Clients\" },\n                { id: \"reports\", name: \"Reports\" },\n              ],\n            },\n            { id: \"personal\", name: \"Personal\", children: [{ id: \"taxes\", name: \"Taxes\" }] },\n            { id: \"shared\", name: \"Shared with me\" },\n          ],\n        },\n      ],\n      files: () => [\n        { id: \"a1\", name: \"Q3 report.pdf\", folder: \"reports\", size: \"1.2 MB\", modified: \"Oct 14\" },\n        { id: \"a2\", name: \"Q2 report.pdf\", folder: \"reports\", size: \"1.1 MB\", modified: \"Jul 12\" },\n        {\n          id: \"a3\",\n          name: \"Northwind contract.pdf\",\n          folder: \"clients\",\n          size: \"320 KB\",\n          modified: \"Oct 9\",\n        },\n        { id: \"a4\", name: \"Acme brief.docx\", folder: \"clients\", size: \"54 KB\", modified: \"Oct 2\" },\n        {\n          id: \"a5\",\n          name: \"Tax return 2025.pdf\",\n          folder: \"taxes\",\n          size: \"2.4 MB\",\n          modified: \"Apr 11\",\n        },\n        {\n          id: \"a6\",\n          name: \"Passport scan.jpg\",\n          folder: \"personal\",\n          size: \"3.8 MB\",\n          modified: \"Jan 6\",\n        },\n        {\n          id: \"a7\",\n          name: \"Team offsite plan.docx\",\n          folder: \"shared\",\n          size: \"88 KB\",\n          modified: \"Oct 17\",\n        },\n        { id: \"a8\", name: \"Handbook.pdf\", folder: \"work\", size: \"4.6 MB\", modified: \"Sep 1\" },\n      ],\n    }\n  );\n\n  const selected = ref<Folder | undefined>(props.tree[0]?.children?.[0]?.children?.[1]);\n\n  const flat = computed(() => {\n    const out: Folder[] = [];\n    const walk = (list: Folder[]) =>\n      list.forEach((folder) => {\n        out.push(folder);\n        if (folder.children) walk(folder.children);\n      });\n    walk(props.tree);\n    return out;\n  });\n\n  const idsUnder = (folder: Folder): string[] => [\n    folder.id,\n    ...(folder.children ?? []).flatMap((child) => idsUnder(child)),\n  ];\n  const countIn = (id: string) => {\n    const folder = flat.value.find((item) => item.id === id);\n    if (!folder) return 0;\n    const ids = idsUnder(folder);\n    return props.files.filter((file) => ids.includes(file.folder)).length;\n  };\n\n  const current = computed(() => selected.value ?? props.tree[0]!);\n  const files = computed(() => {\n    const ids = idsUnder(current.value);\n    return props.files.filter((file) => ids.includes(file.folder));\n  });\n</script>\n","category":"FileManager","description":"File manager with a folder tree. Features: A sidebar folder tree built with the Tree component, expand and collapse with the arrow keys, the selected folder drives the file list, item counts per folder and a storage meter at the bottom of the sidebar","path":"Files/FileManager/BlockFileManager4.vue","components":["button","container","progress","tree"]},{"name":"File Manager 5","fileName":"BlockFileManager5.vue","file":"<template>\n  <!--\n    Recent files\n    Features: A quick access row of frequent folders, recent files grouped into today, yesterday and earlier, who changed each file and when, star and share actions, a type filter and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Recent</h1>\n\n      <section class=\"mt-6\" aria-label=\"Quick access\">\n        <h2 class=\"text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase\">\n          Quick access\n        </h2>\n        <ul class=\"grid grid-cols-2 gap-3 sm:grid-cols-4\">\n          <li v-for=\"folder in folders\" :key=\"folder.name\">\n            <button\n              type=\"button\"\n              class=\"hover:bg-accent/50 focus-visible:ring-ring/50 flex w-full items-center gap-3 rounded-xl border p-3 text-left outline-none focus-visible:ring-[3px]\"\n              @click=\"useSonner.info(`Open ${folder.name} here`)\"\n            >\n              <Icon name=\"lucide:folder\" class=\"size-6 shrink-0 text-amber-500\" />\n              <span class=\"min-w-0\">\n                <span class=\"block truncate text-sm font-medium\">{{ folder.name }}</span>\n                <span class=\"text-muted-foreground block text-xs\">{{ folder.items }} items</span>\n              </span>\n            </button>\n          </li>\n        </ul>\n      </section>\n\n      <div class=\"mt-8 flex items-center justify-between gap-3\">\n        <h2 class=\"text-muted-foreground text-xs font-semibold tracking-wide uppercase\">\n          Recent files\n        </h2>\n        <UiToggleGroup\n          :model-value=\"type\"\n          type=\"single\"\n          size=\"sm\"\n          variant=\"outline\"\n          aria-label=\"File type\"\n          @update:model-value=\"(value) => (type = (value as string) || 'all')\"\n        >\n          <UiToggleGroupItem value=\"all\">All</UiToggleGroupItem>\n          <UiToggleGroupItem value=\"doc\">Docs</UiToggleGroupItem>\n          <UiToggleGroupItem value=\"image\">Images</UiToggleGroupItem>\n        </UiToggleGroup>\n      </div>\n\n      <div v-if=\"groups.length\" class=\"mt-4 space-y-6\" aria-live=\"polite\">\n        <section v-for=\"group in groups\" :key=\"group.label\" :aria-label=\"group.label\">\n          <h3 class=\"mb-2 text-sm font-medium\">{{ group.label }}</h3>\n          <ul class=\"divide-y rounded-xl border\">\n            <li\n              v-for=\"file in group.items\"\n              :key=\"file.id\"\n              class=\"flex items-center gap-3 px-4 py-3\"\n            >\n              <span class=\"bg-muted grid size-10 shrink-0 place-items-center rounded-lg\"\n                ><Icon\n                  :name=\"file.type === 'image' ? 'lucide:image' : 'lucide:file-text'\"\n                  class=\"size-5\"\n                  :class=\"file.type === 'image' ? 'text-violet-500' : 'text-blue-500'\"\n              /></span>\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"truncate text-sm font-medium\">{{ file.name }}</p>\n                <p class=\"text-muted-foreground truncate text-xs\">\n                  {{ file.action }} by {{ file.by }} · {{ time(file.at) }}\n                </p>\n              </div>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                :aria-pressed=\"file.starred\"\n                :aria-label=\"`${file.starred ? 'Unstar' : 'Star'} ${file.name}`\"\n                @click=\"file.starred = !file.starred\"\n                ><Icon\n                  name=\"lucide:star\"\n                  class=\"size-4\"\n                  :class=\"file.starred ? 'text-amber-400 [&_path]:fill-amber-400' : ''\"\n              /></UiButton>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                :aria-label=\"`Share ${file.name}`\"\n                @click=\"useSonner.info(`Share ${file.name}`)\"\n                ><Icon name=\"lucide:share-2\" class=\"size-4\"\n              /></UiButton>\n            </li>\n          </ul>\n        </section>\n      </div>\n      <div\n        v-else\n        class=\"text-muted-foreground mt-4 rounded-xl border border-dashed py-12 text-center text-sm\"\n        aria-live=\"polite\"\n      >\n        No recent files of this type.\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type FileItem = {\n    id: string;\n    name: string;\n    type: \"doc\" | \"image\";\n    action: string;\n    by: string;\n    at: string;\n    starred?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      now?: string;\n      folders?: { name: string; items: number }[];\n      files?: FileItem[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      folders: () => [\n        { name: \"Projects\", items: 42 },\n        { name: \"Invoices\", items: 18 },\n        { name: \"Brand\", items: 64 },\n        { name: \"Photos\", items: 230 },\n      ],\n      files: () => [\n        {\n          id: \"r1\",\n          name: \"Meeting notes.docx\",\n          type: \"doc\",\n          action: \"Edited\",\n          by: \"you\",\n          at: \"2026-10-18T09:50\",\n        },\n        {\n          id: \"r2\",\n          name: \"Launch plan.docx\",\n          type: \"doc\",\n          action: \"Edited\",\n          by: \"Maya Patel\",\n          at: \"2026-10-18T08:15\",\n          starred: true,\n        },\n        {\n          id: \"r3\",\n          name: \"Hero banner.png\",\n          type: \"image\",\n          action: \"Uploaded\",\n          by: \"Leo Fischer\",\n          at: \"2026-10-17T17:30\",\n        },\n        {\n          id: \"r4\",\n          name: \"Budget 2027.docx\",\n          type: \"doc\",\n          action: \"Opened\",\n          by: \"you\",\n          at: \"2026-10-17T11:00\",\n        },\n        {\n          id: \"r5\",\n          name: \"Team photo.jpg\",\n          type: \"image\",\n          action: \"Uploaded\",\n          by: \"Sofia Alvarez\",\n          at: \"2026-10-14T16:20\",\n        },\n        {\n          id: \"r6\",\n          name: \"Onboarding guide.docx\",\n          type: \"doc\",\n          action: \"Edited\",\n          by: \"Noah Kim\",\n          at: \"2026-10-12T10:05\",\n        },\n      ],\n    }\n  );\n\n  const type = ref(\"all\");\n  const items = ref<FileItem[]>(props.files.map((file) => ({ ...file })));\n\n  const diff = (iso: string) =>\n    Math.round(\n      (new Date(`${props.now.slice(0, 10)}T00:00:00Z`).getTime() -\n        new Date(`${iso.slice(0, 10)}T00:00:00Z`).getTime()) /\n        86_400_000\n    );\n\n  const groups = computed(() => {\n    const buckets: Record<string, FileItem[]> = { Today: [], Yesterday: [], Earlier: [] };\n    for (const file of items.value.filter(\n      (item) => type.value === \"all\" || item.type === type.value\n    )) {\n      const days = diff(file.at);\n      buckets[days === 0 ? \"Today\" : days === 1 ? \"Yesterday\" : \"Earlier\"]!.push(file);\n    }\n    return Object.entries(buckets)\n      .filter(([, list]) => list.length)\n      .map(([label, list]) => ({ label, items: list }));\n  });\n\n  const time = (iso: string) =>\n    new Date(`${iso}:00Z`).toLocaleString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      hour: \"numeric\",\n      minute: \"2-digit\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"FileManager","description":"Recent files. Features: A quick access row of frequent folders, recent files grouped into today, yesterday and earlier, who changed each file and when, star and share actions, a type filter and an empty state","path":"Files/FileManager/BlockFileManager5.vue","components":["button","container","toggle-group"]},{"name":"File Manager 6","fileName":"BlockFileManager6.vue","file":"<template>\n  <!--\n    Trash\n    Features: Deleted files with days left before they are removed for good, restore for one file or a selection, delete forever with a confirmation, an empty trash action with a confirmation and a notice about the 30 day rule\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Trash</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n            {{ items.length }} {{ items.length === 1 ? \"item\" : \"items\" }}\n          </p>\n        </div>\n        <UiAlertDialog>\n          <UiAlertDialogTrigger as-child>\n            <UiButton variant=\"outline\" size=\"sm\" :disabled=\"!items.length\"\n              ><Icon name=\"lucide:trash-2\" class=\"size-4\" />Empty trash</UiButton\n            >\n          </UiAlertDialogTrigger>\n          <UiAlertDialogContent>\n            <UiAlertDialogHeader>\n              <UiAlertDialogTitle>Empty the trash?</UiAlertDialogTitle>\n              <UiAlertDialogDescription>\n                {{ items.length }} {{ items.length === 1 ? \"item\" : \"items\" }} will be deleted\n                forever. This cannot be undone.\n              </UiAlertDialogDescription>\n            </UiAlertDialogHeader>\n            <UiAlertDialogFooter>\n              <UiAlertDialogCancel>Cancel</UiAlertDialogCancel>\n              <UiAlertDialogAction\n                class=\"bg-destructive hover:bg-destructive/90 text-white\"\n                @click=\"empty\"\n                >Delete forever</UiAlertDialogAction\n              >\n            </UiAlertDialogFooter>\n          </UiAlertDialogContent>\n        </UiAlertDialog>\n      </div>\n\n      <UiAlert\n        class=\"mt-5\"\n        icon=\"lucide:info\"\n        description=\"Items in the trash are deleted forever after 30 days.\"\n      />\n\n      <div v-if=\"items.length\" class=\"mt-4\">\n        <div class=\"flex min-h-9 items-center gap-3 border-b pb-3\">\n          <UiCheckbox\n            id=\"trash-all\"\n            :model-value=\"allSelected ? true : selected.size ? 'indeterminate' : false\"\n            @update:model-value=\"toggleAll\"\n          />\n          <UiLabel for=\"trash-all\" class=\"text-sm font-normal\">Select all</UiLabel>\n          <span v-if=\"selected.size\" class=\"text-muted-foreground text-sm\" aria-live=\"polite\"\n            >{{ selected.size }} selected</span\n          >\n          <UiButton v-if=\"selected.size\" size=\"sm\" class=\"ml-auto\" @click=\"restoreSelected\"\n            ><Icon name=\"lucide:undo-2\" class=\"size-4\" />Restore</UiButton\n          >\n        </div>\n        <ul class=\"divide-y\" aria-live=\"polite\">\n          <li v-for=\"file in items\" :key=\"file.id\" class=\"flex items-center gap-3 py-3\">\n            <UiCheckbox\n              :model-value=\"selected.has(file.id)\"\n              :aria-label=\"`Select ${file.name}`\"\n              @update:model-value=\"toggle(file.id)\"\n            />\n            <Icon :name=\"file.icon\" class=\"text-muted-foreground size-5 shrink-0\" />\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"truncate text-sm font-medium\">{{ file.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">\n                {{ file.size }} · deleted {{ file.deleted }}\n              </p>\n            </div>\n            <UiBadge variant=\"soft\" shape=\"pill\" :color=\"file.daysLeft <= 3 ? 'red' : 'blue'\"\n              >{{ file.daysLeft }} days left</UiBadge\n            >\n            <UiButton\n              variant=\"ghost\"\n              size=\"sm\"\n              :aria-label=\"`Restore ${file.name}`\"\n              @click=\"restore(file.id)\"\n              >Restore</UiButton\n            >\n            <UiAlertDialog>\n              <UiAlertDialogTrigger as-child>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  class=\"text-destructive\"\n                  :aria-label=\"`Delete ${file.name} forever`\"\n                  ><Icon name=\"lucide:x\" class=\"size-4\"\n                /></UiButton>\n              </UiAlertDialogTrigger>\n              <UiAlertDialogContent>\n                <UiAlertDialogHeader>\n                  <UiAlertDialogTitle>Delete {{ file.name }} forever?</UiAlertDialogTitle>\n                  <UiAlertDialogDescription\n                    >This file cannot be recovered after you delete it.</UiAlertDialogDescription\n                  >\n                </UiAlertDialogHeader>\n                <UiAlertDialogFooter>\n                  <UiAlertDialogCancel>Cancel</UiAlertDialogCancel>\n                  <UiAlertDialogAction\n                    class=\"bg-destructive hover:bg-destructive/90 text-white\"\n                    @click=\"purge(file.id)\"\n                    >Delete forever</UiAlertDialogAction\n                  >\n                </UiAlertDialogFooter>\n              </UiAlertDialogContent>\n            </UiAlertDialog>\n          </li>\n        </ul>\n      </div>\n      <div v-else class=\"mt-4 rounded-xl border border-dashed py-16 text-center\" role=\"status\">\n        <Icon name=\"lucide:trash\" class=\"text-muted-foreground mx-auto size-8\" />\n        <p class=\"mt-3 text-sm font-medium\">The trash is empty</p>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Deleted files will show up here for 30 days.\n        </p>\n        <UiButton variant=\"outline\" size=\"sm\" class=\"mt-4\" @click=\"reset\"\n          >Put the samples back</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type TrashItem = {\n    id: string;\n    name: string;\n    icon: string;\n    size: string;\n    deleted: string;\n    daysLeft: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      files?: TrashItem[];\n    }>(),\n    {\n      files: () => [\n        {\n          id: \"x1\",\n          name: \"Old logo.svg\",\n          icon: \"lucide:image\",\n          size: \"24 KB\",\n          deleted: \"yesterday\",\n          daysLeft: 29,\n        },\n        {\n          id: \"x2\",\n          name: \"Draft proposal.docx\",\n          icon: \"lucide:file-text\",\n          size: \"120 KB\",\n          deleted: \"5 days ago\",\n          daysLeft: 25,\n        },\n        {\n          id: \"x3\",\n          name: \"Team photo 2025.jpg\",\n          icon: \"lucide:image\",\n          size: \"4.2 MB\",\n          deleted: \"Sep 24\",\n          daysLeft: 6,\n        },\n        {\n          id: \"x4\",\n          name: \"Budget (copy).xlsx\",\n          icon: \"lucide:file-spreadsheet\",\n          size: \"310 KB\",\n          deleted: \"Sep 20\",\n          daysLeft: 2,\n        },\n        {\n          id: \"x5\",\n          name: \"Archive 2024.zip\",\n          icon: \"lucide:file-archive\",\n          size: \"380 MB\",\n          deleted: \"Sep 19\",\n          daysLeft: 1,\n        },\n      ],\n    }\n  );\n\n  const items = ref<TrashItem[]>(props.files.map((file) => ({ ...file })));\n  const selected = ref(new Set<string>());\n\n  const allSelected = computed(\n    () => items.value.length > 0 && items.value.every((file) => selected.value.has(file.id))\n  );\n\n  function toggle(id: string) {\n    const next = new Set(selected.value);\n    if (next.has(id)) next.delete(id);\n    else next.add(id);\n    selected.value = next;\n  }\n\n  function toggleAll() {\n    selected.value = allSelected.value ? new Set() : new Set(items.value.map((file) => file.id));\n  }\n\n  function restore(id: string) {\n    const file = items.value.find((item) => item.id === id);\n    items.value = items.value.filter((item) => item.id !== id);\n    selected.value.delete(id);\n    if (file) useSonner.success(`Restored ${file.name}`);\n  }\n\n  function restoreSelected() {\n    const count = selected.value.size;\n    items.value = items.value.filter((file) => !selected.value.has(file.id));\n    selected.value = new Set();\n    useSonner.success(`Restored ${count} ${count === 1 ? \"item\" : \"items\"}`);\n  }\n\n  function purge(id: string) {\n    items.value = items.value.filter((file) => file.id !== id);\n    selected.value.delete(id);\n    useSonner.success(\"Deleted forever\");\n  }\n\n  function empty() {\n    items.value = [];\n    selected.value = new Set();\n    useSonner.success(\"Trash emptied\");\n  }\n\n  function reset() {\n    items.value = props.files.map((file) => ({ ...file }));\n  }\n</script>\n","category":"FileManager","description":"Trash. Features: Deleted files with days left before they are removed for good, restore for one file or a selection, delete forever with a confirmation, an empty trash action with a confirmation and a notice about the 30 day rule","path":"Files/FileManager/BlockFileManager6.vue","components":["alert","alert-dialog","badge","button","checkbox","container","label"]},{"name":"Footer 1","fileName":"BlockFooter1.vue","file":"<template>\n  <!--\n    Classic footer with brand, link columns and a status pill\n    Features: Logo and description, four link columns, system status pill with a pulsing dot, monochrome social icons, legal links and copyright\n  -->\n  <UiContainer as=\"footer\" class=\"py-14 lg:py-20\">\n    <div class=\"grid gap-10 lg:grid-cols-[1.4fr_2fr] lg:gap-16\">\n      <div class=\"max-w-sm\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-7\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n        <p class=\"text-muted-foreground mt-4 text-sm leading-relaxed\">{{ props.description }}</p>\n        <NuxtLink\n          to=\"#\"\n          class=\"hover:bg-muted mt-5 inline-flex items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium transition-colors\"\n        >\n          <span class=\"relative flex size-2\">\n            <span\n              class=\"absolute inline-flex size-full animate-ping rounded-full bg-green-500 opacity-75\"\n            />\n            <span class=\"relative inline-flex size-2 rounded-full bg-green-500\" />\n          </span>\n          All systems operational\n        </NuxtLink>\n      </div>\n\n      <nav class=\"grid grid-cols-2 gap-8 sm:grid-cols-4\" aria-label=\"Footer\">\n        <div v-for=\"column in columns\" :key=\"column.title\">\n          <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n          <ul class=\"mt-4 space-y-3\">\n            <li v-for=\"link in column.links\" :key=\"link\">\n              <NuxtLink\n                to=\"#\"\n                class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n              >\n                {{ link }}\n              </NuxtLink>\n            </li>\n          </ul>\n        </div>\n      </nav>\n    </div>\n\n    <div\n      class=\"mt-12 flex flex-col gap-6 border-t pt-8 md:flex-row md:items-center md:justify-between\"\n    >\n      <p class=\"text-muted-foreground text-sm\">\n        &copy; {{ new Date().getFullYear() }} {{ props.name }}. All rights reserved.\n      </p>\n      <ul class=\"flex items-center gap-1\">\n        <li v-for=\"social in socials\" :key=\"social.name\">\n          <NuxtLink\n            to=\"#\"\n            :aria-label=\"social.name\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground flex size-9 items-center justify-center rounded-full transition-colors\"\n          >\n            <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n          </NuxtLink>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      name?: string;\n      description?: string;\n    }>(),\n    {\n      name: \"UI Thing\",\n      description:\n        \"Copy and paste components built with Nuxt, Tailwind and Reka UI. Own every line.\",\n    }\n  );\n\n  const columns = [\n    { title: \"Product\", links: [\"Features\", \"Integrations\", \"Pricing\", \"Changelog\", \"Roadmap\"] },\n    { title: \"Resources\", links: [\"Documentation\", \"Guides\", \"Blog\", \"Community\", \"Support\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Press\", \"Partners\", \"Contact\"] },\n    { title: \"Legal\", links: [\"Privacy\", \"Terms\", \"Security\", \"Cookies\"] },\n  ];\n\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n    { name: \"YouTube\", icon: \"mdi:youtube\" },\n  ];\n</script>\n","category":"Footer","description":"Classic footer with brand, link columns and a status pill. Features: Logo and description, four link columns, system status pill with a pulsing dot, monochrome social icons, legal links and copyright","path":"Footer/BlockFooter1.vue","components":["container"]},{"name":"Footer 10","fileName":"BlockFooter10.vue","file":"<template>\n  <!--\n    Footer whose link columns become an accordion on mobile\n    Features: Columns are always open on desktop, collapse into a tappable accordion on small screens with a rotating chevron, brand and social row, copyright\n  -->\n  <UiContainer as=\"footer\" class=\"py-12 lg:py-20\">\n    <div class=\"grid gap-10 lg:grid-cols-[1.2fr_2.4fr]\">\n      <div class=\"max-w-xs space-y-4\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-7\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n        <p class=\"text-muted-foreground text-sm\">\n          Resize to a phone width to see the columns fold away.\n        </p>\n      </div>\n\n      <nav class=\"divide-y md:grid md:grid-cols-4 md:gap-8 md:divide-y-0\" aria-label=\"Footer\">\n        <UiCollapsible v-for=\"column in columns\" :key=\"column.title\" v-slot=\"{ open }\">\n          <UiCollapsibleTrigger\n            class=\"flex w-full items-center justify-between py-4 text-sm font-semibold md:pointer-events-none md:pt-0\"\n          >\n            {{ column.title }}\n            <Icon\n              name=\"lucide:chevron-down\"\n              class=\"size-4 transition-transform duration-200 md:hidden\"\n              :class=\"open && 'rotate-180'\"\n            />\n          </UiCollapsibleTrigger>\n          <UiCollapsibleContent\n            force-mount\n            class=\"data-[state=closed]:hidden md:data-[state=closed]:block\"\n          >\n            <ul class=\"space-y-3 pb-4 md:pb-0\">\n              <li v-for=\"link in column.links\" :key=\"link\">\n                <NuxtLink\n                  to=\"#\"\n                  class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n                >\n                  {{ link }}\n                </NuxtLink>\n              </li>\n            </ul>\n          </UiCollapsibleContent>\n        </UiCollapsible>\n      </nav>\n    </div>\n\n    <div\n      class=\"mt-10 flex flex-col gap-4 border-t pt-8 sm:flex-row sm:items-center sm:justify-between\"\n    >\n      <p class=\"text-muted-foreground text-sm\">\n        &copy; {{ new Date().getFullYear() }} {{ props.name }}. All rights reserved.\n      </p>\n      <ul class=\"flex gap-1\">\n        <li v-for=\"social in socials\" :key=\"social.name\">\n          <NuxtLink\n            to=\"#\"\n            :aria-label=\"social.name\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground flex size-9 items-center justify-center rounded-full transition-colors\"\n          >\n            <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n          </NuxtLink>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const columns = [\n    { title: \"Product\", links: [\"Features\", \"Integrations\", \"Pricing\", \"Changelog\"] },\n    { title: \"Resources\", links: [\"Docs\", \"Guides\", \"Blog\", \"Support\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Press\", \"Contact\"] },\n    { title: \"Legal\", links: [\"Privacy\", \"Terms\", \"Security\", \"Cookies\"] },\n  ];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n  ];\n</script>\n","category":"Footer","description":"Footer whose link columns become an accordion on mobile. Features: Columns are always open on desktop, collapse into a tappable accordion on small screens with a rotating chevron, brand and social row, copyright","path":"Footer/BlockFooter10.vue","components":["collapsible","container"]},{"name":"Footer 11","fileName":"BlockFooter11.vue","file":"<template>\n  <!--\n    SaaS footer with a status pill, language picker and theme switcher\n    Features: Link columns, bottom bar with system status, version, a language select and a three way theme toggle wired to color mode\n  -->\n  <UiContainer as=\"footer\" class=\"py-12 lg:py-16\">\n    <div class=\"grid gap-10 lg:grid-cols-[1.2fr_2.4fr]\">\n      <div class=\"max-w-xs space-y-4\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-7\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n        <p class=\"text-muted-foreground text-sm\">\n          Everything your team needs to ship, in one workspace.\n        </p>\n      </div>\n      <nav class=\"grid grid-cols-2 gap-8 sm:grid-cols-4\" aria-label=\"Footer\">\n        <div v-for=\"column in columns\" :key=\"column.title\">\n          <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n          <ul class=\"mt-4 space-y-3\">\n            <li v-for=\"link in column.links\" :key=\"link\">\n              <NuxtLink\n                to=\"#\"\n                class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n              >\n                {{ link }}\n              </NuxtLink>\n            </li>\n          </ul>\n        </div>\n      </nav>\n    </div>\n\n    <div\n      class=\"mt-12 flex flex-col gap-5 border-t pt-6 lg:flex-row lg:items-center lg:justify-between\"\n    >\n      <div class=\"text-muted-foreground flex flex-wrap items-center gap-x-5 gap-y-2 text-sm\">\n        <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}</p>\n        <NuxtLink to=\"#\" class=\"hover:text-foreground flex items-center gap-2 transition-colors\">\n          <span class=\"size-2 rounded-full bg-green-500\" />\n          All systems normal\n        </NuxtLink>\n        <NuxtLink to=\"#\" class=\"hover:text-foreground transition-colors\">v2.4.0</NuxtLink>\n      </div>\n\n      <div class=\"flex flex-wrap items-center gap-3\">\n        <div class=\"relative\">\n          <Icon\n            name=\"lucide:globe\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2\"\n          />\n          <UiNativeSelect v-model=\"language\" class=\"h-9 w-40 pl-8\" aria-label=\"Language\">\n            <option v-for=\"lang in languages\" :key=\"lang\">{{ lang }}</option>\n          </UiNativeSelect>\n        </div>\n        <UiToggleGroup\n          :model-value=\"colorMode.preference\"\n          type=\"single\"\n          variant=\"outline\"\n          aria-label=\"Theme\"\n          @update:model-value=\"(value) => value && (colorMode.preference = value as string)\"\n        >\n          <UiToggleGroupItem\n            v-for=\"mode in modes\"\n            :key=\"mode.value\"\n            :value=\"mode.value\"\n            :aria-label=\"mode.label\"\n          >\n            <Icon :name=\"mode.icon\" class=\"size-4\" />\n          </UiToggleGroupItem>\n        </UiToggleGroup>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const colorMode = useColorMode();\n  const language = ref(\"English (US)\");\n  const languages = [\"English (US)\", \"English (UK)\", \"Deutsch\", \"Français\", \"Español\", \"日本語\"];\n  const modes = [\n    { value: \"light\", label: \"Light\", icon: \"lucide:sun\" },\n    { value: \"dark\", label: \"Dark\", icon: \"lucide:moon\" },\n    { value: \"system\", label: \"System\", icon: \"lucide:monitor\" },\n  ];\n\n  const columns = [\n    { title: \"Product\", links: [\"Features\", \"Pricing\", \"Changelog\", \"Roadmap\"] },\n    { title: \"Developers\", links: [\"Docs\", \"API\", \"Status\", \"SDKs\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Blog\", \"Contact\"] },\n    { title: \"Legal\", links: [\"Privacy\", \"Terms\", \"Security\", \"DPA\"] },\n  ];\n</script>\n","category":"Footer","description":"SaaS footer with a status pill, language picker and theme switcher. Features: Link columns, bottom bar with system status, version, a language select and a three way theme toggle wired to color mode","path":"Footer/BlockFooter11.vue","components":["container","native-select","toggle-group"]},{"name":"Footer 12","fileName":"BlockFooter12.vue","file":"<template>\n  <!--\n    Footer with contact cards above the link columns\n    Features: Three contact cards for email, phone and office with icons and hover states, four link columns, legal row with social icons\n  -->\n  <UiContainer as=\"footer\" class=\"py-14 lg:py-20\">\n    <div class=\"grid gap-4 md:grid-cols-3\">\n      <NuxtLink\n        v-for=\"item in contacts\"\n        :key=\"item.title\"\n        :to=\"item.href\"\n        class=\"group bg-card hover:border-ring/60 flex items-start gap-4 rounded-2xl border p-5 transition-all hover:-translate-y-0.5 hover:shadow-md\"\n      >\n        <UiFancyIcon :icon=\"item.icon\" theme=\"light\" :color=\"item.color\" />\n        <div class=\"min-w-0\">\n          <p class=\"font-semibold\">{{ item.title }}</p>\n          <p class=\"text-muted-foreground text-sm\">{{ item.detail }}</p>\n          <p class=\"mt-2 flex items-center gap-1 text-sm font-medium\">\n            {{ item.value }}\n            <Icon\n              name=\"lucide:arrow-up-right\"\n              class=\"size-3.5 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5\"\n            />\n          </p>\n        </div>\n      </NuxtLink>\n    </div>\n\n    <div class=\"mt-14 grid gap-10 lg:grid-cols-[1.2fr_2.4fr]\">\n      <div class=\"max-w-xs space-y-4\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-7\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n        <p class=\"text-muted-foreground text-sm\">Support is online weekdays, 9am to 6pm Pacific.</p>\n      </div>\n      <nav class=\"grid grid-cols-2 gap-8 sm:grid-cols-4\" aria-label=\"Footer\">\n        <div v-for=\"column in columns\" :key=\"column.title\">\n          <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n          <ul class=\"mt-4 space-y-3\">\n            <li v-for=\"link in column.links\" :key=\"link\">\n              <NuxtLink\n                to=\"#\"\n                class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n              >\n                {{ link }}\n              </NuxtLink>\n            </li>\n          </ul>\n        </div>\n      </nav>\n    </div>\n\n    <div\n      class=\"text-muted-foreground mt-12 flex flex-col gap-4 border-t pt-8 text-sm sm:flex-row sm:items-center sm:justify-between\"\n    >\n      <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}. All rights reserved.</p>\n      <ul class=\"flex items-center gap-1\">\n        <li v-for=\"social in socials\" :key=\"social.name\">\n          <NuxtLink\n            to=\"#\"\n            :aria-label=\"social.name\"\n            class=\"hover:bg-muted hover:text-foreground flex size-9 items-center justify-center rounded-full transition-colors\"\n          >\n            <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n          </NuxtLink>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const contacts: {\n    title: string;\n    detail: string;\n    value: string;\n    href: string;\n    icon: string;\n    color: Color;\n  }[] = [\n    {\n      title: \"Chat to support\",\n      detail: \"We reply within a few hours.\",\n      value: \"support@uithing.com\",\n      href: \"mailto:support@uithing.com\",\n      icon: \"lucide:mail\",\n      color: \"info\",\n    },\n    {\n      title: \"Call sales\",\n      detail: \"Mon to Fri, 9am to 6pm.\",\n      value: \"+1 (555) 010-2030\",\n      href: \"tel:+15550102030\",\n      icon: \"lucide:phone\",\n      color: \"success\",\n    },\n    {\n      title: \"Visit the office\",\n      detail: \"100 Market Street, Suite 400.\",\n      value: \"Get directions\",\n      href: \"#\",\n      icon: \"lucide:map-pin\",\n      color: \"warning\",\n    },\n  ];\n\n  const columns = [\n    { title: \"Product\", links: [\"Features\", \"Pricing\", \"Changelog\", \"Roadmap\"] },\n    { title: \"Resources\", links: [\"Docs\", \"Guides\", \"Blog\", \"Status\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Press\", \"Partners\"] },\n    { title: \"Legal\", links: [\"Privacy\", \"Terms\", \"Security\", \"Cookies\"] },\n  ];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n  ];\n</script>\n","category":"Footer","description":"Footer with contact cards above the link columns. Features: Three contact cards for email, phone and office with icons and hover states, four link columns, legal row with social icons","path":"Footer/BlockFooter12.vue","components":["container","fancy-icon"]},{"name":"Footer 13","fileName":"BlockFooter13.vue","file":"<template>\n  <!--\n    Two column footer with follow buttons\n    Features: Brand and pitch on the left, labeled follow buttons in pills on the right, inline navigation and a legal row with a back to top link\n  -->\n  <UiContainer as=\"footer\" class=\"py-12 lg:py-16\">\n    <div class=\"grid gap-10 md:grid-cols-2\">\n      <div class=\"max-w-md space-y-4\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-7\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n        <p class=\"text-muted-foreground text-sm leading-relaxed\">{{ props.description }}</p>\n        <nav class=\"flex flex-wrap gap-x-5 gap-y-2 pt-1\" aria-label=\"Footer\">\n          <NuxtLink\n            v-for=\"link in links\"\n            :key=\"link\"\n            to=\"#\"\n            class=\"text-sm font-medium transition-colors hover:underline hover:underline-offset-4\"\n          >\n            {{ link }}\n          </NuxtLink>\n        </nav>\n      </div>\n\n      <div class=\"md:justify-self-end\">\n        <p class=\"text-sm font-semibold\">Follow us</p>\n        <ul class=\"mt-4 flex flex-wrap gap-2\">\n          <li v-for=\"social in socials\" :key=\"social.name\">\n            <NuxtLink\n              to=\"#\"\n              class=\"hover:bg-muted inline-flex items-center gap-2 rounded-full border px-3.5 py-2 text-sm font-medium transition-colors\"\n            >\n              <Icon :name=\"social.icon\" class=\"size-4\" />\n              {{ social.name }}\n            </NuxtLink>\n          </li>\n        </ul>\n      </div>\n    </div>\n\n    <div\n      class=\"text-muted-foreground mt-12 flex flex-col gap-3 border-t pt-8 text-sm md:flex-row md:items-center md:justify-between\"\n    >\n      <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}. All rights reserved.</p>\n      <ul class=\"flex flex-wrap items-center gap-x-5 gap-y-2\">\n        <li v-for=\"item in legal\" :key=\"item\">\n          <NuxtLink to=\"#\" class=\"hover:text-foreground transition-colors\">{{ item }}</NuxtLink>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string; description?: string }>(), {\n    name: \"UI Thing\",\n    description: \"Building exceptional digital products that help businesses grow and succeed.\",\n  });\n\n  const links = [\"About\", \"Features\", \"Pricing\", \"Blog\", \"Contact\", \"Careers\"];\n  const legal = [\"Privacy policy\", \"Terms of service\", \"Cookies\"];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n    { name: \"YouTube\", icon: \"mdi:youtube\" },\n  ];\n</script>\n","category":"Footer","description":"Two column footer with follow buttons. Features: Brand and pitch on the left, labeled follow buttons in pills on the right, inline navigation and a legal row with a back to top link","path":"Footer/BlockFooter13.vue","components":["container"]},{"name":"Footer 14","fileName":"BlockFooter14.vue","file":"<template>\n  <!--\n    Floating footer card\n    Features: Rounded muted card inset from the page edges, brand and link columns inside, newsletter pill input, legal row, works on any background\n  -->\n  <footer class=\"px-4 pb-4 sm:px-6 sm:pb-6\">\n    <div class=\"bg-muted/50 mx-auto max-w-7xl rounded-3xl border p-6 sm:p-10 lg:p-12\">\n      <div class=\"grid gap-10 lg:grid-cols-[1.3fr_2fr]\">\n        <div class=\"max-w-sm space-y-5\">\n          <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n            <svg\n              class=\"fill-primary h-7\"\n              viewBox=\"0 0 53 44\"\n              fill=\"none\"\n              xmlns=\"http://www.w3.org/2000/svg\"\n            >\n              <path\n                d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n              />\n            </svg>\n            {{ props.name }}\n          </NuxtLink>\n          <p class=\"text-muted-foreground text-sm\">\n            Product updates, tips and the occasional good link.\n          </p>\n          <form\n            v-if=\"!done\"\n            class=\"bg-background flex items-center rounded-full border p-1 pl-4\"\n            novalidate\n            @submit.prevent=\"submit\"\n          >\n            <input\n              v-model=\"email\"\n              type=\"email\"\n              placeholder=\"Your email\"\n              aria-label=\"Email address\"\n              class=\"placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-sm outline-none\"\n            />\n            <UiButton type=\"submit\" size=\"sm\" class=\"rounded-full\">Join</UiButton>\n          </form>\n          <p\n            v-else\n            class=\"flex items-center gap-2 text-sm font-medium text-green-600 dark:text-green-400\"\n          >\n            <Icon name=\"lucide:circle-check\" class=\"size-5\" />\n            Welcome aboard.\n          </p>\n          <p v-if=\"error\" class=\"text-destructive text-sm\">{{ error }}</p>\n        </div>\n\n        <nav class=\"grid grid-cols-2 gap-8 sm:grid-cols-3\" aria-label=\"Footer\">\n          <div v-for=\"column in columns\" :key=\"column.title\">\n            <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n            <ul class=\"mt-4 space-y-3\">\n              <li v-for=\"link in column.links\" :key=\"link\">\n                <NuxtLink\n                  to=\"#\"\n                  class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n                >\n                  {{ link }}\n                </NuxtLink>\n              </li>\n            </ul>\n          </div>\n        </nav>\n      </div>\n\n      <div\n        class=\"text-muted-foreground mt-10 flex flex-col gap-3 border-t pt-6 text-sm sm:flex-row sm:items-center sm:justify-between\"\n      >\n        <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}. All rights reserved.</p>\n        <ul class=\"flex gap-5\">\n          <li v-for=\"item in legal\" :key=\"item\">\n            <NuxtLink to=\"#\" class=\"hover:text-foreground transition-colors\">{{ item }}</NuxtLink>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </footer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const columns = [\n    { title: \"Product\", links: [\"Features\", \"Pricing\", \"Changelog\", \"Roadmap\"] },\n    { title: \"Resources\", links: [\"Docs\", \"Guides\", \"Blog\", \"Support\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Press\", \"Contact\"] },\n  ];\n  const legal = [\"Privacy\", \"Terms\", \"Cookies\"];\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const done = ref(false);\n\n  function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    done.value = true;\n  }\n</script>\n","category":"Footer","description":"Floating footer card. Features: Rounded muted card inset from the page edges, brand and link columns inside, newsletter pill input, legal row, works on any background","path":"Footer/BlockFooter14.vue","components":["button"]},{"name":"Footer 15","fileName":"BlockFooter15.vue","file":"<template>\n  <!--\n    Community footer with live looking stats and join buttons\n    Features: Soft glow background, community stat tiles with icons, GitHub and Discord join buttons, link columns, copyright\n  -->\n  <footer class=\"from-background to-muted/60 relative overflow-hidden border-t bg-linear-to-b\">\n    <div\n      class=\"bg-primary/10 pointer-events-none absolute -top-24 left-1/2 h-48 w-2/3 -translate-x-1/2 rounded-full blur-3xl\"\n    />\n    <UiContainer class=\"relative py-14 lg:py-20\">\n      <div class=\"mx-auto max-w-2xl text-center\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance\">Built in the open, with you</h2>\n        <p class=\"text-muted-foreground mt-3 text-balance\">\n          Join the community, share what you're building and help shape what comes next.\n        </p>\n        <div class=\"mt-6 flex flex-wrap justify-center gap-3\">\n          <UiButton size=\"lg\">\n            <Icon name=\"mdi:github\" class=\"size-5\" />\n            Star on GitHub\n          </UiButton>\n          <UiButton size=\"lg\" variant=\"outline\">\n            <Icon name=\"mdi:chat-processing-outline\" class=\"size-5\" />\n            Join the Discord\n          </UiButton>\n        </div>\n      </div>\n\n      <dl class=\"mx-auto mt-12 grid max-w-3xl grid-cols-2 gap-4 sm:grid-cols-4\">\n        <div\n          v-for=\"stat in stats\"\n          :key=\"stat.label\"\n          class=\"bg-card rounded-2xl border p-4 text-center\"\n        >\n          <Icon :name=\"stat.icon\" class=\"text-muted-foreground mx-auto size-5\" />\n          <dd class=\"mt-2 text-2xl font-bold tracking-tight tabular-nums\">{{ stat.value }}</dd>\n          <dt class=\"text-muted-foreground text-xs\">{{ stat.label }}</dt>\n        </div>\n      </dl>\n\n      <nav\n        class=\"mx-auto mt-14 grid max-w-3xl grid-cols-2 gap-8 text-left sm:grid-cols-4\"\n        aria-label=\"Footer\"\n      >\n        <div v-for=\"column in columns\" :key=\"column.title\">\n          <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n          <ul class=\"mt-4 space-y-3\">\n            <li v-for=\"link in column.links\" :key=\"link\">\n              <NuxtLink\n                to=\"#\"\n                class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n              >\n                {{ link }}\n              </NuxtLink>\n            </li>\n          </ul>\n        </div>\n      </nav>\n\n      <p class=\"text-muted-foreground mt-14 border-t pt-6 text-center text-sm\">\n        &copy; {{ new Date().getFullYear() }} {{ props.name }}. Open source under the MIT license.\n      </p>\n    </UiContainer>\n  </footer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const stats = [\n    { label: \"GitHub stars\", value: \"12.4k\", icon: \"lucide:star\" },\n    { label: \"Contributors\", value: \"186\", icon: \"lucide:git-pull-request\" },\n    { label: \"Discord members\", value: \"8,200\", icon: \"lucide:messages-square\" },\n    { label: \"Weekly installs\", value: \"41k\", icon: \"lucide:download\" },\n  ];\n  const columns = [\n    { title: \"Learn\", links: [\"Docs\", \"Guides\", \"Examples\", \"Blog\"] },\n    { title: \"Build\", links: [\"Components\", \"Blocks\", \"Themes\", \"CLI\"] },\n    { title: \"Community\", links: [\"GitHub\", \"Discord\", \"Discussions\", \"Sponsors\"] },\n    { title: \"About\", links: [\"Team\", \"Roadmap\", \"Changelog\", \"Contact\"] },\n  ];\n</script>\n","category":"Footer","description":"Community footer with live looking stats and join buttons. Features: Soft glow background, community stat tiles with icons, GitHub and Discord join buttons, link columns, copyright","path":"Footer/BlockFooter15.vue","components":["button","container"]},{"name":"Footer 16","fileName":"BlockFooter16.vue","file":"<template>\n  <!--\n    Sitemap footer with dense link groups\n    Features: Six linked group headings with sub links, region and language pickers, legal links and a back to top button, built for large sites\n  -->\n  <UiContainer as=\"footer\" class=\"py-12 lg:py-16\">\n    <div class=\"flex flex-col gap-10 lg:flex-row lg:items-start lg:justify-between\">\n      <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n        <svg\n          class=\"fill-primary h-7\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        {{ props.name }}\n      </NuxtLink>\n      <div class=\"flex flex-wrap items-center gap-3\">\n        <UiNativeSelect v-model=\"region\" class=\"h-9 w-44\" aria-label=\"Region\">\n          <option v-for=\"item in regions\" :key=\"item\">{{ item }}</option>\n        </UiNativeSelect>\n        <UiButton variant=\"outline\" size=\"sm\" class=\"gap-1.5\" @click=\"toTop\">\n          <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n          Back to top\n        </UiButton>\n      </div>\n    </div>\n\n    <nav\n      class=\"mt-10 grid grid-cols-2 gap-x-6 gap-y-10 border-t pt-10 sm:grid-cols-3 lg:grid-cols-6\"\n      aria-label=\"Sitemap\"\n    >\n      <div v-for=\"group in groups\" :key=\"group.title\">\n        <NuxtLink to=\"#\" class=\"text-sm font-semibold hover:underline hover:underline-offset-4\">\n          {{ group.title }}\n        </NuxtLink>\n        <ul class=\"mt-3 space-y-2.5\">\n          <li v-for=\"link in group.links\" :key=\"link\">\n            <NuxtLink\n              to=\"#\"\n              class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n            >\n              {{ link }}\n            </NuxtLink>\n          </li>\n        </ul>\n      </div>\n    </nav>\n\n    <div\n      class=\"text-muted-foreground mt-12 flex flex-col gap-3 border-t pt-6 text-xs md:flex-row md:items-center md:justify-between\"\n    >\n      <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}, Inc. {{ region }}.</p>\n      <ul class=\"flex flex-wrap gap-x-5 gap-y-2\">\n        <li v-for=\"item in legal\" :key=\"item\">\n          <NuxtLink to=\"#\" class=\"hover:text-foreground transition-colors\">{{ item }}</NuxtLink>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const region = ref(\"United States\");\n  const regions = [\"United States\", \"United Kingdom\", \"Germany\", \"France\", \"Japan\", \"Australia\"];\n\n  const groups = [\n    { title: \"Platform\", links: [\"Overview\", \"Security\", \"Integrations\", \"Pricing\"] },\n    { title: \"Solutions\", links: [\"Startups\", \"Enterprise\", \"Agencies\", \"Education\"] },\n    { title: \"Developers\", links: [\"Documentation\", \"API\", \"SDKs\", \"Status\"] },\n    { title: \"Learn\", links: [\"Blog\", \"Guides\", \"Webinars\", \"Case studies\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Press\", \"Contact\"] },\n    { title: \"Support\", links: [\"Help center\", \"Community\", \"Trust center\", \"Accessibility\"] },\n  ];\n  const legal = [\n    \"Privacy\",\n    \"Terms of use\",\n    \"Cookie settings\",\n    \"Modern slavery statement\",\n    \"Sitemap\",\n  ];\n\n  function toTop() {\n    window.scrollTo({ top: 0, behavior: \"smooth\" });\n  }\n</script>\n","category":"Footer","description":"Sitemap footer with dense link groups. Features: Six linked group headings with sub links, region and language pickers, legal links and a back to top button, built for large sites","path":"Footer/BlockFooter16.vue","components":["button","container","native-select"]},{"name":"Footer 2","fileName":"BlockFooter2.vue","file":"<template>\n  <!--\n    Footer with a validated newsletter signup beside the brand\n    Features: Brand on the left, newsletter form with validation and a success state, three link columns, social icons and copyright bar\n  -->\n  <UiContainer as=\"footer\" class=\"py-14 lg:py-20\">\n    <div class=\"grid gap-12 lg:grid-cols-2 lg:gap-16\">\n      <div class=\"space-y-6\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-7\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n        <div class=\"max-w-md space-y-3\">\n          <h3 class=\"text-xl font-semibold tracking-tight\">Get product news in your inbox</h3>\n          <p class=\"text-muted-foreground text-sm\">\n            One short email a month. Unsubscribe whenever you like.\n          </p>\n          <form v-if=\"!done\" class=\"flex gap-2\" novalidate @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"flex flex-1 gap-2\">\n              <div class=\"flex-1\">\n                <UiVeeInput\n                  name=\"email\"\n                  type=\"email\"\n                  placeholder=\"you@example.com\"\n                  aria-label=\"Email address\"\n                />\n              </div>\n              <UiButton type=\"submit\">\n                <Icon v-if=\"isSubmitting\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Subscribe\n              </UiButton>\n            </fieldset>\n          </form>\n          <p\n            v-else\n            class=\"flex items-center gap-2 text-sm font-medium text-green-600 dark:text-green-400\"\n          >\n            <Icon name=\"lucide:circle-check\" class=\"size-5\" />\n            Thanks! Check your inbox to confirm.\n          </p>\n        </div>\n      </div>\n\n      <nav class=\"grid grid-cols-3 gap-8\" aria-label=\"Footer\">\n        <div v-for=\"column in columns\" :key=\"column.title\">\n          <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n          <ul class=\"mt-4 space-y-3\">\n            <li v-for=\"link in column.links\" :key=\"link\">\n              <NuxtLink\n                to=\"#\"\n                class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n              >\n                {{ link }}\n              </NuxtLink>\n            </li>\n          </ul>\n        </div>\n      </nav>\n    </div>\n\n    <div\n      class=\"mt-12 flex flex-col gap-4 border-t pt-8 sm:flex-row sm:items-center sm:justify-between\"\n    >\n      <p class=\"text-muted-foreground text-sm\">\n        &copy; {{ new Date().getFullYear() }} {{ props.name }}. All rights reserved.\n      </p>\n      <ul class=\"flex items-center gap-1\">\n        <li v-for=\"social in socials\" :key=\"social.name\">\n          <NuxtLink\n            to=\"#\"\n            :aria-label=\"social.name\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground flex size-9 items-center justify-center rounded-full transition-colors\"\n          >\n            <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n          </NuxtLink>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const columns = [\n    { title: \"Product\", links: [\"Features\", \"Pricing\", \"Changelog\", \"Roadmap\"] },\n    { title: \"Resources\", links: [\"Docs\", \"Guides\", \"Blog\", \"Support\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Press\", \"Contact\"] },\n  ];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n  ];\n\n  const done = ref(false);\n  const schema = object({ email: string().email().required().label(\"Email\") });\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n  const submit = handleSubmit(async () => {\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    done.value = true;\n  });\n</script>\n","category":"Footer","description":"Footer with a validated newsletter signup beside the brand. Features: Brand on the left, newsletter form with validation and a success state, three link columns, social icons and copyright bar","path":"Footer/BlockFooter2.vue","components":["button","container","vee-input"]},{"name":"Footer 3","fileName":"BlockFooter3.vue","file":"<template>\n  <!--\n    Centered footer with navigation and social icons\n    Features: Centered logo and tagline, inline navigation, social icon buttons, legal links and copyright, stacks cleanly on mobile\n  -->\n  <UiContainer as=\"footer\" class=\"py-14 text-center lg:py-20\">\n    <NuxtLink to=\"#\" class=\"inline-flex items-center gap-2.5 text-lg font-semibold\">\n      <svg\n        class=\"fill-primary h-7\"\n        viewBox=\"0 0 53 44\"\n        fill=\"none\"\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <path\n          d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n        />\n      </svg>\n      {{ props.name }}\n    </NuxtLink>\n    <p class=\"text-muted-foreground mx-auto mt-3 max-w-md text-sm text-balance\">\n      {{ props.tagline }}\n    </p>\n\n    <nav class=\"mt-8 flex flex-wrap justify-center gap-x-7 gap-y-3\" aria-label=\"Footer\">\n      <NuxtLink\n        v-for=\"link in links\"\n        :key=\"link\"\n        to=\"#\"\n        class=\"text-sm font-medium transition-colors hover:underline hover:underline-offset-4\"\n      >\n        {{ link }}\n      </NuxtLink>\n    </nav>\n\n    <ul class=\"mt-8 flex justify-center gap-2\">\n      <li v-for=\"social in socials\" :key=\"social.name\">\n        <NuxtLink\n          to=\"#\"\n          :aria-label=\"social.name\"\n          class=\"hover:bg-muted flex size-10 items-center justify-center rounded-full border transition-colors\"\n        >\n          <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n        </NuxtLink>\n      </li>\n    </ul>\n\n    <div\n      class=\"text-muted-foreground mt-10 flex flex-col items-center justify-center gap-3 border-t pt-8 text-sm sm:flex-row sm:gap-6\"\n    >\n      <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}, Inc.</p>\n      <ul class=\"flex gap-5\">\n        <li v-for=\"item in legal\" :key=\"item\">\n          <NuxtLink to=\"#\" class=\"hover:text-foreground transition-colors\">{{ item }}</NuxtLink>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string; tagline?: string }>(), {\n    name: \"UI Thing\",\n    tagline: \"Building the interface layer for modern products, one component at a time.\",\n  });\n\n  const links = [\"Home\", \"Products\", \"Solutions\", \"Developers\", \"Company\", \"Support\"];\n  const legal = [\"Privacy\", \"Terms\", \"Cookies\"];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n    { name: \"YouTube\", icon: \"mdi:youtube\" },\n    { name: \"Instagram\", icon: \"mdi:instagram\" },\n  ];\n</script>\n","category":"Footer","description":"Centered footer with navigation and social icons. Features: Centered logo and tagline, inline navigation, social icon buttons, legal links and copyright, stacks cleanly on mobile","path":"Footer/BlockFooter3.vue","components":["container"]},{"name":"Footer 4","fileName":"BlockFooter4.vue","file":"<template>\n  <!--\n    Footer with a gradient call to action panel above the links\n    Features: Rounded gradient CTA panel with two buttons, four link columns beneath it, bottom bar with legal links and social icons\n  -->\n  <UiContainer as=\"footer\" class=\"py-14 lg:py-20\">\n    <div\n      class=\"from-primary to-primary/80 text-primary-foreground relative overflow-hidden rounded-3xl bg-linear-to-br px-6 py-12 text-center sm:px-12 lg:py-16\"\n    >\n      <div\n        class=\"bg-primary-foreground/10 absolute -top-24 -left-16 size-72 rounded-full blur-3xl\"\n      />\n      <div\n        class=\"bg-primary-foreground/10 absolute -right-16 -bottom-24 size-72 rounded-full blur-3xl\"\n      />\n      <div class=\"relative mx-auto max-w-2xl space-y-4\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-primary-foreground/75 text-balance\">{{ props.description }}</p>\n        <div class=\"flex flex-wrap justify-center gap-3 pt-3\">\n          <UiButton variant=\"secondary\" size=\"lg\" class=\"text-foreground\">\n            Get started free\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n          <UiButton\n            variant=\"ghost\"\n            size=\"lg\"\n            class=\"text-primary-foreground hover:bg-primary-foreground/15 hover:text-primary-foreground\"\n          >\n            Talk to sales\n          </UiButton>\n        </div>\n      </div>\n    </div>\n\n    <div class=\"mt-14 grid gap-10 lg:grid-cols-[1.2fr_2fr]\">\n      <div class=\"max-w-xs\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-6\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n        <p class=\"text-muted-foreground mt-3 text-sm\">\n          Components you own, in a stack you already know.\n        </p>\n      </div>\n      <nav class=\"grid grid-cols-2 gap-8 sm:grid-cols-4\" aria-label=\"Footer\">\n        <div v-for=\"column in columns\" :key=\"column.title\">\n          <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n          <ul class=\"mt-4 space-y-3\">\n            <li v-for=\"link in column.links\" :key=\"link\">\n              <NuxtLink\n                to=\"#\"\n                class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n              >\n                {{ link }}\n              </NuxtLink>\n            </li>\n          </ul>\n        </div>\n      </nav>\n    </div>\n\n    <div\n      class=\"text-muted-foreground mt-12 flex flex-col gap-4 border-t pt-8 text-sm md:flex-row md:items-center md:justify-between\"\n    >\n      <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}. All rights reserved.</p>\n      <ul class=\"flex items-center gap-1\">\n        <li v-for=\"social in socials\" :key=\"social.name\">\n          <NuxtLink\n            to=\"#\"\n            :aria-label=\"social.name\"\n            class=\"hover:bg-muted hover:text-foreground flex size-9 items-center justify-center rounded-full transition-colors\"\n          >\n            <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n          </NuxtLink>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{ name?: string; title?: string; description?: string }>(),\n    {\n      name: \"UI Thing\",\n      title: \"Ready to build something great?\",\n      description: \"Join thousands of teams shipping faster with components they fully own.\",\n    }\n  );\n\n  const columns = [\n    { title: \"Product\", links: [\"Features\", \"Pricing\", \"Changelog\", \"Roadmap\"] },\n    { title: \"Developers\", links: [\"Docs\", \"API\", \"Status\", \"GitHub\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Blog\", \"Contact\"] },\n    { title: \"Legal\", links: [\"Privacy\", \"Terms\", \"Security\"] },\n  ];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n  ];\n</script>\n","category":"Footer","description":"Footer with a gradient call to action panel above the links. Features: Rounded gradient CTA panel with two buttons, four link columns beneath it, bottom bar with legal links and social icons","path":"Footer/BlockFooter4.vue","components":["button","container"]},{"name":"Footer 5","fileName":"BlockFooter5.vue","file":"<template>\n  <!--\n    Always dark footer with columns and a newsletter\n    Features: Stays dark next to a light page by scoping the dark theme, five link columns, newsletter form with success state, social icons and legal row\n  -->\n  <footer class=\"dark bg-background text-foreground border-t\">\n    <UiContainer class=\"py-14 lg:py-20\">\n      <div class=\"grid gap-12 lg:grid-cols-[1.3fr_2fr]\">\n        <div class=\"max-w-sm space-y-5\">\n          <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n            <svg\n              class=\"fill-primary h-7\"\n              viewBox=\"0 0 53 44\"\n              fill=\"none\"\n              xmlns=\"http://www.w3.org/2000/svg\"\n            >\n              <path\n                d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n              />\n            </svg>\n            {{ props.name }}\n          </NuxtLink>\n          <p class=\"text-muted-foreground text-sm leading-relaxed\">\n            The latest news, articles and resources, sent to your inbox every month.\n          </p>\n          <form v-if=\"!done\" class=\"flex gap-2\" novalidate @submit.prevent=\"submit\">\n            <UiInput\n              v-model=\"email\"\n              type=\"email\"\n              placeholder=\"Enter your email\"\n              aria-label=\"Email address\"\n            />\n            <UiButton type=\"submit\">Subscribe</UiButton>\n          </form>\n          <p v-else class=\"flex items-center gap-2 text-sm font-medium text-green-400\">\n            <Icon name=\"lucide:circle-check\" class=\"size-5\" />\n            You're on the list.\n          </p>\n          <p v-if=\"error\" class=\"text-destructive text-sm\">{{ error }}</p>\n        </div>\n\n        <nav class=\"grid grid-cols-2 gap-8 sm:grid-cols-4\" aria-label=\"Footer\">\n          <div v-for=\"column in columns\" :key=\"column.title\">\n            <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n            <ul class=\"mt-4 space-y-3\">\n              <li v-for=\"link in column.links\" :key=\"link\">\n                <NuxtLink\n                  to=\"#\"\n                  class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n                >\n                  {{ link }}\n                </NuxtLink>\n              </li>\n            </ul>\n          </div>\n        </nav>\n      </div>\n\n      <div\n        class=\"text-muted-foreground mt-14 flex flex-col gap-5 border-t pt-8 text-sm md:flex-row md:items-center md:justify-between\"\n      >\n        <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}. All rights reserved.</p>\n        <ul class=\"flex items-center gap-1\">\n          <li v-for=\"social in socials\" :key=\"social.name\">\n            <NuxtLink\n              to=\"#\"\n              :aria-label=\"social.name\"\n              class=\"hover:bg-muted hover:text-foreground flex size-9 items-center justify-center rounded-full transition-colors\"\n            >\n              <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n            </NuxtLink>\n          </li>\n        </ul>\n      </div>\n    </UiContainer>\n  </footer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const columns = [\n    { title: \"Product\", links: [\"Features\", \"Integrations\", \"Pricing\", \"Changelog\"] },\n    { title: \"Resources\", links: [\"Docs\", \"Guides\", \"Blog\", \"Events\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Press\", \"Contact\"] },\n    { title: \"Legal\", links: [\"Privacy\", \"Terms\", \"Cookies\", \"Licenses\"] },\n  ];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n    { name: \"YouTube\", icon: \"mdi:youtube\" },\n  ];\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const done = ref(false);\n\n  function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    done.value = true;\n  }\n</script>\n","category":"Footer","description":"Always dark footer with columns and a newsletter. Features: Stays dark next to a light page by scoping the dark theme, five link columns, newsletter form with success state, social icons and legal row","path":"Footer/BlockFooter5.vue","components":["button","container","input"]},{"name":"Footer 6","fileName":"BlockFooter6.vue","file":"<template>\n  <!--\n    Footer with app download buttons and link columns\n    Features: Brand with a short pitch, App Store and Google Play buttons, three link columns, social icons, legal links row\n  -->\n  <UiContainer as=\"footer\" class=\"py-14 lg:py-20\">\n    <div class=\"grid gap-12 lg:grid-cols-[1.4fr_2fr]\">\n      <div class=\"max-w-md space-y-6\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-7\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n        <p class=\"text-muted-foreground text-sm leading-relaxed\">\n          We're on a mission to help teams collaborate and ship products together. Take it with you\n          on the go.\n        </p>\n        <div class=\"flex flex-wrap gap-3\">\n          <NuxtLink\n            v-for=\"store in stores\"\n            :key=\"store.name\"\n            to=\"#\"\n            class=\"bg-foreground text-background flex h-12 items-center gap-2.5 rounded-lg px-4 transition-opacity hover:opacity-90\"\n          >\n            <Icon :name=\"store.icon\" class=\"size-6\" />\n            <span class=\"text-left leading-tight\">\n              <span class=\"block text-[10px] opacity-70\">{{ store.small }}</span>\n              <span class=\"block text-sm font-semibold\">{{ store.name }}</span>\n            </span>\n          </NuxtLink>\n        </div>\n        <div>\n          <p class=\"mb-3 text-sm font-semibold\">Follow us</p>\n          <ul class=\"flex gap-2\">\n            <li v-for=\"social in socials\" :key=\"social.name\">\n              <NuxtLink\n                to=\"#\"\n                :aria-label=\"social.name\"\n                class=\"hover:bg-muted flex size-9 items-center justify-center rounded-full border transition-colors\"\n              >\n                <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n              </NuxtLink>\n            </li>\n          </ul>\n        </div>\n      </div>\n\n      <nav class=\"grid grid-cols-2 gap-8 sm:grid-cols-3\" aria-label=\"Footer\">\n        <div v-for=\"column in columns\" :key=\"column.title\">\n          <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n          <ul class=\"mt-4 space-y-3\">\n            <li v-for=\"link in column.links\" :key=\"link\">\n              <NuxtLink\n                to=\"#\"\n                class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n              >\n                {{ link }}\n              </NuxtLink>\n            </li>\n          </ul>\n        </div>\n      </nav>\n    </div>\n\n    <div\n      class=\"text-muted-foreground mt-12 flex flex-col gap-4 border-t pt-8 text-sm md:flex-row md:items-center md:justify-between\"\n    >\n      <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}, Inc. All rights reserved.</p>\n      <ul class=\"flex flex-wrap gap-x-6 gap-y-2\">\n        <li v-for=\"item in legal\" :key=\"item\">\n          <NuxtLink to=\"#\" class=\"hover:text-foreground transition-colors\">{{ item }}</NuxtLink>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const stores = [\n    { name: \"App Store\", small: \"Download on the\", icon: \"mdi:apple\" },\n    { name: \"Google Play\", small: \"Get it on\", icon: \"mdi:google-play\" },\n  ];\n  const columns = [\n    { title: \"Platform\", links: [\"Overview\", \"Features\", \"Integrations\", \"Pricing\", \"Changelog\"] },\n    {\n      title: \"Resources\",\n      links: [\"Documentation\", \"API reference\", \"Guides\", \"Community\", \"Status\"],\n    },\n    { title: \"Company\", links: [\"About us\", \"Careers\", \"Press kit\", \"Partners\", \"Contact\"] },\n  ];\n  const legal = [\"Privacy policy\", \"Terms of service\", \"Cookie policy\"];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n    { name: \"YouTube\", icon: \"mdi:youtube\" },\n  ];\n</script>\n","category":"Footer","description":"Footer with app download buttons and link columns. Features: Brand with a short pitch, App Store and Google Play buttons, three link columns, social icons, legal links row","path":"Footer/BlockFooter6.vue","components":["container"]},{"name":"Footer 7","fileName":"BlockFooter7.vue","file":"<template>\n  <!--\n    Compact single row footer\n    Features: Logo, inline navigation and copyright in one row on desktop, wraps into a tidy stack on small screens\n  -->\n  <UiContainer as=\"footer\" class=\"py-6\">\n    <div class=\"flex flex-col items-center gap-5 md:flex-row md:justify-between\">\n      <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        {{ props.name }}\n      </NuxtLink>\n      <nav class=\"flex flex-wrap justify-center gap-x-6 gap-y-2\" aria-label=\"Footer\">\n        <NuxtLink\n          v-for=\"link in links\"\n          :key=\"link\"\n          to=\"#\"\n          class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n        >\n          {{ link }}\n        </NuxtLink>\n      </nav>\n      <p class=\"text-muted-foreground text-sm\">\n        &copy; {{ new Date().getFullYear() }} {{ props.name }}\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n  const links = [\"About\", \"Features\", \"Pricing\", \"Docs\", \"Blog\", \"Contact\"];\n</script>\n","category":"Footer","description":"Compact single row footer. Features: Logo, inline navigation and copyright in one row on desktop, wraps into a tidy stack on small screens","path":"Footer/BlockFooter7.vue","components":["container"]},{"name":"Footer 8","fileName":"BlockFooter8.vue","file":"<template>\n  <!--\n    Minimal footer with a back to top button\n    Features: Divider with a centered back to top button that scrolls smoothly, logo with legal links, copyright and social icons in one tidy block\n  -->\n  <UiContainer as=\"footer\" class=\"pb-10\">\n    <div class=\"relative flex justify-center\">\n      <div class=\"bg-border absolute inset-x-0 top-1/2 h-px\" />\n      <UiButton\n        variant=\"outline\"\n        size=\"sm\"\n        class=\"bg-background relative gap-1.5 rounded-full\"\n        @click=\"toTop\"\n      >\n        <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n        Back to top\n      </UiButton>\n    </div>\n\n    <div class=\"mt-10 flex flex-col items-center gap-6 text-center\">\n      <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n        <svg\n          class=\"fill-primary h-7\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        {{ props.name }}\n      </NuxtLink>\n      <ul class=\"text-muted-foreground flex flex-wrap justify-center gap-x-6 gap-y-2 text-sm\">\n        <li v-for=\"item in links\" :key=\"item\">\n          <NuxtLink to=\"#\" class=\"hover:text-foreground transition-colors\">{{ item }}</NuxtLink>\n        </li>\n      </ul>\n      <ul class=\"flex gap-1\">\n        <li v-for=\"social in socials\" :key=\"social.name\">\n          <NuxtLink\n            to=\"#\"\n            :aria-label=\"social.name\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground flex size-9 items-center justify-center rounded-full transition-colors\"\n          >\n            <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n          </NuxtLink>\n        </li>\n      </ul>\n      <p class=\"text-muted-foreground text-xs\">\n        &copy; {{ new Date().getFullYear() }} {{ props.name }}. Made with care.\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const links = [\"Privacy\", \"Terms\", \"Security\", \"Accessibility\", \"Sitemap\"];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"LinkedIn\", icon: \"mdi:linkedin\" },\n  ];\n\n  function toTop() {\n    window.scrollTo({ top: 0, behavior: \"smooth\" });\n  }\n</script>\n","category":"Footer","description":"Minimal footer with a back to top button. Features: Divider with a centered back to top button that scrolls smoothly, logo with legal links, copyright and social icons in one tidy block","path":"Footer/BlockFooter8.vue","components":["button","container"]},{"name":"Footer 9","fileName":"BlockFooter9.vue","file":"<template>\n  <!--\n    Footer with an oversized faded wordmark\n    Features: Link columns and social icons above a giant gradient wordmark that fades into the page, legal row, scales with the viewport\n  -->\n  <footer class=\"relative overflow-hidden\">\n    <UiContainer class=\"pt-14 lg:pt-20\">\n      <div class=\"grid gap-10 lg:grid-cols-[1.3fr_2fr]\">\n        <div class=\"max-w-xs space-y-4\">\n          <p class=\"text-muted-foreground text-sm leading-relaxed\">{{ props.description }}</p>\n          <ul class=\"flex gap-1\">\n            <li v-for=\"social in socials\" :key=\"social.name\">\n              <NuxtLink\n                to=\"#\"\n                :aria-label=\"social.name\"\n                class=\"text-muted-foreground hover:bg-muted hover:text-foreground flex size-9 items-center justify-center rounded-full transition-colors\"\n              >\n                <Icon :name=\"social.icon\" class=\"size-[18px]\" />\n              </NuxtLink>\n            </li>\n          </ul>\n        </div>\n        <nav class=\"grid grid-cols-2 gap-8 sm:grid-cols-4\" aria-label=\"Footer\">\n          <div v-for=\"column in columns\" :key=\"column.title\">\n            <p class=\"text-sm font-semibold\">{{ column.title }}</p>\n            <ul class=\"mt-4 space-y-3\">\n              <li v-for=\"link in column.links\" :key=\"link\">\n                <NuxtLink\n                  to=\"#\"\n                  class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n                >\n                  {{ link }}\n                </NuxtLink>\n              </li>\n            </ul>\n          </div>\n        </nav>\n      </div>\n\n      <div\n        class=\"text-muted-foreground mt-12 flex flex-col gap-3 text-sm sm:flex-row sm:justify-between\"\n      >\n        <p>&copy; {{ new Date().getFullYear() }} {{ props.name }}. All rights reserved.</p>\n        <ul class=\"flex gap-5\">\n          <li v-for=\"item in legal\" :key=\"item\">\n            <NuxtLink to=\"#\" class=\"hover:text-foreground transition-colors\">{{ item }}</NuxtLink>\n          </li>\n        </ul>\n      </div>\n    </UiContainer>\n\n    <p\n      class=\"from-foreground/20 pointer-events-none mt-[-1.5vw] bg-linear-to-b to-transparent bg-clip-text text-center text-[22vw] leading-none font-black tracking-tighter text-transparent select-none\"\n      aria-hidden=\"true\"\n    >\n      {{ props.name }}\n    </p>\n  </footer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string; description?: string }>(), {\n    name: \"UI Thing\",\n    description: \"Open code components for people who like to own their interface.\",\n  });\n\n  const columns = [\n    { title: \"Product\", links: [\"Components\", \"Blocks\", \"Themes\", \"Changelog\"] },\n    { title: \"Learn\", links: [\"Docs\", \"Guides\", \"Examples\", \"Blog\"] },\n    { title: \"Community\", links: [\"GitHub\", \"Discord\", \"Contribute\", \"Sponsors\"] },\n    { title: \"Company\", links: [\"About\", \"Careers\", \"Contact\", \"Press\"] },\n  ];\n  const legal = [\"Privacy\", \"Terms\"];\n  const socials = [\n    { name: \"X\", icon: \"simple-icons:x\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"YouTube\", icon: \"mdi:youtube\" },\n  ];\n</script>\n","category":"Footer","description":"Footer with an oversized faded wordmark. Features: Link columns and social icons above a giant gradient wordmark that fades into the page, legal row, scales with the viewport","path":"Footer/BlockFooter9.vue","components":["container"]},{"name":"Forgot Password","fileName":"BlockForgotPassword.vue","file":"<template>\n  <!--\n    Forgot password form on a grid background\n    Features: Key icon, email field, send instructions button, back to log in link\n  -->\n  <div class=\"relative flex min-h-screen items-center justify-center\">\n    <div\n      class=\"absolute inset-0 z-1 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(circle,transparent_25%,var(--color-border)_100%)] bg-size-[100px_100px]\"\n    />\n    <div class=\"relative z-2 w-full max-w-[340px] px-5\">\n      <div\n        class=\"bg-background mx-auto mb-6 flex size-14 items-center justify-center rounded-lg border\"\n      >\n        <Icon class=\"size-6\" name=\"lucide:key-round\" />\n      </div>\n\n      <div class=\"flex flex-col items-center text-center\">\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-1\">{{ description }}</p>\n      </div>\n\n      <form class=\"mt-10\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n          <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"john@example.com\" />\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Send instructions\" />\n        </fieldset>\n      </form>\n      <p class=\"mt-8 text-center text-sm\">\n        <NuxtLink\n          class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 font-medium underline-offset-4 hover:underline\"\n          to=\"#\"\n        >\n          <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n          Back to log in\n        </NuxtLink>\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const title = \"Forgot Password\";\n  const description = \"No worries, we'll send you reset instructions.\";\n\n  useSeoMeta({ title, description });\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n    useSonner(\"Check your email\", {\n      description: \"We've sent you an email with instructions to reset your password.\",\n    });\n  });\n</script>\n","category":"ForgotPassword","description":"Forgot password form on a grid background. Features: Key icon, email field, send instructions button, back to log in link","path":"ForgotPassword/BlockForgotPassword.vue","components":["button","vee-input"]},{"name":"Forgot Password 2","fileName":"BlockForgotPassword2.vue","file":"<template>\n  <!--\n    Forgot password form inside a card\n    Features: Icon badge, email field with hint, divider, sign in link\n  -->\n  <div class=\"bg-muted/30 relative flex min-h-screen items-center justify-center p-4\">\n    <UiCard class=\"w-full max-w-md shadow-none\">\n      <div class=\"p-6 lg:p-8\">\n        <div class=\"mb-6 flex justify-center\">\n          <div class=\"bg-primary/10 flex size-16 items-center justify-center rounded-full\">\n            <Icon class=\"text-primary size-8\" name=\"lucide:key-round\" />\n          </div>\n        </div>\n\n        <div class=\"mb-8 text-center\">\n          <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">{{ title }}</h1>\n          <p class=\"text-muted-foreground text-sm\">{{ description }}</p>\n        </div>\n\n        <form @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeeInput\n              label=\"Email address\"\n              type=\"email\"\n              name=\"email\"\n              placeholder=\"john@example.com\"\n              hint=\"We'll send you a link to reset your password\"\n            />\n            <UiButton class=\"w-full\" size=\"lg\" type=\"submit\"> Send Reset Link </UiButton>\n          </fieldset>\n        </form>\n\n        <UiDivider class=\"my-6\" label=\"or\" />\n\n        <div class=\"text-center\">\n          <p class=\"text-muted-foreground text-sm\">\n            Remember your password?\n            <NuxtLink class=\"text-primary font-semibold underline-offset-2 hover:underline\" to=\"#\">\n              Sign in\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const title = \"Forgot your password?\";\n  const description = \"Enter your email and we'll send you a link to reset your password.\";\n\n  useSeoMeta({ title, description });\n\n  const ForgotPasswordSchema = object({\n    email: string().email().required().label(\"Email address\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof ForgotPasswordSchema>>({\n    validationSchema: ForgotPasswordSchema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n    useSonner.success(\"Email sent\", {\n      description: \"Check your inbox for password reset instructions.\",\n    });\n  });\n</script>\n","category":"ForgotPassword","description":"Forgot password form inside a card. Features: Icon badge, email field with hint, divider, sign in link","path":"ForgotPassword/BlockForgotPassword2.vue","components":["button","card","divider","vee-input"]},{"name":"Forgot Password 3","fileName":"BlockForgotPassword3.vue","file":"<template>\n  <!--\n    Split screen forgot password with a how it works panel\n    Features: Email form on the left, brand panel on the right that explains the three recovery steps, panel hides on mobile\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-2\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Forgot your password?</h1>\n            <p class=\"text-muted-foreground\">\n              No worries. Enter your email and we'll send you a link to reset it.\n            </p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n              <UiButton class=\"w-full\" type=\"submit\">\n                <Icon name=\"lucide:send\" class=\"size-4\" />\n                Send reset link\n              </UiButton>\n            </fieldset>\n          </form>\n\n          <p class=\"mt-8 text-center text-sm\">\n            <NuxtLink\n              class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 font-medium underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n              Back to log in\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div\n      class=\"bg-primary text-primary-foreground relative hidden flex-col justify-center overflow-hidden p-14 lg:flex\"\n    >\n      <div\n        class=\"bg-primary-foreground/10 absolute -top-24 -right-24 size-96 rounded-full blur-3xl\"\n      />\n      <div\n        class=\"bg-primary-foreground/10 absolute -bottom-32 -left-16 size-80 rounded-full blur-3xl\"\n      />\n      <div class=\"relative max-w-md\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance\">\n          Back in your account in minutes\n        </h2>\n        <ol class=\"mt-10 grid gap-8\">\n          <li v-for=\"(item, i) in steps\" :key=\"item.title\" class=\"flex gap-4\">\n            <span\n              class=\"bg-primary-foreground/15 flex size-10 shrink-0 items-center justify-center rounded-full\"\n            >\n              <Icon :name=\"item.icon\" class=\"size-5\" />\n            </span>\n            <div>\n              <p class=\"font-semibold\">{{ i + 1 }}. {{ item.title }}</p>\n              <p class=\"text-primary-foreground/70 mt-1 text-sm\">{{ item.description }}</p>\n            </div>\n          </li>\n        </ol>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Forgot your password?\",\n    description: \"Enter your email and we'll send you a link to reset your password.\",\n  });\n\n  const steps = [\n    {\n      icon: \"lucide:mail\",\n      title: \"Check your inbox\",\n      description: \"We email you a secure link that works for 24 hours.\",\n    },\n    {\n      icon: \"lucide:key-round\",\n      title: \"Choose a new password\",\n      description: \"Pick something strong that you don't use anywhere else.\",\n    },\n    {\n      icon: \"lucide:log-in\",\n      title: \"Log back in\",\n      description: \"Sign in with your new password and carry on.\",\n    },\n  ];\n\n  const ForgotSchema = object({\n    email: string().email().required().label(\"Email\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof ForgotSchema>>({\n    validationSchema: ForgotSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Check your email\", {\n      description: \"We've sent password reset instructions.\",\n    });\n  });\n</script>\n","category":"ForgotPassword","description":"Split screen forgot password with a how it works panel. Features: Email form on the left, brand panel on the right that explains the three recovery steps, panel hides on mobile","path":"ForgotPassword/BlockForgotPassword3.vue","components":["button","vee-input"]},{"name":"Forgot Password Flow","fileName":"BlockForgotPasswordFlow.vue","file":"<template>\n  <!--\n    Forgot password as one interactive flow\n    Features: Email form that swaps to a check your inbox state in place, resend with cooldown, use a different email action, validation\n  -->\n  <div class=\"bg-muted/30 flex min-h-screen items-center justify-center px-5 py-12\">\n    <UiCard class=\"w-full max-w-md shadow-sm\">\n      <UiCardContent class=\"p-6 sm:p-8\">\n        <template v-if=\"!sent\">\n          <div class=\"text-center\">\n            <div\n              class=\"bg-primary/10 mx-auto mb-5 flex size-14 items-center justify-center rounded-full\"\n            >\n              <Icon class=\"text-primary size-7\" name=\"lucide:key-round\" />\n            </div>\n            <h1 class=\"text-2xl font-bold tracking-tight\">Forgot your password?</h1>\n            <p class=\"text-muted-foreground mt-2 text-sm\">\n              Enter the email you signed up with and we'll send you a reset link.\n            </p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n              <UiButton class=\"w-full\" type=\"submit\">Send reset link</UiButton>\n            </fieldset>\n          </form>\n        </template>\n\n        <div v-else class=\"text-center\">\n          <div\n            class=\"bg-primary/10 mx-auto mb-5 flex size-14 items-center justify-center rounded-full\"\n          >\n            <Icon class=\"text-primary size-7\" name=\"lucide:mail-check\" />\n          </div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Check your inbox</h1>\n          <p class=\"text-muted-foreground mt-2 text-sm\">\n            We sent a reset link to\n            <span class=\"text-foreground font-medium\">{{ email }}</span>. It expires in 24 hours.\n          </p>\n          <div class=\"mt-8 grid gap-3\">\n            <UiButton variant=\"outline\" :disabled=\"cooldown > 0\" @click=\"resend()\">\n              {{ cooldown > 0 ? `Resend in ${cooldown}s` : \"Resend email\" }}\n            </UiButton>\n            <UiButton variant=\"ghost\" @click=\"sent = false\">Use a different email</UiButton>\n          </div>\n        </div>\n\n        <p class=\"mt-8 text-center text-sm\">\n          <NuxtLink\n            class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 font-medium underline-offset-4 hover:underline\"\n            to=\"#\"\n          >\n            <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n            Back to log in\n          </NuxtLink>\n        </p>\n      </UiCardContent>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const ForgotSchema = object({\n    email: string().email().required().label(\"Email\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof ForgotSchema>>({\n    validationSchema: ForgotSchema,\n  });\n\n  const sent = ref(false);\n  const email = ref(\"\");\n  const cooldown = ref(0);\n\n  let timer: ReturnType<typeof setInterval> | undefined;\n  const startCooldown = () => {\n    cooldown.value = 30;\n    clearInterval(timer);\n    timer = setInterval(() => {\n      cooldown.value -= 1;\n      if (cooldown.value <= 0) clearInterval(timer);\n    }, 1000);\n  };\n  onBeforeUnmount(() => clearInterval(timer));\n\n  const submit = handleSubmit(async (values) => {\n    await new Promise((resolve) => setTimeout(resolve, 500));\n    email.value = values.email;\n    sent.value = true;\n    startCooldown();\n  });\n\n  const resend = () => {\n    startCooldown();\n    useSonner.success(\"Reset link sent again\");\n  };\n</script>\n","category":"ForgotPassword","description":"Forgot password as one interactive flow. Features: Email form that swaps to a check your inbox state in place, resend with cooldown, use a different email action, validation","path":"ForgotPassword/BlockForgotPasswordFlow.vue","components":["button","card","vee-input"]},{"name":"Forgot Password Success","fileName":"BlockForgotPasswordSuccess.vue","file":"<template>\n  <!--\n    Confirmation shown after a reset email is sent\n    Features: Mail icon, the address the email was sent to, open email app button, resend link with cooldown, back to log in link\n  -->\n  <div class=\"relative flex min-h-screen items-center justify-center px-5 py-12\">\n    <div\n      class=\"absolute inset-0 z-1 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(circle_at_center,white,transparent_90%)] bg-size-[100px_100px]\"\n    />\n    <div class=\"relative z-2 w-full max-w-sm text-center\">\n      <div\n        class=\"bg-background mx-auto mb-6 flex size-14 items-center justify-center rounded-lg border\"\n      >\n        <Icon class=\"size-6\" name=\"lucide:mail-check\" />\n      </div>\n\n      <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">{{ title }}</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        We sent password reset instructions to\n        <span class=\"text-foreground font-medium\">{{ email }}</span>.\n      </p>\n\n      <div class=\"mt-8 grid gap-3\">\n        <UiButton to=\"mailto:\">\n          <Icon class=\"size-4\" name=\"lucide:mail-open\" />\n          Open email app\n        </UiButton>\n      </div>\n\n      <p class=\"text-muted-foreground mt-6 text-sm\">\n        Didn't get the email?\n        <button\n          type=\"button\"\n          class=\"text-foreground font-semibold underline-offset-4 enabled:hover:underline disabled:opacity-60\"\n          :disabled=\"cooldown > 0\"\n          @click=\"resend()\"\n        >\n          {{ cooldown > 0 ? `Resend in ${cooldown}s` : \"Click to resend\" }}\n        </button>\n      </p>\n\n      <p class=\"mt-8 text-sm\">\n        <NuxtLink\n          class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 font-medium underline-offset-4 hover:underline\"\n          to=\"#\"\n        >\n          <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n          Back to log in\n        </NuxtLink>\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ email?: string }>(), {\n    email: \"you@example.com\",\n  });\n\n  const title = \"Check your inbox\";\n  useSeoMeta({ title, description: \"We've sent you an email with instructions.\" });\n\n  const email = computed(() => props.email);\n  const cooldown = ref(0);\n\n  let timer: ReturnType<typeof setInterval> | undefined;\n  const resend = () => {\n    cooldown.value = 30;\n    clearInterval(timer);\n    timer = setInterval(() => {\n      cooldown.value -= 1;\n      if (cooldown.value <= 0) clearInterval(timer);\n    }, 1000);\n    useSonner.success(\"Email sent again\");\n  };\n  onBeforeUnmount(() => clearInterval(timer));\n</script>\n","category":"ForgotPassword","description":"Confirmation shown after a reset email is sent. Features: Mail icon, the address the email was sent to, open email app button, resend link with cooldown, back to log in link","path":"ForgotPassword/BlockForgotPasswordSuccess.vue","components":["button"]},{"name":"Two Step Verification","fileName":"BlockTwoStepVerification.vue","file":"<template>\n  <!--\n    Choose how to receive a verification code\n    Features: Selectable email or SMS cards with check indicators, conditional email or phone field, continue button\n  -->\n  <div class=\"relative flex min-h-screen items-center justify-center p-4\">\n    <!-- Grid Background -->\n    <div\n      class=\"absolute inset-0 z-1 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(circle_at_center,white,transparent_90%)] bg-size-[100px_100px]\"\n    />\n\n    <div class=\"relative z-2 w-full max-w-md\">\n      <div class=\"mb-8 text-center\">\n        <div class=\"mb-4 flex justify-center\">\n          <div class=\"bg-primary/10 flex size-16 items-center justify-center rounded-2xl\">\n            <Icon class=\"text-primary size-8\" name=\"lucide:smartphone\" />\n          </div>\n        </div>\n        <h1 class=\"mb-2 text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground text-sm\">{{ description }}</p>\n      </div>\n\n      <form class=\"space-y-6\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-6\">\n          <UiCard>\n            <UiCardContent>\n              <div class=\"mb-4 flex items-center gap-3\">\n                <div class=\"bg-primary/10 flex size-10 items-center justify-center rounded-lg\">\n                  <Icon class=\"text-primary size-5\" name=\"lucide:mail\" />\n                </div>\n                <div class=\"flex-1\">\n                  <p class=\"text-sm font-medium\">Email Verification</p>\n                  <p class=\"text-muted-foreground text-xs\">We'll send you a 6-digit code</p>\n                </div>\n                <label\n                  for=\"emailMethod\"\n                  class=\"cursor-pointer\"\n                  title=\"Click to send verification code via Email\"\n                >\n                  <Icon\n                    :class=\"[\n                      'size-5 transition-all',\n                      selectedMethod === 'email' ? 'text-primary' : 'text-muted-foreground/40',\n                    ]\"\n                    name=\"lucide:circle-check-big\"\n                  />\n                  <span class=\"sr-only\"> Select Email verification method </span>\n                </label>\n              </div>\n              <input\n                id=\"emailMethod\"\n                v-model=\"selectedMethod\"\n                type=\"radio\"\n                name=\"method\"\n                value=\"email\"\n                class=\"sr-only\"\n                hidden\n              />\n              <AnimatePresence>\n                <Motion\n                  v-if=\"selectedMethod === 'email'\"\n                  :initial=\"{ opacity: 0, height: 0 }\"\n                  :animate=\"{ opacity: 1, height: 'auto' }\"\n                  :exit=\"{ opacity: 0, height: 0 }\"\n                >\n                  <UiVeeInput\n                    label=\"Email address\"\n                    type=\"email\"\n                    name=\"email\"\n                    placeholder=\"john@example.com\"\n                  />\n                </Motion>\n              </AnimatePresence>\n            </UiCardContent>\n          </UiCard>\n\n          <UiCard>\n            <UiCardContent>\n              <div class=\"mb-4 flex items-center gap-3\">\n                <div class=\"bg-primary/10 flex size-10 items-center justify-center rounded-lg\">\n                  <Icon class=\"text-primary size-5\" name=\"lucide:message-square\" />\n                </div>\n                <div class=\"flex-1\">\n                  <p class=\"text-sm font-medium\">SMS Verification</p>\n                  <p class=\"text-muted-foreground text-xs\">We'll text you a 6-digit code</p>\n                </div>\n                <label\n                  for=\"smsMethod\"\n                  class=\"cursor-pointer\"\n                  title=\"Click to send verification code via SMS\"\n                >\n                  <Icon\n                    :class=\"[\n                      'size-5 transition-all',\n                      selectedMethod === 'sms' ? 'text-primary' : 'text-muted-foreground/40',\n                    ]\"\n                    name=\"lucide:circle-check-big\"\n                  />\n                  <span class=\"sr-only\"> Select SMS verification method </span>\n                </label>\n              </div>\n              <input\n                id=\"smsMethod\"\n                v-model=\"selectedMethod\"\n                type=\"radio\"\n                name=\"method\"\n                value=\"sms\"\n                class=\"sr-only\"\n                hidden\n              />\n              <AnimatePresence>\n                <Motion\n                  v-if=\"selectedMethod === 'sms'\"\n                  :initial=\"{ opacity: 0, height: 0 }\"\n                  :animate=\"{ opacity: 1, height: 'auto' }\"\n                  :exit=\"{ opacity: 0, height: 0 }\"\n                >\n                  <UiVeeInput\n                    label=\"Phone number\"\n                    type=\"tel\"\n                    name=\"phone\"\n                    placeholder=\"+1 (555) 000-0000\"\n                  />\n                </Motion>\n              </AnimatePresence>\n            </UiCardContent>\n          </UiCard>\n\n          <UiButton class=\"w-full\" size=\"lg\" type=\"submit\">\n            Continue\n            <Icon class=\"ml-2\" name=\"lucide:arrow-right\" />\n          </UiButton>\n        </fieldset>\n      </form>\n\n      <div class=\"mt-6 text-center\">\n        <NuxtLink\n          class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 text-sm\"\n          to=\"#\"\n        >\n          <Icon name=\"lucide:arrow-left\" />\n          Back to Log in\n        </NuxtLink>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const title = \"Verify your identity\";\n  const description = \"Choose how you want to receive your verification code.\";\n\n  useSeoMeta({ title, description });\n\n  const selectedMethod = ref(\"email\");\n\n  const TwoStepSchema = object({\n    method: string().required().label(\"Verification method\"),\n    email: string().when(\"method\", {\n      is: \"email\",\n      then: (schema) => schema.email().required().label(\"Email address\"),\n      otherwise: (schema) => schema.notRequired(),\n    }),\n    phone: string().when(\"method\", {\n      is: \"sms\",\n      then: (schema) => schema.required().label(\"Phone number\"),\n      otherwise: (schema) => schema.notRequired(),\n    }),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof TwoStepSchema>>({\n    validationSchema: TwoStepSchema,\n    initialValues: {\n      method: \"email\",\n    },\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n    useSonner.success(\"Code sent\", {\n      description: `Verification code sent to your ${values.method === \"email\" ? \"email\" : \"phone\"}.`,\n    });\n  });\n</script>\n","category":"ForgotPassword","description":"Choose how to receive a verification code. Features: Selectable email or SMS cards with check indicators, conditional email or phone field, continue button","path":"ForgotPassword/BlockTwoStepVerification.vue","components":["button","card","vee-input"]},{"name":"Gallery 1","fileName":"BlockGallery1.vue","file":"<template>\n  <!--\n    Masonry gallery\n    Features: Column based masonry with mixed aspect ratios, category filter chips with live count, captions that appear on hover and keyboard focus\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"text-center\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">Gallery</h2>\n        <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl text-lg\">\n          A few frames from places and projects we loved.\n        </p>\n      </div>\n\n      <div\n        class=\"mt-8 flex flex-wrap justify-center gap-2\"\n        role=\"group\"\n        aria-label=\"Filter by category\"\n      >\n        <UiButton\n          v-for=\"item in ['All', ...categories]\"\n          :key=\"item\"\n          size=\"sm\"\n          class=\"rounded-full\"\n          :variant=\"category === item ? 'default' : 'outline'\"\n          :aria-pressed=\"category === item\"\n          @click=\"category = item\"\n        >\n          {{ item }}\n        </UiButton>\n      </div>\n      <p class=\"text-muted-foreground mt-4 text-center text-sm\" role=\"status\">\n        {{ visible.length }} {{ visible.length === 1 ? \"photo\" : \"photos\" }}\n      </p>\n\n      <ul class=\"mt-6 columns-2 gap-4 md:columns-3\">\n        <li v-for=\"photo in visible\" :key=\"photo.src\" class=\"mb-4 break-inside-avoid\">\n          <figure\n            class=\"group relative overflow-hidden rounded-xl\"\n            tabindex=\"0\"\n            :aria-label=\"`${photo.title}, ${photo.category}`\"\n          >\n            <img\n              :src=\"photo.src\"\n              :alt=\"photo.alt\"\n              class=\"w-full object-cover transition-transform duration-500 group-hover:scale-105 motion-reduce:transition-none\"\n              :class=\"photo.ratio\"\n              loading=\"lazy\"\n            />\n            <figcaption\n              class=\"absolute inset-x-0 bottom-0 bg-linear-to-t from-black/70 to-transparent p-3 text-white opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 group-focus-visible:opacity-100 motion-reduce:transition-none\"\n            >\n              <p class=\"text-sm font-medium\">{{ photo.title }}</p>\n              <p class=\"text-xs text-white/80\">{{ photo.category }}</p>\n            </figcaption>\n          </figure>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Photo = {\n    src: string;\n    alt: string;\n    title: string;\n    category: string;\n    ratio: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      photos?: Photo[];\n    }>(),\n    {\n      photos: () => [\n        {\n          src: \"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Sunlit hills with a lone hiker on the ridge\",\n          title: \"Golden ridge\",\n          category: \"Landscapes\",\n          ratio: \"aspect-4/5\",\n        },\n        {\n          src: \"https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Blue valley with pine trees at dawn\",\n          title: \"Valley at dawn\",\n          category: \"Landscapes\",\n          ratio: \"aspect-square\",\n        },\n        {\n          src: \"https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Glass walled office corridor\",\n          title: \"Glass corridor\",\n          category: \"Interiors\",\n          ratio: \"aspect-3/4\",\n        },\n        {\n          src: \"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Forest path in warm light\",\n          title: \"Forest path\",\n          category: \"Landscapes\",\n          ratio: \"aspect-3/2\",\n        },\n        {\n          src: \"https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Bright living room with a grey sofa\",\n          title: \"Living room\",\n          category: \"Interiors\",\n          ratio: \"aspect-square\",\n        },\n        {\n          src: \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Flowing blue and purple abstract shapes\",\n          title: \"Flow\",\n          category: \"Abstract\",\n          ratio: \"aspect-4/5\",\n        },\n        {\n          src: \"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Golden Gate Bridge over the bay\",\n          title: \"The bay\",\n          category: \"Landscapes\",\n          ratio: \"aspect-3/2\",\n        },\n        {\n          src: \"https://images.unsplash.com/photo-1541701494587-cb58502866ab?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Red and blue ink swirling in water\",\n          title: \"Ink\",\n          category: \"Abstract\",\n          ratio: \"aspect-square\",\n        },\n        {\n          src: \"https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Open plan office with large windows\",\n          title: \"Open plan\",\n          category: \"Interiors\",\n          ratio: \"aspect-3/4\",\n        },\n      ],\n    }\n  );\n\n  const category = ref(\"All\");\n  const categories = computed(() => [...new Set(props.photos.map((photo) => photo.category))]);\n  const visible = computed(() =>\n    category.value === \"All\"\n      ? props.photos\n      : props.photos.filter((photo) => photo.category === category.value)\n  );\n</script>\n","category":"Gallery","description":"Masonry gallery. Features: Column based masonry with mixed aspect ratios, category filter chips with live count, captions that appear on hover and keyboard focus","path":"Utility/Gallery/BlockGallery1.vue","components":["button","container"]},{"name":"Gallery 2","fileName":"BlockGallery2.vue","file":"<template>\n  <!--\n    Lightbox grid\n    Features: Thumbnail grid that opens a full size lightbox dialog, previous and next buttons with arrow key support, counter and caption, focus returns to the thumbnail\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <h2 class=\"text-2xl font-bold lg:text-3xl\">Photo library</h2>\n      <p class=\"text-muted-foreground mt-2\">Select a photo to view it full size.</p>\n\n      <ul class=\"mt-6 grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4\">\n        <li v-for=\"(photo, index) in photos\" :key=\"photo.src\">\n          <button\n            type=\"button\"\n            class=\"group focus-visible:ring-ring/50 block w-full overflow-hidden rounded-lg outline-none focus-visible:ring-[3px]\"\n            :aria-label=\"`Open ${photo.title}`\"\n            @click=\"show(index)\"\n          >\n            <img\n              :src=\"photo.src\"\n              :alt=\"photo.alt\"\n              class=\"aspect-square w-full object-cover transition-transform duration-300 group-hover:scale-105 motion-reduce:transition-none\"\n              loading=\"lazy\"\n            />\n          </button>\n        </li>\n      </ul>\n\n      <UiDialog v-model:open=\"open\">\n        <UiDialogContent class=\"max-w-4xl gap-3 p-3 sm:max-w-4xl\" @keydown=\"onKey\">\n          <UiDialogHeader class=\"px-1 pt-1 text-left\">\n            <UiDialogTitle>{{ current.title }}</UiDialogTitle>\n            <UiDialogDescription>{{ current.caption }}</UiDialogDescription>\n          </UiDialogHeader>\n          <div class=\"bg-muted relative overflow-hidden rounded-lg\">\n            <img\n              :src=\"current.large\"\n              :alt=\"current.alt\"\n              class=\"max-h-[60vh] w-full object-contain\"\n            />\n            <UiButton\n              variant=\"secondary\"\n              size=\"icon\"\n              class=\"absolute top-1/2 left-2 -translate-y-1/2\"\n              aria-label=\"Previous photo\"\n              @click=\"step(-1)\"\n            >\n              <Icon name=\"lucide:chevron-left\" class=\"size-5\" />\n            </UiButton>\n            <UiButton\n              variant=\"secondary\"\n              size=\"icon\"\n              class=\"absolute top-1/2 right-2 -translate-y-1/2\"\n              aria-label=\"Next photo\"\n              @click=\"step(1)\"\n            >\n              <Icon name=\"lucide:chevron-right\" class=\"size-5\" />\n            </UiButton>\n          </div>\n          <p class=\"text-muted-foreground text-center text-sm tabular-nums\" role=\"status\">\n            {{ position + 1 }} of {{ photos.length }}\n          </p>\n        </UiDialogContent>\n      </UiDialog>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Photo = { src: string; large: string; alt: string; title: string; caption: string };\n\n  const props = withDefaults(\n    defineProps<{\n      photos?: Photo[];\n    }>(),\n    {\n      photos: () =>\n        [\n          {\n            id: \"hills\",\n            title: \"Golden ridge\",\n            caption: \"Late light over the hills, shot from the trail at 7 pm.\",\n            alt: \"Sunlit hills with a lone hiker on the ridge\",\n          },\n          {\n            id: \"valley\",\n            title: \"Valley at dawn\",\n            caption: \"Cold air and the first colour in the sky.\",\n            alt: \"Blue valley with pine trees at dawn\",\n          },\n          {\n            id: \"forest\",\n            title: \"Forest path\",\n            caption: \"A short walk behind the cabin.\",\n            alt: \"Forest path in warm light\",\n          },\n          {\n            id: \"bay\",\n            title: \"The bay\",\n            caption: \"Crossing the bridge on a clear morning.\",\n            alt: \"Golden Gate Bridge over the bay\",\n          },\n          {\n            id: \"flowers\",\n            title: \"Snowdrops\",\n            caption: \"The first flowers of the year.\",\n            alt: \"White snowdrop flowers in the forest\",\n          },\n          {\n            id: \"earth\",\n            title: \"Earth at night\",\n            caption: \"City lights seen from orbit.\",\n            alt: \"Earth at night with glowing city lights\",\n          },\n          {\n            id: \"flow\",\n            title: \"Flow\",\n            caption: \"An abstract study in blue.\",\n            alt: \"Flowing blue and purple abstract shapes\",\n          },\n          {\n            id: \"ink\",\n            title: \"Ink\",\n            caption: \"Colour dropped into water.\",\n            alt: \"Red and blue ink swirling in water\",\n          },\n        ].map((item) => {\n          const ids: Record<string, string> = {\n            hills: \"1469474968028-56623f02e42e\",\n            valley: \"1506744038136-46273834b3fb\",\n            forest: \"1441974231531-c6227db76b6e\",\n            bay: \"1501594907352-04cda38ebc29\",\n            flowers: \"1515865404355-ddb5b0910878\",\n            earth: \"1451187580459-43490279c0fa\",\n            flow: \"1620121692029-d088224ddc74\",\n            ink: \"1541701494587-cb58502866ab\",\n          };\n          const base = `https://images.unsplash.com/photo-${ids[item.id]}?auto=format&fit=crop`;\n          return {\n            src: `${base}&w=500&q=75`,\n            large: `${base}&w=1600&q=80`,\n            alt: item.alt,\n            title: item.title,\n            caption: item.caption,\n          };\n        }),\n    }\n  );\n\n  const open = ref(false);\n  const position = ref(0);\n  const current = computed(() => props.photos[position.value]!);\n\n  function show(i: number) {\n    position.value = i;\n    open.value = true;\n  }\n\n  function step(by: number) {\n    const total = props.photos.length;\n    position.value = (position.value + by + total) % total;\n  }\n\n  function onKey(event: KeyboardEvent) {\n    if (event.key === \"ArrowLeft\") step(-1);\n    if (event.key === \"ArrowRight\") step(1);\n  }\n</script>\n","category":"Gallery","description":"Lightbox grid. Features: Thumbnail grid that opens a full size lightbox dialog, previous and next buttons with arrow key support, counter and caption, focus returns to the thumbnail","path":"Utility/Gallery/BlockGallery2.vue","components":["button","container","dialog"]},{"name":"Gallery 3","fileName":"BlockGallery3.vue","file":"<template>\n  <!--\n    Portfolio grid\n    Features: Category tabs with counts, project cards with year and tags, image zoom with a view project overlay, empty tab handling\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"flex flex-col justify-between gap-4 sm:flex-row sm:items-end\">\n        <div>\n          <h2 class=\"text-3xl font-bold lg:text-4xl\">Selected work</h2>\n          <p class=\"text-muted-foreground mt-2 max-w-md\">\n            Brand, product and spatial projects from the last three years.\n          </p>\n        </div>\n        <UiTabs v-model=\"tab\">\n          <UiTabsList class=\"flex-wrap\">\n            <UiTabsTrigger v-for=\"item in tabs\" :key=\"item.value\" :value=\"item.value\">\n              {{ item.label }}\n              <span class=\"text-muted-foreground ml-1 text-xs\">{{ item.count }}</span>\n            </UiTabsTrigger>\n          </UiTabsList>\n        </UiTabs>\n      </div>\n\n      <ul class=\"mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3\" aria-live=\"polite\">\n        <li v-for=\"project in visible\" :key=\"project.title\">\n          <article class=\"group\">\n            <div class=\"relative overflow-hidden rounded-xl\">\n              <img\n                :src=\"project.image\"\n                :alt=\"project.alt\"\n                class=\"aspect-4/3 w-full object-cover transition-transform duration-500 group-hover:scale-105 motion-reduce:transition-none\"\n                loading=\"lazy\"\n              />\n              <div\n                class=\"absolute inset-0 grid place-items-center bg-black/40 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 motion-reduce:transition-none\"\n              >\n                <UiButton variant=\"secondary\" size=\"sm\">\n                  View project<Icon name=\"lucide:arrow-up-right\" class=\"size-4\" />\n                </UiButton>\n              </div>\n            </div>\n            <div class=\"mt-3 flex items-start justify-between gap-3\">\n              <div>\n                <h3 class=\"font-semibold\">{{ project.title }}</h3>\n                <p class=\"text-muted-foreground text-sm\">{{ project.category }}</p>\n              </div>\n              <span class=\"text-muted-foreground text-sm tabular-nums\">{{ project.year }}</span>\n            </div>\n            <ul class=\"mt-2 flex flex-wrap gap-1.5\">\n              <li v-for=\"tag in project.tags\" :key=\"tag\">\n                <UiBadge variant=\"secondary\" size=\"sm\">{{ tag }}</UiBadge>\n              </li>\n            </ul>\n          </article>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Project = {\n    title: string;\n    category: string;\n    year: number;\n    image: string;\n    alt: string;\n    tags: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      projects?: Project[];\n    }>(),\n    {\n      projects: () => [\n        {\n          title: \"Fernwood identity\",\n          category: \"Branding\",\n          year: 2026,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Paper tote bag with a simple mark\",\n          tags: [\"Logo\", \"Packaging\"],\n        },\n        {\n          title: \"Tilework app\",\n          category: \"Product\",\n          year: 2026,\n          image:\n            \"https://images.unsplash.com/photo-1626908013351-800ddd734b8a?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Neon light streaks on a dark background\",\n          tags: [\"iOS\", \"Design system\"],\n        },\n        {\n          title: \"Harbour Loft\",\n          category: \"Spaces\",\n          year: 2025,\n          image:\n            \"https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Bright living room with a grey sofa\",\n          tags: [\"Interior\", \"Lighting\"],\n        },\n        {\n          title: \"Paperboat studio\",\n          category: \"Branding\",\n          year: 2025,\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Green suede shoe on a pastel backdrop\",\n          tags: [\"Identity\", \"Campaign\"],\n        },\n        {\n          title: \"Orbit dashboard\",\n          category: \"Product\",\n          year: 2025,\n          image:\n            \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Flowing blue abstract shapes\",\n          tags: [\"Web\", \"Data viz\"],\n        },\n        {\n          title: \"North office\",\n          category: \"Spaces\",\n          year: 2024,\n          image:\n            \"https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Open plan office with large windows\",\n          tags: [\"Workplace\", \"Wayfinding\"],\n        },\n      ],\n    }\n  );\n\n  const tab = ref(\"all\");\n\n  const slug = (value: string) => value.toLowerCase();\n  const tabs = computed(() => [\n    { value: \"all\", label: \"All\", count: props.projects.length },\n    ...[...new Set(props.projects.map((project) => project.category))].map((category) => ({\n      value: slug(category),\n      label: category,\n      count: props.projects.filter((project) => project.category === category).length,\n    })),\n  ]);\n\n  const visible = computed(() =>\n    tab.value === \"all\"\n      ? props.projects\n      : props.projects.filter((project) => slug(project.category) === tab.value)\n  );\n</script>\n","category":"Gallery","description":"Portfolio grid. Features: Category tabs with counts, project cards with year and tags, image zoom with a view project overlay, empty tab handling","path":"Utility/Gallery/BlockGallery3.vue","components":["badge","button","container","tabs"]},{"name":"Gallery 4","fileName":"BlockGallery4.vue","file":"<template>\n  <!--\n    Case study cards\n    Features: Featured wide card plus supporting cards, headline result metric, client name, industry tags, read case study link with arrow\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"max-w-2xl\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">Results our customers see</h2>\n        <p class=\"text-muted-foreground mt-3 text-lg\">\n          Real teams, real numbers. Read how they got there.\n        </p>\n      </div>\n\n      <ul class=\"mt-10 grid gap-6 md:grid-cols-2\">\n        <li\n          v-for=\"(study, index) in studies\"\n          :key=\"study.client\"\n          :class=\"index === 0 ? 'md:col-span-2' : ''\"\n        >\n          <UiCard\n            class=\"group h-full gap-0 overflow-hidden py-0\"\n            :class=\"index === 0 ? 'md:grid md:grid-cols-2' : ''\"\n          >\n            <div class=\"overflow-hidden\">\n              <img\n                :src=\"study.image\"\n                :alt=\"study.alt\"\n                class=\"h-full max-h-72 w-full object-cover transition-transform duration-500 group-hover:scale-105 motion-reduce:transition-none md:max-h-none\"\n                :class=\"index === 0 ? 'aspect-16/10 md:aspect-auto' : 'aspect-16/10'\"\n                loading=\"lazy\"\n              />\n            </div>\n            <div class=\"flex flex-col gap-4 p-6\" :class=\"index === 0 ? 'md:p-8' : ''\">\n              <div class=\"flex items-center justify-between gap-3\">\n                <p class=\"text-sm font-semibold\">{{ study.client }}</p>\n                <ul class=\"flex flex-wrap justify-end gap-1.5\">\n                  <li v-for=\"tag in study.tags\" :key=\"tag\">\n                    <UiBadge variant=\"secondary\" size=\"sm\">{{ tag }}</UiBadge>\n                  </li>\n                </ul>\n              </div>\n              <div>\n                <p class=\"text-primary text-4xl font-bold tracking-tight tabular-nums\">\n                  {{ study.metric }}\n                </p>\n                <p class=\"text-muted-foreground text-sm\">{{ study.metricLabel }}</p>\n              </div>\n              <h3 class=\"leading-snug font-semibold\" :class=\"index === 0 ? 'text-xl' : 'text-lg'\">\n                {{ study.title }}\n              </h3>\n              <p class=\"text-muted-foreground text-sm\">{{ study.summary }}</p>\n              <UiButton variant=\"link\" class=\"mt-auto h-auto self-start p-0\">\n                Read case study\n                <Icon\n                  name=\"lucide:arrow-right\"\n                  class=\"size-4 transition-transform group-hover:translate-x-1 motion-reduce:transition-none\"\n                />\n              </UiButton>\n            </div>\n          </UiCard>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Study = {\n    client: string;\n    title: string;\n    summary: string;\n    metric: string;\n    metricLabel: string;\n    image: string;\n    alt: string;\n    tags: string[];\n  };\n\n  withDefaults(\n    defineProps<{\n      studies?: Study[];\n    }>(),\n    {\n      studies: () => [\n        {\n          client: \"Fernwood\",\n          title: \"How Fernwood cut planning time from a day to an hour\",\n          summary:\n            \"A 40 person product team replaced three spreadsheets and two weekly meetings with a single shared board.\",\n          metric: \"-87%\",\n          metricLabel: \"time spent on planning\",\n          image:\n            \"https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1000&q=80\",\n          alt: \"Team collaborating around a table with laptops\",\n          tags: [\"SaaS\", \"Product\"],\n        },\n        {\n          client: \"Tilework\",\n          title: \"Tilework doubled trial signups in one quarter\",\n          summary:\n            \"A cleaner onboarding flow and clearer pricing turned curious visitors into users.\",\n          metric: \"+212%\",\n          metricLabel: \"trial signups\",\n          image:\n            \"https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Glass walled office corridor\",\n          tags: [\"Growth\"],\n        },\n        {\n          client: \"Paperboat\",\n          title: \"Paperboat cut support tickets by a third\",\n          summary: \"Better in-app guidance answered common questions before anyone had to ask.\",\n          metric: \"-34%\",\n          metricLabel: \"support tickets\",\n          image:\n            \"https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=800&q=80\",\n          alt: \"Open plan office with large windows\",\n          tags: [\"Support\", \"Retail\"],\n        },\n      ],\n    }\n  );\n</script>\n","category":"Gallery","description":"Case study cards. Features: Featured wide card plus supporting cards, headline result metric, client name, industry tags, read case study link with arrow","path":"Utility/Gallery/BlockGallery4.vue","components":["badge","button","card","container"]},{"name":"Gallery 5","fileName":"BlockGallery5.vue","file":"<template>\n  <!--\n    Video gallery\n    Features: Featured player with demo play and pause and a moving progress bar, playlist thumbnails with duration badges, selecting a video switches the player, now playing label\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-5xl gap-6 lg:grid-cols-[1fr_20rem]\">\n      <div>\n        <div class=\"bg-muted relative aspect-video overflow-hidden rounded-xl\">\n          <img\n            :src=\"current.poster\"\n            :alt=\"`Poster for ${current.title}`\"\n            class=\"size-full object-cover\"\n          />\n          <div class=\"absolute inset-0 bg-black/30\" aria-hidden=\"true\" />\n          <UiButton\n            size=\"icon-lg\"\n            class=\"absolute top-1/2 left-1/2 size-16 -translate-x-1/2 -translate-y-1/2 rounded-full\"\n            :aria-label=\"playing ? 'Pause' : 'Play'\"\n            @click=\"toggle\"\n          >\n            <Icon :name=\"playing ? 'lucide:pause' : 'lucide:play'\" class=\"size-7\" />\n          </UiButton>\n          <div\n            class=\"absolute inset-x-0 bottom-0 space-y-2 bg-linear-to-t from-black/70 to-transparent p-4 text-white\"\n          >\n            <UiProgress\n              :model-value=\"percent\"\n              class=\"h-1 bg-white/30\"\n              :aria-label=\"`Playback progress, ${format(elapsed)} of ${format(current.seconds)}`\"\n            />\n            <p class=\"flex justify-between text-xs tabular-nums\">\n              <span>{{ format(elapsed) }}</span>\n              <span>{{ format(current.seconds) }}</span>\n            </p>\n          </div>\n        </div>\n        <div class=\"mt-4\">\n          <p class=\"text-muted-foreground text-xs tracking-wide uppercase\" role=\"status\">\n            {{ playing ? \"Now playing\" : \"Selected\" }}\n          </p>\n          <h2 class=\"mt-1 text-2xl font-bold\">{{ current.title }}</h2>\n          <p class=\"text-muted-foreground mt-2\">{{ current.description }}</p>\n        </div>\n      </div>\n\n      <div>\n        <h3 class=\"text-sm font-medium\">Up next</h3>\n        <ul class=\"mt-3 grid gap-2\">\n          <li v-for=\"(video, index) in videos\" :key=\"video.title\">\n            <button\n              type=\"button\"\n              class=\"hover:bg-muted/60 focus-visible:ring-ring/50 flex w-full gap-3 rounded-lg border p-2 text-left transition-colors outline-none focus-visible:ring-[3px]\"\n              :class=\"index === active ? 'border-primary bg-muted/60' : ''\"\n              :aria-current=\"index === active ? 'true' : undefined\"\n              @click=\"select(index)\"\n            >\n              <span class=\"relative w-28 shrink-0 overflow-hidden rounded-md\">\n                <img\n                  :src=\"video.poster\"\n                  alt=\"\"\n                  class=\"aspect-video w-full object-cover\"\n                  loading=\"lazy\"\n                />\n                <span\n                  class=\"absolute right-1 bottom-1 rounded bg-black/75 px-1 text-[10px] text-white tabular-nums\"\n                  >{{ format(video.seconds) }}</span\n                >\n              </span>\n              <span class=\"min-w-0 py-0.5\">\n                <span class=\"line-clamp-2 text-sm font-medium\">{{ video.title }}</span>\n                <span class=\"text-muted-foreground mt-1 block text-xs\"\n                  >{{ video.views }} views</span\n                >\n              </span>\n            </button>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Video = {\n    title: string;\n    description: string;\n    poster: string;\n    seconds: number;\n    views: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      videos?: Video[];\n    }>(),\n    {\n      videos: () => [\n        {\n          title: \"A tour of the new planning board\",\n          description:\n            \"Ten minutes on boards, filters and the keyboard shortcuts that make planning fast.\",\n          poster:\n            \"https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1000&q=80\",\n          seconds: 596,\n          views: \"12K\",\n        },\n        {\n          title: \"Setting up your workspace in five minutes\",\n          description: \"Invite your team, import your work and pick a template.\",\n          poster:\n            \"https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1000&q=80\",\n          seconds: 312,\n          views: \"8.4K\",\n        },\n        {\n          title: \"Automations that save an hour a week\",\n          description: \"Three small rules that remove repetitive work.\",\n          poster:\n            \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?auto=format&fit=crop&w=1000&q=80\",\n          seconds: 428,\n          views: \"5.1K\",\n        },\n        {\n          title: \"Reporting for busy managers\",\n          description: \"Build a weekly report once and let it send itself.\",\n          poster:\n            \"https://images.unsplash.com/photo-1628348068343-c6a848d2b6dd?auto=format&fit=crop&w=1000&q=80\",\n          seconds: 254,\n          views: \"3.7K\",\n        },\n      ],\n    }\n  );\n\n  const active = ref(0);\n  const playing = ref(false);\n  const elapsed = ref(0);\n  const current = computed(() => props.videos[active.value]!);\n  const percent = computed(() => (elapsed.value / current.value.seconds) * 100);\n\n  // A demo clock stands in for a real <video> element. Swap it for your player in real use.\n  const { pause, resume } = useIntervalFn(\n    () => {\n      elapsed.value = Math.min(current.value.seconds, elapsed.value + 1);\n      if (elapsed.value >= current.value.seconds) stop();\n    },\n    1000,\n    { immediate: false }\n  );\n\n  function stop() {\n    playing.value = false;\n    pause();\n  }\n\n  function toggle() {\n    if (playing.value) {\n      stop();\n      return;\n    }\n    if (elapsed.value >= current.value.seconds) elapsed.value = 0;\n    playing.value = true;\n    resume();\n  }\n\n  function select(index: number) {\n    active.value = index;\n    elapsed.value = 0;\n    stop();\n  }\n\n  function format(total: number) {\n    const m = Math.floor(total / 60);\n    const s = String(total % 60).padStart(2, \"0\");\n    return `${m}:${s}`;\n  }\n</script>\n","category":"Gallery","description":"Video gallery. Features: Featured player with demo play and pause and a moving progress bar, playlist thumbnails with duration badges, selecting a video switches the player, now playing label","path":"Utility/Gallery/BlockGallery5.vue","components":["button","container","progress"]},{"name":"Gallery 6","fileName":"BlockGallery6.vue","file":"<template>\n  <!--\n    Before and after sliders\n    Features: Drag or keyboard comparison slider with a visible divider, before and after labels, arrow keys and home and end support, reset button, several examples\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"text-center\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">See the difference</h2>\n        <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl text-lg\">\n          Drag the handle, or focus it and use the arrow keys.\n        </p>\n      </div>\n\n      <ul class=\"mt-10 grid gap-8 md:grid-cols-2\">\n        <li v-for=\"(item, index) in items\" :key=\"item.title\">\n          <div\n            class=\"has-focus-visible:ring-ring/50 bg-muted relative aspect-4/3 touch-none overflow-hidden rounded-xl select-none has-focus-visible:ring-[3px]\"\n          >\n            <img\n              :src=\"item.image\"\n              :alt=\"item.afterAlt\"\n              class=\"absolute inset-0 size-full object-cover\"\n            />\n            <img\n              :src=\"item.image\"\n              alt=\"\"\n              aria-hidden=\"true\"\n              class=\"absolute inset-0 size-full object-cover\"\n              :class=\"item.beforeClass\"\n              :style=\"{ clipPath: `inset(0 ${100 - positions[index]!}% 0 0)` }\"\n            />\n            <span\n              class=\"absolute top-3 left-3 rounded-full bg-black/70 px-2.5 py-0.5 text-xs font-medium text-white\"\n              >{{ item.beforeLabel }}</span\n            >\n            <span\n              class=\"absolute top-3 right-3 rounded-full bg-black/70 px-2.5 py-0.5 text-xs font-medium text-white\"\n              >{{ item.afterLabel }}</span\n            >\n            <div\n              class=\"pointer-events-none absolute inset-y-0 w-0.5 bg-white shadow\"\n              :style=\"{ left: `${positions[index]}%` }\"\n              aria-hidden=\"true\"\n            >\n              <span\n                class=\"absolute top-1/2 left-1/2 grid size-9 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-white text-black shadow-md\"\n                ><Icon name=\"lucide:chevrons-left-right\" class=\"size-5\"\n              /></span>\n            </div>\n            <input\n              type=\"range\"\n              min=\"0\"\n              max=\"100\"\n              step=\"1\"\n              :value=\"positions[index]\"\n              :aria-label=\"`Compare ${item.title}: ${item.beforeLabel} and ${item.afterLabel}`\"\n              :aria-valuetext=\"`${positions[index]}% ${item.beforeLabel}`\"\n              class=\"absolute inset-0 size-full cursor-ew-resize opacity-0\"\n              @input=\"set(index, ($event.target as HTMLInputElement).value)\"\n            />\n          </div>\n          <div class=\"mt-3 flex items-start justify-between gap-3\">\n            <div>\n              <h3 class=\"font-semibold\">{{ item.title }}</h3>\n              <p class=\"text-muted-foreground text-sm\">{{ item.description }}</p>\n            </div>\n            <UiButton\n              variant=\"ghost\"\n              size=\"sm\"\n              :disabled=\"positions[index] === 50\"\n              :aria-label=\"`Reset ${item.title}`\"\n              @click=\"set(index, 50)\"\n            >\n              <Icon name=\"lucide:rotate-ccw\" class=\"size-4\" />Reset\n            </UiButton>\n          </div>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = {\n    title: string;\n    description: string;\n    image: string;\n    afterAlt: string;\n    beforeLabel: string;\n    afterLabel: string;\n    beforeClass: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Item[];\n    }>(),\n    {\n      items: () => [\n        {\n          title: \"Colour grade\",\n          description: \"A flat, desaturated scan against the finished grade.\",\n          image:\n            \"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1000&q=80\",\n          afterAlt: \"Sunlit hills with a lone hiker, finished colour grade\",\n          beforeLabel: \"Before\",\n          afterLabel: \"After\",\n          beforeClass: \"grayscale contrast-75 brightness-90\",\n        },\n        {\n          title: \"Retouch and sharpen\",\n          description: \"Soft focus and a dull exposure against the final retouch.\",\n          image:\n            \"https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1000&q=80\",\n          afterAlt: \"Blue valley with pine trees at dawn, sharpened and retouched\",\n          beforeLabel: \"Original\",\n          afterLabel: \"Edited\",\n          beforeClass: \"blur-[3px] brightness-75 saturate-50\",\n        },\n      ],\n    }\n  );\n\n  const positions = ref<number[]>(props.items.map(() => 50));\n\n  function set(index: number, value: number | string) {\n    const next = [...positions.value];\n    next[index] = Math.min(100, Math.max(0, Number(value)));\n    positions.value = next;\n  }\n</script>\n","category":"Gallery","description":"Before and after sliders. Features: Drag or keyboard comparison slider with a visible divider, before and after labels, arrow keys and home and end support, reset button, several examples","path":"Utility/Gallery/BlockGallery6.vue","components":["button","container"]},{"name":"App Header 1","fileName":"BlockAppHeader1.vue","file":"<template>\n  <!--\n    Profile header with a gradient cover and an overlapping avatar\n    Features: Gradient cover with blurred shapes, avatar that overlaps the cover, verified badge, stats row, follow button that toggles, message and more actions, staggered entrance\n  -->\n  <div>\n    <slot name=\"cover\">\n      <div\n        class=\"relative h-36 overflow-hidden bg-linear-to-br from-indigo-500 via-purple-500 to-pink-500 md:h-48\"\n      >\n        <div class=\"absolute -top-16 -right-10 size-64 rounded-full bg-white/25 blur-3xl\" />\n        <div class=\"absolute -bottom-24 left-1/4 size-72 rounded-full bg-white/20 blur-3xl\" />\n        <UiButton\n          size=\"sm\"\n          variant=\"secondary\"\n          class=\"absolute top-4 right-4 gap-1.5 opacity-90\"\n          @click=\"useSonner.info('Open your cover picker here')\"\n        >\n          <Icon name=\"lucide:image\" class=\"size-4\" />\n          Edit cover\n        </UiButton>\n      </div>\n    </slot>\n\n    <UiContainer class=\"px-4 md:px-8\">\n      <Motion\n        class=\"-mt-12 flex flex-col gap-5 md:-mt-14 md:flex-row md:items-end md:justify-between\"\n        :initial=\"{ opacity: 0, y: 12 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 160, damping: 22 }\"\n      >\n        <div class=\"flex flex-col gap-4 md:flex-row md:items-end\">\n          <slot name=\"avatar\">\n            <UiAvatar\n              :src=\"props.avatar\"\n              :fallback=\"props.initials\"\n              class=\"ring-background size-24 shrink-0 ring-4 md:size-28\"\n            />\n          </slot>\n          <div class=\"pb-1\">\n            <slot name=\"title\">\n              <div class=\"flex items-center gap-2\">\n                <h1 class=\"text-2xl font-bold tracking-tight\">{{ props.title }}</h1>\n                <Icon\n                  v-if=\"props.verified\"\n                  name=\"lucide:badge-check\"\n                  class=\"text-primary size-5\"\n                  aria-label=\"Verified\"\n                />\n              </div>\n            </slot>\n            <slot name=\"description\">\n              <p class=\"text-muted-foreground text-sm\">{{ props.description }}</p>\n            </slot>\n          </div>\n        </div>\n\n        <div class=\"flex items-center gap-2 pb-1\">\n          <slot>\n            <UiButton :variant=\"following ? 'outline' : 'default'\" @click=\"toggleFollow\">\n              <Icon :name=\"following ? 'lucide:user-check' : 'lucide:user-plus'\" class=\"size-4\" />\n              {{ following ? \"Following\" : \"Follow\" }}\n            </UiButton>\n            <UiButton variant=\"outline\">\n              <Icon name=\"lucide:mail\" class=\"size-4\" />\n              Message\n            </UiButton>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiButton variant=\"outline\" size=\"icon\" aria-label=\"More actions\">\n                  <Icon name=\"lucide:ellipsis\" class=\"size-4\" />\n                </UiButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent align=\"end\">\n                <UiDropdownMenuItem icon=\"lucide:link\" title=\"Copy profile link\" />\n                <UiDropdownMenuItem icon=\"lucide:flag\" title=\"Report\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem variant=\"destructive\" icon=\"lucide:ban\" title=\"Block\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </slot>\n        </div>\n      </Motion>\n\n      <Motion\n        class=\"mt-6 flex gap-8 border-b pb-5\"\n        :initial=\"{ opacity: 0 }\"\n        :animate=\"{ opacity: 1 }\"\n        :transition=\"{ delay: 0.15, duration: 0.4 }\"\n      >\n        <div v-for=\"stat in props.stats\" :key=\"stat.label\">\n          <p class=\"text-lg leading-none font-bold tabular-nums\">{{ stat.value }}</p>\n          <p class=\"text-muted-foreground mt-1 text-xs\">{{ stat.label }}</p>\n        </div>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      avatar?: string;\n      initials?: string;\n      verified?: boolean;\n      stats?: { label: string; value: string }[];\n    }>(),\n    {\n      title: \"Maya Chen\",\n      description: \"Product designer at Northwind · @mayachen\",\n      avatar: \"https://i.pravatar.cc/200?img=47\",\n      initials: \"MC\",\n      verified: true,\n      stats: () => [\n        { label: \"Followers\", value: \"12.4k\" },\n        { label: \"Following\", value: \"318\" },\n        { label: \"Projects\", value: \"46\" },\n      ],\n    }\n  );\n\n  const following = ref(false);\n\n  function toggleFollow() {\n    following.value = !following.value;\n    useSonner(following.value ? `You're following ${props.title}` : \"Unfollowed\");\n  }\n</script>\n","category":"Header","description":"Profile header with a gradient cover and an overlapping avatar. Features: Gradient cover with blurred shapes, avatar that overlaps the cover, verified badge, stats row, follow button that toggles, message and more actions, staggered entrance","path":"App/Header/BlockAppHeader1.vue","components":["avatar","button","container","dropdown-menu"]},{"name":"App Header 10","fileName":"BlockAppHeader10.vue","file":"<template>\n  <!--\n    Application header with a gradient banner, live status and tabs\n    Features: Grid patterned gradient banner, app icon, live status pill with a pulsing dot, version and branch metadata, tech chips, sliding tab underline, entrance animation\n  -->\n  <div>\n    <div\n      class=\"from-muted via-muted/60 to-background relative overflow-hidden border-b bg-linear-to-b\"\n    >\n      <div\n        class=\"absolute inset-0 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[linear-gradient(to_bottom,black,transparent)] bg-size-[40px_40px] opacity-60\"\n      />\n      <UiContainer class=\"relative px-4 pt-8 md:px-8\">\n        <Motion\n          class=\"flex flex-col gap-6\"\n          :initial=\"{ opacity: 0, y: 10 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ type: 'spring', stiffness: 160, damping: 22 }\"\n        >\n          <div class=\"flex flex-col gap-5 lg:flex-row lg:items-start lg:justify-between\">\n            <div class=\"flex items-start gap-4\">\n              <slot name=\"icon\">\n                <span\n                  class=\"bg-background flex size-16 shrink-0 items-center justify-center rounded-2xl border shadow-sm\"\n                >\n                  <Icon :name=\"props.icon\" class=\"size-8\" />\n                </span>\n              </slot>\n              <div class=\"min-w-0 space-y-2\">\n                <div class=\"flex flex-wrap items-center gap-3\">\n                  <slot name=\"title\">\n                    <h1 class=\"text-2xl font-bold tracking-tight\">{{ props.title }}</h1>\n                  </slot>\n                  <span\n                    class=\"flex items-center gap-1.5 rounded-full border border-green-500/30 bg-green-500/10 px-2.5 py-0.5 text-xs font-medium text-green-600 dark:text-green-400\"\n                  >\n                    <span class=\"relative flex size-2\">\n                      <span\n                        class=\"absolute inline-flex size-full animate-ping rounded-full bg-green-500 opacity-75\"\n                      />\n                      <span class=\"relative inline-flex size-2 rounded-full bg-green-500\" />\n                    </span>\n                    Live\n                  </span>\n                </div>\n                <slot name=\"description\">\n                  <ul\n                    class=\"text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1 text-sm\"\n                  >\n                    <li class=\"flex items-center gap-1.5\">\n                      <Icon name=\"lucide:tag\" class=\"size-4\" />\n                      v{{ props.version }}\n                    </li>\n                    <li class=\"flex items-center gap-1.5\">\n                      <Icon name=\"lucide:git-branch\" class=\"size-4\" />\n                      {{ props.branch }}\n                    </li>\n                    <li class=\"flex items-center gap-1.5\">\n                      <Icon name=\"lucide:clock\" class=\"size-4\" />\n                      Deployed {{ props.deployed }}\n                    </li>\n                  </ul>\n                </slot>\n                <div class=\"flex flex-wrap gap-1.5\">\n                  <UiBadge v-for=\"item in props.tech\" :key=\"item\" variant=\"secondary\">{{\n                    item\n                  }}</UiBadge>\n                </div>\n              </div>\n            </div>\n\n            <div class=\"flex items-center gap-2\">\n              <slot>\n                <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Bookmark\">\n                  <Icon name=\"lucide:bookmark\" class=\"size-4\" />\n                </UiButton>\n                <UiButton variant=\"outline\">\n                  <Icon name=\"lucide:external-link\" class=\"size-4\" />\n                  Visit site\n                </UiButton>\n                <UiButton>\n                  <Icon name=\"lucide:settings-2\" class=\"size-4\" />\n                  Configure\n                </UiButton>\n              </slot>\n            </div>\n          </div>\n\n          <slot name=\"tabs\">\n            <UiTabs v-model=\"tab\">\n              <UiScrollArea orientation=\"horizontal\">\n                <UiTabsList :pill=\"false\" class=\"relative flex w-full justify-start gap-1\">\n                  <UiTabsTrigger v-for=\"item in props.tabs\" :key=\"item\" :pill=\"false\" :value=\"item\">\n                    {{ item }}\n                  </UiTabsTrigger>\n                  <UiTabsIndicator />\n                </UiTabsList>\n              </UiScrollArea>\n            </UiTabs>\n          </slot>\n        </Motion>\n      </UiContainer>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      icon?: string;\n      version?: string;\n      branch?: string;\n      deployed?: string;\n      tech?: string[];\n      tabs?: string[];\n    }>(),\n    {\n      title: \"Storefront\",\n      icon: \"lucide:store\",\n      version: \"2.4.1\",\n      branch: \"main\",\n      deployed: \"3 days ago\",\n      tech: () => [\"Nuxt\", \"PostgreSQL\", \"Vercel\"],\n      tabs: () => [\"Overview\", \"Deployments\", \"Monitoring\", \"Settings\", \"Logs\"],\n    }\n  );\n\n  const tab = ref(props.tabs[0]);\n</script>\n","category":"Header","description":"Application header with a gradient banner, live status and tabs. Features: Grid patterned gradient banner, app icon, live status pill with a pulsing dot, version and branch metadata, tech chips, sliding tab underline, entrance animation","path":"App/Header/BlockAppHeader10.vue","components":["badge","button","container","scroll-area","tabs"]},{"name":"App Header 11","fileName":"BlockAppHeader11.vue","file":"<template>\n  <!--\n    Sticky page header that condenses as you scroll\n    Features: Title shrinks and the description collapses smoothly, blurred background and border appear once scrolled, actions stay visible, includes a scrollable demo area\n  -->\n  <div class=\"h-[26rem] overflow-y-auto rounded-xl border\" @scroll.passive=\"onScroll\">\n    <header\n      class=\"sticky top-0 z-10 border-b transition-[background-color,box-shadow,border-color] duration-300\"\n      :class=\"\n        condensed\n          ? 'bg-background/85 supports-backdrop-filter:bg-background/70 shadow-sm backdrop-blur'\n          : 'bg-background border-transparent'\n      \"\n    >\n      <div\n        class=\"flex items-center justify-between gap-4 px-4 transition-[padding] duration-300 md:px-8\"\n        :class=\"condensed ? 'py-3' : 'py-6'\"\n      >\n        <div class=\"min-w-0\">\n          <slot name=\"title\">\n            <h1\n              class=\"origin-left font-bold tracking-tight transition-[font-size] duration-300\"\n              :class=\"condensed ? 'text-lg' : 'text-3xl'\"\n            >\n              {{ props.title }}\n            </h1>\n          </slot>\n          <div\n            class=\"grid transition-[grid-template-rows,opacity] duration-300\"\n            :class=\"condensed ? 'grid-rows-[0fr] opacity-0' : 'grid-rows-[1fr] opacity-100'\"\n          >\n            <div class=\"overflow-hidden\">\n              <slot name=\"description\">\n                <p class=\"text-muted-foreground mt-1.5 text-sm\">{{ props.description }}</p>\n              </slot>\n            </div>\n          </div>\n        </div>\n        <div class=\"flex shrink-0 items-center gap-2\">\n          <slot>\n            <UiButton variant=\"outline\" :size=\"condensed ? 'sm' : 'default'\">\n              <Icon name=\"lucide:filter\" class=\"size-4\" />\n              <span class=\"hidden sm:inline\">Filter</span>\n            </UiButton>\n            <UiButton :size=\"condensed ? 'sm' : 'default'\">\n              <Icon name=\"lucide:plus\" class=\"size-4\" />\n              New\n            </UiButton>\n          </slot>\n        </div>\n      </div>\n    </header>\n\n    <slot name=\"content\">\n      <ul class=\"divide-y px-4 md:px-8\">\n        <li v-for=\"row in 24\" :key=\"row\" class=\"flex items-center gap-4 py-4\">\n          <span class=\"bg-muted flex size-10 shrink-0 items-center justify-center rounded-lg\">\n            <Icon name=\"lucide:file-text\" class=\"text-muted-foreground size-5\" />\n          </span>\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate text-sm font-medium\">Quarterly report {{ row }}</p>\n            <p class=\"text-muted-foreground truncate text-xs\">Updated {{ row }} days ago</p>\n          </div>\n          <UiBadge variant=\"secondary\">Draft</UiBadge>\n        </li>\n      </ul>\n    </slot>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      /** How far the user must scroll, in pixels, before the header condenses. */\n      threshold?: number;\n    }>(),\n    {\n      title: \"Reports\",\n      description: \"Scroll the list below. The header shrinks to give your content more room.\",\n      threshold: 24,\n    }\n  );\n\n  // A small hysteresis stops the header flickering when the scroll position hovers at the edge.\n  const condensed = ref(false);\n\n  function onScroll(event: Event) {\n    const top = (event.currentTarget as HTMLElement).scrollTop;\n    if (!condensed.value && top > props.threshold + 8) condensed.value = true;\n    else if (condensed.value && top < props.threshold - 8) condensed.value = false;\n  }\n</script>\n","category":"Header","description":"Sticky page header that condenses as you scroll. Features: Title shrinks and the description collapses smoothly, blurred background and border appear once scrolled, actions stay visible, includes a scrollable demo area","path":"App/Header/BlockAppHeader11.vue","components":["badge","button"]},{"name":"App Header 2","fileName":"BlockAppHeader2.vue","file":"<template>\n  <!--\n    Team page header with an avatar stack\n    Features: Icon tile, title with member count, overlapping member avatars with an overflow count, invite and add actions, hover lift on the avatars\n  -->\n  <UiContainer class=\"px-4 py-6 md:px-8\">\n    <Motion\n      class=\"flex flex-col gap-5 md:flex-row md:items-center md:justify-between\"\n      :initial=\"{ opacity: 0, y: 8 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ type: 'spring', stiffness: 180, damping: 22 }\"\n    >\n      <div class=\"flex items-center gap-4\">\n        <slot name=\"avatar\">\n          <span\n            class=\"bg-primary/10 text-primary flex size-12 shrink-0 items-center justify-center rounded-xl\"\n          >\n            <Icon :name=\"props.icon\" class=\"size-6\" />\n          </span>\n        </slot>\n        <div>\n          <slot name=\"title\">\n            <h1 class=\"flex items-center gap-2 text-xl font-bold tracking-tight\">\n              {{ props.title }}\n              <UiBadge variant=\"secondary\"\n                >{{ props.members.length + props.extra }} members</UiBadge\n              >\n            </h1>\n          </slot>\n          <slot name=\"description\">\n            <p class=\"text-muted-foreground text-sm\">{{ props.description }}</p>\n          </slot>\n        </div>\n      </div>\n\n      <div class=\"flex flex-wrap items-center gap-4\">\n        <div class=\"flex -space-x-2\">\n          <UiAvatar\n            v-for=\"member in props.members\"\n            :key=\"member.name\"\n            :src=\"member.avatar\"\n            :fallback=\"member.name[0]\"\n            :title=\"member.name\"\n            class=\"ring-background size-9 ring-2 transition-transform hover:z-10 hover:-translate-y-1\"\n          />\n          <span\n            v-if=\"props.extra\"\n            class=\"bg-muted ring-background flex size-9 items-center justify-center rounded-full text-xs font-medium ring-2\"\n          >\n            +{{ props.extra }}\n          </span>\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <slot>\n            <UiButton variant=\"outline\">\n              <Icon name=\"lucide:link\" class=\"size-4\" />\n              Invite link\n            </UiButton>\n            <UiButton>\n              <Icon name=\"lucide:user-plus\" class=\"size-4\" />\n              Add member\n            </UiButton>\n          </slot>\n        </div>\n      </div>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      icon?: string;\n      members?: { name: string; avatar: string }[];\n      extra?: number;\n    }>(),\n    {\n      title: \"Design team\",\n      description: \"Everyone who works on product design and research.\",\n      icon: \"lucide:users\",\n      members: () => [\n        { name: \"Maya Chen\", avatar: \"https://i.pravatar.cc/80?img=47\" },\n        { name: \"Liam Carter\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n        { name: \"Priya Nair\", avatar: \"https://i.pravatar.cc/80?img=45\" },\n        { name: \"Sam Okafor\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n      ],\n      extra: 6,\n    }\n  );\n</script>\n","category":"Header","description":"Team page header with an avatar stack. Features: Icon tile, title with member count, overlapping member avatars with an overflow count, invite and add actions, hover lift on the avatars","path":"App/Header/BlockAppHeader2.vue","components":["avatar","badge","button","container"]},{"name":"App Header 3","fileName":"BlockAppHeader3.vue","file":"<template>\n  <!--\n    Page header with breadcrumbs and a search field\n    Features: Breadcrumbs, large title with description, search input with a keyboard shortcut hint that focuses on slash, primary action\n  -->\n  <UiContainer class=\"px-4 py-6 md:px-8\">\n    <Motion\n      class=\"flex flex-col gap-5\"\n      :initial=\"{ opacity: 0, y: 8 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ type: 'spring', stiffness: 180, damping: 22 }\"\n    >\n      <slot name=\"crumbs\">\n        <UiBreadcrumbs :items=\"props.crumbs\" />\n      </slot>\n      <div class=\"flex flex-col gap-5 lg:flex-row lg:items-end lg:justify-between\">\n        <div>\n          <slot name=\"title\">\n            <h1 class=\"text-3xl font-bold tracking-tight\">{{ props.title }}</h1>\n          </slot>\n          <slot name=\"description\">\n            <p class=\"text-muted-foreground mt-1.5 max-w-xl\">{{ props.description }}</p>\n          </slot>\n        </div>\n        <div class=\"flex items-center gap-3\">\n          <div class=\"relative w-full lg:w-72\">\n            <Icon\n              name=\"lucide:search\"\n              class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n            />\n            <UiInput\n              ref=\"search\"\n              v-model=\"query\"\n              placeholder=\"Search documents\"\n              class=\"pr-10 pl-9\"\n              aria-label=\"Search documents\"\n              @keydown.esc=\"query = ''\"\n            />\n            <UiKbd class=\"pointer-events-none absolute top-1/2 right-2 -translate-y-1/2\">/</UiKbd>\n          </div>\n          <slot>\n            <UiButton class=\"shrink-0\">\n              <Icon name=\"lucide:plus\" class=\"size-4\" />\n              New document\n            </UiButton>\n          </slot>\n        </div>\n      </div>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { BreadcrumbItem } from \"@/components/Ui/Breadcrumbs.vue\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      crumbs?: BreadcrumbItem[];\n    }>(),\n    {\n      title: \"Documents\",\n      description: \"Browse, search and organise everything your team has written.\",\n      crumbs: () =>\n        [\n          { icon: \"lucide:home\", link: \"#\" },\n          { label: \"Workspace\", link: \"#\" },\n          { label: \"Documents\", link: \"#\" },\n        ] as BreadcrumbItem[],\n    }\n  );\n\n  const query = ref(\"\");\n  const search = ref<{ $el?: HTMLElement } | null>(null);\n\n  // Press \"/\" anywhere outside a field to jump to the search box.\n  useEventListener(\"keydown\", (event: KeyboardEvent) => {\n    const target = event.target as HTMLElement;\n    if (\n      event.key !== \"/\" ||\n      /INPUT|TEXTAREA|SELECT/.test(target.tagName) ||\n      target.isContentEditable\n    ) {\n      return;\n    }\n    event.preventDefault();\n    search.value?.$el?.focus?.();\n  });\n</script>\n","category":"Header","description":"Page header with breadcrumbs and a search field. Features: Breadcrumbs, large title with description, search input with a keyboard shortcut hint that focuses on slash, primary action","path":"App/Header/BlockAppHeader3.vue","components":["breadcrumbs","button","container","input","kbd"]},{"name":"App Header 4","fileName":"BlockAppHeader4.vue","file":"<template>\n  <!--\n    Dashboard header with a greeting and a date range switcher\n    Features: Time of day greeting, formatted date, segmented range control, refresh button that spins and updates its timestamp, export action\n  -->\n  <UiContainer class=\"px-4 py-6 md:px-8\">\n    <Motion\n      class=\"flex flex-col gap-5 lg:flex-row lg:items-center lg:justify-between\"\n      :initial=\"{ opacity: 0, y: 8 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ type: 'spring', stiffness: 180, damping: 22 }\"\n    >\n      <div>\n        <slot name=\"title\">\n          <h1 class=\"text-2xl font-bold tracking-tight\">{{ greeting }}, {{ props.name }}</h1>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground mt-1 flex items-center gap-2 text-sm\">\n            <Icon name=\"lucide:calendar\" class=\"size-4\" />\n            {{ today }}\n          </p>\n        </slot>\n      </div>\n\n      <div class=\"flex flex-wrap items-center gap-3\">\n        <UiToggleGroup\n          :model-value=\"range\"\n          type=\"single\"\n          variant=\"outline\"\n          class=\"bg-background shadow-xs\"\n          aria-label=\"Date range\"\n          @update:model-value=\"(value) => value && (range = value as string)\"\n        >\n          <UiToggleGroupItem\n            v-for=\"option in props.ranges\"\n            :key=\"option.value\"\n            :value=\"option.value\"\n            class=\"px-3 text-sm\"\n          >\n            {{ option.label }}\n          </UiToggleGroupItem>\n        </UiToggleGroup>\n\n        <UiButton variant=\"outline\" :disabled=\"refreshing\" @click=\"refresh\">\n          <Icon name=\"lucide:refresh-cw\" class=\"size-4\" :class=\"refreshing && 'animate-spin'\" />\n          <span class=\"text-muted-foreground hidden sm:inline\">{{ updated }}</span>\n          <span class=\"sm:hidden\">Refresh</span>\n        </UiButton>\n        <slot>\n          <UiButton>\n            <Icon name=\"lucide:download\" class=\"size-4\" />\n            Export\n          </UiButton>\n        </slot>\n      </div>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      name?: string;\n      ranges?: { label: string; value: string }[];\n    }>(),\n    {\n      name: \"Maya\",\n      ranges: () => [\n        { label: \"7D\", value: \"7d\" },\n        { label: \"30D\", value: \"30d\" },\n        { label: \"90D\", value: \"90d\" },\n        { label: \"1Y\", value: \"1y\" },\n      ],\n    }\n  );\n\n  const range = ref(\"30d\");\n  const refreshing = ref(false);\n  const updated = ref(\"Updated just now\");\n\n  const now = new Date();\n  const hour = now.getHours();\n  const greeting = hour < 12 ? \"Good morning\" : hour < 18 ? \"Good afternoon\" : \"Good evening\";\n  const today = new Intl.DateTimeFormat(\"en-US\", {\n    weekday: \"long\",\n    month: \"long\",\n    day: \"numeric\",\n  }).format(now);\n\n  async function refresh() {\n    refreshing.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 900));\n    refreshing.value = false;\n    updated.value = \"Updated just now\";\n    useSonner.success(\"Dashboard refreshed\");\n  }\n</script>\n","category":"Header","description":"Dashboard header with a greeting and a date range switcher. Features: Time of day greeting, formatted date, segmented range control, refresh button that spins and updates its timestamp, export action","path":"App/Header/BlockAppHeader4.vue","components":["button","container","toggle-group"]},{"name":"App Header 5","fileName":"BlockAppHeader5.vue","file":"<template>\n  <!--\n    Page header with breadcrumbs, actions and tabs\n    Features: Breadcrumbs, title and description, export and overflow menu, tabs with count badges and a sliding underline, scrollable on mobile\n  -->\n  <UiContainer class=\"px-4 pt-6 md:px-8\">\n    <Motion\n      class=\"flex flex-col gap-5\"\n      :initial=\"{ opacity: 0, y: 8 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ type: 'spring', stiffness: 180, damping: 22 }\"\n    >\n      <slot name=\"crumbs\">\n        <UiBreadcrumbs v-if=\"props.crumbs\" :items=\"props.crumbs\" />\n      </slot>\n\n      <div class=\"flex flex-col justify-between gap-4 md:flex-row md:items-start\">\n        <div class=\"space-y-1\">\n          <slot name=\"title\">\n            <h1 class=\"text-2xl font-bold tracking-tight\">{{ props.title }}</h1>\n          </slot>\n          <slot name=\"description\">\n            <p class=\"text-muted-foreground text-sm\">{{ props.description }}</p>\n          </slot>\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <slot>\n            <UiButton variant=\"outline\">\n              <Icon name=\"lucide:download\" class=\"size-4\" />\n              Export\n            </UiButton>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiButton variant=\"outline\" size=\"icon\" aria-label=\"More actions\">\n                  <Icon name=\"lucide:ellipsis\" class=\"size-4\" />\n                </UiButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent align=\"end\">\n                <UiDropdownMenuItem icon=\"lucide:pen\" title=\"Rename\" />\n                <UiDropdownMenuItem icon=\"lucide:copy\" title=\"Duplicate\" />\n                <UiDropdownMenuItem icon=\"lucide:archive\" title=\"Archive\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem variant=\"destructive\" icon=\"lucide:trash-2\" title=\"Delete\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </slot>\n        </div>\n      </div>\n\n      <slot name=\"tabs\">\n        <UiTabs v-model=\"tab\" class=\"-mx-1\">\n          <UiScrollArea orientation=\"horizontal\">\n            <UiTabsList :pill=\"false\" class=\"relative flex w-full justify-start gap-1 border-b\">\n              <UiTabsTrigger\n                v-for=\"item in props.tabs\"\n                :key=\"item.value\"\n                :pill=\"false\"\n                :value=\"item.value\"\n                class=\"gap-2\"\n              >\n                {{ item.label }}\n                <span\n                  v-if=\"item.count !== undefined\"\n                  class=\"bg-muted text-muted-foreground rounded-full px-1.5 text-xs font-medium tabular-nums\"\n                >\n                  {{ item.count }}\n                </span>\n              </UiTabsTrigger>\n              <UiTabsIndicator />\n            </UiTabsList>\n          </UiScrollArea>\n        </UiTabs>\n      </slot>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { BreadcrumbItem } from \"@/components/Ui/Breadcrumbs.vue\";\n\n  type Tab = { label: string; value: string; count?: number };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      crumbs?: BreadcrumbItem[];\n      tabs?: Tab[];\n    }>(),\n    {\n      title: \"Analytics\",\n      description: \"Track traffic, conversions and engagement across your product.\",\n      crumbs: () =>\n        [\n          { icon: \"lucide:home\", link: \"#\" },\n          { label: \"Reports\", link: \"#\" },\n          { label: \"Analytics\", link: \"#\" },\n        ] as BreadcrumbItem[],\n      tabs: () => [\n        { label: \"Overview\", value: \"overview\" },\n        { label: \"Reports\", value: \"reports\", count: 12 },\n        { label: \"Insights\", value: \"insights\", count: 3 },\n        { label: \"Segments\", value: \"segments\" },\n        { label: \"Activity\", value: \"activity\" },\n      ],\n    }\n  );\n\n  const tab = ref(props.tabs[0]?.value);\n</script>\n","category":"Header","description":"Page header with breadcrumbs, actions and tabs. Features: Breadcrumbs, title and description, export and overflow menu, tabs with count badges and a sliding underline, scrollable on mobile","path":"App/Header/BlockAppHeader5.vue","components":["breadcrumbs","button","container","dropdown-menu","scroll-area","tabs"]},{"name":"App Header 6","fileName":"BlockAppHeader6.vue","file":"<template>\n  <!--\n    User header with an online status, stats and segmented tabs\n    Features: Avatar with a status dot, contact details with icons, message and follow actions, pill tabs with a sliding indicator, entrance animation\n  -->\n  <UiContainer class=\"px-4 pt-6 md:px-8\">\n    <Motion\n      class=\"flex flex-col gap-5\"\n      :initial=\"{ opacity: 0, y: 8 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ type: 'spring', stiffness: 180, damping: 22 }\"\n    >\n      <div class=\"flex flex-col gap-4 md:flex-row md:items-center md:justify-between\">\n        <div class=\"flex items-center gap-4\">\n          <slot name=\"avatar\">\n            <div class=\"relative shrink-0\">\n              <UiAvatar :src=\"props.avatar\" :fallback=\"props.initials\" class=\"size-16\" />\n              <span\n                class=\"ring-background absolute right-0 bottom-0 size-4 rounded-full bg-green-500 ring-2\"\n                aria-label=\"Online\"\n              />\n            </div>\n          </slot>\n          <div class=\"min-w-0\">\n            <slot name=\"title\">\n              <h1 class=\"text-2xl font-bold tracking-tight\">{{ props.title }}</h1>\n            </slot>\n            <slot name=\"description\">\n              <ul\n                class=\"text-muted-foreground mt-1 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm\"\n              >\n                <li v-for=\"item in props.meta\" :key=\"item.label\" class=\"flex items-center gap-1.5\">\n                  <Icon :name=\"item.icon\" class=\"size-4\" />\n                  {{ item.label }}\n                </li>\n              </ul>\n            </slot>\n          </div>\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <slot>\n            <UiButton variant=\"outline\">\n              <Icon name=\"lucide:mail\" class=\"size-4\" />\n              Message\n            </UiButton>\n            <UiButton>\n              <Icon name=\"lucide:user-plus\" class=\"size-4\" />\n              Follow\n            </UiButton>\n          </slot>\n        </div>\n      </div>\n\n      <slot name=\"tabs\">\n        <UiTabs v-model=\"tab\">\n          <UiScrollArea orientation=\"horizontal\">\n            <UiTabsList class=\"relative\">\n              <UiTabsTrigger v-for=\"item in props.tabs\" :key=\"item\" :value=\"item\" class=\"px-4\">\n                {{ item }}\n              </UiTabsTrigger>\n              <UiTabsIndicator class=\"[&>div]:bg-background [&>div]:shadow-sm\" />\n            </UiTabsList>\n          </UiScrollArea>\n        </UiTabs>\n      </slot>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      avatar?: string;\n      initials?: string;\n      meta?: { icon: string; label: string }[];\n      tabs?: string[];\n    }>(),\n    {\n      title: \"Priya Nair\",\n      avatar: \"https://i.pravatar.cc/200?img=45\",\n      initials: \"PN\",\n      meta: () => [\n        { icon: \"lucide:calendar\", label: \"Joined Mar 2024\" },\n        { icon: \"lucide:mail\", label: \"priya@uithing.com\" },\n        { icon: \"lucide:map-pin\", label: \"Bengaluru, IN\" },\n      ],\n      tabs: () => [\"Activity\", \"Profile\", \"Projects\", \"Settings\"],\n    }\n  );\n\n  const tab = ref(props.tabs[0]);\n</script>\n","category":"Header","description":"User header with an online status, stats and segmented tabs. Features: Avatar with a status dot, contact details with icons, message and follow actions, pill tabs with a sliding indicator, entrance animation","path":"App/Header/BlockAppHeader6.vue","components":["avatar","button","container","scroll-area","tabs"]},{"name":"App Header 7","fileName":"BlockAppHeader7.vue","file":"<template>\n  <!--\n    Project header with status, progress and team\n    Features: Status badge with a colored dot, progress bar with percentage, owner and member avatars, due date with time remaining, star toggle and share actions\n  -->\n  <UiContainer class=\"px-4 py-6 md:px-8\">\n    <Motion\n      class=\"flex flex-col gap-5\"\n      :initial=\"{ opacity: 0, y: 8 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ type: 'spring', stiffness: 180, damping: 22 }\"\n    >\n      <div class=\"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between\">\n        <div class=\"space-y-2\">\n          <div class=\"flex flex-wrap items-center gap-3\">\n            <slot name=\"title\">\n              <h1 class=\"text-2xl font-bold tracking-tight\">{{ props.title }}</h1>\n            </slot>\n            <UiBadge variant=\"outline\" class=\"gap-1.5\">\n              <span class=\"size-1.5 rounded-full\" :class=\"statusDot\" />\n              {{ props.status }}\n            </UiBadge>\n          </div>\n          <slot name=\"description\">\n            <p class=\"text-muted-foreground max-w-2xl text-sm\">{{ props.description }}</p>\n          </slot>\n        </div>\n\n        <div class=\"flex items-center gap-2\">\n          <slot>\n            <UiButton\n              variant=\"outline\"\n              size=\"icon\"\n              :aria-label=\"starred ? 'Remove from favourites' : 'Add to favourites'\"\n              :aria-pressed=\"starred\"\n              @click=\"starred = !starred\"\n            >\n              <Icon\n                name=\"lucide:star\"\n                class=\"size-4 transition-colors\"\n                :class=\"starred && 'fill-amber-400 text-amber-400'\"\n              />\n            </UiButton>\n            <UiButton variant=\"outline\">\n              <Icon name=\"lucide:share-2\" class=\"size-4\" />\n              Share\n            </UiButton>\n            <UiButton>\n              <Icon name=\"lucide:settings-2\" class=\"size-4\" />\n              Manage\n            </UiButton>\n          </slot>\n        </div>\n      </div>\n\n      <div\n        class=\"bg-card flex flex-col gap-4 rounded-xl border p-4 md:flex-row md:items-center md:gap-8\"\n      >\n        <div class=\"min-w-0 flex-1\">\n          <div class=\"mb-2 flex items-center justify-between text-sm\">\n            <span class=\"font-medium\">Progress</span>\n            <span class=\"text-muted-foreground tabular-nums\">{{ props.progress }}%</span>\n          </div>\n          <UiProgress :model-value=\"props.progress\" class=\"h-2\" />\n        </div>\n        <div class=\"flex flex-wrap items-center gap-x-6 gap-y-3 text-sm\">\n          <div class=\"flex items-center gap-2\">\n            <UiAvatar :src=\"props.owner.avatar\" :fallback=\"props.owner.name[0]\" class=\"size-6\" />\n            <span>{{ props.owner.name }}</span>\n          </div>\n          <div class=\"flex items-center gap-2\">\n            <div class=\"flex -space-x-1.5\">\n              <UiAvatar\n                v-for=\"member in props.members\"\n                :key=\"member\"\n                :src=\"member\"\n                class=\"ring-background size-6 ring-2\"\n              />\n            </div>\n            <span class=\"text-muted-foreground\">{{ props.members.length + 4 }} members</span>\n          </div>\n          <div class=\"text-muted-foreground flex items-center gap-2\">\n            <Icon name=\"lucide:calendar\" class=\"size-4\" />\n            Due {{ props.due }}\n          </div>\n        </div>\n      </div>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      status?: \"In progress\" | \"On hold\" | \"Completed\";\n      progress?: number;\n      due?: string;\n      owner?: { name: string; avatar: string };\n      members?: string[];\n    }>(),\n    {\n      title: \"Website redesign\",\n      description:\n        \"A full overhaul of the marketing site with a new design system, faster pages and better accessibility.\",\n      status: \"In progress\",\n      progress: 68,\n      due: \"Dec 15\",\n      owner: () => ({ name: \"Liam Carter\", avatar: \"https://i.pravatar.cc/60?img=12\" }),\n      members: () => [\n        \"https://i.pravatar.cc/60?img=47\",\n        \"https://i.pravatar.cc/60?img=45\",\n        \"https://i.pravatar.cc/60?img=32\",\n      ],\n    }\n  );\n\n  const starred = ref(false);\n\n  const statusDot = computed(\n    () =>\n      ({\n        \"In progress\": \"bg-blue-500\",\n        \"On hold\": \"bg-amber-500\",\n        Completed: \"bg-green-500\",\n      })[props.status]\n  );\n</script>\n","category":"Header","description":"Project header with status, progress and team. Features: Status badge with a colored dot, progress bar with percentage, owner and member avatars, due date with time remaining, star toggle and share actions","path":"App/Header/BlockAppHeader7.vue","components":["avatar","badge","button","container","progress"]},{"name":"App Header 8","fileName":"BlockAppHeader8.vue","file":"<template>\n  <!--\n    Edit page header with an editable title and unsaved changes state\n    Features: Back button, inline editable title, saved and unsaved indicator, discard and save buttons that enable on change, saving spinner, blurred sticky bar\n  -->\n  <header\n    class=\"bg-background/80 supports-backdrop-filter:bg-background/60 sticky top-0 z-10 border-b backdrop-blur\"\n  >\n    <UiContainer class=\"flex flex-wrap items-center justify-between gap-3 px-4 py-3 md:px-8\">\n      <div class=\"flex min-w-0 items-center gap-3\">\n        <slot name=\"back\">\n          <UiButton variant=\"ghost\" size=\"icon\" aria-label=\"Go back\">\n            <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n          </UiButton>\n        </slot>\n        <div class=\"min-w-0\">\n          <slot name=\"title\">\n            <input\n              v-model=\"title\"\n              class=\"hover:bg-muted focus:bg-muted focus:ring-ring/40 -mx-1.5 w-full max-w-xs rounded-md bg-transparent px-1.5 py-0.5 text-lg font-bold tracking-tight outline-none focus:ring-2\"\n              aria-label=\"Page title\"\n            />\n          </slot>\n          <p class=\"text-muted-foreground flex items-center gap-1.5 px-0 text-xs\">\n            <span\n              class=\"size-1.5 rounded-full transition-colors\"\n              :class=\"\n                saving ? 'animate-pulse bg-blue-500' : dirty ? 'bg-amber-500' : 'bg-green-500'\n              \"\n            />\n            {{ saving ? \"Saving…\" : dirty ? \"Unsaved changes\" : `Saved ${savedAt}` }}\n          </p>\n        </div>\n      </div>\n\n      <div class=\"flex items-center gap-2\">\n        <slot>\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"ghost\" size=\"icon\" aria-label=\"More actions\">\n                <Icon name=\"lucide:ellipsis\" class=\"size-4\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\">\n              <UiDropdownMenuItem icon=\"lucide:history\" title=\"Version history\" />\n              <UiDropdownMenuItem icon=\"lucide:copy\" title=\"Duplicate\" />\n              <UiDropdownMenuSeparator />\n              <UiDropdownMenuItem variant=\"destructive\" icon=\"lucide:trash-2\" title=\"Delete\" />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n          <UiButton variant=\"outline\" :disabled=\"!dirty || saving\" @click=\"discard\"\n            >Discard</UiButton\n          >\n          <UiButton :disabled=\"!dirty || saving\" @click=\"save\">\n            <Icon v-if=\"saving\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n            Save changes\n          </UiButton>\n        </slot>\n      </div>\n    </UiContainer>\n  </header>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string }>(), {\n    title: \"Edit user profile\",\n  });\n\n  const title = ref(props.title);\n  const saved = ref(props.title);\n  const saving = ref(false);\n  const savedAt = ref(\"2 minutes ago\");\n\n  const dirty = computed(() => title.value !== saved.value);\n\n  function discard() {\n    title.value = saved.value;\n  }\n\n  async function save() {\n    saving.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 900));\n    saved.value = title.value;\n    saving.value = false;\n    savedAt.value = \"just now\";\n    useSonner.success(\"Changes saved\");\n  }\n</script>\n","category":"Header","description":"Edit page header with an editable title and unsaved changes state. Features: Back button, inline editable title, saved and unsaved indicator, discard and save buttons that enable on change, saving spinner, blurred sticky bar","path":"App/Header/BlockAppHeader8.vue","components":["button","container","dropdown-menu"]},{"name":"App Header 9","fileName":"BlockAppHeader9.vue","file":"<template>\n  <!--\n    List page header with stats and a working filter toolbar\n    Features: Title with count badge, trend stats, search, status filter, sort select, list and grid view toggle, active filter chips with clear\n  -->\n  <UiContainer class=\"px-4 py-6 md:px-8\">\n    <Motion\n      class=\"flex flex-col gap-6\"\n      :initial=\"{ opacity: 0, y: 8 }\"\n      :animate=\"{ opacity: 1, y: 0 }\"\n      :transition=\"{ type: 'spring', stiffness: 180, damping: 22 }\"\n    >\n      <div class=\"flex flex-wrap items-center justify-between gap-3\">\n        <div>\n          <slot name=\"title\">\n            <h1 class=\"flex items-center gap-2 text-2xl font-bold tracking-tight\">\n              {{ props.title }}\n              <UiBadge variant=\"secondary\" class=\"tabular-nums\">{{ total }}</UiBadge>\n            </h1>\n          </slot>\n          <slot name=\"description\">\n            <p class=\"text-muted-foreground mt-1 text-sm\">{{ props.description }}</p>\n          </slot>\n        </div>\n        <slot>\n          <div class=\"flex items-center gap-2\">\n            <UiButton variant=\"outline\">\n              <Icon name=\"lucide:download\" class=\"size-4\" />\n              Export\n            </UiButton>\n            <UiButton>\n              <Icon name=\"lucide:plus\" class=\"size-4\" />\n              Add task\n            </UiButton>\n          </div>\n        </slot>\n      </div>\n\n      <div class=\"grid grid-cols-3 divide-x rounded-xl border\">\n        <div v-for=\"stat in props.stats\" :key=\"stat.label\" class=\"px-4 py-3 md:px-5\">\n          <p class=\"text-muted-foreground text-xs\">{{ stat.label }}</p>\n          <div class=\"mt-1 flex items-baseline gap-2\">\n            <span class=\"text-xl font-bold tabular-nums md:text-2xl\">{{ stat.value }}</span>\n            <span\n              class=\"hidden items-center text-xs font-medium sm:flex\"\n              :class=\"stat.up ? 'text-green-600' : 'text-red-500'\"\n            >\n              <Icon\n                :name=\"stat.up ? 'lucide:trending-up' : 'lucide:trending-down'\"\n                class=\"mr-0.5 size-3\"\n              />\n              {{ stat.change }}\n            </span>\n          </div>\n        </div>\n      </div>\n\n      <div class=\"flex flex-col gap-3\">\n        <div class=\"flex flex-wrap items-center gap-2\">\n          <div class=\"relative min-w-48 flex-1 md:max-w-xs\">\n            <Icon\n              name=\"lucide:search\"\n              class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n            />\n            <UiInput\n              v-model=\"query\"\n              placeholder=\"Search tasks\"\n              class=\"pl-9\"\n              aria-label=\"Search tasks\"\n            />\n          </div>\n          <UiNativeSelect v-model=\"status\" class=\"w-36\" aria-label=\"Status\">\n            <option value=\"\">All statuses</option>\n            <option v-for=\"option in props.statuses\" :key=\"option\">{{ option }}</option>\n          </UiNativeSelect>\n          <UiNativeSelect v-model=\"sort\" class=\"w-40\" aria-label=\"Sort by\">\n            <option>Newest first</option>\n            <option>Oldest first</option>\n            <option>Due date</option>\n          </UiNativeSelect>\n          <UiToggleGroup\n            v-model=\"view\"\n            type=\"single\"\n            variant=\"outline\"\n            class=\"ml-auto\"\n            aria-label=\"View\"\n          >\n            <UiToggleGroupItem value=\"list\" aria-label=\"List view\">\n              <Icon name=\"lucide:list\" class=\"size-4\" />\n            </UiToggleGroupItem>\n            <UiToggleGroupItem value=\"grid\" aria-label=\"Grid view\">\n              <Icon name=\"lucide:layout-grid\" class=\"size-4\" />\n            </UiToggleGroupItem>\n          </UiToggleGroup>\n        </div>\n\n        <div v-if=\"chips.length\" class=\"flex flex-wrap items-center gap-2\">\n          <span class=\"text-muted-foreground text-xs\">Filters</span>\n          <button\n            v-for=\"chip in chips\"\n            :key=\"chip.label\"\n            type=\"button\"\n            class=\"bg-muted hover:bg-accent flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-medium transition-colors\"\n            @click=\"chip.clear()\"\n          >\n            {{ chip.label }}\n            <Icon name=\"lucide:x\" class=\"size-3\" />\n          </button>\n          <UiButton variant=\"link\" size=\"xs\" @click=\"clearAll\">Clear all</UiButton>\n        </div>\n      </div>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      stats?: { label: string; value: string; change: string; up: boolean }[];\n      statuses?: string[];\n    }>(),\n    {\n      title: \"Tasks\",\n      description: \"Everything your team is working on this sprint.\",\n      stats: () => [\n        { label: \"Total\", value: \"156\", change: \"12%\", up: true },\n        { label: \"Active\", value: \"42\", change: \"4%\", up: true },\n        { label: \"Completed\", value: \"114\", change: \"2%\", up: false },\n      ],\n      statuses: () => [\"To do\", \"In progress\", \"In review\", \"Done\"],\n    }\n  );\n\n  const total = computed(() => props.stats[0]?.value);\n  const query = ref(\"\");\n  const status = ref(\"\");\n  const sort = ref(\"Newest first\");\n  const view = ref(\"list\");\n\n  const chips = computed(() => [\n    ...(query.value ? [{ label: `\"${query.value}\"`, clear: () => (query.value = \"\") }] : []),\n    ...(status.value ? [{ label: status.value, clear: () => (status.value = \"\") }] : []),\n  ]);\n\n  function clearAll() {\n    query.value = \"\";\n    status.value = \"\";\n  }\n</script>\n","category":"Header","description":"List page header with stats and a working filter toolbar. Features: Title with count badge, trend stats, search, status filter, sort select, list and grid view toggle, active filter chips with clear","path":"App/Header/BlockAppHeader9.vue","components":["badge","button","container","input","native-select","toggle-group"]},{"name":"Contact Header 1","fileName":"BlockContactHeader1.vue","file":"<template>\n  <!-- \n    Centered contact form with simple layout\n    Features: Centered header, inline form with validation, staggered animations\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-16\">\n      <UiContainer class=\"py-16 text-center\">\n        <slot name=\"headline\">\n          <Motion\n            v-if=\"headline\"\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-primary font-semibold\"\n          >\n            {{ headline }}\n          </Motion>\n        </slot>\n        <slot name=\"title\">\n          <Motion\n            as=\"h2\"\n            :variants=\"childVariant\"\n            class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n          >\n            {{ title }}\n          </Motion>\n        </slot>\n        <slot name=\"description\">\n          <Motion\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n          >\n            {{ description }}\n          </Motion>\n        </slot>\n      </UiContainer>\n      <Motion :variants=\"childVariant\" as=\"form\" class=\"mx-auto max-w-[480px]\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-6\">\n          <Motion :variants=\"childVariant\" class=\"grid grid-cols-1 gap-6 md:grid-cols-2\">\n            <div><UiVeeInput label=\"First name\" placeholder=\"First name\" name=\"firstName\" /></div>\n            <div><UiVeeInput label=\"Last name\" placeholder=\"Last name\" name=\"lastName\" /></div>\n          </Motion>\n          <Motion :variants=\"childVariant\">\n            <UiVeeInput label=\"Email\" placeholder=\"me@example.com\" type=\"email\" name=\"email\" />\n          </Motion>\n          <Motion :variants=\"childVariant\">\n            <UiVeeInput label=\"Phone\" type=\"tel\" name=\"phone\" />\n          </Motion>\n          <Motion :variants=\"childVariant\">\n            <UiVeeTextarea\n              :rows=\"4\"\n              label=\"Message\"\n              placeholder=\"Leave us a message...\"\n              name=\"message\"\n            />\n          </Motion>\n          <Motion :variants=\"childVariant\">\n            <UiButton class=\"w-full\" type=\"submit\">\n              Send message\n              <Icon name=\"lucide:send\" class=\"ml-2 h-4 w-4\" />\n            </UiButton>\n          </Motion>\n        </fieldset>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const schema = object({\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    email: string().email().required().label(\"Email\"),\n    phone: string().required().label(\"Phone\"),\n    message: string().required().label(\"Message\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n\n    useSonner.success(\"Message sent\", {\n      description: \"We'll get back to you as soon as possible.\",\n    });\n  });\n\n  const headline = \"Contact us\";\n  const title = \"Get in touch\";\n  const description = \"We'd love to hear from you. Please fill out this form.\";\n</script>\n","category":"Header","description":"Centered contact form with simple layout. Features: Centered header, inline form with validation, staggered animations","path":"Contact/Header/BlockContactHeader1.vue","components":["button","container","vee-input","vee-textarea"]},{"name":"Contact Header 2","fileName":"BlockContactHeader2.vue","file":"<template>\n  <!-- \n    Contact form with Google Maps integration\n    Features: Two-column layout, form with map embed, animated entrance\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer\n      class=\"grid grid-cols-1 items-center overflow-x-hidden py-10 lg:min-h-[800px] lg:grid-cols-2 lg:gap-20\"\n    >\n      <Motion :variants=\"childVariant\" class=\"mx-auto\">\n        <h1 class=\"mb-4 text-4xl font-semibold lg:mb-6 lg:text-5xl\">Contact us</h1>\n        <p class=\"text-muted-foreground mb-12 text-lg lg:text-xl\">\n          Our friendly team would love to hear from you.\n        </p>\n        <form class=\"max-w-[480px]\" @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-6\">\n            <Motion :variants=\"childVariant\" class=\"grid grid-cols-1 gap-6 md:grid-cols-2\">\n              <div><UiVeeInput label=\"First name\" placeholder=\"First name\" name=\"firstName\" /></div>\n              <div><UiVeeInput label=\"Last name\" placeholder=\"Last name\" name=\"lastName\" /></div>\n            </Motion>\n            <Motion :variants=\"childVariant\">\n              <UiVeeInput label=\"Email\" placeholder=\"me@example.com\" type=\"email\" name=\"email\" />\n            </Motion>\n            <Motion :variants=\"childVariant\">\n              <UiVeeInput label=\"Phone\" type=\"tel\" name=\"phone\" />\n            </Motion>\n            <Motion :variants=\"childVariant\">\n              <UiVeeTextarea\n                :rows=\"5\"\n                label=\"Message\"\n                placeholder=\"Leave us a message...\"\n                name=\"message\"\n              />\n            </Motion>\n            <Motion :variants=\"childVariant\">\n              <UiButton class=\"w-full\" type=\"submit\">\n                Send message\n                <Icon name=\"lucide:send\" class=\"ml-2 h-4 w-4\" />\n              </UiButton>\n            </Motion>\n          </fieldset>\n        </form>\n      </Motion>\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, x: 30 },\n          animate: {\n            opacity: 1,\n            x: 0,\n            transition: {\n              type: 'spring',\n              stiffness: 200,\n              damping: 25,\n            },\n          },\n        }\"\n        class=\"mt-10 h-[300px] w-full overflow-hidden rounded-lg shadow-lg lg:mt-0 lg:h-full lg:rounded-xl\"\n      >\n        <iframe\n          src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d60706.4783868638!2d-76.84185590241378!3d18.01801356612945!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8edb3e4e09940847%3A0xbcee137f153b407f!2sMegaMart%20Kingston!5e0!3m2!1sen!2sjm!4v1705346784307!5m2!1sen!2sjm\"\n          width=\"800\"\n          height=\"800\"\n          class=\"h-full w-full\"\n          style=\"border: 0\"\n          allowfullscreen=\"true\"\n          loading=\"lazy\"\n          referrerpolicy=\"no-referrer-when-downgrade\"\n        />\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const schema = object({\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    email: string().email().required().label(\"Email\"),\n    phone: string().required().label(\"Phone\"),\n    message: string().required().label(\"Message\"),\n  });\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n\n    useSonner.success(\"Message sent\", {\n      description: \"We'll get back to you as soon as possible.\",\n    });\n  });\n</script>\n","category":"Header","description":"Contact form with Google Maps integration. Features: Two-column layout, form with map embed, animated entrance","path":"Contact/Header/BlockContactHeader2.vue","components":["button","container","vee-input","vee-textarea"]},{"name":"Contact Header 3","fileName":"BlockContactHeader3.vue","file":"<template>\n  <!-- \n    Contact form with image showcase\n    Features: Two-column layout, form with decorative image, animated elements\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer\n      class=\"grid grid-cols-1 items-center overflow-x-hidden py-10 lg:min-h-[800px] lg:grid-cols-2 lg:gap-5\"\n    >\n      <Motion :variants=\"childVariant\" class=\"mx-auto\">\n        <h1 class=\"mb-4 text-4xl font-semibold lg:mb-6 lg:text-5xl\">Contact us</h1>\n        <p class=\"text-muted-foreground mb-12 text-lg lg:text-xl\">\n          Our friendly team would love to hear from you.\n        </p>\n        <form class=\"max-w-[480px]\" @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-6\">\n            <Motion :variants=\"childVariant\" class=\"grid grid-cols-1 gap-6 md:grid-cols-2\">\n              <div><UiVeeInput label=\"First name\" placeholder=\"First name\" name=\"firstName\" /></div>\n              <div><UiVeeInput label=\"Last name\" placeholder=\"Last name\" name=\"lastName\" /></div>\n            </Motion>\n            <Motion :variants=\"childVariant\">\n              <UiVeeInput label=\"Email\" placeholder=\"me@example.com\" type=\"email\" name=\"email\" />\n            </Motion>\n            <Motion :variants=\"childVariant\">\n              <UiVeeInput label=\"Phone\" type=\"tel\" name=\"phone\" />\n            </Motion>\n            <Motion :variants=\"childVariant\">\n              <UiVeeTextarea\n                :rows=\"5\"\n                label=\"Message\"\n                placeholder=\"Leave us a message...\"\n                name=\"message\"\n              />\n            </Motion>\n            <Motion :variants=\"childVariant\">\n              <UiButton class=\"w-full\" type=\"submit\">\n                Send message\n                <Icon name=\"lucide:send\" class=\"ml-2 h-4 w-4\" />\n              </UiButton>\n            </Motion>\n          </fieldset>\n        </form>\n      </Motion>\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, x: 30 },\n          animate: {\n            opacity: 1,\n            x: 0,\n            transition: {\n              type: 'spring',\n              stiffness: 200,\n              damping: 25,\n            },\n          },\n        }\"\n        class=\"mt-10 h-[300px] w-full overflow-hidden rounded-lg shadow-lg lg:mt-0 lg:h-full lg:rounded-xl\"\n      >\n        <img\n          src=\"https://images.unsplash.com/photo-1587560699334-bea93391dcef?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n          alt=\"Contact us image\"\n          width=\"800\"\n          height=\"800\"\n          class=\"h-full w-full object-cover transition-transform duration-500 hover:scale-105\"\n        />\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const schema = object({\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    email: string().email().required().label(\"Email\"),\n    phone: string().required().label(\"Phone\"),\n    message: string().required().label(\"Message\"),\n  });\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n    useSonner.success(\"Message Sent\", {\n      description: \"We'll get back to you as soon as possible.\",\n    });\n  });\n</script>\n","category":"Header","description":"Contact form with image showcase. Features: Two-column layout, form with decorative image, animated elements","path":"Contact/Header/BlockContactHeader3.vue","components":["button","container","vee-input","vee-textarea"]},{"name":"Contact Header 4","fileName":"BlockContactHeader4.vue","file":"<template>\n  <!-- \n    Contact information cards with icons\n    Features: Three-column info cards, icon badges, staggered animations\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-10\">\n      <UiContainer class=\"py-16 text-center\">\n        <slot name=\"headline\">\n          <Motion\n            v-if=\"headline\"\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-primary font-semibold\"\n          >\n            {{ headline }}\n          </Motion>\n        </slot>\n        <slot name=\"title\">\n          <Motion\n            as=\"h2\"\n            :variants=\"childVariant\"\n            class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n          >\n            {{ title }}\n          </Motion>\n        </slot>\n        <slot name=\"description\">\n          <Motion\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n          >\n            {{ description }}\n          </Motion>\n        </slot>\n      </UiContainer>\n      <section class=\"grid grid-cols-1 gap-8 lg:grid-cols-3\">\n        <template v-for=\"c in contactInfo\" :key=\"c.title\">\n          <Motion\n            :variants=\"childVariant\"\n            class=\"group border-border bg-card flex flex-col items-center gap-2 rounded-lg border p-6 transition-shadow hover:shadow-lg\"\n          >\n            <div\n              class=\"bg-primary/20 group-hover:bg-primary/30 flex h-12 w-12 items-center justify-center rounded-full transition-colors\"\n            >\n              <Icon :name=\"c.icon\" class=\"text-primary h-6 w-6\" />\n            </div>\n            <h3 class=\"mt-4 text-lg font-medium lg:text-xl\">{{ c.title }}</h3>\n            <p class=\"text-muted-foreground text-center\">\n              {{ c.description }}\n            </p>\n            <a\n              :href=\"c.link\"\n              target=\"_blank\"\n              class=\"text-primary text-center font-medium hover:underline\"\n            >\n              {{ c.value }}\n            </a>\n          </Motion>\n        </template>\n      </section>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const contactInfo = [\n    {\n      title: \"Email\",\n      description: \"Our friendly team is here to help.\",\n      value: \"admin@marketplace.com\",\n      icon: \"heroicons:envelope\",\n      link: \"mailto:admin@marketplace.com\",\n    },\n    {\n      title: \"Office\",\n      description: \"Come say hello at our office HQ.\",\n      value: \"100 West Road, Cityvale, SomeCountry\",\n      icon: \"heroicons:map-pin\",\n      link: \"#\",\n    },\n    {\n      title: \"Phone\",\n      description: \"Mon-Fri from 8am to 5pm.\",\n      value: \"1-800-123-4567\",\n      icon: \"heroicons:phone\",\n      link: \"tel:1-800-123-4567\",\n    },\n  ];\n\n  const headline = \"Contact us\";\n  const title = \"We'd love to hear from you\";\n  const description = \"Our friendly team is always here to chat.\";\n</script>\n","category":"Header","description":"Contact information cards with icons. Features: Three-column info cards, icon badges, staggered animations","path":"Contact/Header/BlockContactHeader4.vue","components":["container"]},{"name":"Contact Header 5","fileName":"BlockContactHeader5.vue","file":"<template>\n  <!-- \n    Multiple locations with map showcase\n    Features: Large map embed, location cards below, staggered animations\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"pb-10\">\n      <UiContainer class=\"py-16 text-center\">\n        <slot name=\"headline\">\n          <Motion\n            v-if=\"headline\"\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-primary font-semibold\"\n          >\n            {{ headline }}\n          </Motion>\n        </slot>\n        <slot name=\"title\">\n          <Motion\n            as=\"h2\"\n            :variants=\"childVariant\"\n            class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n          >\n            {{ title }}\n          </Motion>\n        </slot>\n        <slot name=\"description\">\n          <Motion\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\"\n          >\n            {{ description }}\n          </Motion>\n        </slot>\n      </UiContainer>\n      <Motion\n        :variants=\"childVariant\"\n        class=\"h-[300px] w-full overflow-hidden rounded-lg shadow-lg lg:h-[450px] lg:rounded-xl\"\n      >\n        <iframe\n          src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d60706.4783868638!2d-76.84185590241378!3d18.01801356612945!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8edb3e4e09940847%3A0xbcee137f153b407f!2sMegaMart%20Kingston!5e0!3m2!1sen!2sjm!4v1705346784307!5m2!1sen!2sjm\"\n          width=\"800\"\n          height=\"800\"\n          class=\"h-full w-full\"\n          style=\"border: 0\"\n          allowfullscreen=\"true\"\n          loading=\"lazy\"\n          referrerpolicy=\"no-referrer-when-downgrade\"\n        />\n      </Motion>\n      <section class=\"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-3\">\n        <template v-for=\"c in contactInfo\" :key=\"c.title\">\n          <Motion\n            :variants=\"childVariant\"\n            class=\"group border-border bg-card flex flex-col items-center gap-2 rounded-lg border p-6 transition-shadow hover:shadow-lg\"\n          >\n            <div\n              class=\"bg-primary/20 group-hover:bg-primary/30 flex h-12 w-12 items-center justify-center rounded-full transition-colors\"\n            >\n              <Icon :name=\"c.icon\" class=\"text-primary h-6 w-6\" />\n            </div>\n            <h3 class=\"mt-4 text-lg font-medium lg:text-xl\">{{ c.title }}</h3>\n            <p class=\"text-muted-foreground text-center\">\n              {{ c.description }}\n            </p>\n            <a\n              :href=\"c.link\"\n              target=\"_blank\"\n              class=\"text-primary text-center font-medium text-pretty hover:underline\"\n            >\n              {{ c.value }}\n            </a>\n          </Motion>\n        </template>\n      </section>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const contactInfo = [\n    {\n      title: \"Head Office\",\n      description: \"Mon-Sat 9am to 5pm.\",\n      value: \"100 West Road, Cityvale, SomeCountry\",\n      icon: \"heroicons:map-pin\",\n      link: \"#\",\n    },\n    {\n      title: \"Retail store\",\n      description: \"Mon-Sat 9am to 5pm.\",\n      value: \"13 Coast Road, Cityvale, SomeCountry\",\n      icon: \"heroicons:map-pin\",\n      link: \"#\",\n    },\n    {\n      title: \"Showroom\",\n      description: \"Mon-Sat 9am to 5pm.\",\n      value: \"Lot 16 Flame Road, Cityvale, SomeCountry\",\n      icon: \"heroicons:map-pin\",\n      link: \"#\",\n    },\n  ];\n\n  const headline = \"Contact us\";\n  const title = \"Our Locations\";\n  const description = \"Come visit our friendly team at one of our offices.\";\n</script>\n","category":"Header","description":"Multiple locations with map showcase. Features: Large map embed, location cards below, staggered animations","path":"Contact/Header/BlockContactHeader5.vue","components":["container"]},{"name":"Contact Header 6","fileName":"BlockContactHeader6.vue","file":"<template>\n  <!-- \n    Contact form with team support cards\n    Features: Form with support team info, avatar cards, badge indicators\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16\">\n      <div class=\"mx-auto max-w-[900px]\">\n        <div class=\"text-center\">\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary font-semibold\"\n            >Contact support</Motion\n          >\n          <Motion\n            as=\"h2\"\n            :variants=\"childVariant\"\n            class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n          >\n            Get help from our team\n          </Motion>\n          <Motion\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mx-auto mb-12 max-w-[600px] text-lg lg:text-xl\"\n          >\n            Our dedicated support team is here to assist you with any questions or concerns.\n          </Motion>\n        </div>\n\n        <div class=\"grid gap-5 lg:grid-cols-[1fr_300px] lg:gap-10 xl:grid-cols-[1fr_380px]\">\n          <Motion :variants=\"childVariant\" as=\"form\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-6\">\n              <div class=\"grid grid-cols-1 gap-6 md:grid-cols-2\">\n                <UiVeeInput label=\"First name\" placeholder=\"First name\" name=\"firstName\" />\n                <UiVeeInput label=\"Last name\" placeholder=\"Last name\" name=\"lastName\" />\n              </div>\n              <UiVeeInput label=\"Email\" placeholder=\"me@example.com\" type=\"email\" name=\"email\" />\n              <UiVeeInput label=\"Subject\" placeholder=\"How can we help?\" name=\"subject\" />\n              <UiVeeTextarea\n                :rows=\"5\"\n                label=\"Message\"\n                placeholder=\"Tell us more...\"\n                name=\"message\"\n              />\n              <UiButton class=\"w-full\" type=\"submit\">\n                Send message\n                <Icon name=\"lucide:send\" class=\"ml-2 h-4 w-4\" />\n              </UiButton>\n            </fieldset>\n          </Motion>\n\n          <Motion :variants=\"childVariant\" class=\"space-y-4\">\n            <UiCard class=\"py-4\">\n              <UiCardContent>\n                <h3 class=\"mb-4 text-lg font-semibold\">Support Team</h3>\n                <div class=\"space-y-4\">\n                  <div v-for=\"member in team\" :key=\"member.name\" class=\"flex items-start gap-3\">\n                    <UiAvatar class=\"h-10 w-10\">\n                      <UiAvatarImage :src=\"member.avatar\" :alt=\"member.name\" />\n                      <UiAvatarFallback>{{ member.initials }}</UiAvatarFallback>\n                    </UiAvatar>\n                    <div class=\"flex min-w-0 flex-1 flex-col\">\n                      <div class=\"flex items-center gap-1\">\n                        <p class=\"font-medium\">{{ member.name }}</p>\n                        <UiBadge variant=\"outline\" class=\"text-xs md:hidden xl:block\">{{\n                          member.role\n                        }}</UiBadge>\n                      </div>\n                      <p class=\"text-muted-foreground text-sm\">{{ member.specialty }}</p>\n                    </div>\n                  </div>\n                </div>\n              </UiCardContent>\n            </UiCard>\n\n            <UiCard class=\"py-4\">\n              <UiCardContent>\n                <h3 class=\"mb-3 text-lg font-semibold\">Quick Info</h3>\n                <div class=\"space-y-3 text-sm\">\n                  <div class=\"flex items-center gap-2\">\n                    <Icon name=\"heroicons:clock\" class=\"text-muted-foreground h-5 w-5\" />\n                    <span class=\"text-muted-foreground\">Response time: ~2 hours</span>\n                  </div>\n                  <div class=\"flex items-center gap-2\">\n                    <Icon name=\"heroicons:envelope\" class=\"text-muted-foreground h-5 w-5\" />\n                    <span class=\"text-muted-foreground\">support@company.com</span>\n                  </div>\n                  <div class=\"flex items-center gap-2\">\n                    <Icon\n                      name=\"heroicons:chat-bubble-left-right\"\n                      class=\"text-muted-foreground h-5 w-5\"\n                    />\n                    <span class=\"text-muted-foreground\">24/7 Live chat available</span>\n                  </div>\n                </div>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n        </div>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const schema = object({\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    email: string().email().required().label(\"Email\"),\n    subject: string().required().label(\"Subject\"),\n    message: string().required().label(\"Message\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n    useSonner.success(\"Message sent\", {\n      description: \"We'll get back to you as soon as possible.\",\n    });\n  });\n\n  const team = [\n    {\n      name: \"Sarah Johnson\",\n      role: \"Lead Support\",\n      specialty: \"Technical issues\",\n      avatar: \"https://i.pravatar.cc/150?img=1\",\n      initials: \"SJ\",\n    },\n    {\n      name: \"Mike Chen\",\n      role: \"Support Agent\",\n      specialty: \"Account & billing\",\n      avatar: \"https://i.pravatar.cc/150?img=13\",\n      initials: \"MC\",\n    },\n    {\n      name: \"Emily Davis\",\n      role: \"Support Agent\",\n      specialty: \"General inquiries\",\n      avatar: \"https://i.pravatar.cc/150?img=5\",\n      initials: \"ED\",\n    },\n  ];\n</script>\n","category":"Header","description":"Contact form with team support cards. Features: Form with support team info, avatar cards, badge indicators","path":"Contact/Header/BlockContactHeader6.vue","components":["avatar","badge","button","card","container","vee-input","vee-textarea"]},{"name":"Contact Header 7","fileName":"BlockContactHeader7.vue","file":"<template>\n  <!-- \n    FAQ-focused contact section\n    Features: Accordion FAQ with contact form, two-column layout, animated elements\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16\">\n      <div class=\"mx-auto max-w-[1100px]\">\n        <div class=\"text-center\">\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary font-semibold\"\n            >Support</Motion\n          >\n          <Motion\n            as=\"h2\"\n            :variants=\"childVariant\"\n            class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n          >\n            How can we help?\n          </Motion>\n          <Motion\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mx-auto mb-12 max-w-[700px] text-lg lg:text-xl\"\n          >\n            Check out our frequently asked questions or reach out to us directly.\n          </Motion>\n        </div>\n\n        <div class=\"grid gap-10 lg:grid-cols-2\">\n          <Motion :variants=\"childVariant\" class=\"space-y-4\">\n            <h3 class=\"text-xl font-semibold\">Frequently Asked Questions</h3>\n            <UiAccordion type=\"single\" collapsible>\n              <UiAccordionItem v-for=\"(faq, idx) in faqs\" :key=\"idx\" :value=\"`item-${idx}`\">\n                <UiAccordionTrigger>{{ faq.question }}</UiAccordionTrigger>\n                <UiAccordionContent>{{ faq.answer }}</UiAccordionContent>\n              </UiAccordionItem>\n            </UiAccordion>\n          </Motion>\n\n          <Motion :variants=\"childVariant\">\n            <UiCard class=\"\">\n              <UiCardContent>\n                <h3 class=\"mb-5 text-xl font-semibold\">Still have questions?</h3>\n                <form @submit=\"submit\">\n                  <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n                    <UiVeeInput label=\"Name\" placeholder=\"Your name\" name=\"name\" />\n                    <UiVeeInput\n                      label=\"Email\"\n                      placeholder=\"me@example.com\"\n                      type=\"email\"\n                      name=\"email\"\n                    />\n                    <UiVeeTextarea\n                      :rows=\"4\"\n                      label=\"Question\"\n                      placeholder=\"Ask us anything...\"\n                      name=\"question\"\n                    />\n                    <UiButton class=\"w-full\" type=\"submit\">\n                      Submit question\n                      <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n                    </UiButton>\n                  </fieldset>\n                </form>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n        </div>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const schema = object({\n    name: string().required().label(\"Name\"),\n    email: string().email().required().label(\"Email\"),\n    question: string().required().label(\"Question\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n    useSonner.success(\"Question submitted\", {\n      description: \"We'll respond to your email shortly.\",\n    });\n  });\n\n  const faqs = [\n    {\n      question: \"What are your business hours?\",\n      answer:\n        \"We're available Monday through Friday, 9 AM to 6 PM EST. Our support team responds to emails within 24 hours.\",\n    },\n    {\n      question: \"How do I track my order?\",\n      answer:\n        \"Once your order ships, you'll receive a tracking number via email. You can also check your order status in your account dashboard.\",\n    },\n    {\n      question: \"What's your return policy?\",\n      answer:\n        \"We offer a 30-day return policy for most items. Products must be in original condition with tags attached. Contact us to initiate a return.\",\n    },\n    {\n      question: \"Do you offer international shipping?\",\n      answer:\n        \"Yes, we ship to over 50 countries worldwide. Shipping costs and delivery times vary by location.\",\n    },\n    {\n      question: \"How can I change my account information?\",\n      answer:\n        \"You can update your account details by logging in and navigating to Settings. For email changes, contact our support team for verification.\",\n    },\n  ];\n</script>\n","category":"Header","description":"FAQ-focused contact section. Features: Accordion FAQ with contact form, two-column layout, animated elements","path":"Contact/Header/BlockContactHeader7.vue","components":["accordion","button","card","container","vee-input","vee-textarea"]},{"name":"Contact Header 8","fileName":"BlockContactHeader8.vue","file":"<template>\n  <!-- \n    Gradient hero contact section\n    Features: Full-width gradient background, centered form, social links, animated blobs\n  -->\n  <div\n    class=\"from-primary/10 via-background to-primary/5 relative overflow-hidden bg-linear-to-br py-20\"\n  >\n    <!-- Animated background blobs -->\n    <div class=\"absolute inset-0 overflow-hidden\">\n      <Motion\n        :variants=\"{\n          initial: { scale: 0.8, opacity: 0.3 },\n          animate: {\n            scale: [0.8, 1, 0.8],\n            opacity: [0.3, 0.5, 0.3],\n            transition: {\n              duration: 8,\n              repeat: Infinity,\n              ease: 'easeInOut',\n            },\n          },\n        }\"\n        initial=\"initial\"\n        animate=\"animate\"\n        class=\"bg-primary/20 absolute -top-20 -right-20 h-96 w-96 rounded-full blur-3xl\"\n      />\n      <Motion\n        :variants=\"{\n          initial: { scale: 0.8, opacity: 0.3 },\n          animate: {\n            scale: [0.8, 1.2, 0.8],\n            opacity: [0.3, 0.4, 0.3],\n            transition: {\n              duration: 10,\n              repeat: Infinity,\n              ease: 'easeInOut',\n              delay: 2,\n            },\n          },\n        }\"\n        initial=\"initial\"\n        animate=\"animate\"\n        class=\"bg-primary/15 absolute -bottom-32 -left-32 h-96 w-96 rounded-full blur-3xl\"\n      />\n    </div>\n\n    <Motion\n      initial=\"initial\"\n      while-in-view=\"animate\"\n      :in-view-options=\"{ once: true }\"\n      as-child\n      :variants=\"{\n        initial: { opacity: 0 },\n        animate: {\n          opacity: 1,\n          transition: {\n            when: 'beforeChildren',\n            delayChildren: stagger(0.1),\n          },\n        },\n      }\"\n    >\n      <UiContainer class=\"relative z-10\">\n        <div class=\"mx-auto max-w-[600px] text-center\">\n          <Motion\n            as=\"h2\"\n            :variants=\"childVariant\"\n            class=\"mb-4 text-4xl font-bold lg:mb-6 lg:text-5xl\"\n          >\n            Let's start a conversation\n          </Motion>\n          <Motion\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mb-10 text-lg lg:text-xl\"\n          >\n            We're always happy to hear from you. Send us a message and we'll respond as soon as\n            possible.\n          </Motion>\n\n          <Motion :variants=\"childVariant\" as-child>\n            <UiCard class=\"shadow-xs\">\n              <UiCardContent class=\"flex flex-col gap-6\">\n                <form @submit=\"submit\">\n                  <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n                    <div class=\"grid grid-cols-1 gap-5 md:grid-cols-2\">\n                      <UiVeeInput label=\"First name\" placeholder=\"John\" name=\"firstName\" />\n                      <UiVeeInput label=\"Last name\" placeholder=\"Doe\" name=\"lastName\" />\n                    </div>\n                    <UiVeeInput\n                      label=\"Email\"\n                      placeholder=\"john@example.com\"\n                      type=\"email\"\n                      name=\"email\"\n                    />\n                    <UiVeeInput label=\"Phone (optional)\" type=\"tel\" name=\"phone\" />\n                    <UiVeeTextarea\n                      :rows=\"4\"\n                      label=\"Message\"\n                      placeholder=\"Your message...\"\n                      name=\"message\"\n                    />\n                    <UiButton class=\"w-full\" size=\"lg\" type=\"submit\">\n                      Send message\n                      <Icon name=\"lucide:send\" class=\"ml-2 h-4 w-4\" />\n                    </UiButton>\n                  </fieldset>\n                </form>\n\n                <UiDivider label=\"Or connect with us on\" />\n\n                <div class=\"flex items-center justify-center gap-4\">\n                  <UiButton variant=\"outline\" size=\"icon-sm\" as-child>\n                    <a href=\"#\" target=\"_blank\" aria-label=\"Twitter\">\n                      <Icon name=\"logos:twitter\" class=\"h-4 w-4\" />\n                    </a>\n                  </UiButton>\n                  <UiButton variant=\"outline\" size=\"icon-sm\" as-child>\n                    <a href=\"#\" target=\"_blank\" aria-label=\"LinkedIn\">\n                      <Icon name=\"logos:linkedin-icon\" class=\"h-4 w-4\" />\n                    </a>\n                  </UiButton>\n                  <UiButton variant=\"outline\" size=\"icon-sm\" as-child>\n                    <a href=\"#\" target=\"_blank\" aria-label=\"Facebook\">\n                      <Icon name=\"logos:facebook\" class=\"h-4 w-4\" />\n                    </a>\n                  </UiButton>\n                  <UiButton variant=\"outline\" size=\"icon-sm\" as-child>\n                    <a href=\"#\" target=\"_blank\" aria-label=\"Instagram\">\n                      <Icon name=\"skill-icons:instagram\" class=\"h-4 w-4\" />\n                    </a>\n                  </UiButton>\n                </div>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n        </div>\n      </UiContainer>\n    </Motion>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const schema = object({\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    email: string().email().required().label(\"Email\"),\n    phone: string().label(\"Phone\"),\n    message: string().required().label(\"Message\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n    useSonner.success(\"Message sent\", {\n      description: \"We'll get back to you soon!\",\n    });\n  });\n</script>\n","category":"Header","description":"Gradient hero contact section. Features: Full-width gradient background, centered form, social links, animated blobs","path":"Contact/Header/BlockContactHeader8.vue","components":["button","card","container","divider","vee-input","vee-textarea"]},{"name":"Contact Header 9","fileName":"BlockContactHeader9.vue","file":"<template>\n  <!-- \n    Department selection contact form\n    Features: Department chips, priority badge, estimated response time\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16\">\n      <div class=\"mx-auto max-w-[700px]\">\n        <div class=\"text-center\">\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary font-semibold\"\n            >Contact us</Motion\n          >\n          <Motion\n            as=\"h2\"\n            :variants=\"childVariant\"\n            class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\"\n          >\n            We're here to help\n          </Motion>\n          <Motion\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mb-10 text-lg lg:text-xl\"\n          >\n            Choose a department and we'll route your message to the right team.\n          </Motion>\n        </div>\n\n        <Motion :variants=\"childVariant\" as-child>\n          <UiCard class=\"p-8\">\n            <form @submit=\"submit\">\n              <fieldset :disabled=\"isSubmitting\" class=\"grid gap-6\">\n                <div>\n                  <label class=\"mb-3 block text-sm font-medium\">Select Department</label>\n                  <div class=\"flex flex-wrap gap-2\">\n                    <UiBadge\n                      v-for=\"dept in departments\"\n                      :key=\"dept.value\"\n                      :variant=\"selectedDepartment === dept.value ? 'default' : 'outline'\"\n                      class=\"cursor-pointer\"\n                      type=\"button\"\n                      @click=\"selectedDepartment = dept.value\"\n                    >\n                      <Icon :name=\"dept.icon\" class=\"mr-1.5 h-4 w-4\" />\n                      {{ dept.label }}\n                    </UiBadge>\n                  </div>\n                  <p\n                    v-if=\"selectedDepartment\"\n                    class=\"text-muted-foreground mt-2 flex items-center gap-1.5 text-sm\"\n                  >\n                    <Icon name=\"heroicons:clock\" class=\"h-4 w-4\" />\n                    Typical response time: {{ getResponseTime(selectedDepartment) }}\n                  </p>\n                </div>\n\n                <div class=\"grid grid-cols-1 gap-6 md:grid-cols-2\">\n                  <UiVeeInput label=\"First name\" placeholder=\"First name\" name=\"firstName\" />\n                  <UiVeeInput label=\"Last name\" placeholder=\"Last name\" name=\"lastName\" />\n                </div>\n\n                <UiVeeInput label=\"Email\" placeholder=\"me@example.com\" type=\"email\" name=\"email\" />\n                <UiVeeInput label=\"Subject\" placeholder=\"Brief description\" name=\"subject\" />\n\n                <UiVeeTextarea\n                  :rows=\"5\"\n                  label=\"Message\"\n                  placeholder=\"Tell us more...\"\n                  name=\"message\"\n                />\n                <UiVeeCheckbox id=\"urgent\" name=\"isUrgent\" label=\"This is a very urgent matter\" />\n\n                <UiButton class=\"w-full\" type=\"submit\">\n                  Send to\n                  {{\n                    selectedDepartment\n                      ? departments.find((d) => d.value === selectedDepartment)?.label\n                      : \"support\"\n                  }}\n                  <Icon name=\"lucide:send\" class=\"ml-2 h-4 w-4\" />\n                </UiButton>\n              </fieldset>\n            </form>\n          </UiCard>\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n  import { ref } from \"vue\";\n  import { bool, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const selectedDepartment = ref(\"sales\");\n  const isUrgent = ref(false);\n\n  const departments = [\n    { label: \"Sales\", value: \"sales\", icon: \"lucide:shopping-cart\", responseTime: \"1-2 hours\" },\n    { label: \"Support\", value: \"support\", icon: \"lucide:headphones\", responseTime: \"2-4 hours\" },\n    { label: \"Billing\", value: \"billing\", icon: \"lucide:credit-card\", responseTime: \"1-3 hours\" },\n    { label: \"Technical\", value: \"technical\", icon: \"lucide:code\", responseTime: \"3-6 hours\" },\n    { label: \"General\", value: \"general\", icon: \"lucide:mail\", responseTime: \"4-8 hours\" },\n  ];\n\n  const getResponseTime = (dept: string) => {\n    return departments.find((d) => d.value === dept)?.responseTime || \"4-8 hours\";\n  };\n\n  const schema = object({\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    email: string().email().required().label(\"Email\"),\n    subject: string().required().label(\"Subject\"),\n    message: string().required().label(\"Message\"),\n    isUrgent: bool().label(\"Is Urgent\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log({ ...values, department: selectedDepartment.value, urgent: isUrgent.value });\n    useSonner.success(\"Message sent\", {\n      description: `Your ${isUrgent.value ? \"urgent \" : \"\"}message has been sent to ${selectedDepartment.value}.`,\n    });\n  });\n</script>\n","category":"Header","description":"Department selection contact form. Features: Department chips, priority badge, estimated response time","path":"Contact/Header/BlockContactHeader9.vue","components":["badge","button","card","container","vee-checkbox","vee-input","vee-textarea"]},{"name":"Header Section 1","fileName":"BlockHeaderSection1.vue","file":"<template>\n  <UiContainer class=\"py-16 text-center lg:py-24\">\n    <slot name=\"headline\">\n      <p v-if=\"headline\" class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse justify-center gap-3 lg:w-auto lg:flex-row\">\n      <slot />\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"About us\",\n      description:\n        \"Learn more about our creative agency from the inside out. We take pride in offering the best services to our clients and partners.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection1.vue","components":["container"]},{"name":"Header Section 10","fileName":"BlockHeaderSection10.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <slot name=\"headline\">\n      <p class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse gap-3 md:w-auto md:flex-row\">\n      <slot>\n        <div class=\"md:w-[380px]\">\n          <form class=\"mt-5 flex flex-col gap-3 lg:flex-row lg:items-center\">\n            <div class=\"w-full\">\n              <UiVeeInput\n                icon=\"lucide:search\"\n                required\n                placeholder=\"Enter your email\"\n                aria-label=\"Enter your email\"\n              />\n            </div>\n          </form>\n        </div>\n      </slot>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"About us\",\n      description:\n        \"Learn more about our creative agency from the inside out. We take pride in offering the best services to our clients and partners.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection10.vue","components":["container","vee-input"]},{"name":"Header Section 11","fileName":"BlockHeaderSection11.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col justify-between gap-5 md:flex-row md:items-end\">\n      <div class=\"basis-1/2\">\n        <slot name=\"headline\">\n          <p class=\"text-primary font-semibold\">{{ headline }}</p>\n        </slot>\n        <slot name=\"title\">\n          <h2 class=\"mt-2 text-4xl font-bold text-balance md:mt-3 md:text-5xl\">\n            {{ title }}\n          </h2>\n        </slot>\n      </div>\n      <slot name=\"description\">\n        <p\n          class=\"text-muted-foreground max-w-[700px] basis-1/2 text-lg text-balance md:text-right lg:text-xl\"\n        >\n          {{ description }}\n        </p>\n      </slot>\n    </div>\n    <div class=\"mt-5 flex w-full flex-col-reverse gap-3 lg:w-auto lg:flex-row\">\n      <slot />\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"About us\",\n      description:\n        \"Learn more about our creative agency from the inside out. We take pride in offering the best services to our clients and partners.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection11.vue","components":["container"]},{"name":"Header Section 12","fileName":"BlockHeaderSection12.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col justify-between gap-5 md:flex-row md:items-end\">\n      <div class=\"basis-1/2\">\n        <slot name=\"headline\">\n          <p class=\"text-primary font-semibold\">{{ headline }}</p>\n        </slot>\n        <slot name=\"title\">\n          <h2 class=\"mt-2 text-4xl font-bold text-balance md:mt-3 md:text-5xl\">\n            {{ title }}\n          </h2>\n        </slot>\n      </div>\n      <slot name=\"description\">\n        <p\n          class=\"text-muted-foreground max-w-[700px] basis-1/2 text-lg text-balance md:text-right lg:text-xl\"\n        >\n          {{ description }}\n        </p>\n      </slot>\n    </div>\n    <div class=\"mt-8 flex w-full flex-col-reverse gap-3 sm:w-auto sm:flex-row\">\n      <UiButton variant=\"outline\">Contact sales</UiButton>\n      <UiButton>Get started</UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"About us\",\n      description:\n        \"Learn more about our creative agency from the inside out. We take pride in offering the best services to our clients and partners.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection12.vue","components":["button","container"]},{"name":"Header Section 13","fileName":"BlockHeaderSection13.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col justify-between gap-5 md:flex-row md:items-end\">\n      <div class=\"basis-1/2\">\n        <slot name=\"headline\">\n          <p class=\"text-primary font-semibold\">{{ headline }}</p>\n        </slot>\n        <slot name=\"title\">\n          <h2 class=\"mt-2 text-4xl font-bold text-balance md:mt-3 md:text-5xl\">\n            {{ title }}\n          </h2>\n        </slot>\n      </div>\n      <slot name=\"description\">\n        <p\n          class=\"text-muted-foreground max-w-[700px] basis-1/2 text-lg text-balance md:text-right lg:text-xl\"\n        >\n          {{ description }}\n        </p>\n      </slot>\n    </div>\n    <div class=\"mt-8 flex w-full flex-col-reverse gap-3 sm:w-auto sm:flex-row\">\n      <UiTabs class=\"w-full md:w-[450px]\" default-value=\"monthly\">\n        <UiTabsList class=\"grid h-auto w-full grid-cols-2\">\n          <UiTabsTrigger class=\"h-10\" value=\"monthly\">Monthly billing</UiTabsTrigger>\n          <UiTabsTrigger class=\"h-10\" value=\"annual\"\n            >Annual Billing\n            <UiBadge class=\"ml-2 hidden lg:block\" variant=\"outline\"\n              >Save 20%</UiBadge\n            ></UiTabsTrigger\n          >\n        </UiTabsList>\n      </UiTabs>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"Our Pricing\",\n      description: \"Choose the plan that works for you. All plans include a 14-day free trial.\",\n      title: \"Simple Pricing\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection13.vue","components":["badge","container","tabs"]},{"name":"Header Section 14","fileName":"BlockHeaderSection14.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col justify-between gap-5 md:flex-row md:items-end\">\n      <div class=\"basis-1/2\">\n        <slot name=\"headline\">\n          <p class=\"text-primary font-semibold\">{{ headline }}</p>\n        </slot>\n        <slot name=\"title\">\n          <h2 class=\"mt-2 text-4xl font-bold text-balance md:mt-3 md:text-5xl\">\n            {{ title }}\n          </h2>\n        </slot>\n      </div>\n      <slot name=\"description\">\n        <p\n          class=\"text-muted-foreground max-w-[700px] basis-1/2 text-lg text-balance md:text-right lg:text-xl\"\n        >\n          {{ description }}\n        </p>\n      </slot>\n    </div>\n    <div class=\"mt-8 flex w-full flex-col-reverse gap-3 sm:w-auto sm:flex-row\">\n      <div class=\"md:w-[480px]\">\n        <form class=\"flex flex-col gap-3 lg:flex-row lg:items-center\">\n          <div class=\"w-full lg:w-[335px]\">\n            <UiVeeInput required placeholder=\"Enter your email\" aria-label=\"Enter your email\" />\n          </div>\n          <p class=\"text-muted-foreground my-2 text-sm lg:hidden\">\n            We care about your data in our privacy policy.\n          </p>\n          <div>\n            <UiButton class=\"w-full whitespace-nowrap lg:w-auto\" type=\"submit\"\n              >Get started</UiButton\n            >\n          </div>\n        </form>\n        <p class=\"text-muted-foreground mt-3 hidden text-left text-sm lg:block\">\n          We care about your data in our privacy policy.\n        </p>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"The Company\",\n      description:\n        \"We are a team of professionals who are dedicated to providing the best services to our clients.\",\n      title: \"About Us\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection14.vue","components":["button","container","vee-input"]},{"name":"Header Section 15","fileName":"BlockHeaderSection15.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col justify-between gap-5 md:flex-row md:items-end\">\n      <div class=\"basis-1/2\">\n        <slot name=\"headline\">\n          <p class=\"text-primary font-semibold\">{{ headline }}</p>\n        </slot>\n        <slot name=\"title\">\n          <h2 class=\"mt-2 text-4xl font-bold text-balance md:mt-3 md:text-5xl\">\n            {{ title }}\n          </h2>\n        </slot>\n      </div>\n      <slot name=\"description\">\n        <p\n          class=\"text-muted-foreground max-w-[700px] basis-1/2 text-lg text-balance md:text-right lg:text-xl\"\n        >\n          {{ description }}\n        </p>\n      </slot>\n    </div>\n    <div class=\"mt-8 flex w-full flex-col-reverse gap-3 sm:w-auto sm:flex-row\">\n      <div class=\"w-full md:w-[380px]\">\n        <form class=\"flex flex-col gap-3 lg:flex-row lg:items-center\">\n          <div class=\"w-full\">\n            <UiVeeInput\n              icon=\"lucide:search\"\n              required\n              placeholder=\"Search...\"\n              aria-label=\"Search...\"\n            />\n          </div>\n        </form>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"The Company\",\n      description:\n        \"We are a team of professionals who are dedicated to providing the best services to our clients.\",\n      title: \"About Us\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection15.vue","components":["container","vee-input"]},{"name":"Header Section 2","fileName":"BlockHeaderSection2.vue","file":"<template>\n  <UiContainer class=\"py-16 text-center lg:py-24\">\n    <slot name=\"headline\">\n      <p class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse justify-center gap-3 md:w-auto md:flex-row\">\n      <slot>\n        <UiButton variant=\"outline\">Contact sales</UiButton>\n        <UiButton>Get started</UiButton>\n      </slot>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"About us\",\n      description:\n        \"Learn more about our creative agency from the inside out. We take pride in offering the best services to our clients and partners.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection2.vue","components":["button","container"]},{"name":"Header Section 3","fileName":"BlockHeaderSection3.vue","file":"<template>\n  <UiContainer class=\"py-16 text-center lg:py-24\">\n    <slot name=\"headline\">\n      <p class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse justify-center gap-3 md:w-auto md:flex-row\">\n      <UiTabs class=\"mx-auto mt-5 w-full md:w-[450px] lg:mt-7\" default-value=\"monthly\">\n        <UiTabsList class=\"grid h-auto w-full grid-cols-2\">\n          <UiTabsTrigger class=\"h-10\" value=\"monthly\">Monthly billing</UiTabsTrigger>\n          <UiTabsTrigger class=\"h-10\" value=\"annual\"\n            >Annual Billing\n            <UiBadge class=\"ml-2 hidden lg:block\" variant=\"outline\"\n              >Save 20%</UiBadge\n            ></UiTabsTrigger\n          >\n        </UiTabsList>\n      </UiTabs>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"Pricing\",\n      description:\n        \"We offer simple and transparent pricing. The price you see is the price you pay. No hidden fees. Cancel at any time.\",\n      title: \"Simple, transparent pricing\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection3.vue","components":["badge","container","tabs"]},{"name":"Header Section 4","fileName":"BlockHeaderSection4.vue","file":"<template>\n  <UiContainer class=\"py-16 text-center lg:py-24\">\n    <slot name=\"headline\">\n      <p class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse justify-center gap-3 md:w-auto md:flex-row\">\n      <slot>\n        <div class=\"md:w-[480px]\">\n          <form class=\"mt-8 flex flex-col gap-3 lg:mt-12 lg:flex-row lg:items-center\">\n            <div class=\"w-full lg:w-[335px]\">\n              <UiVeeInput required placeholder=\"Enter your email\" aria-label=\"Enter your email\" />\n            </div>\n            <p class=\"text-muted-foreground my-2 text-left text-sm md:hidden\">\n              We care about your data in our privacy policy.\n            </p>\n            <div>\n              <UiButton class=\"w-full whitespace-nowrap lg:w-auto\" type=\"submit\"\n                >Get started</UiButton\n              >\n            </div>\n          </form>\n          <p class=\"text-muted-foreground mt-3 hidden text-left text-sm md:block\">\n            We care about your data in our privacy policy.\n          </p>\n        </div>\n      </slot>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"About us\",\n      description:\n        \"Learn more about our creative agency from the inside out. We take pride in offering the best services to our clients and partners.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection4.vue","components":["button","container","vee-input"]},{"name":"Header Section 5","fileName":"BlockHeaderSection5.vue","file":"<template>\n  <UiContainer class=\"py-16 text-center lg:py-24\">\n    <slot name=\"headline\">\n      <p class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground mx-auto max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse justify-center gap-3 md:w-auto md:flex-row\">\n      <slot>\n        <div class=\"lg:w-[380px]\">\n          <form class=\"mt-8 flex flex-col gap-3 lg:mt-12 lg:flex-row lg:items-center\">\n            <div class=\"w-full\">\n              <UiVeeInput\n                icon=\"lucide:search\"\n                required\n                placeholder=\"Search...\"\n                aria-label=\"Search...\"\n              />\n            </div>\n          </form>\n        </div>\n      </slot>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"Resources\",\n      description:\n        \"We have a lot of resources for you. Check them out and let us know if you need help.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection5.vue","components":["container","vee-input"]},{"name":"Header Section 6","fileName":"BlockHeaderSection6.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <slot name=\"headline\">\n      <p class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse gap-3 lg:w-auto lg:flex-row\">\n      <slot />\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"About us\",\n      description:\n        \"Learn more about our creative agency from the inside out. We take pride in offering the best services to our clients and partners.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection6.vue","components":["container"]},{"name":"Header Section 7","fileName":"BlockHeaderSection7.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <slot name=\"headline\">\n      <p class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse gap-3 md:w-auto md:flex-row\">\n      <slot>\n        <UiButton size=\"lg\" class=\"mt-2 md:mt-5\" variant=\"outline\">Contact sales</UiButton>\n        <UiButton size=\"lg\" class=\"mt-2 md:mt-5\">Get started</UiButton>\n      </slot>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"About us\",\n      description:\n        \"Learn more about our creative agency from the inside out. We take pride in offering the best services to our clients and partners.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection7.vue","components":["button","container"]},{"name":"Header Section 8","fileName":"BlockHeaderSection8.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <slot name=\"headline\">\n      <p class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse gap-3 md:w-auto md:flex-row\">\n      <slot>\n        <UiTabs class=\"mt-5 w-full md:mt-7 md:w-[450px]\" default-value=\"monthly\">\n          <UiTabsList class=\"grid h-auto w-full grid-cols-2\">\n            <UiTabsTrigger class=\"h-10\" value=\"monthly\">Monthly billing</UiTabsTrigger>\n            <UiTabsTrigger class=\"h-10\" value=\"annual\"\n              >Annual Billing\n              <UiBadge class=\"ml-2 hidden lg:block\" variant=\"outline\"\n                >Save 20%</UiBadge\n              ></UiTabsTrigger\n            >\n          </UiTabsList>\n        </UiTabs>\n      </slot>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"Pricing\",\n      description: \"Simple pricing that scales with you. Choose a plan that works for you.\",\n      title: \"Simple pricing that scales with you\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection8.vue","components":["badge","container","tabs"]},{"name":"Header Section 9","fileName":"BlockHeaderSection9.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <slot name=\"headline\">\n      <p class=\"text-primary font-semibold\">{{ headline }}</p>\n    </slot>\n    <slot name=\"title\">\n      <h2 class=\"mt-2 mb-4 text-4xl font-bold lg:mt-3 lg:mb-6 lg:text-5xl\">{{ title }}</h2>\n    </slot>\n    <slot name=\"description\">\n      <p class=\"text-muted-foreground max-w-[800px] text-lg lg:text-xl\">\n        {{ description }}\n      </p>\n    </slot>\n    <div class=\"mt-5 flex w-full flex-col-reverse gap-3 md:w-auto md:flex-row\">\n      <slot>\n        <div class=\"md:w-[480px]\">\n          <form class=\"mt-5 flex flex-col gap-3 lg:flex-row lg:items-center\">\n            <div class=\"w-full lg:w-[335px]\">\n              <UiVeeInput required placeholder=\"Enter your email\" aria-label=\"Enter your email\" />\n            </div>\n            <p class=\"text-muted-foreground my-2 text-sm lg:hidden\">\n              We care about your data in our privacy policy.\n            </p>\n            <div>\n              <UiButton class=\"w-full whitespace-nowrap lg:w-auto\" type=\"submit\"\n                >Get started</UiButton\n              >\n            </div>\n          </form>\n          <p class=\"text-muted-foreground mt-3 hidden text-left text-sm lg:block\">\n            We care about your data in our privacy policy.\n          </p>\n        </div>\n      </slot>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      headline?: string;\n      description?: string;\n      title?: string;\n    }>(),\n    {\n      headline: \"About us\",\n      description:\n        \"Learn more about our creative agency from the inside out. We take pride in offering the best services to our clients and partners.\",\n      title: \"We are a creative agency\",\n    }\n  );\n</script>\n","category":"HeaderSection","description":null,"path":"HeaderSection/BlockHeaderSection9.vue","components":["button","container","vee-input"]},{"name":"Hero 1","fileName":"BlockHero1.vue","file":"<template>\n  <!--\n    Split hero with an email form and a product card visual\n    Features: Badge, headline, validated email form with success state, trust line, layered interface cards on the right that float gently, staggered entrance\n  -->\n  <section class=\"relative overflow-hidden\">\n    <UiContainer class=\"grid items-center gap-12 py-16 lg:grid-cols-2 lg:gap-16 lg:py-24\">\n      <Motion\n        class=\"max-w-xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <NuxtLink\n          to=\"#\"\n          class=\"hover:bg-muted group inline-flex items-center gap-2 rounded-full border px-3 py-1 text-sm transition-colors\"\n        >\n          <span class=\"bg-primary size-1.5 rounded-full\" />\n          {{ props.badge }}\n          <Icon\n            name=\"lucide:arrow-right\"\n            class=\"size-3.5 transition-transform group-hover:translate-x-0.5\"\n          />\n        </NuxtLink>\n        <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-5xl lg:text-6xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-5 text-lg text-balance\">{{ props.description }}</p>\n\n        <form\n          v-if=\"!done\"\n          class=\"mt-8 flex max-w-md flex-col gap-2 sm:flex-row\"\n          novalidate\n          @submit.prevent=\"submit\"\n        >\n          <UiInput\n            v-model=\"email\"\n            type=\"email\"\n            placeholder=\"Enter your work email\"\n            aria-label=\"Work email\"\n            class=\"h-11\"\n          />\n          <UiButton type=\"submit\" size=\"lg\" class=\"shrink-0\">\n            Get early access\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n        </form>\n        <p\n          v-else\n          class=\"mt-8 flex items-center gap-2 font-medium text-green-600 dark:text-green-400\"\n        >\n          <Icon name=\"lucide:circle-check\" class=\"size-5\" />\n          You're on the list. We'll be in touch soon.\n        </p>\n        <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n        <p v-else class=\"text-muted-foreground mt-3 text-sm\">\n          Free for 14 days. No credit card required.\n        </p>\n      </Motion>\n\n      <div class=\"relative mx-auto h-[26rem] w-full max-w-lg\" aria-hidden=\"true\">\n        <div class=\"bg-primary/10 absolute inset-8 rounded-full blur-3xl\" />\n        <Motion\n          class=\"bg-card absolute top-4 left-0 w-64 rounded-2xl border p-4 shadow-xl\"\n          :animate=\"{ y: [0, -8, 0] }\"\n          :transition=\"{ duration: 6, repeat: Infinity, ease: 'easeInOut' }\"\n        >\n          <div class=\"flex items-center justify-between\">\n            <p class=\"text-muted-foreground text-xs font-medium\">Monthly revenue</p>\n            <span\n              class=\"rounded-full bg-green-500/10 px-2 py-0.5 text-xs font-medium text-green-600 dark:text-green-400\"\n              >+18%</span\n            >\n          </div>\n          <p class=\"mt-1 text-2xl font-bold tabular-nums\">$48,260</p>\n          <div class=\"mt-4 flex h-16 items-end gap-1.5\">\n            <div\n              v-for=\"(bar, i) in bars\"\n              :key=\"i\"\n              class=\"bg-primary/20 flex-1 rounded-sm\"\n              :class=\"i === bars.length - 1 && 'bg-primary'\"\n              :style=\"{ height: `${bar}%` }\"\n            />\n          </div>\n        </Motion>\n\n        <Motion\n          class=\"bg-card absolute top-28 right-0 w-60 rounded-2xl border p-4 shadow-xl\"\n          :animate=\"{ y: [0, 8, 0] }\"\n          :transition=\"{ duration: 7, repeat: Infinity, ease: 'easeInOut', delay: 0.5 }\"\n        >\n          <p class=\"text-sm font-semibold\">Team activity</p>\n          <ul class=\"mt-3 space-y-3\">\n            <li v-for=\"item in activity\" :key=\"item.name\" class=\"flex items-center gap-2.5 text-sm\">\n              <UiAvatar :src=\"item.avatar\" :fallback=\"item.name[0]\" class=\"size-7\" />\n              <span class=\"min-w-0 flex-1 truncate\"\n                ><span class=\"font-medium\">{{ item.name }}</span> {{ item.action }}</span\n              >\n            </li>\n          </ul>\n        </Motion>\n\n        <Motion\n          class=\"bg-card absolute bottom-2 left-10 flex items-center gap-3 rounded-2xl border p-3 pr-5 shadow-xl\"\n          :animate=\"{ y: [0, -6, 0] }\"\n          :transition=\"{ duration: 5, repeat: Infinity, ease: 'easeInOut', delay: 1 }\"\n        >\n          <UiFancyIcon icon=\"lucide:rocket\" theme=\"gradient\" color=\"success\" size=\"md\" />\n          <div>\n            <p class=\"text-sm font-semibold\">Deployed to production</p>\n            <p class=\"text-muted-foreground text-xs\">2 minutes ago</p>\n          </div>\n        </Motion>\n      </div>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{ badge?: string; title?: string; description?: string }>(),\n    {\n      badge: \"We're hiring. Join our remote team\",\n      title: \"People who care about your growth\",\n      description:\n        \"Powerful, self-serve product and growth analytics to help you convert, engage and retain more users.\",\n    }\n  );\n\n  const bars = [30, 46, 38, 58, 50, 72, 64, 90];\n  const activity = [\n    { name: \"Priya\", action: \"shipped v2.4\", avatar: \"https://i.pravatar.cc/60?img=45\" },\n    { name: \"Liam\", action: \"closed 6 issues\", avatar: \"https://i.pravatar.cc/60?img=12\" },\n    { name: \"Sam\", action: \"invited 3 people\", avatar: \"https://i.pravatar.cc/60?img=32\" },\n  ];\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const done = ref(false);\n\n  function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    done.value = true;\n  }\n</script>\n","category":"Hero","description":"Split hero with an email form and a product card visual. Features: Badge, headline, validated email form with success state, trust line, layered interface cards on the right that float gently, staggered entrance","path":"Hero/BlockHero1.vue","components":["avatar","button","container","fancy-icon","input"]},{"name":"Hero 10","fileName":"BlockHero10.vue","file":"<template>\n  <!--\n    Always dark aurora hero\n    Features: Stays dark on a light page, animated aurora blobs, grain free glow, gradient headline, glass buttons and a command palette preview\n  -->\n  <section class=\"dark bg-background text-foreground relative isolate overflow-hidden\">\n    <div class=\"pointer-events-none absolute inset-0 -z-10\" aria-hidden=\"true\">\n      <Motion\n        class=\"absolute -top-32 left-1/4 size-[28rem] rounded-full bg-violet-600/40 blur-3xl\"\n        :animate=\"{ x: [0, 40, 0], y: [0, 20, 0] }\"\n        :transition=\"{ duration: 14, repeat: Infinity, ease: 'easeInOut' }\"\n      />\n      <Motion\n        class=\"absolute top-20 right-1/4 size-[26rem] rounded-full bg-sky-500/30 blur-3xl\"\n        :animate=\"{ x: [0, -40, 0], y: [0, 30, 0] }\"\n        :transition=\"{ duration: 18, repeat: Infinity, ease: 'easeInOut' }\"\n      />\n      <Motion\n        class=\"absolute -bottom-32 left-1/2 size-[24rem] rounded-full bg-pink-500/25 blur-3xl\"\n        :animate=\"{ x: [0, 30, 0] }\"\n        :transition=\"{ duration: 16, repeat: Infinity, ease: 'easeInOut' }\"\n      />\n    </div>\n\n    <UiContainer class=\"py-20 text-center lg:py-32\">\n      <Motion\n        class=\"mx-auto max-w-3xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <span\n          class=\"inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/5 px-3 py-1 text-sm backdrop-blur\"\n        >\n          <Icon name=\"lucide:sparkles\" class=\"size-3.5 text-violet-300\" />\n          {{ props.badge }}\n        </span>\n        <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ props.titleStart }}\n          <span\n            class=\"bg-linear-to-r from-violet-300 via-sky-300 to-pink-300 bg-clip-text text-transparent\"\n            >{{ props.titleAccent }}</span\n          >\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-6 max-w-2xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mt-8 flex flex-wrap justify-center gap-3\">\n          <UiButton size=\"lg\" class=\"bg-white text-black hover:bg-white/90\">\n            Get started\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n          <UiButton\n            size=\"lg\"\n            variant=\"outline\"\n            class=\"border-white/20 bg-white/5 hover:bg-white/10\"\n          >\n            Read the docs\n          </UiButton>\n        </div>\n      </Motion>\n\n      <Motion\n        class=\"mx-auto mt-16 max-w-xl text-left\"\n        :initial=\"{ opacity: 0, y: 30 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 100, damping: 22, delay: 0.3 }\"\n      >\n        <div\n          class=\"overflow-hidden rounded-2xl border border-white/15 bg-white/5 shadow-2xl backdrop-blur-xl\"\n          aria-hidden=\"true\"\n        >\n          <div class=\"flex items-center gap-3 border-b border-white/10 px-4 py-3\">\n            <Icon name=\"lucide:search\" class=\"text-muted-foreground size-4\" />\n            <span class=\"text-muted-foreground text-sm\">Search commands, pages and people…</span>\n            <UiKbd class=\"ml-auto\">⌘K</UiKbd>\n          </div>\n          <ul class=\"p-2\">\n            <li\n              v-for=\"(item, i) in commands\"\n              :key=\"item.label\"\n              class=\"flex items-center gap-3 rounded-lg px-3 py-2 text-sm\"\n              :class=\"i === 0 && 'bg-white/10'\"\n            >\n              <Icon :name=\"item.icon\" class=\"text-muted-foreground size-4\" />\n              {{ item.label }}\n              <span class=\"text-muted-foreground ml-auto text-xs\">{{ item.hint }}</span>\n            </li>\n          </ul>\n        </div>\n      </Motion>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      badge?: string;\n      titleStart?: string;\n      titleAccent?: string;\n      description?: string;\n    }>(),\n    {\n      badge: \"Introducing command palette 2.0\",\n      titleStart: \"Move at the speed of\",\n      titleAccent: \"your thoughts\",\n      description:\n        \"A faster, keyboard-first way to get things done. Search, navigate and act without lifting your hands.\",\n    }\n  );\n\n  const commands = [\n    { label: \"Create new project\", icon: \"lucide:folder-plus\", hint: \"N\" },\n    { label: \"Invite teammates\", icon: \"lucide:user-plus\", hint: \"I\" },\n    { label: \"Open billing\", icon: \"lucide:credit-card\", hint: \"B\" },\n    { label: \"Switch theme\", icon: \"lucide:moon\", hint: \"T\" },\n  ];\n</script>\n","category":"Hero","description":"Always dark aurora hero. Features: Stays dark on a light page, animated aurora blobs, grain free glow, gradient headline, glass buttons and a command palette preview","path":"Hero/BlockHero10.vue","components":["button","container","kbd"]},{"name":"Hero 11","fileName":"BlockHero11.vue","file":"<template>\n  <!--\n    Hero with a bento grid of interface tiles\n    Features: Left aligned headline with actions, bento of five tiles including a stat, a chart, an avatar stack, a toggle that works and a progress ring, hover lift\n  -->\n  <section class=\"relative overflow-hidden\">\n    <UiContainer class=\"py-16 lg:py-24\">\n      <Motion\n        class=\"max-w-2xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <h1 class=\"text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-6 text-lg text-balance\">{{ props.description }}</p>\n        <div class=\"mt-8 flex flex-wrap gap-3\">\n          <UiButton size=\"lg\">\n            Start for free\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n          <UiButton size=\"lg\" variant=\"ghost\">\n            Talk to us\n            <Icon name=\"lucide:arrow-up-right\" class=\"size-4\" />\n          </UiButton>\n        </div>\n      </Motion>\n\n      <div class=\"mt-14 grid auto-rows-[10rem] gap-4 md:grid-cols-4\">\n        <Motion\n          v-for=\"(tile, i) in tiles\"\n          :key=\"tile.id\"\n          class=\"bg-card hover:border-ring/50 flex flex-col justify-between overflow-hidden rounded-2xl border p-5 transition-all hover:-translate-y-0.5 hover:shadow-lg\"\n          :class=\"tile.span\"\n          :initial=\"{ opacity: 0, y: 24 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ type: 'spring', stiffness: 120, damping: 20, delay: 0.1 + i * 0.07 }\"\n        >\n          <template v-if=\"tile.id === 'stat'\">\n            <UiFancyIcon icon=\"lucide:wallet\" theme=\"light\" color=\"success\" size=\"md\" />\n            <div>\n              <p class=\"text-muted-foreground text-sm\">Monthly revenue</p>\n              <p class=\"text-3xl font-bold tracking-tight tabular-nums\">$128,450</p>\n            </div>\n          </template>\n\n          <template v-else-if=\"tile.id === 'chart'\">\n            <div class=\"flex items-center justify-between\">\n              <p class=\"font-semibold\">Growth</p>\n              <span class=\"text-xs font-medium text-green-600 dark:text-green-400\"\n                >+24% this quarter</span\n              >\n            </div>\n            <div class=\"flex h-24 items-end gap-2\">\n              <div\n                v-for=\"(bar, n) in bars\"\n                :key=\"n\"\n                class=\"bg-primary/20 hover:bg-primary flex-1 rounded-t-md transition-colors\"\n                :style=\"{ height: `${bar}%` }\"\n              />\n            </div>\n          </template>\n\n          <template v-else-if=\"tile.id === 'team'\">\n            <div class=\"flex -space-x-2.5\">\n              <UiAvatar\n                v-for=\"avatar in avatars\"\n                :key=\"avatar\"\n                :src=\"avatar\"\n                class=\"ring-card size-10 ring-2\"\n              />\n            </div>\n            <div>\n              <p class=\"font-semibold\">Work together</p>\n              <p class=\"text-muted-foreground text-sm\">Invite your whole team.</p>\n            </div>\n          </template>\n\n          <template v-else-if=\"tile.id === 'toggle'\">\n            <p class=\"font-semibold\">Dark mode</p>\n            <div class=\"flex items-center justify-between\">\n              <p class=\"text-muted-foreground text-sm\">{{ dark ? \"On\" : \"Off\" }}</p>\n              <UiSwitch v-model=\"dark\" aria-label=\"Dark mode\" />\n            </div>\n          </template>\n\n          <template v-else>\n            <p class=\"font-semibold\">Sprint progress</p>\n            <div class=\"flex items-center gap-4\">\n              <div class=\"relative size-16\">\n                <svg class=\"size-16 -rotate-90\" viewBox=\"0 0 64 64\">\n                  <circle\n                    cx=\"32\"\n                    cy=\"32\"\n                    r=\"26\"\n                    fill=\"none\"\n                    stroke-width=\"8\"\n                    class=\"stroke-muted\"\n                  />\n                  <circle\n                    cx=\"32\"\n                    cy=\"32\"\n                    r=\"26\"\n                    fill=\"none\"\n                    stroke-width=\"8\"\n                    stroke-linecap=\"round\"\n                    class=\"stroke-primary\"\n                    :stroke-dasharray=\"163\"\n                    :stroke-dashoffset=\"163 * 0.28\"\n                  />\n                </svg>\n                <span class=\"absolute inset-0 flex items-center justify-center text-sm font-bold\"\n                  >72%</span\n                >\n              </div>\n              <p class=\"text-muted-foreground text-sm\">18 of 25 tasks done</p>\n            </div>\n          </template>\n        </Motion>\n      </div>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Everything your team needs, nothing it doesn't\",\n    description: \"A calm, focused workspace that brings planning, tracking and reporting together.\",\n  });\n\n  const tiles = [\n    { id: \"stat\", span: \"md:col-span-1\" },\n    { id: \"chart\", span: \"md:col-span-2 md:row-span-2\" },\n    { id: \"team\", span: \"md:col-span-1\" },\n    { id: \"toggle\", span: \"md:col-span-1\" },\n    { id: \"ring\", span: \"md:col-span-1\" },\n  ];\n\n  const bars = [30, 44, 38, 56, 48, 68, 60, 82, 74, 96];\n  const avatars = [\n    \"https://i.pravatar.cc/80?img=47\",\n    \"https://i.pravatar.cc/80?img=12\",\n    \"https://i.pravatar.cc/80?img=45\",\n    \"https://i.pravatar.cc/80?img=32\",\n  ];\n  const dark = ref(true);\n</script>\n","category":"Hero","description":"Hero with a bento grid of interface tiles. Features: Left aligned headline with actions, bento of five tiles including a stat, a chart, an avatar stack, a toggle that works and a progress ring, hover lift","path":"Hero/BlockHero11.vue","components":["avatar","button","container","fancy-icon","switch"]},{"name":"Hero 12","fileName":"BlockHero12.vue","file":"<template>\n  <!--\n    Hero with a tabbed product tour\n    Features: Centered headline, three tabs that swap a preview panel with a smooth transition, each panel built from interface pieces, keyboard friendly tabs\n  -->\n  <section class=\"relative overflow-hidden\">\n    <div\n      class=\"from-primary/10 pointer-events-none absolute inset-x-0 top-0 h-80 bg-linear-to-b to-transparent\"\n      aria-hidden=\"true\"\n    />\n    <UiContainer class=\"relative py-16 text-center lg:py-24\">\n      <Motion\n        class=\"mx-auto max-w-3xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <h1 class=\"text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-6 max-w-2xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mt-8 flex flex-wrap justify-center gap-3\">\n          <UiButton size=\"lg\">Try it free</UiButton>\n          <UiButton size=\"lg\" variant=\"outline\">Compare plans</UiButton>\n        </div>\n      </Motion>\n\n      <UiTabs v-model=\"tab\" class=\"mx-auto mt-14 max-w-4xl\">\n        <UiTabsList class=\"mx-auto grid w-full max-w-md grid-cols-3\">\n          <UiTabsTrigger v-for=\"item in tabs\" :key=\"item.value\" :value=\"item.value\" class=\"gap-2\">\n            <Icon :name=\"item.icon\" class=\"size-4\" />\n            {{ item.label }}\n          </UiTabsTrigger>\n        </UiTabsList>\n\n        <div\n          class=\"bg-card mt-6 min-h-80 overflow-hidden rounded-2xl border p-6 text-left shadow-xl\"\n        >\n          <UiTabsContent v-for=\"item in tabs\" :key=\"item.value\" :value=\"item.value\" class=\"mt-0\">\n            <div class=\"grid items-center gap-8 md:grid-cols-[1fr_1.2fr]\">\n              <div>\n                <UiFancyIcon :icon=\"item.icon\" theme=\"gradient\" :color=\"item.color\" size=\"lg\" />\n                <h2 class=\"mt-5 text-2xl font-bold tracking-tight\">{{ item.heading }}</h2>\n                <p class=\"text-muted-foreground mt-2\">{{ item.text }}</p>\n                <ul class=\"mt-5 space-y-2\">\n                  <li\n                    v-for=\"point in item.points\"\n                    :key=\"point\"\n                    class=\"flex items-center gap-2 text-sm\"\n                  >\n                    <Icon name=\"lucide:check\" class=\"text-primary size-4\" />\n                    {{ point }}\n                  </li>\n                </ul>\n              </div>\n              <div class=\"bg-muted/40 space-y-2.5 rounded-xl border p-4\" aria-hidden=\"true\">\n                <div\n                  v-for=\"row in item.rows\"\n                  :key=\"row.label\"\n                  class=\"bg-card flex items-center gap-3 rounded-lg border p-3 shadow-xs\"\n                >\n                  <span\n                    class=\"flex size-8 items-center justify-center rounded-md\"\n                    :class=\"row.tone\"\n                  >\n                    <Icon :name=\"row.icon\" class=\"size-4\" />\n                  </span>\n                  <span class=\"flex-1 text-sm font-medium\">{{ row.label }}</span>\n                  <span class=\"text-muted-foreground text-xs tabular-nums\">{{ row.value }}</span>\n                </div>\n              </div>\n            </div>\n          </UiTabsContent>\n        </div>\n      </UiTabs>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"One platform for planning, building and shipping\",\n    description: \"Pick a tab to see how each part of the product fits into your day.\",\n  });\n\n  const tabs: {\n    value: string;\n    label: string;\n    icon: string;\n    color: Color;\n    heading: string;\n    text: string;\n    points: string[];\n    rows: { label: string; value: string; icon: string; tone: string }[];\n  }[] = [\n    {\n      value: \"plan\",\n      label: \"Plan\",\n      icon: \"lucide:map\",\n      color: \"info\",\n      heading: \"Roadmaps that stay honest\",\n      text: \"Turn goals into scoped work and see how it fits the calendar.\",\n      points: [\"Drag and drop timelines\", \"Dependencies and milestones\", \"Shareable views\"],\n      rows: [\n        {\n          label: \"Q4 launch\",\n          value: \"Oct 12\",\n          icon: \"lucide:flag\",\n          tone: \"bg-blue-500/15 text-blue-600 dark:text-blue-400\",\n        },\n        {\n          label: \"Pricing revamp\",\n          value: \"Nov 3\",\n          icon: \"lucide:tag\",\n          tone: \"bg-violet-500/15 text-violet-600 dark:text-violet-400\",\n        },\n        {\n          label: \"Mobile beta\",\n          value: \"Nov 28\",\n          icon: \"lucide:smartphone\",\n          tone: \"bg-pink-500/15 text-pink-600 dark:text-pink-400\",\n        },\n      ],\n    },\n    {\n      value: \"build\",\n      label: \"Build\",\n      icon: \"lucide:hammer\",\n      color: \"warning\",\n      heading: \"Work that moves itself\",\n      text: \"Boards, automations and reviews that keep everyone unblocked.\",\n      points: [\"Automated handoffs\", \"Inline reviews\", \"Git and CI integrations\"],\n      rows: [\n        {\n          label: \"Review: billing page\",\n          value: \"2 comments\",\n          icon: \"lucide:message-square\",\n          tone: \"bg-amber-500/15 text-amber-600 dark:text-amber-400\",\n        },\n        {\n          label: \"Deploy preview\",\n          value: \"Ready\",\n          icon: \"lucide:rocket\",\n          tone: \"bg-green-500/15 text-green-600 dark:text-green-400\",\n        },\n        {\n          label: \"Fix flaky test\",\n          value: \"In progress\",\n          icon: \"lucide:bug\",\n          tone: \"bg-red-500/15 text-red-600 dark:text-red-400\",\n        },\n      ],\n    },\n    {\n      value: \"measure\",\n      label: \"Measure\",\n      icon: \"lucide:chart-line\",\n      color: \"success\",\n      heading: \"Numbers you can act on\",\n      text: \"Dashboards that explain what changed and why it matters.\",\n      points: [\"Live dashboards\", \"Scheduled reports\", \"Anomaly alerts\"],\n      rows: [\n        {\n          label: \"Weekly active users\",\n          value: \"24.8k\",\n          icon: \"lucide:users\",\n          tone: \"bg-blue-500/15 text-blue-600 dark:text-blue-400\",\n        },\n        {\n          label: \"Conversion rate\",\n          value: \"3.24%\",\n          icon: \"lucide:target\",\n          tone: \"bg-green-500/15 text-green-600 dark:text-green-400\",\n        },\n        {\n          label: \"Churn\",\n          value: \"1.9%\",\n          icon: \"lucide:user-minus\",\n          tone: \"bg-red-500/15 text-red-600 dark:text-red-400\",\n        },\n      ],\n    },\n  ];\n\n  const tab = ref(\"plan\");\n</script>\n","category":"Hero","description":"Hero with a tabbed product tour. Features: Centered headline, three tabs that swap a preview panel with a smooth transition, each panel built from interface pieces, keyboard friendly tabs","path":"Hero/BlockHero12.vue","components":["button","container","fancy-icon","tabs"]},{"name":"Hero 2","fileName":"BlockHero2.vue","file":"<template>\n  <!--\n    Centered hero with a gradient headline and a logo strip\n    Features: Announcement pill, gradient word in the headline, two buttons, row of customer names styled as logos, soft background glow\n  -->\n  <section class=\"relative overflow-hidden\">\n    <div\n      class=\"from-primary/10 pointer-events-none absolute inset-x-0 top-0 h-96 bg-linear-to-b to-transparent\"\n      aria-hidden=\"true\"\n    />\n    <UiContainer class=\"relative py-20 text-center lg:py-28\">\n      <Motion\n        class=\"mx-auto max-w-3xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <NuxtLink\n          to=\"#\"\n          class=\"bg-background hover:bg-muted group inline-flex items-center gap-2 rounded-full border py-1 pr-3 pl-1 text-sm shadow-xs transition-colors\"\n        >\n          <UiBadge class=\"rounded-full\">New</UiBadge>\n          {{ props.badge }}\n          <Icon\n            name=\"lucide:chevron-right\"\n            class=\"size-3.5 transition-transform group-hover:translate-x-0.5\"\n          />\n        </NuxtLink>\n        <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ props.titleStart }}\n          <span\n            class=\"from-primary bg-linear-to-r via-indigo-500 to-pink-500 bg-clip-text text-transparent\"\n          >\n            {{ props.titleAccent }}\n          </span>\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-6 max-w-2xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mt-9 flex flex-wrap justify-center gap-3\">\n          <slot>\n            <UiButton size=\"lg\">\n              Start for free\n              <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n            </UiButton>\n            <UiButton size=\"lg\" variant=\"outline\">\n              <Icon name=\"lucide:play\" class=\"size-4\" />\n              Watch the demo\n            </UiButton>\n          </slot>\n        </div>\n      </Motion>\n\n      <Motion\n        class=\"mx-auto mt-16 max-w-4xl\"\n        :initial=\"{ opacity: 0 }\"\n        :animate=\"{ opacity: 1 }\"\n        :transition=\"{ delay: 0.4, duration: 0.6 }\"\n      >\n        <p class=\"text-muted-foreground text-sm\">Trusted by teams at</p>\n        <ul\n          class=\"text-muted-foreground/70 mt-5 flex flex-wrap items-center justify-center gap-x-10 gap-y-4\"\n        >\n          <li\n            v-for=\"logo in logos\"\n            :key=\"logo.name\"\n            class=\"flex items-center gap-2 text-lg font-semibold tracking-tight\"\n          >\n            <Icon :name=\"logo.icon\" class=\"size-5\" />\n            {{ logo.name }}\n          </li>\n        </ul>\n      </Motion>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      badge?: string;\n      titleStart?: string;\n      titleAccent?: string;\n      description?: string;\n    }>(),\n    {\n      badge: \"Dark mode and custom themes are here\",\n      titleStart: \"The faster way to build\",\n      titleAccent: \"interfaces you own\",\n      description:\n        \"Copy accessible, beautifully designed components into your project and make every line yours.\",\n    }\n  );\n\n  const logos = [\n    { name: \"Northwind\", icon: \"lucide:compass\" },\n    { name: \"Lumen\", icon: \"lucide:lightbulb\" },\n    { name: \"Fieldwork\", icon: \"lucide:wheat\" },\n    { name: \"Hexa\", icon: \"lucide:hexagon\" },\n    { name: \"Orbit\", icon: \"lucide:orbit\" },\n  ];\n</script>\n","category":"Hero","description":"Centered hero with a gradient headline and a logo strip. Features: Announcement pill, gradient word in the headline, two buttons, row of customer names styled as logos, soft background glow","path":"Hero/BlockHero2.vue","components":["badge","button","container"]},{"name":"Hero 3","fileName":"BlockHero3.vue","file":"<template>\n  <!--\n    Split hero with customer social proof\n    Features: Headline and description, validated email capture, avatar stack with star rating and customer count, product window preview with a live notification\n  -->\n  <section class=\"relative overflow-hidden\">\n    <UiContainer\n      class=\"grid items-center gap-12 py-16 lg:grid-cols-[1.05fr_1fr] lg:gap-14 lg:py-24\"\n    >\n      <Motion\n        class=\"max-w-xl\"\n        :initial=\"{ opacity: 0, x: -20 }\"\n        :animate=\"{ opacity: 1, x: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 130, damping: 22 }\"\n      >\n        <h1 class=\"text-4xl font-bold tracking-tight text-balance sm:text-5xl lg:text-6xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-5 text-lg text-balance\">{{ props.description }}</p>\n\n        <form v-if=\"!done\" class=\"mt-8 flex max-w-md gap-2\" novalidate @submit.prevent=\"submit\">\n          <UiInput\n            v-model=\"email\"\n            type=\"email\"\n            placeholder=\"you@company.com\"\n            aria-label=\"Email address\"\n            class=\"h-11\"\n          />\n          <UiButton type=\"submit\" size=\"lg\" class=\"shrink-0\">Get started</UiButton>\n        </form>\n        <p\n          v-else\n          class=\"mt-8 flex items-center gap-2 font-medium text-green-600 dark:text-green-400\"\n        >\n          <Icon name=\"lucide:circle-check\" class=\"size-5\" />\n          Check your inbox to finish signing up.\n        </p>\n        <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n\n        <div class=\"mt-8 flex items-center gap-4\">\n          <div class=\"flex -space-x-2.5\">\n            <UiAvatar\n              v-for=\"avatar in avatars\"\n              :key=\"avatar\"\n              :src=\"avatar\"\n              class=\"ring-background size-10 ring-2\"\n            />\n          </div>\n          <div>\n            <div class=\"flex gap-0.5\" aria-label=\"Rated 4.9 out of 5\">\n              <Icon\n                v-for=\"n in 5\"\n                :key=\"n\"\n                name=\"lucide:star\"\n                class=\"size-4 fill-amber-400 text-amber-400\"\n              />\n            </div>\n            <p class=\"text-muted-foreground mt-0.5 text-sm\">\n              <span class=\"text-foreground font-semibold\">4.9/5</span> from 1,000+ customers\n            </p>\n          </div>\n        </div>\n      </Motion>\n\n      <Motion\n        class=\"relative\"\n        :initial=\"{ opacity: 0, x: 20 }\"\n        :animate=\"{ opacity: 1, x: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 130, damping: 22, delay: 0.1 }\"\n      >\n        <div class=\"bg-card overflow-hidden rounded-2xl border shadow-2xl\" aria-hidden=\"true\">\n          <div class=\"flex items-center gap-1.5 border-b px-4 py-3\">\n            <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n            <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n            <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n            <span class=\"text-muted-foreground ml-3 text-xs\">Customers</span>\n          </div>\n          <div class=\"space-y-1 p-3\">\n            <div\n              v-for=\"row in rows\"\n              :key=\"row.name\"\n              class=\"hover:bg-muted/60 flex items-center gap-3 rounded-lg p-2.5 transition-colors\"\n            >\n              <UiAvatar :src=\"row.avatar\" :fallback=\"row.name[0]\" class=\"size-9\" />\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"text-sm font-medium\">{{ row.name }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ row.plan }}</p>\n              </div>\n              <span class=\"text-sm font-semibold tabular-nums\">{{ row.mrr }}</span>\n            </div>\n          </div>\n        </div>\n        <Motion\n          class=\"bg-card absolute -bottom-5 -left-4 flex items-center gap-3 rounded-2xl border p-3 pr-5 shadow-xl sm:-left-8\"\n          :initial=\"{ opacity: 0, y: 10, scale: 0.95 }\"\n          :animate=\"{ opacity: 1, y: 0, scale: 1 }\"\n          :transition=\"{ delay: 0.8, type: 'spring', stiffness: 200, damping: 18 }\"\n        >\n          <UiFancyIcon icon=\"lucide:trending-up\" theme=\"light\" color=\"success\" size=\"md\" />\n          <div>\n            <p class=\"text-sm font-semibold\">New subscription</p>\n            <p class=\"text-muted-foreground text-xs\">+$299 MRR just now</p>\n          </div>\n        </Motion>\n      </Motion>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Know your customers, grow your revenue\",\n    description:\n      \"One place to see who's paying, who's at risk and what to do next. No spreadsheets required.\",\n  });\n\n  const avatars = [\n    \"https://i.pravatar.cc/80?img=47\",\n    \"https://i.pravatar.cc/80?img=12\",\n    \"https://i.pravatar.cc/80?img=45\",\n    \"https://i.pravatar.cc/80?img=32\",\n    \"https://i.pravatar.cc/80?img=15\",\n  ];\n  const rows = [\n    {\n      name: \"Northwind\",\n      plan: \"Business · Annual\",\n      mrr: \"$1,240\",\n      avatar: \"https://i.pravatar.cc/60?img=47\",\n    },\n    {\n      name: \"Lumen Labs\",\n      plan: \"Pro · Monthly\",\n      mrr: \"$299\",\n      avatar: \"https://i.pravatar.cc/60?img=12\",\n    },\n    {\n      name: \"Fieldwork\",\n      plan: \"Pro · Annual\",\n      mrr: \"$249\",\n      avatar: \"https://i.pravatar.cc/60?img=45\",\n    },\n    {\n      name: \"Hexa Cloud\",\n      plan: \"Starter · Monthly\",\n      mrr: \"$49\",\n      avatar: \"https://i.pravatar.cc/60?img=32\",\n    },\n  ];\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const done = ref(false);\n\n  function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    done.value = true;\n  }\n</script>\n","category":"Hero","description":"Split hero with customer social proof. Features: Headline and description, validated email capture, avatar stack with star rating and customer count, product window preview with a live notification","path":"Hero/BlockHero3.vue","components":["avatar","button","container","fancy-icon","input"]},{"name":"Hero 4","fileName":"BlockHero4.vue","file":"<template>\n  <!--\n    Hero on a masked grid with an interface window\n    Features: Faded grid background, headline with two actions on the left, a browser style window with a kanban board on the right, no overlap on any screen size\n  -->\n  <section class=\"relative overflow-hidden\">\n    <div\n      class=\"absolute inset-0 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(ellipse_at_top,black_30%,transparent_75%)] bg-size-[56px_56px]\"\n      aria-hidden=\"true\"\n    />\n    <UiContainer class=\"relative grid items-center gap-14 py-16 lg:grid-cols-[1fr_1.1fr] lg:py-28\">\n      <Motion\n        class=\"max-w-xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <UiBadge variant=\"outline\" class=\"gap-1.5 rounded-full py-1\">\n          <Icon name=\"lucide:sparkles\" class=\"size-3.5\" />\n          {{ props.badge }}\n        </UiBadge>\n        <h1 class=\"mt-5 text-4xl font-bold tracking-tight text-balance sm:text-5xl lg:text-6xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-5 text-lg text-balance\">{{ props.description }}</p>\n        <div class=\"mt-8 flex flex-wrap gap-3\">\n          <UiButton size=\"lg\">\n            Start a free trial\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n          <UiButton size=\"lg\" variant=\"outline\">Book a demo</UiButton>\n        </div>\n        <ul class=\"text-muted-foreground mt-8 flex flex-wrap gap-x-6 gap-y-2 text-sm\">\n          <li v-for=\"item in perks\" :key=\"item\" class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:check\" class=\"text-primary size-4\" />\n            {{ item }}\n          </li>\n        </ul>\n      </Motion>\n\n      <Motion\n        :initial=\"{ opacity: 0, y: 24 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 120, damping: 22, delay: 0.15 }\"\n      >\n        <div class=\"bg-card overflow-hidden rounded-2xl border shadow-2xl\" aria-hidden=\"true\">\n          <div class=\"flex items-center gap-1.5 border-b px-4 py-3\">\n            <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n            <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n            <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n            <span class=\"bg-muted text-muted-foreground mx-auto rounded-md px-12 py-0.5 text-xs\"\n              >app.uithing.com/board</span\n            >\n          </div>\n          <div class=\"bg-muted/30 grid grid-cols-3 gap-3 p-4\">\n            <div v-for=\"column in board\" :key=\"column.title\" class=\"space-y-2.5\">\n              <p\n                class=\"text-muted-foreground flex items-center justify-between text-xs font-semibold\"\n              >\n                {{ column.title }}\n                <span class=\"bg-muted rounded-full px-1.5 tabular-nums\">{{\n                  column.cards.length\n                }}</span>\n              </p>\n              <div\n                v-for=\"card in column.cards\"\n                :key=\"card.title\"\n                class=\"bg-card space-y-2 rounded-lg border p-2.5 shadow-xs\"\n              >\n                <p class=\"text-xs leading-snug font-medium\">{{ card.title }}</p>\n                <div class=\"flex items-center justify-between\">\n                  <span class=\"rounded px-1.5 py-0.5 text-[10px] font-medium\" :class=\"card.tag\">{{\n                    card.label\n                  }}</span>\n                  <UiAvatar :src=\"card.avatar\" class=\"size-5\" />\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </Motion>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{ badge?: string; title?: string; description?: string }>(),\n    {\n      badge: \"Now with AI planning\",\n      title: \"Plan, track and ship work in one place\",\n      description:\n        \"Boards, docs and roadmaps that stay in sync, so your team always knows what matters next.\",\n    }\n  );\n\n  const perks = [\"Free for 14 days\", \"No credit card\", \"Cancel anytime\"];\n\n  const board = [\n    {\n      title: \"To do\",\n      cards: [\n        {\n          title: \"Design onboarding flow\",\n          label: \"Design\",\n          tag: \"bg-violet-500/15 text-violet-600 dark:text-violet-400\",\n          avatar: \"https://i.pravatar.cc/40?img=45\",\n        },\n        {\n          title: \"Write launch email\",\n          label: \"Marketing\",\n          tag: \"bg-pink-500/15 text-pink-600 dark:text-pink-400\",\n          avatar: \"https://i.pravatar.cc/40?img=32\",\n        },\n      ],\n    },\n    {\n      title: \"In progress\",\n      cards: [\n        {\n          title: \"Build billing page\",\n          label: \"Engineering\",\n          tag: \"bg-blue-500/15 text-blue-600 dark:text-blue-400\",\n          avatar: \"https://i.pravatar.cc/40?img=12\",\n        },\n        {\n          title: \"Review analytics\",\n          label: \"Data\",\n          tag: \"bg-amber-500/15 text-amber-600 dark:text-amber-400\",\n          avatar: \"https://i.pravatar.cc/40?img=47\",\n        },\n      ],\n    },\n    {\n      title: \"Done\",\n      cards: [\n        {\n          title: \"Set up CI pipeline\",\n          label: \"Engineering\",\n          tag: \"bg-blue-500/15 text-blue-600 dark:text-blue-400\",\n          avatar: \"https://i.pravatar.cc/40?img=15\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"Hero","description":"Hero on a masked grid with an interface window. Features: Faded grid background, headline with two actions on the left, a browser style window with a kanban board on the right, no overlap on any screen size","path":"Hero/BlockHero4.vue","components":["avatar","badge","button","container"]},{"name":"Hero 5","fileName":"BlockHero5.vue","file":"<template>\n  <!--\n    Centered hero on a dotted background with email capture and social proof\n    Features: Radial dot pattern, headline, validated email form with success state, avatar stack with stars, soft glow\n  -->\n  <section class=\"relative overflow-hidden\">\n    <div\n      class=\"absolute inset-0 bg-[radial-gradient(--alpha(var(--color-border)/90%)_1px,transparent_1px)] mask-[radial-gradient(ellipse_closest-side_at_50%_40%,#000_55%,transparent_100%)] bg-size-[22px_22px]\"\n      aria-hidden=\"true\"\n    />\n    <UiContainer class=\"relative py-20 text-center lg:py-32\">\n      <Motion\n        class=\"mx-auto max-w-3xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <h1 class=\"text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-6 max-w-2xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n\n        <form\n          v-if=\"!done\"\n          class=\"bg-background mx-auto mt-9 flex max-w-md items-center gap-1 rounded-full border p-1.5 pl-5 shadow-sm\"\n          novalidate\n          @submit.prevent=\"submit\"\n        >\n          <input\n            v-model=\"email\"\n            type=\"email\"\n            placeholder=\"Enter your email\"\n            aria-label=\"Email address\"\n            class=\"placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-sm outline-none\"\n          />\n          <UiButton type=\"submit\" class=\"rounded-full\">Get started</UiButton>\n        </form>\n        <p\n          v-else\n          class=\"mt-9 flex items-center justify-center gap-2 font-medium text-green-600 dark:text-green-400\"\n        >\n          <Icon name=\"lucide:circle-check\" class=\"size-5\" />\n          Thanks! We've sent you a confirmation link.\n        </p>\n        <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n        <p v-else class=\"text-muted-foreground mt-3 text-xs\">\n          We care about your data. Read our privacy policy.\n        </p>\n\n        <div class=\"mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row\">\n          <div class=\"flex -space-x-2.5\">\n            <UiAvatar\n              v-for=\"avatar in avatars\"\n              :key=\"avatar\"\n              :src=\"avatar\"\n              class=\"ring-background size-10 ring-2\"\n            />\n          </div>\n          <div class=\"text-left\">\n            <div class=\"flex gap-0.5\" aria-label=\"Rated 5 out of 5\">\n              <Icon\n                v-for=\"n in 5\"\n                :key=\"n\"\n                name=\"lucide:star\"\n                class=\"size-4 fill-amber-400 text-amber-400\"\n              />\n            </div>\n            <p class=\"text-muted-foreground text-sm\">from 1,000+ happy customers</p>\n          </div>\n        </div>\n      </Motion>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Customer service software for customer-first teams\",\n    description:\n      \"The best customer service software for customer-first teams. Industry-leading email and live chat support.\",\n  });\n\n  const avatars = [\n    \"https://i.pravatar.cc/80?img=47\",\n    \"https://i.pravatar.cc/80?img=12\",\n    \"https://i.pravatar.cc/80?img=45\",\n    \"https://i.pravatar.cc/80?img=32\",\n    \"https://i.pravatar.cc/80?img=15\",\n  ];\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const done = ref(false);\n\n  function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    done.value = true;\n  }\n</script>\n","category":"Hero","description":"Centered hero on a dotted background with email capture and social proof. Features: Radial dot pattern, headline, validated email form with success state, avatar stack with stars, soft glow","path":"Hero/BlockHero5.vue","components":["avatar","button","container"]},{"name":"Hero 6","fileName":"BlockHero6.vue","file":"<template>\n  <!--\n    Centered hero with a dashboard mockup that rises into view\n    Features: Pulsing beta badge, gradient accent word, two actions, detailed dashboard built from cards with stats, chart and rows, staggered spring entrance\n  -->\n  <section class=\"relative overflow-hidden\">\n    <div\n      class=\"from-primary/10 pointer-events-none absolute -top-40 left-1/2 h-96 w-[60rem] -translate-x-1/2 rounded-full bg-radial to-transparent blur-3xl\"\n      aria-hidden=\"true\"\n    />\n    <UiContainer class=\"relative pt-16 lg:pt-24\">\n      <Motion\n        class=\"mx-auto max-w-3xl text-center\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <span\n          class=\"bg-background inline-flex items-center gap-2 rounded-full border px-3 py-1 text-sm shadow-xs\"\n        >\n          <span class=\"relative flex size-2\">\n            <span\n              class=\"bg-primary absolute inline-flex size-full animate-ping rounded-full opacity-75\"\n            />\n            <span class=\"bg-primary relative inline-flex size-2 rounded-full\" />\n          </span>\n          {{ props.badge }}\n        </span>\n        <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ props.titleStart }}\n          <span\n            class=\"from-primary bg-linear-to-r via-violet-500 to-pink-500 bg-clip-text text-transparent\"\n            >{{ props.titleAccent }}</span\n          >\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-6 max-w-2xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mt-8 flex flex-wrap justify-center gap-3\">\n          <UiButton size=\"lg\">\n            Get started free\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n          <UiButton size=\"lg\" variant=\"outline\">See a demo</UiButton>\n        </div>\n      </Motion>\n\n      <Motion\n        class=\"relative mx-auto mt-14 max-w-5xl\"\n        :initial=\"{ opacity: 0, y: 60 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 80, damping: 20, delay: 0.25 }\"\n      >\n        <div\n          class=\"bg-card overflow-hidden rounded-t-2xl border border-b-0 mask-[linear-gradient(to_bottom,black_70%,transparent)] shadow-2xl\"\n          aria-hidden=\"true\"\n        >\n          <div class=\"flex items-center gap-1.5 border-b px-4 py-3\">\n            <span class=\"size-2.5 rounded-full bg-red-400/70\" />\n            <span class=\"size-2.5 rounded-full bg-amber-400/70\" />\n            <span class=\"size-2.5 rounded-full bg-green-400/70\" />\n          </div>\n          <div class=\"grid gap-4 p-5 pb-24 md:grid-cols-[12rem_1fr]\">\n            <div class=\"hidden space-y-1.5 md:block\">\n              <div\n                v-for=\"(item, i) in nav\"\n                :key=\"item\"\n                class=\"flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm\"\n                :class=\"i === 0 ? 'bg-muted font-medium' : 'text-muted-foreground'\"\n              >\n                <span class=\"bg-muted-foreground/30 size-3.5 rounded\" />\n                {{ item }}\n              </div>\n            </div>\n            <div class=\"space-y-4\">\n              <div class=\"grid grid-cols-3 gap-3\">\n                <div v-for=\"stat in stats\" :key=\"stat.label\" class=\"rounded-xl border p-3\">\n                  <p class=\"text-muted-foreground text-xs\">{{ stat.label }}</p>\n                  <p class=\"mt-1 text-lg font-bold tabular-nums\">{{ stat.value }}</p>\n                  <p class=\"text-xs font-medium text-green-600 dark:text-green-400\">\n                    {{ stat.change }}\n                  </p>\n                </div>\n              </div>\n              <div class=\"rounded-xl border p-4\">\n                <p class=\"text-sm font-medium\">Weekly activity</p>\n                <div class=\"mt-4 flex h-28 items-end gap-2\">\n                  <div\n                    v-for=\"(bar, i) in bars\"\n                    :key=\"i\"\n                    class=\"bg-primary/70 flex-1 rounded-t\"\n                    :style=\"{ height: `${bar}%` }\"\n                  />\n                </div>\n              </div>\n              <div class=\"space-y-2\">\n                <div\n                  v-for=\"n in 3\"\n                  :key=\"n\"\n                  class=\"flex items-center gap-3 rounded-lg border p-2.5\"\n                >\n                  <span class=\"bg-muted size-7 rounded-full\" />\n                  <span class=\"bg-muted h-2 flex-1 rounded-full\" />\n                  <span class=\"bg-muted h-2 w-14 rounded-full\" />\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </Motion>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      badge?: string;\n      titleStart?: string;\n      titleAccent?: string;\n      description?: string;\n    }>(),\n    {\n      badge: \"Now in public beta\",\n      titleStart: \"Ship products your users will\",\n      titleAccent: \"absolutely love\",\n      description:\n        \"The all-in-one platform for modern product teams. Design, build and iterate faster than ever.\",\n    }\n  );\n\n  const nav = [\"Overview\", \"Projects\", \"Reports\", \"Team\", \"Settings\"];\n  const stats = [\n    { label: \"Revenue\", value: \"$48.2k\", change: \"+12.4%\" },\n    { label: \"Users\", value: \"2,840\", change: \"+8.1%\" },\n    { label: \"Conversion\", value: \"3.24%\", change: \"+0.4%\" },\n  ];\n  const bars = [35, 52, 44, 68, 58, 82, 70, 92, 76, 64, 88, 96];\n</script>\n","category":"Hero","description":"Centered hero with a dashboard mockup that rises into view. Features: Pulsing beta badge, gradient accent word, two actions, detailed dashboard built from cards with stats, chart and rows, staggered spring entrance","path":"Hero/BlockHero6.vue","components":["button","container"]},{"name":"Hero 7","fileName":"BlockHero7.vue","file":"<template>\n  <!--\n    Centered hero with a self contained video player card\n    Features: Badge, headline and buttons, a styled player with a play button that toggles a playing state with a moving progress bar, no external video required\n  -->\n  <section class=\"relative overflow-hidden\">\n    <UiContainer class=\"py-16 text-center lg:py-24\">\n      <Motion\n        class=\"mx-auto max-w-3xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <NuxtLink\n          to=\"#\"\n          class=\"hover:bg-muted group inline-flex items-center gap-2 rounded-full border px-3 py-1 text-sm transition-colors\"\n        >\n          {{ props.badge }}\n          <Icon\n            name=\"lucide:arrow-right\"\n            class=\"size-3.5 transition-transform group-hover:translate-x-0.5\"\n          />\n        </NuxtLink>\n        <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-6 max-w-2xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mt-8 flex flex-wrap justify-center gap-3\">\n          <UiButton size=\"lg\" variant=\"outline\" @click=\"playing = true\">\n            <Icon name=\"lucide:play\" class=\"size-4\" />\n            Watch demo\n          </UiButton>\n          <UiButton size=\"lg\">Sign up free</UiButton>\n        </div>\n      </Motion>\n\n      <Motion\n        class=\"mx-auto mt-14 max-w-4xl\"\n        :initial=\"{ opacity: 0, y: 32 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 100, damping: 22, delay: 0.2 }\"\n      >\n        <div\n          class=\"from-primary to-primary/70 text-primary-foreground group relative aspect-video overflow-hidden rounded-2xl bg-linear-to-br shadow-2xl ring-1 ring-black/10\"\n        >\n          <div\n            class=\"bg-primary-foreground/10 absolute -top-20 -right-10 size-80 rounded-full blur-3xl\"\n          />\n          <div\n            class=\"bg-primary-foreground/10 absolute -bottom-24 -left-10 size-80 rounded-full blur-3xl\"\n          />\n\n          <div class=\"absolute inset-0 flex flex-col items-start gap-2 p-6 text-left sm:p-10\">\n            <p class=\"max-w-sm text-xl font-semibold text-balance sm:text-3xl\">\n              {{ props.videoTitle }}\n            </p>\n            <p class=\"text-primary-foreground/70 text-sm\">{{ props.videoLength }} · Product tour</p>\n          </div>\n\n          <button\n            type=\"button\"\n            class=\"absolute top-1/2 left-1/2 flex size-20 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-white/90 text-black shadow-xl transition-all hover:scale-105\"\n            :class=\"playing && 'pointer-events-none scale-75 opacity-0'\"\n            aria-label=\"Play video\"\n            @click=\"playing = true\"\n          >\n            <Icon name=\"lucide:play\" class=\"ml-1 size-8 fill-current\" />\n          </button>\n\n          <div\n            class=\"absolute inset-x-0 bottom-0 flex items-center gap-3 bg-linear-to-t from-black/50 to-transparent px-5 pt-8 pb-4\"\n          >\n            <button\n              type=\"button\"\n              :aria-label=\"playing ? 'Pause' : 'Play'\"\n              @click=\"playing = !playing\"\n            >\n              <Icon :name=\"playing ? 'lucide:pause' : 'lucide:play'\" class=\"size-5 fill-current\" />\n            </button>\n            <div class=\"h-1.5 flex-1 overflow-hidden rounded-full bg-white/30\">\n              <div\n                class=\"h-full rounded-full bg-white transition-[width] duration-200 ease-linear\"\n                :style=\"{ width: `${progress}%` }\"\n              />\n            </div>\n            <span class=\"text-xs tabular-nums\">{{ elapsed }} / {{ props.videoLength }}</span>\n          </div>\n        </div>\n        <p class=\"text-muted-foreground mt-3 text-xs\">\n          The player is a placeholder. Swap it for your own video or an embed.\n        </p>\n      </Motion>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      badge?: string;\n      title?: string;\n      description?: string;\n      videoTitle?: string;\n      /** Length in seconds. */\n      seconds?: number;\n      videoLength?: string;\n    }>(),\n    {\n      badge: \"New feature! Check out our new dashboard\",\n      title: \"High-performing remote teams. The future of work.\",\n      description:\n        \"Powerful, self-serve team engagement tools and analytics. Supercharge your managers and keep employees engaged from anywhere.\",\n      videoTitle: \"See it in action in under two minutes\",\n      seconds: 120,\n      videoLength: \"2:00\",\n    }\n  );\n\n  const playing = ref(false);\n  const progress = ref(0);\n\n  let timer: ReturnType<typeof setInterval> | undefined;\n  watch(playing, (value) => {\n    clearInterval(timer);\n    if (!value) return;\n    timer = setInterval(() => {\n      progress.value = Math.min(100, progress.value + 100 / props.seconds / 5);\n      if (progress.value >= 100) {\n        playing.value = false;\n        progress.value = 0;\n      }\n    }, 200);\n  });\n  onBeforeUnmount(() => clearInterval(timer));\n\n  const elapsed = computed(() => {\n    const total = Math.floor((progress.value / 100) * props.seconds);\n    return `${Math.floor(total / 60)}:${String(total % 60).padStart(2, \"0\")}`;\n  });\n</script>\n","category":"Hero","description":"Centered hero with a self contained video player card. Features: Badge, headline and buttons, a styled player with a play button that toggles a playing state with a moving progress bar, no external video required","path":"Hero/BlockHero7.vue","components":["button","container"]},{"name":"Hero 8","fileName":"BlockHero8.vue","file":"<template>\n  <!--\n    Developer hero with an install command card\n    Features: Feature badges, headline with two actions, tabbed install command for different package managers that copies on click, trust indicators\n  -->\n  <section class=\"relative overflow-hidden\">\n    <UiContainer class=\"py-16 text-center lg:py-28\">\n      <Motion\n        class=\"mx-auto max-w-3xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <UiBadge variant=\"secondary\" class=\"gap-1.5 rounded-full py-1\">\n          <Icon name=\"lucide:sparkles\" class=\"size-3.5\" />\n          {{ props.badge }}\n        </UiBadge>\n        <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-6 max-w-2xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mt-8 flex flex-wrap justify-center gap-3\">\n          <UiButton size=\"lg\">\n            Get started\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n          <UiButton size=\"lg\" variant=\"outline\">\n            <Icon name=\"mdi:github\" class=\"size-5\" />\n            Star on GitHub\n          </UiButton>\n        </div>\n      </Motion>\n\n      <Motion\n        class=\"mx-auto mt-12 max-w-xl text-left\"\n        :initial=\"{ opacity: 0, y: 24 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 100, damping: 22, delay: 0.2 }\"\n      >\n        <div class=\"bg-card overflow-hidden rounded-xl border shadow-lg\">\n          <div class=\"flex items-center justify-between border-b px-2 pt-2\">\n            <div class=\"flex gap-1\" role=\"tablist\">\n              <button\n                v-for=\"manager in managers\"\n                :key=\"manager.name\"\n                type=\"button\"\n                role=\"tab\"\n                :aria-selected=\"active === manager.name\"\n                class=\"rounded-t-md px-3 py-1.5 text-sm font-medium transition-colors\"\n                :class=\"\n                  active === manager.name\n                    ? 'bg-muted text-foreground'\n                    : 'text-muted-foreground hover:text-foreground'\n                \"\n                @click=\"active = manager.name\"\n              >\n                {{ manager.name }}\n              </button>\n            </div>\n            <span class=\"text-muted-foreground mr-2 text-xs\">Terminal</span>\n          </div>\n          <div class=\"flex items-center justify-between gap-3 p-4 font-mono text-sm\">\n            <code class=\"min-w-0 truncate\"\n              ><span class=\"text-muted-foreground select-none\">$ </span>{{ command }}</code\n            >\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              :aria-label=\"copied ? 'Copied' : 'Copy command'\"\n              @click=\"copy\"\n            >\n              <Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />\n            </UiButton>\n          </div>\n        </div>\n      </Motion>\n\n      <ul class=\"text-muted-foreground mt-10 flex flex-wrap justify-center gap-x-8 gap-y-3 text-sm\">\n        <li v-for=\"item in trust\" :key=\"item\" class=\"flex items-center gap-2\">\n          <Icon name=\"lucide:circle-check\" class=\"size-4 text-green-500\" />\n          {{ item }}\n        </li>\n      </ul>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{ badge?: string; title?: string; description?: string }>(),\n    {\n      badge: \"Open source and free forever\",\n      title: \"Build your dream product with our amazing tools\",\n      description:\n        \"Components you copy into your project and own completely. No runtime dependency, no lock-in.\",\n    }\n  );\n\n  const managers = [\n    { name: \"bun\", command: \"bunx ui-thing@latest add button card\" },\n    { name: \"npm\", command: \"npx ui-thing@latest add button card\" },\n    { name: \"pnpm\", command: \"pnpm dlx ui-thing@latest add button card\" },\n    { name: \"yarn\", command: \"yarn dlx ui-thing@latest add button card\" },\n  ];\n  const trust = [\"No credit card required\", \"MIT licensed\", \"Works with Nuxt 4\"];\n\n  const active = ref(\"bun\");\n  const copied = ref(false);\n  const command = computed(() => managers.find((m) => m.name === active.value)?.command ?? \"\");\n\n  async function copy() {\n    try {\n      await navigator.clipboard.writeText(command.value);\n    } catch {\n      // Clipboard access can be blocked inside an iframe; the UI still confirms.\n    }\n    copied.value = true;\n    setTimeout(() => (copied.value = false), 1500);\n  }\n</script>\n","category":"Hero","description":"Developer hero with an install command card. Features: Feature badges, headline with two actions, tabbed install command for different package managers that copies on click, trust indicators","path":"Hero/BlockHero8.vue","components":["badge","button","container"]},{"name":"Hero 9","fileName":"BlockHero9.vue","file":"<template>\n  <!--\n    Centered hero with a grid background and animated statistics\n    Features: Masked grid, status badge with a pulsing dot, headline, two buttons, three statistics that count up when they scroll into view\n  -->\n  <section ref=\"root\" class=\"relative overflow-hidden\">\n    <div\n      class=\"absolute inset-0 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(ellipse_at_center,black_20%,transparent_70%)] bg-size-[48px_48px]\"\n      aria-hidden=\"true\"\n    />\n    <UiContainer class=\"relative py-20 text-center lg:py-32\">\n      <Motion\n        class=\"mx-auto max-w-3xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <span\n          class=\"bg-background inline-flex items-center gap-2 rounded-full border px-3 py-1 text-sm shadow-xs\"\n        >\n          <span class=\"relative flex size-2\">\n            <span\n              class=\"absolute inline-flex size-full animate-ping rounded-full bg-green-500 opacity-75\"\n            />\n            <span class=\"relative inline-flex size-2 rounded-full bg-green-500\" />\n          </span>\n          {{ props.badge }}\n        </span>\n        <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-6 max-w-2xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mt-8 flex flex-wrap justify-center gap-3\">\n          <UiButton size=\"lg\">\n            Start building now\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n          <UiButton size=\"lg\" variant=\"outline\">\n            <Icon name=\"mdi:github\" class=\"size-5\" />\n            View on GitHub\n          </UiButton>\n        </div>\n      </Motion>\n\n      <dl class=\"mx-auto mt-16 grid max-w-2xl grid-cols-3 gap-6\">\n        <div v-for=\"stat in stats\" :key=\"stat.label\">\n          <dd class=\"text-3xl font-bold tracking-tight tabular-nums sm:text-4xl\">\n            {{ display[stat.label] }}{{ stat.suffix }}\n          </dd>\n          <dt class=\"text-muted-foreground mt-1 text-sm\">{{ stat.label }}</dt>\n        </div>\n      </dl>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{ badge?: string; title?: string; description?: string }>(),\n    {\n      badge: \"All systems operational\",\n      title: \"The modern way to build software\",\n      description:\n        \"Ship faster, collaborate better and build products your customers love. Everything you need in one powerful platform.\",\n    }\n  );\n\n  const stats = [\n    { label: \"Active users\", value: 50000, suffix: \"+\", decimals: 0 },\n    { label: \"Uptime\", value: 99.9, suffix: \"%\", decimals: 1 },\n    { label: \"Support\", value: 24, suffix: \"/7\", decimals: 0 },\n  ];\n\n  const root = ref<HTMLElement | null>(null);\n  const started = ref(false);\n  const sources = reactive<Record<string, number>>(\n    Object.fromEntries(stats.map((s) => [s.label, 0]))\n  );\n  const animated = Object.fromEntries(\n    stats.map((s) => [s.label, useTransition(toRef(sources, s.label), { duration: 1600 })])\n  );\n\n  const display = computed(() =>\n    Object.fromEntries(\n      stats.map((s) => {\n        const value = animated[s.label]!.value;\n        return [\n          s.label,\n          s.decimals ? value.toFixed(s.decimals) : Math.round(value).toLocaleString(\"en-US\"),\n        ];\n      })\n    )\n  );\n\n  onMounted(() => {\n    const observer = new IntersectionObserver(\n      (entries) => {\n        if (entries[0]?.isIntersecting && !started.value) {\n          started.value = true;\n          stats.forEach((s) => (sources[s.label] = s.value));\n          observer.disconnect();\n        }\n      },\n      { threshold: 0.3 }\n    );\n    if (root.value) observer.observe(root.value);\n    onBeforeUnmount(() => observer.disconnect());\n  });\n</script>\n","category":"Hero","description":"Centered hero with a grid background and animated statistics. Features: Masked grid, status badge with a pulsing dot, headline, two buttons, three statistics that count up when they scroll into view","path":"Hero/BlockHero9.vue","components":["button","container"]},{"name":"Inbox Layouts 1","fileName":"BlockInboxLayouts1.vue","file":"<template>\n  <!--\n    Two pane chat app\n    Features: Conversation list on the left, the selected thread on the right, unread dots that clear when opened, working composer, active conversation highlight and a stacked layout on small screens\n  -->\n  <div\n    class=\"mx-auto grid h-[40rem] w-full max-w-5xl overflow-hidden rounded-xl border md:grid-cols-[18rem_1fr]\"\n  >\n    <aside\n      class=\"flex min-h-0 flex-col border-b md:border-r md:border-b-0\"\n      aria-label=\"Conversations\"\n    >\n      <div class=\"border-b px-4 py-3 font-semibold\">Chats</div>\n      <ul class=\"min-h-0 flex-1 divide-y overflow-y-auto\" role=\"list\">\n        <li v-for=\"chat in chats\" :key=\"chat.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-muted/50 focus-visible:ring-ring/50 flex w-full items-center gap-3 px-4 py-3 text-left outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n            :class=\"chat.id === activeId ? 'bg-muted' : ''\"\n            :aria-current=\"chat.id === activeId ? 'true' : undefined\"\n            @click=\"open(chat)\"\n          >\n            <UiAvatar :src=\"chat.avatar\" :fallback=\"chat.name[0]\" />\n            <span class=\"min-w-0 flex-1\">\n              <span\n                class=\"block truncate text-sm\"\n                :class=\"chat.unread ? 'font-semibold' : 'font-medium'\"\n                >{{ chat.name }}</span\n              >\n              <span class=\"text-muted-foreground block truncate text-xs\">{{\n                last(chat).text\n              }}</span>\n            </span>\n            <span\n              v-if=\"chat.unread\"\n              class=\"bg-primary size-2 shrink-0 rounded-full\"\n              aria-hidden=\"true\"\n            />\n            <span v-if=\"chat.unread\" class=\"sr-only\">Unread</span>\n          </button>\n        </li>\n      </ul>\n    </aside>\n\n    <section class=\"flex min-h-0 flex-col\" aria-label=\"Conversation\">\n      <template v-if=\"active\">\n        <div class=\"flex items-center gap-3 border-b px-4 py-3\">\n          <UiAvatar :src=\"active.avatar\" :fallback=\"active.name[0]\" class=\"size-8\" />\n          <h1 class=\"font-semibold\">{{ active.name }}</h1>\n        </div>\n        <div class=\"min-h-0 flex-1 space-y-3 overflow-y-auto p-4\">\n          <UiMessage\n            v-for=\"(message, index) in active.messages\"\n            :key=\"index\"\n            :align=\"message.mine ? 'end' : 'start'\"\n          >\n            <UiMessageContent>\n              <UiBubble :variant=\"message.mine ? 'default' : 'muted'\">\n                <UiBubbleContent>{{ message.text }}</UiBubbleContent>\n              </UiBubble>\n            </UiMessageContent>\n          </UiMessage>\n        </div>\n        <form class=\"flex items-center gap-2 border-t p-3\" @submit.prevent=\"send\">\n          <UiLabel for=\"inbox1\" class=\"sr-only\">Message</UiLabel>\n          <UiInput id=\"inbox1\" v-model=\"draft\" placeholder=\"Write a message\" autocomplete=\"off\" />\n          <UiButton type=\"submit\" size=\"icon\" :disabled=\"!draft.trim()\" aria-label=\"Send message\">\n            <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n          </UiButton>\n        </form>\n      </template>\n    </section>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Message = { text: string; mine?: boolean };\n  type Chat = { id: string; name: string; avatar: string; unread: boolean; messages: Message[] };\n\n  const props = withDefaults(\n    defineProps<{\n      conversations?: Chat[];\n    }>(),\n    {\n      conversations: () => [\n        {\n          id: \"1\",\n          name: \"Sofia Alvarez\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          unread: false,\n          messages: [\n            { text: \"Can you review the mockups?\" },\n            { text: \"Sure, sending notes now.\", mine: true },\n            { text: \"Thanks, you are the best!\" },\n          ],\n        },\n        {\n          id: \"2\",\n          name: \"Liam Carter\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          unread: true,\n          messages: [{ text: \"Deployed the fix to staging.\" }, { text: \"Looks good on my end.\" }],\n        },\n        {\n          id: \"3\",\n          name: \"Design team\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          unread: true,\n          messages: [{ text: \"Moodboard is ready for feedback.\" }],\n        },\n        {\n          id: \"4\",\n          name: \"Noah Williams\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          unread: false,\n          messages: [{ text: \"Invoice is on its way.\" }],\n        },\n      ],\n    }\n  );\n\n  const chats = ref<Chat[]>(\n    props.conversations.map((chat) => ({\n      ...chat,\n      messages: chat.messages.map((message) => ({ ...message })),\n    }))\n  );\n  const activeId = ref(chats.value[0]?.id ?? \"\");\n  const draft = ref(\"\");\n\n  const active = computed(() => chats.value.find((chat) => chat.id === activeId.value));\n  const last = (chat: Chat) => chat.messages[chat.messages.length - 1]!;\n\n  function open(chat: Chat) {\n    activeId.value = chat.id;\n    chat.unread = false;\n  }\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text || !active.value) return;\n    active.value.messages.push({ text, mine: true });\n    draft.value = \"\";\n  }\n</script>\n","category":"InboxLayouts","description":"Two pane chat app. Features: Conversation list on the left, the selected thread on the right, unread dots that clear when opened, working composer, active conversation highlight and a stacked layout on small screens","path":"Chat/InboxLayouts/BlockInboxLayouts1.vue","components":["avatar","bubble","button","input","label","message"]},{"name":"Inbox Layouts 2","fileName":"BlockInboxLayouts2.vue","file":"<template>\n  <!--\n    Three pane email style inbox\n    Features: Folder sidebar with counts, message list with star and unread state, reading pane with reply, archive and delete actions, keyboard friendly rows and responsive collapse of the folder pane\n  -->\n  <div\n    class=\"mx-auto grid h-[40rem] w-full max-w-6xl overflow-hidden rounded-xl border md:grid-cols-[20rem_1fr] lg:grid-cols-[13rem_20rem_1fr]\"\n  >\n    <nav class=\"bg-muted/30 hidden flex-col gap-1 border-r p-3 lg:flex\" aria-label=\"Folders\">\n      <UiButton class=\"mb-2 justify-start\" @click=\"useSonner.info('Open your compose window here')\">\n        <Icon name=\"lucide:pen-line\" class=\"size-4\" />\n        Compose\n      </UiButton>\n      <button\n        v-for=\"item in folders\"\n        :key=\"item.id\"\n        type=\"button\"\n        class=\"hover:bg-accent focus-visible:ring-ring/50 flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm outline-none focus-visible:ring-[3px]\"\n        :class=\"folder === item.id ? 'bg-accent font-medium' : ''\"\n        :aria-current=\"folder === item.id ? 'page' : undefined\"\n        @click=\"folder = item.id\"\n      >\n        <Icon :name=\"item.icon\" class=\"size-4\" />\n        <span class=\"flex-1 text-left\">{{ item.label }}</span>\n        <span class=\"text-muted-foreground text-xs tabular-nums\">{{\n          countFor(item.id) || \"\"\n        }}</span>\n      </button>\n    </nav>\n\n    <section class=\"flex min-h-0 flex-col border-r\" aria-label=\"Messages\">\n      <div class=\"flex items-center justify-between border-b px-4 py-3\">\n        <h1 class=\"font-semibold capitalize\">{{ folder }}</h1>\n        <UiSelect v-model=\"folder\">\n          <UiSelectTrigger size=\"sm\" class=\"w-28 lg:hidden\" aria-label=\"Folder\">\n            <UiSelectValue />\n          </UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem v-for=\"item in folders\" :key=\"item.id\" :value=\"item.id\">{{\n              item.label\n            }}</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n      <ul class=\"min-h-0 flex-1 divide-y overflow-y-auto\" role=\"list\">\n        <li v-for=\"mail in list\" :key=\"mail.id\" class=\"flex\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-muted/50 focus-visible:ring-ring/50 min-w-0 flex-1 px-4 py-3 text-left outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n            :class=\"mail.id === selectedId ? 'bg-muted' : ''\"\n            @click=\"read(mail)\"\n          >\n            <span class=\"flex items-center justify-between gap-2\">\n              <span class=\"truncate text-sm\" :class=\"mail.unread ? 'font-semibold' : ''\">{{\n                mail.from\n              }}</span>\n              <span class=\"text-muted-foreground shrink-0 text-xs\">{{ mail.time }}</span>\n            </span>\n            <span class=\"block truncate text-sm\" :class=\"mail.unread ? 'font-medium' : ''\">{{\n              mail.subject\n            }}</span>\n            <span class=\"text-muted-foreground line-clamp-1 text-xs\">{{ mail.body }}</span>\n          </button>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"mt-2.5 mr-2\"\n            :aria-label=\"mail.starred ? `Unstar ${mail.subject}` : `Star ${mail.subject}`\"\n            :aria-pressed=\"mail.starred\"\n            @click=\"mail.starred = !mail.starred\"\n          >\n            <Icon\n              name=\"lucide:star\"\n              class=\"size-4\"\n              :class=\"mail.starred ? 'fill-amber-400 text-amber-500' : ''\"\n            />\n          </UiButton>\n        </li>\n        <li v-if=\"!list.length\" class=\"text-muted-foreground px-4 py-12 text-center text-sm\">\n          Nothing here.\n        </li>\n      </ul>\n    </section>\n\n    <article class=\"hidden min-h-0 flex-col md:flex\" aria-label=\"Message\">\n      <template v-if=\"selected\">\n        <div class=\"flex items-center gap-1 border-b px-4 py-2\">\n          <UiButton variant=\"ghost\" size=\"sm\" @click=\"move(selected, 'archive')\"\n            ><Icon name=\"lucide:archive\" class=\"size-4\" />Archive</UiButton\n          >\n          <UiButton variant=\"ghost\" size=\"sm\" @click=\"move(selected, 'trash')\"\n            ><Icon name=\"lucide:trash-2\" class=\"size-4\" />Delete</UiButton\n          >\n          <UiButton\n            variant=\"ghost\"\n            size=\"sm\"\n            class=\"ml-auto\"\n            @click=\"useSonner.info('Open your reply window here')\"\n            ><Icon name=\"lucide:reply\" class=\"size-4\" />Reply</UiButton\n          >\n        </div>\n        <div class=\"min-h-0 flex-1 overflow-y-auto p-6\">\n          <h2 class=\"text-xl font-semibold\">{{ selected.subject }}</h2>\n          <div class=\"mt-4 flex items-center gap-3\">\n            <UiAvatar :src=\"selected.avatar\" :fallback=\"selected.from[0]\" />\n            <div class=\"text-sm\">\n              <p class=\"font-medium\">{{ selected.from }}</p>\n              <p class=\"text-muted-foreground\">{{ selected.time }}</p>\n            </div>\n          </div>\n          <p class=\"mt-6 text-sm leading-relaxed\">{{ selected.body }}</p>\n        </div>\n      </template>\n      <div v-else class=\"text-muted-foreground grid flex-1 place-items-center text-sm\">\n        Select a message to read it.\n      </div>\n    </article>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Mail = {\n    id: string;\n    from: string;\n    avatar: string;\n    subject: string;\n    body: string;\n    time: string;\n    unread: boolean;\n    starred: boolean;\n    folder: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      mails?: Mail[];\n    }>(),\n    {\n      mails: () => [\n        {\n          id: \"m1\",\n          from: \"Sofia Alvarez\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          subject: \"New onboarding mockups\",\n          body: \"Hi! I have attached the latest mockups for the onboarding flow. The checklist idea tested well with five users and I would love your thoughts before we start building.\",\n          time: \"9:41 AM\",\n          unread: true,\n          starred: false,\n          folder: \"inbox\",\n        },\n        {\n          id: \"m2\",\n          from: \"Liam Carter\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          subject: \"Staging deploy finished\",\n          body: \"The fix for the flaky checkout test is live on staging. Everything looks green and I will promote it to production after lunch.\",\n          time: \"9:12 AM\",\n          unread: true,\n          starred: true,\n          folder: \"inbox\",\n        },\n        {\n          id: \"m3\",\n          from: \"Aisha Khan\",\n          avatar: \"https://i.pravatar.cc/80?img=44\",\n          subject: \"Campaign results\",\n          body: \"The autumn campaign beat its target by 18 percent. A short report with the breakdown by channel is attached for the leadership update.\",\n          time: \"Yesterday\",\n          unread: false,\n          starred: false,\n          folder: \"inbox\",\n        },\n        {\n          id: \"m4\",\n          from: \"Noah Williams\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          subject: \"Invoice 1042\",\n          body: \"Please find the invoice for September attached. Payment terms are 30 days as usual. Let me know if anything needs changing.\",\n          time: \"Mon\",\n          unread: false,\n          starred: true,\n          folder: \"inbox\",\n        },\n        {\n          id: \"m5\",\n          from: \"Me\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          subject: \"Re: Budget approval\",\n          body: \"Thanks, approved. Go ahead and place the order and keep finance in copy.\",\n          time: \"Sun\",\n          unread: false,\n          starred: false,\n          folder: \"sent\",\n        },\n      ],\n    }\n  );\n\n  const folders = [\n    { id: \"inbox\", label: \"Inbox\", icon: \"lucide:inbox\" },\n    { id: \"starred\", label: \"Starred\", icon: \"lucide:star\" },\n    { id: \"sent\", label: \"Sent\", icon: \"lucide:send\" },\n    { id: \"archive\", label: \"Archive\", icon: \"lucide:archive\" },\n    { id: \"trash\", label: \"Trash\", icon: \"lucide:trash-2\" },\n  ];\n\n  const mails = ref<Mail[]>(props.mails.map((mail) => ({ ...mail })));\n  const folder = ref(\"inbox\");\n  const selectedId = ref(mails.value[0]?.id ?? \"\");\n\n  const inFolder = (mail: Mail, id: string) =>\n    id === \"starred\" ? mail.starred && mail.folder !== \"trash\" : mail.folder === id;\n  const list = computed(() => mails.value.filter((mail) => inFolder(mail, folder.value)));\n  const selected = computed(() =>\n    mails.value.find((mail) => mail.id === selectedId.value && inFolder(mail, folder.value))\n  );\n\n  function countFor(id: string) {\n    if (id === \"inbox\")\n      return mails.value.filter((mail) => mail.folder === \"inbox\" && mail.unread).length;\n    return 0;\n  }\n\n  function read(mail: Mail) {\n    selectedId.value = mail.id;\n    mail.unread = false;\n  }\n\n  function move(mail: Mail, to: string) {\n    mail.folder = to;\n    selectedId.value = list.value[0]?.id ?? \"\";\n    useSonner.success(`Moved to ${to}`);\n  }\n</script>\n","category":"InboxLayouts","description":"Three pane email style inbox. Features: Folder sidebar with counts, message list with star and unread state, reading pane with reply, archive and delete actions, keyboard friendly rows and responsive collapse of the folder pane","path":"Chat/InboxLayouts/BlockInboxLayouts2.vue","components":["avatar","button","select"]},{"name":"Inbox Layouts 3","fileName":"BlockInboxLayouts3.vue","file":"<template>\n  <!--\n    Support helpdesk with a customer panel\n    Features: Ticket queue with status and priority filters, selected ticket thread with a reply box and canned replies, customer details panel with plan and recent tickets and status changes that update the queue\n  -->\n  <div\n    class=\"mx-auto grid h-[42rem] w-full max-w-6xl overflow-hidden rounded-xl border md:grid-cols-[18rem_1fr] lg:grid-cols-[20rem_1fr_16rem]\"\n  >\n    <section class=\"flex min-h-0 flex-col border-r\" aria-label=\"Ticket queue\">\n      <div class=\"space-y-2 border-b p-3\">\n        <h1 class=\"font-semibold\">Tickets</h1>\n        <UiToggleGroup\n          v-model=\"filter\"\n          type=\"single\"\n          variant=\"outline\"\n          size=\"sm\"\n          class=\"w-full\"\n          aria-label=\"Filter tickets\"\n        >\n          <UiToggleGroupItem\n            v-for=\"item in filters\"\n            :key=\"item\"\n            :value=\"item\"\n            class=\"flex-1 px-2 text-xs capitalize\"\n            >{{ item }}</UiToggleGroupItem\n          >\n        </UiToggleGroup>\n      </div>\n      <ul class=\"min-h-0 flex-1 divide-y overflow-y-auto\" role=\"list\">\n        <li v-for=\"ticket in queue\" :key=\"ticket.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-muted/50 focus-visible:ring-ring/50 w-full px-4 py-3 text-left outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n            :class=\"ticket.id === activeId ? 'bg-muted' : ''\"\n            :aria-current=\"ticket.id === activeId ? 'true' : undefined\"\n            @click=\"activeId = ticket.id\"\n          >\n            <span class=\"flex items-center justify-between gap-2\">\n              <span class=\"truncate text-sm font-medium\">{{ ticket.subject }}</span>\n              <UiBadge variant=\"soft\" :color=\"priorities[ticket.priority]\" shape=\"pill\">{{\n                ticket.priority\n              }}</UiBadge>\n            </span>\n            <span class=\"text-muted-foreground mt-0.5 flex items-center justify-between text-xs\">\n              {{ ticket.customer.name }}\n              <span class=\"capitalize\">{{ ticket.status }}</span>\n            </span>\n          </button>\n        </li>\n        <li v-if=\"!queue.length\" class=\"text-muted-foreground px-4 py-12 text-center text-sm\">\n          No tickets in this view.\n        </li>\n      </ul>\n    </section>\n\n    <section class=\"flex min-h-0 flex-col\" aria-label=\"Ticket\">\n      <template v-if=\"active\">\n        <div class=\"flex items-center gap-3 border-b px-4 py-3\">\n          <div class=\"min-w-0 flex-1\">\n            <h2 class=\"truncate font-semibold\">{{ active.subject }}</h2>\n            <p class=\"text-muted-foreground text-xs\">\n              #{{ active.id }} · {{ active.customer.name }}\n            </p>\n          </div>\n          <UiNativeSelect\n            v-model=\"active.status\"\n            class=\"h-8 w-32 capitalize\"\n            aria-label=\"Ticket status\"\n          >\n            <option v-for=\"status in statuses\" :key=\"status\" :value=\"status\">{{ status }}</option>\n          </UiNativeSelect>\n        </div>\n        <div class=\"min-h-0 flex-1 space-y-4 overflow-y-auto p-4\">\n          <UiMessage\n            v-for=\"(message, index) in active.messages\"\n            :key=\"index\"\n            :align=\"message.agent ? 'end' : 'start'\"\n          >\n            <UiMessageContent>\n              <UiBubble\n                :variant=\"message.agent ? 'default' : 'muted'\"\n                :align=\"message.agent ? 'end' : 'start'\"\n              >\n                <UiBubbleContent>{{ message.text }}</UiBubbleContent>\n              </UiBubble>\n            </UiMessageContent>\n          </UiMessage>\n        </div>\n        <form class=\"space-y-2 border-t p-3\" @submit.prevent=\"reply\">\n          <div class=\"flex flex-wrap gap-1.5\">\n            <UiButton\n              v-for=\"canned in cannedReplies\"\n              :key=\"canned\"\n              type=\"button\"\n              variant=\"outline\"\n              size=\"sm\"\n              class=\"h-7 text-xs\"\n              @click=\"draft = canned\"\n              >{{ canned }}</UiButton\n            >\n          </div>\n          <div class=\"flex items-center gap-2\">\n            <UiLabel for=\"inbox3\" class=\"sr-only\">Reply</UiLabel>\n            <UiInput\n              id=\"inbox3\"\n              v-model=\"draft\"\n              placeholder=\"Reply to the customer\"\n              autocomplete=\"off\"\n            />\n            <UiButton type=\"submit\" :disabled=\"!draft.trim()\">Send</UiButton>\n          </div>\n        </form>\n      </template>\n    </section>\n\n    <aside\n      v-if=\"active\"\n      class=\"bg-muted/20 hidden space-y-5 overflow-y-auto border-l p-4 lg:block\"\n      aria-label=\"Customer details\"\n    >\n      <div class=\"flex flex-col items-center text-center\">\n        <UiAvatar\n          :src=\"active.customer.avatar\"\n          :fallback=\"active.customer.name[0]\"\n          class=\"size-14\"\n        />\n        <p class=\"mt-2 font-semibold\">{{ active.customer.name }}</p>\n        <p class=\"text-muted-foreground text-xs\">{{ active.customer.email }}</p>\n      </div>\n      <dl class=\"space-y-3 text-sm\">\n        <div class=\"flex justify-between\">\n          <dt class=\"text-muted-foreground\">Plan</dt>\n          <dd class=\"font-medium\">{{ active.customer.plan }}</dd>\n        </div>\n        <div class=\"flex justify-between\">\n          <dt class=\"text-muted-foreground\">Customer since</dt>\n          <dd class=\"font-medium\">{{ active.customer.since }}</dd>\n        </div>\n        <div class=\"flex justify-between\">\n          <dt class=\"text-muted-foreground\">Open tickets</dt>\n          <dd class=\"font-medium\">{{ openCount(active.customer.name) }}</dd>\n        </div>\n      </dl>\n    </aside>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"open\" | \"pending\" | \"solved\";\n  type Ticket = {\n    id: string;\n    subject: string;\n    priority: \"high\" | \"medium\" | \"low\";\n    status: Status;\n    customer: { name: string; email: string; avatar: string; plan: string; since: string };\n    messages: { text: string; agent?: boolean }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      tickets?: Ticket[];\n    }>(),\n    {\n      tickets: () => [\n        {\n          id: \"4821\",\n          subject: \"Charged twice this month\",\n          priority: \"high\",\n          status: \"open\",\n          customer: {\n            name: \"Hannah Lee\",\n            email: \"hannah@globex.example\",\n            avatar: \"https://i.pravatar.cc/80?img=47\",\n            plan: \"Business\",\n            since: \"Feb 2024\",\n          },\n          messages: [\n            { text: \"Hi, I was charged twice for my subscription this month.\" },\n            { text: \"Sorry about that. I am checking your billing history now.\", agent: true },\n          ],\n        },\n        {\n          id: \"4820\",\n          subject: \"Cannot export to CSV\",\n          priority: \"medium\",\n          status: \"pending\",\n          customer: {\n            name: \"Marco Rossi\",\n            email: \"marco@initech.example\",\n            avatar: \"https://i.pravatar.cc/80?img=12\",\n            plan: \"Team\",\n            since: \"Jan 2025\",\n          },\n          messages: [\n            { text: \"The export button spins forever on large reports.\" },\n            { text: \"Thanks. Could you share roughly how many rows the report has?\", agent: true },\n          ],\n        },\n        {\n          id: \"4818\",\n          subject: \"How do I add a teammate?\",\n          priority: \"low\",\n          status: \"solved\",\n          customer: {\n            name: \"Priya Nair\",\n            email: \"priya@umbrella.example\",\n            avatar: \"https://i.pravatar.cc/80?img=32\",\n            plan: \"Starter\",\n            since: \"Aug 2023\",\n          },\n          messages: [\n            { text: \"Where can I invite my colleague?\" },\n            { text: \"Go to Settings, then Members, and press Invite.\", agent: true },\n            { text: \"Found it, thank you!\" },\n          ],\n        },\n        {\n          id: \"4817\",\n          subject: \"SSO login loops back\",\n          priority: \"high\",\n          status: \"open\",\n          customer: {\n            name: \"Lukas Meyer\",\n            email: \"lukas@hooli.example\",\n            avatar: \"https://i.pravatar.cc/80?img=15\",\n            plan: \"Business\",\n            since: \"Mar 2026\",\n          },\n          messages: [{ text: \"After signing in with SSO I land back on the login page.\" }],\n        },\n      ],\n    }\n  );\n\n  const statuses: Status[] = [\"open\", \"pending\", \"solved\"];\n  const filters = [\"all\", \"open\", \"pending\", \"solved\"];\n  const priorities = { high: \"red\", medium: \"amber\", low: \"slate\" } as const;\n  const cannedReplies = [\n    \"Thanks for reaching out!\",\n    \"Could you share a screenshot?\",\n    \"I have escalated this to our team.\",\n  ];\n\n  const tickets = ref<Ticket[]>(\n    props.tickets.map((ticket) => ({\n      ...ticket,\n      customer: { ...ticket.customer },\n      messages: ticket.messages.map((message) => ({ ...message })),\n    }))\n  );\n  const filter = ref(\"all\");\n  const activeId = ref(tickets.value[0]?.id ?? \"\");\n  const draft = ref(\"\");\n\n  const queue = computed(() =>\n    filter.value === \"all\" || !filter.value\n      ? tickets.value\n      : tickets.value.filter((ticket) => ticket.status === filter.value)\n  );\n  const active = computed(() => tickets.value.find((ticket) => ticket.id === activeId.value));\n  const openCount = (name: string) =>\n    tickets.value.filter((ticket) => ticket.customer.name === name && ticket.status !== \"solved\")\n      .length;\n\n  function reply() {\n    const text = draft.value.trim();\n    if (!text || !active.value) return;\n    active.value.messages.push({ text, agent: true });\n    draft.value = \"\";\n  }\n</script>\n","category":"InboxLayouts","description":"Support helpdesk with a customer panel. Features: Ticket queue with status and priority filters, selected ticket thread with a reply box and canned replies, customer details panel with plan and recent tickets and status changes that update the queue","path":"Chat/InboxLayouts/BlockInboxLayouts3.vue","components":["avatar","badge","bubble","button","input","label","message","native-select","toggle-group"]},{"name":"Inbox Layouts 4","fileName":"BlockInboxLayouts4.vue","file":"<template>\n  <!--\n    Mobile first stacked messenger\n    Features: One screen at a time with a list view and a thread view, a back button with an accessible name, bottom tab bar with unread counts, thread opens full width and focus moves to the thread heading\n  -->\n  <div\n    class=\"mx-auto flex h-[40rem] w-full max-w-sm flex-col overflow-hidden rounded-3xl border shadow-sm\"\n  >\n    <template v-if=\"!open\">\n      <header class=\"px-4 pt-5 pb-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">{{ tab === \"chats\" ? \"Chats\" : \"Calls\" }}</h1>\n        <div class=\"relative mt-3\">\n          <UiLabel for=\"inbox4-search\" class=\"sr-only\">Search</UiLabel>\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            id=\"inbox4-search\"\n            v-model=\"query\"\n            placeholder=\"Search\"\n            class=\"bg-muted h-9 rounded-full border-0 pl-9\"\n          />\n        </div>\n      </header>\n      <ul v-if=\"tab === 'chats'\" class=\"min-h-0 flex-1 overflow-y-auto\" role=\"list\">\n        <li v-for=\"chat in filtered\" :key=\"chat.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-muted/50 focus-visible:ring-ring/50 flex w-full items-center gap-3 px-4 py-3 text-left outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n            @click=\"openChat(chat)\"\n          >\n            <UiAvatar :src=\"chat.avatar\" :fallback=\"chat.name[0]\" class=\"size-12\" />\n            <span class=\"min-w-0 flex-1\">\n              <span class=\"flex items-baseline justify-between gap-2\">\n                <span class=\"truncate\" :class=\"chat.unread ? 'font-semibold' : 'font-medium'\">{{\n                  chat.name\n                }}</span>\n                <span class=\"text-muted-foreground shrink-0 text-xs\">{{ chat.time }}</span>\n              </span>\n              <span class=\"flex items-center gap-2\">\n                <span class=\"text-muted-foreground flex-1 truncate text-sm\">{{\n                  chat.messages[chat.messages.length - 1]!.text\n                }}</span>\n                <UiBadge v-if=\"chat.unread\" shape=\"pill\"\n                  >{{ chat.unread }}<span class=\"sr-only\"> unread</span></UiBadge\n                >\n              </span>\n            </span>\n          </button>\n        </li>\n        <li v-if=\"!filtered.length\" class=\"text-muted-foreground px-4 py-12 text-center text-sm\">\n          No chats found.\n        </li>\n      </ul>\n      <div\n        v-else\n        class=\"text-muted-foreground grid flex-1 place-items-center px-6 text-center text-sm\"\n      >\n        <div>\n          <Icon name=\"lucide:phone-off\" class=\"mx-auto mb-2 size-8\" />\n          No recent calls.\n        </div>\n      </div>\n    </template>\n\n    <template v-else>\n      <header class=\"flex items-center gap-2 border-b px-2 py-3\">\n        <UiButton variant=\"ghost\" size=\"icon\" aria-label=\"Back to chats\" @click=\"open = undefined\">\n          <Icon name=\"lucide:chevron-left\" class=\"size-5\" />\n        </UiButton>\n        <UiAvatar :src=\"open.avatar\" :fallback=\"open.name[0]\" class=\"size-9\" />\n        <h1 ref=\"heading\" tabindex=\"-1\" class=\"font-semibold outline-none\">{{ open.name }}</h1>\n      </header>\n      <div class=\"min-h-0 flex-1 space-y-3 overflow-y-auto p-4\">\n        <UiMessage\n          v-for=\"(message, index) in open.messages\"\n          :key=\"index\"\n          :align=\"message.mine ? 'end' : 'start'\"\n        >\n          <UiMessageContent>\n            <UiBubble :variant=\"message.mine ? 'default' : 'muted'\">\n              <UiBubbleContent>{{ message.text }}</UiBubbleContent>\n            </UiBubble>\n          </UiMessageContent>\n        </UiMessage>\n      </div>\n      <form class=\"flex items-center gap-2 border-t p-3\" @submit.prevent=\"send\">\n        <UiLabel for=\"inbox4\" class=\"sr-only\">Message</UiLabel>\n        <UiInput\n          id=\"inbox4\"\n          v-model=\"draft\"\n          placeholder=\"Message\"\n          class=\"rounded-full\"\n          autocomplete=\"off\"\n        />\n        <UiButton\n          type=\"submit\"\n          size=\"icon\"\n          class=\"rounded-full\"\n          :disabled=\"!draft.trim()\"\n          aria-label=\"Send message\"\n        >\n          <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n        </UiButton>\n      </form>\n    </template>\n\n    <nav v-if=\"!open\" class=\"grid grid-cols-2 border-t\" aria-label=\"Sections\">\n      <button\n        v-for=\"item in tabs\"\n        :key=\"item.id\"\n        type=\"button\"\n        class=\"focus-visible:ring-ring/50 flex flex-col items-center gap-0.5 py-2.5 text-xs outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n        :class=\"tab === item.id ? 'text-primary font-medium' : 'text-muted-foreground'\"\n        :aria-current=\"tab === item.id ? 'page' : undefined\"\n        @click=\"tab = item.id\"\n      >\n        <Icon :name=\"item.icon\" class=\"size-5\" />\n        {{ item.label }}\n      </button>\n    </nav>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Message = { text: string; mine?: boolean };\n  type Chat = {\n    id: string;\n    name: string;\n    avatar: string;\n    time: string;\n    unread: number;\n    messages: Message[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      conversations?: Chat[];\n    }>(),\n    {\n      conversations: () => [\n        {\n          id: \"1\",\n          name: \"Sofia Alvarez\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          time: \"9:41\",\n          unread: 2,\n          messages: [\n            { text: \"Are you free for lunch?\" },\n            { text: \"Can you review the mockups too?\" },\n          ],\n        },\n        {\n          id: \"2\",\n          name: \"Liam Carter\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          time: \"9:12\",\n          unread: 0,\n          messages: [{ text: \"Deployed the fix.\" }, { text: \"Nice, thanks!\", mine: true }],\n        },\n        {\n          id: \"3\",\n          name: \"Family\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          time: \"Yesterday\",\n          unread: 5,\n          messages: [{ text: \"Dinner at 7 on Sunday?\" }],\n        },\n        {\n          id: \"4\",\n          name: \"Noah Williams\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          time: \"Mon\",\n          unread: 0,\n          messages: [{ text: \"Talk tomorrow.\" }],\n        },\n      ],\n    }\n  );\n\n  const tabs = [\n    { id: \"chats\", label: \"Chats\", icon: \"lucide:message-circle\" },\n    { id: \"calls\", label: \"Calls\", icon: \"lucide:phone\" },\n  ];\n\n  const chats = ref<Chat[]>(\n    props.conversations.map((chat) => ({\n      ...chat,\n      messages: chat.messages.map((message) => ({ ...message })),\n    }))\n  );\n  const tab = ref(\"chats\");\n  const query = ref(\"\");\n  const open = ref<Chat>();\n  const draft = ref(\"\");\n  const heading = ref<HTMLElement>();\n\n  const filtered = computed(() => {\n    const term = query.value.trim().toLowerCase();\n    return chats.value.filter((chat) => !term || chat.name.toLowerCase().includes(term));\n  });\n\n  function openChat(chat: Chat) {\n    chat.unread = 0;\n    open.value = chat;\n    nextTick(() => heading.value?.focus());\n  }\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text || !open.value) return;\n    open.value.messages.push({ text, mine: true });\n    draft.value = \"\";\n  }\n</script>\n","category":"InboxLayouts","description":"Mobile first stacked messenger. Features: One screen at a time with a list view and a thread view, a back button with an accessible name, bottom tab bar with unread counts, thread opens full width and focus moves to the thread heading","path":"Chat/InboxLayouts/BlockInboxLayouts4.vue","components":["avatar","badge","bubble","button","input","label","message"]},{"name":"Integration Detail 1","fileName":"BlockIntegrationDetail1.vue","file":"<template>\n  <!--\n    Integration detail page\n    Features: A header with the logo, name, tagline and an install button that turns into an installed state, tabs for overview, features and reviews, a details sidebar with the developer, category, version and links, and a rating summary\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <nav\n        aria-label=\"Breadcrumb\"\n        class=\"text-muted-foreground mb-6 flex items-center gap-1 text-sm\"\n      >\n        <a\n          href=\"#integrations\"\n          class=\"hover:text-foreground\"\n          @click.prevent=\"useSonner.info('Back to all integrations')\"\n          >Integrations</a\n        >\n        <Icon name=\"lucide:chevron-right\" class=\"size-3.5\" />\n        <span class=\"text-foreground\" aria-current=\"page\">{{ app.name }}</span>\n      </nav>\n\n      <div class=\"flex flex-wrap items-center gap-5\">\n        <span class=\"bg-card grid size-20 shrink-0 place-items-center rounded-2xl border\"\n          ><Icon :name=\"app.icon\" class=\"size-12\"\n        /></span>\n        <div class=\"min-w-0 flex-1\">\n          <h1 class=\"text-3xl font-bold tracking-tight\">{{ app.name }}</h1>\n          <p class=\"text-muted-foreground mt-1\">{{ app.tagline }}</p>\n          <p class=\"mt-2 flex items-center gap-2 text-sm\">\n            <span class=\"flex\" role=\"img\" :aria-label=\"`${app.rating} out of 5 stars`\"\n              ><Icon\n                v-for=\"n in 5\"\n                :key=\"n\"\n                name=\"lucide:star\"\n                class=\"size-4\"\n                :class=\"\n                  n <= Math.round(app.rating)\n                    ? 'text-amber-400 [&_path]:fill-amber-400'\n                    : 'text-muted-foreground/40'\n                \"\n            /></span>\n            <span class=\"font-medium\">{{ app.rating }}</span>\n            <span class=\"text-muted-foreground\"\n              >({{ app.reviews.length }} reviews, {{ app.installs }} installs)</span\n            >\n          </p>\n        </div>\n        <UiButton v-if=\"!installed\" size=\"lg\" :loading=\"busy\" @click=\"install\">Install</UiButton>\n        <div v-else class=\"flex items-center gap-2\">\n          <UiBadge variant=\"soft\" color=\"green\" shape=\"pill\">Installed</UiBadge>\n          <UiButton variant=\"outline\" @click=\"installed = false\">Uninstall</UiButton>\n        </div>\n      </div>\n\n      <div class=\"mt-10 grid gap-10 lg:grid-cols-[1fr_16rem]\">\n        <UiTabs v-model=\"tab\">\n          <UiTabsList>\n            <UiTabsTrigger value=\"overview\">Overview</UiTabsTrigger>\n            <UiTabsTrigger value=\"features\">Features</UiTabsTrigger>\n            <UiTabsTrigger value=\"reviews\">Reviews</UiTabsTrigger>\n          </UiTabsList>\n          <UiTabsContent value=\"overview\" class=\"space-y-4\">\n            <p v-for=\"paragraph in app.about\" :key=\"paragraph\" class=\"leading-relaxed\">\n              {{ paragraph }}\n            </p>\n          </UiTabsContent>\n          <UiTabsContent value=\"features\">\n            <ul class=\"grid gap-3 sm:grid-cols-2\">\n              <li\n                v-for=\"feature in app.features\"\n                :key=\"feature.title\"\n                class=\"rounded-xl border p-4\"\n              >\n                <Icon :name=\"feature.icon\" class=\"size-5\" />\n                <p class=\"mt-2 text-sm font-medium\">{{ feature.title }}</p>\n                <p class=\"text-muted-foreground mt-1 text-sm\">{{ feature.body }}</p>\n              </li>\n            </ul>\n          </UiTabsContent>\n          <UiTabsContent value=\"reviews\">\n            <ul class=\"divide-y\">\n              <li v-for=\"review in app.reviews\" :key=\"review.who\" class=\"py-4\">\n                <div class=\"flex items-center gap-2\">\n                  <UiAvatar\n                    :src=\"`https://i.pravatar.cc/80?img=${review.avatar}`\"\n                    :fallback=\"review.who.slice(0, 1)\"\n                    class=\"size-8\"\n                  />\n                  <p class=\"text-sm font-medium\">{{ review.who }}</p>\n                  <span class=\"ml-auto text-xs\" aria-label=\"rating\"\n                    >{{ \"★\".repeat(review.stars)\n                    }}<span class=\"text-muted-foreground/40\">{{\n                      \"★\".repeat(5 - review.stars)\n                    }}</span></span\n                  >\n                </div>\n                <p class=\"text-muted-foreground mt-2 text-sm\">{{ review.text }}</p>\n              </li>\n            </ul>\n          </UiTabsContent>\n        </UiTabs>\n\n        <aside>\n          <h2 class=\"text-sm font-semibold\">Details</h2>\n          <dl class=\"mt-3 divide-y text-sm\">\n            <div\n              v-for=\"row in app.details\"\n              :key=\"row.label\"\n              class=\"flex justify-between gap-3 py-2.5\"\n            >\n              <dt class=\"text-muted-foreground\">{{ row.label }}</dt>\n              <dd class=\"text-right font-medium\">{{ row.value }}</dd>\n            </div>\n          </dl>\n          <div class=\"mt-4 flex flex-col gap-2\">\n            <UiButton\n              variant=\"outline\"\n              size=\"sm\"\n              @click=\"useSonner.info('Open the documentation here')\"\n              ><Icon name=\"lucide:book-open\" class=\"size-4\" />Documentation</UiButton\n            >\n            <UiButton variant=\"outline\" size=\"sm\" @click=\"useSonner.info('Open support here')\"\n              ><Icon name=\"lucide:life-buoy\" class=\"size-4\" />Get support</UiButton\n            >\n          </div>\n        </aside>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type AppInfo = {\n    name: string;\n    icon: string;\n    tagline: string;\n    rating: number;\n    installs: string;\n    about: string[];\n    features: { icon: string; title: string; body: string }[];\n    reviews: { who: string; avatar: number; stars: number; text: string }[];\n    details: { label: string; value: string }[];\n  };\n\n  withDefaults(\n    defineProps<{\n      app?: AppInfo;\n    }>(),\n    {\n      app: () => ({\n        name: \"Slack\",\n        icon: \"logos:slack-icon\",\n        tagline: \"Get alerts and summaries in the channels where your team already talks.\",\n        rating: 4.7,\n        installs: \"12k\",\n        about: [\n          \"Connect Acme to Slack and choose which events post to which channel. New tasks, comments and status changes show up the moment they happen.\",\n          \"Reply to a notification without leaving Slack, or use a slash command to create a task from any conversation.\",\n        ],\n        features: [\n          {\n            icon: \"lucide:bell\",\n            title: \"Real time alerts\",\n            body: \"Choose the events and the channel for each one.\",\n          },\n          {\n            icon: \"lucide:terminal\",\n            title: \"Slash commands\",\n            body: \"Create and find tasks with /acme.\",\n          },\n          {\n            icon: \"lucide:calendar-clock\",\n            title: \"Daily summary\",\n            body: \"A digest of what changed, every morning.\",\n          },\n          {\n            icon: \"lucide:message-square-reply\",\n            title: \"Reply from Slack\",\n            body: \"Comments you write in Slack sync back.\",\n          },\n        ],\n        reviews: [\n          {\n            who: \"Maya Patel\",\n            avatar: 32,\n            stars: 5,\n            text: \"Setup took two minutes and my team stopped missing updates.\",\n          },\n          {\n            who: \"Leo Fischer\",\n            avatar: 12,\n            stars: 4,\n            text: \"Great integration. I would love per project channels.\",\n          },\n          {\n            who: \"Sofia Alvarez\",\n            avatar: 45,\n            stars: 5,\n            text: \"The daily summary is the best part of my morning.\",\n          },\n        ],\n        details: [\n          { label: \"Category\", value: \"Communication\" },\n          { label: \"Developer\", value: \"Acme\" },\n          { label: \"Version\", value: \"2.4.0\" },\n          { label: \"Updated\", value: \"Oct 14, 2026\" },\n          { label: \"Works with\", value: \"All plans\" },\n        ],\n      }),\n    }\n  );\n\n  const tab = ref(\"overview\");\n  const installed = ref(false);\n  const busy = ref(false);\n\n  function install() {\n    busy.value = true;\n    setTimeout(() => {\n      busy.value = false;\n      installed.value = true;\n      useSonner.success(\"Integration installed\");\n    }, 700);\n  }\n</script>\n","category":"IntegrationDetail","description":"Integration detail page. Features: A header with the logo, name, tagline and an install button that turns into an installed state, tabs for overview, features and reviews, a details sidebar with the developer, category, version and links, and a rating summary","path":"IntegrationsMarketing/IntegrationDetail/BlockIntegrationDetail1.vue","components":["avatar","badge","button","container","tabs"]},{"name":"Integration Detail 2","fileName":"BlockIntegrationDetail2.vue","file":"<template>\n  <!--\n    Integration setup steps\n    Features: A vertical list of steps for connecting a tool, each step opens when the one before is done, a connect account step, a channel select, a test message step with a result, an overall progress bar and a done state with an option to start again\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex items-center gap-4\">\n        <span class=\"bg-card grid size-14 shrink-0 place-items-center rounded-xl border\"\n          ><Icon :name=\"icon\" class=\"size-8\"\n        /></span>\n        <div class=\"min-w-0 flex-1\">\n          <h1 class=\"text-2xl font-bold tracking-tight\">Connect {{ name }}</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n            {{ done }} of {{ steps.length }} steps complete\n          </p>\n        </div>\n      </div>\n      <UiProgress\n        :model-value=\"(done / steps.length) * 100\"\n        class=\"mt-4 h-1.5\"\n        aria-label=\"Setup progress\"\n      />\n\n      <ol class=\"mt-8 space-y-4\">\n        <li\n          v-for=\"(step, index) in steps\"\n          :key=\"step.id\"\n          class=\"rounded-xl border p-5\"\n          :class=\"current === index ? 'border-primary/50 bg-primary/5' : ''\"\n          :aria-current=\"current === index ? 'step' : undefined\"\n        >\n          <div class=\"flex items-start gap-4\">\n            <span\n              class=\"grid size-8 shrink-0 place-items-center rounded-full border text-sm font-semibold\"\n              :class=\"\n                index < current\n                  ? 'border-green-500 bg-green-500 text-white'\n                  : current === index\n                    ? 'border-primary bg-primary text-primary-foreground'\n                    : 'text-muted-foreground'\n              \"\n            >\n              <Icon v-if=\"index < current\" name=\"lucide:check\" class=\"size-4\" /><template v-else>{{\n                index + 1\n              }}</template>\n            </span>\n            <div class=\"min-w-0 flex-1\">\n              <h2 class=\"font-medium\" :class=\"index > current ? 'text-muted-foreground' : ''\">\n                {{ step.title }}\n              </h2>\n              <p class=\"text-muted-foreground mt-0.5 text-sm\">\n                {{ index < current ? step.done : step.body }}\n              </p>\n\n              <div v-if=\"current === index\" class=\"mt-4\">\n                <template v-if=\"step.id === 'account'\">\n                  <UiButton :loading=\"busy\" @click=\"connect\">Connect {{ name }} account</UiButton>\n                </template>\n                <template v-else-if=\"step.id === 'channel'\">\n                  <div class=\"space-y-2\">\n                    <UiLabel for=\"setup-channel\">Channel</UiLabel>\n                    <UiSelect v-model=\"channel\">\n                      <UiSelectTrigger id=\"setup-channel\" class=\"max-w-xs\"\n                        ><UiSelectValue placeholder=\"Choose a channel\"\n                      /></UiSelectTrigger>\n                      <UiSelectContent>\n                        <UiSelectItem v-for=\"item in channels\" :key=\"item\" :value=\"item\">{{\n                          item\n                        }}</UiSelectItem>\n                      </UiSelectContent>\n                    </UiSelect>\n                    <div>\n                      <UiButton :disabled=\"!channel\" @click=\"current++\">Save channel</UiButton>\n                    </div>\n                  </div>\n                </template>\n                <template v-else>\n                  <UiButton :loading=\"busy\" @click=\"test\">Send a test message</UiButton>\n                  <p v-if=\"failed\" class=\"text-destructive mt-2 text-sm\" role=\"alert\">\n                    The test failed. Check that the bot is in {{ channel }} and try again.\n                  </p>\n                </template>\n              </div>\n            </div>\n          </div>\n        </li>\n      </ol>\n\n      <div\n        v-if=\"current >= steps.length\"\n        class=\"mt-6 rounded-xl border border-green-500/40 bg-green-500/5 p-6 text-center\"\n        role=\"status\"\n      >\n        <span class=\"mx-auto grid size-12 place-items-center rounded-full bg-green-500 text-white\"\n          ><Icon name=\"lucide:check\" class=\"size-6\"\n        /></span>\n        <p class=\"mt-3 font-semibold\">{{ name }} is connected</p>\n        <p class=\"text-muted-foreground mt-1 text-sm\">Alerts will post to {{ channel }}.</p>\n        <UiButton variant=\"outline\" size=\"sm\" class=\"mt-4\" @click=\"restart\">Set up again</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      name?: string;\n      icon?: string;\n      channels?: string[];\n    }>(),\n    {\n      name: \"Slack\",\n      icon: \"logos:slack-icon\",\n      channels: () => [\"#general\", \"#product\", \"#alerts\", \"#engineering\"],\n    }\n  );\n\n  const steps = [\n    {\n      id: \"account\",\n      title: \"Connect your account\",\n      body: \"Sign in and allow Acme to post messages.\",\n      done: \"Account connected.\",\n    },\n    {\n      id: \"channel\",\n      title: \"Choose a channel\",\n      body: \"Pick where alerts should appear.\",\n      done: \"Channel saved.\",\n    },\n    {\n      id: \"test\",\n      title: \"Send a test message\",\n      body: \"Make sure everything works before you go live.\",\n      done: \"Test message delivered.\",\n    },\n  ];\n\n  const current = ref(0);\n  const channel = ref(\"\");\n  const busy = ref(false);\n  const failed = ref(false);\n  let attempts = 0;\n\n  const done = computed(() => Math.min(current.value, steps.length));\n\n  function connect() {\n    busy.value = true;\n    setTimeout(() => {\n      busy.value = false;\n      current.value = 1;\n    }, 600);\n  }\n\n  function test() {\n    busy.value = true;\n    failed.value = false;\n    attempts++;\n    setTimeout(() => {\n      busy.value = false;\n      // The first attempt fails on purpose to show the error state.\n      if (attempts === 1) failed.value = true;\n      else current.value = 3;\n    }, 600);\n  }\n\n  function restart() {\n    current.value = 0;\n    channel.value = \"\";\n    failed.value = false;\n    attempts = 0;\n  }\n</script>\n","category":"IntegrationDetail","description":"Integration setup steps. Features: A vertical list of steps for connecting a tool, each step opens when the one before is done, a connect account step, a channel select, a test message step with a result, an overall progress bar and a done state with an option to start again","path":"IntegrationsMarketing/IntegrationDetail/BlockIntegrationDetail2.vue","components":["button","container","label","progress","select"]},{"name":"Integration Detail 3","fileName":"BlockIntegrationDetail3.vue","file":"<template>\n  <!--\n    Permissions list\n    Features: What the integration can access, split into required and optional permissions, a switch for each optional one, a risk label with text, a summary that counts what you allow, an allow all optional shortcut and a note on how to revoke access\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-xl gap-0 py-0\">\n      <div class=\"flex items-center gap-4 border-b px-6 py-5\">\n        <span class=\"bg-muted grid size-12 shrink-0 place-items-center rounded-xl\"\n          ><Icon :name=\"icon\" class=\"size-7\"\n        /></span>\n        <div class=\"min-w-0 flex-1\">\n          <h1 class=\"font-semibold\">{{ name }} wants to access your account</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n            Allowing {{ allowed }} of {{ permissions.length }} permissions\n          </p>\n        </div>\n      </div>\n\n      <section class=\"px-6 py-5\" aria-label=\"Required permissions\">\n        <h2 class=\"text-muted-foreground text-xs font-semibold tracking-wide uppercase\">\n          Required\n        </h2>\n        <ul class=\"mt-3 space-y-3\">\n          <li v-for=\"permission in required\" :key=\"permission.id\" class=\"flex items-start gap-3\">\n            <Icon name=\"lucide:lock\" class=\"text-muted-foreground mt-0.5 size-4 shrink-0\" />\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"text-sm font-medium\">{{ permission.title }}</p>\n              <p class=\"text-muted-foreground text-sm\">{{ permission.body }}</p>\n            </div>\n            <UiBadge variant=\"soft\" shape=\"pill\" :color=\"risk[permission.risk]\"\n              >{{ permission.risk }} risk</UiBadge\n            >\n          </li>\n        </ul>\n      </section>\n\n      <section class=\"border-t px-6 py-5\" aria-label=\"Optional permissions\">\n        <div class=\"flex items-center justify-between gap-3\">\n          <h2 class=\"text-muted-foreground text-xs font-semibold tracking-wide uppercase\">\n            Optional\n          </h2>\n          <UiButton variant=\"ghost\" size=\"sm\" class=\"h-7\" @click=\"setAll(!allOptional)\">{{\n            allOptional ? \"Turn all off\" : \"Allow all optional\"\n          }}</UiButton>\n        </div>\n        <ul class=\"mt-3 space-y-4\">\n          <li v-for=\"permission in optional\" :key=\"permission.id\" class=\"flex items-start gap-3\">\n            <div class=\"min-w-0 flex-1\">\n              <UiLabel :for=\"`perm-${permission.id}`\" class=\"text-sm font-medium\">{{\n                permission.title\n              }}</UiLabel>\n              <p class=\"text-muted-foreground text-sm\">{{ permission.body }}</p>\n              <UiBadge variant=\"soft\" shape=\"pill\" :color=\"risk[permission.risk]\" class=\"mt-1.5\"\n                >{{ permission.risk }} risk</UiBadge\n              >\n            </div>\n            <UiSwitch\n              :id=\"`perm-${permission.id}`\"\n              :model-value=\"granted.has(permission.id)\"\n              @update:model-value=\"toggle(permission.id)\"\n            />\n          </li>\n        </ul>\n      </section>\n\n      <div class=\"bg-muted/40 flex items-start gap-3 border-t px-6 py-4 text-sm\">\n        <Icon name=\"lucide:shield-check\" class=\"text-muted-foreground mt-0.5 size-4 shrink-0\" />\n        <p class=\"text-muted-foreground\">\n          You can change or revoke access at any time in Settings, then Integrations.\n        </p>\n      </div>\n\n      <div class=\"flex justify-end gap-2 border-t px-6 py-4\">\n        <UiButton variant=\"outline\" @click=\"useSonner.info('Access denied')\">Cancel</UiButton>\n        <UiButton @click=\"useSonner.success(`Allowed ${allowed} permissions`)\"\n          >Allow access</UiButton\n        >\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Risk = \"low\" | \"medium\" | \"high\";\n  type Permission = { id: string; title: string; body: string; risk: Risk; required?: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      name?: string;\n      icon?: string;\n      permissions?: Permission[];\n    }>(),\n    {\n      name: \"Slack\",\n      icon: \"logos:slack-icon\",\n      permissions: () => [\n        {\n          id: \"profile\",\n          title: \"See your name and email\",\n          body: \"Used to match your Acme account.\",\n          risk: \"low\",\n          required: true,\n        },\n        {\n          id: \"channels\",\n          title: \"See channel names\",\n          body: \"So you can pick where alerts post.\",\n          risk: \"low\",\n          required: true,\n        },\n        {\n          id: \"post\",\n          title: \"Post messages as Acme\",\n          body: \"Send alerts and summaries to the channels you choose.\",\n          risk: \"medium\",\n          required: true,\n        },\n        {\n          id: \"history\",\n          title: \"Read message history\",\n          body: \"Lets Acme link a message to a task. Only in channels where it is added.\",\n          risk: \"high\",\n        },\n        {\n          id: \"files\",\n          title: \"Upload files\",\n          body: \"Attach exports and reports to messages.\",\n          risk: \"medium\",\n        },\n        {\n          id: \"users\",\n          title: \"See the member list\",\n          body: \"Lets you mention people by name.\",\n          risk: \"low\",\n        },\n      ],\n    }\n  );\n\n  const risk: Record<Risk, string> = { low: \"green\", medium: \"amber\", high: \"red\" };\n  const required = computed(() => props.permissions.filter((permission) => permission.required));\n  const optional = computed(() => props.permissions.filter((permission) => !permission.required));\n  const granted = ref(new Set<string>([\"users\"]));\n\n  const allowed = computed(() => required.value.length + granted.value.size);\n  const allOptional = computed(\n    () =>\n      optional.value.length > 0 &&\n      optional.value.every((permission) => granted.value.has(permission.id))\n  );\n\n  function toggle(id: string) {\n    const next = new Set(granted.value);\n    if (next.has(id)) next.delete(id);\n    else next.add(id);\n    granted.value = next;\n  }\n\n  function setAll(on: boolean) {\n    granted.value = on ? new Set(optional.value.map((permission) => permission.id)) : new Set();\n  }\n</script>\n","category":"IntegrationDetail","description":"Permissions list. Features: What the integration can access, split into required and optional permissions, a switch for each optional one, a risk label with text, a summary that counts what you allow, an allow all optional shortcut and a note on how to revoke access","path":"IntegrationsMarketing/IntegrationDetail/BlockIntegrationDetail3.vue","components":["badge","button","card","container","label","switch"]},{"name":"Integration Detail 4","fileName":"BlockIntegrationDetail4.vue","file":"<template>\n  <!--\n    Related integrations\n    Features: A works well with section for the integration you are viewing, cards with a logo, a short description and an add button that changes to added, a category filter, a count of what you added and a show more button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Works well with {{ name }}</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\" aria-live=\"polite\">\n            {{ added.size }} added\n          </p>\n        </div>\n        <UiToggleGroup\n          :model-value=\"category\"\n          type=\"single\"\n          variant=\"outline\"\n          size=\"sm\"\n          aria-label=\"Category\"\n          @update:model-value=\"(value) => (category = (value as string) || 'all')\"\n        >\n          <UiToggleGroupItem\n            v-for=\"item in categories\"\n            :key=\"item\"\n            :value=\"item\"\n            class=\"capitalize\"\n            >{{ item }}</UiToggleGroupItem\n          >\n        </UiToggleGroup>\n      </div>\n\n      <ul class=\"mt-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-3\" aria-live=\"polite\">\n        <li v-for=\"item in shown\" :key=\"item.name\">\n          <UiCard class=\"h-full gap-3\">\n            <UiCardHeader>\n              <div class=\"flex items-center gap-3\">\n                <span class=\"bg-muted grid size-11 place-items-center rounded-lg\"\n                  ><Icon\n                    :name=\"item.icon\"\n                    class=\"size-6 shrink-0 rounded-md dark:bg-zinc-100 dark:p-1\"\n                /></span>\n                <div class=\"min-w-0 flex-1\">\n                  <UiCardTitle class=\"text-base\">{{ item.name }}</UiCardTitle>\n                  <UiBadge variant=\"soft\" shape=\"pill\" class=\"capitalize\">{{\n                    item.category\n                  }}</UiBadge>\n                </div>\n              </div>\n            </UiCardHeader>\n            <UiCardContent class=\"text-muted-foreground flex-1 text-sm\">{{\n              item.description\n            }}</UiCardContent>\n            <UiCardFooter>\n              <UiButton\n                class=\"w-full\"\n                size=\"sm\"\n                :variant=\"added.has(item.name) ? 'secondary' : 'outline'\"\n                :aria-pressed=\"added.has(item.name)\"\n                @click=\"toggle(item.name)\"\n              >\n                <Icon\n                  :name=\"added.has(item.name) ? 'lucide:check' : 'lucide:plus'\"\n                  class=\"size-4\"\n                />{{ added.has(item.name) ? \"Added\" : \"Add\" }}\n              </UiButton>\n            </UiCardFooter>\n          </UiCard>\n        </li>\n      </ul>\n      <p\n        v-if=\"!shown.length\"\n        class=\"text-muted-foreground mt-6 rounded-xl border border-dashed py-12 text-center text-sm\"\n      >\n        No related integrations here yet.\n      </p>\n\n      <div v-if=\"hidden > 0\" class=\"mt-6 text-center\">\n        <UiButton variant=\"outline\" @click=\"count += 3\"\n          >Show {{ Math.min(hidden, 3) }} more</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = { name: string; icon: string; category: string; description: string };\n\n  const props = withDefaults(\n    defineProps<{\n      name?: string;\n      related?: Item[];\n    }>(),\n    {\n      name: \"Slack\",\n      related: () => [\n        {\n          name: \"Zoom\",\n          icon: \"logos:zoom-icon\",\n          category: \"communication\",\n          description: \"Start a meeting from any thread.\",\n        },\n        {\n          name: \"Google Calendar\",\n          icon: \"logos:google-calendar\",\n          category: \"productivity\",\n          description: \"Show deadlines on your calendar.\",\n        },\n        {\n          name: \"GitHub\",\n          icon: \"logos:github-icon\",\n          category: \"development\",\n          description: \"See pull requests inside tasks.\",\n        },\n        {\n          name: \"Notion\",\n          icon: \"logos:notion-icon\",\n          category: \"productivity\",\n          description: \"Embed live views in your docs.\",\n        },\n        {\n          name: \"Linear\",\n          icon: \"logos:linear-icon\",\n          category: \"development\",\n          description: \"Keep issues and tasks in sync.\",\n        },\n        {\n          name: \"Intercom\",\n          icon: \"logos:intercom-icon\",\n          category: \"communication\",\n          description: \"Turn a chat into a task.\",\n        },\n        {\n          name: \"Trello\",\n          icon: \"logos:trello\",\n          category: \"productivity\",\n          description: \"Import boards and keep them current.\",\n        },\n      ],\n    }\n  );\n\n  const category = ref(\"all\");\n  const count = ref(3);\n  const added = ref(new Set<string>());\n\n  const categories = computed(() => [\n    \"all\",\n    ...new Set(props.related.map((item) => item.category)),\n  ]);\n  const filtered = computed(() =>\n    props.related.filter((item) => category.value === \"all\" || item.category === category.value)\n  );\n  const shown = computed(() => filtered.value.slice(0, count.value));\n  const hidden = computed(() => filtered.value.length - shown.value.length);\n\n  watch(category, () => (count.value = 3));\n\n  function toggle(name: string) {\n    const next = new Set(added.value);\n    if (next.has(name)) next.delete(name);\n    else next.add(name);\n    added.value = next;\n  }\n</script>\n","category":"IntegrationDetail","description":"Related integrations. Features: A works well with section for the integration you are viewing, cards with a logo, a short description and an add button that changes to added, a category filter, a count of what you added and a show more button","path":"IntegrationsMarketing/IntegrationDetail/BlockIntegrationDetail4.vue","components":["badge","button","card","container","toggle-group"]},{"name":"Settings Integrations Grid","fileName":"BlockSettingsIntegrationsGrid.vue","file":"<template>\n  <!--\n    Integrations grid with connect toggles\n    Features: Filter by category, search, app cards with connected badge, switch to connect and disconnect, empty state\n  -->\n  <div class=\"space-y-6\">\n    <div class=\"flex flex-wrap items-end justify-between gap-4\">\n      <div>\n        <h2 class=\"text-lg font-semibold\" v-html=\"props.title\" />\n        <p class=\"text-muted-foreground text-sm\" v-html=\"props.description\" />\n      </div>\n      <div class=\"relative w-full sm:w-64\">\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput v-model=\"query\" placeholder=\"Search apps\" class=\"pl-9\" />\n      </div>\n    </div>\n\n    <div class=\"flex flex-wrap gap-2\">\n      <UiButton\n        v-for=\"category in categories\"\n        :key=\"category\"\n        size=\"sm\"\n        :variant=\"active === category ? 'default' : 'outline'\"\n        @click=\"active = category\"\n      >\n        {{ category }}\n      </UiButton>\n    </div>\n\n    <div v-if=\"filtered.length\" class=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n      <UiCard v-for=\"app in filtered\" :key=\"app.id\" class=\"gap-4\">\n        <UiCardHeader>\n          <div class=\"flex items-start justify-between gap-3\">\n            <div class=\"bg-muted flex size-10 items-center justify-center rounded-lg border\">\n              <Icon :name=\"app.icon\" class=\"size-6\" />\n            </div>\n            <UiSwitch\n              :model-value=\"app.connected\"\n              :aria-label=\"`Connect ${app.name}`\"\n              @update:model-value=\"toggle(app, $event === true)\"\n            />\n          </div>\n          <UiCardTitle class=\"mt-2 flex items-center gap-2\">\n            {{ app.name }}\n            <UiBadge v-if=\"app.connected\" variant=\"success\">Connected</UiBadge>\n          </UiCardTitle>\n          <UiCardDescription>{{ app.description }}</UiCardDescription>\n        </UiCardHeader>\n      </UiCard>\n    </div>\n    <div\n      v-else\n      class=\"text-muted-foreground flex h-40 items-center justify-center rounded-lg border border-dashed text-sm\"\n    >\n      No apps match your search.\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type App = {\n    id: string;\n    name: string;\n    description: string;\n    icon: string;\n    category: string;\n    connected: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Integrations\",\n      description: \"Connect the tools your team already uses.\",\n    }\n  );\n\n  const apps = reactive<App[]>([\n    {\n      id: \"slack\",\n      name: \"Slack\",\n      description: \"Get notifications and run commands in your channels.\",\n      icon: \"logos:slack-icon\",\n      category: \"Communication\",\n      connected: true,\n    },\n    {\n      id: \"github\",\n      name: \"GitHub\",\n      description: \"Link commits and pull requests to your projects.\",\n      icon: \"mdi:github\",\n      category: \"Developer\",\n      connected: true,\n    },\n    {\n      id: \"figma\",\n      name: \"Figma\",\n      description: \"Embed live designs and keep specs in sync.\",\n      icon: \"logos:figma\",\n      category: \"Design\",\n      connected: false,\n    },\n    {\n      id: \"notion\",\n      name: \"Notion\",\n      description: \"Sync docs and databases with your workspace.\",\n      icon: \"logos:notion-icon\",\n      category: \"Productivity\",\n      connected: false,\n    },\n    {\n      id: \"stripe\",\n      name: \"Stripe\",\n      description: \"Show customers and revenue next to your data.\",\n      icon: \"logos:stripe\",\n      category: \"Developer\",\n      connected: false,\n    },\n    {\n      id: \"zoom\",\n      name: \"Zoom\",\n      description: \"Start meetings straight from a task or comment.\",\n      icon: \"logos:zoom-icon\",\n      category: \"Communication\",\n      connected: false,\n    },\n  ]);\n\n  const query = ref(\"\");\n  const active = ref(\"All\");\n  const categories = computed(() => [\"All\", ...new Set(apps.map((app) => app.category))]);\n\n  const filtered = computed(() =>\n    apps.filter(\n      (app) =>\n        (active.value === \"All\" || app.category === active.value) &&\n        `${app.name} ${app.description}`.toLowerCase().includes(query.value.toLowerCase())\n    )\n  );\n\n  function toggle(app: App, value: boolean) {\n    app.connected = value;\n    useSonner[value ? \"success\" : \"info\"](\n      value ? `${app.name} connected` : `${app.name} disconnected`\n    );\n  }\n</script>\n","category":"Integrations","description":"Integrations grid with connect toggles. Features: Filter by category, search, app cards with connected badge, switch to connect and disconnect, empty state","path":"Settings/Integrations/BlockSettingsIntegrationsGrid.vue","components":["badge","button","card","input","switch"]},{"name":"Settings Integrations List","fileName":"BlockSettingsIntegrationsList.vue","file":"<template>\n  <!--\n    Integrations as a list with status and configure actions\n    Features: Rows with app icon, status dot and last sync time, connect or manage buttons, disconnect confirmation\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <UiCardContent class=\"divide-y p-0\">\n      <div v-for=\"app in apps\" :key=\"app.id\" class=\"flex flex-wrap items-center gap-4 px-6 py-4\">\n        <div class=\"bg-muted flex size-10 shrink-0 items-center justify-center rounded-lg border\">\n          <Icon :name=\"app.icon\" class=\"size-6\" />\n        </div>\n        <div class=\"min-w-0 flex-1\">\n          <p class=\"text-sm font-medium\">{{ app.name }}</p>\n          <p class=\"text-muted-foreground flex items-center gap-1.5 text-sm\">\n            <span\n              class=\"size-1.5 rounded-full\"\n              :class=\"app.connected ? 'bg-green-500' : 'bg-muted-foreground/40'\"\n            />\n            {{ app.connected ? `Synced ${app.lastSync}` : \"Not connected\" }}\n          </p>\n        </div>\n        <div class=\"flex gap-2\">\n          <template v-if=\"app.connected\">\n            <UiButton variant=\"outline\" size=\"sm\">Configure</UiButton>\n            <UiAlertDialog>\n              <UiAlertDialogTrigger as-child>\n                <UiButton variant=\"ghost\" size=\"sm\" class=\"text-destructive hover:text-destructive\">\n                  Disconnect\n                </UiButton>\n              </UiAlertDialogTrigger>\n              <UiAlertDialogContent>\n                <UiAlertDialogHeader>\n                  <UiAlertDialogTitle>Disconnect {{ app.name }}?</UiAlertDialogTitle>\n                  <UiAlertDialogDescription>\n                    Automations that use {{ app.name }} will stop running until you reconnect.\n                  </UiAlertDialogDescription>\n                </UiAlertDialogHeader>\n                <UiAlertDialogFooter>\n                  <UiAlertDialogCancel>Cancel</UiAlertDialogCancel>\n                  <UiAlertDialogAction @click=\"setConnected(app, false)\">\n                    Disconnect\n                  </UiAlertDialogAction>\n                </UiAlertDialogFooter>\n              </UiAlertDialogContent>\n            </UiAlertDialog>\n          </template>\n          <UiButton v-else size=\"sm\" @click=\"setConnected(app, true)\">Connect</UiButton>\n        </div>\n      </div>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type App = { id: string; name: string; icon: string; connected: boolean; lastSync: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Connected apps\",\n      description: \"See what's connected to your workspace and when it last synced.\",\n    }\n  );\n\n  const apps = reactive<App[]>([\n    {\n      id: \"slack\",\n      name: \"Slack\",\n      icon: \"logos:slack-icon\",\n      connected: true,\n      lastSync: \"2 minutes ago\",\n    },\n    {\n      id: \"github\",\n      name: \"GitHub\",\n      icon: \"mdi:github\",\n      connected: true,\n      lastSync: \"1 hour ago\",\n    },\n    { id: \"figma\", name: \"Figma\", icon: \"logos:figma\", connected: false, lastSync: \"\" },\n    { id: \"notion\", name: \"Notion\", icon: \"logos:notion-icon\", connected: false, lastSync: \"\" },\n  ]);\n\n  function setConnected(app: App, value: boolean) {\n    app.connected = value;\n    app.lastSync = value ? \"just now\" : \"\";\n    useSonner[value ? \"success\" : \"info\"](\n      value ? `${app.name} connected` : `${app.name} disconnected`\n    );\n  }\n</script>\n","category":"Integrations","description":"Integrations as a list with status and configure actions. Features: Rows with app icon, status dot and last sync time, connect or manage buttons, disconnect confirmation","path":"Settings/Integrations/BlockSettingsIntegrationsList.vue","components":["alert-dialog","button","card"]},{"name":"Integrations Grid 1","fileName":"BlockIntegrationsGrid1.vue","file":"<template>\n  <!--\n    Integration logo grid\n    Features: A clean grid of logo tiles with the name below each one, a hover lift that respects reduced motion, tiles that are real links with focus rings and a link to all integrations\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl text-center\">\n      <h1 class=\"text-3xl font-bold tracking-tight lg:text-4xl\">\n        Works with the tools you already use\n      </h1>\n      <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl\">\n        Connect Acme to your stack in a few clicks. No code needed.\n      </p>\n\n      <ul class=\"mt-10 grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-6\">\n        <li v-for=\"item in items\" :key=\"item.name\">\n          <a\n            :href=\"`#${item.name.toLowerCase().replace(/ /g, '-')}`\"\n            class=\"bg-card hover:border-primary/40 focus-visible:ring-ring/50 flex flex-col items-center gap-3 rounded-xl border p-5 transition-transform outline-none hover:-translate-y-0.5 focus-visible:ring-[3px] motion-reduce:transition-none motion-reduce:hover:translate-y-0\"\n            @click.prevent=\"useSonner.info(`Open the ${item.name} page here`)\"\n          >\n            <Icon :name=\"item.icon\" class=\"size-9 shrink-0 rounded-md dark:bg-zinc-100 dark:p-1\" />\n            <span class=\"text-sm font-medium\">{{ item.name }}</span>\n          </a>\n        </li>\n      </ul>\n\n      <UiButton\n        variant=\"outline\"\n        class=\"mt-10\"\n        @click=\"useSonner.info('Open all integrations here')\"\n        >See all {{ total }} integrations<Icon name=\"lucide:arrow-right\" class=\"size-4\"\n      /></UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      total?: number;\n      items?: { name: string; icon: string }[];\n    }>(),\n    {\n      total: 120,\n      items: () => [\n        { name: \"Slack\", icon: \"logos:slack-icon\" },\n        { name: \"GitHub\", icon: \"logos:github-icon\" },\n        { name: \"Google Drive\", icon: \"logos:google-drive\" },\n        { name: \"Notion\", icon: \"logos:notion-icon\" },\n        { name: \"Figma\", icon: \"logos:figma\" },\n        { name: \"Stripe\", icon: \"logos:stripe\" },\n        { name: \"Zoom\", icon: \"logos:zoom-icon\" },\n        { name: \"Jira\", icon: \"logos:jira\" },\n        { name: \"HubSpot\", icon: \"logos:hubspot\" },\n        { name: \"Trello\", icon: \"logos:trello\" },\n        { name: \"Dropbox\", icon: \"logos:dropbox\" },\n        { name: \"Google Calendar\", icon: \"logos:google-calendar\" },\n      ],\n    }\n  );\n</script>\n","category":"IntegrationsGrid","description":"Integration logo grid. Features: A clean grid of logo tiles with the name below each one, a hover lift that respects reduced motion, tiles that are real links with focus rings and a link to all integrations","path":"IntegrationsMarketing/IntegrationsGrid/BlockIntegrationsGrid1.vue","components":["button","container"]},{"name":"Integrations Grid 2","fileName":"BlockIntegrationsGrid2.vue","file":"<template>\n  <!--\n    Searchable integrations with categories\n    Features: Search, category chips with counts, cards with a logo, a short description and a category tag, a live result count and an empty state with a clear button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Integrations</h1>\n      <p class=\"text-muted-foreground mt-2\">Find the tools that work with Acme.</p>\n\n      <div class=\"relative mt-6\">\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput\n          v-model=\"query\"\n          class=\"pl-9\"\n          placeholder=\"Search integrations\"\n          aria-label=\"Search integrations\"\n        />\n      </div>\n      <div class=\"mt-3 flex flex-wrap gap-2\" role=\"group\" aria-label=\"Category\">\n        <UiButton\n          v-for=\"item in categories\"\n          :key=\"item\"\n          size=\"sm\"\n          class=\"rounded-full capitalize\"\n          :variant=\"category === item ? 'default' : 'outline'\"\n          :aria-pressed=\"category === item\"\n          @click=\"category = item\"\n          >{{ item }}<span class=\"text-xs opacity-70\">{{ count(item) }}</span></UiButton\n        >\n      </div>\n      <p class=\"text-muted-foreground mt-4 text-sm\" aria-live=\"polite\">\n        {{ visible.length }} {{ visible.length === 1 ? \"integration\" : \"integrations\" }}\n      </p>\n\n      <ul v-if=\"visible.length\" class=\"mt-3 grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n        <li v-for=\"item in visible\" :key=\"item.name\" class=\"bg-card rounded-xl border p-5\">\n          <div class=\"flex items-center gap-3\">\n            <span class=\"bg-muted grid size-11 place-items-center rounded-lg\"\n              ><Icon :name=\"item.icon\" class=\"size-6 shrink-0 rounded-md dark:bg-zinc-100 dark:p-1\"\n            /></span>\n            <div class=\"min-w-0\">\n              <p class=\"font-medium\">{{ item.name }}</p>\n              <UiBadge variant=\"soft\" shape=\"pill\" class=\"capitalize\">{{ item.category }}</UiBadge>\n            </div>\n          </div>\n          <p class=\"text-muted-foreground mt-3 text-sm\">{{ item.description }}</p>\n        </li>\n      </ul>\n      <div v-else class=\"mt-4 rounded-xl border border-dashed py-14 text-center\" aria-live=\"polite\">\n        <Icon name=\"lucide:search-x\" class=\"text-muted-foreground mx-auto size-6\" />\n        <p class=\"mt-2 text-sm font-medium\">No integrations found</p>\n        <UiButton variant=\"link\" size=\"sm\" @click=\"clear\">Clear search</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = { name: string; icon: string; category: string; description: string };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Item[];\n    }>(),\n    {\n      items: () => [\n        {\n          name: \"Slack\",\n          icon: \"logos:slack-icon\",\n          category: \"communication\",\n          description: \"Get alerts and summaries in your channels.\",\n        },\n        {\n          name: \"Zoom\",\n          icon: \"logos:zoom-icon\",\n          category: \"communication\",\n          description: \"Add a meeting link to every event.\",\n        },\n        {\n          name: \"GitHub\",\n          icon: \"logos:github-icon\",\n          category: \"development\",\n          description: \"Link pull requests to your tasks.\",\n        },\n        {\n          name: \"GitLab\",\n          icon: \"logos:gitlab-icon\",\n          category: \"development\",\n          description: \"Sync issues and merge requests.\",\n        },\n        {\n          name: \"Notion\",\n          icon: \"logos:notion-icon\",\n          category: \"docs\",\n          description: \"Embed live views in your pages.\",\n        },\n        {\n          name: \"Google Drive\",\n          icon: \"logos:google-drive\",\n          category: \"docs\",\n          description: \"Attach files without leaving Acme.\",\n        },\n        {\n          name: \"Stripe\",\n          icon: \"logos:stripe\",\n          category: \"payments\",\n          description: \"See payments next to your customers.\",\n        },\n        {\n          name: \"Shopify\",\n          icon: \"logos:shopify\",\n          category: \"payments\",\n          description: \"Track orders and refunds in one place.\",\n        },\n        {\n          name: \"HubSpot\",\n          icon: \"logos:hubspot\",\n          category: \"crm\",\n          description: \"Sync contacts and deals both ways.\",\n        },\n        {\n          name: \"Salesforce\",\n          icon: \"logos:salesforce\",\n          category: \"crm\",\n          description: \"Keep accounts and opportunities up to date.\",\n        },\n        {\n          name: \"Jira\",\n          icon: \"logos:jira\",\n          category: \"development\",\n          description: \"Create and update issues from a card.\",\n        },\n        {\n          name: \"Figma\",\n          icon: \"logos:figma\",\n          category: \"docs\",\n          description: \"Preview designs inside a task.\",\n        },\n      ],\n    }\n  );\n\n  const query = ref(\"\");\n  const category = ref(\"all\");\n\n  const categories = computed(() => [\"all\", ...new Set(props.items.map((item) => item.category))]);\n  const count = (value: string) =>\n    value === \"all\"\n      ? props.items.length\n      : props.items.filter((item) => item.category === value).length;\n  const visible = computed(() => {\n    const text = query.value.trim().toLowerCase();\n    return props.items\n      .filter((item) => category.value === \"all\" || item.category === category.value)\n      .filter((item) => !text || `${item.name} ${item.description}`.toLowerCase().includes(text));\n  });\n\n  function clear() {\n    query.value = \"\";\n    category.value = \"all\";\n  }\n</script>\n","category":"IntegrationsGrid","description":"Searchable integrations with categories. Features: Search, category chips with counts, cards with a logo, a short description and a category tag, a live result count and an empty state with a clear button","path":"IntegrationsMarketing/IntegrationsGrid/BlockIntegrationsGrid2.vue","components":["badge","button","container","input"]},{"name":"Integrations Grid 3","fileName":"BlockIntegrationsGrid3.vue","file":"<template>\n  <!--\n    Featured integrations\n    Features: A large featured card for the integration you want to promote with a gradient background and a call to action, a row of popular integrations and a grid of the rest with a new badge and a short description\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Integrations</h1>\n      <p class=\"text-muted-foreground mt-2\">Bring your data and your team together.</p>\n\n      <div\n        class=\"from-primary/10 via-muted/40 to-background relative mt-8 overflow-hidden rounded-2xl border bg-linear-to-br p-6 sm:p-10\"\n      >\n        <div class=\"flex flex-col items-start gap-6 sm:flex-row sm:items-center\">\n          <span\n            class=\"bg-background grid size-20 shrink-0 place-items-center rounded-2xl border shadow-xs\"\n            ><Icon\n              :name=\"featured.icon\"\n              class=\"size-12 shrink-0 rounded-md dark:bg-zinc-100 dark:p-1\"\n          /></span>\n          <div class=\"min-w-0 flex-1\">\n            <UiBadge variant=\"soft\" color=\"blue\" shape=\"pill\">Featured</UiBadge>\n            <h2 class=\"mt-2 text-2xl font-bold\">{{ featured.name }}</h2>\n            <p class=\"text-muted-foreground mt-1 max-w-xl\">{{ featured.description }}</p>\n            <ul class=\"mt-3 flex flex-wrap gap-x-5 gap-y-1 text-sm\">\n              <li v-for=\"point in featured.points\" :key=\"point\" class=\"flex items-center gap-1.5\">\n                <Icon name=\"lucide:check\" class=\"size-4 text-green-500\" />{{ point }}\n              </li>\n            </ul>\n          </div>\n          <UiButton size=\"lg\" @click=\"useSonner.success(`Connecting ${featured.name}`)\"\n            >Connect {{ featured.name }}</UiButton\n          >\n        </div>\n      </div>\n\n      <section class=\"mt-10\" aria-label=\"Popular\">\n        <h2 class=\"text-lg font-semibold\">Popular</h2>\n        <ul class=\"mt-4 grid grid-cols-2 gap-3 sm:grid-cols-4\">\n          <li v-for=\"item in popular\" :key=\"item.name\">\n            <button\n              type=\"button\"\n              class=\"hover:bg-accent/50 focus-visible:ring-ring/50 flex w-full items-center gap-3 rounded-xl border p-3 text-left outline-none focus-visible:ring-[3px]\"\n              @click=\"useSonner.info(`Open the ${item.name} page here`)\"\n            >\n              <Icon\n                :name=\"item.icon\"\n                class=\"size-7 shrink-0 rounded-md dark:bg-zinc-100 dark:p-1\"\n              />\n              <span class=\"text-sm font-medium\">{{ item.name }}</span>\n            </button>\n          </li>\n        </ul>\n      </section>\n\n      <section class=\"mt-10\" aria-label=\"More integrations\">\n        <h2 class=\"text-lg font-semibold\">More integrations</h2>\n        <ul class=\"mt-4 grid gap-4 sm:grid-cols-2\">\n          <li\n            v-for=\"item in more\"\n            :key=\"item.name\"\n            class=\"flex items-start gap-3 rounded-xl border p-4\"\n          >\n            <span class=\"bg-muted grid size-10 shrink-0 place-items-center rounded-lg\"\n              ><Icon :name=\"item.icon\" class=\"size-5 shrink-0 rounded-md dark:bg-zinc-100 dark:p-1\"\n            /></span>\n            <div class=\"min-w-0\">\n              <p class=\"flex items-center gap-2 text-sm font-medium\">\n                {{ item.name\n                }}<UiBadge v-if=\"item.isNew\" variant=\"soft\" color=\"green\" shape=\"pill\">New</UiBadge>\n              </p>\n              <p class=\"text-muted-foreground mt-0.5 text-sm\">{{ item.description }}</p>\n            </div>\n          </li>\n        </ul>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = { name: string; icon: string; description: string; isNew?: boolean };\n\n  withDefaults(\n    defineProps<{\n      featured?: { name: string; icon: string; description: string; points: string[] };\n      popular?: Item[];\n      more?: Item[];\n    }>(),\n    {\n      featured: () => ({\n        name: \"Slack\",\n        icon: \"logos:slack-icon\",\n        description:\n          \"Get a message in the right channel when something important happens, and reply from Slack without opening Acme.\",\n        points: [\"Real time alerts\", \"Slash commands\", \"Daily summaries\"],\n      }),\n      popular: () => [\n        { name: \"GitHub\", icon: \"logos:github-icon\", description: \"\" },\n        { name: \"Notion\", icon: \"logos:notion-icon\", description: \"\" },\n        { name: \"Google Drive\", icon: \"logos:google-drive\", description: \"\" },\n        { name: \"Zoom\", icon: \"logos:zoom-icon\", description: \"\" },\n      ],\n      more: () => [\n        {\n          name: \"Linear\",\n          icon: \"logos:linear-icon\",\n          description: \"Turn a task into an issue and keep both in sync.\",\n          isNew: true,\n        },\n        {\n          name: \"Intercom\",\n          icon: \"logos:intercom-icon\",\n          description: \"See customer chats next to their account.\",\n        },\n        {\n          name: \"Asana\",\n          icon: \"logos:asana-icon\",\n          description: \"Import projects and keep due dates aligned.\",\n        },\n        {\n          name: \"Mailchimp\",\n          icon: \"logos:mailchimp-freddie\",\n          description: \"Send campaigns to a saved segment.\",\n          isNew: true,\n        },\n      ],\n    }\n  );\n</script>\n","category":"IntegrationsGrid","description":"Featured integrations. Features: A large featured card for the integration you want to promote with a gradient background and a call to action, a row of popular integrations and a grid of the rest with a new badge and a short description","path":"IntegrationsMarketing/IntegrationsGrid/BlockIntegrationsGrid3.vue","components":["badge","button","container"]},{"name":"Integrations Grid 4","fileName":"BlockIntegrationsGrid4.vue","file":"<template>\n  <!--\n    Connected and available integrations\n    Features: Cards with a connected or not connected state, connect and disconnect buttons with a confirmation, tabs for all, connected and available with counts, a last synced time and a settings button for connected tools\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Your integrations</h1>\n      <UiTabs v-model=\"tab\" class=\"mt-5\">\n        <UiTabsList>\n          <UiTabsTrigger v-for=\"item in tabs\" :key=\"item.value\" :value=\"item.value\"\n            >{{ item.label\n            }}<span class=\"text-muted-foreground ml-1.5 text-xs\">{{\n              count(item.value)\n            }}</span></UiTabsTrigger\n          >\n        </UiTabsList>\n      </UiTabs>\n\n      <ul\n        v-if=\"visible.length\"\n        class=\"mt-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-3\"\n        aria-live=\"polite\"\n      >\n        <li v-for=\"item in visible\" :key=\"item.id\">\n          <UiCard class=\"h-full gap-3\">\n            <UiCardHeader>\n              <div class=\"flex items-center gap-3\">\n                <span class=\"bg-muted grid size-11 place-items-center rounded-lg\"\n                  ><Icon\n                    :name=\"item.icon\"\n                    class=\"size-6 shrink-0 rounded-md dark:bg-zinc-100 dark:p-1\"\n                /></span>\n                <div class=\"min-w-0 flex-1\">\n                  <UiCardTitle class=\"text-base\">{{ item.name }}</UiCardTitle>\n                  <p class=\"text-muted-foreground text-xs\">\n                    {{ item.connected ? `Synced ${item.synced}` : \"Not connected\" }}\n                  </p>\n                </div>\n                <UiBadge v-if=\"item.connected\" variant=\"soft\" color=\"green\" shape=\"pill\"\n                  >Connected</UiBadge\n                >\n              </div>\n            </UiCardHeader>\n            <UiCardContent class=\"text-muted-foreground text-sm\">{{\n              item.description\n            }}</UiCardContent>\n            <UiCardFooter class=\"gap-2\">\n              <template v-if=\"item.connected\">\n                <UiButton\n                  variant=\"outline\"\n                  size=\"sm\"\n                  @click=\"useSonner.info(`Open ${item.name} settings here`)\"\n                  >Settings</UiButton\n                >\n                <UiAlertDialog>\n                  <UiAlertDialogTrigger as-child>\n                    <UiButton variant=\"ghost\" size=\"sm\" class=\"text-destructive\"\n                      >Disconnect</UiButton\n                    >\n                  </UiAlertDialogTrigger>\n                  <UiAlertDialogContent>\n                    <UiAlertDialogHeader>\n                      <UiAlertDialogTitle>Disconnect {{ item.name }}?</UiAlertDialogTitle>\n                      <UiAlertDialogDescription\n                        >Data already synced stays in Acme, but new changes will stop\n                        syncing.</UiAlertDialogDescription\n                      >\n                    </UiAlertDialogHeader>\n                    <UiAlertDialogFooter>\n                      <UiAlertDialogCancel>Keep connected</UiAlertDialogCancel>\n                      <UiAlertDialogAction\n                        class=\"bg-destructive hover:bg-destructive/90 text-white\"\n                        @click=\"disconnect(item)\"\n                        >Disconnect</UiAlertDialogAction\n                      >\n                    </UiAlertDialogFooter>\n                  </UiAlertDialogContent>\n                </UiAlertDialog>\n              </template>\n              <UiButton v-else size=\"sm\" :loading=\"busy === item.id\" @click=\"connect(item)\"\n                >Connect</UiButton\n              >\n            </UiCardFooter>\n          </UiCard>\n        </li>\n      </ul>\n      <p\n        v-else\n        class=\"text-muted-foreground mt-6 rounded-xl border border-dashed py-12 text-center text-sm\"\n        aria-live=\"polite\"\n      >\n        {{ tab === \"connected\" ? \"Nothing is connected yet.\" : \"Everything is connected.\" }}\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = {\n    id: string;\n    name: string;\n    icon: string;\n    description: string;\n    connected: boolean;\n    synced?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Item[];\n    }>(),\n    {\n      items: () => [\n        {\n          id: \"slack\",\n          name: \"Slack\",\n          icon: \"logos:slack-icon\",\n          description: \"Alerts and summaries in your channels.\",\n          connected: true,\n          synced: \"2 minutes ago\",\n        },\n        {\n          id: \"github\",\n          name: \"GitHub\",\n          icon: \"logos:github-icon\",\n          description: \"Link pull requests to tasks.\",\n          connected: true,\n          synced: \"just now\",\n        },\n        {\n          id: \"notion\",\n          name: \"Notion\",\n          icon: \"logos:notion-icon\",\n          description: \"Embed live views in your pages.\",\n          connected: false,\n        },\n        {\n          id: \"stripe\",\n          name: \"Stripe\",\n          icon: \"logos:stripe\",\n          description: \"See payments next to customers.\",\n          connected: false,\n        },\n        {\n          id: \"drive\",\n          name: \"Google Drive\",\n          icon: \"logos:google-drive\",\n          description: \"Attach files from Drive.\",\n          connected: true,\n          synced: \"1 hour ago\",\n        },\n        {\n          id: \"zoom\",\n          name: \"Zoom\",\n          icon: \"logos:zoom-icon\",\n          description: \"Add meeting links to events.\",\n          connected: false,\n        },\n      ],\n    }\n  );\n\n  const tabs = [\n    { value: \"all\", label: \"All\" },\n    { value: \"connected\", label: \"Connected\" },\n    { value: \"available\", label: \"Available\" },\n  ];\n\n  const items = ref<Item[]>(props.items.map((item) => ({ ...item })));\n  const tab = ref(\"all\");\n  const busy = ref(\"\");\n\n  const matches = (item: Item, value: string) =>\n    value === \"all\" || (value === \"connected\" ? item.connected : !item.connected);\n  const count = (value: string) => items.value.filter((item) => matches(item, value)).length;\n  const visible = computed(() => items.value.filter((item) => matches(item, tab.value)));\n\n  function connect(item: Item) {\n    busy.value = item.id;\n    setTimeout(() => {\n      item.connected = true;\n      item.synced = \"just now\";\n      busy.value = \"\";\n      useSonner.success(`${item.name} connected`);\n    }, 700);\n  }\n\n  function disconnect(item: Item) {\n    item.connected = false;\n    useSonner.success(`${item.name} disconnected`);\n  }\n</script>\n","category":"IntegrationsGrid","description":"Connected and available integrations. Features: Cards with a connected or not connected state, connect and disconnect buttons with a confirmation, tabs for all, connected and available with counts, a last synced time and a settings button for connected tools","path":"IntegrationsMarketing/IntegrationsGrid/BlockIntegrationsGrid4.vue","components":["alert-dialog","badge","button","card","container","tabs"]},{"name":"Integrations Grid 5","fileName":"BlockIntegrationsGrid5.vue","file":"<template>\n  <!--\n    Logo cloud with copy\n    Features: A headline and a short paragraph beside a cloud of logos in a soft grid, a list of reasons with icons, two buttons and logos that fade in with a stagger that is skipped when reduced motion is on\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-5xl items-center gap-12 lg:grid-cols-2\">\n      <div>\n        <UiBadge variant=\"soft\" color=\"blue\" shape=\"pill\">Integrations</UiBadge>\n        <h1 class=\"mt-3 text-3xl font-bold tracking-tight lg:text-4xl\">\n          One place for all of your tools\n        </h1>\n        <p class=\"text-muted-foreground mt-4 text-lg\">\n          Acme connects to the apps your team already uses, so you stop copying data from one tab to\n          another.\n        </p>\n        <ul class=\"mt-6 space-y-3\">\n          <li v-for=\"reason in reasons\" :key=\"reason.title\" class=\"flex items-start gap-3\">\n            <span class=\"bg-muted grid size-9 shrink-0 place-items-center rounded-lg\"\n              ><Icon :name=\"reason.icon\" class=\"size-4\"\n            /></span>\n            <div>\n              <p class=\"text-sm font-medium\">{{ reason.title }}</p>\n              <p class=\"text-muted-foreground text-sm\">{{ reason.body }}</p>\n            </div>\n          </li>\n        </ul>\n        <div class=\"mt-8 flex flex-wrap gap-3\">\n          <UiButton @click=\"useSonner.info('Open the integrations directory here')\"\n            >Browse integrations</UiButton\n          >\n          <UiButton variant=\"outline\" @click=\"useSonner.info('Open the API docs here')\"\n            >Build your own</UiButton\n          >\n        </div>\n      </div>\n\n      <ul class=\"grid grid-cols-4 gap-3\" aria-label=\"Supported tools\">\n        <li\n          v-for=\"(logo, index) in logos\"\n          :key=\"logo.name\"\n          class=\"bg-card motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 grid aspect-square place-items-center rounded-2xl border shadow-xs\"\n          :style=\"{ animationDelay: `${index * 40}ms`, animationFillMode: 'backwards' }\"\n          :class=\"index % 5 === 2 ? 'translate-y-3' : index % 5 === 4 ? '-translate-y-3' : ''\"\n        >\n          <Icon :name=\"logo.icon\" class=\"size-8 shrink-0 rounded-md dark:bg-zinc-100 dark:p-1\" />\n          <span class=\"sr-only\">{{ logo.name }}</span>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      reasons?: { icon: string; title: string; body: string }[];\n      logos?: { name: string; icon: string }[];\n    }>(),\n    {\n      reasons: () => [\n        {\n          icon: \"lucide:zap\",\n          title: \"Set up in minutes\",\n          body: \"Connect with OAuth. There is nothing to install.\",\n        },\n        {\n          icon: \"lucide:refresh-cw\",\n          title: \"Two way sync\",\n          body: \"Changes in either tool show up in the other.\",\n        },\n        {\n          icon: \"lucide:shield-check\",\n          title: \"You stay in control\",\n          body: \"Choose exactly what each tool can read and write.\",\n        },\n      ],\n      logos: () => [\n        { name: \"Slack\", icon: \"logos:slack-icon\" },\n        { name: \"GitHub\", icon: \"logos:github-icon\" },\n        { name: \"Notion\", icon: \"logos:notion-icon\" },\n        { name: \"Figma\", icon: \"logos:figma\" },\n        { name: \"Stripe\", icon: \"logos:stripe\" },\n        { name: \"Jira\", icon: \"logos:jira\" },\n        { name: \"Zoom\", icon: \"logos:zoom-icon\" },\n        { name: \"Google Drive\", icon: \"logos:google-drive\" },\n        { name: \"HubSpot\", icon: \"logos:hubspot\" },\n        { name: \"Trello\", icon: \"logos:trello\" },\n        { name: \"Dropbox\", icon: \"logos:dropbox\" },\n        { name: \"Linear\", icon: \"logos:linear-icon\" },\n      ],\n    }\n  );\n</script>\n","category":"IntegrationsGrid","description":"Logo cloud with copy. Features: A headline and a short paragraph beside a cloud of logos in a soft grid, a list of reasons with icons, two buttons and logos that fade in with a stagger that is skipped when reduced motion is on","path":"IntegrationsMarketing/IntegrationsGrid/BlockIntegrationsGrid5.vue","components":["badge","button","container"]},{"name":"Integrations Grid 6","fileName":"BlockIntegrationsGrid6.vue","file":"<template>\n  <!--\n    Request an integration\n    Features: A short grid of current integrations, a request form with the tool name, a link and a reason with validation, a list of requested tools with an upvote button and a thank you message after you send a request\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Do not see your tool?</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        Tell us what you need. We build the most requested integrations first.\n      </p>\n\n      <ul class=\"mt-8 grid grid-cols-3 gap-3 sm:grid-cols-6\" aria-label=\"Current integrations\">\n        <li\n          v-for=\"item in current\"\n          :key=\"item.name\"\n          class=\"bg-card flex flex-col items-center gap-2 rounded-xl border p-3 text-center\"\n        >\n          <Icon\n            :name=\"item.icon\"\n            class=\"size-7 shrink-0 rounded-md dark:bg-zinc-100 dark:p-1\"\n          /><span class=\"text-xs font-medium\">{{ item.name }}</span>\n        </li>\n      </ul>\n\n      <div class=\"mt-10 grid items-start gap-8 lg:grid-cols-2\">\n        <UiCard class=\"gap-4\">\n          <UiCardHeader>\n            <UiCardTitle class=\"text-base\">Request an integration</UiCardTitle>\n          </UiCardHeader>\n          <UiCardContent>\n            <div v-if=\"sent\" class=\"space-y-3 text-center\" role=\"status\">\n              <span\n                class=\"mx-auto grid size-12 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n                ><Icon name=\"lucide:check\" class=\"size-6\"\n              /></span>\n              <p class=\"font-medium\">Thanks, we got your request</p>\n              <p class=\"text-muted-foreground text-sm\">\n                {{ sent }} was added to the list. We will email you when we start.\n              </p>\n              <UiButton variant=\"outline\" size=\"sm\" @click=\"sent = ''\">Request another</UiButton>\n            </div>\n            <form v-else class=\"space-y-4\" novalidate @submit.prevent=\"submit\">\n              <div class=\"space-y-1.5\">\n                <UiLabel for=\"req-name\">Tool name</UiLabel>\n                <UiInput\n                  id=\"req-name\"\n                  v-model=\"form.name\"\n                  placeholder=\"For example Airtable\"\n                  :aria-invalid=\"!!errors.name\"\n                />\n                <p v-if=\"errors.name\" class=\"text-destructive text-sm\">{{ errors.name }}</p>\n              </div>\n              <div class=\"space-y-1.5\">\n                <UiLabel for=\"req-link\">Website (optional)</UiLabel>\n                <UiInput\n                  id=\"req-link\"\n                  v-model=\"form.link\"\n                  type=\"url\"\n                  placeholder=\"https://\"\n                  :aria-invalid=\"!!errors.link\"\n                />\n                <p v-if=\"errors.link\" class=\"text-destructive text-sm\">{{ errors.link }}</p>\n              </div>\n              <div class=\"space-y-1.5\">\n                <UiLabel for=\"req-why\">How would you use it?</UiLabel>\n                <UiTextarea\n                  id=\"req-why\"\n                  v-model=\"form.why\"\n                  :rows=\"3\"\n                  :aria-invalid=\"!!errors.why\"\n                />\n                <p v-if=\"errors.why\" class=\"text-destructive text-sm\">{{ errors.why }}</p>\n              </div>\n              <UiButton type=\"submit\" class=\"w-full\">Send request</UiButton>\n            </form>\n          </UiCardContent>\n        </UiCard>\n\n        <section aria-label=\"Most requested\">\n          <h2 class=\"text-base font-semibold\">Most requested</h2>\n          <ul class=\"mt-3 divide-y rounded-xl border\" aria-live=\"polite\">\n            <li\n              v-for=\"request in sorted\"\n              :key=\"request.name\"\n              class=\"flex items-center gap-3 px-4 py-3\"\n            >\n              <span class=\"min-w-0 flex-1 truncate text-sm font-medium\">{{ request.name }}</span>\n              <UiBadge\n                v-if=\"request.status\"\n                variant=\"soft\"\n                shape=\"pill\"\n                :color=\"request.status === 'In progress' ? 'blue' : 'gray'\"\n                >{{ request.status }}</UiBadge\n              >\n              <UiButton\n                variant=\"outline\"\n                size=\"sm\"\n                class=\"tabular-nums\"\n                :aria-pressed=\"request.voted\"\n                :aria-label=\"`${request.voted ? 'Remove your vote for' : 'Vote for'} ${request.name}, ${request.votes} votes`\"\n                @click=\"vote(request)\"\n                ><Icon name=\"lucide:chevron-up\" class=\"size-4\" />{{ request.votes }}</UiButton\n              >\n            </li>\n          </ul>\n        </section>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Request = { name: string; votes: number; voted?: boolean; status?: string };\n\n  const props = withDefaults(\n    defineProps<{\n      current?: { name: string; icon: string }[];\n      requests?: Request[];\n    }>(),\n    {\n      current: () => [\n        { name: \"Slack\", icon: \"logos:slack-icon\" },\n        { name: \"GitHub\", icon: \"logos:github-icon\" },\n        { name: \"Notion\", icon: \"logos:notion-icon\" },\n        { name: \"Stripe\", icon: \"logos:stripe\" },\n        { name: \"Jira\", icon: \"logos:jira\" },\n        { name: \"Zoom\", icon: \"logos:zoom-icon\" },\n      ],\n      requests: () => [\n        { name: \"Airtable\", votes: 184, status: \"In progress\" },\n        { name: \"Microsoft Teams\", votes: 152 },\n        { name: \"Zendesk\", votes: 97, status: \"Planned\" },\n        { name: \"Salesforce\", votes: 64 },\n      ],\n    }\n  );\n\n  const requests = ref<Request[]>(\n    props.requests.map((request) => ({ ...request, voted: request.voted ?? false }))\n  );\n  const form = reactive({ name: \"\", link: \"\", why: \"\" });\n  const errors = reactive({ name: \"\", link: \"\", why: \"\" });\n  const sent = ref(\"\");\n\n  const sorted = computed(() => [...requests.value].sort((a, b) => b.votes - a.votes));\n\n  function vote(request: Request) {\n    request.voted = !request.voted;\n    request.votes += request.voted ? 1 : -1;\n  }\n\n  function submit() {\n    errors.name = form.name.trim() ? \"\" : \"Enter the name of the tool.\";\n    errors.link =\n      !form.link.trim() || /^https?:\\/\\/\\S+\\.\\S+/.test(form.link.trim())\n        ? \"\"\n        : \"Enter a link that starts with http or https.\";\n    errors.why =\n      form.why.trim().length >= 10 ? \"\" : \"Tell us a little more, at least 10 characters.\";\n    if (errors.name || errors.link || errors.why) return;\n    const name = form.name.trim();\n    const existing = requests.value.find(\n      (request) => request.name.toLowerCase() === name.toLowerCase()\n    );\n    if (existing) {\n      if (!existing.voted) vote(existing);\n    } else {\n      requests.value.push({ name, votes: 1, voted: true });\n    }\n    sent.value = name;\n    Object.assign(form, { name: \"\", link: \"\", why: \"\" });\n  }\n</script>\n","category":"IntegrationsGrid","description":"Request an integration. Features: A short grid of current integrations, a request form with the tool name, a link and a reason with validation, a list of requested tools with an upvote button and a thank you message after you send a request","path":"IntegrationsMarketing/IntegrationsGrid/BlockIntegrationsGrid6.vue","components":["badge","button","card","container","input","label","textarea"]},{"name":"Settings Layout Sidebar Nav","fileName":"BlockSettingsLayoutSidebarNav.vue","file":"<template>\n  <!--\n    Settings page with a vertical sidebar navigation\n    Features: Sidebar nav with icons and active state, profile form with avatar upload, responsive (nav collapses to a scrollable row on mobile)\n  -->\n  <div class=\"bg-background text-foreground min-h-screen\">\n    <UiContainer class=\"px-4 py-8 md:px-6 lg:py-12\">\n      <div class=\"mb-8\">\n        <h1 class=\"text-2xl font-bold tracking-tight\" v-html=\"props.title\" />\n        <p class=\"text-muted-foreground mt-1 text-sm\" v-html=\"props.description\" />\n      </div>\n      <div class=\"flex flex-col gap-8 lg:flex-row lg:gap-12\">\n        <nav\n          class=\"-mx-4 flex gap-1 overflow-x-auto px-4 lg:mx-0 lg:w-56 lg:shrink-0 lg:flex-col lg:overflow-visible lg:px-0\"\n          aria-label=\"Settings\"\n        >\n          <button\n            v-for=\"item in props.items\"\n            :key=\"item.id\"\n            type=\"button\"\n            class=\"hover:bg-accent flex shrink-0 items-center gap-2.5 rounded-md px-3 py-2 text-sm font-medium transition-colors\"\n            :class=\"\n              active === item.id ? 'bg-accent text-accent-foreground' : 'text-muted-foreground'\n            \"\n            :aria-current=\"active === item.id ? 'page' : undefined\"\n            @click=\"active = item.id\"\n          >\n            <Icon :name=\"item.icon\" class=\"size-4\" />\n            {{ item.label }}\n            <UiBadge v-if=\"item.badge\" variant=\"secondary\" class=\"ml-auto\">{{\n              item.badge\n            }}</UiBadge>\n          </button>\n        </nav>\n\n        <main class=\"min-w-0 flex-1\">\n          <slot :active=\"active\">\n            <form class=\"space-y-8\" @submit.prevent=\"save\">\n              <div>\n                <h2 class=\"text-lg font-semibold\">{{ activeItem?.label }}</h2>\n                <p class=\"text-muted-foreground text-sm\">\n                  Update your photo and personal details here.\n                </p>\n              </div>\n              <UiDivider />\n\n              <div class=\"flex items-center gap-5\">\n                <UiAvatar\n                  class=\"size-20\"\n                  :src=\"avatarPreview || 'https://i.pravatar.cc/200?img=47'\"\n                  fallback=\"MC\"\n                />\n                <div class=\"flex flex-col gap-2\">\n                  <div class=\"flex gap-2\">\n                    <UiButton type=\"button\" variant=\"outline\" size=\"sm\" @click=\"fileInput?.click()\">\n                      Upload new\n                    </UiButton>\n                    <UiButton\n                      type=\"button\"\n                      variant=\"ghost\"\n                      size=\"sm\"\n                      @click=\"avatarPreview = undefined\"\n                    >\n                      Remove\n                    </UiButton>\n                  </div>\n                  <p class=\"text-muted-foreground text-xs\">JPG, PNG or GIF. 2MB max.</p>\n                  <input\n                    ref=\"fileInput\"\n                    type=\"file\"\n                    accept=\"image/*\"\n                    class=\"sr-only\"\n                    @change=\"onFile\"\n                  />\n                </div>\n              </div>\n\n              <div class=\"grid gap-5 sm:grid-cols-2\">\n                <div class=\"grid gap-2\">\n                  <UiLabel for=\"layout-first\">First name</UiLabel>\n                  <UiInput id=\"layout-first\" v-model=\"form.firstName\" />\n                </div>\n                <div class=\"grid gap-2\">\n                  <UiLabel for=\"layout-last\">Last name</UiLabel>\n                  <UiInput id=\"layout-last\" v-model=\"form.lastName\" />\n                </div>\n                <div class=\"grid gap-2 sm:col-span-2\">\n                  <UiLabel for=\"layout-email\">Email</UiLabel>\n                  <UiInput id=\"layout-email\" v-model=\"form.email\" type=\"email\" />\n                </div>\n                <div class=\"grid gap-2 sm:col-span-2\">\n                  <UiLabel for=\"layout-bio\">Bio</UiLabel>\n                  <UiTextarea id=\"layout-bio\" v-model=\"form.bio\" :rows=\"4\" />\n                  <p class=\"text-muted-foreground text-xs\">\n                    {{ 275 - form.bio.length }} characters left\n                  </p>\n                </div>\n              </div>\n\n              <div class=\"flex justify-end gap-2\">\n                <UiButton type=\"button\" variant=\"outline\">Cancel</UiButton>\n                <UiButton type=\"submit\">Save changes</UiButton>\n              </div>\n            </form>\n          </slot>\n        </main>\n      </div>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type NavItem = { id: string; label: string; icon: string; badge?: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      items?: NavItem[];\n    }>(),\n    {\n      title: \"Settings\",\n      description: \"Manage your account, team and billing preferences.\",\n      items: () => [\n        { id: \"profile\", label: \"My profile\", icon: \"lucide:user\" },\n        { id: \"security\", label: \"Password & security\", icon: \"lucide:lock\" },\n        { id: \"team\", label: \"Team\", icon: \"lucide:users\" },\n        { id: \"billing\", label: \"Billing\", icon: \"lucide:credit-card\" },\n        { id: \"notifications\", label: \"Notifications\", icon: \"lucide:bell\", badge: \"3\" },\n        { id: \"integrations\", label: \"Integrations\", icon: \"lucide:plug\" },\n      ],\n    }\n  );\n\n  const active = ref(props.items[0]?.id ?? \"profile\");\n  const activeItem = computed(() => props.items.find((item) => item.id === active.value));\n\n  const form = reactive({\n    firstName: \"Maya\",\n    lastName: \"Chen\",\n    email: \"maya@uithing.com\",\n    bio: \"Product designer based in Melbourne. I like systems, spreadsheets and strong coffee.\",\n  });\n\n  const fileInput = ref<HTMLInputElement>();\n  const avatarPreview = ref<string>();\n\n  function onFile(event: Event) {\n    const file = (event.target as HTMLInputElement).files?.[0];\n    if (file) avatarPreview.value = URL.createObjectURL(file);\n  }\n\n  function save() {\n    useSonner.success(\"Profile updated\", {\n      description: \"Your changes have been saved.\",\n    });\n  }\n</script>\n","category":"Layout","description":"Settings page with a vertical sidebar navigation. Features: Sidebar nav with icons and active state, profile form with avatar upload, responsive (nav collapses to a scrollable row on mobile)","path":"Settings/Layout/BlockSettingsLayoutSidebarNav.vue","components":["avatar","badge","button","container","divider","input","label","textarea"]},{"name":"Settings Layout Split Sections","fileName":"BlockSettingsLayoutSplitSections.vue","file":"<template>\n  <!--\n    Settings page with label and description on the left and inputs on the right\n    Features: Divided rows, photo upload area, per-section help text, save and cancel actions\n  -->\n  <div class=\"bg-background text-foreground min-h-screen\">\n    <UiContainer class=\"max-w-4xl px-4 py-8 md:px-6 lg:py-12\">\n      <div class=\"flex items-end justify-between gap-4 border-b pb-5\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\" v-html=\"props.title\" />\n          <p class=\"text-muted-foreground mt-1 text-sm\" v-html=\"props.description\" />\n        </div>\n        <div class=\"hidden gap-2 sm:flex\">\n          <UiButton variant=\"outline\" @click=\"reset\">Cancel</UiButton>\n          <UiButton @click=\"save\">Save</UiButton>\n        </div>\n      </div>\n\n      <div class=\"divide-y\">\n        <section class=\"grid gap-4 py-6 md:grid-cols-[minmax(0,1fr)_2fr] md:gap-8\">\n          <div>\n            <h2 class=\"text-sm font-semibold\">Name</h2>\n            <p class=\"text-muted-foreground text-sm\">This is how you appear across the app.</p>\n          </div>\n          <div class=\"grid gap-4 sm:grid-cols-2\">\n            <UiInput v-model=\"form.firstName\" aria-label=\"First name\" />\n            <UiInput v-model=\"form.lastName\" aria-label=\"Last name\" />\n          </div>\n        </section>\n\n        <section class=\"grid gap-4 py-6 md:grid-cols-[minmax(0,1fr)_2fr] md:gap-8\">\n          <div>\n            <h2 class=\"text-sm font-semibold\">Email address</h2>\n            <p class=\"text-muted-foreground text-sm\">Used for sign in and notifications.</p>\n          </div>\n          <div class=\"relative\">\n            <Icon\n              name=\"lucide:mail\"\n              class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n            />\n            <UiInput v-model=\"form.email\" type=\"email\" class=\"pl-9\" aria-label=\"Email address\" />\n          </div>\n        </section>\n\n        <section class=\"grid gap-4 py-6 md:grid-cols-[minmax(0,1fr)_2fr] md:gap-8\">\n          <div>\n            <h2 class=\"text-sm font-semibold\">Your photo</h2>\n            <p class=\"text-muted-foreground text-sm\">This will be displayed on your profile.</p>\n          </div>\n          <div class=\"flex items-start gap-5\">\n            <UiAvatar class=\"size-16\" src=\"https://i.pravatar.cc/200?img=32\" fallback=\"MC\" />\n            <button\n              type=\"button\"\n              class=\"hover:bg-accent/50 text-muted-foreground flex flex-1 flex-col items-center gap-2 rounded-lg border border-dashed px-6 py-5 text-center text-sm transition-colors\"\n              @click=\"useSonner.info('Open your file picker here')\"\n            >\n              <span class=\"bg-muted flex size-9 items-center justify-center rounded-full border\">\n                <Icon name=\"lucide:upload-cloud\" class=\"size-4\" />\n              </span>\n              <span>\n                <span class=\"text-primary font-semibold\">Click to upload</span>\n                or drag and drop\n              </span>\n              <span class=\"text-xs\">SVG, PNG, JPG or GIF (max. 800x400px)</span>\n            </button>\n          </div>\n        </section>\n\n        <section class=\"grid gap-4 py-6 md:grid-cols-[minmax(0,1fr)_2fr] md:gap-8\">\n          <div>\n            <h2 class=\"text-sm font-semibold\">Role</h2>\n            <p class=\"text-muted-foreground text-sm\">Helps teammates know who you are.</p>\n          </div>\n          <UiInput v-model=\"form.role\" aria-label=\"Role\" />\n        </section>\n\n        <section class=\"grid gap-4 py-6 md:grid-cols-[minmax(0,1fr)_2fr] md:gap-8\">\n          <div>\n            <h2 class=\"text-sm font-semibold\">Timezone</h2>\n            <p class=\"text-muted-foreground text-sm\">Used to show times in your local zone.</p>\n          </div>\n          <UiNativeSelect v-model=\"form.timezone\" aria-label=\"Timezone\">\n            <option value=\"Pacific Standard Time (PST)\">Pacific Standard Time (PST)</option>\n            <option value=\"Eastern Standard Time (EST)\">Eastern Standard Time (EST)</option>\n            <option value=\"Central European Time (CET)\">Central European Time (CET)</option>\n            <option value=\"Australian Eastern Time (AEST)\">Australian Eastern Time (AEST)</option>\n          </UiNativeSelect>\n        </section>\n\n        <section class=\"grid gap-4 py-6 md:grid-cols-[minmax(0,1fr)_2fr] md:gap-8\">\n          <div>\n            <h2 class=\"text-sm font-semibold\">Bio</h2>\n            <p class=\"text-muted-foreground text-sm\">A short introduction for your profile.</p>\n          </div>\n          <UiTextarea v-model=\"form.bio\" :rows=\"5\" aria-label=\"Bio\" />\n        </section>\n      </div>\n\n      <div class=\"flex justify-end gap-2 border-t pt-5 sm:hidden\">\n        <UiButton variant=\"outline\" @click=\"reset\">Cancel</UiButton>\n        <UiButton @click=\"save\">Save</UiButton>\n      </div>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Personal info\",\n      description: \"Update your photo and personal details.\",\n    }\n  );\n\n  const initial = {\n    firstName: \"Maya\",\n    lastName: \"Chen\",\n    email: \"maya@uithing.com\",\n    role: \"Product designer\",\n    timezone: \"Pacific Standard Time (PST)\",\n    bio: \"I'm a product designer based in Melbourne. I care about calm interfaces and good defaults.\",\n  };\n\n  const form = reactive({ ...initial });\n\n  function reset() {\n    Object.assign(form, initial);\n  }\n\n  function save() {\n    useSonner.success(\"Changes saved\", { description: \"Your profile is up to date.\" });\n  }\n</script>\n","category":"Layout","description":"Settings page with label and description on the left and inputs on the right. Features: Divided rows, photo upload area, per-section help text, save and cancel actions","path":"Settings/Layout/BlockSettingsLayoutSplitSections.vue","components":["avatar","button","container","input","native-select","textarea"]},{"name":"Settings Layout Stacked Cards","fileName":"BlockSettingsLayoutStackedCards.vue","file":"<template>\n  <!--\n    Settings page made of stacked cards, one per concern\n    Features: Independent save per card, switches with descriptions, danger zone confirmed with an alert dialog\n  -->\n  <div class=\"bg-muted/30 text-foreground min-h-screen\">\n    <UiContainer class=\"max-w-3xl px-4 py-8 md:px-6 lg:py-12\">\n      <div class=\"mb-8\">\n        <h1 class=\"text-2xl font-bold tracking-tight\" v-html=\"props.title\" />\n        <p class=\"text-muted-foreground mt-1 text-sm\" v-html=\"props.description\" />\n      </div>\n\n      <div class=\"space-y-6\">\n        <UiCard>\n          <UiCardHeader>\n            <UiCardTitle>Workspace</UiCardTitle>\n            <UiCardDescription>The name and URL your team uses to find you.</UiCardDescription>\n          </UiCardHeader>\n          <UiCardContent class=\"grid gap-5 sm:grid-cols-2\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"stack-name\">Workspace name</UiLabel>\n              <UiInput id=\"stack-name\" v-model=\"workspace.name\" />\n            </div>\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"stack-slug\">Workspace URL</UiLabel>\n              <div class=\"flex\">\n                <span\n                  class=\"bg-muted text-muted-foreground flex items-center rounded-l-md border border-r-0 px-3 text-sm\"\n                >\n                  uithing.com/\n                </span>\n                <UiInput id=\"stack-slug\" v-model=\"workspace.slug\" class=\"rounded-l-none\" />\n              </div>\n            </div>\n          </UiCardContent>\n          <UiCardFooter class=\"justify-end border-t\">\n            <UiButton size=\"sm\" @click=\"saveCard('Workspace')\">Save workspace</UiButton>\n          </UiCardFooter>\n        </UiCard>\n\n        <UiCard>\n          <UiCardHeader>\n            <UiCardTitle>Preferences</UiCardTitle>\n            <UiCardDescription>Control how the product behaves for you.</UiCardDescription>\n          </UiCardHeader>\n          <UiCardContent class=\"divide-y\">\n            <div\n              v-for=\"pref in preferences\"\n              :key=\"pref.id\"\n              class=\"flex items-center justify-between gap-4 py-4 first:pt-0 last:pb-0\"\n            >\n              <div>\n                <p class=\"text-sm font-medium\">{{ pref.label }}</p>\n                <p class=\"text-muted-foreground text-sm\">{{ pref.hint }}</p>\n              </div>\n              <UiSwitch v-model=\"pref.enabled\" :aria-label=\"pref.label\" />\n            </div>\n          </UiCardContent>\n          <UiCardFooter class=\"justify-end border-t\">\n            <UiButton size=\"sm\" @click=\"saveCard('Preferences')\">Save preferences</UiButton>\n          </UiCardFooter>\n        </UiCard>\n\n        <UiCard class=\"border-destructive/40\">\n          <UiCardHeader>\n            <UiCardTitle class=\"text-destructive\">Delete workspace</UiCardTitle>\n            <UiCardDescription>\n              Permanently remove this workspace and everything in it. This cannot be undone.\n            </UiCardDescription>\n          </UiCardHeader>\n          <UiCardFooter class=\"justify-end\">\n            <UiAlertDialog>\n              <UiAlertDialogTrigger as-child>\n                <UiButton variant=\"destructive\" size=\"sm\">Delete workspace</UiButton>\n              </UiAlertDialogTrigger>\n              <UiAlertDialogContent>\n                <UiAlertDialogHeader>\n                  <UiAlertDialogTitle>Delete {{ workspace.name }}?</UiAlertDialogTitle>\n                  <UiAlertDialogDescription>\n                    All projects, members and data will be removed immediately.\n                  </UiAlertDialogDescription>\n                </UiAlertDialogHeader>\n                <UiAlertDialogFooter>\n                  <UiAlertDialogCancel>Cancel</UiAlertDialogCancel>\n                  <UiAlertDialogAction @click=\"useSonner.error('Workspace deleted')\">\n                    Delete\n                  </UiAlertDialogAction>\n                </UiAlertDialogFooter>\n              </UiAlertDialogContent>\n            </UiAlertDialog>\n          </UiCardFooter>\n        </UiCard>\n      </div>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Workspace settings\",\n      description: \"Each section saves on its own, so nothing is lost by switching around.\",\n    }\n  );\n\n  const workspace = reactive({ name: \"UI Thing\", slug: \"uithing\" });\n\n  const preferences = reactive([\n    {\n      id: \"invites\",\n      label: \"Allow member invites\",\n      hint: \"Members can invite teammates without admin approval.\",\n      enabled: true,\n    },\n    {\n      id: \"public\",\n      label: \"Public profile page\",\n      hint: \"Anyone with the link can see your workspace overview.\",\n      enabled: false,\n    },\n    {\n      id: \"sso\",\n      label: \"Require single sign-on\",\n      hint: \"Members must sign in through your identity provider.\",\n      enabled: false,\n    },\n  ]);\n\n  function saveCard(name: string) {\n    useSonner.success(`${name} saved`);\n  }\n</script>\n","category":"Layout","description":"Settings page made of stacked cards, one per concern. Features: Independent save per card, switches with descriptions, danger zone confirmed with an alert dialog","path":"Settings/Layout/BlockSettingsLayoutStackedCards.vue","components":["alert-dialog","button","card","container","input","label","switch"]},{"name":"Settings Layout Top Nav","fileName":"BlockSettingsLayoutTopNav.vue","file":"<template>\n  <!--\n    Settings page with horizontal tab navigation under the page header\n    Features: Page header with actions, scrollable tab bar, tab panels with a profile form and a notification list\n  -->\n  <div class=\"bg-background text-foreground min-h-screen\">\n    <UiContainer class=\"px-4 py-8 md:px-6 lg:py-12\">\n      <div class=\"flex flex-wrap items-start justify-between gap-4\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\" v-html=\"props.title\" />\n          <p class=\"text-muted-foreground mt-1 text-sm\" v-html=\"props.description\" />\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <UiButton variant=\"outline\" size=\"sm\">\n            <Icon name=\"lucide:book-open\" class=\"size-4\" />\n            Docs\n          </UiButton>\n          <UiButton size=\"sm\" @click=\"save\">\n            <Icon name=\"lucide:check\" class=\"size-4\" />\n            Save changes\n          </UiButton>\n        </div>\n      </div>\n\n      <UiTabs v-model=\"tab\" class=\"mt-6\">\n        <div class=\"-mx-4 overflow-x-auto px-4 md:mx-0 md:px-0\">\n          <UiTabsList\n            class=\"h-auto w-max justify-start gap-6 rounded-none border-b bg-transparent p-0\"\n          >\n            <UiTabsTrigger\n              v-for=\"item in props.tabs\"\n              :key=\"item.value\"\n              :value=\"item.value\"\n              class=\"data-[state=active]:border-primary text-muted-foreground data-[state=active]:text-foreground -mb-px rounded-none border-b-2 border-transparent bg-transparent px-1 pb-3 data-[state=active]:bg-transparent data-[state=active]:shadow-none\"\n            >\n              {{ item.label }}\n            </UiTabsTrigger>\n          </UiTabsList>\n        </div>\n\n        <UiTabsContent value=\"profile\" class=\"mt-8 space-y-6\">\n          <div class=\"grid gap-5 sm:grid-cols-2\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"top-first\">First name</UiLabel>\n              <UiInput id=\"top-first\" v-model=\"form.firstName\" />\n            </div>\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"top-last\">Last name</UiLabel>\n              <UiInput id=\"top-last\" v-model=\"form.lastName\" />\n            </div>\n            <div class=\"grid gap-2 sm:col-span-2\">\n              <UiLabel for=\"top-email\">Email</UiLabel>\n              <UiInput id=\"top-email\" v-model=\"form.email\" type=\"email\" />\n            </div>\n            <div class=\"grid gap-2 sm:col-span-2\">\n              <UiLabel for=\"top-role\">Role</UiLabel>\n              <UiNativeSelect id=\"top-role\" v-model=\"form.role\">\n                <option>Product designer</option>\n                <option>Engineer</option>\n                <option>Product manager</option>\n                <option>Founder</option>\n              </UiNativeSelect>\n            </div>\n          </div>\n        </UiTabsContent>\n\n        <UiTabsContent value=\"notifications\" class=\"mt-8\">\n          <div class=\"divide-y rounded-lg border\">\n            <div\n              v-for=\"row in notifications\"\n              :key=\"row.id\"\n              class=\"flex items-center justify-between gap-4 p-4\"\n            >\n              <div>\n                <p class=\"text-sm font-medium\">{{ row.label }}</p>\n                <p class=\"text-muted-foreground text-sm\">{{ row.hint }}</p>\n              </div>\n              <UiSwitch v-model=\"row.enabled\" :aria-label=\"row.label\" />\n            </div>\n          </div>\n        </UiTabsContent>\n\n        <UiTabsContent v-for=\"item in emptyTabs\" :key=\"item.value\" :value=\"item.value\" class=\"mt-8\">\n          <slot :name=\"item.value\">\n            <div\n              class=\"text-muted-foreground flex h-48 items-center justify-center rounded-lg border border-dashed text-sm\"\n            >\n              {{ item.label }} settings go here\n            </div>\n          </slot>\n        </UiTabsContent>\n      </UiTabs>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      tabs?: { value: string; label: string }[];\n    }>(),\n    {\n      title: \"Account settings\",\n      description: \"Manage your profile, notifications and workspace.\",\n      tabs: () => [\n        { value: \"profile\", label: \"My details\" },\n        { value: \"notifications\", label: \"Notifications\" },\n        { value: \"password\", label: \"Password\" },\n        { value: \"team\", label: \"Team\" },\n        { value: \"billing\", label: \"Billing\" },\n        { value: \"integrations\", label: \"Integrations\" },\n      ],\n    }\n  );\n\n  const tab = ref(props.tabs[0]?.value ?? \"profile\");\n  const emptyTabs = computed(() =>\n    props.tabs.filter((item) => ![\"profile\", \"notifications\"].includes(item.value))\n  );\n\n  const form = reactive({\n    firstName: \"Maya\",\n    lastName: \"Chen\",\n    email: \"maya@uithing.com\",\n    role: \"Product designer\",\n  });\n\n  const notifications = reactive([\n    {\n      id: \"comments\",\n      label: \"Comments\",\n      hint: \"Someone replies to or mentions you.\",\n      enabled: true,\n    },\n    {\n      id: \"invites\",\n      label: \"Invites\",\n      hint: \"You are invited to a new workspace.\",\n      enabled: true,\n    },\n    {\n      id: \"digest\",\n      label: \"Weekly digest\",\n      hint: \"A summary of what happened this week.\",\n      enabled: false,\n    },\n  ]);\n\n  function save() {\n    useSonner.success(\"Settings saved\");\n  }\n</script>\n","category":"Layout","description":"Settings page with horizontal tab navigation under the page header. Features: Page header with actions, scrollable tab bar, tab panels with a profile form and a notification list","path":"Settings/Layout/BlockSettingsLayoutTopNav.vue","components":["button","container","input","label","native-select","switch","tabs"]},{"name":"Legal 1","fileName":"BlockLegal1.vue","file":"<template>\n  <!--\n    Simple privacy policy document\n    Features: Centered readable column with a title, last updated date, intro paragraph and numbered sections with lists, built with plain theme tokens\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <article class=\"mx-auto max-w-3xl\">\n      <div>\n        <UiBadge variant=\"secondary\">Legal</UiBadge>\n        <h1 class=\"mt-4 text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-3 text-sm\">Last updated {{ props.updated }}</p>\n      </div>\n      <p class=\"text-muted-foreground mt-8 text-lg leading-relaxed\">\n        Your privacy matters to us. This policy explains what we collect, why we collect it and the\n        choices you have. We have written it to be as clear as we can.\n      </p>\n      <div class=\"mt-10 space-y-10\">\n        <section\n          v-for=\"(section, i) in props.sections\"\n          :id=\"section.id\"\n          :key=\"section.id\"\n          class=\"scroll-mt-24\"\n        >\n          <h2 class=\"text-xl font-semibold tracking-tight sm:text-2xl\">\n            {{ i + 1 }}. {{ section.title }}\n          </h2>\n          <p\n            v-for=\"p in section.paragraphs\"\n            :key=\"p\"\n            class=\"text-muted-foreground mt-3 leading-relaxed\"\n          >\n            {{ p }}\n          </p>\n          <ul\n            v-if=\"section.list\"\n            class=\"text-muted-foreground mt-3 list-disc space-y-1.5 pl-6 leading-relaxed\"\n          >\n            <li v-for=\"item in section.list\" :key=\"item\">{{ item }}</li>\n          </ul>\n        </section>\n      </div>\n    </article>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Section = {\n    id: string;\n    title: string;\n    summary: string;\n    paragraphs: string[];\n    list?: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; updated?: string; sections?: Section[] }>(),\n    {\n      title: \"Privacy Policy\",\n      updated: \"October 17, 2026\",\n      sections: () => [\n        {\n          id: \"collect\",\n          title: \"Information we collect\",\n          summary: \"We collect what you give us and basic usage data.\",\n          paragraphs: [\n            \"We collect information you provide directly, such as when you create an account, update your profile or contact support. We also collect some information automatically when you use the service.\",\n          ],\n          list: [\n            \"Account details such as your name, email address and password\",\n            \"Billing information handled by our payment processor\",\n            \"Usage data such as pages viewed, features used and device type\",\n            \"Messages you send to our support team\",\n          ],\n        },\n        {\n          id: \"use\",\n          title: \"How we use information\",\n          summary: \"To run, improve and protect the product, never to sell your data.\",\n          paragraphs: [\n            \"We use your information to provide and maintain the service, to improve it, to communicate with you and to keep it secure. We do not sell your personal information.\",\n          ],\n          list: [\n            \"Provide, maintain and personalize the service\",\n            \"Send receipts, security alerts and product updates\",\n            \"Detect, prevent and respond to fraud or abuse\",\n            \"Understand how the product is used so we can improve it\",\n          ],\n        },\n        {\n          id: \"share\",\n          title: \"How we share information\",\n          summary: \"Only with trusted providers and when the law requires it.\",\n          paragraphs: [\n            \"We share information with service providers who help us run the product, such as hosting, payments and analytics. They may only use it to perform services for us and must protect it.\",\n            \"We may also disclose information if required by law, or to protect the rights, safety and property of our users and company.\",\n          ],\n        },\n        {\n          id: \"cookies\",\n          title: \"Cookies and similar technologies\",\n          summary: \"A few cookies keep you signed in and help us measure usage.\",\n          paragraphs: [\n            \"We use cookies and similar technologies to keep you signed in, remember your preferences and understand how the product is used. You can control cookies through your browser settings and our cookie preferences.\",\n          ],\n        },\n        {\n          id: \"retention\",\n          title: \"Data retention\",\n          summary: \"We keep data only as long as we need it.\",\n          paragraphs: [\n            \"We keep your information for as long as your account is active or as needed to provide the service. When you delete your account we remove or anonymize your data within 30 days, except where we must keep it for legal reasons.\",\n          ],\n        },\n        {\n          id: \"rights\",\n          title: \"Your rights and choices\",\n          summary: \"You can access, fix, export or delete your data.\",\n          paragraphs: [\n            \"Depending on where you live, you may have rights over your personal information. You can exercise them at any time from your account settings or by contacting us.\",\n          ],\n          list: [\n            \"Access and download a copy of your data\",\n            \"Correct information that is inaccurate\",\n            \"Delete your account and associated data\",\n            \"Object to or restrict certain processing\",\n          ],\n        },\n        {\n          id: \"security\",\n          title: \"Security\",\n          summary: \"Encryption, access controls and regular audits.\",\n          paragraphs: [\n            \"We use industry standard safeguards including encryption in transit and at rest, strict access controls and regular security reviews. No system is perfectly secure, so we also encourage you to use a strong, unique password and two factor authentication.\",\n          ],\n        },\n        {\n          id: \"contact\",\n          title: \"Contact us\",\n          summary: \"Questions go to privacy@uithing.com.\",\n          paragraphs: [\n            \"If you have questions about this policy or how we handle your data, email privacy@uithing.com or write to Acme Inc., 100 Market Street, San Francisco, CA 94105.\",\n          ],\n        },\n      ],\n    }\n  );\n</script>\n","category":"Legal","description":"Simple privacy policy document. Features: Centered readable column with a title, last updated date, intro paragraph and numbered sections with lists, built with plain theme tokens","path":"Legal/BlockLegal1.vue","components":["badge","container"]},{"name":"Legal 10","fileName":"BlockLegal10.vue","file":"<template>\n  <!--\n    Legal hub with document cards\n    Features: Heading and a grid of linked cards for every policy and agreement with an icon, description and last updated date, plus a contact line\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h1 class=\"text-4xl font-bold tracking-tight text-balance sm:text-5xl\">{{ props.title }}</h1>\n      <p class=\"text-muted-foreground mt-4 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <ul class=\"mt-12 grid gap-5 sm:grid-cols-2 lg:grid-cols-3\">\n      <Motion\n        v-for=\"(doc, i) in props.documents\"\n        :key=\"doc.title\"\n        as=\"li\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.4, delay: (i % 3) * 0.08 }\"\n      >\n        <a\n          href=\"#\"\n          class=\"bg-card group hover:border-primary/40 flex h-full flex-col rounded-2xl border p-6 transition-all hover:shadow-md\"\n        >\n          <UiFancyIcon :icon=\"doc.icon\" theme=\"modern\" :color=\"doc.color\" />\n          <p class=\"mt-5 flex items-center justify-between font-semibold\">\n            {{ doc.title }}\n            <Icon\n              name=\"lucide:arrow-up-right\"\n              class=\"text-muted-foreground size-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5\"\n            />\n          </p>\n          <p class=\"text-muted-foreground mt-1.5 flex-1 text-sm\">{{ doc.text }}</p>\n          <p class=\"text-muted-foreground mt-4 text-xs\">Updated {{ doc.updated }}</p>\n        </a>\n      </Motion>\n    </ul>\n    <p class=\"text-muted-foreground mt-10 text-center text-sm\">\n      Questions about our policies? Email\n      <a\n        href=\"mailto:legal@uithing.com\"\n        class=\"text-foreground font-medium underline underline-offset-4\"\n        >legal@uithing.com</a\n      >\n    </p>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Doc = {\n    title: string;\n    text: string;\n    updated: string;\n    icon: string;\n    color: \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; documents?: Doc[] }>(),\n    {\n      title: \"Legal and policies\",\n      description:\n        \"Everything about how we handle your data, your account and our service in one place.\",\n      documents: () => [\n        {\n          title: \"Terms of Service\",\n          text: \"The agreement between you and us when you use the product.\",\n          updated: \"Oct 17, 2026\",\n          icon: \"lucide:file-text\",\n          color: \"primary\",\n        },\n        {\n          title: \"Privacy Policy\",\n          text: \"What we collect, why, and the choices you have.\",\n          updated: \"Oct 17, 2026\",\n          icon: \"lucide:shield-check\",\n          color: \"success\",\n        },\n        {\n          title: \"Cookie Policy\",\n          text: \"How we use cookies and how to manage them.\",\n          updated: \"Sep 2, 2026\",\n          icon: \"lucide:cookie\",\n          color: \"warning\",\n        },\n        {\n          title: \"Data Processing Addendum\",\n          text: \"Terms for customers who process personal data with us.\",\n          updated: \"Aug 11, 2026\",\n          icon: \"lucide:database\",\n          color: \"info\",\n        },\n        {\n          title: \"Acceptable Use Policy\",\n          text: \"What is and is not allowed on the platform.\",\n          updated: \"Jun 4, 2026\",\n          icon: \"lucide:badge-check\",\n          color: \"gray\",\n        },\n        {\n          title: \"Security overview\",\n          text: \"How we protect your data, with our certifications.\",\n          updated: \"May 20, 2026\",\n          icon: \"lucide:lock-keyhole\",\n          color: \"error\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Legal","description":"Legal hub with document cards. Features: Heading and a grid of linked cards for every policy and agreement with an icon, description and last updated date, plus a contact line","path":"Legal/BlockLegal10.vue","components":["container","fancy-icon"]},{"name":"Legal 11","fileName":"BlockLegal11.vue","file":"<template>\n  <!--\n    Cookie consent banner with customize dialog\n    Features: Bottom card banner with accept, reject and customize actions, a dialog with category switches, and a link to reopen it so the preview is repeatable\n  -->\n  <div class=\"relative min-h-[28rem] p-6\">\n    <div class=\"mx-auto max-w-3xl\">\n      <p class=\"text-muted-foreground text-center text-sm\">Your page content goes here.</p>\n      <div class=\"mt-6 flex justify-center\">\n        <UiButton v-if=\"!visible\" variant=\"outline\" size=\"sm\" @click=\"visible = true\"\n          >Show cookie banner again</UiButton\n        >\n      </div>\n    </div>\n\n    <AnimatePresence>\n      <Motion\n        v-if=\"visible\"\n        :initial=\"{ opacity: 0, y: 24 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :exit=\"{ opacity: 0, y: 24 }\"\n        :transition=\"{ duration: 0.3 }\"\n        class=\"bg-card absolute inset-x-4 bottom-4 mx-auto max-w-3xl rounded-2xl border p-5 shadow-lg sm:p-6\"\n        role=\"dialog\"\n        aria-label=\"Cookie consent\"\n      >\n        <div class=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:gap-6\">\n          <div\n            class=\"bg-primary/10 text-primary hidden size-11 shrink-0 items-center justify-center rounded-xl sm:flex\"\n          >\n            <Icon name=\"lucide:cookie\" class=\"size-5\" />\n          </div>\n          <div class=\"flex-1\">\n            <p class=\"font-semibold\">We value your privacy</p>\n            <p class=\"text-muted-foreground mt-1 text-sm\">\n              We use cookies to keep the site working and, with your consent, to understand usage.\n              Read our\n              <a href=\"#\" class=\"text-foreground underline underline-offset-4\">Cookie Policy</a>.\n            </p>\n          </div>\n          <div class=\"flex flex-wrap gap-2 sm:flex-col lg:flex-row\">\n            <UiButton variant=\"outline\" size=\"sm\" @click=\"settings = true\">Customize</UiButton>\n            <UiButton variant=\"outline\" size=\"sm\" @click=\"decide(false)\">Reject</UiButton>\n            <UiButton size=\"sm\" @click=\"decide(true)\">Accept all</UiButton>\n          </div>\n        </div>\n      </Motion>\n    </AnimatePresence>\n\n    <UiDialog v-model:open=\"settings\">\n      <UiDialogContent class=\"sm:max-w-md\">\n        <UiDialogHeader>\n          <UiDialogTitle>Cookie preferences</UiDialogTitle>\n          <UiDialogDescription\n            >Choose which cookies you allow. You can change this later.</UiDialogDescription\n          >\n        </UiDialogHeader>\n        <ul class=\"divide-y\">\n          <li\n            v-for=\"cat in categories\"\n            :key=\"cat.id\"\n            class=\"flex items-start justify-between gap-4 py-3\"\n          >\n            <div>\n              <p class=\"text-sm font-medium\">{{ cat.title }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ cat.text }}</p>\n            </div>\n            <UiSwitch\n              v-model=\"choices[cat.id]\"\n              :disabled=\"cat.locked\"\n              :aria-label=\"`${cat.title} cookies`\"\n            />\n          </li>\n        </ul>\n        <UiDialogFooter>\n          <UiButton variant=\"outline\" @click=\"settings = false\">Cancel</UiButton>\n          <UiButton @click=\"save\">Save preferences</UiButton>\n        </UiDialogFooter>\n      </UiDialogContent>\n    </UiDialog>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const visible = ref(true);\n  const settings = ref(false);\n\n  const categories = [\n    {\n      id: \"necessary\",\n      title: \"Strictly necessary\",\n      text: \"Required for the site to work.\",\n      locked: true,\n    },\n    { id: \"analytics\", title: \"Analytics\", text: \"Anonymous usage statistics.\", locked: false },\n    {\n      id: \"marketing\",\n      title: \"Marketing\",\n      text: \"Campaign measurement and relevant content.\",\n      locked: false,\n    },\n  ];\n  const choices = reactive<Record<string, boolean>>({\n    necessary: true,\n    analytics: false,\n    marketing: false,\n  });\n\n  function decide(accept: boolean) {\n    choices.analytics = accept;\n    choices.marketing = accept;\n    visible.value = false;\n    useSonner.success(accept ? \"All cookies accepted\" : \"Optional cookies rejected\");\n  }\n  function save() {\n    settings.value = false;\n    visible.value = false;\n    useSonner.success(\"Cookie preferences saved\");\n  }\n</script>\n","category":"Legal","description":"Cookie consent banner with customize dialog. Features: Bottom card banner with accept, reject and customize actions, a dialog with category switches, and a link to reopen it so the preview is repeatable","path":"Legal/BlockLegal11.vue","components":["button","dialog","switch"]},{"name":"Legal 12","fileName":"BlockLegal12.vue","file":"<template>\n  <!--\n    Policy changelog timeline\n    Features: Vertical timeline of past policy revisions with version badges, dates, what changed as bullet lists and a highlighted latest version\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl\">\n      <h1 class=\"text-4xl font-bold tracking-tight text-balance sm:text-5xl\">{{ props.title }}</h1>\n      <p class=\"text-muted-foreground mt-4 text-lg\">{{ props.description }}</p>\n      <ol class=\"mt-12 space-y-10 border-l pl-8\">\n        <Motion\n          v-for=\"(rev, i) in props.revisions\"\n          :key=\"rev.version\"\n          as=\"li\"\n          :initial=\"{ opacity: 0, x: -12 }\"\n          :while-in-view=\"{ opacity: 1, x: 0 }\"\n          :in-view-options=\"{ once: true }\"\n          :transition=\"{ duration: 0.4, delay: i * 0.05 }\"\n          class=\"relative\"\n        >\n          <span\n            class=\"ring-background absolute top-1 -left-[2.4rem] size-3 rounded-full ring-4\"\n            :class=\"i === 0 ? 'bg-primary' : 'bg-muted-foreground/40'\"\n          />\n          <div class=\"flex flex-wrap items-center gap-2\">\n            <UiBadge :variant=\"i === 0 ? 'default' : 'secondary'\">v{{ rev.version }}</UiBadge>\n            <UiBadge v-if=\"i === 0\" variant=\"outline\">Current</UiBadge>\n            <time class=\"text-muted-foreground text-sm\">{{ rev.date }}</time>\n          </div>\n          <h2 class=\"mt-2 text-lg font-semibold\">{{ rev.title }}</h2>\n          <ul class=\"text-muted-foreground mt-2 list-disc space-y-1 pl-5 text-sm leading-relaxed\">\n            <li v-for=\"change in rev.changes\" :key=\"change\">{{ change }}</li>\n          </ul>\n          <a\n            href=\"#\"\n            class=\"text-primary mt-3 inline-flex items-center gap-1 text-sm font-medium underline-offset-4 hover:underline\"\n          >\n            View this version\n            <Icon name=\"lucide:arrow-right\" class=\"size-3.5\" />\n          </a>\n        </Motion>\n      </ol>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Revision = { version: string; date: string; title: string; changes: string[] };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; revisions?: Revision[] }>(),\n    {\n      title: \"Policy updates\",\n      description: \"A running history of what changed, so you never have to guess.\",\n      revisions: () => [\n        {\n          version: \"3.2\",\n          date: \"October 17, 2026\",\n          title: \"Clearer data retention and new regional rights\",\n          changes: [\n            \"Added a table of retention periods for each type of data\",\n            \"Added rights for residents of additional US states\",\n            \"Simplified the wording in the sharing section\",\n          ],\n        },\n        {\n          version: \"3.1\",\n          date: \"July 8, 2026\",\n          title: \"New sub-processors\",\n          changes: [\n            \"Added two infrastructure sub-processors\",\n            \"Updated our data transfer language\",\n          ],\n        },\n        {\n          version: \"3.0\",\n          date: \"March 2, 2026\",\n          title: \"Full rewrite in plain language\",\n          changes: [\n            \"Rewrote every section to be easier to read\",\n            \"Added summaries next to each section\",\n            \"Introduced a self-serve data request form\",\n          ],\n        },\n        {\n          version: \"2.4\",\n          date: \"November 14, 2025\",\n          title: \"Cookie preferences\",\n          changes: [\"Added a cookie preference center\", \"Documented every cookie we set\"],\n        },\n      ],\n    }\n  );\n</script>\n","category":"Legal","description":"Policy changelog timeline. Features: Vertical timeline of past policy revisions with version badges, dates, what changed as bullet lists and a highlighted latest version","path":"Legal/BlockLegal12.vue","components":["badge","container"]},{"name":"Legal 2","fileName":"BlockLegal2.vue","file":"<template>\n  <!--\n    Terms of service with a scroll spy contents list\n    Features: Two column layout with a sticky table of contents that highlights the section you are reading and scrolls smoothly on click, stacked on mobile\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"grid gap-10 lg:grid-cols-[16rem_1fr] lg:gap-16\">\n      <aside class=\"lg:sticky lg:top-24 lg:self-start\">\n        <p class=\"text-muted-foreground text-xs font-semibold tracking-wide uppercase\">\n          On this page\n        </p>\n        <nav class=\"mt-3\" aria-label=\"Table of contents\">\n          <ul class=\"border-l\">\n            <li v-for=\"section in props.sections\" :key=\"section.id\">\n              <a\n                :href=\"`#${section.id}`\"\n                class=\"-ml-px block border-l-2 py-1.5 pl-4 text-sm transition-colors\"\n                :class=\"\n                  active === section.id\n                    ? 'border-primary text-foreground font-medium'\n                    : 'text-muted-foreground hover:text-foreground border-transparent'\n                \"\n                :aria-current=\"active === section.id ? 'location' : undefined\"\n                @click.prevent=\"go(section.id)\"\n              >\n                {{ section.title }}\n              </a>\n            </li>\n          </ul>\n        </nav>\n      </aside>\n\n      <article ref=\"root\" class=\"max-w-3xl\">\n        <div>\n          <UiBadge variant=\"secondary\">Legal</UiBadge>\n          <h1 class=\"mt-4 text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n            {{ props.title }}\n          </h1>\n          <p class=\"text-muted-foreground mt-3 text-sm\">Last updated {{ props.updated }}</p>\n        </div>\n        <div class=\"mt-10 space-y-12\">\n          <section\n            v-for=\"section in props.sections\"\n            :id=\"section.id\"\n            :key=\"section.id\"\n            data-section\n            class=\"scroll-mt-24\"\n          >\n            <h2 class=\"text-2xl font-semibold tracking-tight\">{{ section.title }}</h2>\n            <p\n              v-for=\"p in section.paragraphs\"\n              :key=\"p\"\n              class=\"text-muted-foreground mt-3 leading-relaxed\"\n            >\n              {{ p }}\n            </p>\n            <ul\n              v-if=\"section.list\"\n              class=\"text-muted-foreground mt-3 list-disc space-y-1.5 pl-6 leading-relaxed\"\n            >\n              <li v-for=\"item in section.list\" :key=\"item\">{{ item }}</li>\n            </ul>\n          </section>\n        </div>\n      </article>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Section = {\n    id: string;\n    title: string;\n    summary: string;\n    paragraphs: string[];\n    list?: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; updated?: string; sections?: Section[] }>(),\n    {\n      title: \"Terms of Service\",\n      updated: \"October 17, 2026\",\n      sections: () => [\n        {\n          id: \"acceptance\",\n          title: \"Acceptance of terms\",\n          summary: \"Using the service means you agree to these terms.\",\n          paragraphs: [\n            \"By creating an account or using the service you agree to these Terms of Service and our Privacy Policy. If you are using the service on behalf of an organization, you confirm you have authority to bind it.\",\n          ],\n        },\n        {\n          id: \"accounts\",\n          title: \"Your account\",\n          summary: \"Keep your login safe and your details accurate.\",\n          paragraphs: [\n            \"You are responsible for the activity on your account and for keeping your credentials secure. Provide accurate information and let us know right away if you suspect unauthorized access.\",\n          ],\n        },\n        {\n          id: \"use\",\n          title: \"Acceptable use\",\n          summary: \"Be respectful and do not misuse the service.\",\n          paragraphs: [\n            \"You agree to use the service lawfully and not to interfere with it or with other people's use of it. You will not:\",\n          ],\n          list: [\n            \"Attempt to gain unauthorized access to systems or data\",\n            \"Upload malware or content that is unlawful or infringing\",\n            \"Resell or sublicense the service without written permission\",\n            \"Use the service to send spam or harass others\",\n          ],\n        },\n        {\n          id: \"content\",\n          title: \"Content and ownership\",\n          summary: \"You own your content. We own the product.\",\n          paragraphs: [\n            \"You keep all rights to the content you create. You grant us a limited license to host and process it so we can provide the service. We and our licensors retain all rights to the product, its design and its code.\",\n          ],\n        },\n        {\n          id: \"billing\",\n          title: \"Payment and billing\",\n          summary: \"Paid plans renew until you cancel.\",\n          paragraphs: [\n            \"Paid plans are billed in advance on a recurring basis and renew automatically until cancelled. You can cancel at any time and your plan will remain active until the end of the billing period. Fees are non refundable except where required by law.\",\n          ],\n        },\n        {\n          id: \"termination\",\n          title: \"Termination\",\n          summary: \"Either of us can end things at any time.\",\n          paragraphs: [\n            \"You may stop using the service and delete your account whenever you like. We may suspend or terminate access if you breach these terms or if we are required to by law. On termination, your right to use the service ends immediately.\",\n          ],\n        },\n        {\n          id: \"liability\",\n          title: \"Disclaimers and liability\",\n          summary: \"The service is provided as is, with limited liability.\",\n          paragraphs: [\n            \"The service is provided as is and as available without warranties of any kind. To the extent permitted by law, our total liability for any claim is limited to the amount you paid us in the twelve months before the claim arose.\",\n          ],\n        },\n        {\n          id: \"changes\",\n          title: \"Changes and contact\",\n          summary: \"We will tell you before material changes take effect.\",\n          paragraphs: [\n            \"We may update these terms from time to time. If a change is material we will notify you at least 30 days in advance. Questions about these terms can be sent to legal@uithing.com.\",\n          ],\n        },\n      ],\n    }\n  );\n\n  const root = ref<HTMLElement | null>(null);\n  const active = ref(props.sections[0]?.id ?? \"\");\n  let observer: IntersectionObserver | undefined;\n\n  let locked = false;\n\n  function go(id: string) {\n    active.value = id;\n    locked = true;\n    setTimeout(() => (locked = false), 900);\n    document.getElementById(id)?.scrollIntoView({ behavior: \"smooth\", block: \"start\" });\n  }\n\n  onMounted(() => {\n    observer = new IntersectionObserver(\n      (entries) => {\n        for (const entry of entries) {\n          if (entry.isIntersecting && !locked) active.value = entry.target.id;\n        }\n      },\n      { rootMargin: \"-15% 0px -75% 0px\" }\n    );\n    root.value?.querySelectorAll(\"[data-section]\").forEach((el) => observer?.observe(el));\n  });\n  onBeforeUnmount(() => observer?.disconnect());\n</script>\n","category":"Legal","description":"Terms of service with a scroll spy contents list. Features: Two column layout with a sticky table of contents that highlights the section you are reading and scrolls smoothly on click, stacked on mobile","path":"Legal/BlockLegal2.vue","components":["badge","container"]},{"name":"Legal 3","fileName":"BlockLegal3.vue","file":"<template>\n  <!--\n    Privacy at a glance with expandable details\n    Features: Three highlight cards with fancy icons summarizing the policy, then every section as an accordion with an expand all control\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div>\n        <UiBadge variant=\"secondary\">Legal</UiBadge>\n        <h1 class=\"mt-4 text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-3 text-sm\">Last updated {{ props.updated }}</p>\n      </div>\n      <ul class=\"mt-10 grid gap-4 sm:grid-cols-3\">\n        <li v-for=\"card in highlights\" :key=\"card.title\" class=\"bg-card rounded-2xl border p-5\">\n          <UiFancyIcon :icon=\"card.icon\" theme=\"light\" :color=\"card.color\" />\n          <p class=\"mt-4 font-semibold\">{{ card.title }}</p>\n          <p class=\"text-muted-foreground mt-1 text-sm\">{{ card.text }}</p>\n        </li>\n      </ul>\n\n      <div class=\"mt-12 flex items-center justify-between gap-4\">\n        <h2 class=\"text-xl font-semibold\">The full policy</h2>\n        <UiButton variant=\"ghost\" size=\"sm\" @click=\"toggleAll\">\n          {{ open.length === props.sections.length ? \"Collapse all\" : \"Expand all\" }}\n        </UiButton>\n      </div>\n      <UiAccordion v-model=\"open\" type=\"multiple\" class=\"mt-2\">\n        <UiAccordionItem v-for=\"section in props.sections\" :key=\"section.id\" :value=\"section.id\">\n          <UiAccordionHeader>\n            <UiAccordionTrigger class=\"text-base\">{{ section.title }}</UiAccordionTrigger>\n          </UiAccordionHeader>\n          <UiAccordionContent>\n            <p\n              v-for=\"p in section.paragraphs\"\n              :key=\"p\"\n              class=\"text-muted-foreground leading-relaxed\"\n            >\n              {{ p }}\n            </p>\n            <ul\n              v-if=\"section.list\"\n              class=\"text-muted-foreground mt-3 list-disc space-y-1.5 pl-6 leading-relaxed\"\n            >\n              <li v-for=\"item in section.list\" :key=\"item\">{{ item }}</li>\n            </ul>\n          </UiAccordionContent>\n        </UiAccordionItem>\n      </UiAccordion>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Section = {\n    id: string;\n    title: string;\n    summary: string;\n    paragraphs: string[];\n    list?: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; updated?: string; sections?: Section[] }>(),\n    {\n      title: \"Privacy Policy\",\n      updated: \"October 17, 2026\",\n      sections: () => [\n        {\n          id: \"collect\",\n          title: \"Information we collect\",\n          summary: \"We collect what you give us and basic usage data.\",\n          paragraphs: [\n            \"We collect information you provide directly, such as when you create an account, update your profile or contact support. We also collect some information automatically when you use the service.\",\n          ],\n          list: [\n            \"Account details such as your name, email address and password\",\n            \"Billing information handled by our payment processor\",\n            \"Usage data such as pages viewed, features used and device type\",\n            \"Messages you send to our support team\",\n          ],\n        },\n        {\n          id: \"use\",\n          title: \"How we use information\",\n          summary: \"To run, improve and protect the product, never to sell your data.\",\n          paragraphs: [\n            \"We use your information to provide and maintain the service, to improve it, to communicate with you and to keep it secure. We do not sell your personal information.\",\n          ],\n          list: [\n            \"Provide, maintain and personalize the service\",\n            \"Send receipts, security alerts and product updates\",\n            \"Detect, prevent and respond to fraud or abuse\",\n            \"Understand how the product is used so we can improve it\",\n          ],\n        },\n        {\n          id: \"share\",\n          title: \"How we share information\",\n          summary: \"Only with trusted providers and when the law requires it.\",\n          paragraphs: [\n            \"We share information with service providers who help us run the product, such as hosting, payments and analytics. They may only use it to perform services for us and must protect it.\",\n            \"We may also disclose information if required by law, or to protect the rights, safety and property of our users and company.\",\n          ],\n        },\n        {\n          id: \"cookies\",\n          title: \"Cookies and similar technologies\",\n          summary: \"A few cookies keep you signed in and help us measure usage.\",\n          paragraphs: [\n            \"We use cookies and similar technologies to keep you signed in, remember your preferences and understand how the product is used. You can control cookies through your browser settings and our cookie preferences.\",\n          ],\n        },\n        {\n          id: \"retention\",\n          title: \"Data retention\",\n          summary: \"We keep data only as long as we need it.\",\n          paragraphs: [\n            \"We keep your information for as long as your account is active or as needed to provide the service. When you delete your account we remove or anonymize your data within 30 days, except where we must keep it for legal reasons.\",\n          ],\n        },\n        {\n          id: \"rights\",\n          title: \"Your rights and choices\",\n          summary: \"You can access, fix, export or delete your data.\",\n          paragraphs: [\n            \"Depending on where you live, you may have rights over your personal information. You can exercise them at any time from your account settings or by contacting us.\",\n          ],\n          list: [\n            \"Access and download a copy of your data\",\n            \"Correct information that is inaccurate\",\n            \"Delete your account and associated data\",\n            \"Object to or restrict certain processing\",\n          ],\n        },\n        {\n          id: \"security\",\n          title: \"Security\",\n          summary: \"Encryption, access controls and regular audits.\",\n          paragraphs: [\n            \"We use industry standard safeguards including encryption in transit and at rest, strict access controls and regular security reviews. No system is perfectly secure, so we also encourage you to use a strong, unique password and two factor authentication.\",\n          ],\n        },\n        {\n          id: \"contact\",\n          title: \"Contact us\",\n          summary: \"Questions go to privacy@uithing.com.\",\n          paragraphs: [\n            \"If you have questions about this policy or how we handle your data, email privacy@uithing.com or write to Acme Inc., 100 Market Street, San Francisco, CA 94105.\",\n          ],\n        },\n      ],\n    }\n  );\n\n  const highlights = [\n    {\n      title: \"We never sell your data\",\n      text: \"Your information is used to run the product, nothing else.\",\n      icon: \"lucide:shield-check\",\n      color: \"success\" as const,\n    },\n    {\n      title: \"You are in control\",\n      text: \"Access, export or delete your data whenever you like.\",\n      icon: \"lucide:sliders-horizontal\",\n      color: \"info\" as const,\n    },\n    {\n      title: \"Protected by default\",\n      text: \"Encrypted in transit and at rest with strict access.\",\n      icon: \"lucide:lock-keyhole\",\n      color: \"primary\" as const,\n    },\n  ];\n\n  const open = ref<string[]>([]);\n  function toggleAll() {\n    open.value = open.value.length === props.sections.length ? [] : props.sections.map((s) => s.id);\n  }\n</script>\n","category":"Legal","description":"Privacy at a glance with expandable details. Features: Three highlight cards with fancy icons summarizing the policy, then every section as an accordion with an expand all control","path":"Legal/BlockLegal3.vue","components":["accordion","badge","button","container","fancy-icon"]},{"name":"Legal 4","fileName":"BlockLegal4.vue","file":"<template>\n  <!--\n    One legal center with tabs\n    Features: Tabs switch between Terms of Service, Privacy Policy and Cookie Policy on one page, each with its own last updated date and numbered sections\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"text-center\">\n        <UiBadge variant=\"secondary\">Legal</UiBadge>\n        <h1 class=\"mt-4 text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-3 text-lg\">\n          The agreements and policies that govern how we work together.\n        </p>\n      </div>\n      <UiTabs v-model=\"tab\" class=\"mt-10\">\n        <div class=\"flex justify-center overflow-x-auto\">\n          <UiTabsList>\n            <UiTabsTrigger v-for=\"doc in props.documents\" :key=\"doc.value\" :value=\"doc.value\">{{\n              doc.label\n            }}</UiTabsTrigger>\n          </UiTabsList>\n        </div>\n      </UiTabs>\n      <article :key=\"current.value\" class=\"mt-10\">\n        <p class=\"text-muted-foreground text-sm\">Last updated {{ current.updated }}</p>\n        <div class=\"mt-6 space-y-8\">\n          <section v-for=\"(section, i) in current.sections\" :key=\"section.id\">\n            <h2 class=\"text-xl font-semibold\">{{ i + 1 }}. {{ section.title }}</h2>\n            <p\n              v-for=\"p in section.paragraphs\"\n              :key=\"p\"\n              class=\"text-muted-foreground mt-2 leading-relaxed\"\n            >\n              {{ p }}\n            </p>\n            <ul\n              v-if=\"section.list\"\n              class=\"text-muted-foreground mt-3 list-disc space-y-1.5 pl-6 leading-relaxed\"\n            >\n              <li v-for=\"item in section.list\" :key=\"item\">{{ item }}</li>\n            </ul>\n          </section>\n        </div>\n      </article>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Section = {\n    id: string;\n    title: string;\n    summary: string;\n    paragraphs: string[];\n    list?: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      documents?: { value: string; label: string; updated: string; sections: Section[] }[];\n    }>(),\n    {\n      title: \"Legal center\",\n      documents: () => [\n        {\n          value: \"terms\",\n          label: \"Terms of Service\",\n          updated: \"October 17, 2026\",\n          sections: [\n            {\n              id: \"acceptance\",\n              title: \"Acceptance of terms\",\n              summary: \"Using the service means you agree to these terms.\",\n              paragraphs: [\n                \"By creating an account or using the service you agree to these Terms of Service and our Privacy Policy. If you are using the service on behalf of an organization, you confirm you have authority to bind it.\",\n              ],\n            },\n            {\n              id: \"accounts\",\n              title: \"Your account\",\n              summary: \"Keep your login safe and your details accurate.\",\n              paragraphs: [\n                \"You are responsible for the activity on your account and for keeping your credentials secure. Provide accurate information and let us know right away if you suspect unauthorized access.\",\n              ],\n            },\n            {\n              id: \"use\",\n              title: \"Acceptable use\",\n              summary: \"Be respectful and do not misuse the service.\",\n              paragraphs: [\n                \"You agree to use the service lawfully and not to interfere with it or with other people's use of it. You will not:\",\n              ],\n              list: [\n                \"Attempt to gain unauthorized access to systems or data\",\n                \"Upload malware or content that is unlawful or infringing\",\n                \"Resell or sublicense the service without written permission\",\n                \"Use the service to send spam or harass others\",\n              ],\n            },\n            {\n              id: \"content\",\n              title: \"Content and ownership\",\n              summary: \"You own your content. We own the product.\",\n              paragraphs: [\n                \"You keep all rights to the content you create. You grant us a limited license to host and process it so we can provide the service. We and our licensors retain all rights to the product, its design and its code.\",\n              ],\n            },\n            {\n              id: \"billing\",\n              title: \"Payment and billing\",\n              summary: \"Paid plans renew until you cancel.\",\n              paragraphs: [\n                \"Paid plans are billed in advance on a recurring basis and renew automatically until cancelled. You can cancel at any time and your plan will remain active until the end of the billing period. Fees are non refundable except where required by law.\",\n              ],\n            },\n            {\n              id: \"termination\",\n              title: \"Termination\",\n              summary: \"Either of us can end things at any time.\",\n              paragraphs: [\n                \"You may stop using the service and delete your account whenever you like. We may suspend or terminate access if you breach these terms or if we are required to by law. On termination, your right to use the service ends immediately.\",\n              ],\n            },\n            {\n              id: \"liability\",\n              title: \"Disclaimers and liability\",\n              summary: \"The service is provided as is, with limited liability.\",\n              paragraphs: [\n                \"The service is provided as is and as available without warranties of any kind. To the extent permitted by law, our total liability for any claim is limited to the amount you paid us in the twelve months before the claim arose.\",\n              ],\n            },\n            {\n              id: \"changes\",\n              title: \"Changes and contact\",\n              summary: \"We will tell you before material changes take effect.\",\n              paragraphs: [\n                \"We may update these terms from time to time. If a change is material we will notify you at least 30 days in advance. Questions about these terms can be sent to legal@uithing.com.\",\n              ],\n            },\n          ],\n        },\n        {\n          value: \"privacy\",\n          label: \"Privacy Policy\",\n          updated: \"October 17, 2026\",\n          sections: [\n            {\n              id: \"collect\",\n              title: \"Information we collect\",\n              summary: \"We collect what you give us and basic usage data.\",\n              paragraphs: [\n                \"We collect information you provide directly, such as when you create an account, update your profile or contact support. We also collect some information automatically when you use the service.\",\n              ],\n              list: [\n                \"Account details such as your name, email address and password\",\n                \"Billing information handled by our payment processor\",\n                \"Usage data such as pages viewed, features used and device type\",\n                \"Messages you send to our support team\",\n              ],\n            },\n            {\n              id: \"use\",\n              title: \"How we use information\",\n              summary: \"To run, improve and protect the product, never to sell your data.\",\n              paragraphs: [\n                \"We use your information to provide and maintain the service, to improve it, to communicate with you and to keep it secure. We do not sell your personal information.\",\n              ],\n              list: [\n                \"Provide, maintain and personalize the service\",\n                \"Send receipts, security alerts and product updates\",\n                \"Detect, prevent and respond to fraud or abuse\",\n                \"Understand how the product is used so we can improve it\",\n              ],\n            },\n            {\n              id: \"share\",\n              title: \"How we share information\",\n              summary: \"Only with trusted providers and when the law requires it.\",\n              paragraphs: [\n                \"We share information with service providers who help us run the product, such as hosting, payments and analytics. They may only use it to perform services for us and must protect it.\",\n                \"We may also disclose information if required by law, or to protect the rights, safety and property of our users and company.\",\n              ],\n            },\n            {\n              id: \"cookies\",\n              title: \"Cookies and similar technologies\",\n              summary: \"A few cookies keep you signed in and help us measure usage.\",\n              paragraphs: [\n                \"We use cookies and similar technologies to keep you signed in, remember your preferences and understand how the product is used. You can control cookies through your browser settings and our cookie preferences.\",\n              ],\n            },\n            {\n              id: \"retention\",\n              title: \"Data retention\",\n              summary: \"We keep data only as long as we need it.\",\n              paragraphs: [\n                \"We keep your information for as long as your account is active or as needed to provide the service. When you delete your account we remove or anonymize your data within 30 days, except where we must keep it for legal reasons.\",\n              ],\n            },\n            {\n              id: \"rights\",\n              title: \"Your rights and choices\",\n              summary: \"You can access, fix, export or delete your data.\",\n              paragraphs: [\n                \"Depending on where you live, you may have rights over your personal information. You can exercise them at any time from your account settings or by contacting us.\",\n              ],\n              list: [\n                \"Access and download a copy of your data\",\n                \"Correct information that is inaccurate\",\n                \"Delete your account and associated data\",\n                \"Object to or restrict certain processing\",\n              ],\n            },\n            {\n              id: \"security\",\n              title: \"Security\",\n              summary: \"Encryption, access controls and regular audits.\",\n              paragraphs: [\n                \"We use industry standard safeguards including encryption in transit and at rest, strict access controls and regular security reviews. No system is perfectly secure, so we also encourage you to use a strong, unique password and two factor authentication.\",\n              ],\n            },\n            {\n              id: \"contact\",\n              title: \"Contact us\",\n              summary: \"Questions go to privacy@uithing.com.\",\n              paragraphs: [\n                \"If you have questions about this policy or how we handle your data, email privacy@uithing.com or write to Acme Inc., 100 Market Street, San Francisco, CA 94105.\",\n              ],\n            },\n          ],\n        },\n        {\n          value: \"cookies\",\n          label: \"Cookie Policy\",\n          updated: \"September 2, 2026\",\n          sections: [\n            {\n              id: \"what\",\n              title: \"What are cookies\",\n              summary: \"Small files that remember your visit.\",\n              paragraphs: [\n                \"Cookies are small text files stored on your device when you visit a website. They help the site remember your actions and preferences over time.\",\n              ],\n            },\n            {\n              id: \"how\",\n              title: \"How we use cookies\",\n              summary: \"To sign you in, remember settings and measure usage.\",\n              paragraphs: [\n                \"We use cookies to keep you signed in, remember your preferences, measure how the product is used and, with your consent, show relevant content.\",\n              ],\n            },\n            {\n              id: \"manage\",\n              title: \"Managing cookies\",\n              summary: \"Change your choices at any time.\",\n              paragraphs: [\n                \"You can change your cookie preferences at any time from the cookie settings link in the footer, or through your browser. Blocking some cookies may affect how the product works.\",\n              ],\n            },\n          ],\n        },\n      ],\n    }\n  );\n\n  const tab = ref(props.documents[0]!.value);\n  const current = computed(\n    () => props.documents.find((d) => d.value === tab.value) ?? props.documents[0]!\n  );\n</script>\n","category":"Legal","description":"One legal center with tabs. Features: Tabs switch between Terms of Service, Privacy Policy and Cookie Policy on one page, each with its own last updated date and numbered sections","path":"Legal/BlockLegal4.vue","components":["badge","container","tabs"]},{"name":"Legal 5","fileName":"BlockLegal5.vue","file":"<template>\n  <!--\n    Cookie policy with a cookie table and preferences\n    Features: Explains each cookie category with a switch, locks the necessary ones, lists every cookie in a table and saves choices with a toast\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-4xl\">\n      <div>\n        <UiBadge variant=\"secondary\">Legal</UiBadge>\n        <h1 class=\"mt-4 text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-3 text-sm\">Last updated {{ props.updated }}</p>\n      </div>\n      <p class=\"text-muted-foreground mt-8 text-lg leading-relaxed\">\n        We use cookies to keep the product working, understand how it is used and, with your\n        permission, personalize what you see. Choose what you are comfortable with below.\n      </p>\n\n      <ul class=\"mt-8 divide-y rounded-2xl border\">\n        <li\n          v-for=\"cat in categories\"\n          :key=\"cat.id\"\n          class=\"flex items-start justify-between gap-6 p-5\"\n        >\n          <div>\n            <p class=\"font-semibold\">{{ cat.title }}</p>\n            <p class=\"text-muted-foreground mt-1 text-sm\">{{ cat.text }}</p>\n          </div>\n          <UiSwitch\n            v-model=\"choices[cat.id]\"\n            :disabled=\"cat.locked\"\n            :aria-label=\"`${cat.title} cookies`\"\n          />\n        </li>\n      </ul>\n      <div class=\"mt-4 flex flex-wrap justify-end gap-3\">\n        <UiButton variant=\"outline\" @click=\"setAll(false)\">Reject optional</UiButton>\n        <UiButton variant=\"outline\" @click=\"setAll(true)\">Accept all</UiButton>\n        <UiButton @click=\"save\">Save preferences</UiButton>\n      </div>\n\n      <h2 class=\"mt-14 text-xl font-semibold\">Cookies we use</h2>\n      <div class=\"mt-4 overflow-x-auto rounded-2xl border\">\n        <UiTable>\n          <UiTableHeader>\n            <UiTableRow>\n              <UiTableHead>Name</UiTableHead>\n              <UiTableHead>Category</UiTableHead>\n              <UiTableHead>Purpose</UiTableHead>\n              <UiTableHead class=\"text-right\">Duration</UiTableHead>\n            </UiTableRow>\n          </UiTableHeader>\n          <UiTableBody>\n            <UiTableRow v-for=\"c in cookies\" :key=\"c.name\">\n              <UiTableCell class=\"font-mono text-xs\">{{ c.name }}</UiTableCell>\n              <UiTableCell><UiBadge variant=\"secondary\">{{ c.category }}</UiBadge></UiTableCell>\n              <UiTableCell class=\"text-muted-foreground\">{{ c.purpose }}</UiTableCell>\n              <UiTableCell class=\"text-muted-foreground text-right\">{{ c.duration }}</UiTableCell>\n            </UiTableRow>\n          </UiTableBody>\n        </UiTable>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Section = {\n    id: string;\n    title: string;\n    summary: string;\n    paragraphs: string[];\n    list?: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; updated?: string; sections?: Section[] }>(),\n    {\n      title: \"Cookie Policy\",\n      updated: \"September 2, 2026\",\n      sections: () => [\n        {\n          id: \"what\",\n          title: \"What are cookies\",\n          summary: \"Small files that remember your visit.\",\n          paragraphs: [\n            \"Cookies are small text files stored on your device when you visit a website. They help the site remember your actions and preferences over time.\",\n          ],\n        },\n        {\n          id: \"how\",\n          title: \"How we use cookies\",\n          summary: \"To sign you in, remember settings and measure usage.\",\n          paragraphs: [\n            \"We use cookies to keep you signed in, remember your preferences, measure how the product is used and, with your consent, show relevant content.\",\n          ],\n        },\n        {\n          id: \"manage\",\n          title: \"Managing cookies\",\n          summary: \"Change your choices at any time.\",\n          paragraphs: [\n            \"You can change your cookie preferences at any time from the cookie settings link in the footer, or through your browser. Blocking some cookies may affect how the product works.\",\n          ],\n        },\n      ],\n    }\n  );\n\n  const categories = [\n    {\n      id: \"necessary\",\n      title: \"Strictly necessary\",\n      text: \"Required for sign in, security and basic features. Always on.\",\n      locked: true,\n    },\n    {\n      id: \"preferences\",\n      title: \"Preferences\",\n      text: \"Remember settings like language and theme.\",\n      locked: false,\n    },\n    {\n      id: \"analytics\",\n      title: \"Analytics\",\n      text: \"Help us understand how the product is used so we can improve it.\",\n      locked: false,\n    },\n    {\n      id: \"marketing\",\n      title: \"Marketing\",\n      text: \"Used to measure campaigns and show relevant content.\",\n      locked: false,\n    },\n  ];\n  const cookies = [\n    {\n      name: \"session_id\",\n      category: \"Necessary\",\n      purpose: \"Keeps you signed in\",\n      duration: \"Session\",\n    },\n    {\n      name: \"csrf_token\",\n      category: \"Necessary\",\n      purpose: \"Protects forms against forgery\",\n      duration: \"Session\",\n    },\n    {\n      name: \"theme\",\n      category: \"Preferences\",\n      purpose: \"Remembers light or dark mode\",\n      duration: \"1 year\",\n    },\n    {\n      name: \"_analytics_id\",\n      category: \"Analytics\",\n      purpose: \"Counts unique visitors\",\n      duration: \"13 months\",\n    },\n    {\n      name: \"_campaign\",\n      category: \"Marketing\",\n      purpose: \"Attributes sign ups to campaigns\",\n      duration: \"90 days\",\n    },\n  ];\n\n  const choices = reactive<Record<string, boolean>>({\n    necessary: true,\n    preferences: true,\n    analytics: false,\n    marketing: false,\n  });\n\n  function setAll(value: boolean) {\n    for (const key of Object.keys(choices)) choices[key] = key === \"necessary\" ? true : value;\n    useSonner.success(value ? \"All cookies accepted\" : \"Optional cookies rejected\");\n  }\n  function save() {\n    useSonner.success(\"Cookie preferences saved\");\n  }\n</script>\n","category":"Legal","description":"Cookie policy with a cookie table and preferences. Features: Explains each cookie category with a switch, locks the necessary ones, lists every cookie in a table and saves choices with a toast","path":"Legal/BlockLegal5.vue","components":["badge","button","container","switch","table"]},{"name":"Legal 6","fileName":"BlockLegal6.vue","file":"<template>\n  <!--\n    Plain English side by side\n    Features: Each section pairs a short plain language summary with the full legal text, so people can skim first and read the detail only where they need it\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div>\n        <UiBadge variant=\"secondary\">Legal</UiBadge>\n        <h1 class=\"mt-4 text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-3 text-sm\">Last updated {{ props.updated }}</p>\n      </div>\n      <p class=\"text-muted-foreground mt-6 max-w-2xl text-lg\">\n        Legal text is hard to read. We added a plain English summary next to every section. The full\n        text is what counts, the summary is just here to help.\n      </p>\n      <div class=\"mt-12 divide-y border-y\">\n        <section\n          v-for=\"section in props.sections\"\n          :key=\"section.id\"\n          class=\"grid gap-4 py-8 md:grid-cols-[1fr_2fr] md:gap-10\"\n        >\n          <div>\n            <h2 class=\"font-semibold\">{{ section.title }}</h2>\n            <div\n              class=\"bg-primary/5 border-primary/20 mt-3 flex gap-2 rounded-xl border p-3 text-sm\"\n            >\n              <Icon name=\"lucide:message-circle\" class=\"text-primary mt-0.5 size-4 shrink-0\" />\n              <p>{{ section.summary }}</p>\n            </div>\n          </div>\n          <div>\n            <p\n              v-for=\"p in section.paragraphs\"\n              :key=\"p\"\n              class=\"text-muted-foreground leading-relaxed\"\n            >\n              {{ p }}\n            </p>\n            <ul\n              v-if=\"section.list\"\n              class=\"text-muted-foreground mt-3 list-disc space-y-1.5 pl-6 leading-relaxed\"\n            >\n              <li v-for=\"item in section.list\" :key=\"item\">{{ item }}</li>\n            </ul>\n          </div>\n        </section>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Section = {\n    id: string;\n    title: string;\n    summary: string;\n    paragraphs: string[];\n    list?: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; updated?: string; sections?: Section[] }>(),\n    {\n      title: \"Terms of Service, in plain English\",\n      updated: \"October 17, 2026\",\n      sections: () => [\n        {\n          id: \"acceptance\",\n          title: \"Acceptance of terms\",\n          summary: \"Using the service means you agree to these terms.\",\n          paragraphs: [\n            \"By creating an account or using the service you agree to these Terms of Service and our Privacy Policy. If you are using the service on behalf of an organization, you confirm you have authority to bind it.\",\n          ],\n        },\n        {\n          id: \"accounts\",\n          title: \"Your account\",\n          summary: \"Keep your login safe and your details accurate.\",\n          paragraphs: [\n            \"You are responsible for the activity on your account and for keeping your credentials secure. Provide accurate information and let us know right away if you suspect unauthorized access.\",\n          ],\n        },\n        {\n          id: \"use\",\n          title: \"Acceptable use\",\n          summary: \"Be respectful and do not misuse the service.\",\n          paragraphs: [\n            \"You agree to use the service lawfully and not to interfere with it or with other people's use of it. You will not:\",\n          ],\n          list: [\n            \"Attempt to gain unauthorized access to systems or data\",\n            \"Upload malware or content that is unlawful or infringing\",\n            \"Resell or sublicense the service without written permission\",\n            \"Use the service to send spam or harass others\",\n          ],\n        },\n        {\n          id: \"content\",\n          title: \"Content and ownership\",\n          summary: \"You own your content. We own the product.\",\n          paragraphs: [\n            \"You keep all rights to the content you create. You grant us a limited license to host and process it so we can provide the service. We and our licensors retain all rights to the product, its design and its code.\",\n          ],\n        },\n        {\n          id: \"billing\",\n          title: \"Payment and billing\",\n          summary: \"Paid plans renew until you cancel.\",\n          paragraphs: [\n            \"Paid plans are billed in advance on a recurring basis and renew automatically until cancelled. You can cancel at any time and your plan will remain active until the end of the billing period. Fees are non refundable except where required by law.\",\n          ],\n        },\n        {\n          id: \"termination\",\n          title: \"Termination\",\n          summary: \"Either of us can end things at any time.\",\n          paragraphs: [\n            \"You may stop using the service and delete your account whenever you like. We may suspend or terminate access if you breach these terms or if we are required to by law. On termination, your right to use the service ends immediately.\",\n          ],\n        },\n        {\n          id: \"liability\",\n          title: \"Disclaimers and liability\",\n          summary: \"The service is provided as is, with limited liability.\",\n          paragraphs: [\n            \"The service is provided as is and as available without warranties of any kind. To the extent permitted by law, our total liability for any claim is limited to the amount you paid us in the twelve months before the claim arose.\",\n          ],\n        },\n        {\n          id: \"changes\",\n          title: \"Changes and contact\",\n          summary: \"We will tell you before material changes take effect.\",\n          paragraphs: [\n            \"We may update these terms from time to time. If a change is material we will notify you at least 30 days in advance. Questions about these terms can be sent to legal@uithing.com.\",\n          ],\n        },\n      ],\n    }\n  );\n</script>\n","category":"Legal","description":"Plain English side by side. Features: Each section pairs a short plain language summary with the full legal text, so people can skim first and read the detail only where they need it","path":"Legal/BlockLegal6.vue","components":["badge","container"]},{"name":"Legal 7","fileName":"BlockLegal7.vue","file":"<template>\n  <!--\n    Accept terms after reading\n    Features: Scrollable agreement with a progress bar, a consent checkbox that unlocks at the end of the document, and an accept button with a success state\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <UiCard class=\"mx-auto max-w-2xl overflow-hidden\">\n      <div class=\"border-b p-6\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">{{ props.title }}</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">Please read to the end before continuing.</p>\n      </div>\n      <div class=\"bg-muted h-1\">\n        <div class=\"bg-primary h-full transition-all\" :style=\"{ width: `${progress}%` }\" />\n      </div>\n      <div\n        ref=\"scroller\"\n        class=\"focus-visible:ring-ring h-80 space-y-6 overflow-y-auto p-6 outline-none focus-visible:ring-2 focus-visible:ring-inset\"\n        tabindex=\"0\"\n        role=\"region\"\n        aria-label=\"Terms of service\"\n        @scroll.passive=\"update\"\n      >\n        <section v-for=\"(section, i) in props.sections\" :key=\"section.id\">\n          <h2 class=\"font-semibold\">{{ i + 1 }}. {{ section.title }}</h2>\n          <p\n            v-for=\"p in section.paragraphs\"\n            :key=\"p\"\n            class=\"text-muted-foreground mt-2 text-sm leading-relaxed\"\n          >\n            {{ p }}\n          </p>\n          <ul\n            v-if=\"section.list\"\n            class=\"text-muted-foreground mt-2 list-disc space-y-1 pl-5 text-sm leading-relaxed\"\n          >\n            <li v-for=\"item in section.list\" :key=\"item\">{{ item }}</li>\n          </ul>\n        </section>\n      </div>\n      <div class=\"border-t p-6\">\n        <div v-if=\"!accepted\" class=\"space-y-4\">\n          <label class=\"flex items-start gap-3 text-sm\" :class=\"reachedEnd ? '' : 'opacity-60'\">\n            <UiCheckbox\n              v-model=\"agree\"\n              :disabled=\"!reachedEnd\"\n              aria-label=\"I have read and agree to the terms\"\n            />\n            <span>I have read and agree to the Terms of Service and Privacy Policy.</span>\n          </label>\n          <p v-if=\"!reachedEnd\" class=\"text-muted-foreground text-xs\">\n            Scroll to the end of the document to enable this checkbox.\n          </p>\n          <div class=\"flex justify-end gap-3\">\n            <UiButton variant=\"outline\">Decline</UiButton>\n            <UiButton :disabled=\"!agree\" @click=\"accepted = true\">Accept and continue</UiButton>\n          </div>\n        </div>\n        <div v-else class=\"flex items-center gap-3 text-sm\" role=\"status\">\n          <Icon name=\"lucide:circle-check\" class=\"size-5 text-green-600 dark:text-green-400\" />\n          <p class=\"font-medium\">Thanks, you accepted the terms.</p>\n          <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n        </div>\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Section = {\n    id: string;\n    title: string;\n    summary: string;\n    paragraphs: string[];\n    list?: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; updated?: string; sections?: Section[] }>(),\n    {\n      title: \"Terms of Service\",\n      updated: \"October 17, 2026\",\n      sections: () => [\n        {\n          id: \"acceptance\",\n          title: \"Acceptance of terms\",\n          summary: \"Using the service means you agree to these terms.\",\n          paragraphs: [\n            \"By creating an account or using the service you agree to these Terms of Service and our Privacy Policy. If you are using the service on behalf of an organization, you confirm you have authority to bind it.\",\n          ],\n        },\n        {\n          id: \"accounts\",\n          title: \"Your account\",\n          summary: \"Keep your login safe and your details accurate.\",\n          paragraphs: [\n            \"You are responsible for the activity on your account and for keeping your credentials secure. Provide accurate information and let us know right away if you suspect unauthorized access.\",\n          ],\n        },\n        {\n          id: \"use\",\n          title: \"Acceptable use\",\n          summary: \"Be respectful and do not misuse the service.\",\n          paragraphs: [\n            \"You agree to use the service lawfully and not to interfere with it or with other people's use of it. You will not:\",\n          ],\n          list: [\n            \"Attempt to gain unauthorized access to systems or data\",\n            \"Upload malware or content that is unlawful or infringing\",\n            \"Resell or sublicense the service without written permission\",\n            \"Use the service to send spam or harass others\",\n          ],\n        },\n        {\n          id: \"content\",\n          title: \"Content and ownership\",\n          summary: \"You own your content. We own the product.\",\n          paragraphs: [\n            \"You keep all rights to the content you create. You grant us a limited license to host and process it so we can provide the service. We and our licensors retain all rights to the product, its design and its code.\",\n          ],\n        },\n        {\n          id: \"billing\",\n          title: \"Payment and billing\",\n          summary: \"Paid plans renew until you cancel.\",\n          paragraphs: [\n            \"Paid plans are billed in advance on a recurring basis and renew automatically until cancelled. You can cancel at any time and your plan will remain active until the end of the billing period. Fees are non refundable except where required by law.\",\n          ],\n        },\n        {\n          id: \"termination\",\n          title: \"Termination\",\n          summary: \"Either of us can end things at any time.\",\n          paragraphs: [\n            \"You may stop using the service and delete your account whenever you like. We may suspend or terminate access if you breach these terms or if we are required to by law. On termination, your right to use the service ends immediately.\",\n          ],\n        },\n        {\n          id: \"liability\",\n          title: \"Disclaimers and liability\",\n          summary: \"The service is provided as is, with limited liability.\",\n          paragraphs: [\n            \"The service is provided as is and as available without warranties of any kind. To the extent permitted by law, our total liability for any claim is limited to the amount you paid us in the twelve months before the claim arose.\",\n          ],\n        },\n        {\n          id: \"changes\",\n          title: \"Changes and contact\",\n          summary: \"We will tell you before material changes take effect.\",\n          paragraphs: [\n            \"We may update these terms from time to time. If a change is material we will notify you at least 30 days in advance. Questions about these terms can be sent to legal@uithing.com.\",\n          ],\n        },\n      ],\n    }\n  );\n\n  const scroller = ref<HTMLElement | null>(null);\n  const progress = ref(0);\n  const reachedEnd = ref(false);\n  const agree = ref(false);\n  const accepted = ref(false);\n\n  function update() {\n    const el = scroller.value;\n    if (!el) return;\n    const max = el.scrollHeight - el.clientHeight;\n    progress.value = max > 0 ? Math.min(100, Math.round((el.scrollTop / max) * 100)) : 100;\n    if (progress.value >= 98) reachedEnd.value = true;\n  }\n  function reset() {\n    accepted.value = false;\n    agree.value = false;\n  }\n  onMounted(update);\n</script>\n","category":"Legal","description":"Accept terms after reading. Features: Scrollable agreement with a progress bar, a consent checkbox that unlocks at the end of the document, and an accept button with a success state","path":"Legal/BlockLegal7.vue","components":["button","card","checkbox","container"]},{"name":"Legal 8","fileName":"BlockLegal8.vue","file":"<template>\n  <!--\n    Document header with downloads and contents chips\n    Features: Header with last updated date, version picker, print and download buttons and a row of jump to chips, above a readable document\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-col justify-between gap-6 sm:flex-row sm:items-start\">\n        <div>\n          <UiBadge variant=\"secondary\">Legal</UiBadge>\n          <h1 class=\"mt-4 text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n            {{ props.title }}\n          </h1>\n        </div>\n        <div class=\"flex flex-wrap items-center gap-2\">\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"outline\" size=\"sm\">\n                Version {{ version }}\n                <Icon name=\"lucide:chevron-down\" class=\"size-4\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent align=\"end\">\n              <UiDropdownMenuItem\n                v-for=\"v in versions\"\n                :key=\"v\"\n                :title=\"`Version ${v}`\"\n                @select=\"version = v\"\n              />\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"print\">\n            <Icon name=\"lucide:printer\" class=\"size-4\" />\n            Print\n          </UiButton>\n          <UiButton size=\"sm\" @click=\"useSonner.success('Download started')\">\n            <Icon name=\"lucide:download\" class=\"size-4\" />\n            PDF\n          </UiButton>\n        </div>\n      </div>\n      <p class=\"text-muted-foreground mt-3 text-sm\">\n        Last updated {{ props.updated }} · Effective immediately\n      </p>\n\n      <nav class=\"mt-8 flex flex-wrap gap-2\" aria-label=\"Jump to section\">\n        <a\n          v-for=\"section in props.sections\"\n          :key=\"section.id\"\n          :href=\"`#${section.id}`\"\n          class=\"hover:bg-muted rounded-full border px-3 py-1 text-xs font-medium transition-colors\"\n        >\n          {{ section.title }}\n        </a>\n      </nav>\n\n      <div class=\"mt-10 space-y-10\">\n        <section\n          v-for=\"section in props.sections\"\n          :id=\"section.id\"\n          :key=\"section.id\"\n          class=\"scroll-mt-24\"\n        >\n          <h2 class=\"text-xl font-semibold tracking-tight\">{{ section.title }}</h2>\n          <p\n            v-for=\"p in section.paragraphs\"\n            :key=\"p\"\n            class=\"text-muted-foreground mt-3 leading-relaxed\"\n          >\n            {{ p }}\n          </p>\n          <ul\n            v-if=\"section.list\"\n            class=\"text-muted-foreground mt-3 list-disc space-y-1.5 pl-6 leading-relaxed\"\n          >\n            <li v-for=\"item in section.list\" :key=\"item\">{{ item }}</li>\n          </ul>\n        </section>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Section = {\n    id: string;\n    title: string;\n    summary: string;\n    paragraphs: string[];\n    list?: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; updated?: string; sections?: Section[] }>(),\n    {\n      title: \"Privacy Policy\",\n      updated: \"October 17, 2026\",\n      sections: () => [\n        {\n          id: \"collect\",\n          title: \"Information we collect\",\n          summary: \"We collect what you give us and basic usage data.\",\n          paragraphs: [\n            \"We collect information you provide directly, such as when you create an account, update your profile or contact support. We also collect some information automatically when you use the service.\",\n          ],\n          list: [\n            \"Account details such as your name, email address and password\",\n            \"Billing information handled by our payment processor\",\n            \"Usage data such as pages viewed, features used and device type\",\n            \"Messages you send to our support team\",\n          ],\n        },\n        {\n          id: \"use\",\n          title: \"How we use information\",\n          summary: \"To run, improve and protect the product, never to sell your data.\",\n          paragraphs: [\n            \"We use your information to provide and maintain the service, to improve it, to communicate with you and to keep it secure. We do not sell your personal information.\",\n          ],\n          list: [\n            \"Provide, maintain and personalize the service\",\n            \"Send receipts, security alerts and product updates\",\n            \"Detect, prevent and respond to fraud or abuse\",\n            \"Understand how the product is used so we can improve it\",\n          ],\n        },\n        {\n          id: \"share\",\n          title: \"How we share information\",\n          summary: \"Only with trusted providers and when the law requires it.\",\n          paragraphs: [\n            \"We share information with service providers who help us run the product, such as hosting, payments and analytics. They may only use it to perform services for us and must protect it.\",\n            \"We may also disclose information if required by law, or to protect the rights, safety and property of our users and company.\",\n          ],\n        },\n        {\n          id: \"cookies\",\n          title: \"Cookies and similar technologies\",\n          summary: \"A few cookies keep you signed in and help us measure usage.\",\n          paragraphs: [\n            \"We use cookies and similar technologies to keep you signed in, remember your preferences and understand how the product is used. You can control cookies through your browser settings and our cookie preferences.\",\n          ],\n        },\n        {\n          id: \"retention\",\n          title: \"Data retention\",\n          summary: \"We keep data only as long as we need it.\",\n          paragraphs: [\n            \"We keep your information for as long as your account is active or as needed to provide the service. When you delete your account we remove or anonymize your data within 30 days, except where we must keep it for legal reasons.\",\n          ],\n        },\n        {\n          id: \"rights\",\n          title: \"Your rights and choices\",\n          summary: \"You can access, fix, export or delete your data.\",\n          paragraphs: [\n            \"Depending on where you live, you may have rights over your personal information. You can exercise them at any time from your account settings or by contacting us.\",\n          ],\n          list: [\n            \"Access and download a copy of your data\",\n            \"Correct information that is inaccurate\",\n            \"Delete your account and associated data\",\n            \"Object to or restrict certain processing\",\n          ],\n        },\n        {\n          id: \"security\",\n          title: \"Security\",\n          summary: \"Encryption, access controls and regular audits.\",\n          paragraphs: [\n            \"We use industry standard safeguards including encryption in transit and at rest, strict access controls and regular security reviews. No system is perfectly secure, so we also encourage you to use a strong, unique password and two factor authentication.\",\n          ],\n        },\n        {\n          id: \"contact\",\n          title: \"Contact us\",\n          summary: \"Questions go to privacy@uithing.com.\",\n          paragraphs: [\n            \"If you have questions about this policy or how we handle your data, email privacy@uithing.com or write to Acme Inc., 100 Market Street, San Francisco, CA 94105.\",\n          ],\n        },\n      ],\n    }\n  );\n\n  const versions = [\"3.2\", \"3.1\", \"3.0\", \"2.4\"];\n  const version = ref(versions[0]!);\n\n  function print() {\n    window.print();\n  }\n</script>\n","category":"Legal","description":"Document header with downloads and contents chips. Features: Header with last updated date, version picker, print and download buttons and a row of jump to chips, above a readable document","path":"Legal/BlockLegal8.vue","components":["badge","button","container","dropdown-menu"]},{"name":"Legal 9","fileName":"BlockLegal9.vue","file":"<template>\n  <!--\n    Data rights request form\n    Features: Explains privacy rights with three cards, then a validated request form with request type cards, details and a confirmation state with a reference number\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-4xl\">\n      <div class=\"max-w-2xl\">\n        <h1 class=\"text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ props.title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-4 text-lg\">\n          Under laws like the GDPR and CCPA you can ask what we hold about you, have it corrected or\n          have it deleted. We reply within 30 days.\n        </p>\n      </div>\n      <div class=\"mt-10 grid gap-8 lg:grid-cols-[1fr_1.4fr]\">\n        <ul class=\"space-y-4\">\n          <li v-for=\"item in rights\" :key=\"item.title\" class=\"flex gap-4\">\n            <UiFancyIcon :icon=\"item.icon\" theme=\"light\" :color=\"item.color\" />\n            <div>\n              <p class=\"font-semibold\">{{ item.title }}</p>\n              <p class=\"text-muted-foreground text-sm\">{{ item.text }}</p>\n            </div>\n          </li>\n        </ul>\n\n        <UiCard>\n          <UiCardContent>\n            <form v-if=\"!reference\" class=\"space-y-5\" novalidate @submit.prevent=\"submit\">\n              <fieldset class=\"space-y-3\">\n                <legend class=\"text-sm font-medium\">Request type</legend>\n                <UiRadioGroup v-model=\"type\" class=\"grid gap-2 sm:grid-cols-3\">\n                  <label\n                    v-for=\"option in types\"\n                    :key=\"option.value\"\n                    class=\"flex cursor-pointer items-center justify-center rounded-lg border px-3 py-2 text-sm transition-colors\"\n                    :class=\"\n                      type === option.value ? 'border-primary bg-primary/5' : 'hover:bg-muted/50'\n                    \"\n                  >\n                    <UiRadioGroupItem :value=\"option.value\" class=\"sr-only\" />\n                    {{ option.label }}\n                  </label>\n                </UiRadioGroup>\n              </fieldset>\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"legal-name\">Full name</UiLabel>\n                <UiInput\n                  id=\"legal-name\"\n                  v-model=\"name\"\n                  placeholder=\"Jane Doe\"\n                  :aria-invalid=\"!!errors.name\"\n                />\n                <p v-if=\"errors.name\" class=\"text-destructive text-sm\">{{ errors.name }}</p>\n              </div>\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"legal-email\">Account email</UiLabel>\n                <UiInput\n                  id=\"legal-email\"\n                  v-model=\"email\"\n                  type=\"email\"\n                  placeholder=\"you@example.com\"\n                  :aria-invalid=\"!!errors.email\"\n                />\n                <p v-if=\"errors.email\" class=\"text-destructive text-sm\">{{ errors.email }}</p>\n              </div>\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"legal-details\">Details (optional)</UiLabel>\n                <UiTextarea\n                  id=\"legal-details\"\n                  v-model=\"details\"\n                  :rows=\"3\"\n                  placeholder=\"Anything that helps us find your data\"\n                />\n              </div>\n              <UiButton type=\"submit\" class=\"w-full\" :disabled=\"loading\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Submit request\n              </UiButton>\n            </form>\n            <div v-else class=\"py-6 text-center\" role=\"status\">\n              <div\n                class=\"mx-auto flex size-14 items-center justify-center rounded-full bg-green-500/10\"\n              >\n                <Icon\n                  name=\"lucide:circle-check\"\n                  class=\"size-7 text-green-600 dark:text-green-400\"\n                />\n              </div>\n              <h2 class=\"mt-4 text-xl font-semibold\">Request received</h2>\n              <p class=\"text-muted-foreground mt-1 text-sm\">\n                We will email {{ email }} within 30 days. Your reference is\n                <span class=\"text-foreground font-mono\">{{ reference }}</span>.\n              </p>\n              <UiButton variant=\"ghost\" size=\"sm\" class=\"mt-4\" @click=\"reset\"\n                >Submit another request</UiButton\n              >\n            </div>\n          </UiCardContent>\n        </UiCard>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string }>(), {\n    title: \"Your data, your choice\",\n  });\n\n  const rights = [\n    {\n      title: \"Access\",\n      text: \"Get a copy of the personal data we hold about you.\",\n      icon: \"lucide:file-search\",\n      color: \"info\" as const,\n    },\n    {\n      title: \"Correction\",\n      text: \"Ask us to fix anything that is inaccurate.\",\n      icon: \"lucide:pencil-line\",\n      color: \"warning\" as const,\n    },\n    {\n      title: \"Deletion\",\n      text: \"Have your account and personal data erased.\",\n      icon: \"lucide:trash-2\",\n      color: \"error\" as const,\n    },\n  ];\n  const types = [\n    { value: \"access\", label: \"Access\" },\n    { value: \"correct\", label: \"Correct\" },\n    { value: \"delete\", label: \"Delete\" },\n  ];\n\n  const type = ref(\"access\");\n  const name = ref(\"\");\n  const email = ref(\"\");\n  const details = ref(\"\");\n  const errors = reactive({ name: \"\", email: \"\" });\n  const loading = ref(false);\n  const reference = ref(\"\");\n\n  async function submit() {\n    errors.name = name.value.trim() ? \"\" : \"Enter your full name.\";\n    errors.email = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())\n      ? \"\"\n      : \"Enter a valid email address.\";\n    if (errors.name || errors.email) return;\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 800));\n    loading.value = false;\n    reference.value = `DSR-${Math.floor(10000 + Math.random() * 90000)}`;\n  }\n  function reset() {\n    reference.value = \"\";\n    name.value = \"\";\n    email.value = \"\";\n    details.value = \"\";\n    type.value = \"access\";\n  }\n</script>\n","category":"Legal","description":"Data rights request form. Features: Explains privacy rights with three cards, then a validated request form with request type cards, details and a confirmation state with a reference number","path":"Legal/BlockLegal9.vue","components":["button","card","container","fancy-icon","input","label","radio-group","textarea"]},{"name":"Login Card Social","fileName":"BlockLoginCardSocial.vue","file":"<template>\n  <!--\n    Login card with a row of social buttons\n    Features: Card on a patterned background, three social buttons in a row, email divider, remember me, terms notice under the card\n  -->\n  <div\n    class=\"bg-muted/40 relative flex min-h-screen items-center justify-center overflow-hidden px-5 py-12\"\n  >\n    <UiBgPatternGrid\n      class=\"text-border pointer-events-none absolute top-0 left-1/2 -translate-x-1/2\"\n      aria-hidden=\"true\"\n    />\n    <div class=\"relative w-full max-w-md\">\n      <UiCard class=\"shadow-sm\">\n        <UiCardHeader class=\"justify-items-center text-center\">\n          <div\n            class=\"bg-primary text-primary-foreground mb-3 flex size-11 items-center justify-center rounded-xl\"\n          >\n            <Icon name=\"lucide:log-in\" class=\"size-5\" />\n          </div>\n          <UiCardTitle class=\"text-2xl\">Welcome back</UiCardTitle>\n          <UiCardDescription>Choose how you'd like to log in.</UiCardDescription>\n        </UiCardHeader>\n        <UiCardContent class=\"grid gap-6\">\n          <div class=\"grid grid-cols-3 gap-3\">\n            <UiButton\n              v-for=\"provider in providers\"\n              :key=\"provider.name\"\n              variant=\"outline\"\n              type=\"button\"\n              :aria-label=\"`Continue with ${provider.name}`\"\n              @click=\"social(provider.name)\"\n            >\n              <Icon class=\"size-5\" :name=\"provider.icon\" />\n            </UiButton>\n          </div>\n\n          <UiDivider label=\"or continue with email\" />\n\n          <form @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n              <UiVeePasswordInput\n                label=\"Password\"\n                name=\"password\"\n                placeholder=\"Enter your password\"\n              />\n              <div class=\"flex items-center justify-between\">\n                <UiVeeCheckbox label=\"Remember me\" name=\"remember\" />\n                <NuxtLink\n                  class=\"text-muted-foreground hover:text-foreground text-sm underline-offset-4 hover:underline\"\n                  to=\"#\"\n                >\n                  Forgot password?\n                </NuxtLink>\n              </div>\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n            </fieldset>\n          </form>\n        </UiCardContent>\n        <UiCardFooter class=\"justify-center border-t\">\n          <p class=\"text-muted-foreground text-sm\">\n            Don't have an account?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Sign up\n            </NuxtLink>\n          </p>\n        </UiCardFooter>\n      </UiCard>\n\n      <p class=\"text-muted-foreground mt-6 text-center text-xs text-balance\">\n        By continuing you agree to our\n        <NuxtLink class=\"hover:text-foreground underline underline-offset-4\" to=\"#\"\n          >Terms of Service</NuxtLink\n        >\n        and\n        <NuxtLink class=\"hover:text-foreground underline underline-offset-4\" to=\"#\"\n          >Privacy Policy</NuxtLink\n        >.\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const providers = [\n    { name: \"Google\", icon: \"logos:google-icon\" },\n    { name: \"GitHub\", icon: \"mdi:github\" },\n    { name: \"Apple\", icon: \"mdi:apple\" },\n  ];\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n    remember: boolean().label(\"Remember me\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n\n  const social = (provider: string) => {\n    useSonner(`Continue with ${provider}`, {\n      description: \"Wire this up to your auth provider.\",\n    });\n  };\n</script>\n","category":"Login","description":"Login card with a row of social buttons. Features: Card on a patterned background, three social buttons in a row, email divider, remember me, terms notice under the card","path":"Login/BlockLoginCardSocial.vue","components":["bg-pattern-grid","button","card","divider","vee-checkbox","vee-input","vee-password-input"]},{"name":"Login Centered","fileName":"BlockLoginCentered.vue","file":"<template>\n  <!--\n    Centered login with the social buttons first\n    Features: Logo header with trial link, Google and GitHub buttons above the form, remember me and forgot password row\n  -->\n  <div class=\"flex min-h-screen items-center justify-center px-5 py-12\">\n    <div class=\"w-full max-w-[480px]\">\n      <div class=\"text-center\">\n        <svg\n          class=\"fill-primary mx-auto mb-6 h-10\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            class=\"ccustom\"\n          />\n        </svg>\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Sign in to your account</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          Or\n          <NuxtLink class=\"text-primary font-semibold underline-offset-2 hover:underline\" to=\"#\"\n            >start your free trial</NuxtLink\n          >\n        </p>\n      </div>\n\n      <div class=\"mt-10\">\n        <div class=\"grid gap-3\">\n          <UiButton variant=\"outline\" type=\"button\" @click=\"signInWithGoogle()\">\n            <Icon class=\"size-5\" name=\"logos:google-icon\" />\n            <span class=\"ml-2\">Sign in with Google</span>\n          </UiButton>\n          <UiButton variant=\"outline\" type=\"button\" @click=\"signInWithGithub()\">\n            <Icon class=\"size-5\" name=\"mdi:github\" />\n            <span class=\"ml-2\">Sign in with Github</span>\n          </UiButton>\n        </div>\n\n        <UiDivider class=\"my-6\" label=\"Or continue with\" />\n\n        <form @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeeInput\n              label=\"Email address\"\n              type=\"email\"\n              name=\"email\"\n              placeholder=\"you@example.com\"\n            />\n            <UiVeePasswordInput\n              label=\"Password\"\n              name=\"password\"\n              placeholder=\"Enter your password\"\n            />\n            <div class=\"flex items-center justify-between\">\n              <UiVeeCheckbox label=\"Remember me\" name=\"remember\" />\n              <NuxtLink\n                class=\"text-primary text-sm font-medium underline-offset-2 hover:underline\"\n                to=\"#\"\n                >Forgot password?</NuxtLink\n              >\n            </div>\n            <UiButton class=\"w-full\" type=\"submit\" text=\"Sign in\" />\n          </fieldset>\n        </form>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Sign in to your account\",\n    description: \"Sign in to your account or start your free trial.\",\n  });\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email address\"),\n    password: string().required().label(\"Password\").min(8),\n    remember: boolean().label(\"Remember me\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n\n  const signInWithGoogle = () => {\n    useSonner(\"Continue with Google\", {\n      description: \"Redirecting to Google...\",\n    });\n  };\n\n  const signInWithGithub = () => {\n    useSonner(\"Continue with Github\", {\n      description: \"Redirecting to Github...\",\n    });\n  };\n</script>\n","category":"Login","description":"Centered login with the social buttons first. Features: Logo header with trial link, Google and GitHub buttons above the form, remember me and forgot password row","path":"Login/BlockLoginCentered.vue","components":["button","divider","vee-checkbox","vee-input","vee-password-input"]},{"name":"Login Header Nav","fileName":"BlockLoginHeaderNav.vue","file":"<template>\n  <!--\n    Login page with a header navigation bar\n    Features: Top bar with logo, links and sign up button, centered form with social sign in, links collapse on mobile\n  -->\n  <div class=\"flex min-h-screen flex-col\">\n    <header class=\"border-b\">\n      <div class=\"mx-auto flex h-16 max-w-6xl items-center justify-between px-5\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2 font-semibold\">\n          <svg\n            class=\"fill-primary h-6\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          UI Thing\n        </NuxtLink>\n        <nav class=\"text-muted-foreground hidden items-center gap-6 text-sm font-medium md:flex\">\n          <NuxtLink v-for=\"link in links\" :key=\"link\" to=\"#\" class=\"hover:text-foreground\">\n            {{ link }}\n          </NuxtLink>\n        </nav>\n        <UiButton variant=\"outline\" size=\"sm\">Sign up</UiButton>\n      </div>\n    </header>\n\n    <main class=\"flex flex-1 items-center justify-center px-5 py-12\">\n      <div class=\"w-full max-w-sm\">\n        <div class=\"text-center\">\n          <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Log in to your account</h1>\n          <p class=\"text-muted-foreground mt-2\">Welcome back. Please enter your details.</p>\n        </div>\n\n        <form class=\"mt-8\" @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n            <UiVeePasswordInput\n              label=\"Password\"\n              name=\"password\"\n              placeholder=\"Enter your password\"\n            />\n            <div class=\"flex items-center justify-between\">\n              <UiVeeCheckbox label=\"Remember me\" name=\"remember\" />\n              <NuxtLink\n                class=\"text-muted-foreground hover:text-foreground text-sm underline-offset-4 hover:underline\"\n                to=\"#\"\n              >\n                Forgot password?\n              </NuxtLink>\n            </div>\n            <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n            <UiButton variant=\"outline\" type=\"button\" @click=\"signInWithGoogle()\">\n              <Icon class=\"size-4\" name=\"logos:google-icon\" />\n              Log in with Google\n            </UiButton>\n          </fieldset>\n        </form>\n\n        <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n          Don't have an account?\n          <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n            Sign up\n          </NuxtLink>\n        </p>\n      </div>\n    </main>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const links = [\"Product\", \"Pricing\", \"Docs\", \"Support\"];\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n    remember: boolean().label(\"Remember me\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n\n  const signInWithGoogle = () => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in with Google.\",\n    });\n  };\n</script>\n","category":"Login","description":"Login page with a header navigation bar. Features: Top bar with logo, links and sign up button, centered form with social sign in, links collapse on mobile","path":"Login/BlockLoginHeaderNav.vue","components":["button","vee-checkbox","vee-input","vee-password-input"]},{"name":"Login Magic Link","fileName":"BlockLoginMagicLink.vue","file":"<template>\n  <!--\n    Passwordless login with a magic link\n    Features: Email only form, passkey option, confirmation state with resend and change email actions, validation\n  -->\n  <div class=\"flex min-h-screen items-center justify-center px-5 py-12\">\n    <div class=\"w-full max-w-sm\">\n      <template v-if=\"!sent\">\n        <div class=\"text-center\">\n          <div\n            class=\"bg-primary/10 mx-auto mb-5 flex size-12 items-center justify-center rounded-full\"\n          >\n            <Icon name=\"lucide:wand-sparkles\" class=\"text-primary size-6\" />\n          </div>\n          <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Log in without a password</h1>\n          <p class=\"text-muted-foreground mt-2\">\n            We'll email you a link that signs you in instantly.\n          </p>\n        </div>\n\n        <form class=\"mt-8\" @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n            <UiButton class=\"w-full\" type=\"submit\">\n              <Icon name=\"lucide:mail\" class=\"size-4\" />\n              Email me a login link\n            </UiButton>\n            <UiDivider label=\"or\" />\n            <UiButton variant=\"outline\" type=\"button\" @click=\"usePasskey()\">\n              <Icon name=\"lucide:fingerprint\" class=\"size-4\" />\n              Log in with a passkey\n            </UiButton>\n          </fieldset>\n        </form>\n\n        <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n          Prefer a password?\n          <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n            Log in with password\n          </NuxtLink>\n        </p>\n      </template>\n\n      <div v-else class=\"text-center\">\n        <div\n          class=\"bg-primary/10 mx-auto mb-5 flex size-12 items-center justify-center rounded-full\"\n        >\n          <Icon name=\"lucide:mail-check\" class=\"text-primary size-6\" />\n        </div>\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Check your inbox</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          We sent a login link to\n          <span class=\"text-foreground font-medium\">{{ email }}</span>. It expires in 15 minutes.\n        </p>\n        <div class=\"mt-8 grid gap-3\">\n          <UiButton variant=\"outline\" :disabled=\"cooldown > 0\" @click=\"resend()\">\n            {{ cooldown > 0 ? `Resend in ${cooldown}s` : \"Resend email\" }}\n          </UiButton>\n          <UiButton variant=\"ghost\" @click=\"sent = false\">Use a different email</UiButton>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const sent = ref(false);\n  const email = ref(\"\");\n  const cooldown = ref(0);\n\n  let timer: ReturnType<typeof setInterval> | undefined;\n  const startCooldown = () => {\n    cooldown.value = 30;\n    clearInterval(timer);\n    timer = setInterval(() => {\n      cooldown.value -= 1;\n      if (cooldown.value <= 0) clearInterval(timer);\n    }, 1000);\n  };\n  onBeforeUnmount(() => clearInterval(timer));\n\n  const submit = handleSubmit(async (values) => {\n    await new Promise((resolve) => setTimeout(resolve, 500));\n    email.value = values.email;\n    sent.value = true;\n    startCooldown();\n  });\n\n  const resend = () => {\n    startCooldown();\n    useSonner.success(\"Login link sent again\");\n  };\n\n  const usePasskey = () => {\n    useSonner(\"Passkey\", { description: \"Call navigator.credentials.get() here.\" });\n  };\n</script>\n","category":"Login","description":"Passwordless login with a magic link. Features: Email only form, passkey option, confirmation state with resend and change email actions, validation","path":"Login/BlockLoginMagicLink.vue","components":["button","divider","vee-input"]},{"name":"Login Minimal","fileName":"BlockLoginMinimal.vue","file":"<template>\n  <!--\n    Minimal login card with an icon header\n    Features: Centered card, circular icon, password toggle, forgot password link, create account footer\n  -->\n  <div class=\"bg-muted/50 flex min-h-screen items-center justify-center px-5 py-12\">\n    <div class=\"bg-card w-full max-w-[420px] rounded-lg border p-8 shadow-sm\">\n      <div class=\"mb-8 text-center\">\n        <div\n          class=\"bg-primary/10 mx-auto mb-4 flex size-12 items-center justify-center rounded-full\"\n        >\n          <Icon name=\"lucide:user-circle\" class=\"text-primary size-6\" />\n        </div>\n        <h1 class=\"text-2xl font-bold tracking-tight\">Account Login</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">Access your dashboard</p>\n      </div>\n\n      <form @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-4\">\n          <UiVeeInput\n            label=\"Email Address\"\n            type=\"email\"\n            name=\"email\"\n            placeholder=\"you@example.com\"\n          />\n          <UiVeePasswordInput label=\"Password\" name=\"password\" placeholder=\"Enter your password\" />\n          <div class=\"text-right\">\n            <NuxtLink\n              class=\"text-primary text-sm font-medium underline-offset-2 hover:underline\"\n              to=\"#\"\n              >Forgot password?</NuxtLink\n            >\n          </div>\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Sign in\" />\n        </fieldset>\n      </form>\n\n      <div class=\"mt-6 text-center\">\n        <p class=\"text-muted-foreground text-sm\">\n          New user?\n          <NuxtLink class=\"text-primary font-semibold underline-offset-2 hover:underline\" to=\"#\"\n            >Create an account</NuxtLink\n          >\n        </p>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Account Login\",\n    description: \"Access your dashboard by logging in to your account.\",\n  });\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email Address\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n</script>\n","category":"Login","description":"Minimal login card with an icon header. Features: Centered card, circular icon, password toggle, forgot password link, create account footer","path":"Login/BlockLoginMinimal.vue","components":["button","vee-input","vee-password-input"]},{"name":"Login Simple","fileName":"BlockLoginSimple.vue","file":"<template>\n  <!--\n    Simple login form\n    Features: Email and password with show and hide toggle, forgot password link beside the password field, create account link, validation\n  -->\n  <div class=\"flex min-h-screen items-center justify-center px-5 py-12\">\n    <div class=\"w-full max-w-sm\">\n      <div class=\"space-y-1.5\">\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Log in</h1>\n        <p class=\"text-muted-foreground\">Enter your email and password to continue.</p>\n      </div>\n\n      <form class=\"mt-8\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n          <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n          <div class=\"grid gap-2\">\n            <UiVeePasswordInput\n              label=\"Password\"\n              name=\"password\"\n              placeholder=\"Enter your password\"\n            />\n            <NuxtLink\n              class=\"text-muted-foreground hover:text-foreground justify-self-end text-sm underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Forgot password?\n            </NuxtLink>\n          </div>\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n        </fieldset>\n      </form>\n\n      <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n        Don't have an account?\n        <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n          Create account\n        </NuxtLink>\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Log in\",\n    description: \"Enter your email and password to log in.\",\n  });\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n</script>\n","category":"Login","description":"Simple login form. Features: Email and password with show and hide toggle, forgot password link beside the password field, create account link, validation","path":"Login/BlockLoginSimple.vue","components":["button","vee-input","vee-password-input"]},{"name":"Login Simple Card","fileName":"BlockLoginSimpleCard.vue","file":"<template>\n  <!--\n    Login form inside a card\n    Features: Centered card on a soft background, logo header, password toggle, forgot password link beside the field, create account footer\n  -->\n  <div class=\"bg-muted/40 flex min-h-screen items-center justify-center px-5 py-12\">\n    <UiCard class=\"w-full max-w-md shadow-sm\">\n      <UiCardHeader class=\"justify-items-center text-center\">\n        <svg\n          class=\"fill-primary mb-3 h-8\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        <UiCardTitle class=\"text-2xl\">Welcome back</UiCardTitle>\n        <UiCardDescription>Log in to your account to continue.</UiCardDescription>\n      </UiCardHeader>\n      <UiCardContent>\n        <form @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n            <div class=\"grid gap-2\">\n              <UiVeePasswordInput\n                label=\"Password\"\n                name=\"password\"\n                placeholder=\"Enter your password\"\n              />\n              <NuxtLink\n                class=\"text-muted-foreground hover:text-foreground justify-self-end text-sm underline-offset-4 hover:underline\"\n                to=\"#\"\n              >\n                Forgot password?\n              </NuxtLink>\n            </div>\n            <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n          </fieldset>\n        </form>\n      </UiCardContent>\n      <UiCardFooter class=\"justify-center border-t\">\n        <p class=\"text-muted-foreground text-sm\">\n          Don't have an account?\n          <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n            Create account\n          </NuxtLink>\n        </p>\n      </UiCardFooter>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n</script>\n","category":"Login","description":"Login form inside a card. Features: Centered card on a soft background, logo header, password toggle, forgot password link beside the field, create account footer","path":"Login/BlockLoginSimpleCard.vue","components":["button","card","vee-input","vee-password-input"]},{"name":"Login Simple Remember","fileName":"BlockLoginSimpleRemember.vue","file":"<template>\n  <!--\n    Login form with remember me\n    Features: Logo header, password toggle, remember me checkbox with forgot password link on the same row\n  -->\n  <div class=\"flex min-h-screen items-center justify-center px-5 py-12\">\n    <div class=\"w-full max-w-[360px] px-5\">\n      <svg\n        class=\"fill-primary my-6 h-8\"\n        viewBox=\"0 0 53 44\"\n        fill=\"none\"\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <path\n          d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          class=\"ccustom\"\n        />\n      </svg>\n\n      <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Log in</h1>\n      <p class=\"text-muted-foreground mt-1\">Enter your email & password to log in.</p>\n\n      <form class=\"mt-10\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n          <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"john@example.com\" />\n          <UiVeePasswordInput label=\"Password\" name=\"password\" placeholder=\"Enter your password\" />\n          <div class=\"flex items-start justify-between\">\n            <UiVeeCheckbox label=\"Remember me\" name=\"remember\" />\n            <NuxtLink class=\"text-primary text-sm font-medium underline underline-offset-2\" to=\"#\"\n              >Forgot password?</NuxtLink\n            >\n          </div>\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n        </fieldset>\n      </form>\n\n      <p class=\"text-muted-foreground mt-6 text-center text-sm\">\n        Don't have an account?\n        <NuxtLink class=\"text-primary font-semibold underline-offset-2 hover:underline\" to=\"#\"\n          >Create account</NuxtLink\n        >\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Log in\",\n    description: \"Enter your email & password to log in.\",\n  });\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n    remember: boolean().label(\"Remember me\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n</script>\n","category":"Login","description":"Login form with remember me. Features: Logo header, password toggle, remember me checkbox with forgot password link on the same row","path":"Login/BlockLoginSimpleRemember.vue","components":["button","vee-checkbox","vee-input","vee-password-input"]},{"name":"Login Simple Social","fileName":"BlockLoginSimpleSocial.vue","file":"<template>\n  <!--\n    Login form with social sign in below the form\n    Features: Email and password, divider, Google and GitHub buttons side by side, forgot password link beside the field\n  -->\n  <div class=\"flex min-h-screen items-center justify-center px-5 py-12\">\n    <div class=\"w-full max-w-sm\">\n      <div class=\"space-y-1.5\">\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Log in</h1>\n        <p class=\"text-muted-foreground\">Welcome back. Enter your details below.</p>\n      </div>\n\n      <form class=\"mt-8\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n          <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n          <div class=\"grid gap-2\">\n            <UiVeePasswordInput\n              label=\"Password\"\n              name=\"password\"\n              placeholder=\"Enter your password\"\n            />\n            <NuxtLink\n              class=\"text-muted-foreground hover:text-foreground justify-self-end text-sm underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Forgot password?\n            </NuxtLink>\n          </div>\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n          <UiDivider label=\"or continue with\" />\n          <div class=\"grid grid-cols-2 gap-3\">\n            <UiButton variant=\"outline\" type=\"button\" @click=\"social('Google')\">\n              <Icon class=\"size-4\" name=\"logos:google-icon\" />\n              Google\n            </UiButton>\n            <UiButton variant=\"outline\" type=\"button\" @click=\"social('GitHub')\">\n              <Icon class=\"size-4\" name=\"mdi:github\" />\n              GitHub\n            </UiButton>\n          </div>\n        </fieldset>\n      </form>\n\n      <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n        Don't have an account?\n        <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n          Create account\n        </NuxtLink>\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n\n  const social = (provider: string) => {\n    useSonner(`Continue with ${provider}`, {\n      description: \"Wire this up to your auth provider.\",\n    });\n  };\n</script>\n","category":"Login","description":"Login form with social sign in below the form. Features: Email and password, divider, Google and GitHub buttons side by side, forgot password link beside the field","path":"Login/BlockLoginSimpleSocial.vue","components":["button","divider","vee-input","vee-password-input"]},{"name":"Login Simple Social Image","fileName":"BlockLoginSimpleSocialImage.vue","file":"<template>\n  <!--\n    Split screen login with a full height image\n    Features: Form on the left with logo and footer, image with caption on the right that hides on mobile, social sign in, password toggle\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-2\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Welcome back</h1>\n            <p class=\"text-muted-foreground\">Log in to pick up where you left off.</p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n              <div class=\"grid gap-2\">\n                <UiVeePasswordInput\n                  label=\"Password\"\n                  name=\"password\"\n                  placeholder=\"Enter your password\"\n                />\n                <NuxtLink\n                  class=\"text-muted-foreground hover:text-foreground justify-self-end text-sm underline-offset-4 hover:underline\"\n                  to=\"#\"\n                >\n                  Forgot password?\n                </NuxtLink>\n              </div>\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n              <UiDivider label=\"OR\" />\n              <UiButton variant=\"outline\" type=\"button\" @click=\"signInWithGoogle()\">\n                <Icon class=\"size-4\" name=\"logos:google-icon\" />\n                Continue with Google\n              </UiButton>\n            </fieldset>\n          </form>\n\n          <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n            Don't have an account?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Create account\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div class=\"relative hidden lg:block\">\n      <img\n        src=\"https://images.unsplash.com/photo-1512551980832-13df02babc9e?q=60&w=2864&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n        alt=\"Abstract light lines on a dark ceiling\"\n        class=\"absolute inset-0 size-full object-cover\"\n      />\n      <div class=\"absolute inset-0 bg-linear-to-t from-black/70 via-black/10 to-transparent\" />\n      <div class=\"absolute inset-x-0 bottom-0 p-10 text-white\">\n        <p class=\"max-w-md text-lg font-medium\">Build the interface once, own the code forever.</p>\n        <p class=\"mt-2 text-sm text-white/70\">Copy, paste and make it yours.</p>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Log in\",\n    description: \"Enter your email and password to log in.\",\n  });\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n\n  const signInWithGoogle = () => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in with Google.\",\n    });\n  };\n</script>\n","category":"Login","description":"Split screen login with a full height image. Features: Form on the left with logo and footer, image with caption on the right that hides on mobile, social sign in, password toggle","path":"Login/BlockLoginSimpleSocialImage.vue","components":["button","divider","vee-input","vee-password-input"]},{"name":"Login Split Carousel","fileName":"BlockLoginSplitCarousel.vue","file":"<template>\n  <!--\n    Split screen login with a rotating feature panel\n    Features: Form on the left, brand panel on the right that cycles through highlights every few seconds with clickable dots, pauses on hover, hides on mobile\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-2\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Welcome back</h1>\n            <p class=\"text-muted-foreground\">Enter your details to access your account.</p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n              <UiVeePasswordInput\n                label=\"Password\"\n                name=\"password\"\n                placeholder=\"Enter your password\"\n              />\n              <div class=\"flex items-center justify-between\">\n                <UiVeeCheckbox label=\"Remember me\" name=\"remember\" />\n                <NuxtLink\n                  class=\"text-muted-foreground hover:text-foreground text-sm underline-offset-4 hover:underline\"\n                  to=\"#\"\n                >\n                  Forgot password?\n                </NuxtLink>\n              </div>\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n            </fieldset>\n          </form>\n\n          <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n            Don't have an account?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Create account\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div\n      class=\"bg-primary text-primary-foreground relative hidden flex-col items-center justify-center overflow-hidden p-12 lg:flex\"\n      @mouseenter=\"paused = true\"\n      @mouseleave=\"paused = false\"\n    >\n      <div\n        class=\"bg-primary-foreground/10 absolute -top-24 -right-24 size-96 rounded-full blur-3xl\"\n      />\n      <div\n        class=\"bg-primary-foreground/10 absolute -bottom-32 -left-16 size-80 rounded-full blur-3xl\"\n      />\n\n      <div class=\"relative h-64 w-full max-w-md\">\n        <div\n          v-for=\"(slide, i) in slides\"\n          :key=\"slide.title\"\n          class=\"absolute inset-0 flex flex-col items-center text-center transition-all duration-700\"\n          :class=\"\n            i === active\n              ? 'translate-y-0 opacity-100'\n              : 'pointer-events-none translate-y-3 opacity-0'\n          \"\n          :aria-hidden=\"i !== active\"\n        >\n          <div\n            class=\"bg-primary-foreground/15 mb-6 flex size-16 items-center justify-center rounded-2xl\"\n          >\n            <Icon :name=\"slide.icon\" class=\"size-8\" />\n          </div>\n          <h2 class=\"text-2xl font-bold tracking-tight text-balance\">{{ slide.title }}</h2>\n          <p class=\"text-primary-foreground/70 mt-3 text-balance\">{{ slide.description }}</p>\n        </div>\n      </div>\n\n      <div class=\"relative mt-6 flex items-center gap-2\">\n        <button\n          v-for=\"(slide, i) in slides\"\n          :key=\"slide.title\"\n          type=\"button\"\n          class=\"h-2 rounded-full transition-all\"\n          :class=\"i === active ? 'bg-primary-foreground w-6' : 'bg-primary-foreground/30 w-2'\"\n          :aria-label=\"`Show ${slide.title}`\"\n          :aria-current=\"i === active\"\n          @click=\"active = i\"\n        />\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const slides = [\n    {\n      icon: \"lucide:blocks\",\n      title: \"Components you own\",\n      description: \"Copy the code into your project and change anything. No black boxes.\",\n    },\n    {\n      icon: \"lucide:shield-check\",\n      title: \"Accessible by default\",\n      description: \"Built on Reka UI, so keyboard and screen reader support comes included.\",\n    },\n    {\n      icon: \"lucide:palette\",\n      title: \"Themeable in minutes\",\n      description: \"Swap a few design tokens and the whole interface follows, light or dark.\",\n    },\n  ];\n\n  const active = ref(0);\n  const paused = ref(false);\n\n  let timer: ReturnType<typeof setInterval> | undefined;\n  onMounted(() => {\n    timer = setInterval(() => {\n      if (!paused.value) active.value = (active.value + 1) % slides.length;\n    }, 4500);\n  });\n  onBeforeUnmount(() => clearInterval(timer));\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n    remember: boolean().label(\"Remember me\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n</script>\n","category":"Login","description":"Split screen login with a rotating feature panel. Features: Form on the left, brand panel on the right that cycles through highlights every few seconds with clickable dots, pauses on hover, hides on mobile","path":"Login/BlockLoginSplitCarousel.vue","components":["button","vee-checkbox","vee-input","vee-password-input"]},{"name":"Login Split Mockup","fileName":"BlockLoginSplitMockup.vue","file":"<template>\n  <!--\n    Split screen login with a product mockup\n    Features: Form on the left, brand panel on the right with a partial dashboard preview built from cards, headline and supporting text, panel hides on mobile\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-[minmax(0,1fr)_minmax(0,1.15fr)]\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Log in</h1>\n            <p class=\"text-muted-foreground\">Good to see you again.</p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n              <div class=\"grid gap-2\">\n                <UiVeePasswordInput\n                  label=\"Password\"\n                  name=\"password\"\n                  placeholder=\"Enter your password\"\n                />\n                <NuxtLink\n                  class=\"text-muted-foreground hover:text-foreground justify-self-end text-sm underline-offset-4 hover:underline\"\n                  to=\"#\"\n                >\n                  Forgot password?\n                </NuxtLink>\n              </div>\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n              <UiDivider label=\"or continue with\" />\n              <div class=\"grid grid-cols-2 gap-3\">\n                <UiButton variant=\"outline\" type=\"button\" @click=\"social('Google')\">\n                  <Icon class=\"size-4\" name=\"logos:google-icon\" />\n                  Google\n                </UiButton>\n                <UiButton variant=\"outline\" type=\"button\" @click=\"social('GitHub')\">\n                  <Icon class=\"size-4\" name=\"mdi:github\" />\n                  GitHub\n                </UiButton>\n              </div>\n            </fieldset>\n          </form>\n\n          <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n            New here?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Create an account\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div\n      class=\"bg-primary text-primary-foreground relative hidden flex-col justify-between overflow-hidden pt-16 pl-14 lg:flex\"\n    >\n      <div\n        class=\"bg-primary-foreground/10 absolute -top-20 -left-20 size-80 rounded-full blur-3xl\"\n      />\n      <div class=\"relative max-w-md pr-14\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance\">\n          Everything your team ships, in one place.\n        </h2>\n        <p class=\"text-primary-foreground/70 mt-3\">\n          Track progress, review activity and keep every project moving without the busywork.\n        </p>\n      </div>\n\n      <div\n        class=\"bg-background text-foreground relative mt-12 ml-0 rounded-tl-2xl border shadow-2xl\"\n      >\n        <div class=\"flex items-center gap-1.5 border-b px-4 py-3\">\n          <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n          <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n          <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n          <span class=\"text-muted-foreground ml-3 text-xs\">Overview</span>\n        </div>\n        <div class=\"grid gap-4 p-5\">\n          <div class=\"grid grid-cols-3 gap-3\">\n            <div v-for=\"stat in stats\" :key=\"stat.label\" class=\"rounded-lg border p-3\">\n              <p class=\"text-muted-foreground text-xs\">{{ stat.label }}</p>\n              <p class=\"mt-1 text-lg font-semibold\">{{ stat.value }}</p>\n              <p class=\"text-xs\" :class=\"stat.up ? 'text-green-600' : 'text-red-500'\">\n                {{ stat.change }}\n              </p>\n            </div>\n          </div>\n          <div class=\"rounded-lg border p-4\">\n            <div class=\"flex items-center justify-between\">\n              <p class=\"text-sm font-medium\">Weekly activity</p>\n              <span class=\"text-muted-foreground text-xs\">Last 7 days</span>\n            </div>\n            <div class=\"mt-4 flex h-28 items-end gap-3\">\n              <div\n                v-for=\"(bar, i) in bars\"\n                :key=\"i\"\n                class=\"bg-primary/80 flex-1 rounded-t\"\n                :style=\"{ height: `${bar}%` }\"\n              />\n            </div>\n          </div>\n          <div class=\"grid gap-2 pb-6\">\n            <div v-for=\"row in rows\" :key=\"row.name\" class=\"flex items-center gap-3 text-sm\">\n              <span class=\"bg-muted flex size-7 items-center justify-center rounded-full text-xs\">\n                {{ row.name[0] }}\n              </span>\n              <span class=\"flex-1 font-medium\">{{ row.name }}</span>\n              <span class=\"text-muted-foreground text-xs\">{{ row.when }}</span>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const stats = [\n    { label: \"Revenue\", value: \"$48.2k\", change: \"+12.4%\", up: true },\n    { label: \"Active users\", value: \"2,840\", change: \"+8.1%\", up: true },\n    { label: \"Churn\", value: \"1.9%\", change: \"-0.4%\", up: false },\n  ];\n  const bars = [38, 55, 42, 70, 62, 88, 74];\n  const rows = [\n    { name: \"Priya shipped v2.4\", when: \"2m ago\" },\n    { name: \"Liam closed 6 issues\", when: \"1h ago\" },\n    { name: \"Sam invited 3 teammates\", when: \"3h ago\" },\n  ];\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n\n  const social = (provider: string) => {\n    useSonner(`Continue with ${provider}`, {\n      description: \"Wire this up to your auth provider.\",\n    });\n  };\n</script>\n","category":"Login","description":"Split screen login with a product mockup. Features: Form on the left, brand panel on the right with a partial dashboard preview built from cards, headline and supporting text, panel hides on mobile","path":"Login/BlockLoginSplitMockup.vue","components":["button","divider","vee-input","vee-password-input"]},{"name":"Login Split Quote","fileName":"BlockLoginSplitQuote.vue","file":"<template>\n  <!--\n    Split screen login with a customer quote\n    Features: Form on the left, brand colored panel on the right with a testimonial, avatar and company, panel hides on mobile\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-2\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Welcome back</h1>\n            <p class=\"text-muted-foreground\">Log in to your account to continue.</p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n              <UiVeePasswordInput\n                label=\"Password\"\n                name=\"password\"\n                placeholder=\"Enter your password\"\n              />\n              <div class=\"flex items-center justify-between\">\n                <UiVeeCheckbox label=\"Remember me\" name=\"remember\" />\n                <NuxtLink\n                  class=\"text-muted-foreground hover:text-foreground text-sm underline-offset-4 hover:underline\"\n                  to=\"#\"\n                >\n                  Forgot password?\n                </NuxtLink>\n              </div>\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Log in\" />\n              <UiButton variant=\"outline\" type=\"button\" @click=\"signInWithGoogle()\">\n                <Icon class=\"size-4\" name=\"logos:google-icon\" />\n                Log in with Google\n              </UiButton>\n            </fieldset>\n          </form>\n\n          <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n            Don't have an account?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Create account\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div\n      class=\"bg-primary text-primary-foreground relative hidden flex-col justify-end overflow-hidden p-12 lg:flex\"\n    >\n      <div\n        class=\"bg-primary-foreground/10 absolute -top-24 -right-24 size-96 rounded-full blur-3xl\"\n      />\n      <div\n        class=\"bg-primary-foreground/10 absolute -bottom-32 -left-16 size-80 rounded-full blur-3xl\"\n      />\n      <Icon name=\"lucide:quote\" class=\"text-primary-foreground/30 relative mb-6 size-10\" />\n      <blockquote class=\"relative max-w-xl text-2xl leading-snug font-medium text-balance\">\n        {{ quote.text }}\n      </blockquote>\n      <figcaption class=\"relative mt-8 flex items-center gap-3\">\n        <UiAvatar class=\"size-11\" :src=\"quote.avatar\" :fallback=\"quote.initials\" />\n        <div>\n          <p class=\"font-semibold\">{{ quote.name }}</p>\n          <p class=\"text-primary-foreground/70 text-sm\">{{ quote.role }}</p>\n        </div>\n      </figcaption>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const quote = {\n    text: \"We rebuilt our whole dashboard in a weekend. Every piece was already there and every piece was ours to change.\",\n    name: \"Maya Chen\",\n    role: \"Head of Product, Northwind\",\n    initials: \"MC\",\n    avatar: \"https://i.pravatar.cc/120?img=47\",\n  };\n\n  const LoginSchema = object({\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n    remember: boolean().label(\"Remember me\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof LoginSchema>>({\n    validationSchema: LoginSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in.\",\n    });\n  });\n\n  const signInWithGoogle = () => {\n    useSonner(\"Logged in successfully!\", {\n      description: \"You have successfully logged in with Google.\",\n    });\n  };\n</script>\n","category":"Login","description":"Split screen login with a customer quote. Features: Form on the left, brand colored panel on the right with a testimonial, avatar and company, panel hides on mobile","path":"Login/BlockLoginSplitQuote.vue","components":["avatar","button","vee-checkbox","vee-input","vee-password-input"]},{"name":"Maintenance 1","fileName":"BlockMaintenance1.vue","file":"<template>\n  <!--\n    Maintenance mode page\n    Features: Centered notice with progress steps, estimated return time, check again button with last checked time, email me when we are back form\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl text-center\">\n      <span class=\"bg-primary/10 text-primary mx-auto grid size-16 place-items-center rounded-2xl\">\n        <Icon name=\"lucide:wrench\" class=\"size-8\" />\n      </span>\n      <h1 class=\"mt-6 text-3xl font-bold tracking-tight lg:text-4xl\">{{ title }}</h1>\n      <p class=\"text-muted-foreground mt-3 text-lg\">{{ description }}</p>\n\n      <ol class=\"mx-auto mt-8 max-w-sm space-y-3 text-left\" aria-label=\"Maintenance progress\">\n        <li v-for=\"step in steps\" :key=\"step.label\" class=\"flex items-center gap-3 text-sm\">\n          <Icon\n            :name=\"\n              step.status === 'done'\n                ? 'lucide:circle-check'\n                : step.status === 'active'\n                  ? 'lucide:loader-circle'\n                  : 'lucide:circle'\n            \"\n            class=\"size-5 shrink-0\"\n            :class=\"[\n              step.status === 'done' ? 'text-primary' : 'text-muted-foreground',\n              step.status === 'active' ? 'text-primary motion-safe:animate-spin' : '',\n            ]\"\n          />\n          <span :class=\"step.status === 'pending' ? 'text-muted-foreground' : 'font-medium'\">{{\n            step.label\n          }}</span>\n          <span class=\"sr-only\">{{ step.status }}</span>\n        </li>\n      </ol>\n\n      <div class=\"bg-muted/50 mt-8 rounded-xl p-4 text-sm\">\n        <p>Estimated return: <span class=\"font-semibold\">{{ eta }}</span></p>\n        <p class=\"text-muted-foreground mt-1\" role=\"status\">{{ lastChecked }}</p>\n        <UiButton variant=\"outline\" size=\"sm\" class=\"mt-3\" :disabled=\"checking\" @click=\"check\">\n          <Icon\n            name=\"lucide:refresh-cw\"\n            class=\"size-4\"\n            :class=\"checking ? 'motion-safe:animate-spin' : ''\"\n          />{{ checking ? \"Checking\" : \"Check again\" }}\n        </UiButton>\n      </div>\n\n      <form\n        v-if=\"!done\"\n        class=\"mx-auto mt-8 max-w-md text-left\"\n        novalidate\n        @submit.prevent=\"submit\"\n      >\n        <UiLabel for=\"maint-email\">Email me when we are back</UiLabel>\n        <div class=\"mt-2 flex flex-col gap-2 sm:flex-row\">\n          <UiInput\n            id=\"maint-email\"\n            v-model=\"email\"\n            type=\"email\"\n            autocomplete=\"email\"\n            placeholder=\"you@example.com\"\n            class=\"flex-1\"\n            :aria-invalid=\"!!error\"\n          />\n          <UiButton type=\"submit\">Notify me</UiButton>\n        </div>\n        <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n      </form>\n      <p\n        v-else\n        class=\"mt-8 flex items-center justify-center gap-2 text-sm font-medium\"\n        role=\"status\"\n      >\n        <Icon name=\"lucide:bell-ring\" class=\"text-primary size-4\" />\n        We will email {{ email.trim() }} as soon as we are back.\n      </p>\n\n      <p class=\"text-muted-foreground mt-8 text-sm\">\n        Questions? Read the\n        <a href=\"#status\" class=\"text-primary underline underline-offset-4\">status page</a> or email\n        <a href=\"mailto:support@example.com\" class=\"text-primary underline underline-offset-4\"\n          >support@example.com</a\n        >.\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Step = { label: string; status: \"done\" | \"active\" | \"pending\" };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      eta?: string;\n      steps?: Step[];\n    }>(),\n    {\n      title: \"We are making things better\",\n      description:\n        \"The app is down for planned maintenance. Your data is safe and nothing is lost.\",\n      eta: \"Today at 14:00 UTC\",\n      steps: () => [\n        { label: \"Back up your data\", status: \"done\" },\n        { label: \"Upgrade the database\", status: \"active\" },\n        { label: \"Run final checks\", status: \"pending\" },\n      ],\n    }\n  );\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const done = ref(false);\n  const checking = ref(false);\n  const checks = ref(0);\n\n  const lastChecked = computed(() =>\n    checks.value\n      ? `Checked just now. Still working on it (${checks.value} ${checks.value === 1 ? \"check\" : \"checks\"}).`\n      : \"We check automatically every minute.\"\n  );\n\n  function check() {\n    checking.value = true;\n    setTimeout(() => {\n      checks.value += 1;\n      checking.value = false;\n    }, 700);\n  }\n\n  function submit() {\n    if (!/^\\S+@\\S+\\.\\S+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    done.value = true;\n  }\n</script>\n","category":"Maintenance","description":"Maintenance mode page. Features: Centered notice with progress steps, estimated return time, check again button with last checked time, email me when we are back form","path":"Utility/Maintenance/BlockMaintenance1.vue","components":["button","container","input","label"]},{"name":"Maintenance 2","fileName":"BlockMaintenance2.vue","file":"<template>\n  <!--\n    Scheduled downtime notice\n    Features: Maintenance window with start, end and duration, time until it starts, affected services with impact badges, notify me switch, copy details button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-2xl\">\n      <UiCardHeader>\n        <div class=\"flex flex-wrap items-center gap-2\">\n          <UiBadge variant=\"soft\" color=\"warning\" shape=\"pill\">Scheduled maintenance</UiBadge>\n          <span class=\"text-muted-foreground text-sm\">{{ until }}</span>\n        </div>\n        <UiCardTitle class=\"mt-2 text-2xl\">{{ title }}</UiCardTitle>\n        <UiCardDescription>{{ description }}</UiCardDescription>\n      </UiCardHeader>\n\n      <UiCardContent class=\"space-y-6\">\n        <dl class=\"grid gap-3 sm:grid-cols-3\">\n          <div v-for=\"item in windowFacts\" :key=\"item.label\" class=\"rounded-lg border p-3\">\n            <dt class=\"text-muted-foreground text-xs tracking-wide uppercase\">{{ item.label }}</dt>\n            <dd class=\"mt-1 text-sm font-semibold\">{{ item.value }}</dd>\n          </div>\n        </dl>\n\n        <div>\n          <h3 class=\"text-sm font-medium\">Affected services</h3>\n          <ul class=\"mt-3 divide-y rounded-lg border\">\n            <li\n              v-for=\"service in services\"\n              :key=\"service.name\"\n              class=\"flex items-center justify-between gap-3 p-3 text-sm\"\n            >\n              <span class=\"font-medium\">{{ service.name }}</span>\n              <UiBadge\n                variant=\"soft\"\n                size=\"sm\"\n                :color=\"service.impact === 'Full outage' ? 'red' : 'yellow'\"\n                >{{ service.impact }}</UiBadge\n              >\n            </li>\n          </ul>\n        </div>\n\n        <div class=\"flex items-center justify-between gap-4 rounded-lg border p-3\">\n          <div>\n            <UiLabel for=\"downtime-notify\" class=\"text-sm font-medium\"\n              >Remind me 1 hour before</UiLabel\n            >\n            <p class=\"text-muted-foreground text-xs\">\n              We will send an email to your account address.\n            </p>\n          </div>\n          <UiSwitch id=\"downtime-notify\" v-model=\"notify\" />\n        </div>\n        <p v-if=\"notify\" class=\"text-sm\" role=\"status\">\n          <Icon name=\"lucide:bell-ring\" class=\"text-primary mr-1 inline size-4\" />\n          Reminder on. We will email you at {{ remindAt }}.\n        </p>\n      </UiCardContent>\n\n      <UiCardFooter class=\"gap-2\">\n        <UiButton variant=\"outline\" @click=\"copy(summary)\">\n          <Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />\n          {{ copied ? \"Copied\" : \"Copy details\" }}\n        </UiButton>\n        <UiButton variant=\"ghost\">View status page</UiButton>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Service = { name: string; impact: \"Full outage\" | \"Degraded\" };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      start?: string;\n      end?: string;\n      now?: string;\n      services?: Service[];\n    }>(),\n    {\n      title: \"Database upgrade\",\n      description:\n        \"We are moving to a faster database cluster. Expect a short outage while we switch over.\",\n      start: \"2026-10-20T02:00:00Z\",\n      end: \"2026-10-20T04:30:00Z\",\n      now: \"2026-10-18T09:00:00Z\",\n      services: () => [\n        { name: \"Web app\", impact: \"Full outage\" },\n        { name: \"Public API\", impact: \"Full outage\" },\n        { name: \"Webhooks\", impact: \"Degraded\" },\n        { name: \"Email notifications\", impact: \"Degraded\" },\n      ],\n    }\n  );\n\n  const notify = ref(false);\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  const format = (value: string | number) =>\n    new Intl.DateTimeFormat(\"en-US\", {\n      dateStyle: \"medium\",\n      timeStyle: \"short\",\n      timeZone: \"UTC\",\n    }).format(new Date(value)) + \" UTC\";\n\n  const minutes = computed(() =>\n    Math.round((Date.parse(props.end) - Date.parse(props.start)) / 60000)\n  );\n  const duration = computed(() => {\n    const h = Math.floor(minutes.value / 60);\n    const m = minutes.value % 60;\n    return [h ? `${h} ${h === 1 ? \"hour\" : \"hours\"}` : \"\", m ? `${m} min` : \"\"]\n      .filter(Boolean)\n      .join(\" \");\n  });\n\n  const windowFacts = computed(() => [\n    { label: \"Starts\", value: format(props.start) },\n    { label: \"Ends\", value: format(props.end) },\n    { label: \"Duration\", value: duration.value },\n  ]);\n\n  const until = computed(() => {\n    const total = Math.round((Date.parse(props.start) - Date.parse(props.now)) / 60000);\n    if (total <= 0) return \"In progress\";\n    const d = Math.floor(total / 1440);\n    const h = Math.floor((total % 1440) / 60);\n    return `Starts in ${d ? `${d} ${d === 1 ? \"day\" : \"days\"} ` : \"\"}${h} ${h === 1 ? \"hour\" : \"hours\"}`;\n  });\n\n  const remindAt = computed(() => format(Date.parse(props.start) - 60 * 60000));\n\n  const summary = computed(\n    () =>\n      `${props.title}: ${format(props.start)} to ${format(props.end)} (${duration.value}). Affected: ${props.services.map((s) => s.name).join(\", \")}.`\n  );\n</script>\n","category":"Maintenance","description":"Scheduled downtime notice. Features: Maintenance window with start, end and duration, time until it starts, affected services with impact badges, notify me switch, copy details button","path":"Utility/Maintenance/BlockMaintenance2.vue","components":["badge","button","card","container","label","switch"]},{"name":"Maintenance 3","fileName":"BlockMaintenance3.vue","file":"<template>\n  <!--\n    Offline page\n    Features: Connection status that follows the browser, retry button with attempt count, recovered state, list of pages available offline, tips for reconnecting\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl text-center\">\n      <span\n        class=\"mx-auto grid size-16 place-items-center rounded-2xl\"\n        :class=\"\n          connected\n            ? 'bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300'\n            : 'bg-muted text-muted-foreground'\n        \"\n      >\n        <Icon :name=\"connected ? 'lucide:wifi' : 'lucide:wifi-off'\" class=\"size-8\" />\n      </span>\n\n      <div role=\"status\" aria-live=\"polite\">\n        <h1 class=\"mt-6 text-3xl font-bold tracking-tight lg:text-4xl\">\n          {{ connected ? \"You are back online\" : \"You are offline\" }}\n        </h1>\n        <p class=\"text-muted-foreground mt-3 text-lg\">\n          {{\n            connected\n              ? \"Your changes are syncing now. Nothing was lost.\"\n              : \"Check your connection. Changes you make are saved on this device and sync when you reconnect.\"\n          }}\n        </p>\n        <p v-if=\"!connected && attempts\" class=\"text-muted-foreground mt-2 text-sm\">\n          Still offline after {{ attempts }} {{ attempts === 1 ? \"try\" : \"tries\" }}.\n        </p>\n      </div>\n\n      <div class=\"mt-6 flex flex-wrap justify-center gap-2\">\n        <UiButton v-if=\"!connected\" :disabled=\"retrying\" @click=\"retry\">\n          <Icon\n            name=\"lucide:refresh-cw\"\n            class=\"size-4\"\n            :class=\"retrying ? 'motion-safe:animate-spin' : ''\"\n          />{{ retrying ? \"Trying\" : \"Try again\" }}\n        </UiButton>\n        <UiButton v-else @click=\"reset\">Continue</UiButton>\n      </div>\n\n      <div class=\"mt-10 text-left\">\n        <h2 class=\"text-sm font-medium\">Available offline</h2>\n        <ul class=\"mt-3 divide-y rounded-xl border\">\n          <li v-for=\"page in pages\" :key=\"page.title\" class=\"flex items-center gap-3 p-3\">\n            <span class=\"bg-muted grid size-9 shrink-0 place-items-center rounded-lg\"\n              ><Icon :name=\"page.icon\" class=\"size-4\"\n            /></span>\n            <span class=\"min-w-0 flex-1 text-sm\">\n              <span class=\"block truncate font-medium\">{{ page.title }}</span>\n              <span class=\"text-muted-foreground block text-xs\">{{ page.saved }}</span>\n            </span>\n            <UiButton variant=\"ghost\" size=\"sm\">Open</UiButton>\n          </li>\n        </ul>\n      </div>\n\n      <ul v-if=\"!connected\" class=\"text-muted-foreground mt-8 space-y-2 text-left text-sm\">\n        <li v-for=\"tip in tips\" :key=\"tip\" class=\"flex gap-2\">\n          <Icon name=\"lucide:lightbulb\" class=\"mt-0.5 size-4 shrink-0\" />{{ tip }}\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Page = { icon: string; title: string; saved: string };\n\n  const props = withDefaults(\n    defineProps<{\n      succeedAfter?: number;\n      pages?: Page[];\n      tips?: string[];\n    }>(),\n    {\n      succeedAfter: 3,\n      pages: () => [\n        { icon: \"lucide:layout-dashboard\", title: \"Dashboard\", saved: \"Saved 4 minutes ago\" },\n        { icon: \"lucide:file-text\", title: \"Q4 planning notes\", saved: \"Saved 12 minutes ago\" },\n        { icon: \"lucide:users\", title: \"Team directory\", saved: \"Saved yesterday\" },\n      ],\n      tips: () => [\n        \"Turn airplane mode off and check your Wi-Fi.\",\n        \"Move closer to your router or switch networks.\",\n        \"Reload the page once the connection returns.\",\n      ],\n    }\n  );\n\n  // The page starts offline. It recovers when the browser reports a connection after a retry, or\n  // after `succeedAfter` retries, which stands in for a real connectivity check in demos.\n  const online = useOnline();\n  const attempts = ref(0);\n  const retrying = ref(false);\n  const recovered = ref(false);\n\n  const connected = computed(() => recovered.value);\n\n  watch(online, (value) => {\n    if (value && attempts.value > 0) recovered.value = true;\n  });\n\n  function retry() {\n    retrying.value = true;\n    setTimeout(() => {\n      attempts.value += 1;\n      retrying.value = false;\n      if (attempts.value >= props.succeedAfter) recovered.value = true;\n    }, 700);\n  }\n\n  function reset() {\n    recovered.value = false;\n    attempts.value = 0;\n  }\n</script>\n","category":"Maintenance","description":"Offline page. Features: Connection status that follows the browser, retry button with attempt count, recovered state, list of pages available offline, tips for reconnecting","path":"Utility/Maintenance/BlockMaintenance3.vue","components":["button","container"]},{"name":"Maintenance 4","fileName":"BlockMaintenance4.vue","file":"<template>\n  <!--\n    Rate limited page\n    Features: 429 notice with a countdown ring, usage against the limit, try again button that unlocks when the timer ends, tips and upgrade link\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl text-center\">\n      <p class=\"text-primary text-sm font-semibold tracking-wide\">429</p>\n      <h1 class=\"mt-2 text-3xl font-bold tracking-tight lg:text-4xl\">Slow down for a moment</h1>\n      <p class=\"text-muted-foreground mt-3 text-lg\">\n        You sent more requests than your plan allows. We paused new ones to keep things fast for\n        everyone.\n      </p>\n\n      <div class=\"mt-8 flex justify-center\">\n        <div class=\"relative grid size-36 place-items-center\">\n          <UiCircularProgress\n            :progress=\"remaining / Math.max(1, retryAfter)\"\n            :size=\"144\"\n            :radius=\"64\"\n            :stroke-width=\"8\"\n          />\n          <p class=\"absolute text-center\" role=\"timer\" :aria-label=\"`${remaining} seconds left`\">\n            <span class=\"block text-4xl font-bold tabular-nums\" aria-hidden=\"true\">{{\n              remaining\n            }}</span>\n            <span class=\"text-muted-foreground block text-xs\" aria-hidden=\"true\">seconds</span>\n          </p>\n        </div>\n      </div>\n\n      <dl class=\"mx-auto mt-8 grid max-w-md grid-cols-3 gap-3 text-sm\">\n        <div v-for=\"fact in facts\" :key=\"fact.label\" class=\"rounded-lg border p-3\">\n          <dt class=\"text-muted-foreground text-xs\">{{ fact.label }}</dt>\n          <dd class=\"mt-1 font-semibold\">{{ fact.value }}</dd>\n        </div>\n      </dl>\n\n      <div class=\"mt-6 flex flex-wrap justify-center gap-2\">\n        <UiButton :disabled=\"remaining > 0\" @click=\"retry\">\n          <Icon name=\"lucide:refresh-cw\" class=\"size-4\" />{{\n            remaining > 0 ? `Try again in ${remaining}s` : \"Try again\"\n          }}\n        </UiButton>\n        <UiButton variant=\"outline\">Upgrade plan</UiButton>\n      </div>\n      <p v-if=\"retried\" class=\"mt-3 text-sm\" role=\"status\">\n        <Icon name=\"lucide:circle-check\" class=\"text-primary mr-1 inline size-4\" />\n        Request sent. Everything is back to normal.\n      </p>\n\n      <ul class=\"text-muted-foreground mx-auto mt-10 max-w-md space-y-2 text-left text-sm\">\n        <li v-for=\"tip in tips\" :key=\"tip\" class=\"flex gap-2\">\n          <Icon name=\"lucide:lightbulb\" class=\"mt-0.5 size-4 shrink-0\" />{{ tip }}\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      retryAfter?: number;\n      limit?: number;\n      window?: string;\n      plan?: string;\n      tips?: string[];\n    }>(),\n    {\n      retryAfter: 30,\n      limit: 100,\n      window: \"per minute\",\n      plan: \"Starter\",\n      tips: () => [\n        \"Cache responses you request often.\",\n        \"Batch several updates into one request.\",\n        \"Back off and retry after the timer ends.\",\n      ],\n    }\n  );\n\n  const started = ref(Date.now());\n  const clock = useNow({ interval: 1000 });\n  const retried = ref(false);\n\n  const remaining = computed(() =>\n    Math.max(0, props.retryAfter - Math.floor((clock.value.getTime() - started.value) / 1000))\n  );\n\n  const facts = computed(() => [\n    { label: \"Limit\", value: `${props.limit} ${props.window}` },\n    { label: \"Used\", value: `${props.limit} of ${props.limit}` },\n    { label: \"Plan\", value: props.plan },\n  ]);\n\n  function retry() {\n    retried.value = true;\n  }\n</script>\n","category":"Maintenance","description":"Rate limited page. Features: 429 notice with a countdown ring, usage against the limit, try again button that unlocks when the timer ends, tips and upgrade link","path":"Utility/Maintenance/BlockMaintenance4.vue","components":["button","circular-progress","container"]},{"name":"Settings Members Invite","fileName":"BlockSettingsMembersInvite.vue","file":"<template>\n  <!--\n    Invite teammates dialog\n    Features: Email chips added with enter or comma, role select, validation of addresses, shareable invite link with copy button\n  -->\n  <UiDialog v-model:open=\"open\">\n    <UiDialogTrigger as-child>\n      <UiButton>\n        <Icon name=\"lucide:user-plus\" class=\"size-4\" />\n        Invite teammates\n      </UiButton>\n    </UiDialogTrigger>\n    <UiDialogContent class=\"sm:max-w-lg\">\n      <UiDialogHeader>\n        <UiDialogTitle>{{ props.title }}</UiDialogTitle>\n        <UiDialogDescription>{{ props.description }}</UiDialogDescription>\n      </UiDialogHeader>\n\n      <form class=\"grid gap-5\" @submit.prevent=\"send\">\n        <div class=\"grid gap-2\">\n          <UiLabel for=\"invite-emails\">Email addresses</UiLabel>\n          <div\n            class=\"focus-within:border-ring focus-within:ring-ring/50 flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border px-2 py-1.5 focus-within:ring-[3px]\"\n          >\n            <UiBadge v-for=\"email in emails\" :key=\"email\" variant=\"secondary\" class=\"gap-1 pr-1\">\n              {{ email }}\n              <button\n                type=\"button\"\n                class=\"hover:bg-background/60 rounded-full p-0.5\"\n                :aria-label=\"`Remove ${email}`\"\n                @click=\"emails = emails.filter((item) => item !== email)\"\n              >\n                <Icon name=\"lucide:x\" class=\"size-3\" />\n              </button>\n            </UiBadge>\n            <input\n              id=\"invite-emails\"\n              v-model=\"draft\"\n              type=\"email\"\n              class=\"placeholder:text-muted-foreground min-w-40 flex-1 bg-transparent px-1 text-sm outline-none\"\n              placeholder=\"name@company.com\"\n              @keydown=\"onKeydown\"\n              @blur=\"commit\"\n            />\n          </div>\n          <p v-if=\"error\" class=\"text-destructive text-sm\">{{ error }}</p>\n          <p v-else class=\"text-muted-foreground text-xs\">\n            Press enter or comma to add each address.\n          </p>\n        </div>\n\n        <div class=\"grid gap-2\">\n          <UiLabel for=\"invite-role\">Role</UiLabel>\n          <UiNativeSelect id=\"invite-role\" v-model=\"role\">\n            <option value=\"Admin\">Admin: manage members and billing</option>\n            <option value=\"Member\">Member: create and edit content</option>\n            <option value=\"Viewer\">Viewer: read-only access</option>\n          </UiNativeSelect>\n        </div>\n\n        <div class=\"bg-muted/50 flex items-center gap-2 rounded-lg border p-2 pl-3\">\n          <Icon name=\"lucide:link\" class=\"text-muted-foreground size-4 shrink-0\" />\n          <span class=\"text-muted-foreground flex-1 truncate text-sm\">{{ props.inviteLink }}</span>\n          <UiButton type=\"button\" variant=\"outline\" size=\"sm\" @click=\"copyLink\">\n            {{ copied ? \"Copied\" : \"Copy link\" }}\n          </UiButton>\n        </div>\n\n        <UiDialogFooter>\n          <UiDialogClose as-child>\n            <UiButton type=\"button\" variant=\"outline\">Cancel</UiButton>\n          </UiDialogClose>\n          <UiButton type=\"submit\" :disabled=\"!emails.length\">\n            Send {{ emails.length || \"\" }} {{ emails.length === 1 ? \"invite\" : \"invites\" }}\n          </UiButton>\n        </UiDialogFooter>\n      </form>\n    </UiDialogContent>\n  </UiDialog>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      inviteLink?: string;\n    }>(),\n    {\n      title: \"Invite teammates\",\n      description: \"They'll get an email with a link to join your workspace.\",\n      inviteLink: \"https://uithing.com/join/8f3k2a\",\n    }\n  );\n\n  const open = ref(false);\n  const emails = ref<string[]>([]);\n  const draft = ref(\"\");\n  const role = ref(\"Member\");\n  const error = ref(\"\");\n  const copied = ref(false);\n\n  const EMAIL = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n  function commit() {\n    const value = draft.value.trim().replace(/,$/, \"\");\n    if (!value) return;\n    if (!EMAIL.test(value)) {\n      error.value = `\"${value}\" isn't a valid email address.`;\n      return;\n    }\n    error.value = \"\";\n    if (!emails.value.includes(value)) emails.value.push(value);\n    draft.value = \"\";\n  }\n\n  function onKeydown(event: KeyboardEvent) {\n    if (event.key === \"Enter\" || event.key === \",\") {\n      event.preventDefault();\n      commit();\n    } else if (event.key === \"Backspace\" && !draft.value) {\n      emails.value.pop();\n    }\n  }\n\n  async function copyLink() {\n    try {\n      await navigator.clipboard.writeText(props.inviteLink);\n    } catch {\n      // Clipboard access can be blocked inside an iframe; the UI still confirms.\n    }\n    copied.value = true;\n    setTimeout(() => (copied.value = false), 1500);\n  }\n\n  function send() {\n    commit();\n    if (!emails.value.length) return;\n    useSonner.success(\n      `Invited ${emails.value.length} ${emails.value.length === 1 ? \"person\" : \"people\"}`,\n      {\n        description: `They'll join as ${role.value}.`,\n      }\n    );\n    emails.value = [];\n    open.value = false;\n  }\n</script>\n","category":"Members","description":"Invite teammates dialog. Features: Email chips added with enter or comma, role select, validation of addresses, shareable invite link with copy button","path":"Settings/Members/BlockSettingsMembersInvite.vue","components":["badge","button","dialog","label","native-select"]},{"name":"Settings Members Roles","fileName":"BlockSettingsMembersRoles.vue","file":"<template>\n  <!--\n    Role permissions matrix\n    Features: Permissions by role table with checkboxes, locked owner column, grouped permission rows, save and reset\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <UiCardContent class=\"p-0\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"pl-6\">Permission</UiTableHead>\n            <UiTableHead v-for=\"role in roles\" :key=\"role\" class=\"w-24 text-center\">\n              {{ role }}\n            </UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <template v-for=\"group in groups\" :key=\"group.title\">\n            <UiTableRow class=\"bg-muted/40 hover:bg-muted/40\">\n              <UiTableCell\n                :colspan=\"roles.length + 1\"\n                class=\"text-muted-foreground pl-6 text-xs font-semibold tracking-wide uppercase\"\n              >\n                {{ group.title }}\n              </UiTableCell>\n            </UiTableRow>\n            <UiTableRow v-for=\"permission in group.items\" :key=\"permission.id\">\n              <UiTableCell class=\"pl-6\">\n                <p class=\"font-medium\">{{ permission.label }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ permission.hint }}</p>\n              </UiTableCell>\n              <UiTableCell v-for=\"role in roles\" :key=\"role\" class=\"text-center\">\n                <UiCheckbox\n                  v-model=\"permission.roles[role]\"\n                  :disabled=\"role === 'Owner'\"\n                  :aria-label=\"`${permission.label} for ${role}`\"\n                />\n              </UiTableCell>\n            </UiTableRow>\n          </template>\n        </UiTableBody>\n      </UiTable>\n    </UiCardContent>\n    <UiCardFooter class=\"justify-end gap-2 border-t\">\n      <UiButton variant=\"outline\">Reset to defaults</UiButton>\n      <UiButton @click=\"useSonner.success('Permissions saved')\">Save permissions</UiButton>\n    </UiCardFooter>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Role = \"Owner\" | \"Admin\" | \"Member\" | \"Viewer\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Roles & permissions\",\n      description: \"Control what each role can do. Owners always have full access.\",\n    }\n  );\n\n  const roles: Role[] = [\"Owner\", \"Admin\", \"Member\", \"Viewer\"];\n\n  const row = (admin: boolean, member: boolean, viewer: boolean): Record<Role, boolean> => ({\n    Owner: true,\n    Admin: admin,\n    Member: member,\n    Viewer: viewer,\n  });\n\n  const groups = reactive([\n    {\n      title: \"Content\",\n      items: [\n        {\n          id: \"view\",\n          label: \"View content\",\n          hint: \"Read projects and files.\",\n          roles: row(true, true, true),\n        },\n        {\n          id: \"edit\",\n          label: \"Edit content\",\n          hint: \"Create and change projects.\",\n          roles: row(true, true, false),\n        },\n        {\n          id: \"delete\",\n          label: \"Delete content\",\n          hint: \"Permanently remove projects.\",\n          roles: row(true, false, false),\n        },\n      ],\n    },\n    {\n      title: \"Workspace\",\n      items: [\n        {\n          id: \"invite\",\n          label: \"Invite members\",\n          hint: \"Add people to the workspace.\",\n          roles: row(true, false, false),\n        },\n        {\n          id: \"billing\",\n          label: \"Manage billing\",\n          hint: \"Change plans and payment methods.\",\n          roles: row(false, false, false),\n        },\n        {\n          id: \"integrations\",\n          label: \"Manage integrations\",\n          hint: \"Connect third party apps.\",\n          roles: row(true, false, false),\n        },\n      ],\n    },\n  ]);\n</script>\n","category":"Members","description":"Role permissions matrix. Features: Permissions by role table with checkboxes, locked owner column, grouped permission rows, save and reset","path":"Settings/Members/BlockSettingsMembersRoles.vue","components":["button","card","checkbox","table"]},{"name":"Settings Members Table","fileName":"BlockSettingsMembersTable.vue","file":"<template>\n  <!--\n    Team members table with roles and row actions\n    Features: Avatar and email cell, inline role select, status badges, search, row action menu, member count header\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <div class=\"flex items-center gap-2\">\n        <UiCardTitle>{{ props.title }}</UiCardTitle>\n        <UiBadge variant=\"secondary\">{{ members.length }}</UiBadge>\n      </div>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n      <UiCardAction>\n        <UiButton size=\"sm\" @click=\"useSonner.info('Open your invite dialog here')\">\n          <Icon name=\"lucide:user-plus\" class=\"size-4\" />\n          Invite member\n        </UiButton>\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-4 p-0\">\n      <div class=\"px-6\">\n        <div class=\"relative max-w-xs\">\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput v-model=\"query\" placeholder=\"Search members\" class=\"pl-9\" />\n        </div>\n      </div>\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"pl-6\">Name</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead>Role</UiTableHead>\n            <UiTableHead class=\"w-12 pr-6\" />\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"member in filtered\" :key=\"member.email\">\n            <UiTableCell class=\"pl-6\">\n              <div class=\"flex items-center gap-3\">\n                <UiAvatar :src=\"member.avatar\" :fallback=\"initials(member.name)\" />\n                <div class=\"min-w-0\">\n                  <p class=\"truncate font-medium\">{{ member.name }}</p>\n                  <p class=\"text-muted-foreground truncate text-xs\">{{ member.email }}</p>\n                </div>\n              </div>\n            </UiTableCell>\n            <UiTableCell>\n              <UiBadge :variant=\"member.status === 'Active' ? 'success' : 'outline'\">\n                {{ member.status }}\n              </UiBadge>\n            </UiTableCell>\n            <UiTableCell>\n              <UiNativeSelect\n                v-model=\"member.role\"\n                class=\"h-8 w-32\"\n                :disabled=\"member.role === 'Owner'\"\n                :aria-label=\"`Role for ${member.name}`\"\n              >\n                <option v-for=\"role in roles\" :key=\"role\">{{ role }}</option>\n              </UiNativeSelect>\n            </UiTableCell>\n            <UiTableCell class=\"pr-6 text-right\">\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton\n                    variant=\"ghost\"\n                    size=\"icon-sm\"\n                    :aria-label=\"`Actions for ${member.name}`\"\n                  >\n                    <Icon name=\"lucide:ellipsis\" class=\"size-4\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem @select=\"useSonner.info(`Reminder sent to ${member.name}`)\">\n                    <Icon name=\"lucide:mail\" class=\"size-4\" />\n                    Resend invite\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem @select=\"useSonner.info('Open permissions here')\">\n                    <Icon name=\"lucide:shield\" class=\"size-4\" />\n                    Permissions\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem\n                    variant=\"destructive\"\n                    :disabled=\"member.role === 'Owner'\"\n                    @select=\"remove(member.email)\"\n                  >\n                    <Icon name=\"lucide:trash-2\" class=\"size-4\" />\n                    Remove\n                  </UiDropdownMenuItem>\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!filtered.length\" :colspan=\"4\">No members found.</UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    email: string;\n    avatar: string;\n    role: string;\n    status: \"Active\" | \"Invited\";\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Team members\",\n      description: \"Manage who has access to this workspace and what they can do.\",\n    }\n  );\n\n  const roles = [\"Owner\", \"Admin\", \"Member\", \"Viewer\"];\n\n  const members = ref<Member[]>([\n    {\n      name: \"Maya Chen\",\n      email: \"maya@uithing.com\",\n      avatar: \"https://i.pravatar.cc/80?img=47\",\n      role: \"Owner\",\n      status: \"Active\",\n    },\n    {\n      name: \"Liam Carter\",\n      email: \"liam@uithing.com\",\n      avatar: \"https://i.pravatar.cc/80?img=12\",\n      role: \"Admin\",\n      status: \"Active\",\n    },\n    {\n      name: \"Priya Nair\",\n      email: \"priya@uithing.com\",\n      avatar: \"https://i.pravatar.cc/80?img=45\",\n      role: \"Member\",\n      status: \"Active\",\n    },\n    {\n      name: \"Sam Okafor\",\n      email: \"sam@uithing.com\",\n      avatar: \"https://i.pravatar.cc/80?img=32\",\n      role: \"Viewer\",\n      status: \"Invited\",\n    },\n  ]);\n\n  const query = ref(\"\");\n\n  const filtered = computed(() =>\n    members.value.filter((member) =>\n      `${member.name} ${member.email}`.toLowerCase().includes(query.value.toLowerCase())\n    )\n  );\n\n  function initials(name: string) {\n    return name\n      .split(\" \")\n      .map((part) => part[0])\n      .join(\"\")\n      .slice(0, 2);\n  }\n\n  function remove(email: string) {\n    members.value = members.value.filter((member) => member.email !== email);\n    useSonner.success(\"Member removed\");\n  }\n</script>\n","category":"Members","description":"Team members table with roles and row actions. Features: Avatar and email cell, inline role select, status badges, search, row action menu, member count header","path":"Settings/Members/BlockSettingsMembersTable.vue","components":["avatar","badge","button","card","dropdown-menu","input","native-select","table"]},{"name":"Metric 1","fileName":"BlockMetric1.vue","file":"<template>\n  <!--\n    Centered metrics on a soft panel\n    Features: Three large brand colored numbers that count up when they scroll into view, short captions, rounded muted container\n  -->\n  <UiContainer ref=\"root\" class=\"py-12 lg:py-16\">\n    <div class=\"bg-muted/50 rounded-3xl border px-6 py-14 text-center lg:py-20\">\n      <h2 class=\"text-2xl font-bold tracking-tight text-balance sm:text-3xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl text-balance\">\n        {{ props.description }}\n      </p>\n      <dl class=\"mx-auto mt-12 grid max-w-4xl gap-10 sm:grid-cols-3\">\n        <div v-for=\"(stat, i) in props.stats\" :key=\"stat.label\">\n          <dd class=\"text-primary text-5xl font-bold tracking-tight tabular-nums lg:text-6xl\">\n            {{ fmt(i) }}\n          </dd>\n          <dt class=\"text-muted-foreground mt-2 text-sm font-medium\">{{ stat.label }}</dt>\n        </div>\n      </dl>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = {\n    label: string;\n    value: number;\n    prefix?: string;\n    suffix?: string;\n    decimals?: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; stats?: Stat[] }>(),\n    {\n      title: \"Results that speak for themselves\",\n      description: \"Numbers from the teams that build with us every day.\",\n      stats: () => [\n        { label: \"Projects shipped\", value: 230, suffix: \"+\" },\n        { label: \"Average return on investment\", value: 600, suffix: \"%\" },\n        { label: \"Global downloads\", value: 10, suffix: \"K\" },\n      ],\n    }\n  );\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Centered metrics on a soft panel. Features: Three large brand colored numbers that count up when they scroll into view, short captions, rounded muted container","path":"Metric/BlockMetric1.vue","components":["container"]},{"name":"Metric 10","fileName":"BlockMetric10.vue","file":"<template>\n  <!--\n    Business metrics with growth badges\n    Features: Cards with modern fancy icons, trend badges colored by direction, hover lift, values that count up on view\n  -->\n  <UiContainer ref=\"root\" class=\"py-14 lg:py-20\">\n    <dl class=\"grid gap-5 md:grid-cols-3\">\n      <div\n        v-for=\"(stat, i) in props.stats\"\n        :key=\"stat.label\"\n        class=\"bg-card group rounded-2xl border p-6 transition-all hover:-translate-y-1 hover:shadow-lg\"\n      >\n        <div class=\"flex items-start justify-between\">\n          <UiFancyIcon :icon=\"stat.icon\" theme=\"modern-neue\" color=\"gray\" />\n          <span\n            class=\"flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-medium\"\n            :class=\"\n              stat.up\n                ? 'bg-green-500/10 text-green-600 dark:text-green-400'\n                : 'bg-red-500/10 text-red-600 dark:text-red-400'\n            \"\n          >\n            <Icon\n              :name=\"stat.up ? 'lucide:trending-up' : 'lucide:trending-down'\"\n              class=\"size-3.5\"\n            />\n            {{ stat.change }}\n          </span>\n        </div>\n        <dd class=\"mt-6 text-4xl font-bold tracking-tight tabular-nums\">{{ fmt(i) }}</dd>\n        <dt class=\"mt-1 font-semibold\">{{ stat.label }}</dt>\n        <p class=\"text-muted-foreground mt-1 text-sm\">{{ stat.note }}</p>\n      </div>\n    </dl>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = {\n    label: string;\n    value: number;\n    prefix?: string;\n    suffix?: string;\n    decimals?: number;\n    icon: string;\n    change: string;\n    up: boolean;\n    note: string;\n  };\n\n  const props = withDefaults(defineProps<{ stats?: Stat[] }>(), {\n    stats: () => [\n      {\n        label: \"Total revenue\",\n        value: 2.4,\n        prefix: \"$\",\n        suffix: \"M\",\n        decimals: 1,\n        icon: \"lucide:badge-dollar-sign\",\n        change: \"12.5%\",\n        up: true,\n        note: \"Compared to last quarter.\",\n      },\n      {\n        label: \"New customers\",\n        value: 1840,\n        icon: \"lucide:user-plus\",\n        change: \"18.2%\",\n        up: true,\n        note: \"Acquired this month.\",\n      },\n      {\n        label: \"Churn rate\",\n        value: 3.2,\n        suffix: \"%\",\n        decimals: 1,\n        icon: \"lucide:user-minus\",\n        change: \"0.6%\",\n        up: false,\n        note: \"Across all plans.\",\n      },\n    ],\n  });\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Business metrics with growth badges. Features: Cards with modern fancy icons, trend badges colored by direction, hover lift, values that count up on view","path":"Metric/BlockMetric10.vue","components":["container","fancy-icon"]},{"name":"Metric 11","fileName":"BlockMetric11.vue","file":"<template>\n  <!--\n    Metrics beside a customer quote\n    Features: Large quote with avatar and role on the left, three stacked metrics with dividers on the right, values count up on view\n  -->\n  <UiContainer ref=\"root\" class=\"py-14 lg:py-20\">\n    <div class=\"bg-card grid overflow-hidden rounded-3xl border lg:grid-cols-[1.3fr_1fr]\">\n      <figure class=\"flex flex-col justify-between gap-10 p-8 lg:p-12\">\n        <Icon name=\"lucide:quote\" class=\"text-primary/40 size-10\" />\n        <blockquote\n          class=\"text-2xl leading-snug font-semibold tracking-tight text-balance lg:text-3xl\"\n        >\n          {{ quote }}\n        </blockquote>\n        <figcaption class=\"flex items-center gap-3\">\n          <UiAvatar src=\"https://i.pravatar.cc/120?img=47\" fallback=\"MC\" class=\"size-12\" />\n          <div>\n            <p class=\"font-semibold\">Maya Chen</p>\n            <p class=\"text-muted-foreground text-sm\">Head of Product, Northwind</p>\n          </div>\n        </figcaption>\n      </figure>\n      <dl class=\"bg-muted/40 divide-y border-t lg:border-t-0 lg:border-l\">\n        <div v-for=\"(stat, i) in props.stats\" :key=\"stat.label\" class=\"p-8 lg:px-10\">\n          <dd class=\"text-5xl font-bold tracking-tight tabular-nums\">{{ fmt(i) }}</dd>\n          <dt class=\"text-muted-foreground mt-2 text-sm\">{{ stat.label }}</dt>\n        </div>\n      </dl>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = { label: string; value: number; prefix?: string; suffix?: string; decimals?: number };\n\n  const props = withDefaults(defineProps<{ stats?: Stat[] }>(), {\n    stats: () => [\n      { label: \"Faster page builds\", value: 3, suffix: \"x\" },\n      { label: \"Fewer support tickets\", value: 42, suffix: \"%\" },\n      { label: \"Saved each sprint\", value: 18, suffix: \" hrs\" },\n    ],\n  });\n\n  const quote =\n    \"We rebuilt our whole dashboard in a weekend. Every piece was already there and every piece was ours to change.\";\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Metrics beside a customer quote. Features: Large quote with avatar and role on the left, three stacked metrics with dividers on the right, values count up on view","path":"Metric/BlockMetric11.vue","components":["avatar","container"]},{"name":"Metric 12","fileName":"BlockMetric12.vue","file":"<template>\n  <!--\n    Ring metrics for service health\n    Features: Three progress rings that fill when visible with the value in the center, status labels and a short caption each, counting values\n  -->\n  <UiContainer ref=\"root\" class=\"py-14 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <dl class=\"mx-auto mt-12 grid max-w-4xl gap-8 sm:grid-cols-3\">\n      <div\n        v-for=\"(stat, i) in props.stats\"\n        :key=\"stat.label\"\n        class=\"flex flex-col items-center text-center\"\n      >\n        <div class=\"relative size-36\">\n          <svg class=\"size-36 -rotate-90\" viewBox=\"0 0 100 100\" aria-hidden=\"true\">\n            <circle cx=\"50\" cy=\"50\" r=\"44\" fill=\"none\" stroke-width=\"8\" class=\"stroke-muted\" />\n            <circle\n              cx=\"50\"\n              cy=\"50\"\n              r=\"44\"\n              fill=\"none\"\n              stroke-width=\"8\"\n              stroke-linecap=\"round\"\n              class=\"stroke-primary transition-[stroke-dashoffset] duration-[1600ms] ease-out\"\n              :stroke-dasharray=\"circumference\"\n              :stroke-dashoffset=\"circumference * (1 - (target[i] ? stat.value / 100 : 0))\"\n            />\n          </svg>\n          <dd\n            class=\"absolute inset-0 flex items-center justify-center text-2xl font-bold tabular-nums\"\n          >\n            {{ fmt(i) }}\n          </dd>\n        </div>\n        <dt class=\"mt-4 font-semibold\">{{ stat.label }}</dt>\n        <p class=\"text-muted-foreground mt-1 text-sm\">{{ stat.note }}</p>\n      </div>\n    </dl>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = {\n    label: string;\n    value: number;\n    prefix?: string;\n    suffix?: string;\n    decimals?: number;\n    note: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; stats?: Stat[] }>(),\n    {\n      title: \"Reliability you can measure\",\n      description: \"We publish our numbers so you know exactly what to expect.\",\n      stats: () => [\n        {\n          label: \"Uptime\",\n          value: 99.9,\n          suffix: \"%\",\n          decimals: 1,\n          note: \"Measured over the last 12 months.\",\n        },\n        {\n          label: \"Customer satisfaction\",\n          value: 96,\n          suffix: \"%\",\n          note: \"From 8,400 survey responses.\",\n        },\n        {\n          label: \"Deploys without rollback\",\n          value: 98,\n          suffix: \"%\",\n          note: \"Across all production releases.\",\n        },\n      ],\n    }\n  );\n\n  const circumference = 2 * Math.PI * 44;\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Ring metrics for service health. Features: Three progress rings that fill when visible with the value in the center, status labels and a short caption each, counting values","path":"Metric/BlockMetric12.vue","components":["container"]},{"name":"Metric 2","fileName":"BlockMetric2.vue","file":"<template>\n  <!--\n    Four column metrics strip with vertical dividers\n    Features: Borders above and below, hairline dividers between stats that reflow on small screens, numbers that count up on view\n  -->\n  <UiContainer ref=\"root\" class=\"py-12 lg:py-16\">\n    <dl\n      class=\"bg-border grid gap-px overflow-hidden rounded-2xl border sm:grid-cols-2 lg:grid-cols-4\"\n    >\n      <div\n        v-for=\"(stat, i) in props.stats\"\n        :key=\"stat.label\"\n        class=\"bg-background px-6 py-10 text-center\"\n      >\n        <dd class=\"text-4xl font-bold tracking-tight tabular-nums lg:text-5xl\">{{ fmt(i) }}</dd>\n        <dt class=\"text-muted-foreground mt-2 text-sm\">{{ stat.label }}</dt>\n      </div>\n    </dl>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = { label: string; value: number; prefix?: string; suffix?: string; decimals?: number };\n\n  const props = withDefaults(defineProps<{ stats?: Stat[] }>(), {\n    stats: () => [\n      { label: \"Projects completed\", value: 230, suffix: \"+\" },\n      { label: \"Return on investment\", value: 600, suffix: \"%\" },\n      { label: \"Global downloads\", value: 10, suffix: \"K\" },\n      { label: \"5-star reviews\", value: 200, suffix: \"+\" },\n    ],\n  });\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Four column metrics strip with vertical dividers. Features: Borders above and below, hairline dividers between stats that reflow on small screens, numbers that count up on view","path":"Metric/BlockMetric2.vue","components":["container"]},{"name":"Metric 3","fileName":"BlockMetric3.vue","file":"<template>\n  <!--\n    Metrics with a heading and call to action buttons\n    Features: Heading with supporting copy and two buttons, four metrics with short descriptions that count up on view, responsive button placement\n  -->\n  <UiContainer ref=\"root\" class=\"py-14 lg:py-20\">\n    <div class=\"flex flex-col gap-6 border-b pb-10 md:flex-row md:items-end md:justify-between\">\n      <div class=\"max-w-xl\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance\">{{ props.title }}</h2>\n        <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n      </div>\n      <div class=\"flex gap-3\">\n        <slot>\n          <UiButton variant=\"outline\">Book a demo</UiButton>\n          <UiButton>\n            Get started\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n        </slot>\n      </div>\n    </div>\n    <dl class=\"mt-10 grid gap-8 sm:grid-cols-2 lg:grid-cols-4\">\n      <div v-for=\"(stat, i) in props.stats\" :key=\"stat.label\">\n        <dd class=\"text-4xl font-bold tracking-tight tabular-nums lg:text-5xl\">{{ fmt(i) }}</dd>\n        <dt class=\"mt-2 font-semibold\">{{ stat.label }}</dt>\n        <p class=\"text-muted-foreground mt-1 text-sm\">{{ stat.note }}</p>\n      </div>\n    </dl>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = {\n    label: string;\n    value: number;\n    prefix?: string;\n    suffix?: string;\n    decimals?: number;\n    note?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; stats?: Stat[] }>(),\n    {\n      title: \"Build something great\",\n      description:\n        \"Everything you need to build modern interfaces, backed by numbers you can trust.\",\n      stats: () => [\n        {\n          label: \"Projects completed\",\n          value: 230,\n          suffix: \"+\",\n          note: \"Across 40 industries and counting.\",\n        },\n        {\n          label: \"Return on investment\",\n          value: 600,\n          suffix: \"%\",\n          note: \"Average across customer accounts.\",\n        },\n        {\n          label: \"Global downloads\",\n          value: 10,\n          suffix: \"K\",\n          note: \"Every week from the registry.\",\n        },\n        { label: \"5-star reviews\", value: 200, suffix: \"+\", note: \"From teams who ship with us.\" },\n      ],\n    }\n  );\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Metrics with a heading and call to action buttons. Features: Heading with supporting copy and two buttons, four metrics with short descriptions that count up on view, responsive button placement","path":"Metric/BlockMetric3.vue","components":["button","container"]},{"name":"Metric 4","fileName":"BlockMetric4.vue","file":"<template>\n  <!--\n    Split metrics with a CSS visual\n    Features: Heading and copy with a two by two metric grid on the left, a gradient mesh panel with floating chips on the right that needs no image, counts up on view\n  -->\n  <UiContainer ref=\"root\" class=\"py-14 lg:py-20\">\n    <div class=\"grid items-center gap-12 lg:grid-cols-2 lg:gap-16\">\n      <div>\n        <p class=\"text-primary text-sm font-semibold\">{{ eyebrow }}</p>\n        <h2 class=\"mt-2 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-4 text-lg text-balance\">{{ props.description }}</p>\n        <dl class=\"mt-10 grid grid-cols-2 gap-8\">\n          <div v-for=\"(stat, i) in props.stats\" :key=\"stat.label\" class=\"border-l-2 pl-4\">\n            <dd class=\"text-3xl font-bold tracking-tight tabular-nums\">{{ fmt(i) }}</dd>\n            <dt class=\"text-muted-foreground mt-1 text-sm\">{{ stat.label }}</dt>\n          </div>\n        </dl>\n      </div>\n      <div\n        class=\"relative aspect-4/3 overflow-hidden rounded-3xl bg-linear-to-br from-indigo-500 via-purple-500 to-pink-500 p-6\"\n        aria-hidden=\"true\"\n      >\n        <div class=\"absolute -top-16 -right-10 size-64 rounded-full bg-white/25 blur-3xl\" />\n        <div class=\"absolute -bottom-20 left-1/4 size-64 rounded-full bg-sky-300/30 blur-3xl\" />\n        <Motion\n          v-for=\"(chip, i) in chips\"\n          :key=\"chip.label\"\n          class=\"absolute flex items-center gap-2 rounded-xl border border-white/30 bg-white/20 px-3 py-2 text-sm font-medium text-white shadow-lg backdrop-blur\"\n          :class=\"chip.position\"\n          :animate=\"{ y: [0, -8, 0] }\"\n          :transition=\"{ duration: 4, delay: i * 0.7, repeat: Infinity, ease: 'easeInOut' }\"\n        >\n          <Icon :name=\"chip.icon\" class=\"size-4\" />\n          {{ chip.label }}\n        </Motion>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = { label: string; value: number; prefix?: string; suffix?: string; decimals?: number };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; stats?: Stat[] }>(),\n    {\n      title: \"Launch faster\",\n      description:\n        \"We've done the heavy lifting so you don't have to. A perfect starting point for any project.\",\n      stats: () => [\n        { label: \"Teams onboarded\", value: 1200, suffix: \"+\" },\n        { label: \"Average setup time\", value: 15, suffix: \" min\" },\n        { label: \"Uptime last year\", value: 99.99, suffix: \"%\", decimals: 2 },\n        { label: \"Countries served\", value: 120 },\n      ],\n    }\n  );\n\n  const eyebrow = \"Why teams choose us\";\n  const chips = [\n    { label: \"Deployed in 14s\", icon: \"lucide:rocket\", position: \"top-8 left-6\" },\n    { label: \"0 incidents\", icon: \"lucide:shield-check\", position: \"top-1/2 right-6\" },\n    { label: \"+38% faster\", icon: \"lucide:trending-up\", position: \"bottom-8 left-10\" },\n  ];\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Split metrics with a CSS visual. Features: Heading and copy with a two by two metric grid on the left, a gradient mesh panel with floating chips on the right that needs no image, counts up on view","path":"Metric/BlockMetric4.vue","components":["container"]},{"name":"Metric 5","fileName":"BlockMetric5.vue","file":"<template>\n  <!--\n    Compact icon metrics in a single row\n    Features: Fancy icon beside each value, short labels, numbers that count up on view, wraps to two columns on small screens\n  -->\n  <UiContainer ref=\"root\" class=\"py-10 lg:py-14\">\n    <dl class=\"grid grid-cols-2 gap-x-6 gap-y-8 lg:grid-cols-4\">\n      <div v-for=\"(stat, i) in props.stats\" :key=\"stat.label\" class=\"flex items-center gap-4\">\n        <UiFancyIcon :icon=\"stat.icon\" theme=\"modern\" color=\"gray\" />\n        <div>\n          <dd class=\"text-3xl font-bold tracking-tight tabular-nums\">{{ fmt(i) }}</dd>\n          <dt class=\"text-muted-foreground text-sm\">{{ stat.label }}</dt>\n        </div>\n      </div>\n    </dl>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = {\n    label: string;\n    value: number;\n    prefix?: string;\n    suffix?: string;\n    decimals?: number;\n    icon: string;\n  };\n\n  const props = withDefaults(defineProps<{ stats?: Stat[] }>(), {\n    stats: () => [\n      { label: \"Active users\", value: 50, suffix: \"K+\", icon: \"lucide:users\" },\n      { label: \"Uptime\", value: 99.9, suffix: \"%\", decimals: 1, icon: \"lucide:activity\" },\n      { label: \"Countries\", value: 150, suffix: \"+\", icon: \"lucide:globe\" },\n      { label: \"Support rating\", value: 4.9, decimals: 1, icon: \"lucide:star\" },\n    ],\n  });\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Compact icon metrics in a single row. Features: Fancy icon beside each value, short labels, numbers that count up on view, wraps to two columns on small screens","path":"Metric/BlockMetric5.vue","components":["container","fancy-icon"]},{"name":"Metric 6","fileName":"BlockMetric6.vue","file":"<template>\n  <!--\n    Metric cards with gradient icon badges\n    Features: Rounded cards that lift on hover, gradient fancy icons in different colors, counting values and captions, centered heading\n  -->\n  <UiContainer ref=\"root\" class=\"py-14 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <dl class=\"mx-auto mt-12 grid max-w-5xl gap-5 sm:grid-cols-3\">\n      <div\n        v-for=\"(stat, i) in props.stats\"\n        :key=\"stat.label\"\n        class=\"bg-card flex flex-col items-center rounded-2xl border p-8 text-center transition-all hover:-translate-y-1 hover:shadow-lg\"\n      >\n        <UiFancyIcon :icon=\"stat.icon\" theme=\"gradient\" :color=\"stat.color\" size=\"lg\" />\n        <dd class=\"mt-5 text-4xl font-bold tracking-tight tabular-nums\">{{ fmt(i) }}</dd>\n        <dt class=\"text-muted-foreground mt-1 text-sm\">{{ stat.label }}</dt>\n      </div>\n    </dl>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = {\n    label: string;\n    value: number;\n    prefix?: string;\n    suffix?: string;\n    decimals?: number;\n    icon: string;\n    color: \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; stats?: Stat[] }>(),\n    {\n      title: \"Trusted by teams worldwide\",\n      description: \"Join thousands of companies using the platform to build better products.\",\n      stats: () => [\n        {\n          label: \"Customer satisfaction\",\n          value: 98,\n          suffix: \"%\",\n          icon: \"lucide:heart\",\n          color: \"error\",\n        },\n        {\n          label: \"Projects delivered\",\n          value: 1200,\n          suffix: \"+\",\n          icon: \"lucide:rocket\",\n          color: \"info\",\n        },\n        { label: \"Team members\", value: 50, suffix: \"+\", icon: \"lucide:users\", color: \"success\" },\n      ],\n    }\n  );\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Metric cards with gradient icon badges. Features: Rounded cards that lift on hover, gradient fancy icons in different colors, counting values and captions, centered heading","path":"Metric/BlockMetric6.vue","components":["container","fancy-icon"]},{"name":"Metric 7","fileName":"BlockMetric7.vue","file":"<template>\n  <!--\n    Two column metrics with a story\n    Features: Eyebrow, heading and copy on the left, a two by two grid with hairline dividers on the right, values count up on view\n  -->\n  <UiContainer ref=\"root\" class=\"py-14 lg:py-20\">\n    <div class=\"grid items-center gap-12 lg:grid-cols-[1fr_1.2fr] lg:gap-20\">\n      <div>\n        <p class=\"text-primary text-sm font-semibold\">By the numbers</p>\n        <h2 class=\"mt-2 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-4 text-lg text-balance\">{{ props.description }}</p>\n      </div>\n      <dl class=\"bg-border grid gap-px overflow-hidden rounded-2xl border sm:grid-cols-2\">\n        <div v-for=\"(stat, i) in props.stats\" :key=\"stat.label\" class=\"bg-card p-8\">\n          <dd class=\"text-4xl font-bold tracking-tight tabular-nums\">{{ fmt(i) }}</dd>\n          <dt class=\"text-muted-foreground mt-2 text-sm\">{{ stat.label }}</dt>\n        </div>\n      </dl>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = { label: string; value: number; prefix?: string; suffix?: string; decimals?: number };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; stats?: Stat[] }>(),\n    {\n      title: \"Making an impact that matters\",\n      description:\n        \"Our platform helps teams around the world ship better products faster. Here's how we're making a difference.\",\n      stats: () => [\n        { label: \"Daily active users\", value: 25, suffix: \"K+\" },\n        { label: \"API calls per day\", value: 2, suffix: \"M+\" },\n        { label: \"Average response time\", value: 45, suffix: \"ms\" },\n        { label: \"Customer retention\", value: 94, suffix: \"%\" },\n      ],\n    }\n  );\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Two column metrics with a story. Features: Eyebrow, heading and copy on the left, a two by two grid with hairline dividers on the right, values count up on view","path":"Metric/BlockMetric7.vue","components":["container"]},{"name":"Metric 8","fileName":"BlockMetric8.vue","file":"<template>\n  <!--\n    Detailed metric cards with a mini chart\n    Features: Icon, value, label and supporting sentence in each card, a small bar chart that grows in when visible, counting values\n  -->\n  <UiContainer ref=\"root\" class=\"py-14 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <dl class=\"mt-12 grid gap-5 md:grid-cols-2 lg:grid-cols-4\">\n      <div\n        v-for=\"(stat, i) in props.stats\"\n        :key=\"stat.label\"\n        class=\"bg-card flex flex-col rounded-2xl border p-6\"\n      >\n        <UiFancyIcon :icon=\"stat.icon\" theme=\"light\" color=\"primary\" size=\"md\" />\n        <dd class=\"mt-5 text-3xl font-bold tracking-tight tabular-nums\">{{ fmt(i) }}</dd>\n        <dt class=\"mt-1 font-semibold\">{{ stat.label }}</dt>\n        <p class=\"text-muted-foreground mt-1 flex-1 text-sm\">{{ stat.note }}</p>\n        <div class=\"mt-5 flex h-12 items-end gap-1\" aria-hidden=\"true\">\n          <div\n            v-for=\"(bar, n) in stat.bars\"\n            :key=\"n\"\n            class=\"bg-primary/25 flex-1 rounded-sm transition-all duration-1000 ease-out\"\n            :style=\"{ height: target[i] ? `${bar}%` : '8%' }\"\n          />\n        </div>\n      </div>\n    </dl>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = {\n    label: string;\n    value: number;\n    prefix?: string;\n    suffix?: string;\n    decimals?: number;\n    icon: string;\n    note: string;\n    bars: number[];\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; stats?: Stat[] }>(),\n    {\n      title: \"Why choose us?\",\n      description: \"Numbers that speak for themselves.\",\n      stats: () => [\n        {\n          label: \"Success rate\",\n          value: 99,\n          suffix: \"%\",\n          icon: \"lucide:trending-up\",\n          note: \"Projects completed on time.\",\n          bars: [60, 72, 66, 80, 76, 92, 99],\n        },\n        {\n          label: \"Response time\",\n          value: 1,\n          prefix: \"<\",\n          suffix: \" hr\",\n          icon: \"lucide:clock\",\n          note: \"Average first reply from support.\",\n          bars: [90, 80, 84, 68, 70, 56, 48],\n        },\n        {\n          label: \"Team size\",\n          value: 100,\n          suffix: \"+\",\n          icon: \"lucide:users\",\n          note: \"Experts across 12 countries.\",\n          bars: [30, 38, 46, 52, 64, 78, 90],\n        },\n        {\n          label: \"Experience\",\n          value: 10,\n          suffix: \" yr\",\n          icon: \"lucide:award\",\n          note: \"Building for the web.\",\n          bars: [40, 48, 56, 64, 72, 82, 94],\n        },\n      ],\n    }\n  );\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Detailed metric cards with a mini chart. Features: Icon, value, label and supporting sentence in each card, a small bar chart that grows in when visible, counting values","path":"Metric/BlockMetric8.vue","components":["container","fancy-icon"]},{"name":"Metric 9","fileName":"BlockMetric9.vue","file":"<template>\n  <!--\n    Bold brand metrics on a grid pattern\n    Features: Brand colored panel with a masked grid, light text that follows the theme, four values that count up on view\n  -->\n  <UiContainer ref=\"root\" class=\"py-12 lg:py-16\">\n    <div\n      class=\"from-primary to-primary/85 text-primary-foreground relative overflow-hidden rounded-3xl bg-linear-to-br px-6 py-16 text-center lg:py-20\"\n    >\n      <div\n        class=\"absolute inset-0 bg-[linear-gradient(to_right,rgb(255_255_255/0.08)_1px,transparent_1px),linear-gradient(to_bottom,rgb(255_255_255/0.08)_1px,transparent_1px)] mask-[radial-gradient(ellipse_at_center,black_30%,transparent_75%)] bg-size-[44px_44px]\"\n        aria-hidden=\"true\"\n      />\n      <div class=\"relative\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-primary-foreground/75 mx-auto mt-3 max-w-xl text-balance\">\n          {{ props.description }}\n        </p>\n        <dl class=\"mx-auto mt-12 grid max-w-4xl grid-cols-2 gap-8 lg:grid-cols-4\">\n          <div v-for=\"(stat, i) in props.stats\" :key=\"stat.label\">\n            <dd class=\"text-4xl font-bold tracking-tight tabular-nums lg:text-5xl\">{{ fmt(i) }}</dd>\n            <dt class=\"text-primary-foreground/70 mt-2 text-sm\">{{ stat.label }}</dt>\n          </div>\n        </dl>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stat = { label: string; value: number; prefix?: string; suffix?: string; decimals?: number };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; stats?: Stat[] }>(),\n    {\n      title: \"Powering innovation worldwide\",\n      description: \"Trusted by leading companies and fast moving startups.\",\n      stats: () => [\n        { label: \"Enterprise clients\", value: 500, suffix: \"+\" },\n        { label: \"Countries served\", value: 120 },\n        { label: \"Uptime SLA\", value: 99.99, suffix: \"%\", decimals: 2 },\n        { label: \"Monthly transactions\", value: 5, suffix: \"M+\" },\n      ],\n    }\n  );\n\n  // Numbers start at zero and count up the first time the section is visible.\n  const root = ref<{ $el?: HTMLElement } | null>(null);\n  const target = ref(props.stats.map(() => 0));\n  const animated = useTransition(target, { duration: 1600 });\n  useIntersectionObserver(\n    computed(() => root.value?.$el),\n    ([entry], observer) => {\n      if (entry?.isIntersecting) {\n        target.value = props.stats.map((s) => s.value);\n        observer.disconnect();\n      }\n    },\n    { threshold: 0.3 }\n  );\n\n  const fmt = (i: number) => {\n    const stat = props.stats[i]!;\n    const value = animated.value[i] ?? 0;\n    const number = stat.decimals\n      ? value.toFixed(stat.decimals)\n      : Math.round(value).toLocaleString(\"en-US\");\n    return `${stat.prefix ?? \"\"}${number}${stat.suffix ?? \"\"}`;\n  };\n</script>\n","category":"Metric","description":"Bold brand metrics on a grid pattern. Features: Brand colored panel with a masked grid, light text that follows the theme, four values that count up on view","path":"Metric/BlockMetric9.vue","components":["container"]},{"name":"Month Views 1","fileName":"BlockMonthViews1.vue","file":"<template>\n  <!--\n    Month calendar with events\n    Features: Month grid with previous, next and today buttons, color coded event chips with a plus more link, days outside the month dimmed, today highlighted, selectable days with a details list and full keyboard access\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-wrap items-center justify-between gap-3\">\n      <h1 class=\"text-2xl font-bold tracking-tight\" aria-live=\"polite\">{{ monthLabel }}</h1>\n      <div class=\"flex items-center gap-2\">\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Previous month\" @click=\"shift(-1)\"\n          ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n        /></UiButton>\n        <UiButton variant=\"outline\" @click=\"goToday\">Today</UiButton>\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Next month\" @click=\"shift(1)\"\n          ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n        /></UiButton>\n      </div>\n    </div>\n\n    <div class=\"mt-6 overflow-x-auto\">\n      <div class=\"min-w-[40rem] overflow-hidden rounded-xl border\">\n        <div\n          class=\"bg-muted/50 grid grid-cols-7 border-b text-center text-xs font-medium\"\n          aria-hidden=\"true\"\n        >\n          <div v-for=\"name in weekdays\" :key=\"name\" class=\"text-muted-foreground py-2\">\n            {{ name }}\n          </div>\n        </div>\n        <div class=\"grid grid-cols-7\" role=\"group\" :aria-label=\"monthLabel\">\n          <button\n            v-for=\"day in days\"\n            :key=\"day\"\n            type=\"button\"\n            class=\"focus-visible:ring-ring/50 min-h-24 border-r border-b p-1.5 text-left align-top outline-none last:border-r-0 focus-visible:ring-[3px] focus-visible:ring-inset [&:nth-child(7n)]:border-r-0\"\n            :class=\"[\n              inMonth(day) ? '' : 'bg-muted/30 text-muted-foreground',\n              selected === day ? 'bg-primary/5' : '',\n            ]\"\n            :aria-pressed=\"selected === day\"\n            :aria-label=\"`${longDate(day)}, ${eventsOn(day).length} events`\"\n            @click=\"selected = day\"\n          >\n            <span\n              class=\"inline-grid size-6 place-items-center rounded-full text-xs font-medium\"\n              :class=\"day === today ? 'bg-primary text-primary-foreground' : ''\"\n              >{{ Number(day.slice(8)) }}</span\n            >\n            <span\n              v-for=\"event in eventsOn(day).slice(0, 2)\"\n              :key=\"event.id\"\n              class=\"mt-1 block truncate rounded px-1.5 py-0.5 text-[11px] font-medium\"\n              :class=\"colors[event.color]\"\n              >{{ event.title }}</span\n            >\n            <span\n              v-if=\"eventsOn(day).length > 2\"\n              class=\"text-muted-foreground mt-0.5 block px-1 text-[11px]\"\n              >+{{ eventsOn(day).length - 2 }} more</span\n            >\n          </button>\n        </div>\n      </div>\n    </div>\n\n    <section class=\"mt-6 rounded-xl border p-4\" aria-live=\"polite\" aria-label=\"Selected day\">\n      <h2 class=\"text-sm font-semibold\">{{ longDate(selected) }}</h2>\n      <ul v-if=\"eventsOn(selected).length\" class=\"mt-3 space-y-2\">\n        <li\n          v-for=\"event in eventsOn(selected)\"\n          :key=\"event.id\"\n          class=\"flex items-center gap-3 text-sm\"\n        >\n          <span class=\"size-2.5 rounded-full\" :class=\"dots[event.color]\" />\n          <span class=\"flex-1\">{{ event.title }}</span>\n          <span class=\"text-muted-foreground text-xs\">{{ event.time }}</span>\n        </li>\n      </ul>\n      <p v-else class=\"text-muted-foreground mt-2 text-sm\">No events on this day.</p>\n    </section>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"blue\" | \"green\" | \"amber\" | \"rose\" | \"violet\";\n  type Event = { id: string; title: string; date: string; time: string; color: Color };\n\n  const props = withDefaults(\n    defineProps<{\n      /** The date highlighted as today (ISO). Use today's date in your own app. */\n      today?: string;\n      events?: Event[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      events: () => [\n        { id: \"e1\", title: \"Team standup\", date: \"2026-10-05\", time: \"9:30 AM\", color: \"blue\" },\n        { id: \"e2\", title: \"Design review\", date: \"2026-10-08\", time: \"2:00 PM\", color: \"violet\" },\n        { id: \"e3\", title: \"Product launch\", date: \"2026-10-15\", time: \"All day\", color: \"rose\" },\n        { id: \"e4\", title: \"1:1 with Sofia\", date: \"2026-10-18\", time: \"11:00 AM\", color: \"green\" },\n        { id: \"e5\", title: \"Budget meeting\", date: \"2026-10-18\", time: \"3:00 PM\", color: \"amber\" },\n        { id: \"e6\", title: \"Team lunch\", date: \"2026-10-18\", time: \"12:30 PM\", color: \"green\" },\n        { id: \"e7\", title: \"Customer call\", date: \"2026-10-18\", time: \"4:30 PM\", color: \"blue\" },\n        { id: \"e8\", title: \"Sprint planning\", date: \"2026-10-21\", time: \"10:00 AM\", color: \"blue\" },\n        { id: \"e9\", title: \"Webinar\", date: \"2026-10-27\", time: \"5:00 PM\", color: \"violet\" },\n        { id: \"e10\", title: \"Offsite\", date: \"2026-10-30\", time: \"All day\", color: \"amber\" },\n      ],\n    }\n  );\n\n  const weekdays = [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"];\n  const colors: Record<Color, string> = {\n    blue: \"bg-blue-100 text-blue-800 dark:bg-blue-500/20 dark:text-blue-300\",\n    green: \"bg-green-100 text-green-800 dark:bg-green-500/20 dark:text-green-300\",\n    amber: \"bg-amber-100 text-amber-800 dark:bg-amber-500/20 dark:text-amber-300\",\n    rose: \"bg-rose-100 text-rose-800 dark:bg-rose-500/20 dark:text-rose-300\",\n    violet: \"bg-violet-100 text-violet-800 dark:bg-violet-500/20 dark:text-violet-300\",\n  };\n  const dots: Record<Color, string> = {\n    blue: \"bg-blue-500\",\n    green: \"bg-green-500\",\n    amber: \"bg-amber-500\",\n    rose: \"bg-rose-500\",\n    violet: \"bg-violet-500\",\n  };\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const fmt = (date: Date) => date.toISOString().slice(0, 10);\n  const addDays = (iso: string, count: number) => {\n    const date = parse(iso);\n    date.setUTCDate(date.getUTCDate() + count);\n    return fmt(date);\n  };\n\n  const view = ref(props.today.slice(0, 7));\n  const selected = ref(props.today);\n\n  const days = computed(() => {\n    const first = parse(`${view.value}-01`);\n    const start = addDays(fmt(first), -first.getUTCDay());\n    return Array.from({ length: 42 }, (_, index) => addDays(start, index));\n  });\n\n  const inMonth = (iso: string) => iso.startsWith(view.value);\n  const eventsOn = (iso: string) => props.events.filter((event) => event.date === iso);\n  const longDate = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  const monthLabel = computed(() =>\n    parse(`${view.value}-01`).toLocaleDateString(\"en-US\", {\n      month: \"long\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    })\n  );\n\n  function shift(step: number) {\n    const date = parse(`${view.value}-01`);\n    date.setUTCMonth(date.getUTCMonth() + step);\n    view.value = fmt(date).slice(0, 7);\n  }\n\n  function goToday() {\n    view.value = props.today.slice(0, 7);\n    selected.value = props.today;\n  }\n</script>\n","category":"MonthViews","description":"Month calendar with events. Features: Month grid with previous, next and today buttons, color coded event chips with a plus more link, days outside the month dimmed, today highlighted, selectable days with a details list and full keyboard access","path":"Calendar/MonthViews/BlockMonthViews1.vue","components":["button","container"]},{"name":"Month Views 2","fileName":"BlockMonthViews2.vue","file":"<template>\n  <!--\n    Mini calendar with an agenda\n    Features: Compact calendar with dots on days that have events, pick a day to see its agenda, agenda items with time, place and attendees, empty day message and an add event button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-4xl gap-8 md:grid-cols-[auto_1fr]\">\n      <div class=\"mx-auto\">\n        <UiCalendar :attributes=\"attributes\" expanded class=\"rounded-xl border\" @dayclick=\"pick\" />\n      </div>\n\n      <section aria-live=\"polite\">\n        <div class=\"flex items-center justify-between gap-3\">\n          <h1 class=\"text-xl font-bold tracking-tight\">{{ heading }}</h1>\n          <UiButton size=\"sm\" @click=\"useSonner.info('Open your new event form here')\"\n            ><Icon name=\"lucide:plus\" class=\"size-4\" />Add event</UiButton\n          >\n        </div>\n        <ul v-if=\"agenda.length\" class=\"mt-4 space-y-3\">\n          <li v-for=\"event in agenda\" :key=\"event.id\" class=\"flex gap-4 rounded-xl border p-4\">\n            <div class=\"text-muted-foreground w-16 shrink-0 text-sm tabular-nums\">\n              {{ event.time }}\n            </div>\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"font-medium\">{{ event.title }}</p>\n              <p class=\"text-muted-foreground mt-0.5 flex items-center gap-1 text-sm\">\n                <Icon name=\"lucide:map-pin\" class=\"size-3.5\" />{{ event.place }}\n              </p>\n              <div class=\"mt-2 flex -space-x-1.5\">\n                <UiAvatar\n                  v-for=\"person in event.people\"\n                  :key=\"person\"\n                  :src=\"`https://i.pravatar.cc/80?img=${person}`\"\n                  fallback=\"?\"\n                  class=\"ring-background size-6 ring-2\"\n                />\n              </div>\n            </div>\n          </li>\n        </ul>\n        <p\n          v-else\n          class=\"text-muted-foreground mt-4 rounded-xl border border-dashed py-12 text-center text-sm\"\n        >\n          Nothing planned. Enjoy the free day.\n        </p>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = {\n    id: string;\n    title: string;\n    date: string;\n    time: string;\n    place: string;\n    people: number[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      events?: Event[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      events: () => [\n        {\n          id: \"a1\",\n          title: \"Weekly standup\",\n          date: \"2026-10-18\",\n          time: \"9:30\",\n          place: \"Meeting room 2\",\n          people: [32, 12, 44],\n        },\n        {\n          id: \"a2\",\n          title: \"Design review\",\n          date: \"2026-10-18\",\n          time: \"13:00\",\n          place: \"Video call\",\n          people: [32, 45],\n        },\n        {\n          id: \"a3\",\n          title: \"Customer interview\",\n          date: \"2026-10-18\",\n          time: \"16:00\",\n          place: \"Video call\",\n          people: [15],\n        },\n        {\n          id: \"a4\",\n          title: \"Sprint planning\",\n          date: \"2026-10-21\",\n          time: \"10:00\",\n          place: \"Meeting room 1\",\n          people: [12, 15, 45, 44],\n        },\n        {\n          id: \"a5\",\n          title: \"Quarterly review\",\n          date: \"2026-10-27\",\n          time: \"14:00\",\n          place: \"Boardroom\",\n          people: [45, 33],\n        },\n      ],\n    }\n  );\n\n  const picked = ref(new Date(`${props.today}T12:00:00`));\n\n  function pick(day: { date: Date }) {\n    picked.value = day.date;\n  }\n\n  const iso = (date: Date) =>\n    `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, \"0\")}-${String(date.getDate()).padStart(2, \"0\")}`;\n\n  const attributes = computed(() => [\n    {\n      key: \"picked\",\n      highlight: { color: \"blue\", fillMode: \"light\" as const },\n      dates: picked.value,\n    },\n    ...[...new Set(props.events.map((event) => event.date))].map((date) => ({\n      key: date,\n      dot: \"blue\",\n      dates: new Date(`${date}T12:00:00`),\n    })),\n  ]);\n\n  const agenda = computed(() => props.events.filter((event) => event.date === iso(picked.value)));\n  const heading = computed(() =>\n    picked.value.toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n    })\n  );\n</script>\n","category":"MonthViews","description":"Mini calendar with an agenda. Features: Compact calendar with dots on days that have events, pick a day to see its agenda, agenda items with time, place and attendees, empty day message and an add event button","path":"Calendar/MonthViews/BlockMonthViews2.vue","components":["avatar","button","calendar","container"]},{"name":"Month Views 3","fileName":"BlockMonthViews3.vue","file":"<template>\n  <!--\n    Compact month with event dots\n    Features: Small month grid with dots for events, days with many events get a stronger tint, selected day ring, arrow key navigation between days and a list of events for the chosen day\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-sm\">\n      <div class=\"mb-3 flex items-center justify-between\">\n        <h1 class=\"font-semibold\" aria-live=\"polite\">{{ monthLabel }}</h1>\n        <div class=\"flex gap-1\">\n          <UiButton variant=\"ghost\" size=\"icon-sm\" aria-label=\"Previous month\" @click=\"shift(-1)\"\n            ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n          /></UiButton>\n          <UiButton variant=\"ghost\" size=\"icon-sm\" aria-label=\"Next month\" @click=\"shift(1)\"\n            ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n          /></UiButton>\n        </div>\n      </div>\n\n      <div class=\"text-muted-foreground grid grid-cols-7 text-center text-xs\" aria-hidden=\"true\">\n        <span v-for=\"name in weekdays\" :key=\"name\" class=\"py-1\">{{ name }}</span>\n      </div>\n      <div class=\"grid grid-cols-7 gap-y-1\" role=\"group\" :aria-label=\"monthLabel\" @keydown=\"onKey\">\n        <button\n          v-for=\"day in days\"\n          :key=\"day\"\n          type=\"button\"\n          :data-day=\"day\"\n          class=\"focus-visible:ring-ring/50 relative mx-auto flex size-10 flex-col items-center justify-center rounded-lg text-sm outline-none focus-visible:ring-[3px]\"\n          :class=\"[\n            inMonth(day) ? '' : 'text-muted-foreground/50',\n            selected === day ? 'ring-primary ring-2' : '',\n            count(day) > 2 ? 'bg-primary/10' : '',\n            day === today ? 'font-bold' : '',\n          ]\"\n          :tabindex=\"selected === day ? 0 : -1\"\n          :aria-pressed=\"selected === day\"\n          :aria-label=\"`${longDate(day)}, ${count(day)} events`\"\n          @click=\"selected = day\"\n        >\n          {{ Number(day.slice(8)) }}\n          <span class=\"absolute bottom-1 flex gap-0.5\" aria-hidden=\"true\">\n            <span\n              v-for=\"n in Math.min(count(day), 3)\"\n              :key=\"n\"\n              class=\"bg-primary size-1 rounded-full\"\n            />\n          </span>\n        </button>\n      </div>\n\n      <section class=\"mt-5 border-t pt-4\" aria-live=\"polite\">\n        <h2 class=\"text-sm font-semibold\">{{ longDate(selected) }}</h2>\n        <ul v-if=\"count(selected)\" class=\"mt-2 space-y-1.5 text-sm\">\n          <li\n            v-for=\"event in events.filter((item) => item.date === selected)\"\n            :key=\"event.id\"\n            class=\"flex items-center gap-2\"\n          >\n            <span class=\"bg-primary size-1.5 rounded-full\" />{{ event.title\n            }}<span class=\"text-muted-foreground ml-auto text-xs\">{{ event.time }}</span>\n          </li>\n        </ul>\n        <p v-else class=\"text-muted-foreground mt-2 text-sm\">No events.</p>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = { id: string; title: string; date: string; time: string };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      events?: Event[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      events: () => [\n        { id: \"d1\", title: \"Standup\", date: \"2026-10-06\", time: \"9:30\" },\n        { id: \"d2\", title: \"Dentist\", date: \"2026-10-09\", time: \"8:15\" },\n        { id: \"d3\", title: \"Standup\", date: \"2026-10-13\", time: \"9:30\" },\n        { id: \"d4\", title: \"Launch party\", date: \"2026-10-15\", time: \"18:00\" },\n        { id: \"d5\", title: \"Gym\", date: \"2026-10-18\", time: \"7:00\" },\n        { id: \"d6\", title: \"Planning\", date: \"2026-10-18\", time: \"10:00\" },\n        { id: \"d7\", title: \"Dinner with Sofia\", date: \"2026-10-18\", time: \"19:30\" },\n        { id: \"d8\", title: \"Standup\", date: \"2026-10-20\", time: \"9:30\" },\n        { id: \"d9\", title: \"Haircut\", date: \"2026-10-24\", time: \"11:00\" },\n      ],\n    }\n  );\n\n  const weekdays = [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"];\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const fmt = (date: Date) => date.toISOString().slice(0, 10);\n  const addDays = (iso: string, count: number) => {\n    const date = parse(iso);\n    date.setUTCDate(date.getUTCDate() + count);\n    return fmt(date);\n  };\n\n  const view = ref(props.today.slice(0, 7));\n  const selected = ref(props.today);\n\n  const days = computed(() => {\n    const first = parse(`${view.value}-01`);\n    const start = addDays(fmt(first), -first.getUTCDay());\n    return Array.from({ length: 42 }, (_, index) => addDays(start, index));\n  });\n\n  const inMonth = (iso: string) => iso.startsWith(view.value);\n  const count = (iso: string) => props.events.filter((event) => event.date === iso).length;\n  const longDate = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  const monthLabel = computed(() =>\n    parse(`${view.value}-01`).toLocaleDateString(\"en-US\", {\n      month: \"long\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    })\n  );\n\n  function shift(step: number) {\n    const date = parse(`${view.value}-01`);\n    date.setUTCMonth(date.getUTCMonth() + step);\n    view.value = fmt(date).slice(0, 7);\n    selected.value = `${view.value}-01`;\n  }\n\n  function onKey(event: KeyboardEvent) {\n    const move: Record<string, number> = {\n      ArrowLeft: -1,\n      ArrowRight: 1,\n      ArrowUp: -7,\n      ArrowDown: 7,\n    };\n    const step = move[event.key];\n    if (step === undefined) return;\n    event.preventDefault();\n    const next = addDays(selected.value, step);\n    selected.value = next;\n    view.value = next.slice(0, 7);\n    nextTick(() => (document.querySelector(`[data-day=\"${next}\"]`) as HTMLElement | null)?.focus());\n  }\n</script>\n","category":"MonthViews","description":"Compact month with event dots. Features: Small month grid with dots for events, days with many events get a stronger tint, selected day ring, arrow key navigation between days and a list of events for the chosen day","path":"Calendar/MonthViews/BlockMonthViews3.vue","components":["button","container"]},{"name":"Month Views 4","fileName":"BlockMonthViews4.vue","file":"<template>\n  <!--\n    Month calendar with multi day events\n    Features: Events that span several days drawn as bars across the week rows, bars that continue over week breaks with rounded ends only where they start and finish, a legend and an accessible list of events below\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex items-center justify-between gap-3\">\n      <h1 class=\"text-2xl font-bold tracking-tight\" aria-live=\"polite\">{{ monthLabel }}</h1>\n      <div class=\"flex gap-2\">\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Previous month\" @click=\"shift(-1)\"\n          ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n        /></UiButton>\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Next month\" @click=\"shift(1)\"\n          ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n        /></UiButton>\n      </div>\n    </div>\n\n    <div class=\"mt-6 overflow-x-auto\">\n      <div class=\"min-w-[40rem] overflow-hidden rounded-xl border\" aria-hidden=\"true\">\n        <div class=\"bg-muted/50 grid grid-cols-7 border-b text-center text-xs font-medium\">\n          <div v-for=\"name in weekdays\" :key=\"name\" class=\"text-muted-foreground py-2\">\n            {{ name }}\n          </div>\n        </div>\n        <div v-for=\"(week, index) in weeks\" :key=\"index\" class=\"relative border-b last:border-b-0\">\n          <div class=\"grid grid-cols-7\">\n            <div\n              v-for=\"day in week.days\"\n              :key=\"day\"\n              class=\"border-r px-1.5 py-1 text-xs last:border-r-0\"\n              :class=\"inMonth(day) ? '' : 'bg-muted/30 text-muted-foreground'\"\n              :style=\"{ minHeight: `${Math.max(6, 2.25 + week.lanes * 1.5)}rem` }\"\n            >\n              <span\n                class=\"inline-grid size-6 place-items-center rounded-full font-medium\"\n                :class=\"day === today ? 'bg-primary text-primary-foreground' : ''\"\n                >{{ Number(day.slice(8)) }}</span\n              >\n            </div>\n          </div>\n          <div class=\"pointer-events-none absolute inset-x-0 top-8 grid grid-cols-7 gap-y-1 px-0.5\">\n            <div\n              v-for=\"bar in week.bars\"\n              :key=\"bar.id\"\n              class=\"truncate px-2 py-0.5 text-[11px] font-medium\"\n              :class=\"[\n                colors[bar.color],\n                bar.startsHere ? 'ml-0.5 rounded-l-md' : '',\n                bar.endsHere ? 'mr-0.5 rounded-r-md' : '',\n              ]\"\n              :style=\"{ gridColumn: `${bar.col} / span ${bar.span}`, gridRow: bar.lane + 1 }\"\n            >\n              {{ bar.startsHere || bar.col === 1 ? bar.title : \"\" }}\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n\n    <ul class=\"mt-6 grid gap-2 sm:grid-cols-2\" aria-label=\"Events this month\">\n      <li\n        v-for=\"event in monthEvents\"\n        :key=\"event.id\"\n        class=\"flex items-center gap-3 rounded-lg border px-3 py-2 text-sm\"\n      >\n        <span class=\"size-2.5 rounded-full\" :class=\"dots[event.color]\" />\n        <span class=\"flex-1 font-medium\">{{ event.title }}</span>\n        <span class=\"text-muted-foreground text-xs\">{{ range(event) }}</span>\n      </li>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"blue\" | \"green\" | \"amber\" | \"rose\" | \"violet\";\n  type Event = { id: string; title: string; start: string; end: string; color: Color };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      events?: Event[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      events: () => [\n        {\n          id: \"m1\",\n          title: \"Conference in Berlin\",\n          start: \"2026-10-05\",\n          end: \"2026-10-08\",\n          color: \"blue\",\n        },\n        {\n          id: \"m2\",\n          title: \"Design sprint\",\n          start: \"2026-10-12\",\n          end: \"2026-10-16\",\n          color: \"violet\",\n        },\n        { id: \"m3\", title: \"Vacation\", start: \"2026-10-19\", end: \"2026-10-23\", color: \"green\" },\n        {\n          id: \"m4\",\n          title: \"Product launch week\",\n          start: \"2026-10-26\",\n          end: \"2026-11-01\",\n          color: \"rose\",\n        },\n        { id: \"m5\", title: \"Training\", start: \"2026-10-14\", end: \"2026-10-15\", color: \"amber\" },\n      ],\n    }\n  );\n\n  const weekdays = [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"];\n  const colors: Record<Color, string> = {\n    blue: \"bg-blue-200 text-blue-900 dark:bg-blue-500/30 dark:text-blue-200\",\n    green: \"bg-green-200 text-green-900 dark:bg-green-500/30 dark:text-green-200\",\n    amber: \"bg-amber-200 text-amber-900 dark:bg-amber-500/30 dark:text-amber-200\",\n    rose: \"bg-rose-200 text-rose-900 dark:bg-rose-500/30 dark:text-rose-200\",\n    violet: \"bg-violet-200 text-violet-900 dark:bg-violet-500/30 dark:text-violet-200\",\n  };\n  const dots: Record<Color, string> = {\n    blue: \"bg-blue-500\",\n    green: \"bg-green-500\",\n    amber: \"bg-amber-500\",\n    rose: \"bg-rose-500\",\n    violet: \"bg-violet-500\",\n  };\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const fmt = (date: Date) => date.toISOString().slice(0, 10);\n  const addDays = (iso: string, count: number) => {\n    const date = parse(iso);\n    date.setUTCDate(date.getUTCDate() + count);\n    return fmt(date);\n  };\n\n  const view = ref(props.today.slice(0, 7));\n\n  const weeks = computed(() => {\n    const first = parse(`${view.value}-01`);\n    const start = addDays(fmt(first), -first.getUTCDay());\n    return Array.from({ length: 6 }, (_, w) => {\n      const days = Array.from({ length: 7 }, (_, d) => addDays(start, w * 7 + d));\n      const first = days[0]!;\n      const last = days[6]!;\n      const lanes: number[] = [];\n      const bars = props.events\n        .filter((event) => event.start <= last && event.end >= first)\n        .sort((a, b) => a.start.localeCompare(b.start))\n        .map((event) => {\n          const from = event.start < first ? first : event.start;\n          const to = event.end > last ? last : event.end;\n          const col = days.indexOf(from) + 1;\n          const span = days.indexOf(to) + 1 - col + 1;\n          let lane = lanes.findIndex((end) => end < col);\n          if (lane === -1) lane = lanes.length;\n          lanes[lane] = col + span - 1;\n          return {\n            id: event.id,\n            title: event.title,\n            color: event.color,\n            col,\n            span,\n            lane,\n            startsHere: event.start >= first,\n            endsHere: event.end <= last,\n          };\n        });\n      return { days, bars, lanes: lanes.length };\n    });\n  });\n\n  const inMonth = (iso: string) => iso.startsWith(view.value);\n  const monthEvents = computed(() =>\n    props.events.filter(\n      (event) => event.start.slice(0, 7) === view.value || event.end.slice(0, 7) === view.value\n    )\n  );\n  const monthLabel = computed(() =>\n    parse(`${view.value}-01`).toLocaleDateString(\"en-US\", {\n      month: \"long\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    })\n  );\n  const label = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", { month: \"short\", day: \"numeric\", timeZone: \"UTC\" });\n  const range = (event: Event) =>\n    event.start === event.end ? label(event.start) : `${label(event.start)} to ${label(event.end)}`;\n\n  function shift(step: number) {\n    const date = parse(`${view.value}-01`);\n    date.setUTCMonth(date.getUTCMonth() + step);\n    view.value = fmt(date).slice(0, 7);\n  }\n</script>\n","category":"MonthViews","description":"Month calendar with multi day events. Features: Events that span several days drawn as bars across the week rows, bars that continue over week breaks with rounded ends only where they start and finish, a legend and an accessible list of events below","path":"Calendar/MonthViews/BlockMonthViews4.vue","components":["button","container"]},{"name":"Month Views 5","fileName":"BlockMonthViews5.vue","file":"<template>\n  <!--\n    Year overview with twelve months\n    Features: Mini month grids for the whole year, days with events marked, today highlighted, month headings that jump to a detail panel, previous and next year buttons and event counts per month\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex items-center justify-between gap-3\">\n      <h1 class=\"text-2xl font-bold tracking-tight\" aria-live=\"polite\">{{ year }}</h1>\n      <div class=\"flex gap-2\">\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Previous year\" @click=\"year--\"\n          ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n        /></UiButton>\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Next year\" @click=\"year++\"\n          ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n        /></UiButton>\n      </div>\n    </div>\n\n    <div class=\"mt-6 grid gap-6 sm:grid-cols-2 lg:grid-cols-4\">\n      <section v-for=\"month in months\" :key=\"month.index\" :aria-label=\"month.name\">\n        <h2 class=\"mb-1\">\n          <button\n            type=\"button\"\n            class=\"hover:text-primary focus-visible:ring-ring/50 flex w-full items-center justify-between rounded px-1 text-sm font-semibold outline-none focus-visible:ring-[3px]\"\n            :aria-pressed=\"active === month.index\"\n            @click=\"active = month.index\"\n          >\n            {{ month.name }}\n            <span v-if=\"month.count\" class=\"text-muted-foreground text-xs font-normal\"\n              >{{ month.count }} {{ month.count === 1 ? \"event\" : \"events\" }}</span\n            >\n          </button>\n        </h2>\n        <div\n          class=\"text-muted-foreground grid grid-cols-7 text-center text-[10px]\"\n          aria-hidden=\"true\"\n        >\n          <span v-for=\"(name, i) in weekdays\" :key=\"i\">{{ name }}</span>\n        </div>\n        <div class=\"grid grid-cols-7 text-center text-xs\">\n          <span\n            v-for=\"(cell, i) in month.cells\"\n            :key=\"i\"\n            class=\"mx-auto grid size-7 place-items-center rounded-full\"\n            :class=\"[\n              cell.today ? 'bg-primary text-primary-foreground font-semibold' : '',\n              cell.event && !cell.today\n                ? 'bg-blue-100 font-medium text-blue-800 dark:bg-blue-500/20 dark:text-blue-300'\n                : '',\n            ]\"\n            >{{ cell.day }}<span v-if=\"cell.label\" class=\"sr-only\">, {{ cell.label }}</span></span\n          >\n        </div>\n      </section>\n    </div>\n\n    <section class=\"mt-8 rounded-xl border p-4\" aria-live=\"polite\">\n      <h2 class=\"text-sm font-semibold\">{{ months[active]!.name }} {{ year }}</h2>\n      <ul v-if=\"activeEvents.length\" class=\"mt-3 space-y-2 text-sm\">\n        <li v-for=\"event in activeEvents\" :key=\"event.id\" class=\"flex items-center gap-3\">\n          <Icon name=\"lucide:calendar-days\" class=\"text-muted-foreground size-4\" /><span\n            class=\"flex-1\"\n            >{{ event.title }}</span\n          ><span class=\"text-muted-foreground text-xs\">{{ shortDate(event.date) }}</span>\n        </li>\n      </ul>\n      <p v-else class=\"text-muted-foreground mt-2 text-sm\">No events this month.</p>\n    </section>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = { id: string; title: string; date: string };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      events?: Event[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      events: () => [\n        { id: \"y1\", title: \"Team offsite\", date: \"2026-02-12\" },\n        { id: \"y2\", title: \"Spring launch\", date: \"2026-03-20\" },\n        { id: \"y3\", title: \"Board meeting\", date: \"2026-05-07\" },\n        { id: \"y4\", title: \"Summer break begins\", date: \"2026-07-01\" },\n        { id: \"y5\", title: \"Conference talk\", date: \"2026-09-10\" },\n        { id: \"y6\", title: \"Product launch\", date: \"2026-10-15\" },\n        { id: \"y7\", title: \"Quarterly review\", date: \"2026-10-27\" },\n        { id: \"y8\", title: \"Holiday party\", date: \"2026-12-17\" },\n      ],\n    }\n  );\n\n  const weekdays = [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"];\n  const year = ref(Number(props.today.slice(0, 4)));\n  const active = ref(Number(props.today.slice(5, 7)) - 1);\n\n  const months = computed(() =>\n    Array.from({ length: 12 }, (_, index) => {\n      const first = new Date(Date.UTC(year.value, index, 1));\n      const length = new Date(Date.UTC(year.value, index + 1, 0)).getUTCDate();\n      const prefix = `${year.value}-${String(index + 1).padStart(2, \"0\")}`;\n      const cells: { day: number | string; today: boolean; event: boolean; label?: string }[] =\n        Array.from({ length: first.getUTCDay() }, () => ({ day: \"\", today: false, event: false }));\n      for (let day = 1; day <= length; day++) {\n        const iso = `${prefix}-${String(day).padStart(2, \"0\")}`;\n        const hits = props.events.filter((event) => event.date === iso);\n        cells.push({\n          day,\n          today: iso === props.today,\n          event: hits.length > 0,\n          label: hits.map((hit) => hit.title).join(\", \"),\n        });\n      }\n      return {\n        index,\n        name: first.toLocaleDateString(\"en-US\", { month: \"long\", timeZone: \"UTC\" }),\n        cells,\n        count: props.events.filter((event) => event.date.startsWith(prefix)).length,\n      };\n    })\n  );\n\n  const activeEvents = computed(() =>\n    props.events.filter((event) =>\n      event.date.startsWith(`${year.value}-${String(active.value + 1).padStart(2, \"0\")}`)\n    )\n  );\n  const shortDate = (iso: string) =>\n    new Date(`${iso}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"MonthViews","description":"Year overview with twelve months. Features: Mini month grids for the whole year, days with events marked, today highlighted, month headings that jump to a detail panel, previous and next year buttons and event counts per month","path":"Calendar/MonthViews/BlockMonthViews5.vue","components":["button","container"]},{"name":"Month Views 6","fileName":"BlockMonthViews6.vue","file":"<template>\n  <!--\n    Compact calendar widget with upcoming events\n    Features: Small card with the current month and event markers, the next three events with relative day labels and a view all link\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-xs gap-4\">\n      <UiCardHeader class=\"flex flex-row items-center justify-between gap-2 pb-0\">\n        <UiCardTitle class=\"text-base\" aria-live=\"polite\">{{ monthLabel }}</UiCardTitle>\n        <div class=\"flex gap-1\">\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"size-7\"\n            aria-label=\"Previous month\"\n            @click=\"shift(-1)\"\n            ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n          /></UiButton>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"size-7\"\n            aria-label=\"Next month\"\n            @click=\"shift(1)\"\n            ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n          /></UiButton>\n        </div>\n      </UiCardHeader>\n      <UiCardContent>\n        <div\n          class=\"text-muted-foreground grid grid-cols-7 text-center text-[11px]\"\n          aria-hidden=\"true\"\n        >\n          <span v-for=\"(name, i) in weekdays\" :key=\"i\">{{ name }}</span>\n        </div>\n        <div class=\"grid grid-cols-7 gap-y-0.5 text-center text-xs\">\n          <span\n            v-for=\"day in days\"\n            :key=\"day\"\n            class=\"relative mx-auto grid size-8 place-items-center rounded-full\"\n            :class=\"[\n              inMonth(day) ? '' : 'text-muted-foreground/40',\n              day === today ? 'bg-primary text-primary-foreground font-semibold' : '',\n            ]\"\n          >\n            {{ Number(day.slice(8)) }}\n            <span v-if=\"hasEvent(day)\" class=\"sr-only\">, has events</span>\n            <span\n              v-if=\"hasEvent(day) && day !== today\"\n              class=\"bg-primary absolute bottom-0.5 size-1 rounded-full\"\n            />\n          </span>\n        </div>\n      </UiCardContent>\n      <UiCardContent class=\"border-t pt-4\">\n        <h2 class=\"mb-2 text-xs font-semibold tracking-wide uppercase\">Upcoming</h2>\n        <ul class=\"space-y-3\">\n          <li v-for=\"event in upcoming\" :key=\"event.id\" class=\"flex items-start gap-3\">\n            <span\n              class=\"bg-muted flex w-10 shrink-0 flex-col items-center rounded-md py-1 text-[10px] leading-tight font-semibold uppercase\"\n              >{{ month(event.date)\n              }}<span class=\"text-sm\">{{ Number(event.date.slice(8)) }}</span></span\n            >\n            <div class=\"min-w-0\">\n              <p class=\"truncate text-sm font-medium\">{{ event.title }}</p>\n              <p class=\"text-muted-foreground text-xs\">\n                {{ relative(event.date) }} · {{ event.time }}\n              </p>\n            </div>\n          </li>\n          <li v-if=\"!upcoming.length\" class=\"text-muted-foreground text-sm\">Nothing coming up.</li>\n        </ul>\n        <UiButton\n          variant=\"link\"\n          size=\"sm\"\n          class=\"mt-2 h-auto p-0\"\n          @click=\"useSonner.info('Open your full calendar here')\"\n          >View all events</UiButton\n        >\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = { id: string; title: string; date: string; time: string };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      events?: Event[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      events: () => [\n        { id: \"w1\", title: \"Design review\", date: \"2026-10-18\", time: \"2:00 PM\" },\n        { id: \"w2\", title: \"Sprint planning\", date: \"2026-10-21\", time: \"10:00 AM\" },\n        { id: \"w3\", title: \"Customer webinar\", date: \"2026-10-27\", time: \"5:00 PM\" },\n        { id: \"w4\", title: \"Team offsite\", date: \"2026-11-05\", time: \"All day\" },\n        { id: \"w5\", title: \"Quarterly review\", date: \"2026-11-12\", time: \"1:00 PM\" },\n      ],\n    }\n  );\n\n  const weekdays = [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"];\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const fmt = (date: Date) => date.toISOString().slice(0, 10);\n  const addDays = (iso: string, count: number) => {\n    const date = parse(iso);\n    date.setUTCDate(date.getUTCDate() + count);\n    return fmt(date);\n  };\n\n  const view = ref(props.today.slice(0, 7));\n\n  const days = computed(() => {\n    const first = parse(`${view.value}-01`);\n    const start = addDays(fmt(first), -first.getUTCDay());\n    return Array.from({ length: 42 }, (_, index) => addDays(start, index));\n  });\n\n  const inMonth = (iso: string) => iso.startsWith(view.value);\n  const hasEvent = (iso: string) => props.events.some((event) => event.date === iso);\n  const upcoming = computed(() =>\n    props.events.filter((event) => event.date >= props.today).slice(0, 3)\n  );\n  const monthLabel = computed(() =>\n    parse(`${view.value}-01`).toLocaleDateString(\"en-US\", {\n      month: \"long\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    })\n  );\n  const month = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", { month: \"short\", timeZone: \"UTC\" });\n\n  function relative(iso: string) {\n    const diff = Math.round((parse(iso).getTime() - parse(props.today).getTime()) / 86_400_000);\n    if (diff === 0) return \"Today\";\n    if (diff === 1) return \"Tomorrow\";\n    return `In ${diff} days`;\n  }\n\n  function shift(step: number) {\n    const date = parse(`${view.value}-01`);\n    date.setUTCMonth(date.getUTCMonth() + step);\n    view.value = fmt(date).slice(0, 7);\n  }\n</script>\n","category":"MonthViews","description":"Compact calendar widget with upcoming events. Features: Small card with the current month and event markers, the next three events with relative day labels and a view all link","path":"Calendar/MonthViews/BlockMonthViews6.vue","components":["button","card","container"]},{"name":"Navigation 1","fileName":"BlockNavigation1.vue","file":"<template>\n  <!--\n    Mega menu header with grouped columns and a featured card\n    Features: Product and solutions columns with icons and descriptions, featured announcement card in the dropdown, sheet menu with accordions on small screens, sticky blurred bar\n  -->\n  <header class=\"bg-background/90 sticky top-0 z-20 border-b backdrop-blur\">\n    <UiContainer class=\"flex h-16 items-center justify-between gap-6 lg:h-[4.5rem]\">\n      <div class=\"flex items-center gap-8\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-6\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n\n        <UiNavigationMenu as=\"nav\" class=\"hidden lg:flex\" aria-label=\"Main\">\n          <UiNavigationMenuList class=\"gap-1\">\n            <UiNavigationMenuItem>\n              <UiNavigationMenuTrigger class=\"h-9 px-3 text-sm\">Product</UiNavigationMenuTrigger>\n              <UiNavigationMenuContent>\n                <div class=\"grid w-[52rem] grid-cols-[1fr_1fr_15rem] gap-6 p-5\">\n                  <div v-for=\"group in groups\" :key=\"group.title\">\n                    <p\n                      class=\"text-muted-foreground mb-3 px-3 text-xs font-semibold tracking-wide uppercase\"\n                    >\n                      {{ group.title }}\n                    </p>\n                    <ul class=\"space-y-1\">\n                      <li v-for=\"item in group.items\" :key=\"item.title\">\n                        <UiNavigationMenuLink as-child>\n                          <NuxtLink\n                            to=\"#\"\n                            class=\"hover:bg-muted flex flex-row gap-3 rounded-lg p-3 transition-colors\"\n                          >\n                            <UiFancyIcon\n                              :icon=\"item.icon\"\n                              theme=\"modern\"\n                              color=\"gray\"\n                              size=\"sm\"\n                              class=\"size-9\"\n                            />\n                            <span>\n                              <span class=\"block text-sm font-medium\">{{ item.title }}</span>\n                              <span class=\"text-muted-foreground block text-xs\">{{\n                                item.description\n                              }}</span>\n                            </span>\n                          </NuxtLink>\n                        </UiNavigationMenuLink>\n                      </li>\n                    </ul>\n                  </div>\n                  <NuxtLink\n                    to=\"#\"\n                    class=\"from-primary to-primary/80 text-primary-foreground group relative flex flex-col justify-end overflow-hidden rounded-xl bg-linear-to-br p-5\"\n                  >\n                    <div\n                      class=\"bg-primary-foreground/15 absolute -top-10 -right-10 size-40 rounded-full blur-2xl\"\n                    />\n                    <UiBadge variant=\"secondary\" class=\"relative mb-3 w-fit\">New</UiBadge>\n                    <p class=\"relative font-semibold\">Introducing AI planning</p>\n                    <p class=\"text-primary-foreground/75 relative mt-1 text-sm\">\n                      Turn goals into scoped work in seconds.\n                    </p>\n                    <span class=\"relative mt-4 flex items-center gap-1 text-sm font-medium\">\n                      Learn more\n                      <Icon\n                        name=\"lucide:arrow-right\"\n                        class=\"size-4 transition-transform group-hover:translate-x-0.5\"\n                      />\n                    </span>\n                  </NuxtLink>\n                </div>\n              </UiNavigationMenuContent>\n            </UiNavigationMenuItem>\n            <UiNavigationMenuItem v-for=\"link in links\" :key=\"link\">\n              <UiNavigationMenuLink as-child>\n                <UiButton to=\"#\" variant=\"ghost\" size=\"sm\">{{ link }}</UiButton>\n              </UiNavigationMenuLink>\n            </UiNavigationMenuItem>\n          </UiNavigationMenuList>\n        </UiNavigationMenu>\n      </div>\n\n      <div class=\"flex items-center gap-2\">\n        <UiButton variant=\"ghost\" size=\"sm\" class=\"hidden sm:inline-flex\">Log in</UiButton>\n        <UiButton size=\"sm\" class=\"hidden sm:inline-flex\">Sign up</UiButton>\n\n        <UiSheet v-model:open=\"open\">\n          <UiSheetTrigger as-child>\n            <UiButton variant=\"outline\" size=\"icon\" class=\"lg:hidden\" aria-label=\"Open menu\">\n              <Icon name=\"lucide:menu\" class=\"size-5\" />\n            </UiButton>\n          </UiSheetTrigger>\n          <UiSheetContent side=\"right\" class=\"w-[88%] overflow-y-auto p-0 sm:max-w-sm\">\n            <UiSheetTitle class=\"sr-only\" title=\"Menu\" />\n            <UiSheetDescription class=\"sr-only\" description=\"Site navigation\" />\n            <UiSheetX class=\"z-20\" />\n            <div class=\"border-b p-5 text-lg font-semibold\">{{ props.name }}</div>\n            <nav class=\"p-3\" aria-label=\"Mobile\">\n              <UiCollapsible\n                v-for=\"group in groups\"\n                :key=\"group.title\"\n                class=\"border-b last:border-b-0\"\n              >\n                <UiCollapsibleTrigger\n                  class=\"group flex w-full items-center justify-between rounded-md px-3 py-3 text-sm font-semibold\"\n                >\n                  {{ group.title }}\n                  <Icon\n                    name=\"lucide:chevron-down\"\n                    class=\"size-4 transition-transform group-data-[state=open]:rotate-180\"\n                  />\n                </UiCollapsibleTrigger>\n                <UiCollapsibleContent>\n                  <ul class=\"pb-2\">\n                    <li v-for=\"item in group.items\" :key=\"item.title\">\n                      <NuxtLink\n                        to=\"#\"\n                        class=\"hover:bg-muted flex items-center gap-3 rounded-md px-3 py-2.5 text-sm\"\n                        @click=\"open = false\"\n                      >\n                        <Icon :name=\"item.icon\" class=\"text-muted-foreground size-4\" />\n                        {{ item.title }}\n                      </NuxtLink>\n                    </li>\n                  </ul>\n                </UiCollapsibleContent>\n              </UiCollapsible>\n              <NuxtLink\n                v-for=\"link in links\"\n                :key=\"link\"\n                to=\"#\"\n                class=\"hover:bg-muted block rounded-md px-3 py-3 text-sm font-semibold\"\n              >\n                {{ link }}\n              </NuxtLink>\n            </nav>\n            <div class=\"grid grid-cols-2 gap-3 border-t p-5\">\n              <UiButton variant=\"outline\">Log in</UiButton>\n              <UiButton>Sign up</UiButton>\n            </div>\n          </UiSheetContent>\n        </UiSheet>\n      </div>\n    </UiContainer>\n  </header>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const open = ref(false);\n  const links = [\"Pricing\", \"Docs\", \"Company\"];\n  const groups = [\n    {\n      title: \"Platform\",\n      items: [\n        {\n          title: \"Analytics\",\n          description: \"Understand how people use your product.\",\n          icon: \"lucide:chart-no-axes-combined\",\n        },\n        {\n          title: \"Automations\",\n          description: \"Hand repetitive work to workflows.\",\n          icon: \"lucide:workflow\",\n        },\n        {\n          title: \"Integrations\",\n          description: \"Connect the tools you already use.\",\n          icon: \"lucide:plug\",\n        },\n      ],\n    },\n    {\n      title: \"Solutions\",\n      items: [\n        {\n          title: \"For startups\",\n          description: \"Move fast without the overhead.\",\n          icon: \"lucide:rocket\",\n        },\n        {\n          title: \"For enterprise\",\n          description: \"Security and control at scale.\",\n          icon: \"lucide:building-2\",\n        },\n        {\n          title: \"For agencies\",\n          description: \"Manage every client in one place.\",\n          icon: \"lucide:briefcase\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"Navigation","description":"Mega menu header with grouped columns and a featured card. Features: Product and solutions columns with icons and descriptions, featured announcement card in the dropdown, sheet menu with accordions on small screens, sticky blurred bar","path":"Navigation/BlockNavigation1.vue","components":["badge","button","collapsible","container","fancy-icon","navigation-menu","sheet"]},{"name":"Navigation 2","fileName":"BlockNavigation2.vue","file":"<template>\n  <!--\n    Header with icon card dropdowns and a call to action footer\n    Features: Dropdown of bordered feature cards with fancy icons, promo strip with a link at the bottom, resources dropdown, sheet menu on small screens\n  -->\n  <header class=\"bg-background/90 sticky top-0 z-20 border-b backdrop-blur\">\n    <UiContainer class=\"flex h-16 items-center justify-between gap-6 lg:h-[4.5rem]\">\n      <div class=\"flex items-center gap-8\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-6\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n\n        <UiNavigationMenu as=\"nav\" class=\"hidden lg:flex\" aria-label=\"Main\">\n          <UiNavigationMenuList class=\"gap-1\">\n            <UiNavigationMenuItem v-for=\"menu in menus\" :key=\"menu.title\">\n              <UiNavigationMenuTrigger class=\"h-9 px-3 text-sm\">{{\n                menu.title\n              }}</UiNavigationMenuTrigger>\n              <UiNavigationMenuContent>\n                <div class=\"w-[44rem] p-4\">\n                  <ul class=\"grid grid-cols-2 gap-3\">\n                    <li v-for=\"item in menu.items\" :key=\"item.title\">\n                      <UiNavigationMenuLink as-child>\n                        <NuxtLink\n                          to=\"#\"\n                          class=\"hover:border-ring/50 hover:bg-muted/50 group flex flex-row gap-4 rounded-xl border p-4 transition-colors\"\n                        >\n                          <UiFancyIcon :icon=\"item.icon\" theme=\"light\" :color=\"item.color\" />\n                          <span>\n                            <span class=\"block text-sm font-semibold\">{{ item.title }}</span>\n                            <span class=\"text-muted-foreground mt-0.5 block text-sm\">{{\n                              item.description\n                            }}</span>\n                          </span>\n                        </NuxtLink>\n                      </UiNavigationMenuLink>\n                    </li>\n                  </ul>\n                  <div\n                    class=\"bg-muted/60 mt-4 flex items-center justify-between rounded-xl px-4 py-3\"\n                  >\n                    <p class=\"text-sm font-medium\">{{ menu.cta }}</p>\n                    <NuxtLink\n                      to=\"#\"\n                      class=\"flex items-center gap-1 text-sm font-semibold underline-offset-4 hover:underline\"\n                    >\n                      Get in touch\n                      <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n                    </NuxtLink>\n                  </div>\n                </div>\n              </UiNavigationMenuContent>\n            </UiNavigationMenuItem>\n            <UiNavigationMenuItem v-for=\"link in links\" :key=\"link\">\n              <UiNavigationMenuLink as-child>\n                <UiButton to=\"#\" variant=\"ghost\" size=\"sm\">{{ link }}</UiButton>\n              </UiNavigationMenuLink>\n            </UiNavigationMenuItem>\n          </UiNavigationMenuList>\n        </UiNavigationMenu>\n      </div>\n\n      <div class=\"flex items-center gap-2\">\n        <UiButton variant=\"ghost\" size=\"sm\" class=\"hidden sm:inline-flex\">Log in</UiButton>\n        <UiButton size=\"sm\" class=\"hidden sm:inline-flex\">Start free</UiButton>\n        <UiSheet v-model:open=\"open\">\n          <UiSheetTrigger as-child>\n            <UiButton variant=\"outline\" size=\"icon\" class=\"lg:hidden\" aria-label=\"Open menu\">\n              <Icon name=\"lucide:menu\" class=\"size-5\" />\n            </UiButton>\n          </UiSheetTrigger>\n          <UiSheetContent side=\"left\" class=\"w-[88%] overflow-y-auto p-0 sm:max-w-sm\">\n            <UiSheetTitle class=\"sr-only\" title=\"Menu\" />\n            <UiSheetDescription class=\"sr-only\" description=\"Site navigation\" />\n            <UiSheetX class=\"z-20\" />\n            <div class=\"border-b p-5 text-lg font-semibold\">{{ props.name }}</div>\n            <nav class=\"space-y-6 p-5\" aria-label=\"Mobile\">\n              <div v-for=\"menu in menus\" :key=\"menu.title\">\n                <p class=\"text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase\">\n                  {{ menu.title }}\n                </p>\n                <ul class=\"space-y-1\">\n                  <li v-for=\"item in menu.items\" :key=\"item.title\">\n                    <NuxtLink\n                      to=\"#\"\n                      class=\"hover:bg-muted flex items-center gap-3 rounded-md px-2 py-2 text-sm\"\n                      @click=\"open = false\"\n                    >\n                      <Icon :name=\"item.icon\" class=\"size-4\" />\n                      {{ item.title }}\n                    </NuxtLink>\n                  </li>\n                </ul>\n              </div>\n              <ul class=\"border-t pt-4\">\n                <li v-for=\"link in links\" :key=\"link\">\n                  <NuxtLink\n                    to=\"#\"\n                    class=\"hover:bg-muted block rounded-md px-2 py-2.5 text-sm font-semibold\"\n                    >{{ link }}</NuxtLink\n                  >\n                </li>\n              </ul>\n            </nav>\n            <div class=\"grid grid-cols-2 gap-3 border-t p-5\">\n              <UiButton variant=\"outline\">Log in</UiButton>\n              <UiButton>Start free</UiButton>\n            </div>\n          </UiSheetContent>\n        </UiSheet>\n      </div>\n    </UiContainer>\n  </header>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const open = ref(false);\n  const links = [\"Pricing\", \"Customers\"];\n  const menus: {\n    title: string;\n    cta: string;\n    items: { title: string; description: string; icon: string; color: Color }[];\n  }[] = [\n    {\n      title: \"Features\",\n      cta: \"Not sure where to start? Talk to our team.\",\n      items: [\n        {\n          title: \"Dashboards\",\n          description: \"Live views of what matters to you.\",\n          icon: \"lucide:layout-dashboard\",\n          color: \"info\",\n        },\n        {\n          title: \"Workflows\",\n          description: \"Automate the busywork away.\",\n          icon: \"lucide:workflow\",\n          color: \"warning\",\n        },\n        {\n          title: \"Reports\",\n          description: \"Schedule and share insights.\",\n          icon: \"lucide:file-bar-chart\",\n          color: \"success\",\n        },\n        {\n          title: \"Security\",\n          description: \"SSO, audit logs and fine grained roles.\",\n          icon: \"lucide:shield-check\",\n          color: \"error\",\n        },\n      ],\n    },\n    {\n      title: \"Resources\",\n      cta: \"Looking for a new career? Get in touch!\",\n      items: [\n        {\n          title: \"Blog\",\n          description: \"News, tips and product updates.\",\n          icon: \"lucide:newspaper\",\n          color: \"info\",\n        },\n        {\n          title: \"Customer stories\",\n          description: \"How teams grow with us.\",\n          icon: \"lucide:sparkles\",\n          color: \"warning\",\n        },\n        {\n          title: \"Video tutorials\",\n          description: \"Learn the product in minutes.\",\n          icon: \"lucide:circle-play\",\n          color: \"success\",\n        },\n        {\n          title: \"Help center\",\n          description: \"Answers to every question.\",\n          icon: \"lucide:life-buoy\",\n          color: \"primary\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"Navigation","description":"Header with icon card dropdowns and a call to action footer. Features: Dropdown of bordered feature cards with fancy icons, promo strip with a link at the bottom, resources dropdown, sheet menu on small screens","path":"Navigation/BlockNavigation2.vue","components":["button","container","fancy-icon","navigation-menu","sheet"]},{"name":"Navigation 3","fileName":"BlockNavigation3.vue","file":"<template>\n  <!--\n    Header with a content menu of post cards\n    Features: Dropdown grid of featured posts with CSS gradient thumbnails and categories, view all link, no images needed, sheet menu on small screens\n  -->\n  <header class=\"bg-background/90 sticky top-0 z-20 border-b backdrop-blur\">\n    <UiContainer class=\"flex h-16 items-center justify-between gap-6 lg:h-[4.5rem]\">\n      <div class=\"flex items-center gap-8\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-6\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n\n        <UiNavigationMenu as=\"nav\" class=\"hidden lg:flex\" aria-label=\"Main\">\n          <UiNavigationMenuList class=\"gap-1\">\n            <UiNavigationMenuItem v-for=\"link in links\" :key=\"link\">\n              <UiNavigationMenuLink as-child>\n                <UiButton to=\"#\" variant=\"ghost\" size=\"sm\">{{ link }}</UiButton>\n              </UiNavigationMenuLink>\n            </UiNavigationMenuItem>\n            <UiNavigationMenuItem>\n              <UiNavigationMenuTrigger class=\"h-9 px-3 text-sm\"\n                >From the blog</UiNavigationMenuTrigger\n              >\n              <UiNavigationMenuContent>\n                <div class=\"w-[50rem] p-5\">\n                  <div class=\"grid grid-cols-3 gap-4\">\n                    <NuxtLink v-for=\"post in posts\" :key=\"post.title\" to=\"#\" class=\"group block\">\n                      <div\n                        class=\"relative aspect-video overflow-hidden rounded-lg bg-linear-to-br\"\n                        :class=\"post.gradient\"\n                      >\n                        <div\n                          class=\"absolute -top-6 -right-6 size-24 rounded-full bg-white/25 blur-xl\"\n                        />\n                        <Icon\n                          :name=\"post.icon\"\n                          class=\"absolute right-3 bottom-3 size-7 text-white/90 transition-transform group-hover:scale-110\"\n                        />\n                      </div>\n                      <p class=\"text-muted-foreground mt-3 text-xs font-medium\">\n                        {{ post.category }}\n                      </p>\n                      <p\n                        class=\"mt-1 text-sm font-semibold group-hover:underline group-hover:underline-offset-4\"\n                      >\n                        {{ post.title }}\n                      </p>\n                      <p class=\"text-muted-foreground mt-1 line-clamp-2 text-xs\">\n                        {{ post.excerpt }}\n                      </p>\n                    </NuxtLink>\n                  </div>\n                  <div class=\"mt-5 flex justify-end border-t pt-4\">\n                    <NuxtLink\n                      to=\"#\"\n                      class=\"flex items-center gap-1 text-sm font-semibold underline-offset-4 hover:underline\"\n                    >\n                      View all posts\n                      <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n                    </NuxtLink>\n                  </div>\n                </div>\n              </UiNavigationMenuContent>\n            </UiNavigationMenuItem>\n          </UiNavigationMenuList>\n        </UiNavigationMenu>\n      </div>\n\n      <div class=\"flex items-center gap-2\">\n        <UiButton variant=\"ghost\" size=\"sm\" class=\"hidden sm:inline-flex\">Log in</UiButton>\n        <UiButton size=\"sm\" class=\"hidden sm:inline-flex\">Subscribe</UiButton>\n        <UiSheet v-model:open=\"open\">\n          <UiSheetTrigger as-child>\n            <UiButton variant=\"outline\" size=\"icon\" class=\"lg:hidden\" aria-label=\"Open menu\">\n              <Icon name=\"lucide:menu\" class=\"size-5\" />\n            </UiButton>\n          </UiSheetTrigger>\n          <UiSheetContent side=\"right\" class=\"w-[88%] overflow-y-auto p-0 sm:max-w-sm\">\n            <UiSheetTitle class=\"sr-only\" title=\"Menu\" />\n            <UiSheetDescription class=\"sr-only\" description=\"Site navigation\" />\n            <UiSheetX class=\"z-20\" />\n            <div class=\"border-b p-5 text-lg font-semibold\">{{ props.name }}</div>\n            <nav class=\"p-4\" aria-label=\"Mobile\">\n              <NuxtLink\n                v-for=\"link in links\"\n                :key=\"link\"\n                to=\"#\"\n                class=\"hover:bg-muted block rounded-md px-3 py-3 text-sm font-semibold\"\n                @click=\"open = false\"\n              >\n                {{ link }}\n              </NuxtLink>\n              <p\n                class=\"text-muted-foreground mt-4 mb-2 px-3 text-xs font-semibold tracking-wide uppercase\"\n              >\n                From the blog\n              </p>\n              <NuxtLink\n                v-for=\"post in posts\"\n                :key=\"post.title\"\n                to=\"#\"\n                class=\"hover:bg-muted flex items-center gap-3 rounded-md px-3 py-2.5\"\n                @click=\"open = false\"\n              >\n                <span\n                  class=\"flex size-10 shrink-0 items-center justify-center rounded-md bg-linear-to-br text-white\"\n                  :class=\"post.gradient\"\n                >\n                  <Icon :name=\"post.icon\" class=\"size-5\" />\n                </span>\n                <span class=\"text-sm font-medium\">{{ post.title }}</span>\n              </NuxtLink>\n            </nav>\n            <div class=\"grid grid-cols-2 gap-3 border-t p-5\">\n              <UiButton variant=\"outline\">Log in</UiButton>\n              <UiButton>Subscribe</UiButton>\n            </div>\n          </UiSheetContent>\n        </UiSheet>\n      </div>\n    </UiContainer>\n  </header>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const open = ref(false);\n  const links = [\"Home\", \"Pricing\", \"About\"];\n  const posts = [\n    {\n      title: \"How we cut build times by 70%\",\n      category: \"Engineering\",\n      excerpt: \"A look at the caching and tooling changes behind faster deploys.\",\n      icon: \"lucide:zap\",\n      gradient: \"from-indigo-500 to-purple-500\",\n    },\n    {\n      title: \"Designing for dark mode first\",\n      category: \"Design\",\n      excerpt: \"What we learned rebuilding every component with theme tokens.\",\n      icon: \"lucide:moon\",\n      gradient: \"from-sky-500 to-cyan-500\",\n    },\n    {\n      title: \"A tour of the new dashboard\",\n      category: \"Product\",\n      excerpt: \"Filters, saved views and a calmer way to see your data.\",\n      icon: \"lucide:layout-dashboard\",\n      gradient: \"from-rose-500 to-orange-500\",\n    },\n  ];\n</script>\n","category":"Navigation","description":"Header with a content menu of post cards. Features: Dropdown grid of featured posts with CSS gradient thumbnails and categories, view all link, no images needed, sheet menu on small screens","path":"Navigation/BlockNavigation3.vue","components":["button","container","navigation-menu","sheet"]},{"name":"Navigation 4","fileName":"BlockNavigation4.vue","file":"<template>\n  <!--\n    Header with compact dropdown menus\n    Features: Narrow single column dropdowns with icons and descriptions, learn more footer links, active page state, sheet menu with grouped links on small screens\n  -->\n  <header class=\"bg-background/90 sticky top-0 z-20 border-b backdrop-blur\">\n    <UiContainer class=\"flex h-16 items-center justify-between gap-6\">\n      <div class=\"flex items-center gap-8\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n          <svg\n            class=\"fill-primary h-6\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          {{ props.name }}\n        </NuxtLink>\n\n        <UiNavigationMenu as=\"nav\" class=\"hidden lg:flex\" aria-label=\"Main\">\n          <UiNavigationMenuList class=\"gap-1\">\n            <UiNavigationMenuItem>\n              <UiNavigationMenuLink as-child>\n                <UiButton to=\"#\" variant=\"ghost\" size=\"sm\" class=\"bg-muted\">Home</UiButton>\n              </UiNavigationMenuLink>\n            </UiNavigationMenuItem>\n            <UiNavigationMenuItem v-for=\"menu in menus\" :key=\"menu.title\">\n              <UiNavigationMenuTrigger class=\"h-9 px-3 text-sm\">{{\n                menu.title\n              }}</UiNavigationMenuTrigger>\n              <UiNavigationMenuContent>\n                <ul class=\"w-80 p-2\">\n                  <li v-for=\"item in menu.items\" :key=\"item.title\">\n                    <UiNavigationMenuLink as-child>\n                      <NuxtLink\n                        to=\"#\"\n                        class=\"hover:bg-muted flex flex-row gap-3 rounded-lg p-3 transition-colors\"\n                      >\n                        <Icon :name=\"item.icon\" class=\"text-primary mt-0.5 size-5 shrink-0\" />\n                        <span>\n                          <span class=\"block text-sm font-medium\">{{ item.title }}</span>\n                          <span class=\"text-muted-foreground block text-xs\">{{\n                            item.description\n                          }}</span>\n                        </span>\n                      </NuxtLink>\n                    </UiNavigationMenuLink>\n                  </li>\n                  <li class=\"mt-1 border-t p-1 pt-2\">\n                    <NuxtLink\n                      to=\"#\"\n                      class=\"hover:bg-muted flex items-center justify-between rounded-md px-2 py-1.5 text-sm font-medium\"\n                    >\n                      Learn more\n                      <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n                    </NuxtLink>\n                  </li>\n                </ul>\n              </UiNavigationMenuContent>\n            </UiNavigationMenuItem>\n            <UiNavigationMenuItem>\n              <UiNavigationMenuLink as-child>\n                <UiButton to=\"#\" variant=\"ghost\" size=\"sm\">Pricing</UiButton>\n              </UiNavigationMenuLink>\n            </UiNavigationMenuItem>\n          </UiNavigationMenuList>\n        </UiNavigationMenu>\n      </div>\n\n      <div class=\"flex items-center gap-2\">\n        <UiButton variant=\"ghost\" size=\"sm\" class=\"hidden sm:inline-flex\">Log in</UiButton>\n        <UiButton size=\"sm\" class=\"hidden sm:inline-flex\">Sign up</UiButton>\n        <UiSheet v-model:open=\"open\">\n          <UiSheetTrigger as-child>\n            <UiButton variant=\"outline\" size=\"icon\" class=\"lg:hidden\" aria-label=\"Open menu\">\n              <Icon name=\"lucide:menu\" class=\"size-5\" />\n            </UiButton>\n          </UiSheetTrigger>\n          <UiSheetContent side=\"right\" class=\"w-[88%] overflow-y-auto p-0 sm:max-w-sm\">\n            <UiSheetTitle class=\"sr-only\" title=\"Menu\" />\n            <UiSheetDescription class=\"sr-only\" description=\"Site navigation\" />\n            <UiSheetX class=\"z-20\" />\n            <div class=\"border-b p-5 text-lg font-semibold\">{{ props.name }}</div>\n            <nav class=\"space-y-5 p-5\" aria-label=\"Mobile\">\n              <NuxtLink to=\"#\" class=\"block text-sm font-semibold\" @click=\"open = false\"\n                >Home</NuxtLink\n              >\n              <div v-for=\"menu in menus\" :key=\"menu.title\">\n                <p class=\"text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase\">\n                  {{ menu.title }}\n                </p>\n                <ul class=\"space-y-1\">\n                  <li v-for=\"item in menu.items\" :key=\"item.title\">\n                    <NuxtLink\n                      to=\"#\"\n                      class=\"hover:bg-muted flex items-center gap-3 rounded-md px-2 py-2 text-sm\"\n                      @click=\"open = false\"\n                    >\n                      <Icon :name=\"item.icon\" class=\"text-primary size-4\" />\n                      {{ item.title }}\n                    </NuxtLink>\n                  </li>\n                </ul>\n              </div>\n              <NuxtLink to=\"#\" class=\"block text-sm font-semibold\" @click=\"open = false\"\n                >Pricing</NuxtLink\n              >\n            </nav>\n            <div class=\"grid grid-cols-2 gap-3 border-t p-5\">\n              <UiButton variant=\"outline\">Log in</UiButton>\n              <UiButton>Sign up</UiButton>\n            </div>\n          </UiSheetContent>\n        </UiSheet>\n      </div>\n    </UiContainer>\n  </header>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const open = ref(false);\n  const menus = [\n    {\n      title: \"Products\",\n      items: [\n        { title: \"Boards\", description: \"Plan and track work visually.\", icon: \"lucide:kanban\" },\n        { title: \"Docs\", description: \"Write and share knowledge.\", icon: \"lucide:file-text\" },\n        { title: \"Roadmaps\", description: \"Align everyone on what's next.\", icon: \"lucide:map\" },\n        {\n          title: \"Insights\",\n          description: \"Measure what your team ships.\",\n          icon: \"lucide:chart-line\",\n        },\n      ],\n    },\n    {\n      title: \"Resources\",\n      items: [\n        { title: \"Blog\", description: \"News, tips and product updates.\", icon: \"lucide:newspaper\" },\n        { title: \"Guides\", description: \"Step by step walkthroughs.\", icon: \"lucide:book-open\" },\n        {\n          title: \"Community\",\n          description: \"Ask questions and share ideas.\",\n          icon: \"lucide:messages-square\",\n        },\n        {\n          title: \"Help center\",\n          description: \"Answers to every question.\",\n          icon: \"lucide:life-buoy\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"Navigation","description":"Header with compact dropdown menus. Features: Narrow single column dropdowns with icons and descriptions, learn more footer links, active page state, sheet menu with grouped links on small screens","path":"Navigation/BlockNavigation4.vue","components":["button","container","navigation-menu","sheet"]},{"name":"Navigation 5","fileName":"BlockNavigation5.vue","file":"<template>\n  <!--\n    Simple header with a sliding active indicator\n    Features: Plain links with an underline that slides to the hovered or active link, log in and sign up actions, sheet menu on small screens\n  -->\n  <header class=\"bg-background/90 sticky top-0 z-20 border-b backdrop-blur\">\n    <UiContainer class=\"flex h-16 items-center justify-between gap-6\">\n      <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-lg font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        {{ props.name }}\n      </NuxtLink>\n\n      <nav\n        ref=\"nav\"\n        class=\"relative hidden h-full items-center gap-1 lg:flex\"\n        aria-label=\"Main\"\n        @mouseleave=\"hovered = undefined\"\n      >\n        <NuxtLink\n          v-for=\"link in links\"\n          :key=\"link\"\n          :ref=\"(el) => setRef(link, el)\"\n          to=\"#\"\n          class=\"relative px-3.5 py-2 text-sm font-medium transition-colors\"\n          :class=\"\n            current === link ? 'text-foreground' : 'text-muted-foreground hover:text-foreground'\n          \"\n          :aria-current=\"active === link ? 'page' : undefined\"\n          @mouseenter=\"hovered = link\"\n          @click.prevent=\"active = link\"\n        >\n          {{ link }}\n        </NuxtLink>\n        <span\n          class=\"bg-primary absolute bottom-0 h-0.5 rounded-full transition-all duration-300 ease-out\"\n          :style=\"{\n            left: `${indicator.left}px`,\n            width: `${indicator.width}px`,\n            opacity: indicator.width ? 1 : 0,\n          }\"\n          aria-hidden=\"true\"\n        />\n      </nav>\n\n      <div class=\"flex items-center gap-2\">\n        <UiButton variant=\"ghost\" size=\"sm\" class=\"hidden sm:inline-flex\">Log in</UiButton>\n        <UiButton size=\"sm\" class=\"hidden sm:inline-flex\">Sign up</UiButton>\n        <UiSheet v-model:open=\"open\">\n          <UiSheetTrigger as-child>\n            <UiButton variant=\"outline\" size=\"icon\" class=\"lg:hidden\" aria-label=\"Open menu\">\n              <Icon name=\"lucide:menu\" class=\"size-5\" />\n            </UiButton>\n          </UiSheetTrigger>\n          <UiSheetContent side=\"right\" class=\"w-[88%] p-0 sm:max-w-sm\">\n            <UiSheetTitle class=\"sr-only\" title=\"Menu\" />\n            <UiSheetDescription class=\"sr-only\" description=\"Site navigation\" />\n            <UiSheetX class=\"z-20\" />\n            <div class=\"border-b p-5 text-lg font-semibold\">{{ props.name }}</div>\n            <nav class=\"p-3\" aria-label=\"Mobile\">\n              <NuxtLink\n                v-for=\"link in links\"\n                :key=\"link\"\n                to=\"#\"\n                class=\"hover:bg-muted block rounded-md px-3 py-3 text-sm font-semibold\"\n                @click.prevent=\"((active = link), (open = false))\"\n              >\n                {{ link }}\n              </NuxtLink>\n            </nav>\n            <div class=\"grid grid-cols-2 gap-3 border-t p-5\">\n              <UiButton variant=\"outline\">Log in</UiButton>\n              <UiButton>Sign up</UiButton>\n            </div>\n          </UiSheetContent>\n        </UiSheet>\n      </div>\n    </UiContainer>\n  </header>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const links = [\"Home\", \"Features\", \"Pricing\", \"Blog\", \"Contact\"];\n  const open = ref(false);\n  const active = ref(\"Home\");\n  const hovered = ref<string>();\n  const current = computed(() => hovered.value ?? active.value);\n\n  const nav = ref<HTMLElement | null>(null);\n  const els = reactive<Record<string, HTMLElement | undefined>>({});\n  const indicator = reactive({ left: 0, width: 0 });\n\n  function setRef(name: string, el: unknown) {\n    els[name] = (el as { $el?: HTMLElement } | null)?.$el ?? (el as HTMLElement | undefined);\n  }\n\n  function measure() {\n    const el = els[current.value];\n    if (!el || !nav.value) return;\n    const navBox = nav.value.getBoundingClientRect();\n    const box = el.getBoundingClientRect();\n    indicator.left = box.left - navBox.left + 14;\n    indicator.width = box.width - 28;\n  }\n\n  watch(current, () => nextTick(measure));\n  onMounted(() => nextTick(measure));\n  useEventListener(\"resize\", measure);\n</script>\n","category":"Navigation","description":"Simple header with a sliding active indicator. Features: Plain links with an underline that slides to the hovered or active link, log in and sign up actions, sheet menu on small screens","path":"Navigation/BlockNavigation5.vue","components":["button","container","sheet"]},{"name":"Navigation 6","fileName":"BlockNavigation6.vue","file":"<template>\n  <!--\n    Centered logo header for stores\n    Features: Links on the left, logo in the middle, search, account and a cart with a count that updates on the right, expandable search field, sheet menu on small screens\n  -->\n  <header class=\"bg-background/90 sticky top-0 z-20 border-b backdrop-blur\">\n    <UiContainer class=\"grid h-16 grid-cols-[1fr_auto_1fr] items-center gap-4\">\n      <nav class=\"hidden items-center gap-6 lg:flex\" aria-label=\"Main\">\n        <NuxtLink\n          v-for=\"link in links\"\n          :key=\"link\"\n          to=\"#\"\n          class=\"text-muted-foreground hover:text-foreground text-sm font-medium transition-colors\"\n        >\n          {{ link }}\n        </NuxtLink>\n      </nav>\n      <UiSheet v-model:open=\"open\">\n        <UiSheetTrigger as-child>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon\"\n            class=\"justify-self-start lg:hidden\"\n            aria-label=\"Open menu\"\n          >\n            <Icon name=\"lucide:menu\" class=\"size-5\" />\n          </UiButton>\n        </UiSheetTrigger>\n        <UiSheetContent side=\"left\" class=\"w-[88%] p-0 sm:max-w-sm\">\n          <UiSheetTitle class=\"sr-only\" title=\"Menu\" />\n          <UiSheetDescription class=\"sr-only\" description=\"Store navigation\" />\n          <UiSheetX class=\"z-20\" />\n          <div class=\"border-b p-5 text-lg font-semibold\">{{ props.name }}</div>\n          <nav class=\"p-3\" aria-label=\"Mobile\">\n            <NuxtLink\n              v-for=\"link in links\"\n              :key=\"link\"\n              to=\"#\"\n              class=\"hover:bg-muted block rounded-md px-3 py-3 text-sm font-semibold\"\n              @click=\"open = false\"\n            >\n              {{ link }}\n            </NuxtLink>\n          </nav>\n        </UiSheetContent>\n      </UiSheet>\n\n      <NuxtLink to=\"#\" class=\"flex items-center gap-2.5 text-xl font-semibold tracking-tight\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        {{ props.name }}\n      </NuxtLink>\n\n      <div class=\"flex items-center justify-end gap-1\">\n        <div class=\"flex items-center\">\n          <Transition\n            enter-active-class=\"transition-all duration-200\"\n            enter-from-class=\"w-0 opacity-0\"\n            enter-to-class=\"w-40 opacity-100 sm:w-56\"\n            leave-active-class=\"transition-all duration-200\"\n            leave-from-class=\"w-40 opacity-100 sm:w-56\"\n            leave-to-class=\"w-0 opacity-0\"\n          >\n            <UiInput\n              v-if=\"searching\"\n              v-model=\"query\"\n              placeholder=\"Search products\"\n              aria-label=\"Search products\"\n              class=\"h-9 overflow-hidden\"\n              autofocus\n              @keydown.esc=\"searching = false\"\n            />\n          </Transition>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon\"\n            :aria-label=\"searching ? 'Close search' : 'Search'\"\n            @click=\"searching = !searching\"\n          >\n            <Icon :name=\"searching ? 'lucide:x' : 'lucide:search'\" class=\"size-5\" />\n          </UiButton>\n        </div>\n        <UiButton variant=\"ghost\" size=\"icon\" class=\"hidden sm:inline-flex\" aria-label=\"Account\">\n          <Icon name=\"lucide:user\" class=\"size-5\" />\n        </UiButton>\n        <UiButton variant=\"ghost\" size=\"icon\" class=\"relative\" aria-label=\"Cart\" @click=\"cart++\">\n          <Icon name=\"lucide:shopping-bag\" class=\"size-5\" />\n          <Transition\n            enter-active-class=\"transition duration-200\"\n            enter-from-class=\"scale-50 opacity-0\"\n          >\n            <span\n              v-if=\"cart\"\n              :key=\"cart\"\n              class=\"bg-primary text-primary-foreground absolute -top-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full text-[10px] font-semibold\"\n            >\n              {{ cart }}\n            </span>\n          </Transition>\n        </UiButton>\n      </div>\n    </UiContainer>\n  </header>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"Northwind\" });\n\n  const links = [\"New in\", \"Women\", \"Men\", \"Accessories\", \"Sale\"];\n  const open = ref(false);\n  const searching = ref(false);\n  const query = ref(\"\");\n  // Clicking the bag adds an item so you can see the count change.\n  const cart = ref(2);\n</script>\n","category":"Navigation","description":"Centered logo header for stores. Features: Links on the left, logo in the middle, search, account and a cart with a count that updates on the right, expandable search field, sheet menu on small screens","path":"Navigation/BlockNavigation6.vue","components":["button","container","input","sheet"]},{"name":"Navigation 7","fileName":"BlockNavigation7.vue","file":"<template>\n  <!--\n    Floating pill header that condenses as you scroll\n    Features: Detached rounded bar with a blurred background, shrinks and gains a shadow after scrolling, theme toggle, sheet menu on small screens, includes a scrollable demo area\n  -->\n  <div class=\"relative h-[28rem] overflow-y-auto rounded-xl border\" @scroll.passive=\"onScroll\">\n    <div class=\"sticky top-0 z-20 px-4 pt-4\">\n      <header\n        class=\"bg-background/80 mx-auto flex items-center justify-between rounded-full border px-4 backdrop-blur-md transition-all duration-300\"\n        :class=\"condensed ? 'h-12 max-w-2xl shadow-lg' : 'h-16 max-w-5xl'\"\n      >\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2 font-semibold\">\n          <svg\n            class=\"fill-primary h-5\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          <span :class=\"condensed && 'hidden sm:inline'\">{{ props.name }}</span>\n        </NuxtLink>\n\n        <nav class=\"hidden items-center gap-1 md:flex\" aria-label=\"Main\">\n          <NuxtLink\n            v-for=\"link in links\"\n            :key=\"link\"\n            to=\"#\"\n            class=\"text-muted-foreground hover:bg-muted hover:text-foreground rounded-full px-3 py-1.5 text-sm font-medium transition-colors\"\n          >\n            {{ link }}\n          </NuxtLink>\n        </nav>\n\n        <div class=\"flex items-center gap-1\">\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"rounded-full\"\n            :aria-label=\"dark ? 'Switch to light mode' : 'Switch to dark mode'\"\n            @click=\"colorMode.preference = dark ? 'light' : 'dark'\"\n          >\n            <Icon :name=\"dark ? 'lucide:sun' : 'lucide:moon'\" class=\"size-4\" />\n          </UiButton>\n          <UiButton size=\"sm\" class=\"hidden rounded-full sm:inline-flex\">Get started</UiButton>\n          <UiSheet v-model:open=\"open\">\n            <UiSheetTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"rounded-full md:hidden\"\n                aria-label=\"Open menu\"\n              >\n                <Icon name=\"lucide:menu\" class=\"size-5\" />\n              </UiButton>\n            </UiSheetTrigger>\n            <UiSheetContent side=\"top\" class=\"p-0\">\n              <UiSheetTitle class=\"sr-only\" title=\"Menu\" />\n              <UiSheetDescription class=\"sr-only\" description=\"Site navigation\" />\n              <UiSheetX class=\"z-20\" />\n              <nav class=\"p-4 pt-12\" aria-label=\"Mobile\">\n                <NuxtLink\n                  v-for=\"link in links\"\n                  :key=\"link\"\n                  to=\"#\"\n                  class=\"hover:bg-muted block rounded-md px-3 py-3 text-sm font-semibold\"\n                  @click=\"open = false\"\n                >\n                  {{ link }}\n                </NuxtLink>\n                <UiButton class=\"mt-3 w-full\">Get started</UiButton>\n              </nav>\n            </UiSheetContent>\n          </UiSheet>\n        </div>\n      </header>\n    </div>\n\n    <div class=\"mx-auto max-w-3xl space-y-6 px-6 py-10\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Scroll the page</h1>\n      <p class=\"text-muted-foreground\">\n        The header floats above your content and condenses once you start scrolling.\n      </p>\n      <div v-for=\"n in 8\" :key=\"n\" class=\"space-y-2\">\n        <div class=\"bg-muted h-4 w-1/3 rounded-full\" />\n        <div class=\"bg-muted/70 h-3 rounded-full\" />\n        <div class=\"bg-muted/70 h-3 w-5/6 rounded-full\" />\n        <div class=\"bg-muted/70 h-3 w-2/3 rounded-full\" />\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ name?: string }>(), { name: \"UI Thing\" });\n\n  const links = [\"Product\", \"Pricing\", \"Docs\", \"Blog\"];\n  const open = ref(false);\n  const condensed = ref(false);\n  const colorMode = useColorMode();\n  const dark = computed(() => colorMode.value === \"dark\");\n\n  // A small hysteresis stops the bar flickering when the scroll position hovers at the edge.\n  function onScroll(event: Event) {\n    const top = (event.currentTarget as HTMLElement).scrollTop;\n    if (!condensed.value && top > 32) condensed.value = true;\n    else if (condensed.value && top < 16) condensed.value = false;\n  }\n</script>\n","category":"Navigation","description":"Floating pill header that condenses as you scroll. Features: Detached rounded bar with a blurred background, shrinks and gains a shadow after scrolling, theme toggle, sheet menu on small screens, includes a scrollable demo area","path":"Navigation/BlockNavigation7.vue","components":["button","sheet"]},{"name":"Navigation 8","fileName":"BlockNavigation8.vue","file":"<template>\n  <!--\n    Application navbar with workspace switcher, search and account menu\n    Features: Workspace dropdown, primary tabs with an active state, search field with a keyboard shortcut, notifications popover with an unread badge, user menu\n  -->\n  <header class=\"bg-background sticky top-0 z-20 border-b\">\n    <div class=\"flex h-14 items-center gap-3 px-4 lg:px-6\">\n      <UiDropdownMenu>\n        <UiDropdownMenuTrigger as-child>\n          <UiButton variant=\"ghost\" class=\"gap-2 px-2\">\n            <span\n              class=\"bg-primary text-primary-foreground flex size-7 items-center justify-center rounded-md\"\n            >\n              <Icon :name=\"workspace.icon\" class=\"size-4\" />\n            </span>\n            <span class=\"hidden font-semibold sm:inline\">{{ workspace.name }}</span>\n            <Icon name=\"lucide:chevrons-up-down\" class=\"text-muted-foreground size-4\" />\n          </UiButton>\n        </UiDropdownMenuTrigger>\n        <UiDropdownMenuContent align=\"start\" class=\"w-56\">\n          <UiDropdownMenuLabel class=\"text-muted-foreground text-xs\"\n            >Workspaces</UiDropdownMenuLabel\n          >\n          <UiDropdownMenuItem\n            v-for=\"item in workspaces\"\n            :key=\"item.name\"\n            class=\"gap-2\"\n            @select=\"workspace = item\"\n          >\n            <Icon :name=\"item.icon\" class=\"size-4\" />\n            {{ item.name }}\n            <Icon v-if=\"item.name === workspace.name\" name=\"lucide:check\" class=\"ml-auto size-4\" />\n          </UiDropdownMenuItem>\n          <UiDropdownMenuSeparator />\n          <UiDropdownMenuItem icon=\"lucide:plus\" title=\"New workspace\" />\n        </UiDropdownMenuContent>\n      </UiDropdownMenu>\n\n      <nav class=\"hidden items-center gap-1 md:flex\" aria-label=\"Main\">\n        <button\n          v-for=\"tab in tabs\"\n          :key=\"tab\"\n          type=\"button\"\n          class=\"rounded-md px-3 py-1.5 text-sm font-medium transition-colors\"\n          :class=\"\n            active === tab\n              ? 'bg-muted text-foreground'\n              : 'text-muted-foreground hover:text-foreground'\n          \"\n          :aria-current=\"active === tab ? 'page' : undefined\"\n          @click=\"active = tab\"\n        >\n          {{ tab }}\n        </button>\n      </nav>\n\n      <div class=\"relative ml-auto hidden w-full max-w-xs sm:block\">\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput placeholder=\"Search\" aria-label=\"Search\" class=\"h-9 pr-12 pl-9\" />\n        <UiKbd class=\"pointer-events-none absolute top-1/2 right-2 -translate-y-1/2\">⌘K</UiKbd>\n      </div>\n\n      <div class=\"ml-auto flex items-center gap-1 sm:ml-0\">\n        <UiPopover>\n          <UiPopoverTrigger as-child>\n            <UiButton variant=\"ghost\" size=\"icon\" class=\"relative\" aria-label=\"Notifications\">\n              <Icon name=\"lucide:bell\" class=\"size-5\" />\n              <span\n                v-if=\"unread\"\n                class=\"bg-primary text-primary-foreground absolute top-1 right-1 flex size-4 items-center justify-center rounded-full text-[10px] font-semibold\"\n              >\n                {{ unread }}\n              </span>\n            </UiButton>\n          </UiPopoverTrigger>\n          <UiPopoverContent align=\"end\" class=\"w-80 p-0\">\n            <div class=\"flex items-center justify-between border-b px-4 py-3\">\n              <p class=\"text-sm font-semibold\">Notifications</p>\n              <UiButton variant=\"link\" size=\"xs\" :disabled=\"!unread\" @click=\"unread = 0\"\n                >Mark all read</UiButton\n              >\n            </div>\n            <ul class=\"divide-y\">\n              <li v-for=\"(item, i) in notifications\" :key=\"item.text\" class=\"flex gap-3 px-4 py-3\">\n                <UiAvatar :src=\"item.avatar\" :fallback=\"item.name[0]\" class=\"size-8\" />\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"text-sm\">\n                    <span class=\"font-medium\">{{ item.name }}</span> {{ item.text }}\n                  </p>\n                  <p class=\"text-muted-foreground text-xs\">{{ item.time }}</p>\n                </div>\n                <span\n                  v-if=\"i < unread\"\n                  class=\"bg-primary mt-1.5 size-2 rounded-full\"\n                  aria-label=\"Unread\"\n                />\n              </li>\n            </ul>\n          </UiPopoverContent>\n        </UiPopover>\n\n        <UiDropdownMenu>\n          <UiDropdownMenuTrigger as-child>\n            <button type=\"button\" class=\"ml-1 rounded-full\" aria-label=\"Account menu\">\n              <UiAvatar src=\"https://i.pravatar.cc/80?img=47\" fallback=\"MC\" class=\"size-8\" />\n            </button>\n          </UiDropdownMenuTrigger>\n          <UiDropdownMenuContent align=\"end\" class=\"w-56\">\n            <UiDropdownMenuLabel>\n              <p class=\"text-sm font-semibold\">Maya Chen</p>\n              <p class=\"text-muted-foreground text-xs font-normal\">maya@uithing.com</p>\n            </UiDropdownMenuLabel>\n            <UiDropdownMenuSeparator />\n            <UiDropdownMenuItem icon=\"lucide:user\" title=\"Profile\" />\n            <UiDropdownMenuItem icon=\"lucide:settings\" title=\"Settings\" />\n            <UiDropdownMenuItem icon=\"lucide:credit-card\" title=\"Billing\" />\n            <UiDropdownMenuSeparator />\n            <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n          </UiDropdownMenuContent>\n        </UiDropdownMenu>\n      </div>\n    </div>\n  </header>\n</template>\n\n<script lang=\"ts\" setup>\n  const workspaces = [\n    { name: \"Acme Inc.\", icon: \"lucide:building-2\" },\n    { name: \"Northwind\", icon: \"lucide:compass\" },\n    { name: \"Side project\", icon: \"lucide:rocket\" },\n  ];\n  const workspace = ref(workspaces[0]!);\n\n  const tabs = [\"Overview\", \"Projects\", \"Reports\", \"Team\"];\n  const active = ref(\"Overview\");\n\n  const unread = ref(2);\n  const notifications = [\n    {\n      name: \"Priya\",\n      text: \"commented on Design review\",\n      time: \"2 minutes ago\",\n      avatar: \"https://i.pravatar.cc/60?img=45\",\n    },\n    {\n      name: \"Liam\",\n      text: \"merged Billing page\",\n      time: \"1 hour ago\",\n      avatar: \"https://i.pravatar.cc/60?img=12\",\n    },\n    {\n      name: \"Sam\",\n      text: \"invited you to Q4 planning\",\n      time: \"Yesterday\",\n      avatar: \"https://i.pravatar.cc/60?img=32\",\n    },\n  ];\n</script>\n","category":"Navigation","description":"Application navbar with workspace switcher, search and account menu. Features: Workspace dropdown, primary tabs with an active state, search field with a keyboard shortcut, notifications popover with an unread badge, user menu","path":"Navigation/BlockNavigation8.vue","components":["avatar","button","dropdown-menu","input","kbd","popover"]},{"name":"Newsletter 1","fileName":"BlockNewsletter1.vue","file":"<template>\n  <!--\n    Split newsletter with a preview of the latest issue\n    Features: Heading and validated email form with loading and success states, a CSS email mockup on the right that needs no image\n  -->\n  <UiContainer class=\"py-14 lg:py-20\">\n    <div\n      class=\"bg-card grid items-center gap-10 overflow-hidden rounded-3xl border p-6 sm:p-10 lg:grid-cols-2 lg:gap-14 lg:p-14\"\n    >\n      <div>\n        <p class=\"text-primary text-sm font-semibold\">{{ props.eyebrow }}</p>\n        <h2 class=\"mt-2 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-4 text-lg text-balance\">{{ props.description }}</p>\n        <div class=\"mt-8\">\n          <form v-if=\"!done\" class=\"max-w-md\" novalidate @submit.prevent=\"submit\">\n            <div class=\"flex flex-col gap-2 sm:flex-row\">\n              <UiInput\n                v-model=\"email\"\n                type=\"email\"\n                placeholder=\"you@example.com\"\n                aria-label=\"Email address\"\n                class=\"h-11\"\n                :aria-invalid=\"!!error\"\n              />\n              <UiButton type=\"submit\" size=\"lg\" :disabled=\"loading\" class=\"shrink-0\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Subscribe\n              </UiButton>\n            </div>\n            <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n          </form>\n          <div\n            v-else\n            class=\"flex max-w-md items-center gap-3 rounded-xl border border-green-500/30 bg-green-500/10 p-4 text-left\"\n            role=\"status\"\n          >\n            <Icon\n              name=\"lucide:circle-check\"\n              class=\"size-6 shrink-0 text-green-600 dark:text-green-400\"\n            />\n            <div>\n              <p class=\"font-semibold\">You're subscribed</p>\n              <p class=\"text-muted-foreground text-sm\">Check your inbox to confirm your email.</p>\n            </div>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n          </div>\n        </div>\n        <p v-if=\"!done\" class=\"text-muted-foreground mt-3 text-sm\">\n          We care about your data. Read our\n          <NuxtLink to=\"#\" class=\"text-foreground underline underline-offset-4\"\n            >privacy policy</NuxtLink\n          >.\n        </p>\n      </div>\n\n      <div\n        class=\"bg-muted/50 relative mx-auto w-full max-w-md rounded-2xl border p-5\"\n        aria-hidden=\"true\"\n      >\n        <div class=\"bg-card rounded-xl border p-5 shadow-lg\">\n          <div class=\"flex items-center gap-3\">\n            <span\n              class=\"bg-primary text-primary-foreground flex size-9 items-center justify-center rounded-lg\"\n            >\n              <Icon name=\"lucide:mail\" class=\"size-4\" />\n            </span>\n            <div>\n              <p class=\"text-sm font-semibold\">The Weekly</p>\n              <p class=\"text-muted-foreground text-xs\">Issue 42 · 5 min read</p>\n            </div>\n          </div>\n          <div class=\"mt-5 space-y-3\">\n            <p class=\"text-sm font-semibold\">What we shipped, what we read</p>\n            <div class=\"bg-muted h-2 rounded-full\" />\n            <div class=\"bg-muted h-2 w-11/12 rounded-full\" />\n            <div class=\"bg-muted h-2 w-4/5 rounded-full\" />\n          </div>\n          <div class=\"from-primary/30 to-primary/5 mt-5 h-24 rounded-lg bg-linear-to-br\" />\n          <div class=\"mt-5 space-y-2\">\n            <div class=\"bg-muted h-2 rounded-full\" />\n            <div class=\"bg-muted h-2 w-3/4 rounded-full\" />\n          </div>\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{ eyebrow?: string; title?: string; description?: string }>(),\n    {\n      eyebrow: \"The Weekly\",\n      title: \"Get one smart email every Friday\",\n      description:\n        \"Product news, hand picked reads and one idea worth stealing. Join 15,000 readers.\",\n    }\n  );\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Split newsletter with a preview of the latest issue. Features: Heading and validated email form with loading and success states, a CSS email mockup on the right that needs no image","path":"Newsletter/BlockNewsletter1.vue","components":["button","container","input"]},{"name":"Newsletter 10","fileName":"BlockNewsletter10.vue","file":"<template>\n  <!--\n    Two step newsletter signup\n    Features: Email first with validation, then a quick interests step with a progress dots indicator, back button, final thank you state with the choices summarized\n  -->\n  <UiContainer class=\"py-14 lg:py-20\">\n    <div class=\"bg-card mx-auto max-w-xl overflow-hidden rounded-3xl border shadow-sm\">\n      <div class=\"flex items-center justify-between border-b px-6 py-4\">\n        <p class=\"text-sm font-semibold\">{{ step === 3 ? \"All done\" : \"Join the newsletter\" }}</p>\n        <div\n          class=\"flex gap-1.5\"\n          role=\"progressbar\"\n          aria-valuemin=\"1\"\n          aria-valuemax=\"2\"\n          :aria-valuenow=\"Math.min(step, 2)\"\n        >\n          <span\n            v-for=\"n in 2\"\n            :key=\"n\"\n            class=\"h-1.5 w-8 rounded-full transition-colors\"\n            :class=\"n <= Math.min(step, 2) || step === 3 ? 'bg-primary' : 'bg-muted'\"\n          />\n        </div>\n      </div>\n\n      <div class=\"p-6 sm:p-8\">\n        <Transition\n          mode=\"out-in\"\n          enter-active-class=\"transition duration-200\"\n          enter-from-class=\"translate-x-3 opacity-0\"\n          leave-active-class=\"transition duration-150\"\n          leave-to-class=\"-translate-x-3 opacity-0\"\n        >\n          <div v-if=\"step === 1\" key=\"one\">\n            <h2 class=\"text-2xl font-bold tracking-tight\">{{ props.title }}</h2>\n            <p class=\"text-muted-foreground mt-2\">{{ props.description }}</p>\n            <form class=\"mt-6 space-y-3\" novalidate @submit.prevent=\"next\">\n              <UiInput\n                v-model=\"email\"\n                type=\"email\"\n                placeholder=\"you@example.com\"\n                aria-label=\"Email address\"\n                class=\"h-11\"\n                :aria-invalid=\"!!error\"\n              />\n              <p v-if=\"error\" class=\"text-destructive text-sm\">{{ error }}</p>\n              <UiButton type=\"submit\" size=\"lg\" class=\"w-full\">\n                Continue\n                <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n              </UiButton>\n            </form>\n          </div>\n\n          <div v-else-if=\"step === 2\" key=\"two\">\n            <h2 class=\"text-2xl font-bold tracking-tight\">What should we send you?</h2>\n            <p class=\"text-muted-foreground mt-2\">Pick at least one. You can change this later.</p>\n            <ul class=\"mt-6 grid gap-3\">\n              <li v-for=\"topic in topics\" :key=\"topic.value\">\n                <label\n                  class=\"flex cursor-pointer items-center gap-4 rounded-xl border p-4 transition-colors\"\n                  :class=\"\n                    chosen.includes(topic.value)\n                      ? 'border-primary bg-primary/5'\n                      : 'hover:bg-muted/50'\n                  \"\n                >\n                  <UiCheckbox\n                    :model-value=\"chosen.includes(topic.value)\"\n                    :aria-label=\"topic.label\"\n                    @update:model-value=\"toggle(topic.value)\"\n                  />\n                  <span class=\"flex-1\">\n                    <span class=\"block font-medium\">{{ topic.label }}</span>\n                    <span class=\"text-muted-foreground text-sm\">{{ topic.text }}</span>\n                  </span>\n                </label>\n              </li>\n            </ul>\n            <p v-if=\"error\" class=\"text-destructive mt-3 text-sm\">{{ error }}</p>\n            <div class=\"mt-6 grid grid-cols-2 gap-3\">\n              <UiButton variant=\"outline\" size=\"lg\" @click=\"step = 1\">\n                <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n                Back\n              </UiButton>\n              <UiButton size=\"lg\" :disabled=\"loading\" @click=\"finish\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Subscribe\n              </UiButton>\n            </div>\n          </div>\n\n          <div v-else key=\"three\" class=\"py-4 text-center\" role=\"status\">\n            <div\n              class=\"mx-auto flex size-14 items-center justify-center rounded-full bg-green-500/10\"\n            >\n              <Icon name=\"lucide:party-popper\" class=\"size-7 text-green-600 dark:text-green-400\" />\n            </div>\n            <h2 class=\"mt-4 text-2xl font-bold tracking-tight\">You're subscribed</h2>\n            <p class=\"text-muted-foreground mt-2\">\n              We'll send <span class=\"text-foreground font-medium\">{{ summary }}</span> to\n              <span class=\"text-foreground font-medium\">{{ email }}</span>.\n            </p>\n            <UiButton variant=\"ghost\" class=\"mt-5\" @click=\"restart\"\n              >Subscribe another email</UiButton\n            >\n          </div>\n        </Transition>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Get the best of the week\",\n    description: \"Start with your email, then tell us what you like.\",\n  });\n\n  const topics = [\n    { value: \"essays\", label: \"Essays\", text: \"One long read every Friday.\" },\n    { value: \"links\", label: \"Link roundup\", text: \"Five links worth your time.\" },\n    { value: \"product\", label: \"Product updates\", text: \"What shipped and what's next.\" },\n  ];\n\n  const step = ref(1);\n  const email = ref(\"\");\n  const chosen = ref<string[]>([\"essays\"]);\n  const error = ref(\"\");\n  const loading = ref(false);\n\n  const summary = computed(() => {\n    const names = topics\n      .filter((t) => chosen.value.includes(t.value))\n      .map((t) => t.label.toLowerCase());\n    return names.length > 1\n      ? `${names.slice(0, -1).join(\", \")} and ${names.at(-1)}`\n      : (names[0] ?? \"updates\");\n  });\n\n  function next() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    step.value = 2;\n  }\n\n  function toggle(value: string) {\n    chosen.value = chosen.value.includes(value)\n      ? chosen.value.filter((item) => item !== value)\n      : [...chosen.value, value];\n  }\n\n  async function finish() {\n    if (!chosen.value.length) {\n      error.value = \"Choose at least one topic.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    step.value = 3;\n  }\n\n  function restart() {\n    email.value = \"\";\n    chosen.value = [\"essays\"];\n    step.value = 1;\n  }\n</script>\n","category":"Newsletter","description":"Two step newsletter signup. Features: Email first with validation, then a quick interests step with a progress dots indicator, back button, final thank you state with the choices summarized","path":"Newsletter/BlockNewsletter10.vue","components":["button","checkbox","container","input"]},{"name":"Newsletter 11","fileName":"BlockNewsletter11.vue","file":"<template>\n  <!--\n    Compact newsletter card for sidebars and posts\n    Features: Small card with an icon, short copy, validated form that stacks, success state, fits narrow columns\n  -->\n  <div class=\"mx-auto max-w-sm px-4 py-10\">\n    <div class=\"bg-card rounded-2xl border p-6 shadow-sm\">\n      <UiFancyIcon icon=\"lucide:mail\" theme=\"modern\" color=\"gray\" />\n      <h3 class=\"mt-4 text-lg font-semibold\">{{ props.title }}</h3>\n      <p class=\"text-muted-foreground mt-1 text-sm\">{{ props.description }}</p>\n      <form v-if=\"!done\" class=\"mt-5 space-y-3\" novalidate @submit.prevent=\"submit\">\n        <UiInput\n          v-model=\"email\"\n          type=\"email\"\n          placeholder=\"you@example.com\"\n          aria-label=\"Email address\"\n          :aria-invalid=\"!!error\"\n        />\n        <p v-if=\"error\" class=\"text-destructive text-sm\">{{ error }}</p>\n        <UiButton type=\"submit\" class=\"w-full\" :disabled=\"loading\">\n          <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n          Subscribe\n        </UiButton>\n      </form>\n      <div\n        v-else\n        class=\"mt-5 flex items-center gap-2 text-sm font-medium text-green-600 dark:text-green-400\"\n        role=\"status\"\n      >\n        <Icon name=\"lucide:circle-check\" class=\"size-5\" />\n        You're in. Check your inbox.\n        <button\n          type=\"button\"\n          class=\"text-muted-foreground hover:text-foreground ml-auto text-xs font-normal underline underline-offset-4\"\n          @click=\"reset\"\n        >\n          Undo\n        </button>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Subscribe\",\n    description: \"New posts straight to your inbox. No spam.\",\n  });\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Compact newsletter card for sidebars and posts. Features: Small card with an icon, short copy, validated form that stacks, success state, fits narrow columns","path":"Newsletter/BlockNewsletter11.vue","components":["button","fancy-icon","input"]},{"name":"Newsletter 12","fileName":"BlockNewsletter12.vue","file":"<template>\n  <!--\n    Always dark newsletter with a glow\n    Features: Stays dark on a light page, soft colored glow, headline with a pill form, validated email with success state\n  -->\n  <section class=\"px-4 py-10 sm:px-6\">\n    <div\n      class=\"dark bg-background text-foreground relative mx-auto max-w-6xl overflow-hidden rounded-3xl border px-6 py-16 text-center sm:px-12 lg:py-24\"\n    >\n      <div\n        class=\"absolute -top-24 left-1/2 size-96 -translate-x-1/2 rounded-full bg-violet-600/40 blur-3xl\"\n        aria-hidden=\"true\"\n      />\n      <div\n        class=\"absolute -right-20 -bottom-32 size-80 rounded-full bg-sky-500/25 blur-3xl\"\n        aria-hidden=\"true\"\n      />\n      <div class=\"relative mx-auto max-w-2xl\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mx-auto mt-4 max-w-xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mx-auto mt-8 max-w-md\">\n          <form v-if=\"!done\" class=\"w-full\" novalidate @submit.prevent=\"submit\">\n            <div\n              class=\"bg-background flex items-center gap-1 rounded-full border p-1.5 pl-5 shadow-sm\"\n            >\n              <input\n                v-model=\"email\"\n                type=\"email\"\n                placeholder=\"you@example.com\"\n                aria-label=\"Email address\"\n                class=\"placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-sm outline-none\"\n              />\n              <UiButton type=\"submit\" :disabled=\"loading\" class=\"shrink-0 rounded-full\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Join the list\n              </UiButton>\n            </div>\n            <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n          </form>\n          <div\n            v-else\n            class=\"flex w-full items-center gap-3 rounded-xl border border-green-500/30 bg-green-500/10 p-4 text-left\"\n            role=\"status\"\n          >\n            <Icon\n              name=\"lucide:circle-check\"\n              class=\"size-6 shrink-0 text-green-600 dark:text-green-400\"\n            />\n            <div>\n              <p class=\"font-semibold\">You're subscribed</p>\n              <p class=\"text-muted-foreground text-sm\">Check your inbox to confirm your email.</p>\n            </div>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n          </div>\n        </div>\n        <p v-if=\"!done\" class=\"text-muted-foreground mt-4 text-xs\">\n          Early access, product news and nothing else.\n        </p>\n      </div>\n    </div>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Be first to try what's next\",\n    description:\n      \"Get early access to new features and behind the scenes updates before anyone else.\",\n  });\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Always dark newsletter with a glow. Features: Stays dark on a light page, soft colored glow, headline with a pill form, validated email with success state","path":"Newsletter/BlockNewsletter12.vue","components":["button"]},{"name":"Newsletter 2","fileName":"BlockNewsletter2.vue","file":"<template>\n  <!--\n    Horizontal newsletter bar with reader avatars\n    Features: Heading and copy beside a validated form, avatar stack with reader count, success state that replaces the form\n  -->\n  <UiContainer class=\"py-12 lg:py-16\">\n    <div class=\"grid items-center gap-8 border-y py-10 lg:grid-cols-2 lg:gap-16\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance\">{{ props.title }}</h2>\n        <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n      </div>\n      <div>\n        <form v-if=\"!done\" class=\"w-full\" novalidate @submit.prevent=\"submit\">\n          <div class=\"flex flex-col gap-2 sm:flex-row\">\n            <UiInput\n              v-model=\"email\"\n              type=\"email\"\n              placeholder=\"you@example.com\"\n              aria-label=\"Email address\"\n              class=\"h-11\"\n              :aria-invalid=\"!!error\"\n            />\n            <UiButton type=\"submit\" size=\"lg\" :disabled=\"loading\" class=\"shrink-0\">\n              <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n              Subscribe\n            </UiButton>\n          </div>\n          <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n        </form>\n        <div\n          v-else\n          class=\"flex w-full items-center gap-3 rounded-xl border border-green-500/30 bg-green-500/10 p-4 text-left\"\n          role=\"status\"\n        >\n          <Icon\n            name=\"lucide:circle-check\"\n            class=\"size-6 shrink-0 text-green-600 dark:text-green-400\"\n          />\n          <div>\n            <p class=\"font-semibold\">You're subscribed</p>\n            <p class=\"text-muted-foreground text-sm\">Check your inbox to confirm your email.</p>\n          </div>\n          <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n        </div>\n        <div class=\"mt-4 flex items-center gap-3\">\n          <div class=\"flex -space-x-2\">\n            <UiAvatar\n              v-for=\"avatar in avatars\"\n              :key=\"avatar\"\n              :src=\"avatar\"\n              class=\"ring-background size-8 ring-2\"\n            />\n          </div>\n          <p class=\"text-muted-foreground text-sm\">\n            Join <span class=\"text-foreground font-semibold\">15,000+</span> readers. Unsubscribe\n            anytime.\n          </p>\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Sign up for our newsletter\",\n    description: \"Be the first to know about releases and industry news and insights.\",\n  });\n\n  const avatars = [\n    \"https://i.pravatar.cc/80?img=47\",\n    \"https://i.pravatar.cc/80?img=12\",\n    \"https://i.pravatar.cc/80?img=45\",\n    \"https://i.pravatar.cc/80?img=32\",\n  ];\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Horizontal newsletter bar with reader avatars. Features: Heading and copy beside a validated form, avatar stack with reader count, success state that replaces the form","path":"Newsletter/BlockNewsletter2.vue","components":["avatar","button","container","input"]},{"name":"Newsletter 3","fileName":"BlockNewsletter3.vue","file":"<template>\n  <!--\n    Centered newsletter with a pill form\n    Features: Badge, headline, pill shaped email field with validation, success state with a party icon, soft glow, staggered entrance\n  -->\n  <section class=\"relative overflow-hidden\">\n    <div\n      class=\"from-primary/10 pointer-events-none absolute inset-x-0 top-0 h-72 bg-linear-to-b to-transparent\"\n      aria-hidden=\"true\"\n    />\n    <UiContainer class=\"relative py-16 text-center lg:py-24\">\n      <Motion\n        class=\"mx-auto max-w-2xl\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ type: 'spring', stiffness: 140, damping: 22 }\"\n      >\n        <UiBadge variant=\"secondary\" class=\"rounded-full px-3 py-1\">Newsletter</UiBadge>\n        <h2 class=\"mt-5 text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mx-auto mt-4 max-w-xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mx-auto mt-8 max-w-md\">\n          <form v-if=\"!done\" class=\"w-full\" novalidate @submit.prevent=\"submit\">\n            <div\n              class=\"bg-background flex items-center gap-1 rounded-full border p-1.5 pl-5 shadow-sm\"\n            >\n              <input\n                v-model=\"email\"\n                type=\"email\"\n                placeholder=\"you@example.com\"\n                aria-label=\"Email address\"\n                class=\"placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-sm outline-none\"\n              />\n              <UiButton type=\"submit\" :disabled=\"loading\" class=\"shrink-0 rounded-full\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Subscribe now\n              </UiButton>\n            </div>\n            <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n          </form>\n          <div\n            v-else\n            class=\"flex w-full items-center gap-3 rounded-xl border border-green-500/30 bg-green-500/10 p-4 text-left\"\n            role=\"status\"\n          >\n            <Icon\n              name=\"lucide:circle-check\"\n              class=\"size-6 shrink-0 text-green-600 dark:text-green-400\"\n            />\n            <div>\n              <p class=\"font-semibold\">You're subscribed</p>\n              <p class=\"text-muted-foreground text-sm\">Check your inbox to confirm your email.</p>\n            </div>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n          </div>\n        </div>\n        <p v-if=\"!done\" class=\"text-muted-foreground mt-3 text-xs\">\n          We respect your privacy. Unsubscribe at any time.\n        </p>\n      </Motion>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Stay in the loop\",\n    description:\n      \"Join our newsletter for the latest updates, exclusive content and special offers delivered to your inbox.\",\n  });\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Centered newsletter with a pill form. Features: Badge, headline, pill shaped email field with validation, success state with a party icon, soft glow, staggered entrance","path":"Newsletter/BlockNewsletter3.vue","components":["badge","button","container"]},{"name":"Newsletter 4","fileName":"BlockNewsletter4.vue","file":"<template>\n  <!--\n    Card newsletter with a subscriber count and perks\n    Features: Split card, subscriber count badge, perk list with icons, validated form, decorative tiles that need no images\n  -->\n  <UiContainer class=\"py-14 lg:py-20\">\n    <div class=\"bg-card grid overflow-hidden rounded-3xl border shadow-sm lg:grid-cols-[1.2fr_1fr]\">\n      <div class=\"p-8 sm:p-12\">\n        <UiBadge variant=\"outline\" class=\"gap-1.5 rounded-full py-1\">\n          <Icon name=\"lucide:users\" class=\"size-3.5\" />\n          {{ props.count }} subscribers\n        </UiBadge>\n        <h2 class=\"mt-5 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-4 text-balance\">{{ props.description }}</p>\n        <div class=\"mt-7\">\n          <form v-if=\"!done\" class=\"max-w-md\" novalidate @submit.prevent=\"submit\">\n            <div class=\"flex flex-col gap-2 sm:flex-row\">\n              <UiInput\n                v-model=\"email\"\n                type=\"email\"\n                placeholder=\"Your email address\"\n                aria-label=\"Email address\"\n                class=\"h-11\"\n                :aria-invalid=\"!!error\"\n              />\n              <UiButton type=\"submit\" size=\"lg\" :disabled=\"loading\" class=\"shrink-0\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Get started\n              </UiButton>\n            </div>\n            <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n          </form>\n          <div\n            v-else\n            class=\"flex max-w-md items-center gap-3 rounded-xl border border-green-500/30 bg-green-500/10 p-4 text-left\"\n            role=\"status\"\n          >\n            <Icon\n              name=\"lucide:circle-check\"\n              class=\"size-6 shrink-0 text-green-600 dark:text-green-400\"\n            />\n            <div>\n              <p class=\"font-semibold\">You're subscribed</p>\n              <p class=\"text-muted-foreground text-sm\">Check your inbox to confirm your email.</p>\n            </div>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n          </div>\n        </div>\n        <ul class=\"text-muted-foreground mt-6 flex flex-wrap gap-x-6 gap-y-2 text-sm\">\n          <li v-for=\"perk in perks\" :key=\"perk.label\" class=\"flex items-center gap-2\">\n            <Icon :name=\"perk.icon\" class=\"text-primary size-4\" />\n            {{ perk.label }}\n          </li>\n        </ul>\n      </div>\n      <div\n        class=\"from-primary/15 to-primary/5 relative hidden items-center justify-center bg-linear-to-br lg:flex\"\n        aria-hidden=\"true\"\n      >\n        <div class=\"grid grid-cols-2 gap-4 p-10\">\n          <Motion\n            v-for=\"(tile, i) in tiles\"\n            :key=\"tile\"\n            class=\"bg-card flex size-24 items-center justify-center rounded-2xl border shadow-lg\"\n            :animate=\"{ y: [0, i % 2 ? 8 : -8, 0] }\"\n            :transition=\"{ duration: 4 + i, repeat: Infinity, ease: 'easeInOut' }\"\n          >\n            <Icon :name=\"tile\" class=\"text-primary size-8\" />\n          </Motion>\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; count?: string }>(),\n    {\n      title: \"Join 10,000+ subscribers\",\n      description:\n        \"Weekly insights, tips and exclusive content delivered to your inbox. No spam, ever.\",\n      count: \"10,482\",\n    }\n  );\n\n  const perks = [\n    { label: \"Free forever\", icon: \"lucide:circle-check\" },\n    { label: \"No spam\", icon: \"lucide:shield-check\" },\n    { label: \"Unsubscribe anytime\", icon: \"lucide:mail-x\" },\n  ];\n  const tiles = [\"lucide:newspaper\", \"lucide:lightbulb\", \"lucide:chart-line\", \"lucide:gift\"];\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Card newsletter with a subscriber count and perks. Features: Split card, subscriber count badge, perk list with icons, validated form, decorative tiles that need no images","path":"Newsletter/BlockNewsletter4.vue","components":["badge","button","container","input"]},{"name":"Newsletter 5","fileName":"BlockNewsletter5.vue","file":"<template>\n  <!--\n    Newsletter preferences form\n    Features: Name and email fields with validation, selectable topic chips, frequency choice, terms checkbox that must be accepted, loading and success states on a grid background\n  -->\n  <section class=\"relative overflow-hidden\">\n    <div\n      class=\"absolute inset-0 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(ellipse_at_center,black_20%,transparent_70%)] bg-size-[48px_48px]\"\n      aria-hidden=\"true\"\n    />\n    <UiContainer class=\"relative py-14 lg:py-20\">\n      <div class=\"mx-auto max-w-2xl text-center\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n      </div>\n\n      <UiCard class=\"mx-auto mt-10 max-w-xl shadow-sm\">\n        <UiCardContent>\n          <form v-if=\"!done\" class=\"grid gap-6\" novalidate @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-6\">\n              <div class=\"grid gap-4 sm:grid-cols-2\">\n                <UiVeeInput name=\"firstName\" label=\"First name\" placeholder=\"Jane\" />\n                <UiVeeInput name=\"lastName\" label=\"Last name\" placeholder=\"Doe\" />\n              </div>\n              <UiVeeInput\n                name=\"email\"\n                type=\"email\"\n                label=\"Email address\"\n                placeholder=\"you@example.com\"\n              />\n\n              <div class=\"grid gap-3\">\n                <UiLabel>What are you interested in?</UiLabel>\n                <div class=\"flex flex-wrap gap-2\">\n                  <button\n                    v-for=\"topic in topics\"\n                    :key=\"topic.value\"\n                    type=\"button\"\n                    class=\"flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm font-medium transition-colors\"\n                    :class=\"\n                      selected.includes(topic.value)\n                        ? 'border-primary bg-primary/10 text-primary'\n                        : 'hover:bg-muted'\n                    \"\n                    :aria-pressed=\"selected.includes(topic.value)\"\n                    @click=\"toggle(topic.value)\"\n                  >\n                    <Icon\n                      :name=\"selected.includes(topic.value) ? 'lucide:check' : topic.icon\"\n                      class=\"size-4\"\n                    />\n                    {{ topic.label }}\n                  </button>\n                </div>\n              </div>\n\n              <div class=\"grid gap-3\">\n                <UiLabel>How often?</UiLabel>\n                <UiRadioGroup v-model=\"frequency\" class=\"grid grid-cols-3 gap-3\">\n                  <label\n                    v-for=\"option in frequencies\"\n                    :key=\"option\"\n                    class=\"flex cursor-pointer items-center justify-center gap-2 rounded-lg border px-3 py-2 text-sm transition-colors\"\n                    :class=\"\n                      frequency === option ? 'border-primary bg-primary/5' : 'hover:bg-accent/50'\n                    \"\n                  >\n                    <UiRadioGroupItem :value=\"option\" class=\"sr-only\" />\n                    {{ option }}\n                  </label>\n                </UiRadioGroup>\n              </div>\n\n              <UiVeeCheckbox\n                name=\"terms\"\n                label=\"I agree to receive marketing emails and accept the privacy policy\"\n              />\n              <UiButton type=\"submit\" size=\"lg\" class=\"w-full\">\n                <Icon v-if=\"isSubmitting\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Subscribe to newsletter\n              </UiButton>\n            </fieldset>\n          </form>\n\n          <div v-else class=\"py-6 text-center\" role=\"status\">\n            <div\n              class=\"mx-auto flex size-14 items-center justify-center rounded-full bg-green-500/10\"\n            >\n              <Icon name=\"lucide:circle-check\" class=\"size-7 text-green-600 dark:text-green-400\" />\n            </div>\n            <h3 class=\"mt-4 text-xl font-semibold\">You're all set, {{ name }}</h3>\n            <p class=\"text-muted-foreground mt-1 text-sm\">\n              We'll send {{ frequency.toLowerCase() }} emails about\n              {{ selected.length ? selected.join(\", \") : \"everything we publish\" }}.\n            </p>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"mt-4\" @click=\"done = false\"\n              >Change preferences</UiButton\n            >\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Subscribe to our newsletter\",\n    description: \"Tell us what you care about and we'll only send what's relevant.\",\n  });\n\n  const topics = [\n    { value: \"product\", label: \"Product news\", icon: \"lucide:rocket\" },\n    { value: \"design\", label: \"Design\", icon: \"lucide:palette\" },\n    { value: \"engineering\", label: \"Engineering\", icon: \"lucide:code\" },\n    { value: \"company\", label: \"Company\", icon: \"lucide:building-2\" },\n  ];\n  const frequencies = [\"Weekly\", \"Monthly\", \"Quarterly\"];\n\n  const selected = ref<string[]>([\"product\"]);\n  const frequency = ref(\"Weekly\");\n  const done = ref(false);\n  const name = ref(\"\");\n\n  function toggle(value: string) {\n    selected.value = selected.value.includes(value)\n      ? selected.value.filter((item) => item !== value)\n      : [...selected.value, value];\n  }\n\n  const schema = object({\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    email: string().email().required().label(\"Email address\"),\n    terms: boolean().oneOf([true], \"Please accept to continue\").label(\"Terms\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    name.value = values.firstName;\n    done.value = true;\n  });\n</script>\n","category":"Newsletter","description":"Newsletter preferences form. Features: Name and email fields with validation, selectable topic chips, frequency choice, terms checkbox that must be accepted, loading and success states on a grid background","path":"Newsletter/BlockNewsletter5.vue","components":["button","card","container","label","radio-group","vee-checkbox","vee-input"]},{"name":"Newsletter 6","fileName":"BlockNewsletter6.vue","file":"<template>\n  <!--\n    Newsletter with benefit cards\n    Features: Heading and form on the left, three benefit cards with fancy icons on the right, validated form with success state\n  -->\n  <UiContainer class=\"py-14 lg:py-20\">\n    <div class=\"grid items-center gap-12 lg:grid-cols-2 lg:gap-16\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-4 text-lg text-balance\">{{ props.description }}</p>\n        <div class=\"mt-8\">\n          <form v-if=\"!done\" class=\"w-full\" novalidate @submit.prevent=\"submit\">\n            <div class=\"flex flex-col gap-2 sm:flex-row\">\n              <UiInput\n                v-model=\"email\"\n                type=\"email\"\n                placeholder=\"you@example.com\"\n                aria-label=\"Email address\"\n                class=\"h-11\"\n                :aria-invalid=\"!!error\"\n              />\n              <UiButton type=\"submit\" size=\"lg\" :disabled=\"loading\" class=\"shrink-0\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Subscribe\n              </UiButton>\n            </div>\n            <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n          </form>\n          <div\n            v-else\n            class=\"flex w-full items-center gap-3 rounded-xl border border-green-500/30 bg-green-500/10 p-4 text-left\"\n            role=\"status\"\n          >\n            <Icon\n              name=\"lucide:circle-check\"\n              class=\"size-6 shrink-0 text-green-600 dark:text-green-400\"\n            />\n            <div>\n              <p class=\"font-semibold\">You're subscribed</p>\n              <p class=\"text-muted-foreground text-sm\">Check your inbox to confirm your email.</p>\n            </div>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n          </div>\n        </div>\n      </div>\n      <ul class=\"grid gap-4\">\n        <li\n          v-for=\"benefit in benefits\"\n          :key=\"benefit.title\"\n          class=\"bg-card hover:border-ring/50 flex gap-4 rounded-2xl border p-5 transition-colors\"\n        >\n          <UiFancyIcon :icon=\"benefit.icon\" theme=\"light\" :color=\"benefit.color\" />\n          <div>\n            <p class=\"font-semibold\">{{ benefit.title }}</p>\n            <p class=\"text-muted-foreground mt-0.5 text-sm\">{{ benefit.text }}</p>\n          </div>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Get our latest updates\",\n    description: \"Join thousands of professionals who stay ahead with our weekly newsletter.\",\n  });\n\n  type Color = \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n  const benefits: { title: string; text: string; icon: string; color: Color }[] = [\n    {\n      title: \"Weekly digest\",\n      text: \"Curated content every Monday morning.\",\n      icon: \"lucide:mail\",\n      color: \"info\",\n    },\n    {\n      title: \"Instant updates\",\n      text: \"Breaking news and product alerts.\",\n      icon: \"lucide:bell\",\n      color: \"warning\",\n    },\n    {\n      title: \"Exclusive offers\",\n      text: \"Subscriber only deals and early access.\",\n      icon: \"lucide:gift\",\n      color: \"success\",\n    },\n  ];\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Newsletter with benefit cards. Features: Heading and form on the left, three benefit cards with fancy icons on the right, validated form with success state","path":"Newsletter/BlockNewsletter6.vue","components":["button","container","fancy-icon","input"]},{"name":"Newsletter 7","fileName":"BlockNewsletter7.vue","file":"<template>\n  <!--\n    Premium centered newsletter card with social proof\n    Features: Sparkles icon, subscriber count, rating and security notes, validated form with success state, soft corner decoration\n  -->\n  <UiContainer class=\"py-14 lg:py-20\">\n    <div\n      class=\"bg-card relative mx-auto max-w-3xl overflow-hidden rounded-3xl border p-8 text-center shadow-sm sm:p-14\"\n    >\n      <div\n        class=\"bg-primary/10 absolute -top-16 -right-16 size-56 rounded-full blur-2xl\"\n        aria-hidden=\"true\"\n      />\n      <div class=\"relative\">\n        <UiFancyIcon\n          icon=\"lucide:sparkles\"\n          theme=\"gradient\"\n          color=\"primary\"\n          size=\"xl\"\n          class=\"mx-auto\"\n        />\n        <h2 class=\"mt-6 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl text-lg text-balance\">\n          {{ props.description }}\n        </p>\n        <div class=\"mx-auto mt-8 max-w-md\">\n          <form v-if=\"!done\" class=\"w-full\" novalidate @submit.prevent=\"submit\">\n            <div class=\"flex flex-col gap-2 sm:flex-row\">\n              <UiInput\n                v-model=\"email\"\n                type=\"email\"\n                placeholder=\"Enter your email address\"\n                aria-label=\"Email address\"\n                class=\"h-11\"\n                :aria-invalid=\"!!error\"\n              />\n              <UiButton type=\"submit\" size=\"lg\" :disabled=\"loading\" class=\"shrink-0\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Join now\n              </UiButton>\n            </div>\n            <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n          </form>\n          <div\n            v-else\n            class=\"flex w-full items-center gap-3 rounded-xl border border-green-500/30 bg-green-500/10 p-4 text-left\"\n            role=\"status\"\n          >\n            <Icon\n              name=\"lucide:circle-check\"\n              class=\"size-6 shrink-0 text-green-600 dark:text-green-400\"\n            />\n            <div>\n              <p class=\"font-semibold\">You're subscribed</p>\n              <p class=\"text-muted-foreground text-sm\">Check your inbox to confirm your email.</p>\n            </div>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n          </div>\n        </div>\n        <ul\n          class=\"text-muted-foreground mt-6 flex flex-wrap justify-center gap-x-6 gap-y-2 text-sm\"\n        >\n          <li class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:users\" class=\"size-4\" /> 15K+ subscribers\n          </li>\n          <li class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:star\" class=\"size-4 fill-amber-400 text-amber-400\" /> 4.9 rating\n          </li>\n          <li class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:lock\" class=\"size-4\" /> 100% secure\n          </li>\n        </ul>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Don't miss out on our updates\",\n    description:\n      \"Join our community and be the first to know about new features, updates and special offers.\",\n  });\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Premium centered newsletter card with social proof. Features: Sparkles icon, subscriber count, rating and security notes, validated form with success state, soft corner decoration","path":"Newsletter/BlockNewsletter7.vue","components":["button","container","fancy-icon","input"]},{"name":"Newsletter 8","fileName":"BlockNewsletter8.vue","file":"<template>\n  <!--\n    Full width gradient newsletter band\n    Features: Vivid gradient with blurred shapes, headline with a pill email form, success state with a check, readable text on any theme\n  -->\n  <section class=\"px-4 py-10 sm:px-6\">\n    <div\n      class=\"relative mx-auto max-w-6xl overflow-hidden rounded-3xl bg-linear-to-br from-indigo-600 via-purple-600 to-pink-500 px-6 py-14 text-center text-white sm:px-12 lg:py-20\"\n    >\n      <div\n        class=\"absolute -top-20 -left-10 size-72 rounded-full bg-white/20 blur-3xl\"\n        aria-hidden=\"true\"\n      />\n      <div\n        class=\"absolute -right-10 -bottom-24 size-72 rounded-full bg-fuchsia-300/30 blur-3xl\"\n        aria-hidden=\"true\"\n      />\n      <div class=\"relative mx-auto max-w-2xl\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"mx-auto mt-4 max-w-xl text-lg text-balance text-white/80\">\n          {{ props.description }}\n        </p>\n        <div class=\"text-foreground mx-auto mt-8 max-w-md\">\n          <form v-if=\"!done\" class=\"w-full\" novalidate @submit.prevent=\"submit\">\n            <div\n              class=\"bg-background flex items-center gap-1 rounded-full border p-1.5 pl-5 shadow-sm\"\n            >\n              <input\n                v-model=\"email\"\n                type=\"email\"\n                placeholder=\"you@example.com\"\n                aria-label=\"Email address\"\n                class=\"placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-sm outline-none\"\n              />\n              <UiButton type=\"submit\" :disabled=\"loading\" class=\"shrink-0 rounded-full\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Subscribe\n              </UiButton>\n            </div>\n            <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n          </form>\n          <div\n            v-else\n            class=\"flex w-full items-center gap-3 rounded-xl border border-green-500/30 bg-green-500/10 p-4 text-left\"\n            role=\"status\"\n          >\n            <Icon\n              name=\"lucide:circle-check\"\n              class=\"size-6 shrink-0 text-green-600 dark:text-green-400\"\n            />\n            <div>\n              <p class=\"font-semibold\">You're subscribed</p>\n              <p class=\"text-muted-foreground text-sm\">Check your inbox to confirm your email.</p>\n            </div>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n          </div>\n        </div>\n        <p v-if=\"!done\" class=\"mt-4 text-xs text-white/70\">One email a week. No spam, ever.</p>\n      </div>\n    </div>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"Ideas worth your inbox\",\n    description:\n      \"Short, useful and occasionally funny. Join the readers who start Friday with our newsletter.\",\n  });\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Full width gradient newsletter band. Features: Vivid gradient with blurred shapes, headline with a pill email form, success state with a check, readable text on any theme","path":"Newsletter/BlockNewsletter8.vue","components":["button"]},{"name":"Newsletter 9","fileName":"BlockNewsletter9.vue","file":"<template>\n  <!--\n    Newsletter with recent issues\n    Features: Signup form beside a list of the latest issues with dates and read times, hover states, validated form with a success message\n  -->\n  <UiContainer class=\"py-14 lg:py-20\">\n    <div class=\"grid gap-12 lg:grid-cols-[1fr_1.1fr] lg:gap-16\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-4 text-lg text-balance\">{{ props.description }}</p>\n        <div class=\"mt-8\">\n          <form v-if=\"!done\" class=\"w-full\" novalidate @submit.prevent=\"submit\">\n            <div class=\"flex flex-col gap-2 sm:flex-row\">\n              <UiInput\n                v-model=\"email\"\n                type=\"email\"\n                placeholder=\"you@example.com\"\n                aria-label=\"Email address\"\n                class=\"h-11\"\n                :aria-invalid=\"!!error\"\n              />\n              <UiButton type=\"submit\" size=\"lg\" :disabled=\"loading\" class=\"shrink-0\">\n                <Icon v-if=\"loading\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n                Subscribe\n              </UiButton>\n            </div>\n            <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n          </form>\n          <div\n            v-else\n            class=\"flex w-full items-center gap-3 rounded-xl border border-green-500/30 bg-green-500/10 p-4 text-left\"\n            role=\"status\"\n          >\n            <Icon\n              name=\"lucide:circle-check\"\n              class=\"size-6 shrink-0 text-green-600 dark:text-green-400\"\n            />\n            <div>\n              <p class=\"font-semibold\">You're subscribed</p>\n              <p class=\"text-muted-foreground text-sm\">Check your inbox to confirm your email.</p>\n            </div>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"ml-auto\" @click=\"reset\">Undo</UiButton>\n          </div>\n        </div>\n        <p class=\"text-muted-foreground mt-3 text-sm\">Join 12,400 readers. Free, always.</p>\n      </div>\n      <div>\n        <p class=\"text-muted-foreground mb-3 text-sm font-semibold\">Recent issues</p>\n        <ul class=\"divide-y rounded-2xl border\">\n          <li v-for=\"issue in issues\" :key=\"issue.title\">\n            <NuxtLink\n              to=\"#\"\n              class=\"hover:bg-muted/50 group flex items-center gap-4 p-5 transition-colors\"\n            >\n              <span class=\"text-muted-foreground w-10 shrink-0 text-sm tabular-nums\"\n                >#{{ issue.number }}</span\n              >\n              <span class=\"min-w-0 flex-1\">\n                <span class=\"block font-semibold\">{{ issue.title }}</span>\n                <span class=\"text-muted-foreground text-sm\"\n                  >{{ issue.date }} · {{ issue.read }} min read</span\n                >\n              </span>\n              <Icon\n                name=\"lucide:arrow-up-right\"\n                class=\"text-muted-foreground size-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5\"\n              />\n            </NuxtLink>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(defineProps<{ title?: string; description?: string }>(), {\n    title: \"The Friday Letter\",\n    description:\n      \"Five links, one essay and a thing we built this week. Read the best of the internet in five minutes.\",\n  });\n\n  const issues = [\n    { number: 42, title: \"Why boring software wins\", date: \"Oct 10\", read: 6 },\n    { number: 41, title: \"A field guide to design tokens\", date: \"Oct 3\", read: 8 },\n    { number: 40, title: \"Shipping on Fridays, on purpose\", date: \"Sep 26\", read: 5 },\n  ];\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const loading = ref(false);\n  const done = ref(false);\n\n  async function submit() {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    done.value = true;\n  }\n\n  function reset() {\n    done.value = false;\n    email.value = \"\";\n  }\n</script>\n","category":"Newsletter","description":"Newsletter with recent issues. Features: Signup form beside a list of the latest issues with dates and read times, hover states, validated form with a success message","path":"Newsletter/BlockNewsletter9.vue","components":["button","container","input"]},{"name":"Notification Center 1","fileName":"BlockNotificationCenter1.vue","file":"<template>\n  <!--\n    Notification bell with a popover list\n    Features: Bell button with an unread count, a popover with the latest notifications, unread dots, a mark all as read action, click a row to mark it read, relative times and a view all link\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <header class=\"flex items-center justify-between rounded-xl border px-4 py-3\">\n        <span class=\"flex items-center gap-2 font-semibold\"\n          ><Icon name=\"lucide:layout-dashboard\" class=\"size-5\" />Acme</span\n        >\n        <div class=\"flex items-center gap-2\">\n          <UiPopover>\n            <UiPopoverTrigger as-child>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon\"\n                class=\"relative\"\n                :aria-label=\"`Notifications, ${unread} unread`\"\n              >\n                <Icon name=\"lucide:bell\" class=\"size-5\" />\n                <span\n                  v-if=\"unread\"\n                  class=\"bg-primary text-primary-foreground absolute -top-0.5 -right-0.5 grid min-w-4 place-items-center rounded-full px-1 text-[10px] leading-4 font-semibold\"\n                  aria-hidden=\"true\"\n                  >{{ unread }}</span\n                >\n              </UiButton>\n            </UiPopoverTrigger>\n            <UiPopoverContent align=\"end\" class=\"w-[22rem] p-0\">\n              <div class=\"flex items-center justify-between border-b px-4 py-3\">\n                <p class=\"text-sm font-semibold\">Notifications</p>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  class=\"h-7 px-2\"\n                  :disabled=\"!unread\"\n                  @click=\"markAll\"\n                  >Mark all as read</UiButton\n                >\n              </div>\n              <ul v-if=\"items.length\" class=\"max-h-80 divide-y overflow-y-auto\">\n                <li v-for=\"item in items\" :key=\"item.id\">\n                  <button\n                    type=\"button\"\n                    class=\"hover:bg-accent focus-visible:bg-accent flex w-full items-start gap-3 px-4 py-3 text-left outline-none\"\n                    @click=\"item.read = true\"\n                  >\n                    <UiAvatar\n                      :src=\"`https://i.pravatar.cc/80?img=${item.avatar}`\"\n                      :fallback=\"item.actor.slice(0, 1)\"\n                      class=\"size-8\"\n                    />\n                    <span class=\"min-w-0 flex-1 text-sm\">\n                      <span class=\"block leading-snug\">\n                        <span class=\"font-medium\">{{ item.actor }}</span> {{ item.text }}\n                        <span class=\"font-medium\">{{ item.target }}</span>\n                      </span>\n                      <span class=\"text-muted-foreground mt-0.5 block text-xs\">{{\n                        ago(item.at)\n                      }}</span>\n                    </span>\n                    <span\n                      v-if=\"!item.read\"\n                      class=\"bg-primary mt-1.5 size-2 shrink-0 rounded-full\"\n                      aria-label=\"Unread\"\n                    />\n                  </button>\n                </li>\n              </ul>\n              <p v-else class=\"text-muted-foreground px-4 py-10 text-center text-sm\">\n                No notifications yet.\n              </p>\n              <div class=\"border-t p-2\">\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  class=\"w-full\"\n                  @click=\"useSonner.info('Open your notifications page here')\"\n                  >View all notifications</UiButton\n                >\n              </div>\n            </UiPopoverContent>\n          </UiPopover>\n          <UiAvatar src=\"https://i.pravatar.cc/80?img=32\" fallback=\"A\" class=\"size-8\" />\n        </div>\n      </header>\n      <p class=\"text-muted-foreground mt-6 text-center text-sm\">\n        Select the bell to open the popover.\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Notification = {\n    id: string;\n    actor: string;\n    avatar: number;\n    text: string;\n    target: string;\n    /** When it happened, as `YYYY-MM-DDTHH:mm`. */\n    at: string;\n    read: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      /** The current moment as `YYYY-MM-DDTHH:mm`. */\n      now?: string;\n      notifications?: Notification[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      notifications: () => [\n        {\n          id: \"n1\",\n          actor: \"Maya Patel\",\n          avatar: 32,\n          text: \"commented on\",\n          target: \"Homepage redesign\",\n          at: \"2026-10-18T10:05\",\n          read: false,\n        },\n        {\n          id: \"n2\",\n          actor: \"Leo Fischer\",\n          avatar: 12,\n          text: \"mentioned you in\",\n          target: \"API rate limits\",\n          at: \"2026-10-18T09:40\",\n          read: false,\n        },\n        {\n          id: \"n3\",\n          actor: \"Sofia Alvarez\",\n          avatar: 45,\n          text: \"invited you to\",\n          target: \"Q4 planning\",\n          at: \"2026-10-18T08:15\",\n          read: false,\n        },\n        {\n          id: \"n4\",\n          actor: \"Noah Kim\",\n          avatar: 15,\n          text: \"approved\",\n          target: \"Release 2.4\",\n          at: \"2026-10-17T16:30\",\n          read: true,\n        },\n        {\n          id: \"n5\",\n          actor: \"Priya Nair\",\n          avatar: 44,\n          text: \"assigned you to\",\n          target: \"Fix invoice rounding\",\n          at: \"2026-10-16T11:00\",\n          read: true,\n        },\n      ],\n    }\n  );\n\n  const items = ref<Notification[]>(props.notifications.map((item) => ({ ...item })));\n  const unread = computed(() => items.value.filter((item) => !item.read).length);\n\n  function ago(iso: string) {\n    const diff = Math.round(\n      (new Date(`${props.now}:00Z`).getTime() - new Date(`${iso}:00Z`).getTime()) / 60000\n    );\n    if (diff < 1) return \"Just now\";\n    if (diff < 60) return `${diff}m ago`;\n    if (diff < 1440) return `${Math.floor(diff / 60)}h ago`;\n    const days = Math.floor(diff / 1440);\n    return days === 1 ? \"Yesterday\" : `${days}d ago`;\n  }\n\n  function markAll() {\n    items.value.forEach((item) => (item.read = true));\n  }\n</script>\n","category":"NotificationCenter","description":"Notification bell with a popover list. Features: Bell button with an unread count, a popover with the latest notifications, unread dots, a mark all as read action, click a row to mark it read, relative times and a view all link","path":"Activity/NotificationCenter/BlockNotificationCenter1.vue","components":["avatar","button","container","popover"]},{"name":"Notification Center 2","fileName":"BlockNotificationCenter2.vue","file":"<template>\n  <!--\n    Notifications page with bulk actions\n    Features: Full page list with a type filter, a checkbox on every row, select all, a bulk bar to mark as read or delete the selection, unread highlight, load more and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-center justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Notifications</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">{{ unread }} unread</p>\n        </div>\n        <UiSelect v-model=\"type\">\n          <UiSelectTrigger class=\"w-44\" aria-label=\"Filter by type\"\n            ><UiSelectValue\n          /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"all\">All types</UiSelectItem>\n            <UiSelectItem v-for=\"(label, key) in kinds\" :key=\"key\" :value=\"key\">{{\n              label\n            }}</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n\n      <div class=\"mt-5 flex min-h-10 items-center gap-3 border-b pb-3\">\n        <UiCheckbox\n          id=\"select-all\"\n          :model-value=\"allSelected ? true : someSelected ? 'indeterminate' : false\"\n          :disabled=\"!visible.length\"\n          @update:model-value=\"toggleAll\"\n        />\n        <UiLabel for=\"select-all\" class=\"text-sm font-normal\">Select all</UiLabel>\n        <span v-if=\"selected.size\" class=\"text-muted-foreground text-sm\" aria-live=\"polite\"\n          >{{ selected.size }} selected</span\n        >\n        <div v-if=\"selected.size\" class=\"ml-auto flex gap-2\">\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"markSelected\"\n            ><Icon name=\"lucide:check-check\" class=\"size-4\" />Mark as read</UiButton\n          >\n          <UiButton variant=\"outline\" size=\"sm\" class=\"text-destructive\" @click=\"removeSelected\"\n            ><Icon name=\"lucide:trash-2\" class=\"size-4\" />Delete</UiButton\n          >\n        </div>\n      </div>\n\n      <ul v-if=\"shown.length\" class=\"divide-y\" aria-live=\"polite\">\n        <li\n          v-for=\"item in shown\"\n          :key=\"item.id\"\n          class=\"flex items-start gap-3 py-4\"\n          :class=\"item.read ? '' : 'bg-primary/5 -mx-3 rounded-lg px-3'\"\n        >\n          <UiCheckbox\n            :id=\"`row-${item.id}`\"\n            class=\"mt-1\"\n            :model-value=\"selected.has(item.id)\"\n            :aria-label=\"`Select: ${item.actor} ${item.text} ${item.target}`\"\n            @update:model-value=\"toggle(item.id)\"\n          />\n          <UiAvatar\n            :src=\"`https://i.pravatar.cc/80?img=${item.avatar}`\"\n            :fallback=\"item.actor.slice(0, 1)\"\n            class=\"size-9\"\n          />\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"text-sm\">\n              <span class=\"font-medium\">{{ item.actor }}</span> {{ item.text }}\n              <span class=\"font-medium\">{{ item.target }}</span>\n            </p>\n            <p class=\"text-muted-foreground mt-0.5 flex items-center gap-2 text-xs\">\n              {{ ago(item.at) }}\n              <UiBadge variant=\"soft\" shape=\"pill\">{{ kinds[item.kind] }}</UiBadge>\n            </p>\n          </div>\n          <span\n            v-if=\"!item.read\"\n            class=\"bg-primary mt-2 size-2 shrink-0 rounded-full\"\n            aria-label=\"Unread\"\n          />\n        </li>\n      </ul>\n      <div\n        v-else\n        class=\"text-muted-foreground mt-6 rounded-xl border border-dashed py-14 text-center text-sm\"\n        aria-live=\"polite\"\n      >\n        <Icon name=\"lucide:bell-off\" class=\"mx-auto mb-2 size-6\" />\n        Nothing to show here.\n      </div>\n\n      <div v-if=\"visible.length > limit\" class=\"mt-4 text-center\">\n        <UiButton variant=\"outline\" @click=\"limit += 5\">Load more</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Kind = \"comment\" | \"mention\" | \"invite\" | \"system\";\n  type Notification = {\n    id: string;\n    kind: Kind;\n    actor: string;\n    avatar: number;\n    text: string;\n    target: string;\n    at: string;\n    read: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      now?: string;\n      notifications?: Notification[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      notifications: () => [\n        {\n          id: \"p1\",\n          kind: \"comment\",\n          actor: \"Maya Patel\",\n          avatar: 32,\n          text: \"commented on\",\n          target: \"Homepage redesign\",\n          at: \"2026-10-18T10:05\",\n          read: false,\n        },\n        {\n          id: \"p2\",\n          kind: \"mention\",\n          actor: \"Leo Fischer\",\n          avatar: 12,\n          text: \"mentioned you in\",\n          target: \"API rate limits\",\n          at: \"2026-10-18T09:40\",\n          read: false,\n        },\n        {\n          id: \"p3\",\n          kind: \"invite\",\n          actor: \"Sofia Alvarez\",\n          avatar: 45,\n          text: \"invited you to\",\n          target: \"Q4 planning\",\n          at: \"2026-10-18T08:15\",\n          read: false,\n        },\n        {\n          id: \"p4\",\n          kind: \"system\",\n          actor: \"Acme\",\n          avatar: 47,\n          text: \"finished the export\",\n          target: \"Customers.csv\",\n          at: \"2026-10-17T18:00\",\n          read: true,\n        },\n        {\n          id: \"p5\",\n          kind: \"comment\",\n          actor: \"Noah Kim\",\n          avatar: 15,\n          text: \"replied to your comment on\",\n          target: \"Release 2.4\",\n          at: \"2026-10-17T16:30\",\n          read: true,\n        },\n        {\n          id: \"p6\",\n          kind: \"mention\",\n          actor: \"Priya Nair\",\n          avatar: 44,\n          text: \"mentioned you in\",\n          target: \"Invoice rounding\",\n          at: \"2026-10-16T11:00\",\n          read: true,\n        },\n        {\n          id: \"p7\",\n          kind: \"invite\",\n          actor: \"Tom Becker\",\n          avatar: 33,\n          text: \"invited you to\",\n          target: \"Support rota\",\n          at: \"2026-10-15T09:00\",\n          read: true,\n        },\n        {\n          id: \"p8\",\n          kind: \"comment\",\n          actor: \"Ines Costa\",\n          avatar: 47,\n          text: \"commented on\",\n          target: \"Newsletter draft\",\n          at: \"2026-10-14T15:20\",\n          read: true,\n        },\n      ],\n    }\n  );\n\n  const kinds: Record<Kind, string> = {\n    comment: \"Comments\",\n    mention: \"Mentions\",\n    invite: \"Invites\",\n    system: \"System\",\n  };\n\n  const items = ref<Notification[]>(props.notifications.map((item) => ({ ...item })));\n  const type = ref(\"all\");\n  const selected = ref(new Set<string>());\n  const limit = ref(5);\n\n  const unread = computed(() => items.value.filter((item) => !item.read).length);\n  const visible = computed(() =>\n    items.value.filter((item) => type.value === \"all\" || item.kind === type.value)\n  );\n  const shown = computed(() => visible.value.slice(0, limit.value));\n  const allSelected = computed(\n    () => shown.value.length > 0 && shown.value.every((item) => selected.value.has(item.id))\n  );\n  const someSelected = computed(() => selected.value.size > 0 && !allSelected.value);\n\n  watch(type, () => (selected.value = new Set()));\n\n  function ago(iso: string) {\n    const diff = Math.round(\n      (new Date(`${props.now}:00Z`).getTime() - new Date(`${iso}:00Z`).getTime()) / 60000\n    );\n    if (diff < 60) return `${Math.max(diff, 1)}m ago`;\n    if (diff < 1440) return `${Math.floor(diff / 60)}h ago`;\n    const days = Math.floor(diff / 1440);\n    return days === 1 ? \"Yesterday\" : `${days}d ago`;\n  }\n\n  function toggle(id: string) {\n    const next = new Set(selected.value);\n    if (next.has(id)) next.delete(id);\n    else next.add(id);\n    selected.value = next;\n  }\n\n  function toggleAll() {\n    selected.value = allSelected.value ? new Set() : new Set(shown.value.map((item) => item.id));\n  }\n\n  function markSelected() {\n    items.value.forEach((item) => selected.value.has(item.id) && (item.read = true));\n    selected.value = new Set();\n  }\n\n  function removeSelected() {\n    const count = selected.value.size;\n    items.value = items.value.filter((item) => !selected.value.has(item.id));\n    selected.value = new Set();\n    useSonner.success(`Deleted ${count} notification${count > 1 ? \"s\" : \"\"}`);\n  }\n</script>\n","category":"NotificationCenter","description":"Notifications page with bulk actions. Features: Full page list with a type filter, a checkbox on every row, select all, a bulk bar to mark as read or delete the selection, unread highlight, load more and an empty state","path":"Activity/NotificationCenter/BlockNotificationCenter2.vue","components":["avatar","badge","button","checkbox","container","label","select"]},{"name":"Notification Center 3","fileName":"BlockNotificationCenter3.vue","file":"<template>\n  <!--\n    Notifications grouped by day\n    Features: Sections for today, yesterday and earlier, a sticky style heading with the unread count, an icon for each kind of notification, hover actions to mark a row read or dismiss it and a mark all as read button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex items-center justify-between gap-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Activity</h1>\n        <UiButton variant=\"outline\" size=\"sm\" :disabled=\"!unread\" @click=\"markAll\"\n          ><Icon name=\"lucide:check-check\" class=\"size-4\" />Mark all as read</UiButton\n        >\n      </div>\n\n      <div v-if=\"groups.length\" class=\"mt-6 space-y-8\" aria-live=\"polite\">\n        <section v-for=\"group in groups\" :key=\"group.label\" :aria-label=\"group.label\">\n          <h2\n            class=\"text-muted-foreground mb-2 flex items-center gap-2 text-xs font-semibold tracking-wide uppercase\"\n          >\n            {{ group.label }}\n            <UiBadge v-if=\"group.unread\" variant=\"soft\" color=\"blue\" shape=\"pill\"\n              >{{ group.unread }} new</UiBadge\n            >\n          </h2>\n          <ul class=\"divide-y rounded-xl border\">\n            <li\n              v-for=\"item in group.items\"\n              :key=\"item.id\"\n              class=\"group relative flex items-start gap-3 px-4 py-3\"\n            >\n              <span\n                class=\"grid size-9 shrink-0 place-items-center rounded-full\"\n                :class=\"icons[item.kind].tint\"\n              >\n                <Icon :name=\"icons[item.kind].name\" class=\"size-4\" />\n              </span>\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"text-sm\" :class=\"item.read ? 'text-muted-foreground' : ''\">\n                  <span class=\"text-foreground font-medium\">{{ item.title }}</span>\n                  {{ item.body }}\n                </p>\n                <p class=\"text-muted-foreground mt-0.5 text-xs\">{{ time(item.at) }}</p>\n              </div>\n              <span\n                v-if=\"!item.read\"\n                class=\"bg-primary order-last mt-2 size-2 shrink-0 rounded-full\"\n                aria-label=\"Unread\"\n              />\n              <div\n                class=\"flex shrink-0 gap-1 opacity-100 transition-opacity md:opacity-0 md:group-focus-within:opacity-100 md:group-hover:opacity-100\"\n              >\n                <UiButton\n                  v-if=\"!item.read\"\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  :aria-label=\"`Mark ${item.title} as read`\"\n                  @click=\"item.read = true\"\n                  ><Icon name=\"lucide:check\" class=\"size-4\"\n                /></UiButton>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  :aria-label=\"`Dismiss ${item.title}`\"\n                  @click=\"dismiss(item.id)\"\n                  ><Icon name=\"lucide:x\" class=\"size-4\"\n                /></UiButton>\n              </div>\n            </li>\n          </ul>\n        </section>\n      </div>\n      <div\n        v-else\n        class=\"text-muted-foreground mt-6 rounded-xl border border-dashed py-14 text-center text-sm\"\n        aria-live=\"polite\"\n      >\n        You are all caught up.\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Kind = \"comment\" | \"deploy\" | \"billing\" | \"security\";\n  type Notification = {\n    id: string;\n    kind: Kind;\n    title: string;\n    body: string;\n    at: string;\n    read: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      now?: string;\n      notifications?: Notification[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      notifications: () => [\n        {\n          id: \"g1\",\n          kind: \"comment\",\n          title: \"Maya Patel\",\n          body: \"left 3 comments on Homepage redesign.\",\n          at: \"2026-10-18T10:05\",\n          read: false,\n        },\n        {\n          id: \"g2\",\n          kind: \"deploy\",\n          title: \"Production deploy\",\n          body: \"finished in 2m 14s with no errors.\",\n          at: \"2026-10-18T09:12\",\n          read: false,\n        },\n        {\n          id: \"g3\",\n          kind: \"billing\",\n          title: \"Invoice 1042\",\n          body: \"was paid by Northwind Traders.\",\n          at: \"2026-10-17T17:45\",\n          read: false,\n        },\n        {\n          id: \"g4\",\n          kind: \"security\",\n          title: \"New sign in\",\n          body: \"from Berlin on a Mac. Was this you?\",\n          at: \"2026-10-17T08:30\",\n          read: true,\n        },\n        {\n          id: \"g5\",\n          kind: \"comment\",\n          title: \"Leo Fischer\",\n          body: \"mentioned you in API rate limits.\",\n          at: \"2026-10-15T14:10\",\n          read: true,\n        },\n        {\n          id: \"g6\",\n          kind: \"deploy\",\n          title: \"Staging deploy\",\n          body: \"failed at the build step.\",\n          at: \"2026-10-14T11:00\",\n          read: true,\n        },\n      ],\n    }\n  );\n\n  const icons: Record<Kind, { name: string; tint: string }> = {\n    comment: {\n      name: \"lucide:message-square\",\n      tint: \"bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300\",\n    },\n    deploy: {\n      name: \"lucide:rocket\",\n      tint: \"bg-violet-100 text-violet-700 dark:bg-violet-500/20 dark:text-violet-300\",\n    },\n    billing: {\n      name: \"lucide:receipt\",\n      tint: \"bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\",\n    },\n    security: {\n      name: \"lucide:shield-alert\",\n      tint: \"bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300\",\n    },\n  };\n\n  const items = ref<Notification[]>(props.notifications.map((item) => ({ ...item })));\n  const unread = computed(() => items.value.filter((item) => !item.read).length);\n\n  const dayDiff = (iso: string) =>\n    Math.round(\n      (new Date(`${props.now.slice(0, 10)}T00:00:00Z`).getTime() -\n        new Date(`${iso.slice(0, 10)}T00:00:00Z`).getTime()) /\n        86_400_000\n    );\n\n  const groups = computed(() => {\n    const buckets: Record<string, Notification[]> = { Today: [], Yesterday: [], Earlier: [] };\n    for (const item of items.value) {\n      const diff = dayDiff(item.at);\n      buckets[diff === 0 ? \"Today\" : diff === 1 ? \"Yesterday\" : \"Earlier\"]!.push(item);\n    }\n    return Object.entries(buckets)\n      .filter(([, list]) => list.length)\n      .map(([label, list]) => ({\n        label,\n        items: list,\n        unread: list.filter((item) => !item.read).length,\n      }));\n  });\n\n  const time = (iso: string) =>\n    new Date(`${iso}:00Z`).toLocaleString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      hour: \"numeric\",\n      minute: \"2-digit\",\n      timeZone: \"UTC\",\n    });\n\n  function markAll() {\n    items.value.forEach((item) => (item.read = true));\n  }\n\n  function dismiss(id: string) {\n    items.value = items.value.filter((item) => item.id !== id);\n  }\n</script>\n","category":"NotificationCenter","description":"Notifications grouped by day. Features: Sections for today, yesterday and earlier, a sticky style heading with the unread count, an icon for each kind of notification, hover actions to mark a row read or dismiss it and a mark all as read button","path":"Activity/NotificationCenter/BlockNotificationCenter3.vue","components":["badge","button","container"]},{"name":"Notification Center 4","fileName":"BlockNotificationCenter4.vue","file":"<template>\n  <!--\n    Notifications with inline actions\n    Features: Invitations with accept and decline buttons that settle into a result with an undo, join requests, comments with an inline reply box and a plain update, all with unread markers\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Notifications</h1>\n      <ul class=\"mt-6 space-y-3\" aria-live=\"polite\">\n        <li v-for=\"item in items\" :key=\"item.id\" class=\"rounded-xl border p-4\">\n          <div class=\"flex items-start gap-3\">\n            <UiAvatar\n              :src=\"`https://i.pravatar.cc/80?img=${item.avatar}`\"\n              :fallback=\"item.actor.slice(0, 1)\"\n              class=\"size-10\"\n            />\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"text-sm\">\n                <span class=\"font-medium\">{{ item.actor }}</span> {{ item.text }}\n                <span class=\"font-medium\">{{ item.target }}</span>\n              </p>\n              <p\n                v-if=\"item.quote\"\n                class=\"text-muted-foreground bg-muted/50 mt-2 rounded-md border-l-2 px-3 py-2 text-sm\"\n              >\n                {{ item.quote }}\n              </p>\n              <p class=\"text-muted-foreground mt-1 text-xs\">{{ item.time }}</p>\n\n              <div v-if=\"item.kind === 'invite' || item.kind === 'request'\" class=\"mt-3\">\n                <div v-if=\"!item.result\" class=\"flex gap-2\">\n                  <UiButton\n                    size=\"sm\"\n                    @click=\"resolve(item, item.kind === 'invite' ? 'Accepted' : 'Approved')\"\n                    >{{ item.kind === \"invite\" ? \"Accept\" : \"Approve\" }}</UiButton\n                  >\n                  <UiButton variant=\"outline\" size=\"sm\" @click=\"resolve(item, 'Declined')\"\n                    >Decline</UiButton\n                  >\n                </div>\n                <p v-else class=\"flex items-center gap-2 text-sm\">\n                  <UiBadge\n                    variant=\"soft\"\n                    shape=\"pill\"\n                    :color=\"item.result === 'Declined' ? 'red' : 'green'\"\n                    >{{ item.result }}</UiBadge\n                  >\n                  <UiButton variant=\"link\" size=\"sm\" class=\"h-auto p-0\" @click=\"item.result = ''\"\n                    >Undo</UiButton\n                  >\n                </p>\n              </div>\n\n              <div v-if=\"item.kind === 'comment'\" class=\"mt-3\">\n                <UiButton\n                  v-if=\"replying !== item.id\"\n                  variant=\"outline\"\n                  size=\"sm\"\n                  @click=\"replying = item.id\"\n                  ><Icon name=\"lucide:reply\" class=\"size-4\" />Reply</UiButton\n                >\n                <form v-else class=\"flex gap-2\" @submit.prevent=\"send(item)\">\n                  <UiInput\n                    v-model=\"draft\"\n                    :aria-label=\"`Reply to ${item.actor}`\"\n                    placeholder=\"Write a reply\"\n                    autofocus\n                  />\n                  <UiButton type=\"submit\" size=\"sm\" :disabled=\"!draft.trim()\">Send</UiButton>\n                  <UiButton type=\"button\" variant=\"ghost\" size=\"sm\" @click=\"replying = ''\"\n                    >Cancel</UiButton\n                  >\n                </form>\n              </div>\n            </div>\n            <span\n              v-if=\"item.unread\"\n              class=\"bg-primary mt-2 size-2 shrink-0 rounded-full\"\n              aria-label=\"Unread\"\n            />\n          </div>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Kind = \"invite\" | \"request\" | \"comment\" | \"update\";\n  type Notification = {\n    id: string;\n    kind: Kind;\n    actor: string;\n    avatar: number;\n    text: string;\n    target: string;\n    quote?: string;\n    time: string;\n    unread: boolean;\n    result?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      notifications?: Notification[];\n    }>(),\n    {\n      notifications: () => [\n        {\n          id: \"a1\",\n          kind: \"invite\",\n          actor: \"Sofia Alvarez\",\n          avatar: 45,\n          text: \"invited you to join the workspace\",\n          target: \"Product team\",\n          time: \"12 minutes ago\",\n          unread: true,\n        },\n        {\n          id: \"a2\",\n          kind: \"request\",\n          actor: \"Tom Becker\",\n          avatar: 33,\n          text: \"asked to join\",\n          target: \"Support rota\",\n          time: \"1 hour ago\",\n          unread: true,\n        },\n        {\n          id: \"a3\",\n          kind: \"comment\",\n          actor: \"Maya Patel\",\n          avatar: 32,\n          text: \"commented on\",\n          target: \"Homepage redesign\",\n          quote: \"Can we try a larger hero image on mobile?\",\n          time: \"3 hours ago\",\n          unread: true,\n        },\n        {\n          id: \"a4\",\n          kind: \"update\",\n          actor: \"Noah Kim\",\n          avatar: 15,\n          text: \"moved\",\n          target: \"Release 2.4 to Done\",\n          time: \"Yesterday\",\n          unread: false,\n        },\n      ],\n    }\n  );\n\n  const items = ref<Notification[]>(\n    props.notifications.map((item) => ({ ...item, result: item.result ?? \"\" }))\n  );\n  const replying = ref(\"\");\n  const draft = ref(\"\");\n\n  function resolve(item: Notification, result: string) {\n    item.result = result;\n    item.unread = false;\n  }\n\n  function send(item: Notification) {\n    useSonner.success(`Reply sent to ${item.actor}`);\n    item.unread = false;\n    draft.value = \"\";\n    replying.value = \"\";\n  }\n</script>\n","category":"NotificationCenter","description":"Notifications with inline actions. Features: Invitations with accept and decline buttons that settle into a result with an undo, join requests, comments with an inline reply box and a plain update, all with unread markers","path":"Activity/NotificationCenter/BlockNotificationCenter4.vue","components":["avatar","badge","button","container","input"]},{"name":"Notification Center 5","fileName":"BlockNotificationCenter5.vue","file":"<template>\n  <!--\n    Notifications with tabs\n    Features: All, unread and mentions tabs with counts, a message for each empty tab, mention highlight, mark as read on click and a settings link\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-xl gap-0 py-0\">\n      <div class=\"flex items-center justify-between px-5 pt-4\">\n        <h1 class=\"font-semibold\">Notifications</h1>\n        <UiButton\n          variant=\"ghost\"\n          size=\"icon-sm\"\n          aria-label=\"Notification settings\"\n          @click=\"useSonner.info('Open notification settings here')\"\n          ><Icon name=\"lucide:settings\" class=\"size-4\"\n        /></UiButton>\n      </div>\n      <UiTabs v-model=\"tab\" class=\"px-5 pt-3\">\n        <UiTabsList class=\"w-full\">\n          <UiTabsTrigger v-for=\"item in tabs\" :key=\"item.value\" :value=\"item.value\" class=\"flex-1\"\n            >{{ item.label }}\n            <span\n              class=\"bg-muted text-muted-foreground ml-1.5 rounded-full px-1.5 text-xs tabular-nums\"\n              >{{ count(item.value) }}</span\n            ></UiTabsTrigger\n          >\n        </UiTabsList>\n      </UiTabs>\n      <ul v-if=\"visible.length\" class=\"mt-3 divide-y border-t\" aria-live=\"polite\">\n        <li v-for=\"item in visible\" :key=\"item.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-accent/50 focus-visible:bg-accent/50 flex w-full items-start gap-3 px-5 py-3.5 text-left outline-none\"\n            @click=\"item.read = true\"\n          >\n            <UiAvatar\n              :src=\"`https://i.pravatar.cc/80?img=${item.avatar}`\"\n              :fallback=\"item.actor.slice(0, 1)\"\n              class=\"size-9\"\n            />\n            <span class=\"min-w-0 flex-1\">\n              <span\n                class=\"block text-sm leading-snug\"\n                :class=\"item.read ? 'text-muted-foreground' : ''\"\n              >\n                <span class=\"text-foreground font-medium\">{{ item.actor }}</span>\n                {{ item.text }}\n              </span>\n              <span\n                v-if=\"item.mention\"\n                class=\"bg-muted mt-1.5 block rounded-md px-2.5 py-1.5 text-sm\"\n                >{{ item.mention }}</span\n              >\n              <span class=\"text-muted-foreground mt-1 block text-xs\">{{ item.time }}</span>\n            </span>\n            <span\n              v-if=\"!item.read\"\n              class=\"bg-primary mt-2 size-2 shrink-0 rounded-full\"\n              aria-label=\"Unread\"\n            />\n          </button>\n        </li>\n      </ul>\n      <div\n        v-else\n        class=\"text-muted-foreground border-t px-5 py-12 text-center text-sm\"\n        aria-live=\"polite\"\n      >\n        <Icon :name=\"emptyIcon\" class=\"mx-auto mb-2 size-6\" />\n        {{ emptyText }}\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Notification = {\n    id: string;\n    actor: string;\n    avatar: number;\n    text: string;\n    mention?: string;\n    time: string;\n    read: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      notifications?: Notification[];\n    }>(),\n    {\n      notifications: () => [\n        {\n          id: \"t1\",\n          actor: \"Leo Fischer\",\n          avatar: 12,\n          text: \"mentioned you in API rate limits\",\n          mention: \"@alex can you confirm the limit for the free plan?\",\n          time: \"9:40 AM\",\n          read: false,\n        },\n        {\n          id: \"t2\",\n          actor: \"Maya Patel\",\n          avatar: 32,\n          text: \"commented on Homepage redesign\",\n          time: \"10:05 AM\",\n          read: false,\n        },\n        {\n          id: \"t3\",\n          actor: \"Priya Nair\",\n          avatar: 44,\n          text: \"mentioned you in Invoice rounding\",\n          mention: \"@alex this matches what finance asked for.\",\n          time: \"Yesterday\",\n          read: true,\n        },\n        {\n          id: \"t4\",\n          actor: \"Noah Kim\",\n          avatar: 15,\n          text: \"approved Release 2.4\",\n          time: \"Yesterday\",\n          read: true,\n        },\n        {\n          id: \"t5\",\n          actor: \"Sofia Alvarez\",\n          avatar: 45,\n          text: \"shared Q4 planning with you\",\n          time: \"Mon\",\n          read: true,\n        },\n      ],\n    }\n  );\n\n  const tabs = [\n    { value: \"all\", label: \"All\" },\n    { value: \"unread\", label: \"Unread\" },\n    { value: \"mentions\", label: \"Mentions\" },\n  ];\n\n  const items = ref<Notification[]>(props.notifications.map((item) => ({ ...item })));\n  const tab = ref(\"all\");\n\n  const matches = (item: Notification, value: string) =>\n    value === \"all\" || (value === \"unread\" ? !item.read : !!item.mention);\n  const count = (value: string) => items.value.filter((item) => matches(item, value)).length;\n  const visible = computed(() => items.value.filter((item) => matches(item, tab.value)));\n\n  const emptyText = computed(() =>\n    tab.value === \"unread\" ? \"You have read everything.\" : \"Nobody has mentioned you yet.\"\n  );\n  const emptyIcon = computed(() =>\n    tab.value === \"unread\" ? \"lucide:check-check\" : \"lucide:at-sign\"\n  );\n</script>\n","category":"NotificationCenter","description":"Notifications with tabs. Features: All, unread and mentions tabs with counts, a message for each empty tab, mention highlight, mark as read on click and a settings link","path":"Activity/NotificationCenter/BlockNotificationCenter5.vue","components":["avatar","button","card","container","tabs"]},{"name":"Notification Center 6","fileName":"BlockNotificationCenter6.vue","file":"<template>\n  <!--\n    Inbox zero notifications\n    Features: A queue of notifications you clear one at a time with a done button, a progress count, a friendly empty state when the queue is empty and a restore button to bring everything back\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl\">\n      <div class=\"flex items-center justify-between gap-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Inbox</h1>\n        <p class=\"text-muted-foreground text-sm tabular-nums\" aria-live=\"polite\">\n          {{ cleared }} of {{ total }} cleared\n        </p>\n      </div>\n      <UiProgress\n        :model-value=\"total ? (cleared / total) * 100 : 0\"\n        class=\"mt-3 h-1.5\"\n        aria-label=\"Cleared\"\n      />\n\n      <ul v-if=\"queue.length\" class=\"mt-6 space-y-3\" aria-live=\"polite\">\n        <li\n          v-for=\"item in queue\"\n          :key=\"item.id\"\n          class=\"flex items-center gap-3 rounded-xl border p-4\"\n        >\n          <span class=\"bg-muted grid size-10 shrink-0 place-items-center rounded-full\"\n            ><Icon :name=\"item.icon\" class=\"size-5\"\n          /></span>\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate text-sm font-medium\">{{ item.title }}</p>\n            <p class=\"text-muted-foreground truncate text-sm\">{{ item.body }}</p>\n          </div>\n          <UiButton\n            variant=\"outline\"\n            size=\"sm\"\n            :aria-label=\"`Mark done: ${item.title}`\"\n            @click=\"done(item.id)\"\n            ><Icon name=\"lucide:check\" class=\"size-4\" />Done</UiButton\n          >\n        </li>\n      </ul>\n      <div v-else class=\"mt-6 rounded-xl border border-dashed px-6 py-14 text-center\" role=\"status\">\n        <span\n          class=\"mx-auto grid size-14 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n          ><Icon name=\"lucide:party-popper\" class=\"size-7\"\n        /></span>\n        <h2 class=\"mt-4 text-lg font-semibold\">You are all caught up</h2>\n        <p class=\"text-muted-foreground mt-1 text-sm\">No new notifications. Enjoy the quiet.</p>\n        <UiButton variant=\"outline\" size=\"sm\" class=\"mt-5\" @click=\"restore\"\n          >Restore notifications</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = { id: string; icon: string; title: string; body: string };\n\n  const props = withDefaults(\n    defineProps<{\n      notifications?: Item[];\n    }>(),\n    {\n      notifications: () => [\n        {\n          id: \"q1\",\n          icon: \"lucide:message-square\",\n          title: \"Maya commented on Homepage redesign\",\n          body: \"Can we try a larger hero image on mobile?\",\n        },\n        {\n          id: \"q2\",\n          icon: \"lucide:at-sign\",\n          title: \"Leo mentioned you in API rate limits\",\n          body: \"Can you confirm the limit for the free plan?\",\n        },\n        {\n          id: \"q3\",\n          icon: \"lucide:calendar-plus\",\n          title: \"Sofia invited you to Q4 planning\",\n          body: \"Tuesday, 10:00 AM in Meeting room 1.\",\n        },\n      ],\n    }\n  );\n\n  const queue = ref<Item[]>(props.notifications.map((item) => ({ ...item })));\n  const total = props.notifications.length;\n  const cleared = computed(() => total - queue.value.length);\n\n  function done(id: string) {\n    queue.value = queue.value.filter((item) => item.id !== id);\n  }\n\n  function restore() {\n    queue.value = props.notifications.map((item) => ({ ...item }));\n  }\n</script>\n","category":"NotificationCenter","description":"Inbox zero notifications. Features: A queue of notifications you clear one at a time with a done button, a progress count, a friendly empty state when the queue is empty and a restore button to bring everything back","path":"Activity/NotificationCenter/BlockNotificationCenter6.vue","components":["button","container","progress"]},{"name":"Settings Notifications Digest","fileName":"BlockSettingsNotificationsDigest.vue","file":"<template>\n  <!--\n    Notification delivery schedule\n    Features: Frequency radio cards (instant, hourly, daily, weekly), quiet hours with time inputs, weekend toggle\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-8\">\n      <div class=\"space-y-3\">\n        <UiLabel>Delivery frequency</UiLabel>\n        <UiRadioGroup v-model=\"frequency\" class=\"grid gap-3 sm:grid-cols-2\">\n          <label\n            v-for=\"option in options\"\n            :key=\"option.value\"\n            class=\"flex cursor-pointer items-start gap-3 rounded-lg border p-4 transition-colors\"\n            :class=\"\n              frequency === option.value ? 'border-primary bg-primary/5' : 'hover:bg-accent/50'\n            \"\n          >\n            <UiRadioGroupItem :value=\"option.value\" class=\"mt-0.5\" />\n            <span>\n              <span class=\"block text-sm font-medium\">{{ option.label }}</span>\n              <span class=\"text-muted-foreground block text-sm\">{{ option.hint }}</span>\n            </span>\n          </label>\n        </UiRadioGroup>\n      </div>\n\n      <div class=\"space-y-4\">\n        <div class=\"flex items-center justify-between gap-4\">\n          <div>\n            <p class=\"text-sm font-medium\">Quiet hours</p>\n            <p class=\"text-muted-foreground text-sm\">Hold push and SMS notifications overnight.</p>\n          </div>\n          <UiSwitch v-model=\"quiet.enabled\" aria-label=\"Enable quiet hours\" />\n        </div>\n        <div\n          class=\"grid gap-4 sm:grid-cols-2\"\n          :class=\"!quiet.enabled && 'pointer-events-none opacity-50'\"\n        >\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"quiet-from\">From</UiLabel>\n            <UiInput id=\"quiet-from\" v-model=\"quiet.from\" type=\"time\" :disabled=\"!quiet.enabled\" />\n          </div>\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"quiet-to\">Until</UiLabel>\n            <UiInput id=\"quiet-to\" v-model=\"quiet.to\" type=\"time\" :disabled=\"!quiet.enabled\" />\n          </div>\n        </div>\n        <label class=\"flex items-center gap-2 text-sm\">\n          <UiCheckbox v-model=\"quiet.weekends\" />\n          Also stay quiet on weekends\n        </label>\n      </div>\n    </UiCardContent>\n    <UiCardFooter class=\"justify-end gap-2 border-t\">\n      <UiButton variant=\"outline\">Cancel</UiButton>\n      <UiButton @click=\"useSonner.success('Schedule saved')\">Save schedule</UiButton>\n    </UiCardFooter>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Delivery schedule\",\n      description: \"Batch notifications into a digest or silence them at night.\",\n    }\n  );\n\n  const options = [\n    { value: \"instant\", label: \"Instant\", hint: \"Send every notification as it happens.\" },\n    { value: \"hourly\", label: \"Hourly\", hint: \"One summary at the top of each hour.\" },\n    { value: \"daily\", label: \"Daily digest\", hint: \"A single email every morning.\" },\n    { value: \"weekly\", label: \"Weekly digest\", hint: \"A recap every Monday.\" },\n  ];\n\n  const frequency = ref(\"daily\");\n\n  const quiet = reactive({\n    enabled: true,\n    from: \"22:00\",\n    to: \"07:00\",\n    weekends: false,\n  });\n</script>\n","category":"Notifications","description":"Notification delivery schedule. Features: Frequency radio cards (instant, hourly, daily, weekly), quiet hours with time inputs, weekend toggle","path":"Settings/Notifications/BlockSettingsNotificationsDigest.vue","components":["button","card","checkbox","input","label","radio-group","switch"]},{"name":"Settings Notifications Matrix","fileName":"BlockSettingsNotificationsMatrix.vue","file":"<template>\n  <!--\n    Notification preferences as an event by channel matrix\n    Features: Table with email, push and SMS checkboxes per event, column toggles, mobile-friendly horizontal scroll\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <UiCardContent class=\"p-0\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"pl-6\">Event</UiTableHead>\n            <UiTableHead v-for=\"channel in channels\" :key=\"channel.id\" class=\"w-24 text-center\">\n              <div class=\"flex flex-col items-center gap-1.5 py-2\">\n                <span>{{ channel.label }}</span>\n                <UiCheckbox\n                  :model-value=\"columnState(channel.id)\"\n                  :aria-label=\"`Toggle all ${channel.label}`\"\n                  @update:model-value=\"setColumn(channel.id, $event === true)\"\n                />\n              </div>\n            </UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"row in rows\" :key=\"row.id\">\n            <UiTableCell class=\"pl-6\">\n              <p class=\"font-medium\">{{ row.label }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ row.hint }}</p>\n            </UiTableCell>\n            <UiTableCell v-for=\"channel in channels\" :key=\"channel.id\" class=\"text-center\">\n              <UiCheckbox\n                v-model=\"row.channels[channel.id]\"\n                :aria-label=\"`${row.label} by ${channel.label}`\"\n              />\n            </UiTableCell>\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n    </UiCardContent>\n    <UiCardFooter class=\"justify-end gap-2 border-t\">\n      <UiButton variant=\"outline\">Cancel</UiButton>\n      <UiButton @click=\"useSonner.success('Notification settings saved')\">Save changes</UiButton>\n    </UiCardFooter>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type ChannelId = \"email\" | \"push\" | \"sms\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Notifications\",\n      description: \"Choose how you want to be told about activity.\",\n    }\n  );\n\n  const channels: { id: ChannelId; label: string }[] = [\n    { id: \"email\", label: \"Email\" },\n    { id: \"push\", label: \"Push\" },\n    { id: \"sms\", label: \"SMS\" },\n  ];\n\n  const rows = reactive([\n    {\n      id: \"mentions\",\n      label: \"Mentions\",\n      hint: \"Someone mentions you in a comment.\",\n      channels: { email: true, push: true, sms: false },\n    },\n    {\n      id: \"assigned\",\n      label: \"Assignments\",\n      hint: \"A task is assigned to you.\",\n      channels: { email: true, push: true, sms: false },\n    },\n    {\n      id: \"billing\",\n      label: \"Billing\",\n      hint: \"Invoices and failed payments.\",\n      channels: { email: true, push: false, sms: true },\n    },\n    {\n      id: \"security\",\n      label: \"Security alerts\",\n      hint: \"New sign-ins and password changes.\",\n      channels: { email: true, push: true, sms: true },\n    },\n    {\n      id: \"product\",\n      label: \"Product updates\",\n      hint: \"News about new features.\",\n      channels: { email: false, push: false, sms: false },\n    },\n  ]);\n\n  function columnState(channel: ChannelId): boolean | \"indeterminate\" {\n    const count = rows.filter((row) => row.channels[channel]).length;\n    if (count === 0) return false;\n    return count === rows.length ? true : \"indeterminate\";\n  }\n\n  function setColumn(channel: ChannelId, value: boolean) {\n    rows.forEach((row) => {\n      row.channels[channel] = value;\n    });\n  }\n</script>\n","category":"Notifications","description":"Notification preferences as an event by channel matrix. Features: Table with email, push and SMS checkboxes per event, column toggles, mobile-friendly horizontal scroll","path":"Settings/Notifications/BlockSettingsNotificationsMatrix.vue","components":["button","card","checkbox","table"]},{"name":"Settings Notifications Switches","fileName":"BlockSettingsNotificationsSwitches.vue","file":"<template>\n  <!--\n    Notification preferences as grouped switches with descriptions\n    Features: Two-column rows with a switch on the right, grouped sections, pause-all master switch that disables the rest\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n      <UiCardAction class=\"flex items-center gap-2\">\n        <UiLabel for=\"pause-all\" class=\"text-muted-foreground text-sm\">Pause all</UiLabel>\n        <UiSwitch id=\"pause-all\" v-model=\"paused\" />\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-8\" :class=\"paused && 'pointer-events-none opacity-50'\">\n      <section v-for=\"group in groups\" :key=\"group.title\" class=\"space-y-1\">\n        <h3 class=\"text-sm font-semibold\">{{ group.title }}</h3>\n        <div class=\"divide-y\">\n          <div\n            v-for=\"item in group.items\"\n            :key=\"item.id\"\n            class=\"flex items-start justify-between gap-6 py-4\"\n          >\n            <div>\n              <UiLabel :for=\"item.id\" class=\"text-sm font-medium\">{{ item.label }}</UiLabel>\n              <p class=\"text-muted-foreground mt-0.5 text-sm\">{{ item.hint }}</p>\n            </div>\n            <UiSwitch :id=\"item.id\" v-model=\"item.enabled\" :disabled=\"paused\" />\n          </div>\n        </div>\n      </section>\n    </UiCardContent>\n    <UiCardFooter class=\"justify-end gap-2 border-t\">\n      <UiButton variant=\"outline\">Cancel</UiButton>\n      <UiButton @click=\"useSonner.success('Notification settings saved')\">Save changes</UiButton>\n    </UiCardFooter>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Notification settings\",\n      description: \"Decide which updates reach you.\",\n    }\n  );\n\n  const paused = ref(false);\n\n  const groups = reactive([\n    {\n      title: \"Activity\",\n      items: [\n        {\n          id: \"n-comments\",\n          label: \"Comments and replies\",\n          hint: \"When someone comments on something you own or follow.\",\n          enabled: true,\n        },\n        {\n          id: \"n-mentions\",\n          label: \"Mentions\",\n          hint: \"When someone @mentions you directly.\",\n          enabled: true,\n        },\n        {\n          id: \"n-follows\",\n          label: \"New followers\",\n          hint: \"When someone starts following your work.\",\n          enabled: false,\n        },\n      ],\n    },\n    {\n      title: \"Account\",\n      items: [\n        {\n          id: \"n-security\",\n          label: \"Security alerts\",\n          hint: \"Sign-ins from new devices and password changes.\",\n          enabled: true,\n        },\n        {\n          id: \"n-billing\",\n          label: \"Billing and invoices\",\n          hint: \"Receipts, upcoming renewals and failed payments.\",\n          enabled: true,\n        },\n        {\n          id: \"n-product\",\n          label: \"Product news\",\n          hint: \"Occasional emails about new features.\",\n          enabled: false,\n        },\n      ],\n    },\n  ]);\n</script>\n","category":"Notifications","description":"Notification preferences as grouped switches with descriptions. Features: Two-column rows with a switch on the right, grouped sections, pause-all master switch that disables the rest","path":"Settings/Notifications/BlockSettingsNotificationsSwitches.vue","components":["button","card","label","switch"]},{"name":"Orders 1","fileName":"BlockOrders1.vue","file":"<template>\n  <!--\n    Order confirmation with a confetti burst\n    Features: Animated success check with a short confetti burst that respects reduced motion, order number and email notice, item list with totals, delivery and payment details, a what happens next row and track order actions\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"relative mx-auto max-w-3xl text-center\">\n      <div class=\"pointer-events-none absolute top-8 left-1/2\" aria-hidden=\"true\">\n        <Motion\n          v-for=\"piece in pieces\"\n          :key=\"piece.id\"\n          class=\"absolute size-2 rounded-[2px]\"\n          :style=\"{ backgroundColor: piece.color }\"\n          :initial=\"{ x: 0, y: 0, opacity: 1, rotate: 0, scale: 1 }\"\n          :animate=\"{ x: piece.x, y: piece.y, opacity: 0, rotate: piece.rotate, scale: 0.5 }\"\n          :transition=\"{ duration: 1.7, ease: 'easeOut', delay: piece.delay }\"\n        />\n      </div>\n\n      <Motion\n        class=\"mx-auto grid size-16 place-items-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n        :initial=\"{ scale: 0.5, opacity: 0 }\"\n        :animate=\"{ scale: 1, opacity: 1 }\"\n        :transition=\"{ type: 'spring', stiffness: 260, damping: 18 }\"\n      >\n        <Icon name=\"lucide:check\" class=\"size-8\" />\n      </Motion>\n      <h1 class=\"mt-6 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n        Thanks {{ order.firstName }}, your order is confirmed\n      </h1>\n      <p class=\"text-muted-foreground mt-3\">\n        Order <strong class=\"text-foreground\">{{ order.id }}</strong>. We sent a receipt to\n        {{ order.email }}.\n      </p>\n      <div class=\"mt-8 flex flex-wrap justify-center gap-3\">\n        <UiButton>\n          <Icon name=\"lucide:package-search\" />\n          Track order\n        </UiButton>\n        <UiButton variant=\"outline\">Continue shopping</UiButton>\n      </div>\n    </div>\n\n    <div class=\"mx-auto mt-14 grid max-w-3xl gap-6 md:grid-cols-[1.2fr_1fr]\">\n      <UiCard>\n        <UiCardContent class=\"space-y-5\">\n          <h2 class=\"font-semibold\">Order summary</h2>\n          <ul class=\"divide-y\">\n            <li\n              v-for=\"item in order.items\"\n              :key=\"item.name\"\n              class=\"flex items-center gap-4 py-3 first:pt-0\"\n            >\n              <img\n                :src=\"item.image\"\n                :alt=\"item.name\"\n                class=\"bg-muted size-14 rounded-lg object-cover\"\n              />\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n                <p class=\"text-muted-foreground text-xs\">\n                  {{ item.variant }}, qty {{ item.quantity }}\n                </p>\n              </div>\n              <p class=\"text-sm font-medium tabular-nums\">\n                {{ money.format(item.price * item.quantity) }}\n              </p>\n            </li>\n          </ul>\n          <dl class=\"space-y-2 border-t pt-4 text-sm\">\n            <div class=\"flex justify-between\">\n              <dt class=\"text-muted-foreground\">Subtotal</dt>\n              <dd class=\"tabular-nums\">{{ money.format(order.subtotal) }}</dd>\n            </div>\n            <div class=\"flex justify-between\">\n              <dt class=\"text-muted-foreground\">Shipping</dt>\n              <dd class=\"tabular-nums\">\n                {{ order.shipping === 0 ? \"Free\" : money.format(order.shipping) }}\n              </dd>\n            </div>\n            <div class=\"flex justify-between\">\n              <dt class=\"text-muted-foreground\">Tax</dt>\n              <dd class=\"tabular-nums\">{{ money.format(order.tax) }}</dd>\n            </div>\n            <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n              <dt>Total</dt>\n              <dd class=\"tabular-nums\">{{ money.format(order.total) }}</dd>\n            </div>\n          </dl>\n        </UiCardContent>\n      </UiCard>\n\n      <UiCard>\n        <UiCardContent class=\"space-y-5 text-sm\">\n          <div>\n            <h2 class=\"font-semibold\">Delivery</h2>\n            <p class=\"text-muted-foreground mt-2\">{{ order.delivery.label }}</p>\n            <p class=\"font-medium\">{{ order.delivery.eta }}</p>\n          </div>\n          <div>\n            <h2 class=\"font-semibold\">Shipping address</h2>\n            <p class=\"text-muted-foreground mt-2\">{{ order.address }}</p>\n          </div>\n          <div>\n            <h2 class=\"font-semibold\">Payment</h2>\n            <p class=\"text-muted-foreground mt-2\">{{ order.payment }}</p>\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </div>\n\n    <ol class=\"mx-auto mt-10 grid max-w-3xl gap-4 sm:grid-cols-3\" aria-label=\"What happens next\">\n      <li v-for=\"(step, i) in steps\" :key=\"step.title\" class=\"flex gap-3 rounded-xl border p-4\">\n        <span\n          class=\"grid size-8 shrink-0 place-items-center rounded-full text-sm font-semibold\"\n          :class=\"i === 0 ? 'bg-primary text-primary-foreground' : 'bg-muted'\"\n        >\n          <Icon v-if=\"i === 0\" name=\"lucide:check\" class=\"size-4\" />\n          <template v-else>{{ i + 1 }}</template>\n        </span>\n        <div>\n          <p class=\"text-sm font-medium\">{{ step.title }}</p>\n          <p class=\"text-muted-foreground text-xs\">{{ step.description }}</p>\n        </div>\n      </li>\n    </ol>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type OrderItem = {\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n  };\n\n  type Order = {\n    id: string;\n    firstName: string;\n    email: string;\n    items: OrderItem[];\n    subtotal: number;\n    shipping: number;\n    tax: number;\n    total: number;\n    address: string;\n    delivery: { label: string; eta: string };\n    payment: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      order?: Order;\n      steps?: { title: string; description: string }[];\n    }>(),\n    {\n      order: () => ({\n        id: \"AR-48213\",\n        firstName: \"Sarah\",\n        email: \"sarah.johnson@example.com\",\n        subtotal: 230,\n        shipping: 0,\n        tax: 18.4,\n        total: 248.4,\n        address: \"Sarah Johnson, 123 Market Street, San Francisco CA 94103\",\n        delivery: { label: \"Standard shipping\", eta: \"Arrives in 5 to 7 business days\" },\n        payment: \"Visa ending in 4242\",\n        items: [\n          {\n            name: \"Bomber Jacket\",\n            variant: \"Rust · M\",\n            price: 138,\n            quantity: 1,\n            image:\n              \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=200&q=80\",\n          },\n          {\n            name: \"Classic Tee\",\n            variant: \"White · L\",\n            price: 32,\n            quantity: 2,\n            image:\n              \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=200&q=80\",\n          },\n          {\n            name: \"Canvas Tote\",\n            variant: \"Natural\",\n            price: 28,\n            quantity: 1,\n            image:\n              \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=200&q=80\",\n          },\n        ],\n      }),\n      steps: () => [\n        {\n          title: \"Order confirmed\",\n          description: \"We have your order and a receipt is on its way.\",\n        },\n        {\n          title: \"We pack it\",\n          description: \"Most orders leave our studio within one business day.\",\n        },\n        {\n          title: \"It ships\",\n          description: \"You get an email with tracking as soon as it is on the move.\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  type Piece = { id: number; x: number; y: number; rotate: number; delay: number; color: string };\n\n  // The burst is generated after mount so server and client markup match, and it is skipped\n  // for people who prefer reduced motion.\n  const pieces = ref<Piece[]>([]);\n  const reducedMotion = usePreferredReducedMotion();\n  const colors = [\"#f97316\", \"#22c55e\", \"#3b82f6\", \"#eab308\", \"#ec4899\", \"#8b5cf6\"];\n\n  onMounted(() => {\n    if (reducedMotion.value === \"reduce\") return;\n    pieces.value = Array.from({ length: 36 }, (_, id) => {\n      const angle = (Math.PI * 2 * id) / 36 + Math.random() * 0.4;\n      const distance = 120 + Math.random() * 160;\n      return {\n        id,\n        x: Math.cos(angle) * distance,\n        y: Math.sin(angle) * distance + 60,\n        rotate: Math.random() * 720 - 360,\n        delay: Math.random() * 0.15,\n        color: colors[id % colors.length]!,\n      };\n    });\n  });\n</script>\n","category":"Orders","description":"Order confirmation with a confetti burst. Features: Animated success check with a short confetti burst that respects reduced motion, order number and email notice, item list with totals, delivery and payment details, a what happens next row and track order actions","path":"Ecommerce/Orders/BlockOrders1.vue","components":["button","card","container"]},{"name":"Orders 2","fileName":"BlockOrders2.vue","file":"<template>\n  <!--\n    Order tracking timeline\n    Features: Vertical timeline for placed, packed, shipped, out for delivery and delivered with the current step highlighted, carrier and tracking number with a copy button, estimated delivery and a log of recent carrier scans\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-start justify-between gap-4\">\n        <div>\n          <p class=\"text-muted-foreground text-sm\">Order {{ order.id }}</p>\n          <h1 class=\"mt-1 text-3xl font-bold tracking-tight\">{{ currentStep.title }}</h1>\n          <p class=\"text-muted-foreground mt-2\">{{ currentStep.description }}</p>\n        </div>\n        <div class=\"text-right\">\n          <p class=\"text-muted-foreground text-xs tracking-wide uppercase\">Estimated delivery</p>\n          <p class=\"text-lg font-semibold\">{{ order.eta }}</p>\n        </div>\n      </div>\n\n      <div\n        class=\"bg-muted/40 mt-8 flex flex-wrap items-center justify-between gap-4 rounded-xl border p-4\"\n      >\n        <div class=\"flex items-center gap-3\">\n          <span class=\"bg-background grid size-10 place-items-center rounded-full border\">\n            <Icon name=\"lucide:truck\" class=\"size-5\" />\n          </span>\n          <div>\n            <p class=\"text-sm font-medium\">{{ order.carrier }}</p>\n            <p class=\"text-muted-foreground text-xs tabular-nums\">{{ order.trackingNumber }}</p>\n          </div>\n        </div>\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"copy(order.trackingNumber)\">\n          <Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" />\n          {{ copied ? \"Copied\" : \"Copy tracking number\" }}\n        </UiButton>\n      </div>\n\n      <UiTimeline :model-value=\"order.currentStep\" class=\"mt-10\">\n        <UiTimelineItem v-for=\"step in order.steps\" :key=\"step.id\" :step=\"step.id\">\n          <UiTimelineHeader>\n            <UiTimelineSeparator />\n            <UiTimelineDate>{{ step.date }}</UiTimelineDate>\n            <UiTimelineTitle>{{ step.title }}</UiTimelineTitle>\n            <UiTimelineIndicator />\n          </UiTimelineHeader>\n          <UiTimelineContent>{{ step.description }}</UiTimelineContent>\n        </UiTimelineItem>\n      </UiTimeline>\n\n      <section class=\"mt-12\" aria-labelledby=\"scans-title\">\n        <h2 id=\"scans-title\" class=\"font-semibold\">Recent activity</h2>\n        <ul class=\"mt-4 divide-y rounded-xl border\">\n          <li v-for=\"scan in order.scans\" :key=\"scan.time\" class=\"flex items-start gap-4 p-4\">\n            <span class=\"bg-primary mt-1.5 size-2 shrink-0 rounded-full\" aria-hidden=\"true\" />\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"text-sm font-medium\">{{ scan.event }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ scan.location }}</p>\n            </div>\n            <time class=\"text-muted-foreground text-xs whitespace-nowrap\">{{ scan.time }}</time>\n          </li>\n        </ul>\n      </section>\n\n      <div class=\"mt-8 flex flex-wrap gap-3\">\n        <UiButton variant=\"outline\">\n          <Icon name=\"lucide:map-pin\" />\n          Change delivery address\n        </UiButton>\n        <UiButton variant=\"ghost\">\n          <Icon name=\"lucide:message-circle\" />\n          Contact support\n        </UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type TrackingStep = { id: number; title: string; date: string; description: string };\n\n  type Tracking = {\n    id: string;\n    carrier: string;\n    trackingNumber: string;\n    eta: string;\n    /** The step that is currently active, matching a step id. */\n    currentStep: number;\n    steps: TrackingStep[];\n    scans: { event: string; location: string; time: string }[];\n  };\n\n  const props = withDefaults(defineProps<{ order?: Tracking }>(), {\n    order: () => ({\n      id: \"AR-48213\",\n      carrier: \"UPS Ground\",\n      trackingNumber: \"1Z999AA10123456784\",\n      eta: \"Tue, Oct 20\",\n      currentStep: 3,\n      steps: [\n        {\n          id: 1,\n          title: \"Order placed\",\n          date: \"Oct 14\",\n          description: \"We received your order and payment.\",\n        },\n        {\n          id: 2,\n          title: \"Packed\",\n          date: \"Oct 15\",\n          description: \"Your items were packed at our studio.\",\n        },\n        {\n          id: 3,\n          title: \"Shipped\",\n          date: \"Oct 16\",\n          description: \"The carrier has your package and it is on its way.\",\n        },\n        {\n          id: 4,\n          title: \"Out for delivery\",\n          date: \"Expected Oct 20\",\n          description: \"Your package is on a truck near you.\",\n        },\n        {\n          id: 5,\n          title: \"Delivered\",\n          date: \"Expected Oct 20\",\n          description: \"Delivered to your front door.\",\n        },\n      ],\n      scans: [\n        {\n          event: \"Departed regional facility\",\n          location: \"Sacramento, CA\",\n          time: \"Oct 17, 6:42 am\",\n        },\n        {\n          event: \"Arrived at regional facility\",\n          location: \"Sacramento, CA\",\n          time: \"Oct 16, 9:15 pm\",\n        },\n        { event: \"Picked up by carrier\", location: \"Oakland, CA\", time: \"Oct 16, 1:30 pm\" },\n      ],\n    }),\n  });\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1800 });\n\n  const currentStep = computed(\n    () => props.order.steps.find((s) => s.id === props.order.currentStep) ?? props.order.steps[0]!\n  );\n</script>\n","category":"Orders","description":"Order tracking timeline. Features: Vertical timeline for placed, packed, shipped, out for delivery and delivered with the current step highlighted, carrier and tracking number with a copy button, estimated delivery and a log of recent carrier scans","path":"Ecommerce/Orders/BlockOrders2.vue","components":["button","container","timeline"]},{"name":"Orders 3","fileName":"BlockOrders3.vue","file":"<template>\n  <!--\n    Order history table with search and filters\n    Features: Search by order number or product, status filter, sortable date column with aria sort, stacked product thumbnails, color coded status badges, view and reorder actions, pagination and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">Order history</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          Check the status of recent orders and reorder favorites.\n        </p>\n      </div>\n      <div class=\"flex flex-col gap-3 sm:flex-row\">\n        <div class=\"relative\">\n          <UiLabel for=\"order-search\" class=\"sr-only\">Search orders</UiLabel>\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            id=\"order-search\"\n            v-model=\"search\"\n            placeholder=\"Search orders\"\n            class=\"pl-9 sm:w-60\"\n          />\n        </div>\n        <UiSelect v-model=\"status\">\n          <UiSelectTrigger class=\"sm:w-40\" aria-label=\"Filter by status\">\n            <UiSelectValue />\n          </UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"all\">All statuses</UiSelectItem>\n            <UiSelectItem v-for=\"(info, key) in statuses\" :key=\"key\" :value=\"key\">\n              {{ info.label }}\n            </UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n    </div>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Order</UiTableHead>\n            <UiTableHead :aria-sort=\"direction === 'desc' ? 'descending' : 'ascending'\">\n              <button\n                type=\"button\"\n                class=\"hover:text-foreground flex items-center gap-1\"\n                @click=\"direction = direction === 'desc' ? 'asc' : 'desc'\"\n              >\n                Date\n                <Icon\n                  :name=\"direction === 'desc' ? 'lucide:arrow-down' : 'lucide:arrow-up'\"\n                  class=\"size-3.5\"\n                />\n              </button>\n            </UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Items</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"text-right\">Total</UiTableHead>\n            <UiTableHead class=\"w-0\"><span class=\"sr-only\">Actions</span></UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"order in paged\" :key=\"order.id\">\n            <UiTableCell class=\"font-medium\">{{ order.id }}</UiTableCell>\n            <UiTableCell class=\"text-muted-foreground whitespace-nowrap\">\n              {{ formatDate(order.placedOn) }}\n            </UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">\n              <div class=\"flex items-center -space-x-2\">\n                <img\n                  v-for=\"item in order.items.slice(0, 3)\"\n                  :key=\"item.name\"\n                  :src=\"item.image\"\n                  :alt=\"item.name\"\n                  class=\"bg-muted ring-background size-8 rounded-full object-cover ring-2\"\n                />\n                <span\n                  v-if=\"order.items.length > 3\"\n                  class=\"bg-muted ring-background grid size-8 place-items-center rounded-full text-xs ring-2\"\n                >\n                  +{{ order.items.length - 3 }}\n                </span>\n              </div>\n            </UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"soft\" :color=\"statuses[order.status].color\" shape=\"pill\">\n                {{ statuses[order.status].label }}\n              </UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"text-right tabular-nums\">{{\n              money.format(order.total)\n            }}</UiTableCell>\n            <UiTableCell>\n              <div class=\"flex justify-end gap-1\">\n                <UiButton variant=\"ghost\" size=\"sm\">View</UiButton>\n                <UiButton\n                  v-if=\"order.status === 'delivered'\"\n                  variant=\"outline\"\n                  size=\"sm\"\n                  class=\"hidden md:inline-flex\"\n                >\n                  Reorder\n                </UiButton>\n              </div>\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableRow v-if=\"!paged.length\">\n            <UiTableCell colspan=\"6\" class=\"text-muted-foreground py-12 text-center\">\n              No orders match your search.\n            </UiTableCell>\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n    </div>\n\n    <UiPagination\n      v-if=\"filtered.length > perPage\"\n      v-model:page=\"page\"\n      :total=\"filtered.length\"\n      :items-per-page=\"perPage\"\n      :sibling-count=\"1\"\n      class=\"mt-8\"\n    />\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"processing\" | \"shipped\" | \"delivered\" | \"returned\" | \"cancelled\";\n\n  type Order = {\n    id: string;\n    placedOn: string;\n    status: Status;\n    total: number;\n    address: string;\n    items: { name: string; variant: string; price: number; quantity: number; image: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      orders?: Order[];\n      perPage?: number;\n    }>(),\n    {\n      perPage: 4,\n      orders: () => [\n        {\n          id: \"AR-48213\",\n          placedOn: \"2026-10-14\",\n          status: \"shipped\",\n          total: 248.4,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Bomber Jacket\",\n              variant: \"Rust · M\",\n              price: 138,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=200&q=80\",\n            },\n            {\n              name: \"Classic Tee\",\n              variant: \"White · L\",\n              price: 32,\n              quantity: 2,\n              image:\n                \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=200&q=80\",\n            },\n            {\n              name: \"Canvas Tote\",\n              variant: \"Natural\",\n              price: 28,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-47602\",\n          placedOn: \"2026-09-28\",\n          status: \"delivered\",\n          total: 122.48,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Crew Sweatshirt\",\n              variant: \"White · M\",\n              price: 58,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=200&q=80\",\n            },\n            {\n              name: \"Stoneware Mug\",\n              variant: \"White\",\n              price: 24,\n              quantity: 2,\n              image:\n                \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-47011\",\n          placedOn: \"2026-09-02\",\n          status: \"delivered\",\n          total: 214.92,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Studio Over-Ear\",\n              variant: \"Black\",\n              price: 199,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-46188\",\n          placedOn: \"2026-08-11\",\n          status: \"delivered\",\n          total: 81.44,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Soy Candle\",\n              variant: \"Amber\",\n              price: 34,\n              quantity: 2,\n              image:\n                \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-45530\",\n          placedOn: \"2026-07-19\",\n          status: \"returned\",\n          total: 118.8,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Corduroy Dress\",\n              variant: \"Burgundy · S\",\n              price: 110,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1585487000160-6ebcfceb0d03?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-44921\",\n          placedOn: \"2026-06-30\",\n          status: \"cancelled\",\n          total: 128.52,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Trail Backpack\",\n              variant: \"Olive\",\n              price: 119,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1491637639811-60e2756cc1c7?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n      ],\n    }\n  );\n\n  const statuses = {\n    processing: { label: \"Processing\", color: \"amber\" },\n    shipped: { label: \"Shipped\", color: \"blue\" },\n    delivered: { label: \"Delivered\", color: \"green\" },\n    returned: { label: \"Returned\", color: \"slate\" },\n    cancelled: { label: \"Cancelled\", color: \"red\" },\n  } as const;\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n  const dateFormat = new Intl.DateTimeFormat(\"en-US\", {\n    month: \"short\",\n    day: \"numeric\",\n    year: \"numeric\",\n  });\n\n  const search = ref(\"\");\n  const status = ref(\"all\");\n  const direction = ref<\"asc\" | \"desc\">(\"desc\");\n  const page = ref(1);\n\n  const filtered = computed(() => {\n    const query = search.value.trim().toLowerCase();\n    return props.orders\n      .filter((order) => status.value === \"all\" || order.status === status.value)\n      .filter(\n        (order) =>\n          !query ||\n          order.id.toLowerCase().includes(query) ||\n          order.items.some((item) => item.name.toLowerCase().includes(query))\n      )\n      .sort((a, b) =>\n        direction.value === \"desc\"\n          ? b.placedOn.localeCompare(a.placedOn)\n          : a.placedOn.localeCompare(b.placedOn)\n      );\n  });\n\n  const paged = computed(() =>\n    filtered.value.slice((page.value - 1) * props.perPage, page.value * props.perPage)\n  );\n\n  watch([search, status, direction], () => (page.value = 1));\n\n  function formatDate(value: string) {\n    return dateFormat.format(new Date(`${value}T00:00:00`));\n  }\n</script>\n","category":"Orders","description":"Order history table with search and filters. Features: Search by order number or product, status filter, sortable date column with aria sort, stacked product thumbnails, color coded status badges, view and reorder actions, pagination and an empty state","path":"Ecommerce/Orders/BlockOrders3.vue","components":["badge","button","container","input","label","pagination","select","table"]},{"name":"Orders 4","fileName":"BlockOrders4.vue","file":"<template>\n  <!--\n    Order history as cards\n    Features: Tabs that filter orders into all, in progress, delivered and returned or cancelled, cards with a placed on, total, ship to and order number header, product rows with buy again, status badge and track, invoice and return actions\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">Your orders</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ orders.length }} orders placed in the last 6 months</p>\n\n    <UiTabs v-model=\"tab\" class=\"mt-8\">\n      <UiTabsList>\n        <UiTabsTrigger v-for=\"t in tabs\" :key=\"t.value\" :value=\"t.value\">\n          {{ t.label }}\n        </UiTabsTrigger>\n      </UiTabsList>\n    </UiTabs>\n\n    <ul class=\"mt-6 space-y-6\">\n      <li v-for=\"order in visible\" :key=\"order.id\">\n        <article class=\"overflow-hidden rounded-xl border\">\n          <header\n            class=\"bg-muted/40 grid grid-cols-2 gap-4 border-b p-5 text-sm sm:grid-cols-[repeat(3,1fr)_auto]\"\n          >\n            <div>\n              <p class=\"text-muted-foreground text-xs tracking-wide uppercase\">Order placed</p>\n              <p class=\"mt-1 font-medium\">{{ formatDate(order.placedOn) }}</p>\n            </div>\n            <div>\n              <p class=\"text-muted-foreground text-xs tracking-wide uppercase\">Total</p>\n              <p class=\"mt-1 font-medium tabular-nums\">{{ money.format(order.total) }}</p>\n            </div>\n            <div class=\"col-span-2 sm:col-span-1\">\n              <p class=\"text-muted-foreground text-xs tracking-wide uppercase\">Ship to</p>\n              <p class=\"mt-1 truncate font-medium\">{{ order.address.split(\",\")[0] }}</p>\n            </div>\n            <div class=\"sm:text-right\">\n              <p class=\"text-muted-foreground text-xs tracking-wide uppercase\">Order</p>\n              <p class=\"mt-1 font-medium\">{{ order.id }}</p>\n            </div>\n          </header>\n\n          <div class=\"p-5\">\n            <div class=\"flex items-center justify-between gap-3\">\n              <UiBadge variant=\"soft\" :color=\"statuses[order.status].color\" shape=\"pill\" dot>\n                {{ statuses[order.status].label }}\n              </UiBadge>\n              <p class=\"text-muted-foreground text-sm\">{{ statuses[order.status].note }}</p>\n            </div>\n\n            <ul class=\"mt-4 divide-y\">\n              <li\n                v-for=\"item in order.items\"\n                :key=\"item.name\"\n                class=\"flex items-center gap-4 py-4 first:pt-0 last:pb-0\"\n              >\n                <img\n                  :src=\"item.image\"\n                  :alt=\"item.name\"\n                  class=\"bg-muted size-16 rounded-lg object-cover\"\n                />\n                <div class=\"min-w-0 flex-1\">\n                  <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">\n                    {{ item.variant }}, qty {{ item.quantity }}\n                  </p>\n                </div>\n                <p class=\"hidden text-sm tabular-nums sm:block\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n                <UiButton\n                  variant=\"outline\"\n                  size=\"sm\"\n                  :aria-label=\"`Buy ${item.name} again`\"\n                  @click=\"reordered.push(order.id + item.name)\"\n                >\n                  <Icon\n                    :name=\"\n                      reordered.includes(order.id + item.name) ? 'lucide:check' : 'lucide:rotate-cw'\n                    \"\n                  />\n                  <span class=\"hidden sm:inline\">\n                    {{ reordered.includes(order.id + item.name) ? \"Added\" : \"Buy again\" }}\n                  </span>\n                </UiButton>\n              </li>\n            </ul>\n\n            <div class=\"mt-5 flex flex-wrap gap-2 border-t pt-5\">\n              <UiButton v-if=\"order.status === 'shipped'\" size=\"sm\">\n                <Icon name=\"lucide:package-search\" />\n                Track package\n              </UiButton>\n              <UiButton variant=\"outline\" size=\"sm\">\n                <Icon name=\"lucide:file-text\" />\n                View invoice\n              </UiButton>\n              <UiButton v-if=\"order.status === 'delivered'\" variant=\"ghost\" size=\"sm\">\n                Return items\n              </UiButton>\n            </div>\n          </div>\n        </article>\n      </li>\n    </ul>\n\n    <p\n      v-if=\"!visible.length\"\n      class=\"text-muted-foreground mt-12 rounded-xl border border-dashed py-12 text-center\"\n    >\n      Nothing here yet.\n    </p>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"processing\" | \"shipped\" | \"delivered\" | \"returned\" | \"cancelled\";\n\n  type Order = {\n    id: string;\n    placedOn: string;\n    status: Status;\n    total: number;\n    address: string;\n    items: { name: string; variant: string; price: number; quantity: number; image: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      orders?: Order[];\n    }>(),\n    {\n      orders: () => [\n        {\n          id: \"AR-48213\",\n          placedOn: \"2026-10-14\",\n          status: \"shipped\",\n          total: 248.4,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Bomber Jacket\",\n              variant: \"Rust · M\",\n              price: 138,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=200&q=80\",\n            },\n            {\n              name: \"Classic Tee\",\n              variant: \"White · L\",\n              price: 32,\n              quantity: 2,\n              image:\n                \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=200&q=80\",\n            },\n            {\n              name: \"Canvas Tote\",\n              variant: \"Natural\",\n              price: 28,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-47602\",\n          placedOn: \"2026-09-28\",\n          status: \"delivered\",\n          total: 122.48,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Crew Sweatshirt\",\n              variant: \"White · M\",\n              price: 58,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=200&q=80\",\n            },\n            {\n              name: \"Stoneware Mug\",\n              variant: \"White\",\n              price: 24,\n              quantity: 2,\n              image:\n                \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-47011\",\n          placedOn: \"2026-09-02\",\n          status: \"delivered\",\n          total: 214.92,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Studio Over-Ear\",\n              variant: \"Black\",\n              price: 199,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-46188\",\n          placedOn: \"2026-08-11\",\n          status: \"delivered\",\n          total: 81.44,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Soy Candle\",\n              variant: \"Amber\",\n              price: 34,\n              quantity: 2,\n              image:\n                \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-45530\",\n          placedOn: \"2026-07-19\",\n          status: \"returned\",\n          total: 118.8,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Corduroy Dress\",\n              variant: \"Burgundy · S\",\n              price: 110,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1585487000160-6ebcfceb0d03?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n        {\n          id: \"AR-44921\",\n          placedOn: \"2026-06-30\",\n          status: \"cancelled\",\n          total: 128.52,\n          address: \"123 Market Street, San Francisco CA 94103\",\n          items: [\n            {\n              name: \"Trail Backpack\",\n              variant: \"Olive\",\n              price: 119,\n              quantity: 1,\n              image:\n                \"https://images.unsplash.com/photo-1491637639811-60e2756cc1c7?auto=format&fit=crop&w=200&q=80\",\n            },\n          ],\n        },\n      ],\n    }\n  );\n\n  const statuses = {\n    processing: { label: \"Processing\", color: \"amber\", note: \"We are getting it ready\" },\n    shipped: { label: \"Shipped\", color: \"blue\", note: \"Arriving Tue, Oct 20\" },\n    delivered: { label: \"Delivered\", color: \"green\", note: \"Left at the front door\" },\n    returned: { label: \"Returned\", color: \"slate\", note: \"Refund issued to your card\" },\n    cancelled: { label: \"Cancelled\", color: \"red\", note: \"You were not charged\" },\n  } as const;\n\n  const tabs = [\n    { value: \"all\", label: \"All orders\" },\n    { value: \"progress\", label: \"In progress\" },\n    { value: \"delivered\", label: \"Delivered\" },\n    { value: \"closed\", label: \"Returned or cancelled\" },\n  ];\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n  const dateFormat = new Intl.DateTimeFormat(\"en-US\", {\n    month: \"long\",\n    day: \"numeric\",\n    year: \"numeric\",\n  });\n\n  const tab = ref(\"all\");\n  const reordered = ref<string[]>([]);\n\n  const visible = computed(() =>\n    props.orders.filter((order) => {\n      if (tab.value === \"progress\")\n        return order.status === \"processing\" || order.status === \"shipped\";\n      if (tab.value === \"delivered\") return order.status === \"delivered\";\n      if (tab.value === \"closed\")\n        return order.status === \"returned\" || order.status === \"cancelled\";\n      return true;\n    })\n  );\n\n  function formatDate(value: string) {\n    return dateFormat.format(new Date(`${value}T00:00:00`));\n  }\n</script>\n","category":"Orders","description":"Order history as cards. Features: Tabs that filter orders into all, in progress, delivered and returned or cancelled, cards with a placed on, total, ship to and order number header, product rows with buy again, status badge and track, invoice and return actions","path":"Ecommerce/Orders/BlockOrders4.vue","components":["badge","button","container","tabs"]},{"name":"Orders 5","fileName":"BlockOrders5.vue","file":"<template>\n  <!--\n    Order detail page\n    Features: Breadcrumbs, order number with status badge and delivery progress bar, line items with prices, a totals card, shipping address, billing and payment details and download invoice and support actions\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiBreadcrumbs\n      :items=\"[\n        { label: 'Account', link: '#' },\n        { label: 'Orders', link: '#' },\n        { label: order.id, link: '#' },\n      ]\"\n      class=\"mb-8\"\n    />\n\n    <div class=\"flex flex-wrap items-start justify-between gap-4\">\n      <div>\n        <div class=\"flex items-center gap-3\">\n          <h1 class=\"text-3xl font-bold tracking-tight\">Order {{ order.id }}</h1>\n          <UiBadge variant=\"soft\" color=\"blue\" shape=\"pill\" dot>{{ order.statusLabel }}</UiBadge>\n        </div>\n        <p class=\"text-muted-foreground mt-2 text-sm\">Placed on {{ order.placedOn }}</p>\n      </div>\n      <div class=\"flex flex-wrap gap-2\">\n        <UiButton variant=\"outline\">\n          <Icon name=\"lucide:download\" />\n          Download invoice\n        </UiButton>\n        <UiButton variant=\"ghost\">\n          <Icon name=\"lucide:life-buoy\" />\n          Need help?\n        </UiButton>\n      </div>\n    </div>\n\n    <div class=\"mt-8 rounded-xl border p-5\">\n      <div class=\"flex items-center justify-between text-sm\">\n        <span class=\"font-medium\">{{ order.progress.label }}</span>\n        <span class=\"text-muted-foreground\">Arriving {{ order.progress.eta }}</span>\n      </div>\n      <UiProgress :model-value=\"order.progress.percent\" class=\"mt-3 h-2\" />\n      <ol class=\"text-muted-foreground mt-3 grid grid-cols-4 text-xs\" aria-label=\"Delivery stages\">\n        <li\n          v-for=\"(stage, i) in stages\"\n          :key=\"stage\"\n          :class=\"i === 0 ? '' : i === 3 ? 'text-right' : 'text-center'\"\n        >\n          {{ stage }}\n        </li>\n      </ol>\n    </div>\n\n    <div class=\"mt-10 grid gap-10 lg:grid-cols-[1fr_22rem]\">\n      <section aria-labelledby=\"items-title\">\n        <h2 id=\"items-title\" class=\"font-semibold\">Items ({{ itemCount }})</h2>\n        <ul class=\"mt-4 divide-y border-y\">\n          <li v-for=\"item in order.items\" :key=\"item.name\" class=\"flex gap-4 py-5\">\n            <img\n              :src=\"item.image\"\n              :alt=\"item.name\"\n              class=\"bg-muted size-24 rounded-xl object-cover\"\n            />\n            <div class=\"flex min-w-0 flex-1 flex-col justify-between\">\n              <div class=\"flex items-start justify-between gap-3\">\n                <div class=\"min-w-0\">\n                  <p class=\"font-medium\">{{ item.name }}</p>\n                  <p class=\"text-muted-foreground text-sm\">{{ item.variant }}</p>\n                </div>\n                <p class=\"font-semibold tabular-nums\">\n                  {{ money.format(item.price * item.quantity) }}\n                </p>\n              </div>\n              <div class=\"flex items-center justify-between text-sm\">\n                <span class=\"text-muted-foreground\">\n                  {{ money.format(item.price) }} × {{ item.quantity }}\n                </span>\n                <a href=\"#\" class=\"underline underline-offset-4\">Buy again</a>\n              </div>\n            </div>\n          </li>\n        </ul>\n      </section>\n\n      <aside class=\"space-y-6\">\n        <UiCard>\n          <UiCardContent class=\"space-y-3 text-sm\">\n            <h2 class=\"font-semibold\">Order total</h2>\n            <dl class=\"space-y-2\">\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Subtotal</dt>\n                <dd class=\"tabular-nums\">{{ money.format(order.subtotal) }}</dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Shipping</dt>\n                <dd class=\"tabular-nums\">\n                  {{ order.shipping === 0 ? \"Free\" : money.format(order.shipping) }}\n                </dd>\n              </div>\n              <div class=\"flex justify-between\">\n                <dt class=\"text-muted-foreground\">Tax</dt>\n                <dd class=\"tabular-nums\">{{ money.format(order.tax) }}</dd>\n              </div>\n              <div class=\"flex justify-between border-t pt-3 text-base font-semibold\">\n                <dt>Total</dt>\n                <dd class=\"tabular-nums\">{{ money.format(order.total) }}</dd>\n              </div>\n            </dl>\n          </UiCardContent>\n        </UiCard>\n\n        <UiCard>\n          <UiCardContent class=\"space-y-5 text-sm\">\n            <div>\n              <h2 class=\"font-semibold\">Shipping address</h2>\n              <address class=\"text-muted-foreground mt-2 leading-relaxed not-italic\">\n                {{ order.name }}<br />\n                {{ order.address }}\n              </address>\n            </div>\n            <div>\n              <h2 class=\"font-semibold\">Delivery method</h2>\n              <p class=\"text-muted-foreground mt-2\">{{ order.delivery }}</p>\n            </div>\n            <div>\n              <h2 class=\"font-semibold\">Payment</h2>\n              <p class=\"text-muted-foreground mt-2 flex items-center gap-2\">\n                <Icon name=\"lucide:credit-card\" class=\"size-4\" />\n                {{ order.payment }}\n              </p>\n            </div>\n          </UiCardContent>\n        </UiCard>\n      </aside>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Detail = {\n    id: string;\n    statusLabel: string;\n    placedOn: string;\n    name: string;\n    address: string;\n    delivery: string;\n    payment: string;\n    subtotal: number;\n    shipping: number;\n    tax: number;\n    total: number;\n    progress: { label: string; eta: string; percent: number };\n    items: { name: string; variant: string; price: number; quantity: number; image: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      order?: Detail;\n      stages?: string[];\n    }>(),\n    {\n      stages: () => [\"Placed\", \"Packed\", \"Shipped\", \"Delivered\"],\n      order: () => ({\n        id: \"AR-48213\",\n        statusLabel: \"Shipped\",\n        placedOn: \"October 14, 2026\",\n        name: \"Sarah Johnson\",\n        address: \"123 Market Street, San Francisco CA 94103\",\n        delivery: \"Standard shipping, 5 to 7 business days\",\n        payment: \"Visa ending in 4242\",\n        subtotal: 230,\n        shipping: 0,\n        tax: 18.4,\n        total: 248.4,\n        progress: { label: \"On its way\", eta: \"Tue, Oct 20\", percent: 62 },\n        items: [\n          {\n            name: \"Bomber Jacket\",\n            variant: \"Rust · M\",\n            price: 138,\n            quantity: 1,\n            image:\n              \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=300&q=80\",\n          },\n          {\n            name: \"Classic Tee\",\n            variant: \"White · L\",\n            price: 32,\n            quantity: 2,\n            image:\n              \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=300&q=80\",\n          },\n          {\n            name: \"Canvas Tote\",\n            variant: \"Natural\",\n            price: 28,\n            quantity: 1,\n            image:\n              \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=300&q=80\",\n          },\n        ],\n      }),\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const itemCount = computed(() => props.order.items.reduce((sum, item) => sum + item.quantity, 0));\n</script>\n","category":"Orders","description":"Order detail page. Features: Breadcrumbs, order number with status badge and delivery progress bar, line items with prices, a totals card, shipping address, billing and payment details and download invoice and support actions","path":"Ecommerce/Orders/BlockOrders5.vue","components":["badge","breadcrumbs","button","card","container","progress"]},{"name":"Orders 6","fileName":"BlockOrders6.vue","file":"<template>\n  <!--\n    Return or refund request form\n    Features: Choose which items and how many to return, reason and item condition, refund to the original payment or store credit, optional comments, a live refund estimate, validation with vee-validate and a return label confirmation\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div v-if=\"!submitted\">\n        <h1 class=\"text-3xl font-bold tracking-tight\">Return items</h1>\n        <p class=\"text-muted-foreground mt-2 text-sm\">\n          Order {{ orderId }}. Returns are free within {{ windowDays }} days of delivery.\n        </p>\n\n        <form class=\"mt-8 space-y-8\" novalidate @submit.prevent=\"submit\">\n          <fieldset>\n            <legend class=\"font-semibold\">What would you like to return?</legend>\n            <ul\n              class=\"mt-4 divide-y rounded-xl border\"\n              :class=\"itemsError ? 'border-destructive' : ''\"\n            >\n              <li v-for=\"item in items\" :key=\"item.id\" class=\"flex items-center gap-4 p-4\">\n                <UiCheckbox\n                  :id=\"`return-${item.id}`\"\n                  :model-value=\"selection[item.id]! > 0\"\n                  :aria-label=\"`Return ${item.name}`\"\n                  @update:model-value=\"toggle(item)\"\n                />\n                <label\n                  :for=\"`return-${item.id}`\"\n                  class=\"flex min-w-0 flex-1 cursor-pointer items-center gap-4\"\n                >\n                  <img\n                    :src=\"item.image\"\n                    :alt=\"item.name\"\n                    class=\"bg-muted size-14 rounded-lg object-cover\"\n                  />\n                  <span class=\"min-w-0 flex-1\">\n                    <span class=\"block truncate text-sm font-medium\">{{ item.name }}</span>\n                    <span class=\"text-muted-foreground block text-xs\">\n                      {{ item.variant }}, {{ money.format(item.price) }} each\n                    </span>\n                  </span>\n                </label>\n                <div v-if=\"selection[item.id]! > 0 && item.quantity > 1\" class=\"w-28\">\n                  <UiNumberField\n                    :model-value=\"selection[item.id]\"\n                    :min=\"1\"\n                    :max=\"item.quantity\"\n                    @update:model-value=\"(v) => (selection[item.id] = v ?? 1)\"\n                  >\n                    <UiNumberFieldDecrement />\n                    <UiNumberFieldInput\n                      class=\"text-center\"\n                      :aria-label=\"`Quantity of ${item.name} to return`\"\n                    />\n                    <UiNumberFieldIncrement />\n                  </UiNumberField>\n                </div>\n              </li>\n            </ul>\n            <p v-if=\"itemsError\" class=\"text-destructive mt-2 text-sm\" role=\"alert\">\n              Select at least one item to return.\n            </p>\n          </fieldset>\n\n          <div class=\"grid gap-4 sm:grid-cols-2\">\n            <UiVeeSelect name=\"reason\" label=\"Reason for return\">\n              <option value=\"\" disabled>Select a reason</option>\n              <option v-for=\"reason in reasons\" :key=\"reason\" :value=\"reason\">{{ reason }}</option>\n            </UiVeeSelect>\n            <UiVeeSelect name=\"condition\" label=\"Item condition\">\n              <option value=\"\" disabled>Select a condition</option>\n              <option v-for=\"c in conditions\" :key=\"c\" :value=\"c\">{{ c }}</option>\n            </UiVeeSelect>\n          </div>\n\n          <UiVeeTextarea\n            name=\"comments\"\n            label=\"Anything else we should know? (optional)\"\n            placeholder=\"Tell us what went wrong so we can improve\"\n            :rows=\"4\"\n          />\n\n          <fieldset>\n            <legend class=\"font-semibold\">How should we refund you?</legend>\n            <UiRadioGroup\n              v-model=\"method\"\n              class=\"mt-4 grid gap-3 sm:grid-cols-2\"\n              aria-label=\"Refund method\"\n            >\n              <label\n                v-for=\"option in methods\"\n                :key=\"option.value\"\n                :for=\"`method-${option.value}`\"\n                class=\"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 flex cursor-pointer items-start gap-3 rounded-xl border p-4 transition\"\n              >\n                <UiRadioGroupItem\n                  :id=\"`method-${option.value}`\"\n                  :value=\"option.value\"\n                  class=\"mt-0.5\"\n                />\n                <span>\n                  <span class=\"block text-sm font-medium\">{{ option.label }}</span>\n                  <span class=\"text-muted-foreground block text-xs\">{{ option.description }}</span>\n                </span>\n              </label>\n            </UiRadioGroup>\n          </fieldset>\n\n          <div class=\"bg-muted/40 flex items-center justify-between rounded-xl border p-4\">\n            <div>\n              <p class=\"text-sm font-medium\">Estimated refund</p>\n              <p class=\"text-muted-foreground text-xs\">\n                {{\n                  method === \"credit\"\n                    ? \"Store credit, available immediately\"\n                    : \"Back to your card in 5 to 7 days\"\n                }}\n              </p>\n            </div>\n            <p class=\"text-xl font-semibold tabular-nums\" aria-live=\"polite\">\n              {{ money.format(method === \"credit\" ? refund * 1.1 : refund) }}\n            </p>\n          </div>\n\n          <UiButton type=\"submit\" size=\"lg\" class=\"w-full\" :loading=\"isSubmitting\">\n            Request return\n          </UiButton>\n        </form>\n      </div>\n\n      <div v-else class=\"text-center\" role=\"status\">\n        <span\n          class=\"mx-auto grid size-14 place-items-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n        >\n          <Icon name=\"lucide:check\" class=\"size-7\" />\n        </span>\n        <h1 class=\"mt-6 text-3xl font-bold tracking-tight\">Return requested</h1>\n        <p class=\"text-muted-foreground mt-3\">\n          Your return <strong class=\"text-foreground\">RMA-20931</strong> is approved. We emailed a\n          free prepaid label.\n        </p>\n        <ol class=\"mx-auto mt-8 max-w-sm space-y-3 text-left text-sm\">\n          <li v-for=\"(step, i) in nextSteps\" :key=\"step\" class=\"flex gap-3\">\n            <span\n              class=\"bg-muted grid size-6 shrink-0 place-items-center rounded-full text-xs font-semibold\"\n            >\n              {{ i + 1 }}\n            </span>\n            {{ step }}\n          </li>\n        </ol>\n        <UiButton class=\"mt-8\" variant=\"outline\" @click=\"reset\">Start another return</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n\n  type ReturnItem = {\n    id: number;\n    name: string;\n    variant: string;\n    price: number;\n    quantity: number;\n    image: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      orderId?: string;\n      windowDays?: number;\n      items?: ReturnItem[];\n      reasons?: string[];\n      conditions?: string[];\n    }>(),\n    {\n      orderId: \"AR-48213\",\n      windowDays: 30,\n      reasons: () => [\n        \"Does not fit\",\n        \"Not as described\",\n        \"Arrived damaged\",\n        \"Changed my mind\",\n        \"Ordered by mistake\",\n      ],\n      conditions: () => [\"Unworn with tags\", \"Worn once\", \"Opened or used\", \"Damaged\"],\n      items: () => [\n        {\n          id: 1,\n          name: \"Bomber Jacket\",\n          variant: \"Rust · M\",\n          price: 138,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=200&q=80\",\n        },\n        {\n          id: 2,\n          name: \"Classic Tee\",\n          variant: \"White · L\",\n          price: 32,\n          quantity: 2,\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=200&q=80\",\n        },\n        {\n          id: 3,\n          name: \"Canvas Tote\",\n          variant: \"Natural\",\n          price: 28,\n          quantity: 1,\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=200&q=80\",\n        },\n      ],\n    }\n  );\n\n  const methods = [\n    {\n      value: \"original\",\n      label: \"Original payment\",\n      description: \"Refund to the card you paid with.\",\n    },\n    {\n      value: \"credit\",\n      label: \"Store credit\",\n      description: \"Get a 10% bonus on the refund amount.\",\n    },\n  ];\n\n  const nextSteps = [\n    \"Print the label or show the QR code at a drop off point.\",\n    \"Pack the items in their original packaging if you can.\",\n    \"Your refund starts once we receive the parcel.\",\n  ];\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const submitted = ref(false);\n  const itemsError = ref(false);\n  const method = ref(\"original\");\n  // Item id mapped to how many units are being returned. Zero means not selected.\n  const selection = reactive<Record<number, number>>(\n    Object.fromEntries(props.items.map((item) => [item.id, 0]))\n  );\n\n  const refund = computed(() =>\n    props.items.reduce((sum, item) => sum + item.price * (selection[item.id] ?? 0), 0)\n  );\n\n  function toggle(item: ReturnItem) {\n    selection[item.id] = selection[item.id]! > 0 ? 0 : 1;\n    itemsError.value = false;\n  }\n\n  const schema = object({\n    reason: string().required(\"Choose a reason\").label(\"Reason\"),\n    condition: string().required(\"Choose a condition\").label(\"Condition\"),\n    comments: string().optional(),\n  });\n\n  const { handleSubmit, isSubmitting, resetForm } = useForm({\n    validationSchema: schema,\n    initialValues: { reason: \"\", condition: \"\", comments: \"\" },\n  });\n\n  // Replace the timeout with a request that creates the return.\n  const submit = handleSubmit(\n    async () => {\n      if (refund.value === 0) {\n        itemsError.value = true;\n        return;\n      }\n      await new Promise((resolve) => setTimeout(resolve, 800));\n      submitted.value = true;\n    },\n    () => {\n      itemsError.value = refund.value === 0;\n    }\n  );\n\n  function reset() {\n    submitted.value = false;\n    itemsError.value = false;\n    method.value = \"original\";\n    for (const key of Object.keys(selection)) selection[Number(key)] = 0;\n    resetForm();\n  }\n</script>\n","category":"Orders","description":"Return or refund request form. Features: Choose which items and how many to return, reason and item condition, refund to the original payment or store credit, optional comments, a live refund estimate, validation with vee-validate and a return label confirmation","path":"Ecommerce/Orders/BlockOrders6.vue","components":["button","checkbox","container","number-field","radio-group","vee-select","vee-textarea"]},{"name":"OTP Verification","fileName":"BlockOTPVerification.vue","file":"<template>\n  <!--\n    One time code verification on a grid background\n    Features: Six digit PIN input, resend link, back to log in link, validation\n  -->\n  <div class=\"relative flex min-h-screen items-center justify-center\">\n    <div\n      class=\"absolute inset-0 z-1 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(circle,transparent_25%,var(--color-border)_100%)] bg-size-[100px_100px]\"\n    />\n    <div class=\"relative z-2 w-full max-w-[400px] px-5\">\n      <div\n        class=\"bg-background mx-auto mb-6 flex size-14 items-center justify-center rounded-lg border\"\n      >\n        <Icon class=\"size-6\" name=\"lucide:shield-check\" />\n      </div>\n\n      <div class=\"flex flex-col items-center justify-center text-center\">\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-1\">{{ description }}</p>\n        <div\n          class=\"from-muted ring-muted mt-4 w-full rounded-md bg-linear-to-b p-2 text-center text-sm font-medium shadow-xs ring-1\"\n        >\n          john@example.com\n        </div>\n      </div>\n\n      <form class=\"mt-10\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-6\">\n          <UiVeePinInput\n            aria-label=\"Verification Code\"\n            name=\"code\"\n            :input-count=\"6\"\n            type=\"text\"\n            otp\n            placeholder=\"0\"\n            class=\"justify-center **:data-[slot=pin-input-input]:size-12 [&_p:first-of-type]:text-center\"\n            hint=\"Enter the 6-digit code that we sent to your email\"\n          />\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Verify Code\" />\n        </fieldset>\n      </form>\n\n      <div class=\"mt-6 text-center\">\n        <p class=\"text-muted-foreground text-sm\">\n          Didn't receive the code?\n          <button\n            type=\"button\"\n            class=\"text-primary font-semibold underline-offset-2 hover:underline\"\n            @click=\"resendCode\"\n          >\n            Resend\n          </button>\n        </p>\n      </div>\n\n      <p class=\"mt-8 text-center text-sm\">\n        <NuxtLink\n          class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 font-medium underline-offset-4 hover:underline\"\n          to=\"#\"\n        >\n          <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n          Back to log in\n        </NuxtLink>\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { array, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const title = \"Verify Your Email\";\n  const description = \"We've sent a verification code to your email.\";\n\n  useSeoMeta({ title, description });\n\n  const OTPSchema = object({\n    code: array()\n      .of(string().required())\n      .min(6, \"Please enter all 6 digits\")\n      .required()\n      .label(\"Verification Code\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof OTPSchema>>({\n    validationSchema: OTPSchema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n    useSonner(\"Code verified\", {\n      description: \"Your email has been verified successfully.\",\n    });\n  });\n\n  const resendCode = () => {\n    useSonner(\"Code resent\", {\n      description: \"A new verification code has been sent to your email.\",\n    });\n  };\n</script>\n","category":"OTP","description":"One time code verification on a grid background. Features: Six digit PIN input, resend link, back to log in link, validation","path":"OTP/BlockOTPVerification.vue","components":["button","vee-pin-input"]},{"name":"OTP Verification 2","fileName":"BlockOTPVerification2.vue","file":"<template>\n  <!--\n    One time code verification inside a card\n    Features: Lock icon, six digit PIN input, resend code option, back to log in link\n  -->\n  <div class=\"bg-muted/30 relative flex min-h-screen items-center justify-center p-4\">\n    <UiCard class=\"w-full max-w-lg\">\n      <div class=\"p-6 lg:p-8\">\n        <div class=\"mb-8 text-center\">\n          <div class=\"mb-4 flex justify-center\">\n            <div class=\"bg-primary/10 flex size-16 items-center justify-center rounded-full\">\n              <Icon class=\"text-primary size-8\" name=\"lucide:lock-keyhole\" />\n            </div>\n          </div>\n          <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">{{ title }}</h1>\n          <p class=\"text-muted-foreground text-sm\">\n            We sent a verification code to <strong>john@example.com</strong>\n          </p>\n        </div>\n\n        <form @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-6\">\n            <div>\n              <label class=\"mb-2 block text-center text-sm font-medium\">\n                Enter verification code\n              </label>\n              <UiVeePinInput\n                class=\"justify-center **:data-[slot=pin-input-input]:size-12\"\n                name=\"code\"\n                :input-count=\"6\"\n                type=\"text\"\n                placeholder=\"0\"\n              />\n              <p class=\"text-muted-foreground mt-2 text-center text-xs\">\n                Enter the 6-digit code we sent you\n              </p>\n            </div>\n\n            <UiButton class=\"w-full\" size=\"lg\" type=\"submit\"> Verify Code </UiButton>\n          </fieldset>\n        </form>\n\n        <UiDivider class=\"my-6\" />\n\n        <div class=\"text-center\">\n          <p class=\"text-muted-foreground text-sm\">\n            Didn't receive the code?\n            <button\n              type=\"button\"\n              class=\"text-primary font-semibold underline-offset-2 hover:underline\"\n            >\n              Resend code\n            </button>\n          </p>\n        </div>\n\n        <div class=\"mt-4 text-center\">\n          <NuxtLink\n            class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 text-sm\"\n            to=\"#\"\n          >\n            <Icon name=\"lucide:arrow-left\" />\n            Back to Log in\n          </NuxtLink>\n        </div>\n      </div>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { array, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const title = \"Verify your email\";\n  const description = \"Enter the verification code sent to your email.\";\n\n  useSeoMeta({ title, description });\n\n  const OTPSchema = object({\n    code: array().of(string()).min(6).required().label(\"Verification code\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof OTPSchema>>({\n    validationSchema: OTPSchema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    console.log(values);\n    useSonner.success(\"Code verified\", {\n      description: \"You can now reset your password.\",\n    });\n  });\n</script>\n","category":"OTP","description":"One time code verification inside a card. Features: Lock icon, six digit PIN input, resend code option, back to log in link","path":"OTP/BlockOTPVerification2.vue","components":["button","card","divider","vee-pin-input"]},{"name":"OTP Verification 3","fileName":"BlockOTPVerification3.vue","file":"<template>\n  <!--\n    One time code with a resend timer and attempt limit\n    Features: Six digit input that verifies as soon as it is complete, a countdown before you can ask for a new code, a count of attempts left with an error message, a lock after too many wrong codes and a verified state\n  -->\n  <div class=\"bg-muted/30 relative flex min-h-screen items-center justify-center p-4\">\n    <UiCard class=\"w-full max-w-md\">\n      <div class=\"p-6 lg:p-8\">\n        <div class=\"mb-6 flex justify-center\">\n          <div class=\"bg-primary/10 flex size-14 items-center justify-center rounded-full\">\n            <Icon\n              class=\"text-primary size-7\"\n              :name=\"verified ? 'lucide:shield-check' : 'lucide:mail-check'\"\n            />\n          </div>\n        </div>\n\n        <div v-if=\"verified\" class=\"text-center\" role=\"status\">\n          <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">You are verified</h1>\n          <p class=\"text-muted-foreground text-sm\">Thanks. You can continue to your account.</p>\n          <UiButton class=\"mt-6 w-full\" size=\"lg\" @click=\"reset\">Start over</UiButton>\n        </div>\n\n        <template v-else>\n          <div class=\"mb-6 text-center\">\n            <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">Enter your code</h1>\n            <p class=\"text-muted-foreground text-sm\">\n              We sent a 6 digit code to <strong class=\"text-foreground\">{{ email }}</strong>\n            </p>\n          </div>\n\n          <div ref=\"pinWrap\" class=\"flex justify-center\">\n            <UiPinInput\n              :key=\"pinKey\"\n              v-model=\"code\"\n              :input-count=\"6\"\n              otp\n              type=\"number\"\n              placeholder=\"0\"\n              :disabled=\"locked\"\n              :aria-invalid=\"!!error\"\n              class=\"**:data-[slot=pin-input-input]:size-12\"\n              aria-label=\"Verification code\"\n              @complete=\"verify\"\n            />\n          </div>\n\n          <p\n            class=\"mt-3 min-h-5 text-center text-sm\"\n            :class=\"error ? 'text-destructive' : 'text-muted-foreground'\"\n            aria-live=\"polite\"\n          >\n            {{ locked ? \"Too many wrong codes. Try again in 15 minutes.\" : error }}\n          </p>\n\n          <UiButton\n            class=\"mt-4 w-full\"\n            size=\"lg\"\n            :disabled=\"locked || code.join('').length < 6\"\n            @click=\"verify\"\n            >Verify</UiButton\n          >\n\n          <p class=\"text-muted-foreground mt-6 text-center text-sm\">\n            Did not get a code?\n            <button\n              v-if=\"seconds === 0 && !locked\"\n              type=\"button\"\n              class=\"text-primary font-semibold underline-offset-2 hover:underline\"\n              @click=\"resend\"\n            >\n              Send a new code\n            </button>\n            <span v-else-if=\"!locked\" class=\"tabular-nums\" aria-live=\"off\"\n              >Resend in {{ seconds }}s</span\n            >\n          </p>\n          <p\n            class=\"text-muted-foreground mt-4 rounded-md border border-dashed p-2 text-center text-xs\"\n          >\n            Demo: the correct code is {{ validCode }}.\n          </p>\n        </template>\n      </div>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      email?: string;\n      validCode?: string;\n      resendSeconds?: number;\n      maxAttempts?: number;\n    }>(),\n    {\n      email: \"john@example.com\",\n      validCode: \"123456\",\n      resendSeconds: 30,\n      maxAttempts: 5,\n    }\n  );\n\n  const title = \"Verify your code\";\n  useSeoMeta({ title });\n\n  const code = ref<string[]>([]);\n  const pinKey = ref(0);\n  const pinWrap = useTemplateRef<HTMLElement>(\"pinWrap\");\n\n  /** The pin input keeps what was typed, so remount it to empty the boxes and focus the first one. */\n  function clearCode() {\n    code.value = [];\n    pinKey.value++;\n    nextTick(() => pinWrap.value?.querySelector<HTMLInputElement>(\"input\")?.focus());\n  }\n  const error = ref(\"\");\n  const attempts = ref(0);\n  const verified = ref(false);\n  const seconds = ref(props.resendSeconds);\n\n  const locked = computed(() => attempts.value >= props.maxAttempts);\n\n  const { pause, resume } = useIntervalFn(() => {\n    if (seconds.value > 0) seconds.value--;\n    else pause();\n  }, 1000);\n\n  function verify() {\n    if (locked.value || code.value.join(\"\").length < 6) return;\n    if (code.value.join(\"\") === props.validCode) {\n      verified.value = true;\n      error.value = \"\";\n      return;\n    }\n    attempts.value++;\n    const left = props.maxAttempts - attempts.value;\n    error.value =\n      left > 0\n        ? `That code is not right. ${left} ${left === 1 ? \"attempt\" : \"attempts\"} left.`\n        : \"\";\n    clearCode();\n  }\n\n  function resend() {\n    seconds.value = props.resendSeconds;\n    clearCode();\n    error.value = \"\";\n    resume();\n    useSonner.success(\"A new code is on its way\");\n  }\n\n  function reset() {\n    verified.value = false;\n    attempts.value = 0;\n    clearCode();\n    error.value = \"\";\n    seconds.value = props.resendSeconds;\n    resume();\n  }\n</script>\n","category":"OTP","description":"One time code with a resend timer and attempt limit. Features: Six digit input that verifies as soon as it is complete, a countdown before you can ask for a new code, a count of attempts left with an error message, a lock after too many wrong codes and a verified state","path":"OTP/BlockOTPVerification3.vue","components":["button","card","pin-input"]},{"name":"OTP Verification 4","fileName":"BlockOTPVerification4.vue","file":"<template>\n  <!--\n    One time code in a dialog\n    Features: A security card that opens a dialog to confirm a sensitive action, six digit input that checks the code, an error message, a resend link and a verified badge on the page after success\n  -->\n  <div class=\"bg-muted/30 relative flex min-h-screen items-center justify-center p-4\">\n    <UiCard class=\"w-full max-w-md\">\n      <UiCardHeader>\n        <UiCardTitle>Security</UiCardTitle>\n        <UiCardDescription\n          >Confirm it is you before you change sensitive settings.</UiCardDescription\n        >\n      </UiCardHeader>\n      <UiCardContent class=\"space-y-4\">\n        <div class=\"flex items-center justify-between gap-3 rounded-lg border p-4\">\n          <div class=\"min-w-0\">\n            <p class=\"text-sm font-medium\">Account email</p>\n            <p class=\"text-muted-foreground truncate text-sm\">{{ email }}</p>\n          </div>\n          <UiBadge v-if=\"verifiedAt\" variant=\"soft\" color=\"green\" shape=\"pill\"\n            >Verified {{ verifiedAt }}</UiBadge\n          >\n          <UiBadge v-else variant=\"soft\" color=\"amber\" shape=\"pill\">Not verified</UiBadge>\n        </div>\n        <UiDialog v-model:open=\"open\">\n          <UiDialogTrigger as-child>\n            <UiButton class=\"w-full\">{{\n              verifiedAt ? \"Verify again\" : \"Verify to continue\"\n            }}</UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent class=\"sm:max-w-sm\">\n            <UiDialogHeader class=\"items-center text-center\">\n              <div class=\"bg-primary/10 mb-2 flex size-12 items-center justify-center rounded-full\">\n                <Icon class=\"text-primary size-6\" name=\"lucide:lock-keyhole\" />\n              </div>\n              <UiDialogTitle>Confirm it is you</UiDialogTitle>\n              <UiDialogDescription\n                >Enter the 6 digit code we sent to {{ email }}.</UiDialogDescription\n              >\n            </UiDialogHeader>\n            <div ref=\"pinWrap\" class=\"flex justify-center\">\n              <UiPinInput\n                :key=\"pinKey\"\n                v-model=\"code\"\n                :input-count=\"6\"\n                otp\n                type=\"number\"\n                placeholder=\"0\"\n                :aria-invalid=\"!!error\"\n                aria-label=\"Verification code\"\n                @complete=\"verify\"\n              />\n            </div>\n            <p class=\"text-destructive min-h-5 text-center text-sm\" aria-live=\"polite\">\n              {{ error }}\n            </p>\n            <UiDialogFooter class=\"sm:flex-col sm:space-x-0\">\n              <UiButton class=\"w-full\" :disabled=\"code.join('').length < 6\" @click=\"verify\"\n                >Verify</UiButton\n              >\n              <UiButton variant=\"ghost\" class=\"w-full\" @click=\"resend\">Send a new code</UiButton>\n            </UiDialogFooter>\n            <p class=\"text-muted-foreground border-t pt-3 text-center text-xs\">\n              Demo: the correct code is {{ validCode }}.\n            </p>\n          </UiDialogContent>\n        </UiDialog>\n      </UiCardContent>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      email?: string;\n      validCode?: string;\n    }>(),\n    {\n      email: \"john@example.com\",\n      validCode: \"123456\",\n    }\n  );\n\n  const title = \"Confirm it is you\";\n  useSeoMeta({ title });\n\n  const open = ref(false);\n  const code = ref<string[]>([]);\n  const pinKey = ref(0);\n  const pinWrap = useTemplateRef<HTMLElement>(\"pinWrap\");\n\n  /** The pin input keeps what was typed, so remount it to empty the boxes and focus the first one. */\n  function clearCode() {\n    code.value = [];\n    pinKey.value++;\n    nextTick(() => pinWrap.value?.querySelector<HTMLInputElement>(\"input\")?.focus());\n  }\n  const error = ref(\"\");\n  const verifiedAt = ref(\"\");\n\n  watch(open, (value) => {\n    if (!value) {\n      clearCode();\n      error.value = \"\";\n    }\n  });\n\n  function verify() {\n    if (code.value.join(\"\").length < 6) return;\n    if (code.value.join(\"\") !== props.validCode) {\n      error.value = \"That code is not right. Check it and try again.\";\n      clearCode();\n      return;\n    }\n    verifiedAt.value = \"just now\";\n    open.value = false;\n    useSonner.success(\"Verified\", { description: \"You can change your settings now.\" });\n  }\n\n  function resend() {\n    clearCode();\n    error.value = \"\";\n    useSonner.success(\"A new code is on its way\");\n  }\n</script>\n","category":"OTP","description":"One time code in a dialog. Features: A security card that opens a dialog to confirm a sensitive action, six digit input that checks the code, an error message, a resend link and a verified badge on the page after success","path":"OTP/BlockOTPVerification4.vue","components":["badge","button","card","dialog","pin-input"]},{"name":"OTP Verification 5","fileName":"BlockOTPVerification5.vue","file":"<template>\n  <!--\n    Phone number verification in two steps\n    Features: A phone step with a country code select and number validation, a code step that shows the number with a change number link, resend with a countdown, a wrong code message and a verified state\n  -->\n  <div class=\"bg-muted/30 relative flex min-h-screen items-center justify-center p-4\">\n    <UiCard class=\"w-full max-w-md\">\n      <div class=\"p-6 lg:p-8\">\n        <div class=\"mb-6 flex justify-center\">\n          <div class=\"bg-primary/10 flex size-14 items-center justify-center rounded-full\">\n            <Icon\n              class=\"text-primary size-7\"\n              :name=\"step === 'done' ? 'lucide:circle-check' : 'lucide:smartphone'\"\n            />\n          </div>\n        </div>\n\n        <form v-if=\"step === 'phone'\" class=\"grid gap-5\" novalidate @submit.prevent=\"sendCode\">\n          <div class=\"text-center\">\n            <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">Verify your phone</h1>\n            <p class=\"text-muted-foreground text-sm\">\n              We will text you a 6 digit code. Message and data rates may apply.\n            </p>\n          </div>\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"phone-number\">Phone number</UiLabel>\n            <div class=\"flex gap-2\">\n              <UiSelect v-model=\"country\">\n                <UiSelectTrigger class=\"w-28\" aria-label=\"Country code\"\n                  ><UiSelectValue\n                /></UiSelectTrigger>\n                <UiSelectContent>\n                  <UiSelectItem v-for=\"item in countries\" :key=\"item.code\" :value=\"item.code\"\n                    >{{ item.flag }} {{ item.code }}</UiSelectItem\n                  >\n                </UiSelectContent>\n              </UiSelect>\n              <UiInput\n                id=\"phone-number\"\n                v-model=\"phone\"\n                type=\"tel\"\n                inputmode=\"tel\"\n                autocomplete=\"tel-national\"\n                placeholder=\"555 010 2030\"\n                :aria-invalid=\"!!phoneError\"\n              />\n            </div>\n            <p v-if=\"phoneError\" class=\"text-destructive text-sm\">{{ phoneError }}</p>\n          </div>\n          <UiButton type=\"submit\" size=\"lg\" class=\"w-full\">Send code</UiButton>\n        </form>\n\n        <div v-else-if=\"step === 'code'\" class=\"grid gap-5\">\n          <div class=\"text-center\">\n            <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">Enter the code</h1>\n            <p class=\"text-muted-foreground text-sm\">\n              Sent to <strong class=\"text-foreground\">{{ country }} {{ phone }}</strong>\n              <button\n                type=\"button\"\n                class=\"text-primary ml-2 font-medium underline-offset-2 hover:underline\"\n                @click=\"changeNumber\"\n              >\n                Change number\n              </button>\n            </p>\n          </div>\n          <div ref=\"pinWrap\" class=\"flex justify-center\">\n            <UiPinInput\n              :key=\"pinKey\"\n              v-model=\"code\"\n              :input-count=\"6\"\n              otp\n              type=\"number\"\n              placeholder=\"0\"\n              :aria-invalid=\"!!codeError\"\n              aria-label=\"Verification code\"\n              @complete=\"verify\"\n            />\n          </div>\n          <p class=\"text-destructive min-h-5 text-center text-sm\" aria-live=\"polite\">\n            {{ codeError }}\n          </p>\n          <UiButton size=\"lg\" class=\"w-full\" :disabled=\"code.join('').length < 6\" @click=\"verify\"\n            >Verify phone</UiButton\n          >\n          <p class=\"text-muted-foreground text-center text-sm\">\n            <button\n              v-if=\"seconds === 0\"\n              type=\"button\"\n              class=\"text-primary font-semibold underline-offset-2 hover:underline\"\n              @click=\"resend\"\n            >\n              Text me a new code\n            </button>\n            <span v-else class=\"tabular-nums\">Text me a new code in {{ seconds }}s</span>\n          </p>\n          <p class=\"text-muted-foreground rounded-md border border-dashed p-2 text-center text-xs\">\n            Demo: the correct code is {{ validCode }}.\n          </p>\n        </div>\n\n        <div v-else class=\"text-center\" role=\"status\">\n          <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">Phone verified</h1>\n          <p class=\"text-muted-foreground text-sm\">\n            {{ country }} {{ phone }} is now linked to your account.\n          </p>\n          <UiButton variant=\"outline\" class=\"mt-6 w-full\" @click=\"changeNumber\"\n            >Use a different number</UiButton\n          >\n        </div>\n      </div>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      validCode?: string;\n      resendSeconds?: number;\n    }>(),\n    {\n      validCode: \"123456\",\n      resendSeconds: 30,\n    }\n  );\n\n  const title = \"Verify your phone\";\n  useSeoMeta({ title });\n\n  const countries = [\n    { code: \"+1\", flag: \"🇺🇸\" },\n    { code: \"+44\", flag: \"🇬🇧\" },\n    { code: \"+49\", flag: \"🇩🇪\" },\n    { code: \"+61\", flag: \"🇦🇺\" },\n  ];\n\n  const step = ref<\"phone\" | \"code\" | \"done\">(\"phone\");\n  const country = ref(\"+1\");\n  const phone = ref(\"\");\n  const phoneError = ref(\"\");\n  const code = ref<string[]>([]);\n  const pinKey = ref(0);\n  const pinWrap = useTemplateRef<HTMLElement>(\"pinWrap\");\n\n  /** The pin input keeps what was typed, so remount it to empty the boxes and focus the first one. */\n  function clearCode() {\n    code.value = [];\n    pinKey.value++;\n    nextTick(() => pinWrap.value?.querySelector<HTMLInputElement>(\"input\")?.focus());\n  }\n  const codeError = ref(\"\");\n  const seconds = ref(0);\n\n  const { pause, resume } = useIntervalFn(\n    () => {\n      if (seconds.value > 0) seconds.value--;\n      else pause();\n    },\n    1000,\n    { immediate: false }\n  );\n\n  function startTimer() {\n    seconds.value = props.resendSeconds;\n    resume();\n  }\n\n  function sendCode() {\n    const digits = phone.value.replace(/[\\s()-]/g, \"\");\n    if (!/^\\d{7,12}$/.test(digits)) {\n      phoneError.value = \"Enter a phone number with 7 to 12 digits.\";\n      return;\n    }\n    phoneError.value = \"\";\n    step.value = \"code\";\n    startTimer();\n  }\n\n  function verify() {\n    if (code.value.join(\"\").length < 6) return;\n    if (code.value.join(\"\") === props.validCode) {\n      step.value = \"done\";\n      codeError.value = \"\";\n      pause();\n      return;\n    }\n    codeError.value = \"That code is not right. Check the text and try again.\";\n    clearCode();\n  }\n\n  function resend() {\n    clearCode();\n    codeError.value = \"\";\n    startTimer();\n    useSonner.success(\"A new code is on its way\");\n  }\n\n  function changeNumber() {\n    step.value = \"phone\";\n    clearCode();\n    codeError.value = \"\";\n    pause();\n  }\n</script>\n","category":"OTP","description":"Phone number verification in two steps. Features: A phone step with a country code select and number validation, a code step that shows the number with a change number link, resend with a countdown, a wrong code message and a verified state","path":"OTP/BlockOTPVerification5.vue","components":["button","card","input","label","pin-input","select"]},{"name":"Blog Page 1","fileName":"BlockBlogPage1.vue","file":"<template>\n  <!-- \n    Blog page with category tabs and featured post\n    Features: Animated header, featured hero image, category filter tabs, responsive grid\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Header section with staggered animations -->\n      <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary mb-3 font-semibold\">\n        Our blog\n      </Motion>\n      <Motion\n        as=\"h1\"\n        :variants=\"childVariant\"\n        class=\"mb-4 text-4xl font-semibold lg:mb-6 lg:text-5xl\"\n      >\n        Resources and insights\n      </Motion>\n      <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg lg:text-xl\">\n        The latest industry news, interviews, technologies, and resources.\n      </Motion>\n\n      <!-- Featured blog image - Desktop -->\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, y: 30, scale: 0.95 },\n          animate: {\n            opacity: 1,\n            y: 0,\n            scale: 1,\n            transition: {\n              type: 'spring',\n              stiffness: 200,\n              damping: 25,\n            },\n          },\n        }\"\n        title=\"Blog page on image\"\n        class=\"mt-10 hidden h-60 w-full items-end overflow-hidden rounded-lg bg-cover drop-shadow lg:mt-20 lg:flex lg:h-[720px]\"\n        :style=\"{\n          backgroundImage:\n            'url(https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)',\n        }\"\n      >\n        <div\n          class=\"w-full border-t border-white/10 bg-black/40 p-6 text-white backdrop-blur-2xl md:p-10\"\n        >\n          <NuxtLink to=\"#\">\n            <h2\n              class=\"hover:text-primary/80 mb-2 text-xl font-semibold transition-colors md:text-2xl\"\n            >\n              Improve your design skills: Develop an \"eye\" for design\n            </h2>\n          </NuxtLink>\n          <p class=\"text-sm md:text-base\">\n            Tools and trends change, but good design is timeless. Learn how to quickly develop an\n            \"eye\" for design.\n          </p>\n          <p class=\"mt-5 text-sm\">Written by</p>\n          <NuxtLink to=\"#\">\n            <div class=\"mt-2 flex items-center gap-3 transition-opacity hover:opacity-80\">\n              <UiAvatar\n                class=\"ring-1 ring-white/20\"\n                src=\"https://api.dicebear.com/7.x/lorelei/svg?flip=false\"\n              />\n              <span>Jane Doe</span>\n            </div>\n          </NuxtLink>\n          <div class=\"mt-5 flex flex-wrap items-center gap-2\">\n            <template v-for=\"t in ['Design', 'Research', 'Presentation']\" :key=\"t\">\n              <UiBadge class=\"border-white px-3 py-1 text-sm text-white\" variant=\"outline\">{{\n                t\n              }}</UiBadge>\n            </template>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Featured blog - Mobile -->\n      <Motion :variants=\"childVariant\" class=\"mt-16 mb-10 lg:hidden\">\n        <NuxtLink :to=\"link\" class=\"block\">\n          <img\n            src=\"https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n            :alt=\"alt\"\n            class=\"mb-5 h-[240px] w-full rounded-lg object-cover shadow transition-transform duration-300 hover:scale-[1.02]\"\n          />\n        </NuxtLink>\n        <p v-if=\"headline\" class=\"text-primary mb-2 text-sm font-semibold\">{{ headline }}</p>\n        <NuxtLink :to=\"link\">\n          <p class=\"hover:text-primary mb-2 text-xl font-semibold transition-colors lg:text-2xl\">\n            {{ title }}\n          </p>\n        </NuxtLink>\n        <p v-if=\"description\" class=\"text-muted-foreground mb-5 line-clamp-2 text-ellipsis\">\n          {{ description }}\n        </p>\n        <div class=\"flex items-center\">\n          <UiAvatar\n            v-if=\"userImage\"\n            :src=\"userImage\"\n            :alt=\"userName\"\n            class=\"bg-background ring-ring/30 mr-3 rounded-full shadow ring-1\"\n          />\n          <div>\n            <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n            <p v-if=\"date\" class=\"text-muted-foreground text-sm\">{{ date }}</p>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Filter tabs -->\n      <Motion :variants=\"childVariant\">\n        <UiTabs class=\"mt-5\" :default-value=\"categories[0]\">\n          <UiTabsList\n            :pill=\"false\"\n            class=\"relative h-auto w-full justify-start gap-3 overflow-x-auto\"\n          >\n            <template v-for=\"c in categories\" :key=\"c\">\n              <UiTabsTrigger\n                class=\"p-2 focus-visible:ring-0 focus-visible:ring-offset-0\"\n                :pill=\"false\"\n                :value=\"c\"\n                >{{ c }}</UiTabsTrigger\n              >\n            </template>\n            <UiTabsIndicator />\n          </UiTabsList>\n        </UiTabs>\n      </Motion>\n\n      <!-- Articles grid with staggered animations -->\n      <section\n        class=\"mt-12 grid grid-cols-1 gap-x-8 gap-y-12 md:grid-cols-2 lg:mt-16 lg:grid-cols-3\"\n      >\n        <Motion\n          v-for=\"n in 9\"\n          :key=\"n\"\n          :variants=\"childVariant\"\n          :transition=\"{\n            delay: n * 0.05,\n          }\"\n        >\n          <div>\n            <NuxtLink :to=\"link\" class=\"block\">\n              <img\n                v-if=\"image\"\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"mb-5 h-[240px] w-full rounded-lg object-cover shadow transition-transform duration-300 hover:scale-[1.02]\"\n              />\n            </NuxtLink>\n            <p v-if=\"headline\" class=\"text-primary mb-2 text-sm font-semibold\">{{ headline }}</p>\n            <NuxtLink :to=\"link\">\n              <p\n                class=\"hover:text-primary mb-2 text-xl font-semibold transition-colors lg:text-2xl\"\n              >\n                {{ title }}\n              </p>\n            </NuxtLink>\n            <p v-if=\"description\" class=\"text-muted-foreground mb-5 line-clamp-2 text-ellipsis\">\n              {{ description }}\n            </p>\n            <div class=\"flex items-center\">\n              <UiAvatar\n                v-if=\"userImage\"\n                :src=\"userImage\"\n                :alt=\"userName\"\n                class=\"bg-background ring-ring/30 mr-3 rounded-full shadow ring-1\"\n              />\n              <div>\n                <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n                <p v-if=\"date\" class=\"text-muted-foreground text-sm\">{{ date }}</p>\n              </div>\n            </div>\n          </div>\n        </Motion>\n      </section>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const categories = [\"Design\", \"Research\", \"Presentation\", \"Development\", \"Marketing\", \"Sales\"];\n\n  const headline = \"Design\";\n  const title = \"UX review presentations\";\n  const image =\n    \"https://images.unsplash.com/photo-1524169220946-12efd782aab4?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\";\n  const alt = \"UX review presentations\";\n  const description =\n    \"How do you create compelling presentations that wow your colleagues and impress your managers?\";\n  const date = \"30 Jan 2024\";\n  const userImage = \"https://api.dicebear.com/7.x/lorelei/svg?flip=false\";\n  const userName = \"John Doe\";\n  const link = \"#\";\n</script>\n","category":"Page","description":"Blog page with category tabs and featured post. Features: Animated header, featured hero image, category filter tabs, responsive grid","path":"Blog/Page/BlockBlogPage1.vue","components":["avatar","badge","container","tabs"]},{"name":"Blog Page 2","fileName":"BlockBlogPage2.vue","file":"<template>\n  <!-- \n    Blog page with sidebar navigation and search\n    Features: Centered header, sticky sidebar, search input, category navigation, responsive layout\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Centered header -->\n      <div class=\"text-center\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary mb-3 font-semibold\">\n          Our blog\n        </Motion>\n        <Motion\n          as=\"h1\"\n          :variants=\"childVariant\"\n          class=\"mb-4 text-4xl font-semibold lg:mb-6 lg:text-5xl\"\n        >\n          The latest writings from our team\n        </Motion>\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg lg:text-xl\">\n          The latest industry news, interviews, technologies, and resources.\n        </Motion>\n      </div>\n\n      <!-- Featured blog image - Desktop -->\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, y: 30, scale: 0.95 },\n          animate: {\n            opacity: 1,\n            y: 0,\n            scale: 1,\n            transition: {\n              type: 'spring',\n              stiffness: 200,\n              damping: 25,\n            },\n          },\n        }\"\n        title=\"Blog page on image\"\n        class=\"mt-10 hidden h-60 w-full items-end overflow-hidden rounded-lg bg-cover drop-shadow lg:mt-24 lg:flex lg:h-[720px]\"\n        :style=\"{\n          backgroundImage:\n            'url(https://images.unsplash.com/photo-1511447333015-45b65e60f6d5?q=80&w=2155&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)',\n        }\"\n      >\n        <div\n          class=\"w-full border-t border-white/10 bg-black/40 p-6 text-white backdrop-blur-2xl md:p-10\"\n        >\n          <NuxtLink to=\"#\">\n            <h2\n              class=\"hover:text-primary/80 mb-2 text-xl font-semibold transition-colors md:text-2xl\"\n            >\n              Improve your design skills: Develop an \"eye\" for design\n            </h2>\n          </NuxtLink>\n          <p class=\"text-sm md:text-base\">\n            Tools and trends change, but good design is timeless. Learn how to quickly develop an\n            \"eye\" for design.\n          </p>\n          <p class=\"mt-5 text-sm\">Written by</p>\n          <NuxtLink to=\"#\">\n            <div class=\"mt-2 flex items-center gap-3 transition-opacity hover:opacity-80\">\n              <UiAvatar\n                class=\"ring-1 ring-white/20\"\n                src=\"https://api.dicebear.com/7.x/lorelei/svg?flip=false\"\n              />\n              <span>Jane Doe</span>\n            </div>\n          </NuxtLink>\n          <div class=\"mt-5 flex flex-wrap items-center gap-2\">\n            <template v-for=\"t in ['Design', 'Research', 'Presentation']\" :key=\"t\">\n              <UiBadge class=\"border-white px-3 py-1 text-sm text-white\" variant=\"outline\">{{\n                t\n              }}</UiBadge>\n            </template>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Featured blog - Mobile -->\n      <Motion :variants=\"childVariant\" class=\"mt-16 mb-10 lg:hidden\">\n        <NuxtLink :to=\"link\" class=\"block\">\n          <img\n            src=\"https://images.unsplash.com/photo-1511447333015-45b65e60f6d5?q=80&w=2155&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n            :alt=\"alt\"\n            class=\"mb-5 h-[240px] w-full rounded-lg object-cover transition-transform duration-300 hover:scale-[1.02]\"\n          />\n        </NuxtLink>\n        <UiBadge\n          v-if=\"headline || readTime\"\n          variant=\"outline\"\n          class=\"border-ring/50 text-primary mb-2 px-3 py-1 text-sm font-medium\"\n          >{{ headline }} <span v-if=\"readTime\" class=\"ml-1\">{{ readTime }}</span></UiBadge\n        >\n        <NuxtLink :to=\"link\">\n          <p class=\"hover:text-primary mb-2 text-xl font-semibold transition-colors lg:text-2xl\">\n            {{ title }}\n          </p>\n        </NuxtLink>\n        <p v-if=\"description\" class=\"text-muted-foreground mb-5 line-clamp-2 text-ellipsis\">\n          {{ description }}\n        </p>\n        <div class=\"flex items-center\">\n          <UiAvatar\n            v-if=\"userImage\"\n            :src=\"userImage\"\n            :alt=\"userName\"\n            class=\"bg-background ring-ring/30 mr-3 rounded-full shadow ring-1\"\n          />\n          <div>\n            <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n            <p v-if=\"date\" class=\"text-muted-foreground text-sm\">{{ date }}</p>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Articles grid with sidebar -->\n      <section class=\"mt-12 grid grid-cols-1 gap-y-12 lg:mt-16 lg:grid-cols-12 lg:gap-x-8\">\n        <!-- Sidebar -->\n        <Motion :variants=\"childVariant\" class=\"bg-background col-span-full lg:col-span-4\">\n          <div class=\"sticky top-5\">\n            <UiVeeInput placeholder=\"Search\" icon=\"lucide:search\" />\n\n            <p class=\"text-primary mt-5 font-semibold md:text-sm\">Blog categories</p>\n            <ul class=\"mt-5 flex flex-col gap-5 pl-2 font-medium md:text-sm\">\n              <Motion\n                v-for=\"(c, index) in categories\"\n                :key=\"c\"\n                :variants=\"{\n                  initial: { opacity: 0, x: -10 },\n                  animate: {\n                    opacity: 1,\n                    x: 0,\n                    transition: {\n                      delay: index * 0.05,\n                    },\n                  },\n                }\"\n                as=\"li\"\n              >\n                <NuxtLink class=\"hover:text-primary transition-colors\" to=\"#\">{{ c }}</NuxtLink>\n              </Motion>\n            </ul>\n          </div>\n        </Motion>\n\n        <!-- Articles grid -->\n        <div class=\"col-span-full grid grid-cols-1 gap-x-8 gap-y-12 md:grid-cols-2 lg:col-span-8\">\n          <Motion\n            v-for=\"n in 8\"\n            :key=\"n\"\n            :variants=\"childVariant\"\n            :transition=\"{\n              delay: n * 0.05,\n            }\"\n          >\n            <div>\n              <NuxtLink :to=\"link\" class=\"block\">\n                <img\n                  v-if=\"image\"\n                  :src=\"image\"\n                  :alt=\"alt\"\n                  class=\"mb-5 h-[240px] w-full rounded-lg object-cover transition-transform duration-300 hover:scale-[1.02]\"\n                />\n              </NuxtLink>\n              <UiBadge\n                v-if=\"headline || readTime\"\n                variant=\"outline\"\n                class=\"border-ring/50 text-primary mb-2 px-3 py-1 text-sm font-medium\"\n                >{{ headline }} <span v-if=\"readTime\" class=\"ml-1\">{{ readTime }}</span></UiBadge\n              >\n              <NuxtLink :to=\"link\">\n                <p\n                  class=\"hover:text-primary mb-2 text-xl font-semibold transition-colors lg:text-2xl\"\n                >\n                  {{ title }}\n                </p>\n              </NuxtLink>\n              <p v-if=\"description\" class=\"text-muted-foreground mb-5 line-clamp-2 text-ellipsis\">\n                {{ description }}\n              </p>\n              <div class=\"flex items-center\">\n                <UiAvatar\n                  v-if=\"userImage\"\n                  :src=\"userImage\"\n                  :alt=\"userName\"\n                  class=\"bg-background ring-ring/30 mr-3 rounded-full shadow ring-1\"\n                />\n                <div>\n                  <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n                  <p v-if=\"date\" class=\"text-muted-foreground text-sm\">{{ date }}</p>\n                </div>\n              </div>\n            </div>\n          </Motion>\n        </div>\n      </section>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const categories = [\"Design\", \"Research\", \"Presentation\", \"Development\", \"Marketing\", \"Sales\"];\n\n  const headline = \"Design\";\n  const title = \"UX review presentations\";\n  const image =\n    \"https://images.unsplash.com/photo-1524169220946-12efd782aab4?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\";\n  const alt = \"UX review presentations\";\n  const description =\n    \"How do you create compelling presentations that wow your colleagues and impress your managers?\";\n  const date = \"30 Jan 2024\";\n  const userImage = \"https://api.dicebear.com/7.x/lorelei/svg?flip=false\";\n  const userName = \"John Doe\";\n  const readTime = \"5 mins\";\n  const link = \"#\";\n</script>\n","category":"Page","description":"Blog page with sidebar navigation and search. Features: Centered header, sticky sidebar, search input, category navigation, responsive layout","path":"Blog/Page/BlockBlogPage2.vue","components":["avatar","badge","container","vee-input"]},{"name":"Blog Page 3","fileName":"BlockBlogPage3.vue","file":"<template>\n  <!-- \n    Blog page with newsletter subscription\n    Features: Centered header, inline newsletter form, animated featured post, tag-based cards\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Centered header -->\n      <div class=\"text-center\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary mb-3 font-semibold\">\n          Our blog\n        </Motion>\n        <Motion\n          as=\"h1\"\n          :variants=\"childVariant\"\n          class=\"mb-4 text-4xl font-semibold lg:mb-6 lg:text-5xl\"\n        >\n          Resources and insights\n        </Motion>\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg lg:text-xl\">\n          The latest industry news, interviews, technologies, and resources.\n        </Motion>\n      </div>\n\n      <!-- Subscribe form -->\n      <Motion :variants=\"childVariant\" class=\"mx-auto w-full max-w-sm\">\n        <form class=\"mt-8 flex flex-col gap-3 lg:mt-12 lg:flex-row lg:items-center\">\n          <div class=\"w-full\">\n            <UiVeeInput required placeholder=\"Enter your email\" aria-label=\"Enter your email\" />\n          </div>\n          <p class=\"text-muted-foreground my-2 text-sm lg:hidden\">\n            We care about your data in our privacy policy.\n          </p>\n          <div>\n            <UiButton class=\"w-full whitespace-nowrap lg:w-auto\" type=\"submit\"\n              >Get started</UiButton\n            >\n          </div>\n        </form>\n        <p class=\"text-muted-foreground mt-3 hidden text-sm lg:block\">\n          We care about your data in our privacy policy.\n        </p>\n      </Motion>\n\n      <!-- Featured blog image - Desktop -->\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, y: 30, scale: 0.95 },\n          animate: {\n            opacity: 1,\n            y: 0,\n            scale: 1,\n            transition: {\n              type: 'spring',\n              stiffness: 200,\n              damping: 25,\n            },\n          },\n        }\"\n        title=\"Blog page on image\"\n        class=\"mt-10 hidden h-60 w-full items-end overflow-hidden rounded-lg bg-cover drop-shadow lg:mt-24 lg:flex lg:h-[720px]\"\n        :style=\"{\n          backgroundImage:\n            'url(https://images.unsplash.com/photo-1541701494587-cb58502866ab?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)',\n        }\"\n      >\n        <div\n          class=\"w-full border-t border-white/10 bg-black/40 p-6 text-white backdrop-blur-2xl md:p-10\"\n        >\n          <NuxtLink to=\"#\">\n            <h2\n              class=\"hover:text-primary/80 mb-2 text-xl font-semibold transition-colors md:text-2xl\"\n            >\n              Improve your design skills: Develop an \"eye\" for design\n            </h2>\n          </NuxtLink>\n          <p class=\"text-sm md:text-base\">\n            Tools and trends change, but good design is timeless. Learn how to quickly develop an\n            \"eye\" for design.\n          </p>\n          <p class=\"mt-5 text-sm\">Written by</p>\n          <NuxtLink to=\"#\">\n            <div class=\"mt-2 flex items-center gap-3 transition-opacity hover:opacity-80\">\n              <UiAvatar\n                class=\"ring-1 ring-white/20\"\n                src=\"https://api.dicebear.com/7.x/lorelei/svg?flip=false\"\n              />\n              <span>Jane Doe</span>\n            </div>\n          </NuxtLink>\n          <div class=\"mt-5 flex flex-wrap items-center gap-2\">\n            <template v-for=\"t in ['Design', 'Research', 'Presentation']\" :key=\"t\">\n              <UiBadge class=\"border-white px-3 py-1 text-sm text-white\" variant=\"outline\">{{\n                t\n              }}</UiBadge>\n            </template>\n          </div>\n        </div>\n      </Motion>\n\n      <!-- Featured blog - Mobile -->\n      <Motion :variants=\"childVariant\" class=\"mt-16 mb-10 lg:hidden\">\n        <NuxtLink :to=\"link\" class=\"block\">\n          <img\n            src=\"https://images.unsplash.com/photo-1541701494587-cb58502866ab?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n            :alt=\"alt\"\n            class=\"mb-5 h-[240px] w-full rounded-lg object-cover shadow transition-transform duration-300 hover:scale-[1.02]\"\n          />\n        </NuxtLink>\n        <p v-if=\"headline\" class=\"text-primary mb-2 text-sm font-semibold\">\n          {{ headline }} <span v-if=\"date\">- {{ date }}</span>\n        </p>\n        <NuxtLink :to=\"link\">\n          <p class=\"hover:text-primary mb-2 text-xl font-semibold transition-colors lg:text-2xl\">\n            {{ title }}\n          </p>\n        </NuxtLink>\n        <p v-if=\"description\" class=\"text-muted-foreground mb-3 line-clamp-2 text-ellipsis\">\n          {{ description }}\n        </p>\n        <div class=\"flex flex-wrap items-center gap-2\">\n          <template v-for=\"t in tags\" :key=\"t\">\n            <UiBadge class=\"px-3 py-1 text-sm\" variant=\"outline\">{{ t }}</UiBadge>\n          </template>\n        </div>\n      </Motion>\n\n      <!-- Articles grid with staggered animations -->\n      <section\n        class=\"mt-12 grid grid-cols-1 gap-x-8 gap-y-12 md:grid-cols-2 lg:mt-16 lg:grid-cols-3\"\n      >\n        <Motion\n          v-for=\"n in 9\"\n          :key=\"n\"\n          :variants=\"childVariant\"\n          :transition=\"{\n            delay: n * 0.05,\n          }\"\n        >\n          <div>\n            <NuxtLink :to=\"link\" class=\"block\">\n              <img\n                v-if=\"image\"\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"mb-5 h-[240px] w-full rounded-lg object-cover shadow transition-transform duration-300 hover:scale-[1.02]\"\n              />\n            </NuxtLink>\n            <p v-if=\"headline\" class=\"text-primary mb-2 text-sm font-semibold\">\n              {{ headline }} <span v-if=\"date\">- {{ date }}</span>\n            </p>\n            <NuxtLink :to=\"link\">\n              <p\n                class=\"hover:text-primary mb-2 text-xl font-semibold transition-colors lg:text-2xl\"\n              >\n                {{ title }}\n              </p>\n            </NuxtLink>\n            <p v-if=\"description\" class=\"text-muted-foreground mb-3 line-clamp-2 text-ellipsis\">\n              {{ description }}\n            </p>\n            <div class=\"flex flex-wrap items-center gap-2\">\n              <Motion\n                v-for=\"(t, index) in tags\"\n                :key=\"t\"\n                :variants=\"{\n                  initial: { opacity: 0, scale: 0.8 },\n                  animate: {\n                    opacity: 1,\n                    scale: 1,\n                    transition: {\n                      delay: index * 0.05,\n                    },\n                  },\n                }\"\n                as-child\n              >\n                <UiBadge class=\"px-3 py-1 text-sm\" variant=\"outline\">{{ t }}</UiBadge>\n              </Motion>\n            </div>\n          </div>\n        </Motion>\n      </section>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const headline = \"Design\";\n  const title = \"UX review presentations\";\n  const image =\n    \"https://images.unsplash.com/photo-1524169220946-12efd782aab4?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\";\n  const alt = \"UX review presentations\";\n  const description =\n    \"How do you create compelling presentations that wow your colleagues and impress your managers?\";\n  const date = \"30 Jan 2024\";\n  const tags = [\"Design\", \"UX\", \"UI\"];\n  const link = \"#\";\n</script>\n","category":"Page","description":"Blog page with newsletter subscription. Features: Centered header, inline newsletter form, animated featured post, tag-based cards","path":"Blog/Page/BlockBlogPage3.vue","components":["avatar","badge","button","container","vee-input"]},{"name":"Blog Page 4","fileName":"BlockBlogPage4.vue","file":"<template>\n  <!-- \n    Minimal blog page with search-focused design\n    Features: Large search bar, trending topics chips, minimal two-column grid\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Minimal centered header -->\n      <div class=\"mx-auto max-w-3xl text-center\">\n        <Motion\n          as=\"h1\"\n          :variants=\"childVariant\"\n          class=\"mb-4 text-4xl font-bold lg:mb-6 lg:text-6xl\"\n        >\n          Blog\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mb-8 text-lg lg:text-xl\"\n        >\n          Discover stories, thinking, and expertise from writers on any topic\n        </Motion>\n\n        <!-- Large search bar -->\n        <Motion :variants=\"childVariant\" class=\"relative mx-auto max-w-md\">\n          <UiVeeInput placeholder=\"Search articles...\" icon=\"lucide:search\" class=\"\" />\n        </Motion>\n\n        <!-- Trending topics -->\n        <Motion :variants=\"childVariant\" class=\"mt-6\">\n          <p class=\"text-muted-foreground mb-6 text-sm font-semibold\">Trending topics</p>\n          <div class=\"flex flex-wrap items-center justify-center gap-2\">\n            <Motion\n              v-for=\"(topic, index) in trendingTopics\"\n              :key=\"topic\"\n              :variants=\"{\n                initial: { opacity: 0, scale: 0.8 },\n                animate: {\n                  opacity: 1,\n                  scale: 1,\n                  transition: {\n                    delay: index * 0.05,\n                  },\n                },\n              }\"\n              as-child\n            >\n              <UiBadge\n                variant=\"outline\"\n                class=\"hover:bg-primary hover:text-primary-foreground cursor-pointer\"\n              >\n                {{ topic }}\n              </UiBadge>\n            </Motion>\n          </div>\n        </Motion>\n      </div>\n\n      <!-- Articles grid - Two column minimal layout -->\n      <section class=\"mx-auto mt-16 max-w-4xl lg:mt-24\">\n        <Motion :variants=\"childVariant\" class=\"mb-8 flex items-center justify-between\">\n          <h2 class=\"text-2xl font-semibold\">Recent articles</h2>\n          <UiButton variant=\"ghost\" size=\"sm\">\n            View all\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </Motion>\n\n        <div class=\"space-y-8\">\n          <Motion\n            v-for=\"n in 6\"\n            :key=\"n\"\n            :variants=\"childVariant\"\n            :transition=\"{\n              delay: n * 0.05,\n            }\"\n          >\n            <UiDivider v-if=\"n > 1\" class=\"my-8\" />\n            <div class=\"grid grid-cols-1 gap-6 md:grid-cols-12 md:items-center\">\n              <!-- Image -->\n              <NuxtLink :to=\"link\" class=\"group md:col-span-5\">\n                <img\n                  :src=\"image\"\n                  :alt=\"alt\"\n                  class=\"h-[200px] w-full rounded-lg object-cover transition-all duration-300 group-hover:scale-[1.02] group-hover:shadow-lg md:h-[180px]\"\n                />\n              </NuxtLink>\n\n              <!-- Content -->\n              <div class=\"md:col-span-7\">\n                <div class=\"mb-3 flex items-center gap-2\">\n                  <UiAvatar :src=\"userImage\" :alt=\"userName\" size=\"xs\" />\n                  <span class=\"text-sm font-medium\">{{ userName }}</span>\n                  <span class=\"text-muted-foreground text-sm\">·</span>\n                  <span class=\"text-muted-foreground text-sm\">{{ date }}</span>\n                </div>\n                <NuxtLink :to=\"link\">\n                  <h3\n                    class=\"hover:text-primary mb-2 text-xl font-semibold transition-colors lg:text-2xl\"\n                  >\n                    {{ title }}\n                  </h3>\n                </NuxtLink>\n                <p class=\"text-muted-foreground mb-3 line-clamp-2\">{{ description }}</p>\n                <div class=\"text-muted-foreground flex items-center gap-4 text-sm\">\n                  <span class=\"flex items-center gap-1\">\n                    <Icon name=\"lucide:clock\" class=\"h-4 w-4\" />\n                    5 min read\n                  </span>\n                  <span class=\"flex items-center gap-1\">\n                    <Icon name=\"lucide:bookmark\" class=\"h-4 w-4\" />\n                    Save\n                  </span>\n                </div>\n              </div>\n            </div>\n          </Motion>\n        </div>\n\n        <!-- Load more -->\n        <Motion :variants=\"childVariant\" class=\"mt-12 text-center\">\n          <UiButton size=\"lg\" variant=\"outline\">Load more articles</UiButton>\n        </Motion>\n      </section>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const trendingTopics = [\n    \"AI & Machine Learning\",\n    \"Web Development\",\n    \"Design Systems\",\n    \"UX Research\",\n    \"Product Management\",\n  ];\n\n  const title = \"The future of web development in 2024\";\n  const image =\n    \"https://images.unsplash.com/photo-1524169220946-12efd782aab4?q=80&w=2070&auto=format&fit=crop\";\n  const alt = \"Web development\";\n  const description =\n    \"Explore the latest trends and technologies shaping the future of web development.\";\n  const date = \"Mar 15, 2024\";\n  const userImage = \"https://i.pravatar.cc/300?img=20\";\n  const userName = \"Emily Chen\";\n  const link = \"#\";\n</script>\n","category":"Page","description":"Minimal blog page with search-focused design. Features: Large search bar, trending topics chips, minimal two-column grid","path":"Blog/Page/BlockBlogPage4.vue","components":["avatar","badge","button","container","divider","vee-input"]},{"name":"Blog Page 5","fileName":"BlockBlogPage5.vue","file":"<template>\n  <!-- \n    Magazine-style blog page with featured grid\n    Features: Large featured post, mixed grid layout, statistics bar, author highlights\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Header with stats -->\n      <div\n        class=\"mb-12 flex flex-col items-start justify-between gap-6 md:flex-row md:items-center lg:mb-16\"\n      >\n        <div>\n          <Motion as=\"h1\" :variants=\"childVariant\" class=\"mb-2 text-4xl font-bold lg:text-5xl\">\n            The Magazine\n          </Motion>\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg\">\n            Stories that matter. Ideas that inspire.\n          </Motion>\n        </div>\n\n        <!-- Stats bar -->\n        <Motion :variants=\"childVariant\" class=\"flex gap-6\">\n          <div class=\"text-center\">\n            <p class=\"text-2xl font-bold\">500+</p>\n            <p class=\"text-muted-foreground text-sm\">Articles</p>\n          </div>\n          <UiSeparator orientation=\"vertical\" class=\"h-auto\" />\n          <div class=\"text-center\">\n            <p class=\"text-2xl font-bold\">50K+</p>\n            <p class=\"text-muted-foreground text-sm\">Readers</p>\n          </div>\n          <UiSeparator orientation=\"vertical\" class=\"h-auto\" />\n          <div class=\"text-center\">\n            <p class=\"text-2xl font-bold\">100+</p>\n            <p class=\"text-muted-foreground text-sm\">Authors</p>\n          </div>\n        </Motion>\n      </div>\n\n      <!-- Featured section - Magazine grid layout -->\n      <div class=\"grid grid-cols-1 gap-8 lg:grid-cols-12\">\n        <!-- Large featured post (left side) -->\n        <Motion :variants=\"childVariant\" class=\"lg:col-span-7\">\n          <UiCard\n            class=\"group sticky top-0 overflow-hidden border-0 py-0 shadow-lg transition-shadow hover:shadow-xl\"\n          >\n            <div class=\"relative overflow-hidden\">\n              <img\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"h-[400px] w-full object-cover transition-transform duration-500 group-hover:scale-105 lg:h-[500px]\"\n              />\n              <div\n                class=\"from-background via-background/60 absolute inset-0 bg-linear-to-t to-transparent\"\n              ></div>\n              <div class=\"absolute right-0 bottom-0 left-0 p-6 lg:p-8\">\n                <UiBadge class=\"bg-primary text-primary-foreground mb-3\">Featured</UiBadge>\n                <NuxtLink :to=\"link\">\n                  <h2\n                    class=\"hover:text-primary mb-3 text-2xl font-bold transition-colors lg:text-3xl\"\n                  >\n                    {{ title }}\n                  </h2>\n                </NuxtLink>\n                <p class=\"text-muted-foreground mb-4 line-clamp-2 lg:text-lg\">{{ description }}</p>\n                <div class=\"flex items-center gap-3\">\n                  <UiAvatar :src=\"userImage\" :alt=\"userName\" />\n                  <div>\n                    <p class=\"font-semibold\">{{ userName }}</p>\n                    <p class=\"text-muted-foreground text-sm\">{{ date }} · 8 min read</p>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </UiCard>\n        </Motion>\n\n        <!-- Sidebar posts (right side) -->\n        <div class=\"space-y-6 lg:col-span-5\">\n          <Motion :variants=\"childVariant\">\n            <h3 class=\"mb-4 text-xl font-semibold\">Trending now</h3>\n          </Motion>\n\n          <Motion\n            v-for=\"n in 4\"\n            :key=\"n\"\n            :variants=\"childVariant\"\n            :transition=\"{\n              delay: n * 0.05,\n            }\"\n          >\n            <UiCard class=\"group overflow-hidden p-2 transition-all hover:shadow-md\">\n              <div class=\"flex gap-4\">\n                <img\n                  :src=\"image\"\n                  :alt=\"alt\"\n                  class=\"h-24 w-24 shrink-0 rounded-lg object-cover transition-transform duration-300 group-hover:scale-105\"\n                />\n                <div class=\"min-w-0 flex-1\">\n                  <UiBadge variant=\"secondary\" size=\"sm\" class=\"mb-2\">{{ headline }}</UiBadge>\n                  <NuxtLink :to=\"link\" class=\"block\">\n                    <h4\n                      class=\"hover:text-primary mb-1 line-clamp-2 font-semibold transition-colors\"\n                    >\n                      {{ title }}\n                    </h4>\n                  </NuxtLink>\n                  <p class=\"text-muted-foreground text-xs\">{{ date }} · 5 min</p>\n                </div>\n              </div>\n            </UiCard>\n          </Motion>\n        </div>\n      </div>\n\n      <!-- Latest articles grid -->\n      <Motion :variants=\"childVariant\" class=\"mt-16 lg:mt-24\">\n        <div class=\"mb-8 flex items-center justify-between\">\n          <h2 class=\"text-2xl font-semibold\">Latest articles</h2>\n          <UiDropdownMenu>\n            <UiDropdownMenuTrigger as-child>\n              <UiButton variant=\"outline\" size=\"sm\">\n                Sort by\n                <Icon name=\"lucide:chevron-down\" class=\"ml-2 h-4 w-4\" />\n              </UiButton>\n            </UiDropdownMenuTrigger>\n            <UiDropdownMenuContent>\n              <UiDropdownMenuItem>Most recent</UiDropdownMenuItem>\n              <UiDropdownMenuItem>Most popular</UiDropdownMenuItem>\n              <UiDropdownMenuItem>Trending</UiDropdownMenuItem>\n            </UiDropdownMenuContent>\n          </UiDropdownMenu>\n        </div>\n      </Motion>\n\n      <div class=\"grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3\">\n        <Motion\n          v-for=\"n in 6\"\n          :key=\"n\"\n          :variants=\"childVariant\"\n          :transition=\"{\n            delay: n * 0.05,\n          }\"\n        >\n          <UiCard\n            class=\"group h-full overflow-hidden py-0 shadow-xs transition-all hover:shadow-lg\"\n          >\n            <div class=\"relative overflow-hidden\">\n              <img\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"h-[200px] w-full object-cover transition-transform duration-500 group-hover:scale-105\"\n              />\n            </div>\n            <UiCardContent class=\"p-6 pt-0\">\n              <UiBadge variant=\"outline\" size=\"sm\" class=\"mb-3\">{{ headline }}</UiBadge>\n              <NuxtLink :to=\"link\">\n                <h4 class=\"hover:text-primary mb-2 font-semibold transition-colors\">\n                  {{ title }}\n                </h4>\n              </NuxtLink>\n              <p class=\"text-muted-foreground mb-4 line-clamp-2 text-sm\">{{ description }}</p>\n              <div class=\"flex items-center gap-2\">\n                <UiAvatar :src=\"userImage\" :alt=\"userName\" size=\"xs\" />\n                <span class=\"text-xs font-medium\">{{ userName }}</span>\n              </div>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const headline = \"Technology\";\n  const title = \"Building the future of digital products\";\n  const image =\n    \"https://images.unsplash.com/photo-1586455122341-927f2dec0691?q=80&w=1974&auto=format&fit=crop\";\n  const alt = \"Digital products\";\n  const description =\n    \"Discover how modern teams are leveraging cutting-edge technology to create exceptional digital experiences.\";\n  const date = \"Apr 20, 2024\";\n  const userImage = \"https://i.pravatar.cc/300?img=25\";\n  const userName = \"Michael Rodriguez\";\n  const link = \"#\";\n</script>\n","category":"Page","description":"Magazine-style blog page with featured grid. Features: Large featured post, mixed grid layout, statistics bar, author highlights","path":"Blog/Page/BlockBlogPage5.vue","components":["avatar","badge","button","card","container","dropdown-menu","separator"]},{"name":"Blog Page 6","fileName":"BlockBlogPage6.vue","file":"<template>\n  <!-- \n    Dark theme blog page with gradient accents\n    Features: Gradient header, author spotlight, card hover effects, dark aesthetic\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <div class=\"bg-background min-h-screen py-16 lg:py-24\">\n      <!-- Gradient header section -->\n      <Motion\n        :variants=\"childVariant\"\n        class=\"from-primary/20 via-primary/10 relative overflow-hidden rounded-2xl bg-linear-to-br to-transparent p-8 lg:p-16\"\n      >\n        <UiContainer>\n          <div class=\"relative z-10\">\n            <Motion\n              as=\"div\"\n              :variants=\"{\n                initial: { scale: 1 },\n                animate: {\n                  scale: [1, 1.2, 1],\n                  transition: {\n                    duration: 3,\n                    repeat: Infinity,\n                    repeatType: 'loop',\n                  },\n                },\n              }\"\n              class=\"bg-primary/30 absolute -top-20 -right-20 h-40 w-40 rounded-full blur-3xl\"\n            ></Motion>\n            <Motion\n              as=\"div\"\n              :variants=\"{\n                initial: { scale: 1 },\n                animate: {\n                  scale: [1, 1.3, 1],\n                  transition: {\n                    duration: 4,\n                    repeat: Infinity,\n                    repeatType: 'loop',\n                  },\n                },\n              }\"\n              class=\"bg-primary/20 absolute bottom-0 -left-20 h-40 w-40 rounded-full blur-3xl\"\n            ></Motion>\n\n            <div class=\"relative text-center\">\n              <h1 class=\"mb-4 text-4xl font-bold lg:text-6xl\">Insights & Stories</h1>\n              <p class=\"text-muted-foreground mx-auto max-w-2xl text-lg lg:text-xl\">\n                Exploring ideas at the intersection of technology, design, and human experience\n              </p>\n            </div>\n          </div>\n        </UiContainer>\n      </Motion>\n\n      <UiContainer class=\"mt-16 lg:mt-24\">\n        <!-- Featured authors section -->\n        <Motion :variants=\"childVariant\" class=\"mb-12\">\n          <div class=\"mb-6 flex items-center justify-between\">\n            <h2 class=\"text-2xl font-semibold\">Featured authors</h2>\n            <UiButton variant=\"ghost\" size=\"sm\">View all</UiButton>\n          </div>\n\n          <div class=\"grid grid-cols-2 gap-4 md:grid-cols-4 lg:gap-6\">\n            <Motion\n              v-for=\"n in 4\"\n              :key=\"n\"\n              :variants=\"{\n                initial: { opacity: 0, scale: 0.9 },\n                animate: {\n                  opacity: 1,\n                  scale: 1,\n                  transition: {\n                    delay: n * 0.05,\n                  },\n                },\n              }\"\n            >\n              <UiCard\n                class=\"group cursor-pointer overflow-hidden pb-0 transition-all hover:shadow-lg\"\n              >\n                <UiCardContent class=\"p-6 pt-0 text-center\">\n                  <UiAvatar :src=\"userImage\" :alt=\"userName\" size=\"lg\" class=\"mx-auto mb-3\" />\n                  <p class=\"mb-1 font-semibold\">{{ userName }}</p>\n                  <p class=\"text-muted-foreground mb-2 text-xs\">{{ n * 12 }} articles</p>\n                  <UiButton size=\"sm\" variant=\"outline\" class=\"w-full\">Follow</UiButton>\n                </UiCardContent>\n              </UiCard>\n            </Motion>\n          </div>\n        </Motion>\n\n        <!-- Filter tabs with gradient indicator -->\n        <Motion :variants=\"childVariant\" class=\"mb-8\">\n          <UiTabs default-value=\"all\">\n            <UiTabsList class=\"w-fit justify-start overflow-x-auto\">\n              <UiTabsTrigger value=\"all\">All posts</UiTabsTrigger>\n              <UiTabsTrigger value=\"tech\">Technology</UiTabsTrigger>\n              <UiTabsTrigger value=\"design\">Design</UiTabsTrigger>\n              <UiTabsTrigger value=\"business\">Business</UiTabsTrigger>\n              <UiTabsTrigger value=\"culture\">Culture</UiTabsTrigger>\n            </UiTabsList>\n          </UiTabs>\n        </Motion>\n\n        <!-- Articles grid with enhanced cards -->\n        <div class=\"grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3\">\n          <Motion\n            v-for=\"n in 9\"\n            :key=\"n\"\n            :variants=\"childVariant\"\n            :transition=\"{\n              delay: n * 0.05,\n            }\"\n          >\n            <UiCard\n              class=\"group bg-muted/30 h-full overflow-hidden border-0 py-0 shadow transition-all hover:scale-[1.02] hover:shadow-xl\"\n            >\n              <div class=\"relative overflow-hidden\">\n                <img\n                  :src=\"image\"\n                  :alt=\"alt\"\n                  class=\"h-[220px] w-full object-cover transition-transform duration-500 group-hover:scale-110\"\n                />\n                <div\n                  class=\"from-background/90 absolute inset-0 bg-linear-to-t to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100\"\n                ></div>\n\n                <!-- Hover overlay with action button -->\n                <div\n                  class=\"absolute inset-0 flex items-center justify-center opacity-0 transition-opacity duration-300 group-hover:opacity-100\"\n                >\n                  <UiButton size=\"sm\" class=\"shadow-lg\">\n                    Read article\n                    <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n                  </UiButton>\n                </div>\n              </div>\n\n              <UiCardContent class=\"p-6 pt-0\">\n                <div class=\"mb-3 flex items-center gap-2\">\n                  <UiBadge variant=\"secondary\" size=\"sm\">{{ headline }}</UiBadge>\n                  <span class=\"text-muted-foreground text-xs\">· 6 min read</span>\n                </div>\n\n                <NuxtLink :to=\"link\">\n                  <h3\n                    class=\"group-hover:text-primary mb-2 line-clamp-2 text-lg font-semibold transition-colors\"\n                  >\n                    {{ title }}\n                  </h3>\n                </NuxtLink>\n\n                <p class=\"text-muted-foreground mb-4 line-clamp-2 text-sm\">{{ description }}</p>\n\n                <UiDivider class=\"my-4\" />\n\n                <div class=\"flex items-center justify-between\">\n                  <div class=\"flex items-center gap-2\">\n                    <UiAvatar :src=\"userImage\" :alt=\"userName\" size=\"xs\" />\n                    <span class=\"text-xs font-medium\">{{ userName }}</span>\n                  </div>\n                  <div class=\"text-muted-foreground flex items-center gap-3 text-xs\">\n                    <span class=\"flex items-center gap-1\">\n                      <Icon name=\"lucide:heart\" class=\"h-3.5 w-3.5\" />\n                      {{ n * 42 }}\n                    </span>\n                    <span class=\"flex items-center gap-1\">\n                      <Icon name=\"lucide:message-circle\" class=\"h-3.5 w-3.5\" />\n                      {{ n * 8 }}\n                    </span>\n                  </div>\n                </div>\n              </UiCardContent>\n            </UiCard>\n          </Motion>\n        </div>\n\n        <!-- Pagination -->\n        <Motion :variants=\"childVariant\" class=\"mt-12 flex justify-center gap-2\">\n          <UiPagination :items-per-page=\"5\" :total=\"20\" />\n        </Motion>\n      </UiContainer>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const headline = \"Innovation\";\n  const title = \"The art of building products people love\";\n  const image =\n    \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?q=80&w=1932&auto=format&fit=crop\";\n  const alt = \"Product design\";\n  const description =\n    \"Understanding the principles and practices that drive successful product development in the modern era.\";\n  const userImage = \"https://i.pravatar.cc/300?img=30\";\n  const userName = \"Sarah Williams\";\n  const link = \"#\";\n</script>\n","category":"Page","description":"Dark theme blog page with gradient accents. Features: Gradient header, author spotlight, card hover effects, dark aesthetic","path":"Blog/Page/BlockBlogPage6.vue","components":["avatar","badge","button","card","container","divider","pagination","tabs"]},{"name":"Blog Post Card 1","fileName":"BlockBlogPostCard1.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <Motion\n      as-child\n      :variants=\"{\n        initial: { opacity: 0, y: 10, scale: 0.95 },\n        animate: {\n          opacity: 1,\n          y: 0,\n          scale: 1,\n          transition: { duration: 0.4, ease: 'easeOut' },\n        },\n      }\"\n      class=\"block\"\n    >\n      <NuxtLink :to=\"link\">\n        <img\n          v-if=\"image\"\n          :src=\"image\"\n          :alt=\"alt\"\n          class=\"mb-5 h-[240px] w-full rounded-lg object-cover shadow\"\n        />\n      </NuxtLink>\n    </Motion>\n    <Motion\n      v-if=\"headline\"\n      :variants=\"{\n        initial: { opacity: 0, y: 10 },\n        animate: { opacity: 1, y: 0 },\n      }\"\n      as=\"p\"\n      class=\"text-primary mb-2 text-sm font-semibold\"\n      >{{ headline }}</Motion\n    >\n    <NuxtLink :to=\"link\">\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, y: 10 },\n          animate: { opacity: 1, y: 0 },\n        }\"\n        as=\"p\"\n        class=\"mb-2 text-xl font-semibold lg:text-2xl\"\n        >{{ title }}</Motion\n      >\n    </NuxtLink>\n    <Motion\n      v-if=\"description\"\n      as=\"p\"\n      :variants=\"{\n        initial: { opacity: 0, y: 10 },\n        animate: { opacity: 1, y: 0 },\n      }\"\n      class=\"text-muted-foreground mb-5 line-clamp-2 text-ellipsis\"\n    >\n      {{ description }}\n    </Motion>\n    <div class=\"flex items-center\">\n      <Motion\n        v-if=\"userImage\"\n        :variants=\"{\n          initial: { opacity: 0, scale: 0.8 },\n          animate: { opacity: 1, scale: 1 },\n        }\"\n        as-child\n      >\n        <UiAvatar\n          :src=\"userImage\"\n          :alt=\"userName\"\n          class=\"bg-background ring-ring/30 mr-3 rounded-full shadow ring-1\"\n        />\n      </Motion>\n      <div>\n        <Motion\n          v-if=\"userName\"\n          :variants=\"{\n            initial: { opacity: 0, x: 10 },\n            animate: { opacity: 1, x: 0 },\n          }\"\n          as=\"p\"\n          class=\"text-sm font-semibold\"\n          >{{ userName }}</Motion\n        >\n        <Motion\n          v-if=\"date\"\n          :variants=\"{\n            initial: { opacity: 0, x: 10 },\n            animate: { opacity: 1, x: 0 },\n          }\"\n          as=\"p\"\n          class=\"text-muted-foreground text-sm\"\n          >{{ date }}</Motion\n        >\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      headline?: string;\n      description?: string;\n      title?: string;\n      userImage?: string;\n      userName?: string;\n      date?: string;\n      link?: string;\n    }>(),\n    {\n      headline: \"Design\",\n      title: \"UX review presentations\",\n      image:\n        \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"UX review presentations\",\n      description:\n        \"How do you create compelling presentations that wow your colleagues and impress your managers?\",\n      date: \"30 Jan 2024\",\n      userImage: \"https://i.pravatar.cc/300?img=15\",\n      userName: \"John Doe\",\n      readTime: \"5 min read\",\n      tags: [\"Design\", \"UX\", \"UI\"],\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Post","description":null,"path":"Blog/Post/BlockBlogPostCard1.vue","components":["avatar"]},{"name":"Blog Post Card 2","fileName":"BlockBlogPostCard2.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <Motion as-child class=\"block\" :variants=\"childVariant\">\n      <NuxtLink :to=\"link\">\n        <img v-if=\"image\" :src=\"image\" :alt=\"alt\" class=\"mb-5 h-[240px] w-full object-cover\" />\n      </NuxtLink>\n    </Motion>\n\n    <Motion v-if=\"headline || readTime\" as-child :variants=\"childVariant\">\n      <UiBadge\n        variant=\"outline\"\n        class=\"border-ring/50 text-primary mb-2 rounded-none px-3 py-1 text-sm font-medium\"\n        >{{ headline }} <span v-if=\"readTime\" class=\"ml-1\">{{ readTime }}</span></UiBadge\n      >\n    </Motion>\n    <Motion as-child :variants=\"childVariant\" class=\"block\">\n      <NuxtLink :to=\"link\">\n        <p class=\"mb-2 text-xl font-semibold lg:text-2xl\">{{ title }}</p>\n      </NuxtLink>\n    </Motion>\n    <Motion\n      v-if=\"description\"\n      as=\"p\"\n      :variants=\"childVariant\"\n      class=\"text-muted-foreground mb-4 line-clamp-2 text-ellipsis\"\n    >\n      {{ description }}\n    </Motion>\n    <Motion :variants=\"childVariant\" class=\"flex items-center\">\n      <UiAvatar\n        v-if=\"userImage\"\n        :src=\"userImage\"\n        :alt=\"userName\"\n        class=\"bg-background ring-ring/30 mr-3 rounded-none shadow ring-1\"\n      />\n      <div>\n        <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n        <p v-if=\"date\" class=\"text-muted-foreground text-sm\">{{ date }}</p>\n      </div>\n    </Motion>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, x: -10 },\n    animate: {\n      opacity: 1,\n      x: 0,\n      transition: {\n        type: \"keyframes\",\n        ease: \"easeOut\",\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      headline?: string;\n      description?: string;\n      title?: string;\n      userImage?: string;\n      userName?: string;\n      date?: string;\n      readTime?: string;\n      link?: string;\n    }>(),\n    {\n      headline: \"Design\",\n      title: \"UX review presentations\",\n      image:\n        \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"UX review presentations\",\n      description:\n        \"How do you create compelling presentations that wow your colleagues and impress your managers?\",\n      date: \"30 Jan 2024\",\n      userImage: \"https://i.pravatar.cc/300?img=15\",\n      userName: \"John Doe\",\n      readTime: \"5 min read\",\n      tags: [\"Design\", \"UX\", \"UI\"],\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Post","description":null,"path":"Blog/Post/BlockBlogPostCard2.vue","components":["avatar","badge"]},{"name":"Blog Post Card 3","fileName":"BlockBlogPostCard3.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <Motion v-if=\"image\" as-child class=\"block\" :variants=\"childVariant\">\n      <NuxtLink :to=\"link\">\n        <img :src=\"image\" :alt=\"alt\" class=\"mb-5 h-[240px] w-full rounded-lg object-cover shadow\" />\n      </NuxtLink>\n    </Motion>\n    <Motion\n      v-if=\"headline\"\n      as=\"p\"\n      :variants=\"childVariant\"\n      class=\"text-primary mb-2 text-sm font-semibold\"\n    >\n      {{ headline }} <span v-if=\"date\">- {{ date }}</span>\n    </Motion>\n    <NuxtLink :to=\"link\">\n      <Motion as=\"p\" :variants=\"childVariant\" class=\"mb-2 text-xl font-semibold lg:text-2xl\">{{\n        title\n      }}</Motion>\n    </NuxtLink>\n    <Motion\n      v-if=\"description\"\n      as=\"p\"\n      :variants=\"childVariant\"\n      class=\"text-muted-foreground mb-3 line-clamp-2 text-ellipsis\"\n    >\n      {{ description }}\n    </Motion>\n    <div class=\"flex flex-wrap items-center gap-2\">\n      <template v-for=\"t in tags\" :key=\"t\">\n        <Motion v-if=\"headline\" as-child :variants=\"childVariant\">\n          <UiBadge class=\"px-2 py-0.5 text-sm\" variant=\"outline\">{{ t }}</UiBadge>\n        </Motion>\n      </template>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"keyframes\",\n        ease: \"easeOut\",\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      headline?: string;\n      description?: string;\n      title?: string;\n      date?: string;\n      tags?: string[];\n      link?: string;\n    }>(),\n    {\n      headline: \"Design\",\n      title: \"UX review presentations\",\n      image:\n        \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"UX review presentations\",\n      description:\n        \"How do you create compelling presentations that wow your colleagues and impress your managers?\",\n      date: \"30 Jan 2024\",\n      readTime: \"5 min read\",\n      tags: () => [\"Design\", \"UX\", \"UI\"],\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Post","description":null,"path":"Blog/Post/BlockBlogPostCard3.vue","components":["badge"]},{"name":"Blog Post Card 4","fileName":"BlockBlogPostCard4.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <div class=\"flex flex-col gap-5 md:flex-row\">\n      <Motion\n        v-if=\"image\"\n        as-child\n        class=\"block basis-full md:basis-[60%]\"\n        :variants=\"{\n          initial: { opacity: 0 },\n          animate: { opacity: 1, transition: { duration: 0.4, ease: 'easeOut' } },\n        }\"\n      >\n        <NuxtLink :to=\"link\" class=\"shrink-0\">\n          <img\n            :src=\"image\"\n            :alt=\"alt\"\n            class=\"h-[240px] w-full rounded-lg object-cover shadow md:h-[200px]\"\n          />\n        </NuxtLink>\n      </Motion>\n      <div class=\"basis-full md:basis-[40%]\">\n        <Motion\n          v-if=\"headline\"\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-primary mb-2 text-sm font-semibold\"\n          >{{ headline }}</Motion\n        >\n        <Motion as-child :variants=\"childVariant\" class=\"block\">\n          <NuxtLink :to=\"link\">\n            <p class=\"mb-2 text-xl font-semibold lg:text-2xl\">{{ title }}</p>\n          </NuxtLink>\n        </Motion>\n        <Motion\n          v-if=\"description\"\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mb-5 line-clamp-2 text-ellipsis\"\n        >\n          {{ description }}\n        </Motion>\n        <Motion :variants=\"childVariant\" class=\"flex items-center\">\n          <UiAvatar\n            v-if=\"userImage\"\n            :src=\"userImage\"\n            :alt=\"userName\"\n            class=\"bg-background ring-ring/30 mr-3 rounded-full shadow ring-1\"\n          />\n          <div>\n            <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n            <p v-if=\"date\" class=\"text-muted-foreground text-sm\">{{ date }}</p>\n          </div>\n        </Motion>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"keyframes\",\n        ease: \"easeOut\",\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      headline?: string;\n      description?: string;\n      title?: string;\n      userImage?: string;\n      userName?: string;\n      date?: string;\n      link?: string;\n    }>(),\n    {\n      headline: \"Design\",\n      title: \"UX review presentations\",\n      image:\n        \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"UX review presentations\",\n      description:\n        \"How do you create compelling presentations that wow your colleagues and impress your managers?\",\n      date: \"30 Jan 2024\",\n      userImage: \"https://i.pravatar.cc/300?img=15\",\n      userName: \"John Doe\",\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Post","description":null,"path":"Blog/Post/BlockBlogPostCard4.vue","components":["avatar"]},{"name":"Blog Post Card 5","fileName":"BlockBlogPostCard5.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.12),\n        },\n      },\n    }\"\n  >\n    <div\n      class=\"group bg-background relative overflow-hidden rounded-xl border shadow-lg transition-all hover:shadow-xl\"\n    >\n      <Motion\n        as-child\n        :variants=\"{\n          initial: { opacity: 0, scale: 1.1 },\n          animate: { opacity: 1, scale: 1, transition: { duration: 0.6, ease: 'easeOut' } },\n        }\"\n        class=\"block\"\n      >\n        <NuxtLink :to=\"link\" class=\"relative block overflow-hidden\">\n          <img\n            v-if=\"image\"\n            :src=\"image\"\n            :alt=\"alt\"\n            class=\"h-[280px] w-full object-cover transition-transform duration-300 group-hover:scale-105\"\n          />\n          <div\n            class=\"from-background/80 via-background/20 absolute inset-0 bg-linear-to-t to-transparent opacity-0 transition-opacity group-hover:opacity-100\"\n          />\n        </NuxtLink>\n      </Motion>\n\n      <div class=\"p-6\">\n        <div class=\"mb-3 flex items-center gap-2\">\n          <Motion\n            v-if=\"headline\"\n            as-child\n            :variants=\"{\n              initial: { opacity: 0, scale: 0 },\n              animate: {\n                opacity: 1,\n                scale: 1,\n                transition: { type: 'spring', stiffness: 300, damping: 20 },\n              },\n            }\"\n          >\n            <UiBadge variant=\"secondary\" class=\"text-xs\">\n              {{ headline }}\n            </UiBadge>\n          </Motion>\n          <Motion\n            v-if=\"readTime\"\n            as=\"span\"\n            :variants=\"{\n              initial: { opacity: 0, x: -10 },\n              animate: { opacity: 1, x: 0 },\n            }\"\n            class=\"text-muted-foreground text-xs\"\n          >\n            {{ readTime }}\n          </Motion>\n        </div>\n\n        <Motion as-child :variants=\"childVariant\">\n          <NuxtLink :to=\"link\">\n            <h3 class=\"hover:text-primary mb-3 text-xl font-bold transition-colors lg:text-2xl\">\n              {{ title }}\n            </h3>\n          </NuxtLink>\n        </Motion>\n\n        <Motion\n          v-if=\"description\"\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mb-5 line-clamp-3 text-ellipsis\"\n        >\n          {{ description }}\n        </Motion>\n\n        <Motion :variants=\"childVariant\" class=\"flex items-center justify-between\">\n          <div class=\"flex items-center\">\n            <UiAvatar\n              v-if=\"userImage\"\n              :src=\"userImage\"\n              :alt=\"userName\"\n              class=\"ring-background mr-3 size-10 ring-2\"\n            />\n            <div>\n              <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n              <p v-if=\"date\" class=\"text-muted-foreground text-xs\">{{ date }}</p>\n            </div>\n          </div>\n          <Icon\n            name=\"lucide:arrow-right\"\n            class=\"text-muted-foreground size-5 transition-transform group-hover:translate-x-1\"\n          />\n        </Motion>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      headline?: string;\n      description?: string;\n      title?: string;\n      userImage?: string;\n      userName?: string;\n      date?: string;\n      readTime?: string;\n      link?: string;\n    }>(),\n    {\n      headline: \"Technology\",\n      title: \"The Future of Web Development\",\n      image:\n        \"https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=2072&auto=format&fit=crop\",\n      alt: \"The Future of Web Development\",\n      description:\n        \"Explore the latest trends and technologies shaping the future of web development and how they impact our digital experiences.\",\n      date: \"15 Feb 2024\",\n      userImage: \"https://i.pravatar.cc/300?img=12\",\n      userName: \"Sarah Chen\",\n      readTime: \"8 min read\",\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Post","description":null,"path":"Blog/Post/BlockBlogPostCard5.vue","components":["avatar","badge"]},{"name":"Blog Post Card 6","fileName":"BlockBlogPostCard6.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <div\n      class=\"bg-background hover:border-primary/50 overflow-hidden rounded-2xl border-2 shadow-md transition-all hover:shadow-xl\"\n    >\n      <div class=\"flex flex-col md:flex-row\">\n        <Motion\n          as-child\n          :variants=\"{\n            initial: { opacity: 0, x: -30 },\n            animate: { opacity: 1, x: 0, transition: { duration: 0.5, ease: 'easeOut' } },\n          }\"\n          class=\"md:w-2/5\"\n        >\n          <NuxtLink :to=\"link\" class=\"relative block overflow-hidden\">\n            <img\n              v-if=\"image\"\n              :src=\"image\"\n              :alt=\"alt\"\n              class=\"h-[200px] w-full object-cover transition-transform duration-500 hover:scale-110 md:h-full\"\n            />\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0, y: 20 },\n                animate: { opacity: 1, y: 0, transition: { delay: 0.3 } },\n              }\"\n              class=\"absolute bottom-3 left-3\"\n            >\n              <UiBadge variant=\"default\" class=\"shadow-lg\">\n                <Icon name=\"lucide:bookmark\" class=\"size-3\" />\n                {{ headline }}\n              </UiBadge>\n            </Motion>\n          </NuxtLink>\n        </Motion>\n\n        <div class=\"flex flex-1 flex-col justify-between p-6 md:w-3/5\">\n          <div>\n            <Motion\n              as=\"div\"\n              :variants=\"{\n                initial: { opacity: 0, y: 10 },\n                animate: { opacity: 1, y: 0 },\n              }\"\n              class=\"text-muted-foreground mb-3 flex items-center gap-2 text-xs\"\n            >\n              <Icon name=\"lucide:calendar\" class=\"size-3.5\" />\n              <span>{{ date }}</span>\n              <span class=\"mx-1\">•</span>\n              <Icon name=\"lucide:clock\" class=\"size-3.5\" />\n              <span>{{ readTime }}</span>\n            </Motion>\n\n            <Motion as-child :variants=\"childVariant\">\n              <NuxtLink :to=\"link\">\n                <h3 class=\"hover:text-primary mb-3 text-2xl font-bold transition-colors\">\n                  {{ title }}\n                </h3>\n              </NuxtLink>\n            </Motion>\n\n            <Motion\n              v-if=\"description\"\n              as=\"p\"\n              :variants=\"childVariant\"\n              class=\"text-muted-foreground mb-4 line-clamp-2\"\n            >\n              {{ description }}\n            </Motion>\n          </div>\n\n          <Motion :variants=\"childVariant\" class=\"flex items-center justify-between\">\n            <div class=\"flex items-center gap-3\">\n              <UiAvatar v-if=\"userImage\" :src=\"userImage\" :alt=\"userName\" class=\"size-9\" />\n              <span v-if=\"userName\" class=\"text-sm font-medium\">{{ userName }}</span>\n            </div>\n            <NuxtLink :to=\"link\">\n              <UiButton size=\"sm\" variant=\"ghost\" class=\"group\">\n                Read more\n                <Icon\n                  name=\"lucide:chevron-right\"\n                  class=\"size-4 transition-transform group-hover:translate-x-1\"\n                />\n              </UiButton>\n            </NuxtLink>\n          </Motion>\n        </div>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      headline?: string;\n      description?: string;\n      title?: string;\n      userImage?: string;\n      userName?: string;\n      date?: string;\n      readTime?: string;\n      link?: string;\n    }>(),\n    {\n      headline: \"Featured\",\n      title: \"Building Scalable Design Systems\",\n      image:\n        \"https://images.unsplash.com/photo-1558655146-d09347e92766?q=80&w=2064&auto=format&fit=crop\",\n      alt: \"Building Scalable Design Systems\",\n      description:\n        \"Learn how to create and maintain a design system that scales with your organization and keeps your team aligned.\",\n      date: \"22 Mar 2024\",\n      userImage: \"https://i.pravatar.cc/300?img=8\",\n      userName: \"Michael Rodriguez\",\n      readTime: \"12 min read\",\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Post","description":null,"path":"Blog/Post/BlockBlogPostCard6.vue","components":["avatar","badge","button"]},{"name":"Blog Post Card 7","fileName":"BlockBlogPostCard7.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <div\n      class=\"group relative overflow-hidden rounded-xl bg-linear-to-br from-violet-500 via-pink-500/50 to-orange-500/50 p-0.5\"\n    >\n      <div class=\"bg-background overflow-hidden rounded-lg\">\n        <Motion\n          as-child\n          :variants=\"{\n            initial: { opacity: 0, y: 20 },\n            animate: { opacity: 1, y: 0, transition: { duration: 0.5 } },\n          }\"\n        >\n          <NuxtLink :to=\"link\" class=\"relative block overflow-hidden rounded-t-lg\">\n            <img\n              v-if=\"image\"\n              :src=\"image\"\n              :alt=\"alt\"\n              class=\"h-[240px] w-full object-cover transition-all duration-500 group-hover:scale-105 group-hover:brightness-75\"\n            />\n            <div\n              class=\"absolute inset-0 flex items-center justify-center opacity-0 transition-all group-hover:opacity-100\"\n            >\n              <Motion\n                :initial=\"{ scale: 0 }\"\n                :animate=\"{ scale: 1 }\"\n                :transition=\"{ delay: 0.1, type: 'spring', stiffness: 300, damping: 20 }\"\n                class=\"bg-primary text-primary-foreground flex size-12 items-center justify-center rounded-full shadow-xl\"\n              >\n                <Icon name=\"lucide:arrow-right\" class=\"size-6\" />\n              </Motion>\n            </div>\n          </NuxtLink>\n        </Motion>\n\n        <div class=\"p-5\">\n          <div class=\"mb-3 flex flex-wrap items-center gap-2\">\n            <Motion\n              v-for=\"(tag, i) in tags\"\n              :key=\"tag\"\n              as-child\n              :variants=\"{\n                initial: { opacity: 0, scale: 0 },\n                animate: {\n                  opacity: 1,\n                  scale: 1,\n                  transition: { delay: i * 0.05, type: 'spring', stiffness: 300, damping: 20 },\n                },\n              }\"\n            >\n              <UiBadge variant=\"secondary\" class=\"text-xs\">\n                {{ tag }}\n              </UiBadge>\n            </Motion>\n          </div>\n\n          <Motion as-child :variants=\"childVariant\">\n            <NuxtLink :to=\"link\">\n              <h3 class=\"hover:text-primary mb-2 text-xl font-bold transition-colors lg:text-2xl\">\n                {{ title }}\n              </h3>\n            </NuxtLink>\n          </Motion>\n\n          <Motion\n            v-if=\"description\"\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mb-4 line-clamp-2 text-sm\"\n          >\n            {{ description }}\n          </Motion>\n\n          <Motion :variants=\"childVariant\" class=\"flex items-center justify-between border-t pt-4\">\n            <div class=\"flex items-center gap-3\">\n              <UiAvatar v-if=\"userImage\" :src=\"userImage\" :alt=\"userName\" class=\"size-8\" />\n              <div>\n                <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n                <div class=\"text-muted-foreground flex items-center gap-1.5 text-xs\">\n                  <span>{{ date }}</span>\n                  <span v-if=\"readTime\">• {{ readTime }}</span>\n                </div>\n              </div>\n            </div>\n            <UiButton\n              size=\"icon-sm\"\n              variant=\"ghost\"\n              class=\"text-muted-foreground hover:text-primary transition-colors\"\n            >\n              <Icon name=\"lucide:bookmark\" class=\"size-5\" />\n            </UiButton>\n          </Motion>\n        </div>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      description?: string;\n      title?: string;\n      userImage?: string;\n      userName?: string;\n      date?: string;\n      readTime?: string;\n      tags?: string[];\n      link?: string;\n    }>(),\n    {\n      title: \"Mastering CSS Grid Layouts\",\n      image:\n        \"https://images.unsplash.com/photo-1507721999472-8ed4421c4af2?q=80&w=2070&auto=format&fit=crop\",\n      alt: \"Mastering CSS Grid Layouts\",\n      description:\n        \"Deep dive into CSS Grid and learn how to create complex, responsive layouts with ease using modern techniques.\",\n      date: \"5 Apr 2024\",\n      userImage: \"https://i.pravatar.cc/300?img=22\",\n      userName: \"Emma Wilson\",\n      readTime: \"6 min read\",\n      tags: () => [\"CSS\", \"Web Design\", \"Tutorial\"],\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Post","description":null,"path":"Blog/Post/BlockBlogPostCard7.vue","components":["avatar","badge","button"]},{"name":"Blog Post Card 8","fileName":"BlockBlogPostCard8.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <div class=\"group bg-background relative overflow-hidden rounded-2xl shadow-lg\">\n      <div\n        class=\"from-primary/30 absolute inset-0 bg-linear-to-br via-transparent to-transparent opacity-0 transition-opacity group-hover:opacity-100\"\n      />\n\n      <div class=\"relative\">\n        <Motion\n          as-child\n          :variants=\"{\n            initial: { opacity: 0, scale: 0.9 },\n            animate: { opacity: 1, scale: 1, transition: { duration: 0.6, ease: 'easeOut' } },\n          }\"\n        >\n          <NuxtLink :to=\"link\" class=\"relative block\">\n            <img v-if=\"image\" :src=\"image\" :alt=\"alt\" class=\"h-[220px] w-full object-cover\" />\n            <div\n              class=\"from-background/90 via-background/30 absolute inset-0 bg-linear-to-t to-transparent\"\n            />\n            <Motion\n              :variants=\"{\n                initial: { y: 20, opacity: 0 },\n                animate: { y: 0, opacity: 1, transition: { delay: 0.2 } },\n              }\"\n              class=\"absolute right-4 bottom-4 left-4\"\n            >\n              <UiBadge variant=\"default\" class=\"mb-2 shadow-lg\">\n                <Icon name=\"lucide:star\" class=\"size-3 fill-current\" />\n                {{ headline }}\n              </UiBadge>\n            </Motion>\n          </NuxtLink>\n        </Motion>\n\n        <div class=\"p-6\">\n          <div class=\"text-muted-foreground mb-3 flex items-center gap-2 text-xs\">\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0, x: -10 },\n                animate: { opacity: 1, x: 0 },\n              }\"\n              class=\"flex items-center gap-1\"\n            >\n              <Icon name=\"lucide:eye\" class=\"size-3.5\" />\n              <span>{{ views }} views</span>\n            </Motion>\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0, x: -10 },\n                animate: { opacity: 1, x: 0 },\n              }\"\n              >•</Motion\n            >\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0, x: -10 },\n                animate: { opacity: 1, x: 0 },\n              }\"\n              class=\"flex items-center gap-1\"\n            >\n              <Icon name=\"lucide:message-circle\" class=\"size-3.5\" />\n              <span>{{ comments }} comments</span>\n            </Motion>\n          </div>\n\n          <Motion as-child :variants=\"childVariant\">\n            <NuxtLink :to=\"link\">\n              <h3\n                class=\"hover:text-primary mb-3 text-xl leading-tight font-bold transition-colors lg:text-2xl\"\n              >\n                {{ title }}\n              </h3>\n            </NuxtLink>\n          </Motion>\n\n          <Motion\n            v-if=\"description\"\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mb-5 line-clamp-2 text-sm\"\n          >\n            {{ description }}\n          </Motion>\n\n          <Motion :variants=\"childVariant\" class=\"flex items-center justify-between\">\n            <div class=\"flex items-center gap-3\">\n              <UiAvatar\n                v-if=\"userImage\"\n                :src=\"userImage\"\n                :alt=\"userName\"\n                class=\"ring-muted size-10 ring-2\"\n              />\n              <div>\n                <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n                <p v-if=\"date\" class=\"text-muted-foreground text-xs\">{{ date }}</p>\n              </div>\n            </div>\n            <div class=\"flex items-center gap-2\">\n              <UiButton size=\"icon-sm\" variant=\"ghost\">\n                <Icon\n                  name=\"lucide:heart\"\n                  class=\"text-muted-foreground size-4 transition-colors hover:fill-red-500 hover:text-red-500\"\n                />\n                <span class=\"sr-only\">Like</span>\n              </UiButton>\n              <UiButton size=\"icon-sm\" variant=\"ghost\">\n                <Icon name=\"lucide:share-2\" class=\"text-muted-foreground size-4\" />\n                <span class=\"sr-only\">Share</span>\n              </UiButton>\n            </div>\n          </Motion>\n        </div>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      headline?: string;\n      description?: string;\n      title?: string;\n      userImage?: string;\n      userName?: string;\n      date?: string;\n      views?: string;\n      comments?: string;\n      link?: string;\n    }>(),\n    {\n      headline: \"Trending\",\n      title: \"The Rise of AI in Creative Design\",\n      image:\n        \"https://images.unsplash.com/photo-1677442136019-21780ecad995?q=80&w=2070&auto=format&fit=crop\",\n      alt: \"The Rise of AI in Creative Design\",\n      description:\n        \"Discover how artificial intelligence is revolutionizing the creative industry and what it means for designers.\",\n      date: \"18 Apr 2024\",\n      userImage: \"https://i.pravatar.cc/300?img=33\",\n      userName: \"David Park\",\n      views: \"2.3K\",\n      comments: \"47\",\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Post","description":null,"path":"Blog/Post/BlockBlogPostCard8.vue","components":["avatar","badge","button"]},{"name":"Blog Post Card 9","fileName":"BlockBlogPostCard9.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.12),\n        },\n      },\n    }\"\n  >\n    <div\n      class=\"group bg-background hover:border-primary/50 overflow-hidden rounded-xl border transition-all hover:shadow-xl\"\n    >\n      <div class=\"relative\">\n        <Motion\n          as-child\n          :variants=\"{\n            initial: { opacity: 0 },\n            animate: { opacity: 1, transition: { duration: 0.5 } },\n          }\"\n        >\n          <NuxtLink :to=\"link\" class=\"group/img relative block\">\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0 },\n                animate: { opacity: 1, transition: { duration: 0.5 } },\n              }\"\n              class=\"relative overflow-hidden\"\n            >\n              <img\n                v-if=\"image\"\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"h-[200px] w-full object-cover transition-all duration-700 group-hover:scale-110\"\n              />\n              <div\n                class=\"absolute inset-0 bg-black/40 opacity-0 transition-opacity group-hover:opacity-100\"\n              />\n            </Motion>\n\n            <Motion\n              :variants=\"{\n                initial: { scale: 0, rotate: -180 },\n                animate: {\n                  scale: 1,\n                  rotate: 0,\n                  transition: { delay: 0.3, type: 'spring', stiffness: 200, damping: 15 },\n                },\n              }\"\n              class=\"bg-background absolute top-4 right-4 flex size-10 items-center justify-center rounded-full shadow-lg group-hover/img:scale-110\"\n            >\n              <Icon name=\"lucide:arrow-up-right\" class=\"text-primary size-5\" />\n            </Motion>\n          </NuxtLink>\n        </Motion>\n      </div>\n\n      <div class=\"p-5\">\n        <div class=\"mb-4 flex items-center justify-between\">\n          <Motion\n            v-if=\"headline\"\n            as-child\n            :variants=\"{\n              initial: { opacity: 0, y: -10 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n          >\n            <UiBadge variant=\"outline\" class=\"text-primary text-xs font-semibold\">\n              {{ headline }}\n            </UiBadge>\n          </Motion>\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, x: 10 },\n              animate: { opacity: 1, x: 0 },\n            }\"\n            class=\"text-muted-foreground flex items-center gap-1 text-xs\"\n          >\n            <Icon name=\"lucide:clock\" class=\"size-3.5\" />\n            <span>{{ readTime }}</span>\n          </Motion>\n        </div>\n\n        <Motion as-child :variants=\"childVariant\">\n          <NuxtLink :to=\"link\">\n            <h3\n              class=\"hover:text-primary mb-2 text-lg leading-tight font-bold transition-colors lg:text-xl\"\n            >\n              {{ title }}\n            </h3>\n          </NuxtLink>\n        </Motion>\n\n        <Motion\n          v-if=\"description\"\n          as=\"p\"\n          :variants=\"childVariant\"\n          class=\"text-muted-foreground mb-4 line-clamp-3 text-sm\"\n        >\n          {{ description }}\n        </Motion>\n\n        <Motion :variants=\"childVariant\">\n          <UiDivider class=\"my-4\" />\n        </Motion>\n\n        <Motion :variants=\"childVariant\" class=\"flex items-center justify-between\">\n          <div class=\"flex items-center gap-2\">\n            <UiAvatar v-if=\"userImage\" :src=\"userImage\" :alt=\"userName\" size=\"sm\" />\n            <div class=\"flex flex-col\">\n              <span v-if=\"userName\" class=\"text-xs font-semibold\">{{ userName }}</span>\n              <span v-if=\"date\" class=\"text-muted-foreground text-xs\">{{ date }}</span>\n            </div>\n          </div>\n          <div class=\"text-muted-foreground flex items-center gap-3 text-xs\">\n            <div class=\"flex items-center gap-1\">\n              <Icon name=\"lucide:heart\" class=\"size-3.5\" />\n              <span>{{ likes }}</span>\n            </div>\n            <div class=\"flex items-center gap-1\">\n              <Icon name=\"lucide:bookmark\" class=\"size-3.5\" />\n              <span>{{ bookmarks }}</span>\n            </div>\n          </div>\n        </Motion>\n      </div>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      headline?: string;\n      description?: string;\n      title?: string;\n      userImage?: string;\n      userName?: string;\n      date?: string;\n      readTime?: string;\n      likes?: string;\n      bookmarks?: string;\n      link?: string;\n    }>(),\n    {\n      headline: \"Development\",\n      title: \"Modern JavaScript Patterns You Should Know\",\n      image:\n        \"https://images.unsplash.com/photo-1587620962725-abab7fe55159?q=80&w=2031&auto=format&fit=crop\",\n      alt: \"Modern JavaScript Patterns\",\n      description:\n        \"Learn essential JavaScript design patterns that will make your code more maintainable and efficient in modern applications.\",\n      date: \"10 May 2024\",\n      userImage: \"https://i.pravatar.cc/300?img=18\",\n      userName: \"Lisa Anderson\",\n      readTime: \"10 min read\",\n      likes: \"156\",\n      bookmarks: \"89\",\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Post","description":null,"path":"Blog/Post/BlockBlogPostCard9.vue","components":["avatar","badge","divider"]},{"name":"Pricing 1","fileName":"BlockPricing1.vue","file":"<template>\n  <UiContainer class=\"relative py-16 lg:py-24\">\n    <div class=\"max-w-[760px]\">\n      <p class=\"text-primary font-semibold\">Pricing</p>\n      <h2 class=\"mt-3 mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\">\n        Simple, transparent pricing\n      </h2>\n      <p class=\"text-muted-foreground text-lg lg:text-xl\">\n        We believe {{ COMPANY_NAME }} should be accessible to all companies, no matter the size.\n      </p>\n    </div>\n\n    <div class=\"mt-5 flex flex-col-reverse gap-3 md:flex-row lg:mt-7\">\n      <UiButton size=\"lg\" variant=\"outline\">Contact sales</UiButton>\n      <UiButton size=\"lg\">Get started</UiButton>\n    </div>\n\n    <div class=\"grid grid-cols-1 gap-y-10 py-10 lg:grid-cols-3 lg:gap-8 lg:gap-y-12 lg:py-20\">\n      <template v-for=\"(p, i) in prices\" :key=\"i\">\n        <UiCard\n          class=\"overflow-hidden\"\n          :class=\"[i == prices.length - 2 ? 'border-primary shadow-lg' : '']\"\n        >\n          <UiCardContent class=\"flex w-full flex-col items-center\">\n            <div class=\"bg-primary/20 mb-5 flex h-12 w-12 items-center justify-center rounded-full\">\n              <Icon :name=\"p.icon\" class=\"text-primary h-6 w-6\" />\n            </div>\n            <h3 class=\"text-primary mb-2 text-xl font-semibold\">{{ p.title }} plan</h3>\n            <p class=\"text-4xl/loose font-semibold lg:text-5xl/snug\">${{ p.price }}/mth</p>\n            <p class=\"text-muted-foreground mt-2\">Billed annually</p>\n\n            <ul class=\"flex w-full flex-col items-center gap-4 px-5 py-8 lg:items-start\">\n              <li v-for=\"(perk, k) in p.perks\" :key=\"k\" class=\"flex items-center gap-3\">\n                <Icon name=\"heroicons:check-circle\" class=\"text-primary h-6 w-6 shrink-0\" />\n                <span class=\"opacity-80\">{{ perk }}</span>\n              </li>\n            </ul>\n          </UiCardContent>\n          <UiCardFooter class=\"bg-muted dark:border-muted/50 dark:bg-muted/30 border-t pt-6!\">\n            <UiButton class=\"w-full\"> Get started </UiButton>\n          </UiCardFooter>\n        </UiCard>\n      </template>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const prices = [\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Basic\",\n      price: 10,\n      perks: [\n        \"Access to all basic features\",\n        \"Basic reporting and analytics\",\n        \"Up to 10 individual users\",\n        \"20GB individual data each user\",\n        \"Basic chat and email support\",\n      ],\n    },\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Business\",\n      price: 20,\n      perks: [\n        \"200+ integrations\",\n        \"Advanced reporting and analytics\",\n        \"Up to 20 individual users\",\n        \"40GB individual data each user\",\n        \"Priority chat and email support\",\n      ],\n    },\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Enterprise\",\n      price: 40,\n      perks: [\n        \"Advanced custom fields\",\n        \"Audit log and data history\",\n        \"Unlimited individual users\",\n        \"Unlimited individual data\",\n        \"Personalised+priotity service\",\n      ],\n    },\n  ];\n</script>\n","category":"Pricing","description":null,"path":"Pricing/BlockPricing1.vue","components":["button","card","container"]},{"name":"Pricing 2","fileName":"BlockPricing2.vue","file":"<template>\n  <UiContainer class=\"relative py-16 lg:py-24\">\n    <div class=\"max-w-[760px]\">\n      <p class=\"text-primary font-semibold\">Pricing</p>\n      <h2 class=\"mt-3 mb-4 text-3xl font-semibold lg:mb-5 lg:text-4xl\">\n        Simple, transparent pricing\n      </h2>\n      <p class=\"text-muted-foreground text-lg lg:text-xl\">\n        We believe {{ COMPANY_NAME }} should be accessible to all companies, no matter the size.\n      </p>\n    </div>\n\n    <div class=\"grid grid-cols-1 gap-y-10 py-10 lg:grid-cols-3 lg:gap-8 lg:gap-y-12 lg:py-20\">\n      <template v-for=\"(p, i) in prices\" :key=\"i\">\n        <UiCard\n          class=\"overflow-hidden\"\n          :class=\"[i == prices.length - 2 ? 'border-primary shadow-lg' : '']\"\n        >\n          <UiCardContent class=\"flex w-full flex-col items-center\">\n            <h3 class=\"text-4xl/loose font-semibold lg:text-5xl/snug\">${{ p.price }}/mth</h3>\n            <p class=\"my-2 text-xl font-semibold\">{{ p.title }} plan</p>\n            <p class=\"text-muted-foreground mt-2\">Billed annually</p>\n\n            <ul class=\"flex w-full flex-col items-center gap-4 px-5 py-8 lg:items-start\">\n              <li v-for=\"(perk, k) in p.perks\" :key=\"k\" class=\"flex items-center gap-3\">\n                <Icon\n                  name=\"solar:check-circle-bold-duotone\"\n                  class=\"h-6 w-6 shrink-0 text-green-500\"\n                />\n                <span class=\"opacity-80\">{{ perk }}</span>\n              </li>\n            </ul>\n          </UiCardContent>\n          <UiCardFooter class=\"flex-col gap-3\">\n            <UiButton class=\"w-full\"> Get started </UiButton>\n            <UiButton variant=\"outline\" class=\"w-full\"> Contact sales </UiButton>\n          </UiCardFooter>\n        </UiCard>\n      </template>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const prices = [\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Basic\",\n      price: 10,\n      perks: [\n        \"Access to all basic features\",\n        \"Basic reporting and analytics\",\n        \"Up to 10 individual users\",\n        \"20GB individual data each user\",\n        \"Basic chat and email support\",\n      ],\n    },\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Business\",\n      price: 20,\n      perks: [\n        \"200+ integrations\",\n        \"Advanced reporting and analytics\",\n        \"Up to 20 individual users\",\n        \"40GB individual data each user\",\n        \"Priority chat and email support\",\n      ],\n    },\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Enterprise\",\n      price: 40,\n      perks: [\n        \"Advanced custom fields\",\n        \"Audit log and data history\",\n        \"Unlimited individual users\",\n        \"Unlimited individual data\",\n        \"Personalised+priotity service\",\n      ],\n    },\n  ];\n</script>\n","category":"Pricing","description":null,"path":"Pricing/BlockPricing2.vue","components":["button","card","container"]},{"name":"Pricing 3","fileName":"BlockPricing3.vue","file":"<template>\n  <UiContainer class=\"relative py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-[760px] text-center\">\n      <p class=\"text-primary font-semibold\">Pricing</p>\n      <h2 class=\"mt-3 mb-4 text-3xl font-semibold lg:mb-6 lg:text-4xl\">\n        Plans that fit your scale\n      </h2>\n      <p class=\"text-muted-foreground text-lg lg:text-xl\">\n        Simple, transparent pricing that grows with you. Try any plan free for 30 days.\n      </p>\n    </div>\n\n    <UiTabs class=\"mx-auto mt-5 w-full md:w-[450px] lg:mt-7\" default-value=\"monthly\">\n      <UiTabsList class=\"grid h-auto w-full grid-cols-2\">\n        <UiTabsTrigger class=\"h-10\" value=\"monthly\">Monthly billing</UiTabsTrigger>\n        <UiTabsTrigger class=\"h-10\" value=\"annual\"\n          >Annual Billing\n          <UiBadge class=\"ml-2 hidden lg:block\" variant=\"outline\">Save 20%</UiBadge></UiTabsTrigger\n        >\n      </UiTabsList>\n    </UiTabs>\n\n    <div class=\"grid grid-cols-1 gap-y-10 py-10 lg:grid-cols-2 lg:gap-8 lg:gap-y-12 lg:py-20\">\n      <template v-for=\"(p, i) in prices\" :key=\"i\">\n        <UiCard class=\"overflow-hidden\">\n          <UiCardContent class=\"w-full px-0\">\n            <div\n              class=\"flex flex-col-reverse gap-4 border-b px-6 pb-6 lg:flex-row lg:justify-between\"\n            >\n              <div>\n                <p class=\"text-xl font-semibold lg:text-2xl\">\n                  {{ p.title }} plan\n                  <UiBadge\n                    v-if=\"i == prices.length - 1\"\n                    class=\"border-primary/50 text-primary ml-2\"\n                    variant=\"outline\"\n                    >Popular</UiBadge\n                  >\n                </p>\n                <p class=\"text-muted-foreground mt-1\">{{ p.description }}</p>\n              </div>\n              <div>\n                <p class=\"text-5xl/snug font-bold lg:text-5xl/snug\">\n                  ${{ p.price }}<span class=\"text-base font-normal\">per month</span>\n                </p>\n              </div>\n            </div>\n            <div class=\"px-6 pt-6\">\n              <p class=\"font-semibold uppercase\">Features</p>\n              <p class=\"text-muted-foreground mt-2\">Below is the list of features offered</p>\n            </div>\n\n            <ul class=\"grid w-full grid-cols-1 gap-4 px-5 pt-8 md:grid-cols-2 lg:py-8\">\n              <li v-for=\"(perk, k) in p.perks\" :key=\"k\" class=\"flex items-center gap-3\">\n                <Icon name=\"heroicons:check-circle\" class=\"text-primary h-6 w-6 shrink-0\" />\n                <span class=\"opacity-80\">{{ perk }}</span>\n              </li>\n            </ul>\n          </UiCardContent>\n          <UiCardFooter class=\"dark:border-muted/50 border-t pt-6!\">\n            <UiButton class=\"w-full\"> Get started </UiButton>\n          </UiCardFooter>\n        </UiCard>\n      </template>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const prices = [\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Basic\",\n      description: \"For small teams or office\",\n      price: 10,\n      perks: [\n        \"Access to all basic features\",\n        \"Basic reporting and analytics\",\n        \"Up to 10 individual users\",\n        \"20GB individual data each user\",\n        \"Basic chat and email support\",\n        \"Attend events\",\n        \"Automatic updates\",\n        \"Backup your account\",\n        \"Audit log and notes\",\n        \"Feature requests\",\n      ],\n    },\n    {\n      icon: \"heroicons:bolt\",\n      title: \"Business\",\n      description: \"Advanced features and reporting\",\n      price: 20,\n      perks: [\n        \"200+ integrations\",\n        \"Advanced reporting\",\n        \"Up to 20 individual users\",\n        \"40GB individual data each user\",\n        \"Priority chat and email support\",\n        \"Advanced custom fields\",\n        \"Audit log and data history\",\n        \"Unlimited individual users\",\n        \"Unlimited individual data\",\n        \"Personalised+priotity service\",\n      ],\n    },\n  ];\n</script>\n","category":"Pricing","description":null,"path":"Pricing/BlockPricing3.vue","components":["badge","button","card","container","tabs"]},{"name":"Pricing 4","fileName":"BlockPricing4.vue","file":"<template>\n  <UiContainer class=\"relative py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-[760px] text-center\">\n      <p class=\"text-primary font-semibold\">Pricing</p>\n      <h2 class=\"mt-3 mb-4 text-3xl font-semibold lg:mb-6 lg:text-4xl\">\n        Compare our plans and find yours\n      </h2>\n      <p class=\"text-muted-foreground text-lg lg:text-xl\">\n        Simple, transparent pricing that grows with you. Try any plan free for 30 days.\n      </p>\n    </div>\n\n    <UiTabs class=\"mx-auto mt-5 w-full md:w-[450px] lg:mt-7\" default-value=\"monthly\">\n      <UiTabsList class=\"grid h-auto w-full grid-cols-2\">\n        <UiTabsTrigger class=\"h-10\" value=\"monthly\">Monthly billing</UiTabsTrigger>\n        <UiTabsTrigger class=\"h-10\" value=\"annual\"\n          >Annual Billing\n          <UiBadge class=\"ml-2 hidden lg:block\" variant=\"outline\">Save 20%</UiBadge></UiTabsTrigger\n        >\n      </UiTabsList>\n    </UiTabs>\n\n    <div class=\"grid grid-cols-1 gap-y-5 py-10 lg:grid-cols-4 lg:gap-x-10 lg:py-20\">\n      <template v-for=\"(p, i) in prices\" :key=\"i\">\n        <div class=\"lg:first:col-start-2\">\n          <p class=\"text-xl font-semibold\">{{ p.title }}</p>\n          <div class=\"mt-10 flex items-end\">\n            <p class=\"text-3xl font-semibold lg:text-5xl\">${{ p.price }}</p>\n            <p class=\"text-muted-foreground ml-1\">per user / month</p>\n          </div>\n          <p class=\"text-muted-foreground mt-6 text-sm\">{{ p.description }}</p>\n          <div class=\"mt-7 flex flex-col gap-3\">\n            <UiButton class=\"w-full\">Get started</UiButton>\n            <UiButton variant=\"outline\" class=\"w-full\">Contact sales</UiButton>\n          </div>\n\n          <div class=\"mt-10 grid gap-5 lg:hidden\">\n            <div>\n              <p class=\"text-primary mb-4 text-sm font-semibold\">Overview</p>\n              <ul>\n                <li class=\"grid grid-cols-2\">\n                  <template v-for=\"(o, k) in p.overview\" :key=\"`overview-${k}`\">\n                    <p\n                      class=\"px-3 py-6 text-sm font-medium\"\n                      :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                    >\n                      {{ o.text }}\n                    </p>\n                    <p\n                      v-if=\"typeof o.value === 'string'\"\n                      class=\"px-3 py-6 text-center text-sm font-medium\"\n                      :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                    >\n                      {{ o.value }}\n                    </p>\n                    <p\n                      v-if=\"typeof o.value === 'boolean'\"\n                      class=\"px-3 py-6 text-center text-sm font-medium\"\n                      :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                    >\n                      <Icon\n                        v-if=\"o.value\"\n                        name=\"heroicons:check-circle\"\n                        class=\"h-6 w-6 text-green-500\"\n                      />\n                      <span v-else>--</span>\n                    </p>\n                  </template>\n                </li>\n              </ul>\n            </div>\n            <div>\n              <p class=\"text-primary mb-4 text-sm font-semibold\">Reporting and analytics</p>\n              <ul>\n                <li class=\"grid grid-cols-2\">\n                  <template v-for=\"(o, k) in p.reporting\" :key=\"`reporting-${k}`\">\n                    <p\n                      class=\"px-3 py-6 text-sm font-medium\"\n                      :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                    >\n                      {{ o.text }}\n                    </p>\n                    <p\n                      v-if=\"typeof o.value === 'string'\"\n                      class=\"px-3 py-6 text-center text-sm font-medium\"\n                      :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                    >\n                      {{ o.value }}\n                    </p>\n                    <p\n                      v-if=\"typeof o.value === 'boolean'\"\n                      class=\"px-3 py-6 text-center text-sm font-medium\"\n                      :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                    >\n                      <Icon\n                        v-if=\"o.value\"\n                        name=\"heroicons:check-circle\"\n                        class=\"h-6 w-6 text-green-500\"\n                      />\n                      <span v-else>--</span>\n                    </p>\n                  </template>\n                </li>\n              </ul>\n            </div>\n            <div>\n              <p class=\"text-primary mb-4 text-sm font-semibold\">User access</p>\n              <ul>\n                <li class=\"grid grid-cols-2\">\n                  <template v-for=\"(o, k) in p.access\" :key=\"`access-${k}`\">\n                    <p\n                      class=\"px-3 py-6 text-sm font-medium\"\n                      :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                    >\n                      {{ o.text }}\n                    </p>\n                    <p\n                      v-if=\"typeof o.value === 'string'\"\n                      class=\"px-3 py-6 text-center text-sm font-medium\"\n                      :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                    >\n                      {{ o.value }}\n                    </p>\n                    <p\n                      v-if=\"typeof o.value === 'boolean'\"\n                      class=\"px-3 py-6 text-center text-sm font-medium\"\n                      :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                    >\n                      <Icon\n                        v-if=\"o.value\"\n                        name=\"heroicons:check-circle\"\n                        class=\"h-6 w-6 text-green-500\"\n                      />\n                      <span v-else>--</span>\n                    </p>\n                  </template>\n                </li>\n              </ul>\n            </div>\n          </div>\n        </div>\n      </template>\n    </div>\n\n    <div class=\"hidden lg:block\">\n      <div>\n        <p class=\"text-primary mb-4 text-sm font-semibold\">Overview</p>\n        <ul>\n          <li class=\"grid grid-cols-2 lg:grid-cols-4\">\n            <template\n              v-for=\"(o, k) in prices[0] && prices[0].overview\n                ? prices[0].overview.map((x) => x.text)\n                : []\"\n              :key=\"`prices-overview-${k}`\"\n            >\n              <p\n                class=\"text-sm font-medium lg:px-3 lg:py-6\"\n                :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n              >\n                {{ o }}\n              </p>\n              <template v-for=\"(p, i) in prices\" :key=\"i\">\n                <p\n                  v-if=\"typeof p.overview.find((x) => x.text == o)?.value === 'string'\"\n                  class=\"text-center text-sm font-medium lg:px-3 lg:py-6\"\n                  :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                >\n                  {{ p.overview.find((x) => x.text == o)?.value }}\n                </p>\n                <p\n                  v-if=\"typeof p.overview.find((x) => x.text == o)?.value === 'boolean'\"\n                  class=\"text-center text-sm font-medium lg:px-3 lg:py-6\"\n                  :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                >\n                  <Icon\n                    v-if=\"p.overview.find((x) => x.text == o)?.value\"\n                    name=\"heroicons:check-circle\"\n                    class=\"h-6 w-6 text-green-500\"\n                  />\n                  <span v-else>--</span>\n                </p>\n              </template>\n            </template>\n          </li>\n        </ul>\n      </div>\n      <div class=\"mt-10\">\n        <p class=\"text-primary mb-4 text-sm font-semibold\">Reporting and analytics</p>\n        <ul>\n          <li class=\"grid grid-cols-2 lg:grid-cols-4\">\n            <template\n              v-for=\"(o, k) in prices[0] && prices[0].reporting\n                ? prices[0].reporting.map((x) => x.text)\n                : []\"\n              :key=\"`prices-reporting-${k}`\"\n            >\n              <p\n                class=\"text-sm font-medium lg:px-3 lg:py-6\"\n                :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n              >\n                {{ o }}\n              </p>\n              <template v-for=\"(p, i) in prices\" :key=\"i\">\n                <p\n                  v-if=\"typeof p.reporting.find((x) => x.text == o)?.value === 'string'\"\n                  class=\"text-center text-sm font-medium lg:px-3 lg:py-6\"\n                  :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                >\n                  {{ p.reporting.find((x) => x.text == o)?.value }}\n                </p>\n                <p\n                  v-if=\"typeof p.reporting.find((x) => x.text == o)?.value === 'boolean'\"\n                  class=\"text-center text-sm font-medium lg:px-3 lg:py-6\"\n                  :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                >\n                  <Icon\n                    v-if=\"p.reporting.find((x) => x.text == o)?.value\"\n                    name=\"heroicons:check-circle\"\n                    class=\"h-6 w-6 text-green-500\"\n                  />\n                  <span v-else>--</span>\n                </p>\n              </template>\n            </template>\n          </li>\n        </ul>\n      </div>\n      <div class=\"mt-10\">\n        <p class=\"text-primary mb-4 text-sm font-semibold\">User access</p>\n        <ul>\n          <li class=\"grid grid-cols-2 lg:grid-cols-4\">\n            <template\n              v-for=\"(o, k) in prices[0] && prices[0].access\n                ? prices[0].access.map((x) => x.text)\n                : []\"\n              :key=\"`prices-access-${k}`\"\n            >\n              <p\n                class=\"text-sm font-medium lg:px-3 lg:py-6\"\n                :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n              >\n                {{ o }}\n              </p>\n              <template v-for=\"(p, i) in prices\" :key=\"i\">\n                <p\n                  v-if=\"typeof p.access.find((x) => x.text == o)?.value === 'string'\"\n                  class=\"text-center text-sm font-medium lg:px-3 lg:py-6\"\n                  :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                >\n                  {{ p.access.find((x) => x.text == o)?.value }}\n                </p>\n                <p\n                  v-if=\"typeof p.access.find((x) => x.text == o)?.value === 'boolean'\"\n                  class=\"text-center text-sm font-medium lg:px-3 lg:py-6\"\n                  :class=\"[k % 2 == 0 ? 'bg-muted dark:bg-muted/40' : '']\"\n                >\n                  <Icon\n                    v-if=\"p.access.find((x) => x.text == o)?.value\"\n                    name=\"heroicons:check-circle\"\n                    class=\"h-6 w-6 text-green-500\"\n                  />\n                  <span v-else>--</span>\n                </p>\n              </template>\n            </template>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const prices = [\n    {\n      title: \"Basic\",\n      description: \"Basic features for up to 10 employees with everything you need.\",\n      price: 10,\n      overview: [\n        { text: \"Basic features\", value: true },\n        { text: \"Users\", value: \"10\" },\n        { text: \"Individual data\", value: \"20GB\" },\n        { text: \"Support\", value: true },\n        { text: \"Automated workflows\", value: false },\n        { text: \"Integrations\", value: false },\n      ],\n      reporting: [\n        { text: \"Analytics\", value: \"Basic\" },\n        { text: \"Export reports\", value: true },\n        { text: \"Scheduled reports\", value: true },\n        { text: \"API access\", value: false },\n        { text: \"Advanced reports\", value: false },\n        { text: \"Saved reports\", value: false },\n        { text: \"Custom properties\", value: false },\n        { text: \"Custom fields\", value: false },\n      ],\n      access: [\n        { text: \"SSO/SAML authentication\", value: true },\n        { text: \"Advanced permissions\", value: false },\n        { text: \"Audit log\", value: false },\n        { text: \"Data history\", value: false },\n      ],\n    },\n    {\n      title: \"Business\",\n      description: \"Advanced features and reporting, better workflows and automation.\",\n      price: 20,\n      overview: [\n        { text: \"Basic features\", value: true },\n        { text: \"Users\", value: \"20\" },\n        { text: \"Individual data\", value: \"40GB\" },\n        { text: \"Support\", value: true },\n        { text: \"Automated workflows\", value: true },\n        { text: \"Integrations\", value: true },\n      ],\n      reporting: [\n        { text: \"Analytics\", value: \"Advanced\" },\n        { text: \"Export reports\", value: true },\n        { text: \"Scheduled reports\", value: true },\n        { text: \"API access\", value: true },\n        { text: \"Advanced reports\", value: true },\n        { text: \"Saved reports\", value: true },\n        { text: \"Custom properties\", value: false },\n        { text: \"Custom fields\", value: false },\n      ],\n      access: [\n        { text: \"SSO/SAML authentication\", value: true },\n        { text: \"Advanced permissions\", value: true },\n        { text: \"Audit log\", value: false },\n        { text: \"Data history\", value: false },\n      ],\n    },\n    {\n      title: \"Enterprise\",\n      description: \"Personalized service and enterprise security for large teams.\",\n      price: 40,\n      overview: [\n        { text: \"Basic features\", value: true },\n        { text: \"Users\", value: \"Unlimited\" },\n        { text: \"Individual data\", value: \"Unlimited\" },\n        { text: \"Support\", value: true },\n        { text: \"Automated workflows\", value: true },\n        { text: \"Integrations\", value: true },\n      ],\n      reporting: [\n        { text: \"Analytics\", value: \"Advanced\" },\n        { text: \"Export reports\", value: true },\n        { text: \"Scheduled reports\", value: true },\n        { text: \"API access\", value: true },\n        { text: \"Advanced reports\", value: true },\n        { text: \"Saved reports\", value: true },\n        { text: \"Custom properties\", value: true },\n        { text: \"Custom fields\", value: true },\n      ],\n      access: [\n        { text: \"SSO/SAML authentication\", value: true },\n        { text: \"Advanced permissions\", value: true },\n        { text: \"Audit log\", value: true },\n        { text: \"Data history\", value: true },\n      ],\n    },\n  ];\n</script>\n","category":"Pricing","description":null,"path":"Pricing/BlockPricing4.vue","components":["badge","button","container","tabs"]},{"name":"Pricing 5","fileName":"BlockPricing5.vue","file":"<template>\n  <div class=\"bg-muted/30 py-16 lg:py-24\">\n    <UiContainer>\n      <div class=\"mx-auto max-w-[760px] text-center\">\n        <h2 class=\"mb-4 text-3xl font-semibold lg:text-4xl\">Choose your plan</h2>\n        <p class=\"text-muted-foreground text-lg\">\n          Start building for free, then add a site plan to go live. Account plans unlock additional\n          features.\n        </p>\n      </div>\n\n      <div class=\"mt-12 grid grid-cols-1 gap-8 lg:mt-16 lg:grid-cols-3\">\n        <template v-for=\"(p, i) in prices\" :key=\"i\">\n          <div class=\"bg-card relative rounded-lg border p-8\">\n            <UiBadge\n              v-if=\"p.popular\"\n              class=\"absolute -top-3 left-1/2 -translate-x-1/2\"\n              variant=\"default\"\n              >Most popular</UiBadge\n            >\n            <div class=\"mb-6\">\n              <h3 class=\"mb-2 text-2xl font-bold\">{{ p.title }}</h3>\n              <p class=\"text-muted-foreground text-sm\">{{ p.description }}</p>\n            </div>\n            <div class=\"mb-6\">\n              <p class=\"mb-1 text-4xl font-bold\">${{ p.price }}</p>\n              <p class=\"text-muted-foreground text-sm\">per user, per month</p>\n            </div>\n            <UiButton class=\"mb-6 w-full\" :variant=\"p.popular ? 'default' : 'outline'\">\n              {{ p.cta }}\n            </UiButton>\n            <div class=\"space-y-3\">\n              <p class=\"text-sm font-semibold\">What's included:</p>\n              <ul class=\"space-y-3\">\n                <li v-for=\"(feature, k) in p.features\" :key=\"k\" class=\"flex items-start gap-3\">\n                  <Icon name=\"lucide:check\" class=\"text-primary mt-0.5 size-5 shrink-0\" />\n                  <span class=\"text-sm\">{{ feature }}</span>\n                </li>\n              </ul>\n            </div>\n          </div>\n        </template>\n      </div>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const prices = [\n    {\n      title: \"Starter\",\n      description: \"Perfect for trying out our platform\",\n      price: 0,\n      cta: \"Start for free\",\n      popular: false,\n      features: [\n        \"Up to 5 users\",\n        \"Basic analytics\",\n        \"Community support\",\n        \"1GB storage\",\n        \"Email notifications\",\n      ],\n    },\n    {\n      title: \"Professional\",\n      description: \"For growing teams and businesses\",\n      price: 29,\n      cta: \"Get started\",\n      popular: true,\n      features: [\n        \"Up to 50 users\",\n        \"Advanced analytics\",\n        \"Priority support\",\n        \"50GB storage\",\n        \"Custom integrations\",\n        \"Advanced reporting\",\n      ],\n    },\n    {\n      title: \"Enterprise\",\n      description: \"For large organizations\",\n      price: 99,\n      cta: \"Contact sales\",\n      popular: false,\n      features: [\n        \"Unlimited users\",\n        \"Custom analytics\",\n        \"Dedicated support\",\n        \"Unlimited storage\",\n        \"API access\",\n        \"SLA guarantee\",\n        \"Custom onboarding\",\n      ],\n    },\n  ];\n</script>\n","category":"Pricing","description":null,"path":"Pricing/BlockPricing5.vue","components":["badge","button","container"]},{"name":"Pricing 6","fileName":"BlockPricing6.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"text-center\">\n      <h2 class=\"mb-4 text-3xl font-semibold lg:text-4xl\">Pricing plans for teams of all sizes</h2>\n      <p class=\"text-muted-foreground mx-auto max-w-2xl text-lg\">\n        Choose an affordable plan that's packed with the best features for engaging your audience,\n        creating customer loyalty, and driving sales.\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid grid-cols-1 gap-6 lg:mt-16 lg:grid-cols-2\">\n      <template v-for=\"(p, i) in prices\" :key=\"i\">\n        <div\n          class=\"relative rounded-lg border p-8\"\n          :class=\"[p.featured ? 'border-primary bg-primary/5' : 'bg-card']\"\n        >\n          <div class=\"flex items-start justify-between\">\n            <div>\n              <h3 class=\"mb-1 text-xl font-bold\">{{ p.title }}</h3>\n              <p class=\"text-muted-foreground text-sm\">{{ p.description }}</p>\n            </div>\n            <UiBadge v-if=\"p.featured\" variant=\"default\">Recommended</UiBadge>\n          </div>\n\n          <div class=\"my-8\">\n            <div class=\"flex items-baseline gap-2\">\n              <span class=\"text-5xl font-bold\">${{ p.price }}</span>\n              <span class=\"text-muted-foreground\">/month</span>\n            </div>\n            <p class=\"text-muted-foreground mt-2 text-sm\">{{ p.billing }}</p>\n          </div>\n\n          <div class=\"mb-8 space-y-4\">\n            <div v-for=\"(feature, k) in p.features\" :key=\"k\" class=\"flex items-start gap-3\">\n              <Icon name=\"lucide:check-circle-2\" class=\"text-primary mt-0.5 size-5 shrink-0\" />\n              <div>\n                <p class=\"font-medium\">{{ feature.name }}</p>\n                <p class=\"text-muted-foreground text-sm\">{{ feature.description }}</p>\n              </div>\n            </div>\n          </div>\n\n          <UiButton class=\"w-full\" :variant=\"p.featured ? 'default' : 'outline'\">\n            {{ p.cta }}\n          </UiButton>\n        </div>\n      </template>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const prices = [\n    {\n      title: \"Basic\",\n      description: \"Everything you need to get started\",\n      price: 15,\n      billing: \"Billed monthly\",\n      cta: \"Start free trial\",\n      featured: false,\n      features: [\n        {\n          name: \"Up to 10 team members\",\n          description: \"Add your whole team and collaborate\",\n        },\n        {\n          name: \"100GB storage\",\n          description: \"Store all your important files\",\n        },\n        {\n          name: \"Email support\",\n          description: \"Get help when you need it\",\n        },\n        {\n          name: \"Basic integrations\",\n          description: \"Connect with your favorite tools\",\n        },\n      ],\n    },\n    {\n      title: \"Pro\",\n      description: \"Advanced features for power users\",\n      price: 49,\n      billing: \"Billed monthly, or $470 yearly\",\n      cta: \"Get started\",\n      featured: true,\n      features: [\n        {\n          name: \"Unlimited team members\",\n          description: \"Scale without worrying about seats\",\n        },\n        {\n          name: \"1TB storage\",\n          description: \"Never run out of space\",\n        },\n        {\n          name: \"Priority support\",\n          description: \"Get answers faster with priority access\",\n        },\n        {\n          name: \"Advanced integrations\",\n          description: \"Connect to any service via API\",\n        },\n        {\n          name: \"Custom workflows\",\n          description: \"Automate your processes\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"Pricing","description":null,"path":"Pricing/BlockPricing6.vue","components":["badge","button","container"]},{"name":"Pricing 7","fileName":"BlockPricing7.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-4xl\">\n      <div class=\"mb-12 text-center\">\n        <h2 class=\"mb-4 text-3xl font-semibold lg:text-4xl\">Simple, straightforward pricing</h2>\n        <p class=\"text-muted-foreground text-lg\">No contracts. No surprise fees. Cancel anytime.</p>\n      </div>\n\n      <div class=\"mb-8 flex items-center justify-center gap-3\">\n        <span :class=\"[!isAnnual ? 'font-semibold' : 'text-muted-foreground']\">Monthly</span>\n        <UiSwitch v-model=\"isAnnual\" />\n        <span :class=\"[isAnnual ? 'font-semibold' : 'text-muted-foreground']\">\n          Annual\n          <UiBadge class=\"ml-2\" variant=\"secondary\">Save 20%</UiBadge>\n        </span>\n      </div>\n\n      <div class=\"grid grid-cols-1 gap-8 md:grid-cols-3\">\n        <template v-for=\"(p, i) in prices\" :key=\"i\">\n          <div class=\"bg-card rounded-lg border p-6\">\n            <h3 class=\"mb-2 text-xl font-bold\">{{ p.title }}</h3>\n            <p class=\"text-muted-foreground mb-6 text-sm\">{{ p.description }}</p>\n\n            <div class=\"mb-6\">\n              <div class=\"flex items-baseline gap-1\">\n                <span class=\"text-4xl font-bold\"\n                  >${{ isAnnual ? p.annualPrice : p.monthlyPrice }}</span\n                >\n                <span class=\"text-muted-foreground\">/mo</span>\n              </div>\n              <AnimatePresence>\n                <Motion\n                  v-if=\"isAnnual\"\n                  :initial=\"{ opacity: 0, height: 0 }\"\n                  :animate=\"{ opacity: 1, height: 'auto' }\"\n                  :exit=\"{ opacity: 0, height: 0 }\"\n                  as=\"p\"\n                  class=\"text-muted-foreground mt-1 text-xs\"\n                >\n                  Billed as ${{ p.annualPrice * 12 }} annually\n                </Motion>\n              </AnimatePresence>\n            </div>\n\n            <UiButton class=\"mb-6 w-full\" :variant=\"i === 1 ? 'default' : 'outline'\">\n              Get started\n            </UiButton>\n\n            <ul class=\"space-y-3\">\n              <li v-for=\"(feature, k) in p.features\" :key=\"k\" class=\"flex items-center gap-3\">\n                <Icon name=\"lucide:check\" class=\"text-primary size-4 shrink-0\" />\n                <span class=\"text-sm\">{{ feature }}</span>\n              </li>\n            </ul>\n          </div>\n        </template>\n      </div>\n\n      <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n        All plans include a 30-day money-back guarantee.\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const isAnnual = ref(false);\n\n  const prices = [\n    {\n      title: \"Hobby\",\n      description: \"For personal projects\",\n      monthlyPrice: 9,\n      annualPrice: 7,\n      features: [\n        \"5 projects\",\n        \"10GB storage\",\n        \"Community support\",\n        \"Basic analytics\",\n        \"SSL certificate\",\n      ],\n    },\n    {\n      title: \"Team\",\n      description: \"For small teams\",\n      monthlyPrice: 29,\n      annualPrice: 23,\n      features: [\n        \"Unlimited projects\",\n        \"100GB storage\",\n        \"Priority support\",\n        \"Advanced analytics\",\n        \"Custom domain\",\n        \"Team collaboration\",\n      ],\n    },\n    {\n      title: \"Business\",\n      description: \"For larger organizations\",\n      monthlyPrice: 79,\n      annualPrice: 63,\n      features: [\n        \"Everything in Team\",\n        \"1TB storage\",\n        \"Phone support\",\n        \"SSO & SAML\",\n        \"Advanced security\",\n        \"SLA guarantee\",\n        \"Dedicated manager\",\n      ],\n    },\n  ];\n</script>\n","category":"Pricing","description":null,"path":"Pricing/BlockPricing7.vue","components":["badge","button","container","switch"]},{"name":"Pricing 8","fileName":"BlockPricing8.vue","file":"<template>\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl text-center\">\n      <h2 class=\"mb-4 text-3xl font-semibold lg:text-4xl\">Flexible pricing to fit your needs</h2>\n      <p class=\"text-muted-foreground text-lg\">\n        Whether you're a solopreneur or a large enterprise, we have a plan for you.\n      </p>\n    </div>\n\n    <div class=\"mt-12 grid grid-cols-1 gap-8 md:grid-cols-2 lg:mt-16 xl:grid-cols-4\">\n      <template v-for=\"(p, i) in prices\" :key=\"i\">\n        <div\n          class=\"flex flex-col rounded-lg border p-6\"\n          :class=\"[p.highlighted ? 'border-primary shadow-lg' : 'bg-card']\"\n        >\n          <div class=\"mb-6 flex-1\">\n            <div class=\"bg-primary/10 mb-4 inline-flex rounded-lg p-3\">\n              <Icon :name=\"p.icon\" class=\"text-primary size-6\" />\n            </div>\n            <h3 class=\"mb-2 text-xl font-bold\">{{ p.title }}</h3>\n            <p class=\"text-muted-foreground text-sm\">{{ p.description }}</p>\n          </div>\n\n          <div class=\"mb-6\">\n            <div v-if=\"p.price !== 'Custom'\" class=\"flex items-baseline gap-1\">\n              <span class=\"text-4xl font-bold\">${{ p.price }}</span>\n              <span class=\"text-muted-foreground\">/month</span>\n            </div>\n            <div v-else>\n              <span class=\"text-4xl font-bold\">{{ p.price }}</span>\n            </div>\n          </div>\n\n          <UiButton class=\"mb-6 w-full\" :variant=\"p.highlighted ? 'default' : 'outline'\">\n            {{ p.cta }}\n          </UiButton>\n\n          <div class=\"border-t pt-6\">\n            <p class=\"text-muted-foreground mb-3 text-xs font-semibold uppercase\">Key features</p>\n            <ul class=\"space-y-2\">\n              <li v-for=\"(feature, k) in p.features\" :key=\"k\" class=\"flex items-start gap-2\">\n                <Icon name=\"lucide:check\" class=\"text-primary mt-0.5 size-4 shrink-0\" />\n                <span class=\"text-sm\">{{ feature }}</span>\n              </li>\n            </ul>\n          </div>\n        </div>\n      </template>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const prices = [\n    {\n      title: \"Free\",\n      description: \"Get started at no cost\",\n      price: 0,\n      cta: \"Sign up free\",\n      icon: \"lucide:gift\",\n      highlighted: false,\n      features: [\"1 user\", \"5GB storage\", \"Basic features\", \"Community support\"],\n    },\n    {\n      title: \"Starter\",\n      description: \"For small projects\",\n      price: 12,\n      cta: \"Start trial\",\n      icon: \"lucide:zap\",\n      highlighted: false,\n      features: [\"5 users\", \"50GB storage\", \"Standard features\", \"Email support\"],\n    },\n    {\n      title: \"Pro\",\n      description: \"Most popular choice\",\n      price: 39,\n      cta: \"Start trial\",\n      icon: \"lucide:star\",\n      highlighted: true,\n      features: [\n        \"25 users\",\n        \"500GB storage\",\n        \"Advanced features\",\n        \"Priority support\",\n        \"Integrations\",\n      ],\n    },\n    {\n      title: \"Enterprise\",\n      description: \"For large teams\",\n      price: \"Custom\",\n      cta: \"Contact us\",\n      icon: \"lucide:building\",\n      highlighted: false,\n      features: [\n        \"Unlimited users\",\n        \"Unlimited storage\",\n        \"Custom features\",\n        \"Dedicated support\",\n        \"SLA\",\n      ],\n    },\n  ];\n</script>\n","category":"Pricing","description":null,"path":"Pricing/BlockPricing8.vue","components":["button","container"]},{"name":"Pricing 9","fileName":"BlockPricing9.vue","file":"<template>\n  <div\n    class=\"bg-background text-foreground min-h-screen py-16 [--color-primary:#6366f1] [--primary:#6366f1] [--radius:10px] [--ring:#6366f1] lg:py-24\"\n  >\n    <UiContainer>\n      <!-- Header -->\n      <Motion\n        :initial=\"{ opacity: 0, y: -16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, ease: 'easeOut' }\"\n        class=\"mx-auto max-w-2xl text-center\"\n      >\n        <UiBadge variant=\"outline\" class=\"mb-4 px-3 py-1 text-xs font-medium tracking-wide\"\n          >Pricing</UiBadge\n        >\n        <h2 class=\"mb-4 text-4xl font-bold tracking-tight lg:text-5xl\">\n          Simple, transparent pricing\n        </h2>\n        <p class=\"text-muted-foreground text-lg\">\n          Start for free, scale as you grow. No contracts, no hidden fees — cancel anytime.\n        </p>\n      </Motion>\n\n      <!-- Billing toggle -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 8 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.1, ease: 'easeOut' }\"\n        class=\"mt-10 flex items-center justify-center gap-3\"\n      >\n        <span\n          class=\"text-sm font-medium transition-colors\"\n          :class=\"[!isAnnual ? 'text-foreground' : 'text-muted-foreground']\"\n          >Monthly</span\n        >\n        <UiSwitch v-model=\"isAnnual\" />\n        <span\n          class=\"flex items-center gap-2 text-sm font-medium transition-colors\"\n          :class=\"[isAnnual ? 'text-foreground' : 'text-muted-foreground']\"\n        >\n          Annual\n          <AnimatePresence>\n            <Motion\n              v-if=\"isAnnual\"\n              :initial=\"{ opacity: 0, scale: 0.75 }\"\n              :animate=\"{ opacity: 1, scale: 1 }\"\n              :exit=\"{ opacity: 0, scale: 0.75 }\"\n              :transition=\"{ duration: 0.2, ease: 'easeOut' }\"\n            >\n              <UiBadge\n                variant=\"outline\"\n                class=\"border-green-500/40 bg-green-500/10 text-green-600 dark:text-green-400\"\n                >Save 25%</UiBadge\n              >\n            </Motion>\n          </AnimatePresence>\n        </span>\n      </Motion>\n\n      <!-- Pricing cards -->\n      <Motion\n        initial=\"initial\"\n        animate=\"animate\"\n        :variants=\"containerVariant\"\n        class=\"mt-12 grid grid-cols-1 gap-8 md:grid-cols-3 lg:mt-16\"\n      >\n        <Motion\n          v-for=\"plan in plans\"\n          :key=\"plan.title\"\n          :variants=\"cardVariant\"\n          class=\"relative flex flex-col rounded-2xl border p-8\"\n          :class=\"[\n            plan.highlighted\n              ? 'border-primary bg-primary/5 shadow-primary/10 ring-primary shadow-xl ring-1'\n              : 'border-border bg-card',\n          ]\"\n        >\n          <!-- Recommended badge -->\n          <div\n            v-if=\"plan.highlighted\"\n            class=\"absolute -top-3.5 left-1/2 -translate-x-1/2 whitespace-nowrap\"\n          >\n            <UiBadge class=\"px-3 py-1 text-xs font-semibold shadow\" variant=\"default\"\n              >Recommended</UiBadge\n            >\n          </div>\n\n          <!-- Plan name & description -->\n          <div class=\"mb-6\">\n            <h3 class=\"mb-1 text-xl font-bold\">{{ plan.title }}</h3>\n            <p class=\"text-muted-foreground text-sm\">{{ plan.description }}</p>\n          </div>\n\n          <!-- Price display -->\n          <div class=\"mb-8\">\n            <div v-if=\"plan.monthlyPrice !== null\" class=\"flex items-baseline gap-1\">\n              <span class=\"text-5xl font-extrabold tracking-tight\">\n                ${{ isAnnual ? plan.annualPrice : plan.monthlyPrice }}\n              </span>\n              <span class=\"text-muted-foreground text-sm\">/mo</span>\n            </div>\n            <div v-else>\n              <span class=\"text-4xl font-extrabold tracking-tight\">Custom</span>\n            </div>\n            <AnimatePresence>\n              <Motion\n                v-if=\"isAnnual && plan.monthlyPrice !== null\"\n                :initial=\"{ opacity: 0, height: 0 }\"\n                :animate=\"{ opacity: 1, height: 'auto' }\"\n                :exit=\"{ opacity: 0, height: 0 }\"\n                :transition=\"{ duration: 0.25, ease: 'easeOut' }\"\n                as=\"p\"\n                class=\"text-muted-foreground mt-1 overflow-hidden text-xs\"\n              >\n                Billed as ${{ (plan.annualPrice ?? 0) * 12 }}/yr\n              </Motion>\n            </AnimatePresence>\n          </div>\n\n          <!-- CTA button -->\n          <UiButton\n            class=\"mb-8 w-full\"\n            size=\"lg\"\n            :variant=\"plan.highlighted ? 'default' : 'outline'\"\n          >\n            {{ plan.cta }}\n          </UiButton>\n\n          <!-- Feature list -->\n          <ul class=\"flex-1 space-y-3\">\n            <li\n              v-for=\"feature in plan.features\"\n              :key=\"feature\"\n              class=\"flex items-start gap-3 text-sm\"\n            >\n              <Icon\n                name=\"heroicons:check-circle-solid\"\n                class=\"mt-0.5 size-5 shrink-0\"\n                :class=\"[plan.highlighted ? 'text-primary' : 'text-muted-foreground']\"\n              />\n              <span>{{ feature }}</span>\n            </li>\n          </ul>\n        </Motion>\n      </Motion>\n\n      <!-- Social proof row -->\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.4, delay: 0.55, ease: 'easeOut' }\"\n        class=\"border-border mt-20 border-t pt-12\"\n      >\n        <p class=\"text-muted-foreground mb-8 text-center text-sm\">\n          Trusted by teams at world-class companies\n        </p>\n        <div class=\"flex flex-wrap items-center justify-center gap-8 sm:gap-12\">\n          <div\n            v-for=\"brand in brands\"\n            :key=\"brand.name\"\n            class=\"text-muted-foreground/50 hover:text-muted-foreground flex items-center gap-2 transition-colors duration-200\"\n          >\n            <Icon :name=\"brand.icon\" class=\"size-6 shrink-0\" />\n            <span class=\"text-base font-semibold tracking-tight\">{{ brand.name }}</span>\n          </div>\n        </div>\n      </Motion>\n    </UiContainer>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { AnimatePresence, Motion } from \"motion-v\";\n\n  const isAnnual = ref(false);\n\n  const containerVariant = {\n    initial: {},\n    animate: { transition: { staggerChildren: 0.1, delayChildren: 0.2 } },\n  };\n\n  const cardVariant = {\n    initial: { opacity: 0, y: 20 },\n    animate: { opacity: 1, y: 0, transition: { duration: 0.4, ease: \"easeOut\" } },\n  };\n\n  const plans = [\n    {\n      title: \"Free\",\n      description: \"Perfect for side projects and early-stage experimentation.\",\n      monthlyPrice: 0,\n      annualPrice: 0,\n      cta: \"Get started for free\",\n      highlighted: false,\n      features: [\n        \"Up to 3 projects\",\n        \"5 GB storage\",\n        \"Community support\",\n        \"Basic analytics dashboard\",\n        \"SSL certificate included\",\n      ],\n    },\n    {\n      title: \"Pro\",\n      description: \"Everything your growing team needs to move faster.\",\n      monthlyPrice: 32,\n      annualPrice: 24,\n      cta: \"Start 14-day free trial\",\n      highlighted: true,\n      features: [\n        \"Unlimited projects\",\n        \"100 GB storage\",\n        \"Priority email & chat support\",\n        \"Advanced analytics & reports\",\n        \"Custom domains & webhooks\",\n        \"Role-based access control\",\n      ],\n    },\n    {\n      title: \"Enterprise\",\n      description: \"Dedicated infrastructure and support for large organisations.\",\n      monthlyPrice: null,\n      annualPrice: null,\n      cta: \"Contact sales\",\n      highlighted: false,\n      features: [\n        \"Everything in Pro\",\n        \"Unlimited storage & bandwidth\",\n        \"Dedicated account manager\",\n        \"SSO & SAML authentication\",\n        \"99.99% uptime SLA guarantee\",\n        \"Custom onboarding & training\",\n      ],\n    },\n  ];\n\n  const brands = [\n    { name: \"Vercel\", icon: \"heroicons:globe-alt\" },\n    { name: \"Stripe\", icon: \"heroicons:credit-card\" },\n    { name: \"GitHub\", icon: \"heroicons:code-bracket-square\" },\n    { name: \"Notion\", icon: \"heroicons:document-text\" },\n    { name: \"Linear\", icon: \"heroicons:chart-bar\" },\n  ];\n</script>\n","category":"Pricing","description":null,"path":"Pricing/BlockPricing9.vue","components":["badge","button","container","switch"]},{"name":"Product Detail 1","fileName":"BlockProductDetail1.vue","file":"<template>\n  <!--\n    Product page with a thumbnail gallery and variant pickers\n    Features: Swipeable gallery with thumbnails that stay in sync, breadcrumbs, color swatches, size picker with out of stock sizes, validation when no size is chosen, add to cart with confirmation and a wishlist toggle\n  -->\n  <UiContainer class=\"py-10 lg:py-16\">\n    <UiBreadcrumbs :items=\"breadcrumbs\" class=\"mb-8\" />\n\n    <div class=\"grid gap-10 lg:grid-cols-2 lg:gap-16\">\n      <div class=\"lg:sticky lg:top-8 lg:self-start\">\n        <UiCarousel\n          v-slot=\"{ scrollPrev, scrollNext, canScrollPrev, canScrollNext }\"\n          class=\"relative\"\n          @init-api=\"onInit\"\n        >\n          <UiCarouselContent>\n            <UiCarouselItem v-for=\"image in product.images\" :key=\"image.src\" class=\"pl-4\">\n              <div class=\"bg-muted overflow-hidden rounded-2xl\">\n                <UiAspectRatio :ratio=\"4 / 5\">\n                  <img\n                    :src=\"image.src\"\n                    :alt=\"image.alt\"\n                    draggable=\"false\"\n                    class=\"size-full object-cover\"\n                  />\n                </UiAspectRatio>\n              </div>\n            </UiCarouselItem>\n          </UiCarouselContent>\n          <UiButton\n            variant=\"secondary\"\n            size=\"icon\"\n            class=\"absolute top-1/2 left-3 -translate-y-1/2 rounded-full shadow-md\"\n            :disabled=\"!canScrollPrev\"\n            aria-label=\"Previous image\"\n            @click=\"scrollPrev\"\n          >\n            <Icon name=\"lucide:chevron-left\" />\n          </UiButton>\n          <UiButton\n            variant=\"secondary\"\n            size=\"icon\"\n            class=\"absolute top-1/2 right-3 -translate-y-1/2 rounded-full shadow-md\"\n            :disabled=\"!canScrollNext\"\n            aria-label=\"Next image\"\n            @click=\"scrollNext\"\n          >\n            <Icon name=\"lucide:chevron-right\" />\n          </UiButton>\n        </UiCarousel>\n\n        <ul class=\"mt-4 grid grid-cols-4 gap-3\">\n          <li v-for=\"(image, i) in product.images\" :key=\"image.src\">\n            <button\n              type=\"button\"\n              class=\"bg-muted focus-visible:ring-ring block w-full overflow-hidden rounded-lg border-2 transition focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n              :class=\"\n                i === current ? 'border-primary' : 'border-transparent opacity-70 hover:opacity-100'\n              \"\n              :aria-label=\"`Show image ${i + 1}`\"\n              :aria-current=\"i === current\"\n              @click=\"api?.scrollTo(i)\"\n            >\n              <UiAspectRatio :ratio=\"1\">\n                <img :src=\"image.src\" :alt=\"image.alt\" class=\"size-full object-cover\" />\n              </UiAspectRatio>\n            </button>\n          </li>\n        </ul>\n      </div>\n\n      <div>\n        <p class=\"text-muted-foreground text-sm tracking-wide uppercase\">{{ product.category }}</p>\n        <h1 class=\"mt-2 text-3xl font-bold tracking-tight sm:text-4xl\">{{ product.name }}</h1>\n        <div class=\"mt-4 flex items-center gap-2\">\n          <UiRating\n            :model-value=\"product.rating\"\n            size=\"sm\"\n            icon=\"mdi:star\"\n            filled-icon-class-name=\"text-amber-400\"\n          />\n          <a href=\"#reviews\" class=\"text-muted-foreground text-sm hover:underline\">\n            {{ product.rating }} · {{ product.reviews }} reviews\n          </a>\n        </div>\n        <p class=\"mt-6 flex items-center gap-3\">\n          <span class=\"text-3xl font-semibold\">{{ money.format(product.price) }}</span>\n          <template v-if=\"product.compareAt\">\n            <span class=\"text-muted-foreground text-lg line-through\">\n              {{ money.format(product.compareAt) }}\n            </span>\n            <UiBadge variant=\"destructive\"\n              >Save {{ money.format(product.compareAt - product.price) }}</UiBadge\n            >\n          </template>\n        </p>\n        <p class=\"text-muted-foreground mt-6\">{{ product.description }}</p>\n\n        <fieldset class=\"mt-8\">\n          <legend class=\"mb-3 text-sm font-medium\">\n            Color: <span class=\"text-muted-foreground font-normal\">{{ color.name }}</span>\n          </legend>\n          <div class=\"flex gap-3\">\n            <button\n              v-for=\"c in product.colors\"\n              :key=\"c.hex\"\n              type=\"button\"\n              class=\"focus-visible:ring-ring size-9 rounded-full border transition focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n              :class=\"color.hex === c.hex ? 'ring-primary ring-2 ring-offset-2' : ''\"\n              :style=\"{ backgroundColor: c.hex }\"\n              :aria-label=\"c.name\"\n              :aria-pressed=\"color.hex === c.hex\"\n              @click=\"color = c\"\n            />\n          </div>\n        </fieldset>\n\n        <fieldset class=\"mt-6\">\n          <legend class=\"mb-3 flex w-full items-center justify-between text-sm font-medium\">\n            Size\n            <a href=\"#\" class=\"text-muted-foreground font-normal underline underline-offset-4\">\n              Size guide\n            </a>\n          </legend>\n          <UiToggleGroup\n            type=\"single\"\n            class=\"grid grid-cols-5 gap-2\"\n            :model-value=\"size\"\n            @update:model-value=\"\n              (v) => {\n                size = (v as string) || '';\n                sizeError = false;\n              }\n            \"\n          >\n            <UiToggleGroupItem\n              v-for=\"s in product.sizes\"\n              :key=\"s.label\"\n              variant=\"outline\"\n              :value=\"s.label\"\n              :disabled=\"!s.inStock\"\n              class=\"data-[state=on]:border-primary data-[state=on]:bg-primary data-[state=on]:text-primary-foreground h-11 data-[disabled]:line-through\"\n              :aria-label=\"s.inStock ? `Size ${s.label}` : `Size ${s.label}, out of stock`\"\n            >\n              {{ s.label }}\n            </UiToggleGroupItem>\n          </UiToggleGroup>\n          <p v-if=\"sizeError\" class=\"text-destructive mt-2 text-sm\" role=\"alert\">\n            Please choose a size.\n          </p>\n        </fieldset>\n\n        <div class=\"mt-8 flex gap-3\">\n          <UiButton size=\"lg\" class=\"flex-1\" @click=\"addToCart\">\n            <Icon :name=\"added ? 'lucide:check' : 'lucide:shopping-bag'\" />\n            {{ added ? \"Added to cart\" : \"Add to cart\" }}\n          </UiButton>\n          <UiButton\n            variant=\"outline\"\n            size=\"icon-lg\"\n            :aria-pressed=\"wishlisted\"\n            :aria-label=\"wishlisted ? 'Remove from wishlist' : 'Add to wishlist'\"\n            @click=\"wishlisted = !wishlisted\"\n          >\n            <Icon name=\"lucide:heart\" :class=\"wishlisted ? 'fill-red-500 text-red-500' : ''\" />\n          </UiButton>\n        </div>\n\n        <ul class=\"mt-8 space-y-3 border-t pt-6 text-sm\">\n          <li v-for=\"item in product.highlights\" :key=\"item\" class=\"flex items-start gap-3\">\n            <Icon name=\"lucide:check\" class=\"text-primary mt-0.5 size-4 shrink-0\" />\n            {{ item }}\n          </li>\n        </ul>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    description: string;\n    colors: { name: string; hex: string }[];\n    sizes: { label: string; inStock: boolean }[];\n    images: { src: string; alt: string }[];\n    highlights: string[];\n    details: { title: string; content: string }[];\n  };\n\n  type EmblaLike = {\n    scrollTo: (index: number) => void;\n    selectedScrollSnap: () => number;\n    on: (event: \"select\", callback: () => void) => void;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      product?: Product;\n      breadcrumbs?: { label: string; link: string }[];\n    }>(),\n    {\n      breadcrumbs: () => [\n        { label: \"Home\", link: \"#\" },\n        { label: \"Outerwear\", link: \"#\" },\n        { label: \"Bomber Jacket\", link: \"#\" },\n      ],\n      product: () => ({\n        name: \"Bomber Jacket\",\n        category: \"Outerwear\",\n        price: 138,\n        compareAt: 168,\n        rating: 4.6,\n        reviews: 59,\n        description:\n          \"A lightweight bomber in a soft, water repellent shell with ribbed trims and a zip sleeve pocket. Cut relaxed so it layers easily over knits.\",\n        colors: [\n          { name: \"Rust\", hex: \"#b4532a\" },\n          { name: \"Olive\", hex: \"#4d5d3a\" },\n        ],\n        sizes: [\n          { label: \"XS\", inStock: false },\n          { label: \"S\", inStock: true },\n          { label: \"M\", inStock: true },\n          { label: \"L\", inStock: true },\n          { label: \"XL\", inStock: false },\n        ],\n        images: [\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80\",\n            alt: \"Rust bomber jacket on a hanger\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.5&fp-y=0.22&fp-z=2.6\",\n            alt: \"Ribbed collar and neck label\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.78&fp-y=0.48&fp-z=2.6\",\n            alt: \"Zip pocket on the sleeve\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.4&fp-y=0.85&fp-z=2.4\",\n            alt: \"Ribbed hem and hand pocket\",\n          },\n        ],\n        highlights: [\n          \"Water repellent recycled nylon shell\",\n          \"Ribbed collar, cuffs and hem\",\n          \"Zip sleeve pocket and two hand pockets\",\n          \"Relaxed fit, true to size\",\n        ],\n        details: [\n          {\n            title: \"Materials and care\",\n            content:\n              \"Shell and lining are 100% recycled nylon. Machine wash cold on a gentle cycle and hang to dry. Do not tumble dry or iron.\",\n          },\n          {\n            title: \"Fit\",\n            content:\n              \"Relaxed fit that sits at the hip. The model is 6 feet tall and wears a medium. Size down if you prefer a closer fit.\",\n          },\n          {\n            title: \"Shipping and returns\",\n            content:\n              \"Free standard shipping on orders over $75, delivered in 2 to 4 business days. Returns are free for 30 days.\",\n          },\n        ],\n      }),\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const api = shallowRef<EmblaLike>();\n  const current = ref(0);\n  const color = ref(props.product.colors[0]!);\n  const size = ref(\"\");\n  const sizeError = ref(false);\n  const added = ref(false);\n  const wishlisted = ref(false);\n\n  function onInit(embla: EmblaLike) {\n    api.value = embla;\n    embla.on(\"select\", () => (current.value = embla.selectedScrollSnap()));\n  }\n\n  // Replace this with a call to your cart store or API.\n  function addToCart() {\n    if (!size.value) {\n      sizeError.value = true;\n      return;\n    }\n    added.value = true;\n    setTimeout(() => (added.value = false), 1800);\n  }\n</script>\n","category":"ProductDetail","description":"Product page with a thumbnail gallery and variant pickers. Features: Swipeable gallery with thumbnails that stay in sync, breadcrumbs, color swatches, size picker with out of stock sizes, validation when no size is chosen, add to cart with confirmation and a wishlist toggle","path":"Ecommerce/ProductDetail/BlockProductDetail1.vue","components":["aspect-ratio","badge","breadcrumbs","button","carousel","container","rating","toggle-group"]},{"name":"Product Detail 2","fileName":"BlockProductDetail2.vue","file":"<template>\n  <!--\n    Product page with a sticky buy box and accordion details\n    Features: Stacked photo grid that scrolls while the buy box stays in view, color and size pickers, quantity stepper, running total, add to cart and accordion sections for materials, fit and shipping\n  -->\n  <UiContainer class=\"py-10 lg:py-16\">\n    <div class=\"grid gap-10 lg:grid-cols-[1fr_26rem] lg:gap-14\">\n      <div class=\"grid grid-cols-2 gap-3 sm:gap-4\">\n        <div\n          v-for=\"(image, i) in product.images\"\n          :key=\"image.src\"\n          class=\"bg-muted overflow-hidden rounded-2xl\"\n          :class=\"i === 0 ? 'col-span-2' : ''\"\n        >\n          <UiAspectRatio :ratio=\"i === 0 ? 1 : 4 / 5\">\n            <img\n              :src=\"image.src\"\n              :alt=\"image.alt\"\n              :loading=\"i === 0 ? 'eager' : 'lazy'\"\n              class=\"size-full object-cover\"\n            />\n          </UiAspectRatio>\n        </div>\n      </div>\n\n      <div class=\"lg:sticky lg:top-8 lg:self-start\">\n        <div class=\"flex items-start justify-between gap-4\">\n          <div>\n            <p class=\"text-muted-foreground text-sm tracking-wide uppercase\">\n              {{ product.category }}\n            </p>\n            <h1 class=\"mt-1 text-3xl font-bold tracking-tight\">{{ product.name }}</h1>\n          </div>\n          <UiBadge v-if=\"product.compareAt\" variant=\"destructive\">Sale</UiBadge>\n        </div>\n\n        <div class=\"mt-3 flex items-center gap-2\">\n          <UiRating\n            :model-value=\"product.rating\"\n            size=\"sm\"\n            icon=\"mdi:star\"\n            filled-icon-class-name=\"text-amber-400\"\n          />\n          <span class=\"text-muted-foreground text-sm\">({{ product.reviews }})</span>\n        </div>\n\n        <p class=\"mt-5 flex items-baseline gap-3\">\n          <span class=\"text-2xl font-semibold\">{{ money.format(product.price) }}</span>\n          <span v-if=\"product.compareAt\" class=\"text-muted-foreground line-through\">\n            {{ money.format(product.compareAt) }}\n          </span>\n        </p>\n        <p class=\"text-muted-foreground mt-4 text-sm\">{{ product.description }}</p>\n\n        <fieldset class=\"mt-6\">\n          <legend class=\"mb-2 text-sm font-medium\">\n            Color: <span class=\"text-muted-foreground font-normal\">{{ color.name }}</span>\n          </legend>\n          <div class=\"flex gap-2.5\">\n            <button\n              v-for=\"c in product.colors\"\n              :key=\"c.hex\"\n              type=\"button\"\n              class=\"focus-visible:ring-ring size-8 rounded-full border transition focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n              :class=\"color.hex === c.hex ? 'ring-primary ring-2 ring-offset-2' : ''\"\n              :style=\"{ backgroundColor: c.hex }\"\n              :aria-label=\"c.name\"\n              :aria-pressed=\"color.hex === c.hex\"\n              @click=\"color = c\"\n            />\n          </div>\n        </fieldset>\n\n        <fieldset class=\"mt-5\">\n          <legend class=\"mb-2 text-sm font-medium\">Size</legend>\n          <div class=\"grid grid-cols-5 gap-2\">\n            <button\n              v-for=\"s in product.sizes\"\n              :key=\"s.label\"\n              type=\"button\"\n              :disabled=\"!s.inStock\"\n              class=\"focus-visible:ring-ring h-10 rounded-md border text-sm font-medium transition focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:line-through disabled:opacity-40\"\n              :class=\"\n                size === s.label\n                  ? 'bg-primary text-primary-foreground border-primary'\n                  : 'hover:bg-accent'\n              \"\n              :aria-pressed=\"size === s.label\"\n              @click=\"size = s.label\"\n            >\n              {{ s.label }}\n            </button>\n          </div>\n        </fieldset>\n\n        <div class=\"mt-6 flex items-center gap-3\">\n          <UiNumberField v-model=\"quantity\" :min=\"1\" :max=\"10\" class=\"w-32\">\n            <UiNumberFieldDecrement />\n            <UiNumberFieldInput class=\"text-center\" aria-label=\"Quantity\" />\n            <UiNumberFieldIncrement />\n          </UiNumberField>\n          <UiButton class=\"flex-1\" size=\"lg\" :disabled=\"!size\" @click=\"addToCart\">\n            <Icon :name=\"added ? 'lucide:check' : 'lucide:shopping-bag'\" />\n            {{ added ? \"Added\" : size ? `Add to cart · ${money.format(total)}` : \"Select a size\" }}\n          </UiButton>\n        </div>\n\n        <UiAccordion type=\"single\" collapsible default-value=\"item-0\" class=\"mt-8 border-t\">\n          <UiAccordionItem\n            v-for=\"(detail, i) in product.details\"\n            :key=\"detail.title\"\n            :value=\"`item-${i}`\"\n          >\n            <UiAccordionHeader>\n              <UiAccordionTrigger :title=\"detail.title\" />\n            </UiAccordionHeader>\n            <UiAccordionContent :content=\"detail.content\" />\n          </UiAccordionItem>\n        </UiAccordion>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    description: string;\n    colors: { name: string; hex: string }[];\n    sizes: { label: string; inStock: boolean }[];\n    images: { src: string; alt: string }[];\n    highlights: string[];\n    details: { title: string; content: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      product?: Product;\n    }>(),\n    {\n      product: () => ({\n        name: \"Bomber Jacket\",\n        category: \"Outerwear\",\n        price: 138,\n        compareAt: 168,\n        rating: 4.6,\n        reviews: 59,\n        description:\n          \"A lightweight bomber in a soft, water repellent shell with ribbed trims and a zip sleeve pocket. Cut relaxed so it layers easily over knits.\",\n        colors: [\n          { name: \"Rust\", hex: \"#b4532a\" },\n          { name: \"Olive\", hex: \"#4d5d3a\" },\n        ],\n        sizes: [\n          { label: \"XS\", inStock: false },\n          { label: \"S\", inStock: true },\n          { label: \"M\", inStock: true },\n          { label: \"L\", inStock: true },\n          { label: \"XL\", inStock: false },\n        ],\n        images: [\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80\",\n            alt: \"Rust bomber jacket on a hanger\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.5&fp-y=0.22&fp-z=2.6\",\n            alt: \"Ribbed collar and neck label\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.78&fp-y=0.48&fp-z=2.6\",\n            alt: \"Zip pocket on the sleeve\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.4&fp-y=0.85&fp-z=2.4\",\n            alt: \"Ribbed hem and hand pocket\",\n          },\n        ],\n        highlights: [\n          \"Water repellent recycled nylon shell\",\n          \"Ribbed collar, cuffs and hem\",\n          \"Zip sleeve pocket and two hand pockets\",\n          \"Relaxed fit, true to size\",\n        ],\n        details: [\n          {\n            title: \"Materials and care\",\n            content:\n              \"Shell and lining are 100% recycled nylon. Machine wash cold on a gentle cycle and hang to dry. Do not tumble dry or iron.\",\n          },\n          {\n            title: \"Fit\",\n            content:\n              \"Relaxed fit that sits at the hip. The model is 6 feet tall and wears a medium. Size down if you prefer a closer fit.\",\n          },\n          {\n            title: \"Shipping and returns\",\n            content:\n              \"Free standard shipping on orders over $75, delivered in 2 to 4 business days. Returns are free for 30 days.\",\n          },\n        ],\n      }),\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const color = ref(props.product.colors[0]!);\n  const size = ref(\"\");\n  const quantity = ref(1);\n  const added = ref(false);\n\n  const total = computed(() => props.product.price * quantity.value);\n\n  // Replace this with a call to your cart store or API.\n  function addToCart() {\n    added.value = true;\n    setTimeout(() => (added.value = false), 1800);\n  }\n</script>\n","category":"ProductDetail","description":"Product page with a sticky buy box and accordion details. Features: Stacked photo grid that scrolls while the buy box stays in view, color and size pickers, quantity stepper, running total, add to cart and accordion sections for materials, fit and shipping","path":"Ecommerce/ProductDetail/BlockProductDetail2.vue","components":["accordion","aspect-ratio","badge","button","container","number-field","rating"]},{"name":"Product Detail 3","fileName":"BlockProductDetail3.vue","file":"<template>\n  <!--\n    Product page with a photo mosaic and tabs\n    Features: Header with price and rating, a four photo mosaic, tabs for details, fit and reviews, and a sticky purchase card with a size select and add to cart\n  -->\n  <UiContainer class=\"py-10 lg:py-16\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <p class=\"text-muted-foreground text-sm tracking-wide uppercase\">{{ product.category }}</p>\n        <h1 class=\"mt-1 text-3xl font-bold tracking-tight sm:text-4xl\">{{ product.name }}</h1>\n        <div class=\"mt-3 flex items-center gap-2\">\n          <UiRating\n            :model-value=\"product.rating\"\n            size=\"sm\"\n            icon=\"mdi:star\"\n            filled-icon-class-name=\"text-amber-400\"\n          />\n          <span class=\"text-muted-foreground text-sm\">{{ product.reviews }} reviews</span>\n        </div>\n      </div>\n      <p class=\"flex items-baseline gap-3\">\n        <span class=\"text-3xl font-semibold\">{{ money.format(product.price) }}</span>\n        <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-lg line-through\">\n          {{ money.format(product.compareAt) }}\n        </span>\n      </p>\n    </div>\n\n    <div\n      class=\"mt-8 grid h-[360px] grid-cols-4 grid-rows-2 gap-3 sm:h-[460px] lg:h-[560px] lg:gap-4\"\n    >\n      <div class=\"bg-muted col-span-2 row-span-2 overflow-hidden rounded-2xl\">\n        <img\n          :src=\"product.images[0]!.src\"\n          :alt=\"product.images[0]!.alt\"\n          class=\"size-full object-cover\"\n        />\n      </div>\n      <div class=\"bg-muted col-span-2 overflow-hidden rounded-2xl\">\n        <img\n          :src=\"product.images[1]!.src\"\n          :alt=\"product.images[1]!.alt\"\n          class=\"size-full object-cover\"\n        />\n      </div>\n      <div class=\"bg-muted overflow-hidden rounded-2xl\">\n        <img\n          :src=\"product.images[2]!.src\"\n          :alt=\"product.images[2]!.alt\"\n          class=\"size-full object-cover\"\n        />\n      </div>\n      <div class=\"bg-muted overflow-hidden rounded-2xl\">\n        <img\n          :src=\"product.images[3]!.src\"\n          :alt=\"product.images[3]!.alt\"\n          class=\"size-full object-cover\"\n        />\n      </div>\n    </div>\n\n    <div class=\"mt-12 grid gap-10 lg:grid-cols-[1fr_22rem] lg:gap-14\">\n      <UiTabs default-value=\"details\">\n        <UiTabsList class=\"grid w-full grid-cols-3 sm:inline-flex sm:w-auto\">\n          <UiTabsTrigger value=\"details\">Details</UiTabsTrigger>\n          <UiTabsTrigger value=\"care\">Fit and care</UiTabsTrigger>\n          <UiTabsTrigger value=\"reviews\">Reviews</UiTabsTrigger>\n        </UiTabsList>\n\n        <UiTabsContent value=\"details\" class=\"pt-4\">\n          <p class=\"text-muted-foreground\">{{ product.description }}</p>\n          <ul class=\"mt-6 space-y-3\">\n            <li v-for=\"item in product.highlights\" :key=\"item\" class=\"flex items-start gap-3\">\n              <Icon name=\"lucide:check\" class=\"text-primary mt-0.5 size-4 shrink-0\" />\n              {{ item }}\n            </li>\n          </ul>\n        </UiTabsContent>\n\n        <UiTabsContent value=\"care\" class=\"pt-4\">\n          <dl class=\"divide-y\">\n            <div v-for=\"detail in product.details\" :key=\"detail.title\" class=\"py-4\">\n              <dt class=\"font-medium\">{{ detail.title }}</dt>\n              <dd class=\"text-muted-foreground mt-1 text-sm\">{{ detail.content }}</dd>\n            </div>\n          </dl>\n        </UiTabsContent>\n\n        <UiTabsContent value=\"reviews\" class=\"pt-4\">\n          <ul class=\"divide-y\">\n            <li v-for=\"review in reviews.slice(0, 3)\" :key=\"review.id\" class=\"py-5\">\n              <div class=\"flex items-center gap-3\">\n                <UiAvatar :src=\"review.avatar\" :fallback=\"review.name[0]\" class=\"size-9\" />\n                <div>\n                  <p class=\"text-sm font-medium\">{{ review.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">{{ review.date }}</p>\n                </div>\n                <UiRating\n                  :model-value=\"review.rating\"\n                  size=\"sm\"\n                  icon=\"mdi:star\"\n                  filled-icon-class-name=\"text-amber-400\"\n                  class=\"ml-auto\"\n                />\n              </div>\n              <p class=\"mt-3 text-sm font-medium\">{{ review.title }}</p>\n              <p class=\"text-muted-foreground mt-1 text-sm\">{{ review.body }}</p>\n            </li>\n          </ul>\n          <UiButton variant=\"outline\" class=\"mt-2\">Read all {{ product.reviews }} reviews</UiButton>\n        </UiTabsContent>\n      </UiTabs>\n\n      <aside class=\"lg:sticky lg:top-8 lg:self-start\">\n        <UiCard>\n          <UiCardContent class=\"space-y-5\">\n            <fieldset>\n              <legend class=\"mb-2 text-sm font-medium\">\n                Color: <span class=\"text-muted-foreground font-normal\">{{ color.name }}</span>\n              </legend>\n              <div class=\"flex gap-2.5\">\n                <button\n                  v-for=\"c in product.colors\"\n                  :key=\"c.hex\"\n                  type=\"button\"\n                  class=\"focus-visible:ring-ring size-8 rounded-full border transition focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n                  :class=\"color.hex === c.hex ? 'ring-primary ring-2 ring-offset-2' : ''\"\n                  :style=\"{ backgroundColor: c.hex }\"\n                  :aria-label=\"c.name\"\n                  :aria-pressed=\"color.hex === c.hex\"\n                  @click=\"color = c\"\n                />\n              </div>\n            </fieldset>\n\n            <div>\n              <UiLabel for=\"size-select\" class=\"mb-2\">Size</UiLabel>\n              <UiSelect v-model=\"size\">\n                <UiSelectTrigger id=\"size-select\" class=\"w-full\">\n                  <UiSelectValue placeholder=\"Select a size\" />\n                </UiSelectTrigger>\n                <UiSelectContent>\n                  <UiSelectItem\n                    v-for=\"s in product.sizes\"\n                    :key=\"s.label\"\n                    :value=\"s.label\"\n                    :disabled=\"!s.inStock\"\n                  >\n                    {{ s.label }}{{ s.inStock ? \"\" : \" · out of stock\" }}\n                  </UiSelectItem>\n                </UiSelectContent>\n              </UiSelect>\n            </div>\n\n            <UiButton class=\"w-full\" size=\"lg\" :disabled=\"!size\" @click=\"addToCart\">\n              <Icon :name=\"added ? 'lucide:check' : 'lucide:shopping-bag'\" />\n              {{ added ? \"Added to cart\" : \"Add to cart\" }}\n            </UiButton>\n            <ul class=\"text-muted-foreground space-y-2 text-sm\">\n              <li class=\"flex items-center gap-2.5\">\n                <Icon name=\"lucide:truck\" class=\"size-4\" />\n                Free shipping over $75\n              </li>\n              <li class=\"flex items-center gap-2.5\">\n                <Icon name=\"lucide:rotate-ccw\" class=\"size-4\" />\n                Free returns for 30 days\n              </li>\n            </ul>\n          </UiCardContent>\n        </UiCard>\n      </aside>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    description: string;\n    colors: { name: string; hex: string }[];\n    sizes: { label: string; inStock: boolean }[];\n    images: { src: string; alt: string }[];\n    highlights: string[];\n    details: { title: string; content: string }[];\n  };\n\n  type Review = {\n    id: number;\n    name: string;\n    avatar: string;\n    rating: number;\n    title: string;\n    body: string;\n    date: string;\n    size: string;\n    verified: boolean;\n    helpful: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      product?: Product;\n      reviews?: Review[];\n    }>(),\n    {\n      product: () => ({\n        name: \"Bomber Jacket\",\n        category: \"Outerwear\",\n        price: 138,\n        compareAt: 168,\n        rating: 4.6,\n        reviews: 59,\n        description:\n          \"A lightweight bomber in a soft, water repellent shell with ribbed trims and a zip sleeve pocket. Cut relaxed so it layers easily over knits.\",\n        colors: [\n          { name: \"Rust\", hex: \"#b4532a\" },\n          { name: \"Olive\", hex: \"#4d5d3a\" },\n        ],\n        sizes: [\n          { label: \"XS\", inStock: false },\n          { label: \"S\", inStock: true },\n          { label: \"M\", inStock: true },\n          { label: \"L\", inStock: true },\n          { label: \"XL\", inStock: false },\n        ],\n        images: [\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80\",\n            alt: \"Rust bomber jacket on a hanger\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.5&fp-y=0.22&fp-z=2.6\",\n            alt: \"Ribbed collar and neck label\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.78&fp-y=0.48&fp-z=2.6\",\n            alt: \"Zip pocket on the sleeve\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.4&fp-y=0.85&fp-z=2.4\",\n            alt: \"Ribbed hem and hand pocket\",\n          },\n        ],\n        highlights: [\n          \"Water repellent recycled nylon shell\",\n          \"Ribbed collar, cuffs and hem\",\n          \"Zip sleeve pocket and two hand pockets\",\n          \"Relaxed fit, true to size\",\n        ],\n        details: [\n          {\n            title: \"Materials and care\",\n            content:\n              \"Shell and lining are 100% recycled nylon. Machine wash cold on a gentle cycle and hang to dry. Do not tumble dry or iron.\",\n          },\n          {\n            title: \"Fit\",\n            content:\n              \"Relaxed fit that sits at the hip. The model is 6 feet tall and wears a medium. Size down if you prefer a closer fit.\",\n          },\n          {\n            title: \"Shipping and returns\",\n            content:\n              \"Free standard shipping on orders over $75, delivered in 2 to 4 business days. Returns are free for 30 days.\",\n          },\n        ],\n      }),\n      reviews: () => [\n        {\n          id: 1,\n          name: \"Sarah Johnson\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n          rating: 5,\n          title: \"Fits exactly like the photos\",\n          body: \"The color is richer in person and the shell feels much more expensive than the price. I wear it almost every day.\",\n          date: \"Oct 2, 2026\",\n          size: \"M\",\n          verified: true,\n          helpful: 12,\n        },\n        {\n          id: 2,\n          name: \"Michael Chen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n          rating: 5,\n          title: \"Great layering piece\",\n          body: \"Light enough for early autumn and roomy enough for a knit underneath. The sleeve pocket is surprisingly useful.\",\n          date: \"Sep 24, 2026\",\n          size: \"L\",\n          verified: true,\n          helpful: 8,\n        },\n        {\n          id: 3,\n          name: \"Emily Rodriguez\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n          rating: 4,\n          title: \"Lovely, runs a little roomy\",\n          body: \"I would size down if you are between sizes. The finish and the ribbing are excellent and it held up in light rain.\",\n          date: \"Sep 19, 2026\",\n          size: \"S\",\n          verified: true,\n          helpful: 5,\n        },\n        {\n          id: 4,\n          name: \"Priya Nair\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n          rating: 5,\n          title: \"Bought a second one\",\n          body: \"Ordered the olive after wearing the rust for a month. Shipping took two days and returns were never needed.\",\n          date: \"Sep 11, 2026\",\n          size: \"M\",\n          verified: true,\n          helpful: 4,\n        },\n        {\n          id: 5,\n          name: \"Noah Fischer\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n          rating: 3,\n          title: \"Good jacket, sleeves are long\",\n          body: \"The quality is there but the sleeves run long on me. Customer support was quick and offered an exchange.\",\n          date: \"Aug 30, 2026\",\n          size: \"L\",\n          verified: false,\n          helpful: 3,\n        },\n        {\n          id: 6,\n          name: \"Hannah Lee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n          rating: 5,\n          title: \"My new favorite\",\n          body: \"Soft, light and it goes with everything. Easily the best jacket I have bought this year.\",\n          date: \"Aug 21, 2026\",\n          size: \"S\",\n          verified: true,\n          helpful: 2,\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const color = ref(props.product.colors[0]!);\n  const size = ref(\"\");\n  const added = ref(false);\n\n  // Replace this with a call to your cart store or API.\n  function addToCart() {\n    added.value = true;\n    setTimeout(() => (added.value = false), 1800);\n  }\n</script>\n","category":"ProductDetail","description":"Product page with a photo mosaic and tabs. Features: Header with price and rating, a four photo mosaic, tabs for details, fit and reviews, and a sticky purchase card with a size select and add to cart","path":"Ecommerce/ProductDetail/BlockProductDetail3.vue","components":["avatar","button","card","container","label","rating","select","tabs"]},{"name":"Product Detail 4","fileName":"BlockProductDetail4.vue","file":"<template>\n  <!--\n    Product page with quantity stepper and cart confirmation\n    Features: Size select, quantity stepper with a live subtotal announced to screen readers, add to cart that reveals an inline confirmation with view cart and continue shopping actions, and a cart counter in the header\n  -->\n  <UiContainer class=\"py-10 lg:py-16\">\n    <div class=\"mb-8 flex items-center justify-between\">\n      <UiBreadcrumbs :items=\"breadcrumbs\" />\n      <UiButton variant=\"outline\" size=\"sm\" :aria-label=\"`Cart, ${cartCount} items`\">\n        <Icon name=\"lucide:shopping-bag\" />\n        Cart\n        <UiBadge size=\"sm\" shape=\"pill\">{{ cartCount }}</UiBadge>\n      </UiButton>\n    </div>\n\n    <div class=\"grid items-start gap-10 lg:grid-cols-2 lg:gap-16\">\n      <div class=\"bg-muted overflow-hidden rounded-2xl\">\n        <UiAspectRatio :ratio=\"4 / 5\">\n          <img\n            :src=\"product.images[0]!.src\"\n            :alt=\"product.images[0]!.alt\"\n            class=\"size-full object-cover\"\n          />\n        </UiAspectRatio>\n      </div>\n\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight sm:text-4xl\">{{ product.name }}</h1>\n        <div class=\"mt-3 flex items-center gap-2\">\n          <UiRating\n            :model-value=\"product.rating\"\n            size=\"sm\"\n            icon=\"mdi:star\"\n            filled-icon-class-name=\"text-amber-400\"\n          />\n          <span class=\"text-muted-foreground text-sm\">{{ product.reviews }} reviews</span>\n        </div>\n        <p class=\"mt-5 flex items-baseline gap-3\">\n          <span class=\"text-3xl font-semibold\">{{ money.format(product.price) }}</span>\n          <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-lg line-through\">\n            {{ money.format(product.compareAt) }}\n          </span>\n        </p>\n        <p class=\"text-muted-foreground mt-5\">{{ product.description }}</p>\n\n        <div class=\"mt-8 grid gap-6 sm:grid-cols-2\">\n          <div>\n            <UiLabel for=\"detail-size\" class=\"mb-2\">Size</UiLabel>\n            <UiSelect v-model=\"size\">\n              <UiSelectTrigger id=\"detail-size\" class=\"w-full\">\n                <UiSelectValue placeholder=\"Select a size\" />\n              </UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem\n                  v-for=\"s in product.sizes\"\n                  :key=\"s.label\"\n                  :value=\"s.label\"\n                  :disabled=\"!s.inStock\"\n                >\n                  {{ s.label }}{{ s.inStock ? \"\" : \" · out of stock\" }}\n                </UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n          <div>\n            <UiLabel for=\"detail-qty\" class=\"mb-2\">Quantity</UiLabel>\n            <UiNumberField v-model=\"quantity\" :min=\"1\" :max=\"stock\">\n              <UiNumberFieldDecrement />\n              <UiNumberFieldInput id=\"detail-qty\" class=\"text-center\" />\n              <UiNumberFieldIncrement />\n            </UiNumberField>\n          </div>\n        </div>\n\n        <p class=\"text-muted-foreground mt-3 flex items-center gap-2 text-sm\">\n          <span class=\"size-2 rounded-full bg-green-500\" aria-hidden=\"true\" />\n          In stock, only {{ stock }} left in this color\n        </p>\n\n        <div class=\"mt-6 flex items-center justify-between border-t pt-6\">\n          <span class=\"text-muted-foreground\">Subtotal</span>\n          <span class=\"text-xl font-semibold\" aria-live=\"polite\">{{ money.format(subtotal) }}</span>\n        </div>\n\n        <UiButton class=\"mt-6 w-full\" size=\"lg\" :disabled=\"!size\" @click=\"addToCart\">\n          <Icon name=\"lucide:shopping-bag\" />\n          {{ size ? \"Add to cart\" : \"Select a size to continue\" }}\n        </UiButton>\n\n        <Transition\n          enter-active-class=\"transition duration-300\"\n          enter-from-class=\"opacity-0 translate-y-2\"\n          leave-active-class=\"transition duration-200\"\n          leave-to-class=\"opacity-0\"\n        >\n          <div\n            v-if=\"confirmation\"\n            class=\"bg-muted/50 mt-6 rounded-xl border p-4\"\n            role=\"status\"\n            aria-live=\"polite\"\n          >\n            <div class=\"flex items-start gap-3\">\n              <span\n                class=\"grid size-8 shrink-0 place-items-center rounded-full bg-green-500/15 text-green-600 dark:text-green-400\"\n              >\n                <Icon name=\"lucide:check\" class=\"size-4\" />\n              </span>\n              <div class=\"flex-1\">\n                <p class=\"font-medium\">Added to your cart</p>\n                <p class=\"text-muted-foreground text-sm\">\n                  {{ confirmation.quantity }} × {{ product.name }}, size {{ confirmation.size }}\n                </p>\n                <div class=\"mt-3 flex flex-wrap gap-2\">\n                  <UiButton size=\"sm\">View cart</UiButton>\n                  <UiButton size=\"sm\" variant=\"outline\" @click=\"confirmation = null\">\n                    Continue shopping\n                  </UiButton>\n                </div>\n              </div>\n            </div>\n          </div>\n        </Transition>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    description: string;\n    colors: { name: string; hex: string }[];\n    sizes: { label: string; inStock: boolean }[];\n    images: { src: string; alt: string }[];\n    highlights: string[];\n    details: { title: string; content: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      product?: Product;\n      /** How many units are available. Caps the quantity stepper. */\n      stock?: number;\n      breadcrumbs?: { label: string; link: string }[];\n    }>(),\n    {\n      stock: 6,\n      breadcrumbs: () => [\n        { label: \"Home\", link: \"#\" },\n        { label: \"Outerwear\", link: \"#\" },\n        { label: \"Bomber Jacket\", link: \"#\" },\n      ],\n      product: () => ({\n        name: \"Bomber Jacket\",\n        category: \"Outerwear\",\n        price: 138,\n        compareAt: 168,\n        rating: 4.6,\n        reviews: 59,\n        description:\n          \"A lightweight bomber in a soft, water repellent shell with ribbed trims and a zip sleeve pocket. Cut relaxed so it layers easily over knits.\",\n        colors: [\n          { name: \"Rust\", hex: \"#b4532a\" },\n          { name: \"Olive\", hex: \"#4d5d3a\" },\n        ],\n        sizes: [\n          { label: \"XS\", inStock: false },\n          { label: \"S\", inStock: true },\n          { label: \"M\", inStock: true },\n          { label: \"L\", inStock: true },\n          { label: \"XL\", inStock: false },\n        ],\n        images: [\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80\",\n            alt: \"Rust bomber jacket on a hanger\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.5&fp-y=0.22&fp-z=2.6\",\n            alt: \"Ribbed collar and neck label\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.78&fp-y=0.48&fp-z=2.6\",\n            alt: \"Zip pocket on the sleeve\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.4&fp-y=0.85&fp-z=2.4\",\n            alt: \"Ribbed hem and hand pocket\",\n          },\n        ],\n        highlights: [\n          \"Water repellent recycled nylon shell\",\n          \"Ribbed collar, cuffs and hem\",\n          \"Zip sleeve pocket and two hand pockets\",\n          \"Relaxed fit, true to size\",\n        ],\n        details: [\n          {\n            title: \"Materials and care\",\n            content:\n              \"Shell and lining are 100% recycled nylon. Machine wash cold on a gentle cycle and hang to dry. Do not tumble dry or iron.\",\n          },\n          {\n            title: \"Fit\",\n            content:\n              \"Relaxed fit that sits at the hip. The model is 6 feet tall and wears a medium. Size down if you prefer a closer fit.\",\n          },\n          {\n            title: \"Shipping and returns\",\n            content:\n              \"Free standard shipping on orders over $75, delivered in 2 to 4 business days. Returns are free for 30 days.\",\n          },\n        ],\n      }),\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const size = ref(\"\");\n  const quantity = ref(1);\n  const cartCount = ref(2);\n  const confirmation = ref<{ size: string; quantity: number } | null>(null);\n\n  const subtotal = computed(() => props.product.price * quantity.value);\n\n  // Replace this with a call to your cart store or API.\n  function addToCart() {\n    cartCount.value += quantity.value;\n    confirmation.value = { size: size.value, quantity: quantity.value };\n  }\n</script>\n","category":"ProductDetail","description":"Product page with quantity stepper and cart confirmation. Features: Size select, quantity stepper with a live subtotal announced to screen readers, add to cart that reveals an inline confirmation with view cart and continue shopping actions, and a cart counter in the header","path":"Ecommerce/ProductDetail/BlockProductDetail4.vue","components":["aspect-ratio","badge","breadcrumbs","button","container","label","number-field","rating","select"]},{"name":"Product Detail 5","fileName":"BlockProductDetail5.vue","file":"<template>\n  <!--\n    Customer reviews with rating breakdown and a review form\n    Features: Average score with star distribution bars that double as filters, sort select, verified purchase badges, helpful votes, show more, and a write a review dialog validated with vee-validate that adds your review to the list\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"grid gap-12 lg:grid-cols-[20rem_1fr] lg:gap-16\">\n      <div class=\"lg:sticky lg:top-8 lg:self-start\">\n        <h2 class=\"text-2xl font-bold tracking-tight\">Customer reviews</h2>\n        <div class=\"mt-4 flex items-center gap-3\">\n          <span class=\"text-5xl font-bold tabular-nums\">{{ average }}</span>\n          <div>\n            <UiRating\n              :model-value=\"Number(average)\"\n              icon=\"mdi:star\"\n              filled-icon-class-name=\"text-amber-400\"\n            />\n            <p class=\"text-muted-foreground mt-1 text-sm\">Based on {{ total }} reviews</p>\n          </div>\n        </div>\n\n        <ul class=\"mt-6 space-y-2\" aria-label=\"Filter reviews by rating\">\n          <li v-for=\"row in distribution\" :key=\"row.stars\">\n            <button\n              type=\"button\"\n              class=\"hover:bg-accent focus-visible:ring-ring group flex w-full items-center gap-3 rounded-md px-2 py-1 text-sm transition focus-visible:ring-2 focus-visible:outline-none\"\n              :class=\"starFilter === row.stars ? 'bg-accent' : ''\"\n              :aria-pressed=\"starFilter === row.stars\"\n              :aria-label=\"`${row.count} reviews with ${row.stars} stars`\"\n              @click=\"starFilter = starFilter === row.stars ? null : row.stars\"\n            >\n              <span class=\"flex w-8 items-center gap-1 tabular-nums\">\n                {{ row.stars }}\n                <Icon name=\"mdi:star\" class=\"size-3.5 text-amber-400\" />\n              </span>\n              <UiProgress :model-value=\"(row.count / total) * 100\" class=\"h-2 flex-1\" />\n              <span class=\"text-muted-foreground w-7 text-right tabular-nums\">{{ row.count }}</span>\n            </button>\n          </li>\n        </ul>\n\n        <UiDialog v-model:open=\"formOpen\">\n          <UiDialogTrigger as-child>\n            <UiButton class=\"mt-8 w-full\">\n              <Icon name=\"lucide:pen-line\" />\n              Write a review\n            </UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent class=\"sm:max-w-lg\">\n            <UiDialogHeader>\n              <UiDialogTitle>Write a review</UiDialogTitle>\n              <UiDialogDescription>\n                Tell other shoppers what you think of the {{ productName }}.\n              </UiDialogDescription>\n            </UiDialogHeader>\n            <form class=\"space-y-4\" novalidate @submit.prevent=\"submit\">\n              <UiVeeRating name=\"rating\" label=\"Your rating\" icon=\"mdi:star\" required />\n              <UiVeeInput name=\"title\" label=\"Headline\" placeholder=\"Sum it up in a few words\" />\n              <UiVeeTextarea\n                name=\"body\"\n                label=\"Your review\"\n                placeholder=\"What did you like or dislike? How was the fit?\"\n                :rows=\"4\"\n              />\n              <UiDialogFooter>\n                <UiButton type=\"button\" variant=\"outline\" @click=\"formOpen = false\">\n                  Cancel\n                </UiButton>\n                <UiButton type=\"submit\" :loading=\"isSubmitting\">Submit review</UiButton>\n              </UiDialogFooter>\n            </form>\n          </UiDialogContent>\n        </UiDialog>\n      </div>\n\n      <div>\n        <div class=\"flex flex-wrap items-center justify-between gap-3 border-b pb-4\">\n          <p class=\"text-muted-foreground text-sm\" role=\"status\" aria-live=\"polite\">\n            Showing {{ visible.length }} of {{ sorted.length }} reviews\n            <button\n              v-if=\"starFilter\"\n              type=\"button\"\n              class=\"text-foreground ml-2 underline underline-offset-4\"\n              @click=\"starFilter = null\"\n            >\n              Clear {{ starFilter }} star filter\n            </button>\n          </p>\n          <UiSelect v-model=\"sort\">\n            <UiSelectTrigger class=\"w-44\" size=\"sm\" aria-label=\"Sort reviews\">\n              <UiSelectValue />\n            </UiSelectTrigger>\n            <UiSelectContent>\n              <UiSelectItem value=\"recent\">Most recent</UiSelectItem>\n              <UiSelectItem value=\"helpful\">Most helpful</UiSelectItem>\n              <UiSelectItem value=\"high\">Highest rated</UiSelectItem>\n              <UiSelectItem value=\"low\">Lowest rated</UiSelectItem>\n            </UiSelectContent>\n          </UiSelect>\n        </div>\n\n        <ul class=\"divide-y\">\n          <li v-for=\"review in visible\" :key=\"review.id\" class=\"py-6\">\n            <div class=\"flex items-center gap-3\">\n              <UiAvatar :src=\"review.avatar\" :fallback=\"review.name[0]\" class=\"size-10\" />\n              <div>\n                <p class=\"text-sm font-medium\">{{ review.name }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ review.date }}</p>\n              </div>\n              <UiBadge v-if=\"review.verified\" variant=\"outline\" class=\"ml-auto gap-1\">\n                <Icon name=\"lucide:badge-check\" />\n                Verified purchase\n              </UiBadge>\n            </div>\n            <div class=\"mt-4 flex items-center gap-2\">\n              <UiRating\n                :model-value=\"review.rating\"\n                size=\"sm\"\n                icon=\"mdi:star\"\n                filled-icon-class-name=\"text-amber-400\"\n              />\n              <h3 class=\"text-sm font-semibold\">{{ review.title }}</h3>\n            </div>\n            <p class=\"text-muted-foreground mt-2 text-sm leading-relaxed\">{{ review.body }}</p>\n            <div class=\"mt-4 flex items-center justify-between text-xs\">\n              <span class=\"text-muted-foreground\">Size purchased: {{ review.size }}</span>\n              <UiButton\n                variant=\"ghost\"\n                size=\"xs\"\n                :aria-pressed=\"voted.includes(review.id)\"\n                @click=\"toggleHelpful(review.id)\"\n              >\n                <Icon name=\"lucide:thumbs-up\" />\n                Helpful ({{ review.helpful + (voted.includes(review.id) ? 1 : 0) }})\n              </UiButton>\n            </div>\n          </li>\n        </ul>\n\n        <p v-if=\"!sorted.length\" class=\"text-muted-foreground py-12 text-center\">\n          No reviews with that rating yet.\n        </p>\n        <UiButton\n          v-if=\"shown < sorted.length\"\n          variant=\"outline\"\n          class=\"mt-4 w-full\"\n          @click=\"shown += 3\"\n        >\n          Show more reviews\n        </UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { number, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  type Review = {\n    id: number;\n    name: string;\n    avatar: string;\n    rating: number;\n    title: string;\n    body: string;\n    date: string;\n    size: string;\n    verified: boolean;\n    helpful: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      productName?: string;\n      reviews?: Review[];\n      /** Review counts per star rating. Pass your real totals. */\n      distribution?: { stars: number; count: number }[];\n    }>(),\n    {\n      productName: \"Bomber Jacket\",\n      distribution: () => [\n        { stars: 5, count: 44 },\n        { stars: 4, count: 9 },\n        { stars: 3, count: 3 },\n        { stars: 2, count: 2 },\n        { stars: 1, count: 1 },\n      ],\n      reviews: () => [\n        {\n          id: 1,\n          name: \"Sarah Johnson\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n          rating: 5,\n          title: \"Fits exactly like the photos\",\n          body: \"The color is richer in person and the shell feels much more expensive than the price. I wear it almost every day.\",\n          date: \"Oct 2, 2026\",\n          size: \"M\",\n          verified: true,\n          helpful: 12,\n        },\n        {\n          id: 2,\n          name: \"Michael Chen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n          rating: 5,\n          title: \"Great layering piece\",\n          body: \"Light enough for early autumn and roomy enough for a knit underneath. The sleeve pocket is surprisingly useful.\",\n          date: \"Sep 24, 2026\",\n          size: \"L\",\n          verified: true,\n          helpful: 8,\n        },\n        {\n          id: 3,\n          name: \"Emily Rodriguez\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n          rating: 4,\n          title: \"Lovely, runs a little roomy\",\n          body: \"I would size down if you are between sizes. The finish and the ribbing are excellent and it held up in light rain.\",\n          date: \"Sep 19, 2026\",\n          size: \"S\",\n          verified: true,\n          helpful: 5,\n        },\n        {\n          id: 4,\n          name: \"Priya Nair\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n          rating: 5,\n          title: \"Bought a second one\",\n          body: \"Ordered the olive after wearing the rust for a month. Shipping took two days and returns were never needed.\",\n          date: \"Sep 11, 2026\",\n          size: \"M\",\n          verified: true,\n          helpful: 4,\n        },\n        {\n          id: 5,\n          name: \"Noah Fischer\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n          rating: 3,\n          title: \"Good jacket, sleeves are long\",\n          body: \"The quality is there but the sleeves run long on me. Customer support was quick and offered an exchange.\",\n          date: \"Aug 30, 2026\",\n          size: \"L\",\n          verified: false,\n          helpful: 3,\n        },\n        {\n          id: 6,\n          name: \"Hannah Lee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n          rating: 5,\n          title: \"My new favorite\",\n          body: \"Soft, light and it goes with everything. Easily the best jacket I have bought this year.\",\n          date: \"Aug 21, 2026\",\n          size: \"S\",\n          verified: true,\n          helpful: 2,\n        },\n      ],\n    }\n  );\n\n  const list = ref<Review[]>([...props.reviews]);\n  const sort = ref(\"recent\");\n  const starFilter = ref<number | null>(null);\n  const shown = ref(4);\n  const voted = ref<number[]>([]);\n  const formOpen = ref(false);\n\n  const total = computed(() => props.distribution.reduce((sum, row) => sum + row.count, 0));\n  const average = computed(() =>\n    (props.distribution.reduce((sum, row) => sum + row.stars * row.count, 0) / total.value).toFixed(\n      1\n    )\n  );\n\n  const sorted = computed(() => {\n    const filtered = starFilter.value\n      ? list.value.filter((r) => r.rating === starFilter.value)\n      : [...list.value];\n    if (sort.value === \"helpful\") return filtered.sort((a, b) => b.helpful - a.helpful);\n    if (sort.value === \"high\") return filtered.sort((a, b) => b.rating - a.rating);\n    if (sort.value === \"low\") return filtered.sort((a, b) => a.rating - b.rating);\n    return filtered.sort((a, b) => Date.parse(b.date) - Date.parse(a.date));\n  });\n  const visible = computed(() => sorted.value.slice(0, shown.value));\n\n  watch([sort, starFilter], () => (shown.value = 4));\n\n  function toggleHelpful(id: number) {\n    voted.value = voted.value.includes(id)\n      ? voted.value.filter((v) => v !== id)\n      : [...voted.value, id];\n  }\n\n  const schema = object({\n    rating: number().min(1, \"Please choose a rating\").required().label(\"Rating\"),\n    title: string().required().min(3).label(\"Headline\"),\n    body: string()\n      .required()\n      .min(20, \"Tell us a little more, at least 20 characters\")\n      .label(\"Review\"),\n  });\n\n  const { handleSubmit, isSubmitting, resetForm } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n    initialValues: { rating: 0, title: \"\", body: \"\" },\n  });\n\n  // Replace the timeout with a request that saves the review.\n  const submit = handleSubmit(async (values) => {\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    list.value.unshift({\n      id: Date.now(),\n      name: \"You\",\n      avatar: \"https://i.pravatar.cc/120?img=5\",\n      rating: values.rating,\n      title: values.title,\n      body: values.body,\n      date: new Date().toLocaleDateString(\"en-US\", {\n        month: \"short\",\n        day: \"numeric\",\n        year: \"numeric\",\n      }),\n      size: \"M\",\n      verified: false,\n      helpful: 0,\n    });\n    resetForm();\n    formOpen.value = false;\n  });\n</script>\n","category":"ProductDetail","description":"Customer reviews with rating breakdown and a review form. Features: Average score with star distribution bars that double as filters, sort select, verified purchase badges, helpful votes, show more, and a write a review dialog validated with vee-validate that adds your review to the list","path":"Ecommerce/ProductDetail/BlockProductDetail5.vue","components":["avatar","badge","button","container","dialog","progress","rating","select","vee-input","vee-rating","vee-textarea"]},{"name":"Product Detail 6","fileName":"BlockProductDetail6.vue","file":"<template>\n  <!--\n    Complete the look related products\n    Features: Row of related products where choosing a size on hover adds the item straight to the cart, sizes stay visible on touch screens, items without sizes get a plain add button and every card confirms what was added\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h2 class=\"text-2xl font-bold tracking-tight sm:text-3xl\">{{ title }}</h2>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <p class=\"text-sm\" role=\"status\" aria-live=\"polite\">\n        <template v-if=\"Object.keys(added).length\">\n          <Icon name=\"lucide:check\" class=\"mr-1 inline size-4 text-green-600 dark:text-green-400\" />\n          {{ Object.keys(added).length }} added to your cart\n        </template>\n      </p>\n    </div>\n\n    <ul class=\"mt-10 grid grid-cols-2 gap-x-4 gap-y-10 lg:grid-cols-4 lg:gap-x-6\">\n      <Motion\n        v-for=\"(product, i) in products\"\n        :key=\"product.id\"\n        as=\"li\"\n        :initial=\"{ opacity: 0, y: 20 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.4, delay: i * 0.07 }\"\n      >\n        <div class=\"group\">\n          <div class=\"bg-muted relative overflow-hidden rounded-xl\">\n            <UiAspectRatio :ratio=\"4 / 5\">\n              <img\n                :src=\"product.image\"\n                :alt=\"product.name\"\n                loading=\"lazy\"\n                class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n              />\n            </UiAspectRatio>\n            <UiBadge v-if=\"added[product.id]\" class=\"absolute top-3 left-3 gap-1\">\n              <Icon name=\"lucide:check\" />\n              Added{{ added[product.id] === \"one-size\" ? \"\" : ` · ${added[product.id]}` }}\n            </UiBadge>\n\n            <div\n              class=\"from-background/90 absolute inset-x-0 bottom-0 bg-gradient-to-t to-transparent p-3 pt-10 transition duration-300 lg:translate-y-2 lg:opacity-0 lg:group-focus-within:translate-y-0 lg:group-focus-within:opacity-100 lg:group-hover:translate-y-0 lg:group-hover:opacity-100\"\n            >\n              <template v-if=\"isSized(product)\">\n                <p class=\"mb-2 text-xs font-medium\">Quick add</p>\n                <div class=\"flex gap-1.5\">\n                  <button\n                    v-for=\"s in sizes\"\n                    :key=\"s\"\n                    type=\"button\"\n                    class=\"bg-background hover:bg-primary hover:text-primary-foreground focus-visible:ring-ring h-8 flex-1 rounded-md border text-xs font-medium transition focus-visible:ring-2 focus-visible:outline-none\"\n                    :aria-label=\"`Add ${product.name} in size ${s} to cart`\"\n                    @click=\"quickAdd(product.id, s)\"\n                  >\n                    {{ s }}\n                  </button>\n                </div>\n              </template>\n              <UiButton v-else size=\"sm\" class=\"w-full\" @click=\"quickAdd(product.id, 'one-size')\">\n                <Icon name=\"lucide:shopping-bag\" />\n                Add to cart\n              </UiButton>\n            </div>\n          </div>\n\n          <div class=\"mt-4 space-y-1\">\n            <h3 class=\"text-sm font-medium\">\n              <a :href=\"product.href\" class=\"hover:underline\">{{ product.name }}</a>\n            </h3>\n            <p class=\"text-muted-foreground text-xs\">{{ product.category }}</p>\n            <p class=\"text-sm font-semibold\">{{ money.format(product.price) }}</p>\n          </div>\n        </div>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      sizes?: string[];\n      products?: Product[];\n    }>(),\n    {\n      title: \"Complete the look\",\n      description: \"Pieces our customers wear with the bomber jacket.\",\n      sizes: () => [\"S\", \"M\", \"L\", \"XL\"],\n      products: () => [\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          category: \"Clothing\",\n          price: 32,\n          rating: 4.7,\n          reviews: 512,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Sage\", hex: \"#9caf88\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 14,\n          name: \"Crew Sweatshirt\",\n          category: \"Clothing\",\n          price: 58,\n          rating: 4.4,\n          reviews: 88,\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Grey\", hex: \"#a1a1aa\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          category: \"Bags\",\n          price: 28,\n          rating: 4.5,\n          reviews: 120,\n          colors: [{ name: \"Natural\", hex: \"#c8a77a\" }],\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 13,\n          name: \"Soy Candle\",\n          category: \"Home\",\n          price: 34,\n          rating: 4.9,\n          reviews: 301,\n          colors: [{ name: \"Amber\", hex: \"#d97706\" }],\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  // Product id mapped to the size that was added.\n  const added = ref<Record<number, string>>({});\n\n  function isSized(product: Product) {\n    return [\"Clothing\", \"Outerwear\", \"Footwear\"].includes(product.category);\n  }\n\n  // Replace this with a call to your cart store or API.\n  function quickAdd(id: number, size: string) {\n    added.value = { ...added.value, [id]: size };\n  }\n</script>\n","category":"ProductDetail","description":"Complete the look related products. Features: Row of related products where choosing a size on hover adds the item straight to the cart, sizes stay visible on touch screens, items without sizes get a plain add button and every card confirms what was added","path":"Ecommerce/ProductDetail/BlockProductDetail6.vue","components":["aspect-ratio","badge","button","container"]},{"name":"Product Detail 7","fileName":"BlockProductDetail7.vue","file":"<template>\n  <!--\n    Frequently bought together bundle\n    Features: Product photos joined by plus signs, a checklist that recalculates the bundle price as you tick items, size selects for apparel, an automatic bundle discount and one add all button\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-5xl\">\n      <h2 class=\"text-2xl font-bold tracking-tight sm:text-3xl\">{{ title }}</h2>\n      <p class=\"text-muted-foreground mt-2\">\n        Save {{ discount }}% when you buy two or more of these together.\n      </p>\n\n      <div class=\"mt-10 grid gap-10 lg:grid-cols-[1fr_20rem] lg:items-center\">\n        <ul class=\"flex items-center justify-center gap-2 sm:gap-4\" aria-hidden=\"true\">\n          <template v-for=\"(item, i) in items\" :key=\"item.id\">\n            <li v-if=\"i > 0\" class=\"text-muted-foreground text-2xl font-light\">+</li>\n            <li\n              class=\"bg-muted w-1/3 max-w-44 overflow-hidden rounded-xl transition\"\n              :class=\"selected.includes(item.id) ? '' : 'opacity-30 grayscale'\"\n            >\n              <UiAspectRatio :ratio=\"1\">\n                <img :src=\"item.image\" alt=\"\" class=\"size-full object-cover\" />\n              </UiAspectRatio>\n            </li>\n          </template>\n        </ul>\n\n        <UiCard>\n          <UiCardContent class=\"space-y-4\">\n            <p class=\"flex items-baseline gap-2\">\n              <span class=\"text-3xl font-semibold tabular-nums\" aria-live=\"polite\">\n                {{ money.format(bundlePrice) }}\n              </span>\n              <span v-if=\"saving > 0\" class=\"text-muted-foreground tabular-nums line-through\">\n                {{ money.format(subtotal) }}\n              </span>\n            </p>\n            <p v-if=\"saving > 0\" class=\"text-sm font-medium text-green-600 dark:text-green-400\">\n              You save {{ money.format(saving) }}\n            </p>\n            <p v-else class=\"text-muted-foreground text-sm\">\n              Add another item to unlock the discount.\n            </p>\n            <UiButton class=\"w-full\" size=\"lg\" :disabled=\"!selected.length\" @click=\"addAll\">\n              <Icon :name=\"added ? 'lucide:check' : 'lucide:shopping-bag'\" />\n              {{\n                added\n                  ? \"Added to cart\"\n                  : `Add ${selected.length} ${selected.length === 1 ? \"item\" : \"items\"} to cart`\n              }}\n            </UiButton>\n          </UiCardContent>\n        </UiCard>\n      </div>\n\n      <ul class=\"mt-8 divide-y border-y\">\n        <li v-for=\"item in items\" :key=\"item.id\" class=\"flex flex-wrap items-center gap-4 py-4\">\n          <UiCheckbox\n            :id=\"`bundle-${item.id}`\"\n            :model-value=\"selected.includes(item.id)\"\n            :disabled=\"item.id === items[0]!.id\"\n            @update:model-value=\"toggle(item.id)\"\n          />\n          <UiLabel :for=\"`bundle-${item.id}`\" class=\"flex-1 cursor-pointer text-sm font-normal\">\n            <span class=\"font-medium\"\n              >{{ item.id === items[0]!.id ? \"This item: \" : \"\" }}{{ item.name }}</span\n            >\n            <span class=\"text-muted-foreground block text-xs\">{{ item.category }}</span>\n          </UiLabel>\n          <UiSelect\n            v-if=\"isSized(item)\"\n            :model-value=\"sizeFor[item.id]\"\n            @update:model-value=\"(v) => (sizeFor[item.id] = v as string)\"\n          >\n            <UiSelectTrigger class=\"w-24\" size=\"sm\" :aria-label=\"`Size for ${item.name}`\">\n              <UiSelectValue />\n            </UiSelectTrigger>\n            <UiSelectContent>\n              <UiSelectItem v-for=\"s in sizes\" :key=\"s\" :value=\"s\">{{ s }}</UiSelectItem>\n            </UiSelectContent>\n          </UiSelect>\n          <span class=\"w-16 text-right text-sm font-semibold tabular-nums\">\n            {{ money.format(item.price) }}\n          </span>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      /** Percentage taken off when two or more items are selected. */\n      discount?: number;\n      sizes?: string[];\n      /** The first item is the product being viewed and can not be unticked. */\n      items?: Product[];\n    }>(),\n    {\n      title: \"Frequently bought together\",\n      discount: 10,\n      sizes: () => [\"S\", \"M\", \"L\", \"XL\"],\n      items: () => [\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          category: \"Outerwear\",\n          price: 138,\n          compareAt: 168,\n          rating: 4.6,\n          reviews: 59,\n          badge: \"Sale\",\n          colors: [\n            { name: \"Rust\", hex: \"#b4532a\" },\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          category: \"Clothing\",\n          price: 32,\n          rating: 4.7,\n          reviews: 512,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Sage\", hex: \"#9caf88\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          category: \"Bags\",\n          price: 28,\n          rating: 4.5,\n          reviews: 120,\n          colors: [{ name: \"Natural\", hex: \"#c8a77a\" }],\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 2,\n  });\n\n  const selected = ref<number[]>(props.items.map((item) => item.id));\n  const sizeFor = reactive<Record<number, string>>(\n    Object.fromEntries(props.items.map((item) => [item.id, \"M\"]))\n  );\n  const added = ref(false);\n\n  const subtotal = computed(() =>\n    props.items.filter((i) => selected.value.includes(i.id)).reduce((sum, i) => sum + i.price, 0)\n  );\n  const saving = computed(() =>\n    selected.value.length > 1 ? (subtotal.value * props.discount) / 100 : 0\n  );\n  const bundlePrice = computed(() => subtotal.value - saving.value);\n\n  function isSized(product: Product) {\n    return [\"Clothing\", \"Outerwear\", \"Footwear\"].includes(product.category);\n  }\n\n  function toggle(id: number) {\n    if (id === props.items[0]!.id) return;\n    selected.value = selected.value.includes(id)\n      ? selected.value.filter((i) => i !== id)\n      : [...selected.value, id];\n  }\n\n  // Replace this with a call to your cart store or API.\n  function addAll() {\n    added.value = true;\n    setTimeout(() => (added.value = false), 1800);\n  }\n</script>\n","category":"ProductDetail","description":"Frequently bought together bundle. Features: Product photos joined by plus signs, a checklist that recalculates the bundle price as you tick items, size selects for apparel, an automatic bundle discount and one add all button","path":"Ecommerce/ProductDetail/BlockProductDetail7.vue","components":["aspect-ratio","button","card","checkbox","container","label","select"]},{"name":"Product Detail 8","fileName":"BlockProductDetail8.vue","file":"<template>\n  <!--\n    Product page with a size guide dialog and sticky mobile bar\n    Features: Size picker with a size guide dialog that switches between inches and centimeters, a measuring tips list, and a sticky add to cart bar that appears on small screens once the main button scrolls out of view\n  -->\n  <UiContainer class=\"py-10 lg:py-16\">\n    <div class=\"grid items-start gap-10 lg:grid-cols-2 lg:gap-16\">\n      <div class=\"bg-muted overflow-hidden rounded-2xl\">\n        <UiAspectRatio :ratio=\"4 / 5\">\n          <img\n            :src=\"product.images[0]!.src\"\n            :alt=\"product.images[0]!.alt\"\n            class=\"size-full object-cover\"\n          />\n        </UiAspectRatio>\n      </div>\n\n      <div>\n        <p class=\"text-muted-foreground text-sm tracking-wide uppercase\">{{ product.category }}</p>\n        <h1 class=\"mt-2 text-3xl font-bold tracking-tight sm:text-4xl\">{{ product.name }}</h1>\n        <div class=\"mt-3 flex items-center gap-2\">\n          <UiRating\n            :model-value=\"product.rating\"\n            size=\"sm\"\n            icon=\"mdi:star\"\n            filled-icon-class-name=\"text-amber-400\"\n          />\n          <span class=\"text-muted-foreground text-sm\">{{ product.reviews }} reviews</span>\n        </div>\n        <p class=\"mt-5 flex items-baseline gap-3\">\n          <span class=\"text-3xl font-semibold\">{{ money.format(product.price) }}</span>\n          <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-lg line-through\">\n            {{ money.format(product.compareAt) }}\n          </span>\n        </p>\n        <p class=\"text-muted-foreground mt-5\">{{ product.description }}</p>\n\n        <fieldset class=\"mt-8\">\n          <legend class=\"mb-3 flex w-full items-center justify-between text-sm font-medium\">\n            Size\n            <UiDialog v-model:open=\"guideOpen\">\n              <UiDialogTrigger as-child>\n                <button\n                  type=\"button\"\n                  class=\"text-muted-foreground hover:text-foreground flex items-center gap-1.5 font-normal underline underline-offset-4\"\n                >\n                  <Icon name=\"lucide:ruler\" class=\"size-4\" />\n                  Size guide\n                </button>\n              </UiDialogTrigger>\n              <UiDialogContent class=\"sm:max-w-xl\">\n                <UiDialogHeader>\n                  <UiDialogTitle>Size guide</UiDialogTitle>\n                  <UiDialogDescription>\n                    Body measurements for the {{ product.name }}. Find your closest match.\n                  </UiDialogDescription>\n                </UiDialogHeader>\n\n                <UiToggleGroup\n                  type=\"single\"\n                  size=\"sm\"\n                  class=\"justify-start\"\n                  :model-value=\"unit\"\n                  aria-label=\"Measurement unit\"\n                  @update:model-value=\"(v) => (unit = (v as 'in' | 'cm') || unit)\"\n                >\n                  <UiToggleGroupItem variant=\"outline\" size=\"sm\" value=\"in\" class=\"px-4\"\n                    >Inches</UiToggleGroupItem\n                  >\n                  <UiToggleGroupItem variant=\"outline\" size=\"sm\" value=\"cm\" class=\"px-4\"\n                    >Centimeters</UiToggleGroupItem\n                  >\n                </UiToggleGroup>\n\n                <UiTable>\n                  <UiTableHeader>\n                    <UiTableRow>\n                      <UiTableHead>Size</UiTableHead>\n                      <UiTableHead>Chest</UiTableHead>\n                      <UiTableHead>Length</UiTableHead>\n                      <UiTableHead>Sleeve</UiTableHead>\n                    </UiTableRow>\n                  </UiTableHeader>\n                  <UiTableBody>\n                    <UiTableRow v-for=\"row in guide\" :key=\"row.size\">\n                      <UiTableCell class=\"font-medium\">{{ row.size }}</UiTableCell>\n                      <UiTableCell>{{ convert(row.chest) }}</UiTableCell>\n                      <UiTableCell>{{ convert(row.length) }}</UiTableCell>\n                      <UiTableCell>{{ convert(row.sleeve) }}</UiTableCell>\n                    </UiTableRow>\n                  </UiTableBody>\n                </UiTable>\n\n                <ul class=\"text-muted-foreground space-y-2 text-sm\">\n                  <li>\n                    <strong class=\"text-foreground\">Chest:</strong> measure around the fullest part,\n                    under your arms.\n                  </li>\n                  <li>\n                    <strong class=\"text-foreground\">Length:</strong> from the base of your neck to\n                    where you want the hem.\n                  </li>\n                  <li>\n                    <strong class=\"text-foreground\">Sleeve:</strong> from the center back of your\n                    neck to your wrist.\n                  </li>\n                </ul>\n              </UiDialogContent>\n            </UiDialog>\n          </legend>\n          <UiToggleGroup\n            type=\"single\"\n            class=\"grid grid-cols-5 gap-2\"\n            :model-value=\"size\"\n            @update:model-value=\"(v) => (size = (v as string) || '')\"\n          >\n            <UiToggleGroupItem\n              v-for=\"s in product.sizes\"\n              :key=\"s.label\"\n              variant=\"outline\"\n              :value=\"s.label\"\n              :disabled=\"!s.inStock\"\n              class=\"data-[state=on]:border-primary data-[state=on]:bg-primary data-[state=on]:text-primary-foreground h-11 data-[disabled]:line-through\"\n            >\n              {{ s.label }}\n            </UiToggleGroupItem>\n          </UiToggleGroup>\n        </fieldset>\n\n        <UiButton ref=\"mainCta\" class=\"mt-8 w-full\" size=\"lg\" :disabled=\"!size\" @click=\"addToCart\">\n          <Icon :name=\"added ? 'lucide:check' : 'lucide:shopping-bag'\" />\n          {{ added ? \"Added to cart\" : size ? \"Add to cart\" : \"Select a size\" }}\n        </UiButton>\n\n        <ul class=\"mt-8 space-y-3 border-t pt-6 text-sm\">\n          <li v-for=\"item in product.highlights\" :key=\"item\" class=\"flex items-start gap-3\">\n            <Icon name=\"lucide:check\" class=\"text-primary mt-0.5 size-4 shrink-0\" />\n            {{ item }}\n          </li>\n        </ul>\n      </div>\n    </div>\n\n    <Transition\n      enter-active-class=\"transition duration-300\"\n      enter-from-class=\"translate-y-full\"\n      leave-active-class=\"transition duration-200\"\n      leave-to-class=\"translate-y-full\"\n    >\n      <div\n        v-if=\"showBar\"\n        class=\"bg-background/95 fixed inset-x-0 bottom-0 z-40 flex items-center gap-3 border-t p-3 backdrop-blur lg:hidden\"\n      >\n        <img\n          :src=\"product.images[0]!.src\"\n          alt=\"\"\n          class=\"size-12 shrink-0 rounded-md object-cover\"\n        />\n        <div class=\"min-w-0 flex-1\">\n          <p class=\"truncate text-sm font-medium\">{{ product.name }}</p>\n          <p class=\"text-muted-foreground text-sm\">\n            {{ money.format(product.price) }}{{ size ? ` · ${size}` : \"\" }}\n          </p>\n        </div>\n        <UiButton :disabled=\"!size\" @click=\"addToCart\">\n          {{ added ? \"Added\" : size ? \"Add to cart\" : \"Pick size\" }}\n        </UiButton>\n      </div>\n    </Transition>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    description: string;\n    colors: { name: string; hex: string }[];\n    sizes: { label: string; inStock: boolean }[];\n    images: { src: string; alt: string }[];\n    highlights: string[];\n    details: { title: string; content: string }[];\n  };\n\n  type SizeRow = { size: string; chest: number; length: number; sleeve: number };\n\n  withDefaults(\n    defineProps<{\n      product?: Product;\n      /** Measurements in inches. They are converted when the unit is switched. */\n      guide?: SizeRow[];\n    }>(),\n    {\n      guide: () => [\n        { size: \"XS\", chest: 36, length: 25.5, sleeve: 24.5 },\n        { size: \"S\", chest: 38, length: 26, sleeve: 25 },\n        { size: \"M\", chest: 40, length: 26.5, sleeve: 25.5 },\n        { size: \"L\", chest: 42, length: 27, sleeve: 26 },\n        { size: \"XL\", chest: 44, length: 27.5, sleeve: 26.5 },\n      ],\n      product: () => ({\n        name: \"Bomber Jacket\",\n        category: \"Outerwear\",\n        price: 138,\n        compareAt: 168,\n        rating: 4.6,\n        reviews: 59,\n        description:\n          \"A lightweight bomber in a soft, water repellent shell with ribbed trims and a zip sleeve pocket. Cut relaxed so it layers easily over knits.\",\n        colors: [\n          { name: \"Rust\", hex: \"#b4532a\" },\n          { name: \"Olive\", hex: \"#4d5d3a\" },\n        ],\n        sizes: [\n          { label: \"XS\", inStock: false },\n          { label: \"S\", inStock: true },\n          { label: \"M\", inStock: true },\n          { label: \"L\", inStock: true },\n          { label: \"XL\", inStock: false },\n        ],\n        images: [\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80\",\n            alt: \"Rust bomber jacket on a hanger\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.5&fp-y=0.22&fp-z=2.6\",\n            alt: \"Ribbed collar and neck label\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.78&fp-y=0.48&fp-z=2.6\",\n            alt: \"Zip pocket on the sleeve\",\n          },\n          {\n            src: \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&h=1500&q=80&crop=focalpoint&fp-x=0.4&fp-y=0.85&fp-z=2.4\",\n            alt: \"Ribbed hem and hand pocket\",\n          },\n        ],\n        highlights: [\n          \"Water repellent recycled nylon shell\",\n          \"Ribbed collar, cuffs and hem\",\n          \"Zip sleeve pocket and two hand pockets\",\n          \"Relaxed fit, true to size\",\n        ],\n        details: [\n          {\n            title: \"Materials and care\",\n            content:\n              \"Shell and lining are 100% recycled nylon. Machine wash cold on a gentle cycle and hang to dry. Do not tumble dry or iron.\",\n          },\n          {\n            title: \"Fit\",\n            content:\n              \"Relaxed fit that sits at the hip. The model is 6 feet tall and wears a medium. Size down if you prefer a closer fit.\",\n          },\n          {\n            title: \"Shipping and returns\",\n            content:\n              \"Free standard shipping on orders over $75, delivered in 2 to 4 business days. Returns are free for 30 days.\",\n          },\n        ],\n      }),\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const size = ref(\"\");\n  const added = ref(false);\n  const guideOpen = ref(false);\n  const unit = ref<\"in\" | \"cm\">(\"in\");\n  const mainCta = ref<{ $el: HTMLElement } | null>(null);\n  const ctaVisible = ref(true);\n\n  // The sticky bar appears once the main button has scrolled out of view.\n  useIntersectionObserver(\n    () => mainCta.value?.$el,\n    ([entry]) => (ctaVisible.value = entry?.isIntersecting ?? true)\n  );\n  const showBar = computed(() => !ctaVisible.value);\n\n  function convert(inches: number) {\n    return unit.value === \"in\" ? `${inches}\"` : `${Math.round(inches * 2.54)} cm`;\n  }\n\n  // Replace this with a call to your cart store or API.\n  function addToCart() {\n    added.value = true;\n    setTimeout(() => (added.value = false), 1800);\n  }\n</script>\n","category":"ProductDetail","description":"Product page with a size guide dialog and sticky mobile bar. Features: Size picker with a size guide dialog that switches between inches and centimeters, a measuring tips list, and a sticky add to cart bar that appears on small screens once the main button scrolls out of view","path":"Ecommerce/ProductDetail/BlockProductDetail8.vue","components":["aspect-ratio","button","container","dialog","rating","table","toggle-group"]},{"name":"Product List 1","fileName":"BlockProductList1.vue","file":"<template>\n  <!--\n    Product grid with wishlist and quick add\n    Features: Four column responsive grid, new and sale badges, compare at pricing, star ratings, a wishlist heart toggle and an add to cart button that slides in on hover and confirms with a check\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h2>\n        <p class=\"text-muted-foreground mt-2 max-w-xl\">{{ description }}</p>\n      </div>\n      <UiButton variant=\"outline\" size=\"sm\" class=\"w-fit\">\n        View all\n        <Icon name=\"lucide:arrow-right\" />\n      </UiButton>\n    </div>\n\n    <ul class=\"mt-10 grid grid-cols-2 gap-x-4 gap-y-10 lg:grid-cols-4 lg:gap-x-6\">\n      <Motion\n        v-for=\"(product, i) in products.slice(0, 8)\"\n        :key=\"product.id\"\n        as=\"li\"\n        :initial=\"{ opacity: 0, y: 20 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.4, delay: (i % 4) * 0.07 }\"\n      >\n        <div class=\"group relative\">\n          <div class=\"bg-muted relative overflow-hidden rounded-xl\">\n            <UiAspectRatio :ratio=\"4 / 5\">\n              <img\n                :src=\"product.image\"\n                :alt=\"product.name\"\n                loading=\"lazy\"\n                class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n              />\n            </UiAspectRatio>\n            <UiBadge\n              v-if=\"product.badge\"\n              :variant=\"badgeVariant(product.badge)\"\n              class=\"absolute top-3 left-3\"\n            >\n              {{ product.badge }}\n            </UiBadge>\n            <button\n              type=\"button\"\n              class=\"bg-background/90 hover:bg-background focus-visible:ring-ring absolute top-3 right-3 grid size-8 place-items-center rounded-full shadow-sm backdrop-blur transition focus-visible:ring-2 focus-visible:outline-none\"\n              :aria-pressed=\"wishlist.includes(product.id)\"\n              :aria-label=\"`${wishlist.includes(product.id) ? 'Remove' : 'Add'} ${product.name} ${wishlist.includes(product.id) ? 'from' : 'to'} wishlist`\"\n              @click=\"toggleWishlist(product.id)\"\n            >\n              <Icon\n                name=\"lucide:heart\"\n                class=\"size-4 transition\"\n                :class=\"\n                  wishlist.includes(product.id) ? 'fill-red-500 text-red-500' : 'text-foreground'\n                \"\n              />\n            </button>\n            <div\n              class=\"absolute inset-x-3 bottom-3 transition duration-300 lg:translate-y-2 lg:opacity-0 lg:group-focus-within:translate-y-0 lg:group-focus-within:opacity-100 lg:group-hover:translate-y-0 lg:group-hover:opacity-100\"\n            >\n              <UiButton\n                class=\"w-full shadow-md\"\n                size=\"sm\"\n                :variant=\"added.includes(product.id) ? 'secondary' : 'default'\"\n                @click=\"addToCart(product.id)\"\n              >\n                <Icon :name=\"added.includes(product.id) ? 'lucide:check' : 'lucide:shopping-bag'\" />\n                {{ added.includes(product.id) ? \"Added\" : \"Add to cart\" }}\n              </UiButton>\n            </div>\n          </div>\n\n          <div class=\"mt-4 space-y-1.5\">\n            <p class=\"text-muted-foreground text-xs tracking-wide uppercase\">\n              {{ product.category }}\n            </p>\n            <h3 class=\"font-medium\">\n              <a :href=\"product.href\" class=\"hover:underline\">{{ product.name }}</a>\n            </h3>\n            <div class=\"flex items-center gap-1.5\">\n              <UiRating\n                :model-value=\"product.rating\"\n                size=\"sm\"\n                icon=\"mdi:star\"\n                filled-icon-class-name=\"text-amber-400\"\n              />\n              <span class=\"text-muted-foreground text-xs\">({{ product.reviews }})</span>\n            </div>\n            <p class=\"flex items-baseline gap-2 text-sm\">\n              <span class=\"font-semibold\">{{ money.format(product.price) }}</span>\n              <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-xs line-through\">\n                {{ money.format(product.compareAt) }}\n              </span>\n            </p>\n          </div>\n        </div>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      products?: Product[];\n    }>(),\n    {\n      title: \"New arrivals\",\n      description: \"Small-batch essentials, restocked every week. Free returns on everything.\",\n      products: () => [\n        {\n          id: 1,\n          name: \"Suede Brogue\",\n          category: \"Footwear\",\n          price: 128,\n          rating: 4.8,\n          reviews: 214,\n          badge: \"New\",\n          colors: [\n            { name: \"Teal\", hex: \"#0f766e\" },\n            { name: \"Tan\", hex: \"#b08968\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 2,\n          name: \"Minimal Watch\",\n          category: \"Accessories\",\n          price: 149,\n          compareAt: 189,\n          rating: 4.6,\n          reviews: 132,\n          badge: \"Sale\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 3,\n          name: \"Sunny Headphones\",\n          category: \"Audio\",\n          price: 89,\n          rating: 4.5,\n          reviews: 98,\n          colors: [\n            { name: \"Yellow\", hex: \"#facc15\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 4,\n          name: \"Studio Over-Ear\",\n          category: \"Audio\",\n          price: 199,\n          compareAt: 249,\n          rating: 4.9,\n          reviews: 341,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Grey\", hex: \"#71717a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 5,\n          name: \"Commuter Backpack\",\n          category: \"Bags\",\n          price: 98,\n          rating: 4.7,\n          reviews: 187,\n          colors: [\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n            { name: \"Charcoal\", hex: \"#3f3f46\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 6,\n          name: \"Trail Backpack\",\n          category: \"Bags\",\n          price: 119,\n          rating: 4.4,\n          reviews: 76,\n          badge: \"New\",\n          colors: [\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n            { name: \"Sand\", hex: \"#d6c3a1\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1491637639811-60e2756cc1c7?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          category: \"Outerwear\",\n          price: 138,\n          compareAt: 168,\n          rating: 4.6,\n          reviews: 59,\n          badge: \"Sale\",\n          colors: [\n            { name: \"Rust\", hex: \"#b4532a\" },\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 8,\n          name: \"Knit Poncho\",\n          category: \"Clothing\",\n          price: 76,\n          rating: 4.3,\n          reviews: 41,\n          colors: [{ name: \"Cream\", hex: \"#f3e9d2\" }],\n          image:\n            \"https://images.unsplash.com/photo-1434389677669-e08b4cac3105?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          category: \"Clothing\",\n          price: 32,\n          rating: 4.7,\n          reviews: 512,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Sage\", hex: \"#9caf88\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 10,\n          name: \"Stoneware Mug\",\n          category: \"Home\",\n          price: 24,\n          rating: 4.8,\n          reviews: 266,\n          colors: [{ name: \"White\", hex: \"#f4f4f5\" }],\n          image:\n            \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          category: \"Bags\",\n          price: 28,\n          rating: 4.5,\n          reviews: 120,\n          colors: [{ name: \"Natural\", hex: \"#c8a77a\" }],\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 12,\n          name: \"Corduroy Dress\",\n          category: \"Clothing\",\n          price: 110,\n          rating: 4.6,\n          reviews: 64,\n          badge: \"New\",\n          colors: [\n            { name: \"Burgundy\", hex: \"#7f1d3a\" },\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1585487000160-6ebcfceb0d03?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 13,\n          name: \"Soy Candle\",\n          category: \"Home\",\n          price: 34,\n          rating: 4.9,\n          reviews: 301,\n          colors: [{ name: \"Amber\", hex: \"#d97706\" }],\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 14,\n          name: \"Crew Sweatshirt\",\n          category: \"Clothing\",\n          price: 58,\n          rating: 4.4,\n          reviews: 88,\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Grey\", hex: \"#a1a1aa\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const wishlist = ref<number[]>([]);\n  const added = ref<number[]>([]);\n\n  function badgeVariant(badge: string) {\n    if (badge === \"Sale\") return \"destructive\";\n    if (badge === \"New\") return \"default\";\n    return \"secondary\";\n  }\n\n  function toggleWishlist(id: number) {\n    wishlist.value = wishlist.value.includes(id)\n      ? wishlist.value.filter((x) => x !== id)\n      : [...wishlist.value, id];\n  }\n\n  // Replace this with a call to your cart store or API.\n  function addToCart(id: number) {\n    if (added.value.includes(id)) return;\n    added.value = [...added.value, id];\n    setTimeout(() => {\n      added.value = added.value.filter((x) => x !== id);\n    }, 1600);\n  }\n</script>\n","category":"ProductList","description":"Product grid with wishlist and quick add. Features: Four column responsive grid, new and sale badges, compare at pricing, star ratings, a wishlist heart toggle and an add to cart button that slides in on hover and confirms with a check","path":"Ecommerce/ProductList/BlockProductList1.vue","components":["aspect-ratio","badge","button","container","rating"]},{"name":"Product List 2","fileName":"BlockProductList2.vue","file":"<template>\n  <!--\n    Product listing with sidebar filters, sorting and pagination\n    Features: Category checkboxes with counts, price range slider, on sale filter, sort select, live result count, pagination that resets when filters change and an empty state with a clear button\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\" role=\"status\" aria-live=\"polite\">\n          {{ filtered.length }} {{ filtered.length === 1 ? \"product\" : \"products\" }}\n        </p>\n      </div>\n      <div class=\"flex items-center gap-2\">\n        <UiLabel for=\"sort\" class=\"text-muted-foreground text-sm whitespace-nowrap\">\n          Sort by\n        </UiLabel>\n        <UiSelect v-model=\"sort\">\n          <UiSelectTrigger id=\"sort\" class=\"w-48\">\n            <UiSelectValue />\n          </UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem v-for=\"o in sortOptions\" :key=\"o.value\" :value=\"o.value\">\n              {{ o.label }}\n            </UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n    </div>\n\n    <div class=\"mt-10 grid gap-10 lg:grid-cols-[16rem_1fr]\">\n      <aside aria-label=\"Filters\">\n        <UiAccordion type=\"multiple\" :default-value=\"['category', 'price', 'more']\">\n          <UiAccordionItem value=\"category\">\n            <UiAccordionHeader>\n              <UiAccordionTrigger title=\"Category\" />\n            </UiAccordionHeader>\n            <UiAccordionContent>\n              <ul class=\"space-y-3\">\n                <li v-for=\"c in categories\" :key=\"c.name\" class=\"flex items-center gap-2.5\">\n                  <UiCheckbox\n                    :id=\"`cat-${c.name}`\"\n                    :model-value=\"selected.includes(c.name)\"\n                    @update:model-value=\"toggleCategory(c.name)\"\n                  />\n                  <UiLabel :for=\"`cat-${c.name}`\" class=\"flex-1 font-normal\">{{ c.name }}</UiLabel>\n                  <span class=\"text-muted-foreground text-xs tabular-nums\">{{ c.count }}</span>\n                </li>\n              </ul>\n            </UiAccordionContent>\n          </UiAccordionItem>\n\n          <UiAccordionItem value=\"price\">\n            <UiAccordionHeader>\n              <UiAccordionTrigger title=\"Price\" />\n            </UiAccordionHeader>\n            <UiAccordionContent>\n              <div class=\"px-1 pt-2\">\n                <UiSlider\n                  v-model=\"range\"\n                  :min=\"0\"\n                  :max=\"250\"\n                  :step=\"5\"\n                  :min-steps-between-thumbs=\"1\"\n                  aria-label=\"Price range\"\n                />\n                <div class=\"text-muted-foreground mt-4 flex justify-between text-sm tabular-nums\">\n                  <span>{{ money.format(range[0]!) }}</span>\n                  <span>{{ money.format(range[1]!) }}{{ range[1] === 250 ? \"+\" : \"\" }}</span>\n                </div>\n              </div>\n            </UiAccordionContent>\n          </UiAccordionItem>\n\n          <UiAccordionItem value=\"more\">\n            <UiAccordionHeader>\n              <UiAccordionTrigger title=\"More\" />\n            </UiAccordionHeader>\n            <UiAccordionContent>\n              <div class=\"flex items-center gap-2.5\">\n                <UiCheckbox id=\"on-sale\" v-model=\"onSale\" />\n                <UiLabel for=\"on-sale\" class=\"font-normal\">On sale</UiLabel>\n              </div>\n            </UiAccordionContent>\n          </UiAccordionItem>\n        </UiAccordion>\n        <UiButton\n          v-if=\"hasFilters\"\n          variant=\"ghost\"\n          size=\"sm\"\n          class=\"mt-3 w-full\"\n          @click=\"clearFilters\"\n        >\n          <Icon name=\"lucide:x\" />\n          Clear all filters\n        </UiButton>\n      </aside>\n\n      <div>\n        <ul v-if=\"paged.length\" class=\"grid grid-cols-2 gap-x-4 gap-y-8 md:grid-cols-3\">\n          <li v-for=\"product in paged\" :key=\"product.id\" class=\"group\">\n            <div class=\"bg-muted relative overflow-hidden rounded-xl\">\n              <UiAspectRatio :ratio=\"1\">\n                <img\n                  :src=\"product.image\"\n                  :alt=\"product.name\"\n                  loading=\"lazy\"\n                  class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n                />\n              </UiAspectRatio>\n              <UiBadge\n                v-if=\"product.badge\"\n                :variant=\"product.badge === 'Sale' ? 'destructive' : 'secondary'\"\n                class=\"absolute top-3 left-3\"\n              >\n                {{ product.badge }}\n              </UiBadge>\n            </div>\n            <div class=\"mt-3 space-y-1\">\n              <h2 class=\"text-sm font-medium\">\n                <a :href=\"product.href\" class=\"hover:underline\">{{ product.name }}</a>\n              </h2>\n              <p class=\"text-muted-foreground text-xs\">{{ product.category }}</p>\n              <p class=\"flex items-baseline gap-2 text-sm\">\n                <span class=\"font-semibold\">{{ money.format(product.price) }}</span>\n                <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-xs line-through\">\n                  {{ money.format(product.compareAt) }}\n                </span>\n              </p>\n            </div>\n          </li>\n        </ul>\n\n        <UiEmpty v-else class=\"border border-dashed\">\n          <UiEmptyHeader>\n            <UiEmptyMedia>\n              <UiFancyIcon icon=\"lucide:search-x\" theme=\"modern-neue\" />\n            </UiEmptyMedia>\n            <UiEmptyTitle>No products match</UiEmptyTitle>\n            <UiEmptyDescription>\n              Try widening the price range or removing a category.\n            </UiEmptyDescription>\n          </UiEmptyHeader>\n          <UiEmptyContent>\n            <UiButton variant=\"outline\" @click=\"clearFilters\">Clear filters</UiButton>\n          </UiEmptyContent>\n        </UiEmpty>\n\n        <UiPagination\n          v-if=\"filtered.length > perPage\"\n          v-model:page=\"page\"\n          :total=\"filtered.length\"\n          :items-per-page=\"perPage\"\n          :sibling-count=\"1\"\n          class=\"mt-12\"\n        />\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      perPage?: number;\n      products?: Product[];\n    }>(),\n    {\n      title: \"All products\",\n      perPage: 6,\n      products: () => [\n        {\n          id: 1,\n          name: \"Suede Brogue\",\n          category: \"Footwear\",\n          price: 128,\n          rating: 4.8,\n          reviews: 214,\n          badge: \"New\",\n          colors: [\n            { name: \"Teal\", hex: \"#0f766e\" },\n            { name: \"Tan\", hex: \"#b08968\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 2,\n          name: \"Minimal Watch\",\n          category: \"Accessories\",\n          price: 149,\n          compareAt: 189,\n          rating: 4.6,\n          reviews: 132,\n          badge: \"Sale\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 3,\n          name: \"Sunny Headphones\",\n          category: \"Audio\",\n          price: 89,\n          rating: 4.5,\n          reviews: 98,\n          colors: [\n            { name: \"Yellow\", hex: \"#facc15\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 4,\n          name: \"Studio Over-Ear\",\n          category: \"Audio\",\n          price: 199,\n          compareAt: 249,\n          rating: 4.9,\n          reviews: 341,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Grey\", hex: \"#71717a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 5,\n          name: \"Commuter Backpack\",\n          category: \"Bags\",\n          price: 98,\n          rating: 4.7,\n          reviews: 187,\n          colors: [\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n            { name: \"Charcoal\", hex: \"#3f3f46\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 6,\n          name: \"Trail Backpack\",\n          category: \"Bags\",\n          price: 119,\n          rating: 4.4,\n          reviews: 76,\n          badge: \"New\",\n          colors: [\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n            { name: \"Sand\", hex: \"#d6c3a1\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1491637639811-60e2756cc1c7?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          category: \"Outerwear\",\n          price: 138,\n          compareAt: 168,\n          rating: 4.6,\n          reviews: 59,\n          badge: \"Sale\",\n          colors: [\n            { name: \"Rust\", hex: \"#b4532a\" },\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 8,\n          name: \"Knit Poncho\",\n          category: \"Clothing\",\n          price: 76,\n          rating: 4.3,\n          reviews: 41,\n          colors: [{ name: \"Cream\", hex: \"#f3e9d2\" }],\n          image:\n            \"https://images.unsplash.com/photo-1434389677669-e08b4cac3105?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          category: \"Clothing\",\n          price: 32,\n          rating: 4.7,\n          reviews: 512,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Sage\", hex: \"#9caf88\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 10,\n          name: \"Stoneware Mug\",\n          category: \"Home\",\n          price: 24,\n          rating: 4.8,\n          reviews: 266,\n          colors: [{ name: \"White\", hex: \"#f4f4f5\" }],\n          image:\n            \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          category: \"Bags\",\n          price: 28,\n          rating: 4.5,\n          reviews: 120,\n          colors: [{ name: \"Natural\", hex: \"#c8a77a\" }],\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 12,\n          name: \"Corduroy Dress\",\n          category: \"Clothing\",\n          price: 110,\n          rating: 4.6,\n          reviews: 64,\n          badge: \"New\",\n          colors: [\n            { name: \"Burgundy\", hex: \"#7f1d3a\" },\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1585487000160-6ebcfceb0d03?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 13,\n          name: \"Soy Candle\",\n          category: \"Home\",\n          price: 34,\n          rating: 4.9,\n          reviews: 301,\n          colors: [{ name: \"Amber\", hex: \"#d97706\" }],\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 14,\n          name: \"Crew Sweatshirt\",\n          category: \"Clothing\",\n          price: 58,\n          rating: 4.4,\n          reviews: 88,\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Grey\", hex: \"#a1a1aa\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const sortOptions = [\n    { value: \"featured\", label: \"Featured\" },\n    { value: \"price-asc\", label: \"Price: low to high\" },\n    { value: \"price-desc\", label: \"Price: high to low\" },\n    { value: \"rating\", label: \"Top rated\" },\n  ];\n\n  const sort = ref(\"featured\");\n  const selected = ref<string[]>([]);\n  const range = ref([0, 250]);\n  const onSale = ref(false);\n  const page = ref(1);\n\n  const categories = computed(() => {\n    const counts = new Map<string, number>();\n    for (const p of props.products) counts.set(p.category, (counts.get(p.category) ?? 0) + 1);\n    return [...counts].map(([name, count]) => ({ name, count }));\n  });\n\n  const hasFilters = computed(\n    () =>\n      selected.value.length > 0 || onSale.value || range.value[0] !== 0 || range.value[1] !== 250\n  );\n\n  const filtered = computed(() => {\n    const [min, max] = range.value as [number, number];\n    const list = props.products.filter(\n      (p) =>\n        (!selected.value.length || selected.value.includes(p.category)) &&\n        p.price >= min &&\n        (max === 250 || p.price <= max) &&\n        (!onSale.value || p.compareAt)\n    );\n    if (sort.value === \"price-asc\") return [...list].sort((a, b) => a.price - b.price);\n    if (sort.value === \"price-desc\") return [...list].sort((a, b) => b.price - a.price);\n    if (sort.value === \"rating\") return [...list].sort((a, b) => b.rating - a.rating);\n    return list;\n  });\n\n  const paged = computed(() =>\n    filtered.value.slice((page.value - 1) * props.perPage, page.value * props.perPage)\n  );\n\n  watch([selected, range, onSale, sort], () => (page.value = 1), { deep: true });\n\n  function toggleCategory(name: string) {\n    selected.value = selected.value.includes(name)\n      ? selected.value.filter((c) => c !== name)\n      : [...selected.value, name];\n  }\n\n  function clearFilters() {\n    selected.value = [];\n    range.value = [0, 250];\n    onSale.value = false;\n  }\n</script>\n","category":"ProductList","description":"Product listing with sidebar filters, sorting and pagination. Features: Category checkboxes with counts, price range slider, on sale filter, sort select, live result count, pagination that resets when filters change and an empty state with a clear button","path":"Ecommerce/ProductList/BlockProductList2.vue","components":["accordion","aspect-ratio","badge","button","checkbox","container","empty","fancy-icon","label","pagination","select","slider"]},{"name":"Product List 3","fileName":"BlockProductList3.vue","file":"<template>\n  <!--\n    Product grid with a top filter bar\n    Features: Category chips, on sale toggle, sort select, color dots on every card, live result count and a one click reset, all filtering happens on the client\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h2>\n      <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n    </div>\n\n    <div\n      class=\"mt-10 flex flex-col gap-4 border-y py-4 lg:flex-row lg:items-center lg:justify-between\"\n    >\n      <UiScrollArea orientation=\"horizontal\" class=\"w-full lg:w-auto\">\n        <UiToggleGroup\n          type=\"single\"\n          class=\"justify-start gap-2 pb-3 lg:pb-0\"\n          :model-value=\"category\"\n          aria-label=\"Filter by category\"\n          @update:model-value=\"(v) => (category = (v as string) || 'All')\"\n        >\n          <UiToggleGroupItem\n            v-for=\"c in categories\"\n            :key=\"c\"\n            variant=\"outline\"\n            size=\"sm\"\n            :value=\"c\"\n            class=\"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground rounded-full px-4\"\n          >\n            {{ c }}\n          </UiToggleGroupItem>\n        </UiToggleGroup>\n      </UiScrollArea>\n\n      <div class=\"flex items-center gap-3\">\n        <UiToggle v-model=\"onSale\" variant=\"outline\" size=\"sm\" aria-label=\"Show sale items only\">\n          <Icon name=\"lucide:tag\" />\n          On sale\n        </UiToggle>\n        <UiSelect v-model=\"sort\">\n          <UiSelectTrigger class=\"w-44\" size=\"sm\" aria-label=\"Sort products\">\n            <UiSelectValue />\n          </UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"featured\">Featured</UiSelectItem>\n            <UiSelectItem value=\"price-asc\">Price: low to high</UiSelectItem>\n            <UiSelectItem value=\"price-desc\">Price: high to low</UiSelectItem>\n            <UiSelectItem value=\"rating\">Top rated</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n    </div>\n\n    <p class=\"text-muted-foreground mt-4 text-sm\" role=\"status\" aria-live=\"polite\">\n      Showing {{ filtered.length }} of {{ products.length }} products\n      <button\n        v-if=\"category !== 'All' || onSale\"\n        type=\"button\"\n        class=\"text-foreground ml-2 underline underline-offset-4\"\n        @click=\"reset\"\n      >\n        Reset\n      </button>\n    </p>\n\n    <ul v-if=\"filtered.length\" class=\"mt-8 grid grid-cols-2 gap-x-4 gap-y-10 md:grid-cols-3\">\n      <li v-for=\"product in filtered\" :key=\"product.id\" class=\"group\">\n        <div class=\"bg-muted relative overflow-hidden rounded-xl\">\n          <UiAspectRatio :ratio=\"1\">\n            <img\n              :src=\"product.image\"\n              :alt=\"product.name\"\n              loading=\"lazy\"\n              class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n            />\n          </UiAspectRatio>\n          <UiBadge v-if=\"product.compareAt\" variant=\"destructive\" class=\"absolute top-3 left-3\">\n            -{{ Math.round((1 - product.price / product.compareAt) * 100) }}%\n          </UiBadge>\n        </div>\n        <div class=\"mt-3 flex items-start justify-between gap-3\">\n          <div class=\"min-w-0\">\n            <h3 class=\"truncate text-sm font-medium\">\n              <a :href=\"product.href\" class=\"hover:underline\">{{ product.name }}</a>\n            </h3>\n            <div class=\"mt-1.5 flex items-center gap-1\" aria-label=\"Available colors\">\n              <span\n                v-for=\"color in product.colors\"\n                :key=\"color.hex\"\n                class=\"size-3.5 rounded-full border\"\n                :style=\"{ backgroundColor: color.hex }\"\n                :title=\"color.name\"\n              />\n            </div>\n          </div>\n          <p class=\"text-right text-sm\">\n            <span class=\"font-semibold\">{{ money.format(product.price) }}</span>\n            <span v-if=\"product.compareAt\" class=\"text-muted-foreground block text-xs line-through\">\n              {{ money.format(product.compareAt) }}\n            </span>\n          </p>\n        </div>\n      </li>\n    </ul>\n    <p v-else class=\"text-muted-foreground mt-16 text-center\">\n      Nothing here yet. Try another category.\n    </p>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      products?: Product[];\n    }>(),\n    {\n      title: \"Shop the collection\",\n      description: \"Filter by category, find what is on sale and sort by what matters to you.\",\n      products: () => [\n        {\n          id: 1,\n          name: \"Suede Brogue\",\n          category: \"Footwear\",\n          price: 128,\n          rating: 4.8,\n          reviews: 214,\n          badge: \"New\",\n          colors: [\n            { name: \"Teal\", hex: \"#0f766e\" },\n            { name: \"Tan\", hex: \"#b08968\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 2,\n          name: \"Minimal Watch\",\n          category: \"Accessories\",\n          price: 149,\n          compareAt: 189,\n          rating: 4.6,\n          reviews: 132,\n          badge: \"Sale\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 3,\n          name: \"Sunny Headphones\",\n          category: \"Audio\",\n          price: 89,\n          rating: 4.5,\n          reviews: 98,\n          colors: [\n            { name: \"Yellow\", hex: \"#facc15\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 4,\n          name: \"Studio Over-Ear\",\n          category: \"Audio\",\n          price: 199,\n          compareAt: 249,\n          rating: 4.9,\n          reviews: 341,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Grey\", hex: \"#71717a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 5,\n          name: \"Commuter Backpack\",\n          category: \"Bags\",\n          price: 98,\n          rating: 4.7,\n          reviews: 187,\n          colors: [\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n            { name: \"Charcoal\", hex: \"#3f3f46\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 6,\n          name: \"Trail Backpack\",\n          category: \"Bags\",\n          price: 119,\n          rating: 4.4,\n          reviews: 76,\n          badge: \"New\",\n          colors: [\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n            { name: \"Sand\", hex: \"#d6c3a1\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1491637639811-60e2756cc1c7?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          category: \"Outerwear\",\n          price: 138,\n          compareAt: 168,\n          rating: 4.6,\n          reviews: 59,\n          badge: \"Sale\",\n          colors: [\n            { name: \"Rust\", hex: \"#b4532a\" },\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 8,\n          name: \"Knit Poncho\",\n          category: \"Clothing\",\n          price: 76,\n          rating: 4.3,\n          reviews: 41,\n          colors: [{ name: \"Cream\", hex: \"#f3e9d2\" }],\n          image:\n            \"https://images.unsplash.com/photo-1434389677669-e08b4cac3105?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          category: \"Clothing\",\n          price: 32,\n          rating: 4.7,\n          reviews: 512,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Sage\", hex: \"#9caf88\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 10,\n          name: \"Stoneware Mug\",\n          category: \"Home\",\n          price: 24,\n          rating: 4.8,\n          reviews: 266,\n          colors: [{ name: \"White\", hex: \"#f4f4f5\" }],\n          image:\n            \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          category: \"Bags\",\n          price: 28,\n          rating: 4.5,\n          reviews: 120,\n          colors: [{ name: \"Natural\", hex: \"#c8a77a\" }],\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 12,\n          name: \"Corduroy Dress\",\n          category: \"Clothing\",\n          price: 110,\n          rating: 4.6,\n          reviews: 64,\n          badge: \"New\",\n          colors: [\n            { name: \"Burgundy\", hex: \"#7f1d3a\" },\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1585487000160-6ebcfceb0d03?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 13,\n          name: \"Soy Candle\",\n          category: \"Home\",\n          price: 34,\n          rating: 4.9,\n          reviews: 301,\n          colors: [{ name: \"Amber\", hex: \"#d97706\" }],\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 14,\n          name: \"Crew Sweatshirt\",\n          category: \"Clothing\",\n          price: 58,\n          rating: 4.4,\n          reviews: 88,\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Grey\", hex: \"#a1a1aa\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const category = ref(\"All\");\n  const onSale = ref(false);\n  const sort = ref(\"featured\");\n\n  const categories = computed(() => [\"All\", ...new Set(props.products.map((p) => p.category))]);\n\n  const filtered = computed(() => {\n    const list = props.products.filter(\n      (p) =>\n        (category.value === \"All\" || p.category === category.value) &&\n        (!onSale.value || p.compareAt)\n    );\n    if (sort.value === \"price-asc\") return [...list].sort((a, b) => a.price - b.price);\n    if (sort.value === \"price-desc\") return [...list].sort((a, b) => b.price - a.price);\n    if (sort.value === \"rating\") return [...list].sort((a, b) => b.rating - a.rating);\n    return list;\n  });\n\n  function reset() {\n    category.value = \"All\";\n    onSale.value = false;\n  }\n</script>\n","category":"ProductList","description":"Product grid with a top filter bar. Features: Category chips, on sale toggle, sort select, color dots on every card, live result count and a one click reset, all filtering happens on the client","path":"Ecommerce/ProductList/BlockProductList3.vue","components":["aspect-ratio","badge","container","scroll-area","select","toggle","toggle-group"]},{"name":"Product List 4","fileName":"BlockProductList4.vue","file":"<template>\n  <!--\n    Product listing with grid and list view toggle\n    Features: Switch between a three column grid and a detailed list, the choice animates, list rows show rating, colors and a buy button, and the toggle is keyboard accessible\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex items-end justify-between gap-4\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h2>\n        <p class=\"text-muted-foreground mt-2\">{{ products.length }} products</p>\n      </div>\n      <UiToggleGroup\n        type=\"single\"\n        :model-value=\"view\"\n        aria-label=\"Layout\"\n        @update:model-value=\"(v) => (view = (v as 'grid' | 'list') || view)\"\n      >\n        <UiToggleGroupItem\n          variant=\"outline\"\n          size=\"sm\"\n          value=\"grid\"\n          aria-label=\"Grid view\"\n          icon=\"lucide:layout-grid\"\n        />\n        <UiToggleGroupItem\n          variant=\"outline\"\n          size=\"sm\"\n          value=\"list\"\n          aria-label=\"List view\"\n          icon=\"lucide:list\"\n        />\n      </UiToggleGroup>\n    </div>\n\n    <ul\n      class=\"mt-10 grid gap-x-6 gap-y-10\"\n      :class=\"view === 'grid' ? 'grid-cols-2 lg:grid-cols-3' : 'grid-cols-1 gap-y-6'\"\n    >\n      <Motion\n        v-for=\"product in products\"\n        :key=\"product.id\"\n        as=\"li\"\n        layout\n        :transition=\"{ duration: 0.3 }\"\n      >\n        <article\n          class=\"group\"\n          :class=\"view === 'list' ? 'flex gap-5 rounded-xl border p-3 sm:gap-6 sm:p-4' : ''\"\n        >\n          <div\n            class=\"bg-muted relative shrink-0 overflow-hidden rounded-lg\"\n            :class=\"view === 'list' ? 'w-28 sm:w-44' : 'w-full rounded-xl'\"\n          >\n            <UiAspectRatio :ratio=\"view === 'list' ? 1 : 4 / 5\">\n              <img\n                :src=\"product.image\"\n                :alt=\"product.name\"\n                loading=\"lazy\"\n                class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n              />\n            </UiAspectRatio>\n            <UiBadge\n              v-if=\"product.badge\"\n              :variant=\"product.badge === 'Sale' ? 'destructive' : 'secondary'\"\n              class=\"absolute top-2 left-2\"\n            >\n              {{ product.badge }}\n            </UiBadge>\n          </div>\n\n          <div\n            :class=\"\n              view === 'list'\n                ? 'flex min-w-0 flex-1 flex-col justify-between gap-3 py-1'\n                : 'mt-4 space-y-1.5'\n            \"\n          >\n            <div class=\"space-y-1.5\">\n              <p class=\"text-muted-foreground text-xs tracking-wide uppercase\">\n                {{ product.category }}\n              </p>\n              <h3 class=\"font-medium\">\n                <a :href=\"product.href\" class=\"hover:underline\">{{ product.name }}</a>\n              </h3>\n              <div class=\"flex items-center gap-1.5\">\n                <UiRating\n                  :model-value=\"product.rating\"\n                  size=\"sm\"\n                  icon=\"mdi:star\"\n                  filled-icon-class-name=\"text-amber-400\"\n                />\n                <span class=\"text-muted-foreground text-xs\">({{ product.reviews }})</span>\n              </div>\n              <div v-if=\"view === 'list'\" class=\"flex items-center gap-1.5\">\n                <span\n                  v-for=\"color in product.colors\"\n                  :key=\"color.hex\"\n                  class=\"size-4 rounded-full border\"\n                  :style=\"{ backgroundColor: color.hex }\"\n                  :title=\"color.name\"\n                />\n              </div>\n            </div>\n            <div\n              class=\"flex items-center justify-between gap-3\"\n              :class=\"view === 'grid' ? 'pt-1' : ''\"\n            >\n              <p class=\"flex items-baseline gap-2 text-sm\">\n                <span class=\"text-base font-semibold\">{{ money.format(product.price) }}</span>\n                <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-xs line-through\">\n                  {{ money.format(product.compareAt) }}\n                </span>\n              </p>\n              <UiButton v-if=\"view === 'list'\" size=\"sm\">\n                <Icon name=\"lucide:shopping-bag\" />\n                <span class=\"hidden sm:inline\">Add to cart</span>\n                <span class=\"sr-only sm:hidden\">Add {{ product.name }} to cart</span>\n              </UiButton>\n            </div>\n          </div>\n        </article>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      products?: Product[];\n    }>(),\n    {\n      title: \"Everyday essentials\",\n      products: () => [\n        {\n          id: 1,\n          name: \"Suede Brogue\",\n          category: \"Footwear\",\n          price: 128,\n          rating: 4.8,\n          reviews: 214,\n          badge: \"New\",\n          colors: [\n            { name: \"Teal\", hex: \"#0f766e\" },\n            { name: \"Tan\", hex: \"#b08968\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 2,\n          name: \"Minimal Watch\",\n          category: \"Accessories\",\n          price: 149,\n          compareAt: 189,\n          rating: 4.6,\n          reviews: 132,\n          badge: \"Sale\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 3,\n          name: \"Sunny Headphones\",\n          category: \"Audio\",\n          price: 89,\n          rating: 4.5,\n          reviews: 98,\n          colors: [\n            { name: \"Yellow\", hex: \"#facc15\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 4,\n          name: \"Studio Over-Ear\",\n          category: \"Audio\",\n          price: 199,\n          compareAt: 249,\n          rating: 4.9,\n          reviews: 341,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Grey\", hex: \"#71717a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 5,\n          name: \"Commuter Backpack\",\n          category: \"Bags\",\n          price: 98,\n          rating: 4.7,\n          reviews: 187,\n          colors: [\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n            { name: \"Charcoal\", hex: \"#3f3f46\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 6,\n          name: \"Trail Backpack\",\n          category: \"Bags\",\n          price: 119,\n          rating: 4.4,\n          reviews: 76,\n          badge: \"New\",\n          colors: [\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n            { name: \"Sand\", hex: \"#d6c3a1\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1491637639811-60e2756cc1c7?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          category: \"Outerwear\",\n          price: 138,\n          compareAt: 168,\n          rating: 4.6,\n          reviews: 59,\n          badge: \"Sale\",\n          colors: [\n            { name: \"Rust\", hex: \"#b4532a\" },\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 8,\n          name: \"Knit Poncho\",\n          category: \"Clothing\",\n          price: 76,\n          rating: 4.3,\n          reviews: 41,\n          colors: [{ name: \"Cream\", hex: \"#f3e9d2\" }],\n          image:\n            \"https://images.unsplash.com/photo-1434389677669-e08b4cac3105?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          category: \"Clothing\",\n          price: 32,\n          rating: 4.7,\n          reviews: 512,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Sage\", hex: \"#9caf88\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const view = ref<\"grid\" | \"list\">(\"grid\");\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n</script>\n","category":"ProductList","description":"Product listing with grid and list view toggle. Features: Switch between a three column grid and a detailed list, the choice animates, list rows show rating, colors and a buy button, and the toggle is keyboard accessible","path":"Ecommerce/ProductList/BlockProductList4.vue","components":["aspect-ratio","badge","button","container","rating","toggle-group"]},{"name":"Product List 5","fileName":"BlockProductList5.vue","file":"<template>\n  <!--\n    Shop by collection tiles\n    Features: Asymmetric bento grid of image tiles with a gradient scrim, item counts, a hover zoom and an arrow that nudges on hover, each tile is a single focusable link\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h2>\n        <p class=\"text-muted-foreground mt-2 max-w-xl\">{{ description }}</p>\n      </div>\n      <a href=\"#\" class=\"text-sm font-medium underline-offset-4 hover:underline\">\n        Browse all collections\n        <span aria-hidden=\"true\">&rarr;</span>\n      </a>\n    </div>\n\n    <ul class=\"mt-10 grid auto-rows-[180px] grid-cols-2 gap-4 lg:auto-rows-[220px] lg:grid-cols-4\">\n      <Motion\n        v-for=\"(collection, i) in collections\"\n        :key=\"collection.name\"\n        as=\"li\"\n        :class=\"tileClasses[i]\"\n        :initial=\"{ opacity: 0, scale: 0.97 }\"\n        :while-in-view=\"{ opacity: 1, scale: 1 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.45, delay: i * 0.07 }\"\n      >\n        <a\n          :href=\"collection.href\"\n          class=\"group focus-visible:ring-ring relative block size-full overflow-hidden rounded-2xl focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n        >\n          <img\n            :src=\"collection.image\"\n            :alt=\"collection.name\"\n            loading=\"lazy\"\n            class=\"absolute inset-0 size-full object-cover transition duration-700 group-hover:scale-105\"\n          />\n          <div\n            class=\"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent\"\n            aria-hidden=\"true\"\n          />\n          <div\n            class=\"absolute inset-x-0 bottom-0 flex items-end justify-between gap-3 p-5 text-white\"\n          >\n            <div>\n              <h3 class=\"text-lg font-semibold\">{{ collection.name }}</h3>\n              <p class=\"text-sm text-white/75\">{{ collection.count }} items</p>\n            </div>\n            <span\n              class=\"grid size-9 shrink-0 place-items-center rounded-full bg-white/20 backdrop-blur transition group-hover:translate-x-1 group-hover:bg-white group-hover:text-black\"\n              aria-hidden=\"true\"\n            >\n              <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n            </span>\n          </div>\n        </a>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Collection = {\n    name: string;\n    count: number;\n    image: string;\n    href: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      collections?: Collection[];\n    }>(),\n    {\n      title: \"Shop by collection\",\n      description: \"Start with the category you love and work your way through the edit.\",\n      collections: () => [\n        {\n          name: \"Footwear\",\n          count: 24,\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=1000&q=80\",\n          href: \"#\",\n        },\n        {\n          name: \"Audio\",\n          count: 12,\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=1000&q=80\",\n          href: \"#\",\n        },\n        {\n          name: \"Bags\",\n          count: 18,\n          image:\n            \"https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=1000&q=80\",\n          href: \"#\",\n        },\n        {\n          name: \"Outerwear\",\n          count: 16,\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1000&q=80\",\n          href: \"#\",\n        },\n        {\n          name: \"Home\",\n          count: 31,\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=1000&q=80\",\n          href: \"#\",\n        },\n        {\n          name: \"Accessories\",\n          count: 27,\n          image:\n            \"https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=1000&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  // Bento layout that fills a four column, three row grid with the six default tiles.\n  // Extra collections fall back to a single cell.\n  const tileClasses = [\"col-span-2 row-span-2\", \"\", \"\", \"col-span-2\", \"col-span-2\", \"col-span-2\"];\n</script>\n","category":"ProductList","description":"Shop by collection tiles. Features: Asymmetric bento grid of image tiles with a gradient scrim, item counts, a hover zoom and an arrow that nudges on hover, each tile is a single focusable link","path":"Ecommerce/ProductList/BlockProductList5.vue","components":["container"]},{"name":"Product List 6","fileName":"BlockProductList6.vue","file":"<template>\n  <!--\n    Product grid with a quick view dialog\n    Features: Hover quick view button on every card, dialog with large image, color swatches, size picker, quantity stepper and add to cart, focus is trapped and restored by the dialog\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h2>\n      <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n    </div>\n\n    <ul class=\"mt-12 grid grid-cols-2 gap-x-4 gap-y-10 lg:grid-cols-4 lg:gap-x-6\">\n      <li v-for=\"product in products.slice(0, 8)\" :key=\"product.id\" class=\"group\">\n        <div class=\"bg-muted relative overflow-hidden rounded-xl\">\n          <UiAspectRatio :ratio=\"4 / 5\">\n            <img\n              :src=\"product.image\"\n              :alt=\"product.name\"\n              loading=\"lazy\"\n              class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n            />\n          </UiAspectRatio>\n          <div\n            class=\"absolute inset-x-3 bottom-3 transition duration-300 lg:translate-y-2 lg:opacity-0 lg:group-focus-within:translate-y-0 lg:group-focus-within:opacity-100 lg:group-hover:translate-y-0 lg:group-hover:opacity-100\"\n          >\n            <UiButton\n              variant=\"secondary\"\n              size=\"sm\"\n              class=\"w-full shadow-md\"\n              @click=\"openQuickView(product)\"\n            >\n              <Icon name=\"lucide:eye\" />\n              Quick view\n            </UiButton>\n          </div>\n        </div>\n        <div class=\"mt-4 space-y-1\">\n          <h3 class=\"text-sm font-medium\">{{ product.name }}</h3>\n          <p class=\"flex items-baseline gap-2 text-sm\">\n            <span class=\"font-semibold\">{{ money.format(product.price) }}</span>\n            <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-xs line-through\">\n              {{ money.format(product.compareAt) }}\n            </span>\n          </p>\n        </div>\n      </li>\n    </ul>\n\n    <UiDialog v-model:open=\"open\">\n      <UiDialogContent class=\"gap-0 overflow-hidden p-0 sm:max-w-3xl\">\n        <template v-if=\"active\">\n          <UiDialogTitle class=\"sr-only\">{{ active.name }}</UiDialogTitle>\n          <UiDialogDescription class=\"sr-only\">\n            Quick view of {{ active.name }}. Choose options and add it to your cart.\n          </UiDialogDescription>\n          <div class=\"grid sm:grid-cols-2\">\n            <div class=\"bg-muted relative aspect-square sm:aspect-auto\">\n              <img\n                :src=\"active.image\"\n                :alt=\"active.name\"\n                class=\"absolute inset-0 size-full object-cover\"\n              />\n            </div>\n            <div class=\"flex flex-col gap-5 p-6 sm:p-8\">\n              <div class=\"space-y-2\">\n                <p class=\"text-muted-foreground text-xs tracking-wide uppercase\">\n                  {{ active.category }}\n                </p>\n                <h3 class=\"text-2xl font-semibold\">{{ active.name }}</h3>\n                <div class=\"flex items-center gap-2\">\n                  <UiRating\n                    :model-value=\"active.rating\"\n                    size=\"sm\"\n                    icon=\"mdi:star\"\n                    filled-icon-class-name=\"text-amber-400\"\n                  />\n                  <span class=\"text-muted-foreground text-sm\">{{ active.reviews }} reviews</span>\n                </div>\n                <p class=\"flex items-baseline gap-2\">\n                  <span class=\"text-2xl font-semibold\">{{ money.format(active.price) }}</span>\n                  <span v-if=\"active.compareAt\" class=\"text-muted-foreground line-through\">\n                    {{ money.format(active.compareAt) }}\n                  </span>\n                </p>\n              </div>\n\n              <fieldset>\n                <legend class=\"mb-2 text-sm font-medium\">\n                  Color: <span class=\"text-muted-foreground font-normal\">{{ color?.name }}</span>\n                </legend>\n                <div class=\"flex gap-2\">\n                  <button\n                    v-for=\"c in active.colors\"\n                    :key=\"c.hex\"\n                    type=\"button\"\n                    class=\"focus-visible:ring-ring size-8 rounded-full border transition focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n                    :class=\"color?.hex === c.hex ? 'ring-primary ring-2 ring-offset-2' : ''\"\n                    :style=\"{ backgroundColor: c.hex }\"\n                    :aria-label=\"c.name\"\n                    :aria-pressed=\"color?.hex === c.hex\"\n                    @click=\"color = c\"\n                  />\n                </div>\n              </fieldset>\n\n              <fieldset v-if=\"hasSizes(active)\">\n                <legend class=\"mb-2 text-sm font-medium\">Size</legend>\n                <UiToggleGroup\n                  type=\"single\"\n                  class=\"justify-start\"\n                  :model-value=\"size\"\n                  @update:model-value=\"(v) => (size = (v as string) || size)\"\n                >\n                  <UiToggleGroupItem\n                    v-for=\"s in sizes\"\n                    :key=\"s\"\n                    variant=\"outline\"\n                    size=\"sm\"\n                    :value=\"s\"\n                    class=\"w-10\"\n                  >\n                    {{ s }}\n                  </UiToggleGroupItem>\n                </UiToggleGroup>\n              </fieldset>\n\n              <div class=\"mt-auto flex items-center gap-3 pt-2\">\n                <UiNumberField v-model=\"quantity\" :min=\"1\" :max=\"10\" class=\"w-32\">\n                  <UiNumberFieldDecrement />\n                  <UiNumberFieldInput class=\"text-center\" aria-label=\"Quantity\" />\n                  <UiNumberFieldIncrement />\n                </UiNumberField>\n                <UiButton class=\"flex-1\" @click=\"addToCart\">\n                  <Icon :name=\"added ? 'lucide:check' : 'lucide:shopping-bag'\" />\n                  {{ added ? \"Added to cart\" : \"Add to cart\" }}\n                </UiButton>\n              </div>\n              <a\n                :href=\"active.href\"\n                class=\"text-muted-foreground hover:text-foreground text-center text-sm underline underline-offset-4\"\n              >\n                View full details\n              </a>\n            </div>\n          </div>\n        </template>\n      </UiDialogContent>\n    </UiDialog>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      sizes?: string[];\n      products?: Product[];\n    }>(),\n    {\n      title: \"Best sellers\",\n      description: \"Peek at the details without leaving the page.\",\n      sizes: () => [\"XS\", \"S\", \"M\", \"L\", \"XL\"],\n      products: () => [\n        {\n          id: 1,\n          name: \"Suede Brogue\",\n          category: \"Footwear\",\n          price: 128,\n          rating: 4.8,\n          reviews: 214,\n          badge: \"New\",\n          colors: [\n            { name: \"Teal\", hex: \"#0f766e\" },\n            { name: \"Tan\", hex: \"#b08968\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 2,\n          name: \"Minimal Watch\",\n          category: \"Accessories\",\n          price: 149,\n          compareAt: 189,\n          rating: 4.6,\n          reviews: 132,\n          badge: \"Sale\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 3,\n          name: \"Sunny Headphones\",\n          category: \"Audio\",\n          price: 89,\n          rating: 4.5,\n          reviews: 98,\n          colors: [\n            { name: \"Yellow\", hex: \"#facc15\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 4,\n          name: \"Studio Over-Ear\",\n          category: \"Audio\",\n          price: 199,\n          compareAt: 249,\n          rating: 4.9,\n          reviews: 341,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Grey\", hex: \"#71717a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 5,\n          name: \"Commuter Backpack\",\n          category: \"Bags\",\n          price: 98,\n          rating: 4.7,\n          reviews: 187,\n          colors: [\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n            { name: \"Charcoal\", hex: \"#3f3f46\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 6,\n          name: \"Trail Backpack\",\n          category: \"Bags\",\n          price: 119,\n          rating: 4.4,\n          reviews: 76,\n          badge: \"New\",\n          colors: [\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n            { name: \"Sand\", hex: \"#d6c3a1\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1491637639811-60e2756cc1c7?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          category: \"Outerwear\",\n          price: 138,\n          compareAt: 168,\n          rating: 4.6,\n          reviews: 59,\n          badge: \"Sale\",\n          colors: [\n            { name: \"Rust\", hex: \"#b4532a\" },\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 8,\n          name: \"Knit Poncho\",\n          category: \"Clothing\",\n          price: 76,\n          rating: 4.3,\n          reviews: 41,\n          colors: [{ name: \"Cream\", hex: \"#f3e9d2\" }],\n          image:\n            \"https://images.unsplash.com/photo-1434389677669-e08b4cac3105?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const open = ref(false);\n  const active = ref<Product | null>(null);\n  const color = ref<Product[\"colors\"][number]>();\n  const size = ref(\"M\");\n  const quantity = ref(1);\n  const added = ref(false);\n\n  // Sizes only make sense for wearable categories. Adjust this to fit your catalog.\n  function hasSizes(product: Product) {\n    return [\"Clothing\", \"Outerwear\", \"Footwear\"].includes(product.category);\n  }\n\n  function openQuickView(product: Product) {\n    active.value = product;\n    color.value = product.colors[0];\n    size.value = \"M\";\n    quantity.value = 1;\n    added.value = false;\n    open.value = true;\n  }\n\n  // Replace this with a call to your cart store or API.\n  function addToCart() {\n    added.value = true;\n    setTimeout(() => {\n      added.value = false;\n      open.value = false;\n    }, 1200);\n  }\n</script>\n","category":"ProductList","description":"Product grid with a quick view dialog. Features: Hover quick view button on every card, dialog with large image, color swatches, size picker, quantity stepper and add to cart, focus is trapped and restored by the dialog","path":"Ecommerce/ProductList/BlockProductList6.vue","components":["aspect-ratio","button","container","dialog","number-field","rating","toggle-group"]},{"name":"Product List 7","fileName":"BlockProductList7.vue","file":"<template>\n  <!--\n    Recommended products carousel\n    Features: Draggable Embla carousel with responsive slides, header arrows that disable at the ends, keyboard support, compact cards with rating and price\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <UiCarousel\n      v-slot=\"{ canScrollPrev, canScrollNext, scrollPrev, scrollNext }\"\n      :opts=\"{ align: 'start', dragFree: true }\"\n    >\n      <div class=\"flex items-end justify-between gap-4\">\n        <div>\n          <h2 class=\"text-2xl font-bold tracking-tight sm:text-3xl\">{{ title }}</h2>\n          <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n        </div>\n        <div class=\"flex gap-2\">\n          <UiButton\n            variant=\"outline\"\n            size=\"icon\"\n            class=\"rounded-full\"\n            :disabled=\"!canScrollPrev\"\n            aria-label=\"Previous products\"\n            @click=\"scrollPrev\"\n          >\n            <Icon name=\"lucide:arrow-left\" />\n          </UiButton>\n          <UiButton\n            variant=\"outline\"\n            size=\"icon\"\n            class=\"rounded-full\"\n            :disabled=\"!canScrollNext\"\n            aria-label=\"Next products\"\n            @click=\"scrollNext\"\n          >\n            <Icon name=\"lucide:arrow-right\" />\n          </UiButton>\n        </div>\n      </div>\n\n      <UiCarouselContent class=\"mt-8 -ml-4\">\n        <UiCarouselItem\n          v-for=\"product in products\"\n          :key=\"product.id\"\n          grab-cursor\n          class=\"basis-2/3 pl-4 sm:basis-1/3 lg:basis-1/4 xl:basis-1/5\"\n        >\n          <article class=\"group\">\n            <div class=\"bg-muted relative overflow-hidden rounded-xl\">\n              <UiAspectRatio :ratio=\"1\">\n                <img\n                  :src=\"product.image\"\n                  :alt=\"product.name\"\n                  loading=\"lazy\"\n                  draggable=\"false\"\n                  class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n                />\n              </UiAspectRatio>\n              <UiBadge v-if=\"product.compareAt\" variant=\"destructive\" class=\"absolute top-3 left-3\">\n                Sale\n              </UiBadge>\n            </div>\n            <div class=\"mt-3 space-y-1\">\n              <h3 class=\"truncate text-sm font-medium\">\n                <a :href=\"product.href\" class=\"hover:underline\">{{ product.name }}</a>\n              </h3>\n              <div class=\"flex items-center gap-1.5\">\n                <Icon name=\"mdi:star\" class=\"size-3.5 text-amber-400\" />\n                <span class=\"text-xs\">{{ product.rating.toFixed(1) }}</span>\n                <span class=\"text-muted-foreground text-xs\">({{ product.reviews }})</span>\n              </div>\n              <p class=\"flex items-baseline gap-2 text-sm\">\n                <span class=\"font-semibold\">{{ money.format(product.price) }}</span>\n                <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-xs line-through\">\n                  {{ money.format(product.compareAt) }}\n                </span>\n              </p>\n            </div>\n          </article>\n        </UiCarouselItem>\n      </UiCarouselContent>\n    </UiCarousel>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      products?: Product[];\n    }>(),\n    {\n      title: \"You might also like\",\n      description: \"Picked from what other customers added to their carts.\",\n      products: () => [\n        {\n          id: 1,\n          name: \"Suede Brogue\",\n          category: \"Footwear\",\n          price: 128,\n          rating: 4.8,\n          reviews: 214,\n          badge: \"New\",\n          colors: [\n            { name: \"Teal\", hex: \"#0f766e\" },\n            { name: \"Tan\", hex: \"#b08968\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 2,\n          name: \"Minimal Watch\",\n          category: \"Accessories\",\n          price: 149,\n          compareAt: 189,\n          rating: 4.6,\n          reviews: 132,\n          badge: \"Sale\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 3,\n          name: \"Sunny Headphones\",\n          category: \"Audio\",\n          price: 89,\n          rating: 4.5,\n          reviews: 98,\n          colors: [\n            { name: \"Yellow\", hex: \"#facc15\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 4,\n          name: \"Studio Over-Ear\",\n          category: \"Audio\",\n          price: 199,\n          compareAt: 249,\n          rating: 4.9,\n          reviews: 341,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Grey\", hex: \"#71717a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 5,\n          name: \"Commuter Backpack\",\n          category: \"Bags\",\n          price: 98,\n          rating: 4.7,\n          reviews: 187,\n          colors: [\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n            { name: \"Charcoal\", hex: \"#3f3f46\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 6,\n          name: \"Trail Backpack\",\n          category: \"Bags\",\n          price: 119,\n          rating: 4.4,\n          reviews: 76,\n          badge: \"New\",\n          colors: [\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n            { name: \"Sand\", hex: \"#d6c3a1\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1491637639811-60e2756cc1c7?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          category: \"Outerwear\",\n          price: 138,\n          compareAt: 168,\n          rating: 4.6,\n          reviews: 59,\n          badge: \"Sale\",\n          colors: [\n            { name: \"Rust\", hex: \"#b4532a\" },\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 8,\n          name: \"Knit Poncho\",\n          category: \"Clothing\",\n          price: 76,\n          rating: 4.3,\n          reviews: 41,\n          colors: [{ name: \"Cream\", hex: \"#f3e9d2\" }],\n          image:\n            \"https://images.unsplash.com/photo-1434389677669-e08b4cac3105?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          category: \"Clothing\",\n          price: 32,\n          rating: 4.7,\n          reviews: 512,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Sage\", hex: \"#9caf88\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 10,\n          name: \"Stoneware Mug\",\n          category: \"Home\",\n          price: 24,\n          rating: 4.8,\n          reviews: 266,\n          colors: [{ name: \"White\", hex: \"#f4f4f5\" }],\n          image:\n            \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          category: \"Bags\",\n          price: 28,\n          rating: 4.5,\n          reviews: 120,\n          colors: [{ name: \"Natural\", hex: \"#c8a77a\" }],\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 12,\n          name: \"Corduroy Dress\",\n          category: \"Clothing\",\n          price: 110,\n          rating: 4.6,\n          reviews: 64,\n          badge: \"New\",\n          colors: [\n            { name: \"Burgundy\", hex: \"#7f1d3a\" },\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1585487000160-6ebcfceb0d03?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 13,\n          name: \"Soy Candle\",\n          category: \"Home\",\n          price: 34,\n          rating: 4.9,\n          reviews: 301,\n          colors: [{ name: \"Amber\", hex: \"#d97706\" }],\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 14,\n          name: \"Crew Sweatshirt\",\n          category: \"Clothing\",\n          price: 58,\n          rating: 4.4,\n          reviews: 88,\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Grey\", hex: \"#a1a1aa\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n</script>\n","category":"ProductList","description":"Recommended products carousel. Features: Draggable Embla carousel with responsive slides, header arrows that disable at the ends, keyboard support, compact cards with rating and price","path":"Ecommerce/ProductList/BlockProductList7.vue","components":["aspect-ratio","badge","button","carousel","container"]},{"name":"Product List 8","fileName":"BlockProductList8.vue","file":"<template>\n  <!--\n    Product grid with load more and skeleton loading\n    Features: Shows a batch of products, a load more button that reveals skeleton cards while fetching, a progress bar with the viewed count and polite screen reader announcements\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h2>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n    </div>\n\n    <ul\n      class=\"mt-10 grid grid-cols-2 gap-x-4 gap-y-10 md:grid-cols-3 lg:grid-cols-4\"\n      :aria-busy=\"loading\"\n    >\n      <li v-for=\"product in visibleProducts\" :key=\"product.id\" class=\"group\">\n        <div class=\"bg-muted relative overflow-hidden rounded-xl\">\n          <UiAspectRatio :ratio=\"4 / 5\">\n            <img\n              :src=\"product.image\"\n              :alt=\"product.name\"\n              loading=\"lazy\"\n              class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n            />\n          </UiAspectRatio>\n          <UiBadge\n            v-if=\"product.badge\"\n            :variant=\"product.badge === 'Sale' ? 'destructive' : 'secondary'\"\n            class=\"absolute top-3 left-3\"\n          >\n            {{ product.badge }}\n          </UiBadge>\n        </div>\n        <div class=\"mt-4 space-y-1\">\n          <h3 class=\"text-sm font-medium\">\n            <a :href=\"product.href\" class=\"hover:underline\">{{ product.name }}</a>\n          </h3>\n          <p class=\"text-muted-foreground text-xs\">{{ product.category }}</p>\n          <p class=\"flex items-baseline gap-2 text-sm\">\n            <span class=\"font-semibold\">{{ money.format(product.price) }}</span>\n            <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-xs line-through\">\n              {{ money.format(product.compareAt) }}\n            </span>\n          </p>\n        </div>\n      </li>\n\n      <template v-if=\"loading\">\n        <li v-for=\"n in skeletonCount\" :key=\"`s-${n}`\" aria-hidden=\"true\">\n          <UiSkeleton class=\"aspect-[4/5] w-full rounded-xl\" />\n          <div class=\"mt-4 space-y-2\">\n            <UiSkeleton class=\"h-4 w-3/4\" />\n            <UiSkeleton class=\"h-3 w-1/3\" />\n            <UiSkeleton class=\"h-4 w-1/4\" />\n          </div>\n        </li>\n      </template>\n    </ul>\n\n    <div class=\"mt-14 flex flex-col items-center gap-4\" role=\"status\" aria-live=\"polite\">\n      <p class=\"text-muted-foreground text-sm\">\n        Showing {{ visibleProducts.length }} of {{ products.length }} products\n      </p>\n      <UiProgress\n        :model-value=\"(visibleProducts.length / products.length) * 100\"\n        class=\"h-1 w-48\"\n      />\n      <UiButton\n        v-if=\"hasMore\"\n        variant=\"outline\"\n        :loading=\"loading\"\n        :disabled=\"loading\"\n        @click=\"loadMore\"\n      >\n        {{ loading ? \"Loading\" : \"Load more\" }}\n      </UiButton>\n      <p v-else class=\"text-muted-foreground text-sm\">You have seen everything.</p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    id: number;\n    name: string;\n    category: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    badge?: string;\n    colors: { name: string; hex: string }[];\n    image: string;\n    href: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      pageSize?: number;\n      products?: Product[];\n    }>(),\n    {\n      title: \"All products\",\n      description: \"Browse the full range. We load a few more each time you ask.\",\n      pageSize: 4,\n      products: () => [\n        {\n          id: 1,\n          name: \"Suede Brogue\",\n          category: \"Footwear\",\n          price: 128,\n          rating: 4.8,\n          reviews: 214,\n          badge: \"New\",\n          colors: [\n            { name: \"Teal\", hex: \"#0f766e\" },\n            { name: \"Tan\", hex: \"#b08968\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 2,\n          name: \"Minimal Watch\",\n          category: \"Accessories\",\n          price: 149,\n          compareAt: 189,\n          rating: 4.6,\n          reviews: 132,\n          badge: \"Sale\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 3,\n          name: \"Sunny Headphones\",\n          category: \"Audio\",\n          price: 89,\n          rating: 4.5,\n          reviews: 98,\n          colors: [\n            { name: \"Yellow\", hex: \"#facc15\" },\n            { name: \"Black\", hex: \"#18181b\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 4,\n          name: \"Studio Over-Ear\",\n          category: \"Audio\",\n          price: 199,\n          compareAt: 249,\n          rating: 4.9,\n          reviews: 341,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Grey\", hex: \"#71717a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 5,\n          name: \"Commuter Backpack\",\n          category: \"Bags\",\n          price: 98,\n          rating: 4.7,\n          reviews: 187,\n          colors: [\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n            { name: \"Charcoal\", hex: \"#3f3f46\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 6,\n          name: \"Trail Backpack\",\n          category: \"Bags\",\n          price: 119,\n          rating: 4.4,\n          reviews: 76,\n          badge: \"New\",\n          colors: [\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n            { name: \"Sand\", hex: \"#d6c3a1\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1491637639811-60e2756cc1c7?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 7,\n          name: \"Bomber Jacket\",\n          category: \"Outerwear\",\n          price: 138,\n          compareAt: 168,\n          rating: 4.6,\n          reviews: 59,\n          badge: \"Sale\",\n          colors: [\n            { name: \"Rust\", hex: \"#b4532a\" },\n            { name: \"Olive\", hex: \"#4d5d3a\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 8,\n          name: \"Knit Poncho\",\n          category: \"Clothing\",\n          price: 76,\n          rating: 4.3,\n          reviews: 41,\n          colors: [{ name: \"Cream\", hex: \"#f3e9d2\" }],\n          image:\n            \"https://images.unsplash.com/photo-1434389677669-e08b4cac3105?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 9,\n          name: \"Classic Tee\",\n          category: \"Clothing\",\n          price: 32,\n          rating: 4.7,\n          reviews: 512,\n          badge: \"Best seller\",\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Black\", hex: \"#18181b\" },\n            { name: \"Sage\", hex: \"#9caf88\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 10,\n          name: \"Stoneware Mug\",\n          category: \"Home\",\n          price: 24,\n          rating: 4.8,\n          reviews: 266,\n          colors: [{ name: \"White\", hex: \"#f4f4f5\" }],\n          image:\n            \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 11,\n          name: \"Canvas Tote\",\n          category: \"Bags\",\n          price: 28,\n          rating: 4.5,\n          reviews: 120,\n          colors: [{ name: \"Natural\", hex: \"#c8a77a\" }],\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 12,\n          name: \"Corduroy Dress\",\n          category: \"Clothing\",\n          price: 110,\n          rating: 4.6,\n          reviews: 64,\n          badge: \"New\",\n          colors: [\n            { name: \"Burgundy\", hex: \"#7f1d3a\" },\n            { name: \"Navy\", hex: \"#1e3a5f\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1585487000160-6ebcfceb0d03?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 13,\n          name: \"Soy Candle\",\n          category: \"Home\",\n          price: 34,\n          rating: 4.9,\n          reviews: 301,\n          colors: [{ name: \"Amber\", hex: \"#d97706\" }],\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n        {\n          id: 14,\n          name: \"Crew Sweatshirt\",\n          category: \"Clothing\",\n          price: 58,\n          rating: 4.4,\n          reviews: 88,\n          colors: [\n            { name: \"White\", hex: \"#f4f4f5\" },\n            { name: \"Grey\", hex: \"#a1a1aa\" },\n          ],\n          image:\n            \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=800&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const shown = ref(props.pageSize * 2);\n  const loading = ref(false);\n\n  const visibleProducts = computed(() => props.products.slice(0, shown.value));\n  const hasMore = computed(() => shown.value < props.products.length);\n  const skeletonCount = computed(() =>\n    Math.min(props.pageSize, props.products.length - shown.value)\n  );\n\n  // Swap the timeout for a real request that fetches the next page.\n  function loadMore() {\n    if (loading.value) return;\n    loading.value = true;\n    setTimeout(() => {\n      shown.value = Math.min(shown.value + props.pageSize, props.products.length);\n      loading.value = false;\n    }, 900);\n  }\n</script>\n","category":"ProductList","description":"Product grid with load more and skeleton loading. Features: Shows a batch of products, a load more button that reveals skeleton cards while fetching, a progress bar with the viewed count and polite screen reader announcements","path":"Ecommerce/ProductList/BlockProductList8.vue","components":["aspect-ratio","badge","button","container","progress","skeleton"]},{"name":"Settings Profile Company","fileName":"BlockSettingsProfileCompany.vue","file":"<template>\n  <!--\n    Company profile settings with logo upload\n    Features: Logo preview and upload, name and website fields, industry and size selects, brand colour input\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <form @submit.prevent=\"save\">\n      <UiCardContent class=\"space-y-6\">\n        <div class=\"flex flex-col gap-4 sm:flex-row sm:items-center\">\n          <div\n            class=\"bg-muted flex size-20 shrink-0 items-center justify-center overflow-hidden rounded-xl border\"\n          >\n            <img v-if=\"logo\" :src=\"logo\" alt=\"Company logo\" class=\"size-full object-cover\" />\n            <Icon v-else name=\"lucide:building-2\" class=\"text-muted-foreground size-8\" />\n          </div>\n          <div class=\"space-y-2\">\n            <div class=\"flex gap-2\">\n              <UiButton type=\"button\" variant=\"outline\" size=\"sm\" @click=\"fileInput?.click()\">\n                Upload logo\n              </UiButton>\n              <UiButton\n                v-if=\"logo\"\n                type=\"button\"\n                variant=\"ghost\"\n                size=\"sm\"\n                @click=\"logo = undefined\"\n              >\n                Remove\n              </UiButton>\n            </div>\n            <p class=\"text-muted-foreground text-xs\">SVG, PNG or JPG. Square works best.</p>\n            <input ref=\"fileInput\" type=\"file\" accept=\"image/*\" class=\"sr-only\" @change=\"onFile\" />\n          </div>\n        </div>\n\n        <div class=\"grid gap-5 sm:grid-cols-2\">\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"company-name\">Company name</UiLabel>\n            <UiInput id=\"company-name\" v-model=\"form.name\" />\n          </div>\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"company-site\">Website</UiLabel>\n            <div class=\"flex\">\n              <span\n                class=\"bg-muted text-muted-foreground flex items-center rounded-l-md border border-r-0 px-3 text-sm\"\n              >\n                https://\n              </span>\n              <UiInput id=\"company-site\" v-model=\"form.website\" class=\"rounded-l-none\" />\n            </div>\n          </div>\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"company-industry\">Industry</UiLabel>\n            <UiNativeSelect id=\"company-industry\" v-model=\"form.industry\">\n              <option>Software</option>\n              <option>Finance</option>\n              <option>Healthcare</option>\n              <option>Education</option>\n              <option>Retail</option>\n            </UiNativeSelect>\n          </div>\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"company-size\">Company size</UiLabel>\n            <UiNativeSelect id=\"company-size\" v-model=\"form.size\">\n              <option>1-10 people</option>\n              <option>11-50 people</option>\n              <option>51-200 people</option>\n              <option>201+ people</option>\n            </UiNativeSelect>\n          </div>\n          <div class=\"grid gap-2 sm:col-span-2\">\n            <UiLabel for=\"company-color\">Brand colour</UiLabel>\n            <div class=\"flex items-center gap-3\">\n              <input\n                id=\"company-color\"\n                v-model=\"form.color\"\n                type=\"color\"\n                class=\"size-9 cursor-pointer rounded-md border bg-transparent p-1\"\n              />\n              <UiInput\n                v-model=\"form.color\"\n                class=\"max-w-40 font-mono\"\n                aria-label=\"Brand colour hex\"\n              />\n            </div>\n          </div>\n          <div class=\"grid gap-2 sm:col-span-2\">\n            <UiLabel for=\"company-about\">About</UiLabel>\n            <UiTextarea id=\"company-about\" v-model=\"form.about\" :rows=\"3\" />\n          </div>\n        </div>\n      </UiCardContent>\n      <UiCardFooter class=\"justify-end gap-2 border-t\">\n        <UiButton type=\"button\" variant=\"outline\">Cancel</UiButton>\n        <UiButton type=\"submit\">Save changes</UiButton>\n      </UiCardFooter>\n    </form>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Company profile\",\n      description: \"Update your company's logo and details.\",\n    }\n  );\n\n  const form = reactive({\n    name: \"UI Thing\",\n    website: \"uithing.com\",\n    industry: \"Software\",\n    size: \"11-50 people\",\n    color: \"#7c3aed\",\n    about: \"We build tools that help small teams ship faster.\",\n  });\n\n  const fileInput = ref<HTMLInputElement>();\n  const logo = ref<string>();\n\n  function onFile(event: Event) {\n    const file = (event.target as HTMLInputElement).files?.[0];\n    if (file) logo.value = URL.createObjectURL(file);\n  }\n\n  function save() {\n    useSonner.success(\"Company profile saved\");\n  }\n</script>\n","category":"Profile","description":"Company profile settings with logo upload. Features: Logo preview and upload, name and website fields, industry and size selects, brand colour input","path":"Settings/Profile/BlockSettingsProfileCompany.vue","components":["button","card","input","label","native-select","textarea"]},{"name":"Settings Profile Editable","fileName":"BlockSettingsProfileEditable.vue","file":"<template>\n  <!--\n    Profile details as a list of rows that edit in place\n    Features: Read-only rows with an edit button, inline input with save and cancel, no page-level form\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <UiCardContent class=\"divide-y p-0\">\n      <div\n        v-for=\"field in fields\"\n        :key=\"field.key\"\n        class=\"grid gap-3 px-6 py-4 sm:grid-cols-[10rem_1fr_auto] sm:items-center\"\n      >\n        <p class=\"text-muted-foreground text-sm font-medium\">{{ field.label }}</p>\n\n        <form\n          v-if=\"editing === field.key\"\n          class=\"flex items-center gap-2 sm:contents\"\n          @submit.prevent=\"commit(field.key)\"\n        >\n          <UiInput\n            v-model=\"draft\"\n            :type=\"field.type ?? 'text'\"\n            :aria-label=\"field.label\"\n            autofocus\n            class=\"h-8\"\n          />\n          <div class=\"flex gap-1\">\n            <UiButton type=\"submit\" size=\"sm\">Save</UiButton>\n            <UiButton type=\"button\" size=\"sm\" variant=\"ghost\" @click=\"editing = undefined\">\n              Cancel\n            </UiButton>\n          </div>\n        </form>\n\n        <template v-else>\n          <p class=\"text-sm\">{{ values[field.key] }}</p>\n          <UiButton variant=\"ghost\" size=\"sm\" class=\"justify-self-start\" @click=\"edit(field.key)\">\n            <Icon name=\"lucide:pencil\" class=\"size-3.5\" />\n            Edit\n          </UiButton>\n        </template>\n      </div>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type FieldKey = \"name\" | \"email\" | \"phone\" | \"location\" | \"website\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Personal details\",\n      description: \"Click edit on any row to change it.\",\n    }\n  );\n\n  const fields: { key: FieldKey; label: string; type?: string }[] = [\n    { key: \"name\", label: \"Full name\" },\n    { key: \"email\", label: \"Email address\", type: \"email\" },\n    { key: \"phone\", label: \"Phone number\", type: \"tel\" },\n    { key: \"location\", label: \"Location\" },\n    { key: \"website\", label: \"Website\", type: \"url\" },\n  ];\n\n  const values = reactive<Record<FieldKey, string>>({\n    name: \"Maya Chen\",\n    email: \"maya@uithing.com\",\n    phone: \"+1 (555) 010-2030\",\n    location: \"Melbourne, Australia\",\n    website: \"https://uithing.com\",\n  });\n\n  const editing = ref<FieldKey>();\n  const draft = ref(\"\");\n\n  function edit(key: FieldKey) {\n    editing.value = key;\n    draft.value = values[key];\n  }\n\n  function commit(key: FieldKey) {\n    values[key] = draft.value.trim() || values[key];\n    editing.value = undefined;\n    useSonner.success(\"Saved\");\n  }\n</script>\n","category":"Profile","description":"Profile details as a list of rows that edit in place. Features: Read-only rows with an edit button, inline input with save and cancel, no page-level form","path":"Settings/Profile/BlockSettingsProfileEditable.vue","components":["button","card","input"]},{"name":"Settings Profile Form","fileName":"BlockSettingsProfileForm.vue","file":"<template>\n  <!--\n    Profile settings card with avatar upload and validated fields\n    Features: Avatar preview with upload and remove, vee-validate and yup validation, bio character counter, success toast\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <form @submit.prevent=\"onSubmit\">\n      <UiCardContent class=\"space-y-6\">\n        <div class=\"flex items-center gap-5\">\n          <UiAvatar\n            class=\"size-20\"\n            :src=\"preview || 'https://i.pravatar.cc/200?img=44'\"\n            fallback=\"MC\"\n          />\n          <div class=\"space-y-2\">\n            <div class=\"flex gap-2\">\n              <UiButton type=\"button\" variant=\"outline\" size=\"sm\" @click=\"fileInput?.click()\">\n                Change photo\n              </UiButton>\n              <UiButton type=\"button\" variant=\"ghost\" size=\"sm\" @click=\"preview = undefined\">\n                Remove\n              </UiButton>\n            </div>\n            <p class=\"text-muted-foreground text-xs\">JPG, GIF or PNG. 1MB max.</p>\n            <input ref=\"fileInput\" type=\"file\" accept=\"image/*\" class=\"sr-only\" @change=\"onFile\" />\n          </div>\n        </div>\n\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5 sm:grid-cols-2\">\n          <UiVeeInput name=\"firstName\" label=\"First name\" />\n          <UiVeeInput name=\"lastName\" label=\"Last name\" />\n          <div class=\"sm:col-span-2\">\n            <UiVeeInput\n              name=\"email\"\n              type=\"email\"\n              label=\"Email\"\n              hint=\"We'll send a confirmation if you change this.\"\n            />\n          </div>\n          <div class=\"sm:col-span-2\">\n            <UiVeeInput name=\"username\" label=\"Username\" icon=\"lucide:at-sign\" />\n          </div>\n          <div class=\"sm:col-span-2\">\n            <UiVeeTextarea\n              name=\"bio\"\n              label=\"Bio\"\n              :rows=\"4\"\n              :hint=\"`${275 - (values.bio?.length ?? 0)} characters left`\"\n            />\n          </div>\n        </fieldset>\n      </UiCardContent>\n      <UiCardFooter class=\"justify-end gap-2 border-t\">\n        <UiButton type=\"button\" variant=\"outline\" @click=\"resetForm()\">Reset</UiButton>\n        <UiButton type=\"submit\" :disabled=\"isSubmitting\">\n          <Icon v-if=\"isSubmitting\" name=\"lucide:loader-circle\" class=\"size-4 animate-spin\" />\n          Save changes\n        </UiButton>\n      </UiCardFooter>\n    </form>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Profile\",\n      description: \"This information is shown on your public profile.\",\n    }\n  );\n\n  const schema = object({\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    email: string().email().required().label(\"Email\"),\n    username: string()\n      .matches(/^[a-z0-9_-]+$/i, \"Use letters, numbers, dashes and underscores only\")\n      .min(3)\n      .required()\n      .label(\"Username\"),\n    bio: string().max(275).label(\"Bio\"),\n  });\n\n  const initialValues = {\n    firstName: \"Maya\",\n    lastName: \"Chen\",\n    email: \"maya@uithing.com\",\n    username: \"mayachen\",\n    bio: \"Product designer based in Melbourne.\",\n  };\n\n  const { handleSubmit, isSubmitting, resetForm, values } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n    initialValues,\n  });\n\n  const fileInput = ref<HTMLInputElement>();\n  const preview = ref<string>();\n\n  function onFile(event: Event) {\n    const file = (event.target as HTMLInputElement).files?.[0];\n    if (file) preview.value = URL.createObjectURL(file);\n  }\n\n  const onSubmit = handleSubmit(async () => {\n    await new Promise((resolve) => setTimeout(resolve, 600));\n    useSonner.success(\"Profile updated\", { description: \"Your changes have been saved.\" });\n  });\n</script>\n","category":"Profile","description":"Profile settings card with avatar upload and validated fields. Features: Avatar preview with upload and remove, vee-validate and yup validation, bio character counter, success toast","path":"Settings/Profile/BlockSettingsProfileForm.vue","components":["avatar","button","card","vee-input","vee-textarea"]},{"name":"Profile Cards 1","fileName":"BlockProfileCards1.vue","file":"<template>\n  <!--\n    User profile card\n    Features: Gradient banner with overlapping avatar, name, handle and bio, followers, following and posts stats, follow toggle that updates the count, message button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-sm gap-0 overflow-hidden py-0\">\n      <div class=\"from-primary/25 via-primary/10 h-24 bg-linear-to-br to-transparent\" />\n      <div class=\"px-6 pb-6\">\n        <UiAvatar class=\"ring-card -mt-10 size-20 ring-4\">\n          <UiAvatarImage :src=\"user.avatar\" :alt=\"user.name\" />\n          <UiAvatarFallback>{{ user.name.slice(0, 1) }}</UiAvatarFallback>\n        </UiAvatar>\n\n        <div class=\"mt-3\">\n          <h2 class=\"flex items-center gap-1.5 text-xl font-bold\">\n            {{ user.name }}\n            <Icon\n              v-if=\"user.verified\"\n              name=\"lucide:badge-check\"\n              class=\"text-primary size-5\"\n              aria-label=\"Verified\"\n            />\n          </h2>\n          <p class=\"text-muted-foreground text-sm\">@{{ user.handle }} · {{ user.role }}</p>\n        </div>\n        <p class=\"mt-3 text-sm leading-relaxed\">{{ user.bio }}</p>\n\n        <dl class=\"mt-5 grid grid-cols-3 divide-x rounded-lg border text-center\">\n          <div v-for=\"stat in stats\" :key=\"stat.label\" class=\"py-3\">\n            <dd class=\"text-lg font-semibold tabular-nums\">{{ stat.value }}</dd>\n            <dt class=\"text-muted-foreground text-xs\">{{ stat.label }}</dt>\n          </div>\n        </dl>\n\n        <div class=\"mt-5 flex gap-2\">\n          <UiButton\n            class=\"flex-1\"\n            :variant=\"following ? 'outline' : 'default'\"\n            :aria-pressed=\"following\"\n            @click=\"following = !following\"\n          >\n            <Icon :name=\"following ? 'lucide:user-check' : 'lucide:user-plus'\" class=\"size-4\" />\n            {{ following ? \"Following\" : \"Follow\" }}\n          </UiButton>\n          <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Send message\">\n            <Icon name=\"lucide:mail\" class=\"size-4\" />\n          </UiButton>\n        </div>\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type User = {\n    name: string;\n    handle: string;\n    role: string;\n    bio: string;\n    avatar: string;\n    verified: boolean;\n    followers: number;\n    following: number;\n    posts: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      user?: User;\n    }>(),\n    {\n      user: () => ({\n        name: \"Maya Chen\",\n        handle: \"mayachen\",\n        role: \"Product designer\",\n        bio: \"Designing calm software at Fernwood. Writing about design systems, accessibility and the craft of small details.\",\n        avatar: \"https://i.pravatar.cc/160?img=47\",\n        verified: true,\n        followers: 12840,\n        following: 312,\n        posts: 248,\n      }),\n    }\n  );\n\n  const following = ref(false);\n\n  const compact = (value: number) =>\n    new Intl.NumberFormat(\"en-US\", { notation: \"compact\", maximumFractionDigits: 1 }).format(value);\n\n  const stats = computed(() => [\n    { label: \"Followers\", value: compact(props.user.followers + (following.value ? 1 : 0)) },\n    { label: \"Following\", value: compact(props.user.following) },\n    { label: \"Posts\", value: compact(props.user.posts) },\n  ]);\n</script>\n","category":"ProfileCards","description":"User profile card. Features: Gradient banner with overlapping avatar, name, handle and bio, followers, following and posts stats, follow toggle that updates the count, message button","path":"Utility/ProfileCards/BlockProfileCards1.vue","components":["avatar","button","card","container"]},{"name":"Profile Cards 2","fileName":"BlockProfileCards2.vue","file":"<template>\n  <!--\n    Team member cards\n    Features: Department filter, photo cards with role and short bio, social links with labels, email copy button, empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"text-center\">\n        <h2 class=\"text-3xl font-bold lg:text-4xl\">Meet the team</h2>\n        <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl text-lg\">\n          A small group of people who care a lot about the details.\n        </p>\n      </div>\n\n      <div\n        class=\"mt-8 flex flex-wrap justify-center gap-2\"\n        role=\"group\"\n        aria-label=\"Filter by department\"\n      >\n        <UiButton\n          v-for=\"item in ['All', ...departments]\"\n          :key=\"item\"\n          size=\"sm\"\n          class=\"rounded-full\"\n          :variant=\"department === item ? 'default' : 'outline'\"\n          :aria-pressed=\"department === item\"\n          @click=\"department = item\"\n        >\n          {{ item }}\n        </UiButton>\n      </div>\n      <p class=\"text-muted-foreground mt-4 text-center text-sm\" role=\"status\">\n        {{ visible.length }} {{ visible.length === 1 ? \"person\" : \"people\" }}\n      </p>\n\n      <ul class=\"mt-6 grid gap-6 sm:grid-cols-2 lg:grid-cols-3\">\n        <li v-for=\"member in visible\" :key=\"member.name\">\n          <UiCard class=\"h-full gap-0 overflow-hidden py-0\">\n            <img\n              :src=\"member.photo\"\n              :alt=\"`Portrait of ${member.name}`\"\n              class=\"aspect-4/3 w-full object-cover\"\n              loading=\"lazy\"\n            />\n            <div class=\"flex flex-1 flex-col gap-3 p-5\">\n              <div>\n                <h3 class=\"font-semibold\">{{ member.name }}</h3>\n                <p class=\"text-muted-foreground text-sm\">{{ member.role }}</p>\n              </div>\n              <p class=\"text-muted-foreground text-sm\">{{ member.bio }}</p>\n              <div class=\"mt-auto flex items-center justify-between gap-2 pt-1\">\n                <div class=\"flex gap-1\">\n                  <UiButton\n                    v-for=\"link in member.links\"\n                    :key=\"link.label\"\n                    variant=\"ghost\"\n                    size=\"icon-sm\"\n                    :aria-label=\"`${member.name} on ${link.label}`\"\n                  >\n                    <Icon :name=\"link.icon\" class=\"size-4\" />\n                  </UiButton>\n                </div>\n                <UiButton variant=\"outline\" size=\"sm\" @click=\"copyEmail(member)\">\n                  <Icon\n                    :name=\"copiedFor === member.name ? 'lucide:check' : 'lucide:mail'\"\n                    class=\"size-4\"\n                  />\n                  {{ copiedFor === member.name ? \"Copied\" : \"Email\" }}\n                </UiButton>\n              </div>\n            </div>\n          </UiCard>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Link = { label: string; icon: string };\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    bio: string;\n    email: string;\n    photo: string;\n    links: Link[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      members?: Member[];\n    }>(),\n    {\n      members: () => {\n        const links: Link[] = [\n          { label: \"LinkedIn\", icon: \"lucide:linkedin\" },\n          { label: \"X\", icon: \"lucide:twitter\" },\n          { label: \"GitHub\", icon: \"lucide:github\" },\n        ];\n\n        return [\n          {\n            name: \"Maya Chen\",\n            role: \"Head of Design\",\n            department: \"Design\",\n            bio: \"Leads product design and our shared design system.\",\n            email: \"maya@example.com\",\n            photo:\n              \"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=600&q=80\",\n            links: links.slice(0, 2),\n          },\n          {\n            name: \"Leo Martins\",\n            role: \"Staff Engineer\",\n            department: \"Engineering\",\n            bio: \"Builds the real time engine and keeps the pager quiet.\",\n            email: \"leo@example.com\",\n            photo:\n              \"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=600&q=80\",\n            links,\n          },\n          {\n            name: \"Sana Ali\",\n            role: \"Product Manager\",\n            department: \"Product\",\n            bio: \"Talks to customers every week and writes the roadmap.\",\n            email: \"sana@example.com\",\n            photo:\n              \"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&w=600&q=80\",\n            links: links.slice(0, 2),\n          },\n          {\n            name: \"Omar Haddad\",\n            role: \"Frontend Engineer\",\n            department: \"Engineering\",\n            bio: \"Cares about performance, accessibility and good defaults.\",\n            email: \"omar@example.com\",\n            photo:\n              \"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=600&q=80\",\n            links: [links[2]!],\n          },\n          {\n            name: \"Priya Nair\",\n            role: \"Brand Designer\",\n            department: \"Design\",\n            bio: \"Shapes how the company looks, sounds and feels.\",\n            email: \"priya@example.com\",\n            photo:\n              \"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=600&q=80\",\n            links: links.slice(0, 2),\n          },\n          {\n            name: \"Tom Becker\",\n            role: \"Customer Success Lead\",\n            department: \"Support\",\n            bio: \"Makes sure every customer gets a human reply fast.\",\n            email: \"tom@example.com\",\n            photo:\n              \"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?auto=format&fit=crop&w=600&q=80\",\n            links: [links[0]!],\n          },\n        ];\n      },\n    }\n  );\n\n  const department = ref(\"All\");\n  const copiedFor = ref(\"\");\n  const departments = computed(() => [\n    ...new Set(props.members.map((member) => member.department)),\n  ]);\n  const visible = computed(() =>\n    department.value === \"All\"\n      ? props.members\n      : props.members.filter((member) => member.department === department.value)\n  );\n\n  const { copy } = useClipboard();\n  async function copyEmail(member: Member) {\n    await copy(member.email);\n    copiedFor.value = member.name;\n    setTimeout(() => {\n      if (copiedFor.value === member.name) copiedFor.value = \"\";\n    }, 1500);\n  }\n</script>\n","category":"ProfileCards","description":"Team member cards. Features: Department filter, photo cards with role and short bio, social links with labels, email copy button, empty state","path":"Utility/ProfileCards/BlockProfileCards2.vue","components":["button","card","container"]},{"name":"Profile Cards 3","fileName":"BlockProfileCards3.vue","file":"<template>\n  <!--\n    Public profile header\n    Features: Cover image with overlapping avatar, verified badge, location, website and join date, follow and message actions, stats row, tabs for posts, about and photos\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl overflow-hidden rounded-xl border\">\n      <img :src=\"profile.cover\" alt=\"\" class=\"h-36 w-full object-cover sm:h-48\" loading=\"lazy\" />\n\n      <div class=\"px-5 pb-6 sm:px-8\">\n        <div class=\"-mt-12 flex flex-wrap items-end justify-between gap-3\">\n          <UiAvatar class=\"ring-background size-24 ring-4\">\n            <UiAvatarImage :src=\"profile.avatar\" :alt=\"profile.name\" />\n            <UiAvatarFallback>{{ profile.name.slice(0, 1) }}</UiAvatarFallback>\n          </UiAvatar>\n          <div class=\"flex gap-2\">\n            <UiButton :variant=\"following ? 'outline' : 'default'\" @click=\"following = !following\">\n              <Icon :name=\"following ? 'lucide:user-check' : 'lucide:user-plus'\" class=\"size-4\" />\n              {{ following ? \"Following\" : \"Follow\" }}\n            </UiButton>\n            <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Send message\">\n              <Icon name=\"lucide:mail\" class=\"size-4\" />\n            </UiButton>\n            <UiButton\n              variant=\"outline\"\n              size=\"icon\"\n              aria-label=\"Copy profile link\"\n              @click=\"copy(profile.url)\"\n            >\n              <Icon :name=\"copied ? 'lucide:check' : 'lucide:link'\" class=\"size-4\" />\n            </UiButton>\n          </div>\n        </div>\n\n        <h1 class=\"mt-4 flex items-center gap-2 text-2xl font-bold\">\n          {{ profile.name }}\n          <UiBadge variant=\"soft\" color=\"primary\" size=\"sm\">Pro</UiBadge>\n        </h1>\n        <p class=\"text-muted-foreground\">@{{ profile.handle }}</p>\n        <p class=\"mt-3 max-w-xl text-sm leading-relaxed\">{{ profile.bio }}</p>\n\n        <ul class=\"text-muted-foreground mt-3 flex flex-wrap gap-x-5 gap-y-1 text-sm\">\n          <li class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:map-pin\" class=\"size-4\" />{{ profile.location }}\n          </li>\n          <li class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:link\" class=\"size-4\" />{{ profile.website }}\n          </li>\n          <li class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:calendar\" class=\"size-4\" />Joined {{ profile.joined }}\n          </li>\n        </ul>\n\n        <p class=\"mt-4 flex gap-5 text-sm\">\n          <span\n            ><span class=\"font-semibold tabular-nums\">{{\n              (profile.followers + (following ? 1 : 0)).toLocaleString(\"en-US\")\n            }}</span>\n            <span class=\"text-muted-foreground\"> followers</span></span\n          >\n          <span\n            ><span class=\"font-semibold tabular-nums\">{{ profile.following }}</span>\n            <span class=\"text-muted-foreground\"> following</span></span\n          >\n        </p>\n\n        <UiTabs default-value=\"posts\" class=\"mt-6\">\n          <UiTabsList class=\"grid w-full grid-cols-3\">\n            <UiTabsTrigger value=\"posts\">Posts</UiTabsTrigger>\n            <UiTabsTrigger value=\"about\">About</UiTabsTrigger>\n            <UiTabsTrigger value=\"photos\">Photos</UiTabsTrigger>\n          </UiTabsList>\n          <UiTabsContent value=\"posts\" class=\"mt-4\">\n            <ul class=\"divide-y rounded-lg border\">\n              <li v-for=\"post in profile.posts\" :key=\"post.title\" class=\"p-4\">\n                <p class=\"font-medium\">{{ post.title }}</p>\n                <p class=\"text-muted-foreground mt-0.5 text-xs\">\n                  {{ post.date }} · {{ post.reads.toLocaleString(\"en-US\") }} reads\n                </p>\n              </li>\n            </ul>\n          </UiTabsContent>\n          <UiTabsContent value=\"about\" class=\"mt-4\">\n            <dl class=\"grid gap-3 text-sm sm:grid-cols-2\">\n              <div v-for=\"item in profile.about\" :key=\"item.label\" class=\"rounded-lg border p-3\">\n                <dt class=\"text-muted-foreground text-xs\">{{ item.label }}</dt>\n                <dd class=\"mt-0.5 font-medium\">{{ item.value }}</dd>\n              </div>\n            </dl>\n          </UiTabsContent>\n          <UiTabsContent value=\"photos\" class=\"mt-4\">\n            <ul class=\"grid grid-cols-3 gap-2\">\n              <li v-for=\"(photo, index) in profile.photos\" :key=\"photo\">\n                <img\n                  :src=\"photo\"\n                  :alt=\"`Photo ${index + 1} by ${profile.name}`\"\n                  class=\"aspect-square w-full rounded-lg object-cover\"\n                  loading=\"lazy\"\n                />\n              </li>\n            </ul>\n          </UiTabsContent>\n        </UiTabs>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Profile = {\n    name: string;\n    handle: string;\n    bio: string;\n    avatar: string;\n    cover: string;\n    location: string;\n    website: string;\n    joined: string;\n    url: string;\n    followers: number;\n    following: number;\n    posts: { title: string; date: string; reads: number }[];\n    about: { label: string; value: string }[];\n    photos: string[];\n  };\n\n  withDefaults(\n    defineProps<{\n      profile?: Profile;\n    }>(),\n    {\n      profile: () => ({\n        name: \"Maya Chen\",\n        handle: \"mayachen\",\n        bio: \"Product designer at Fernwood. I write about design systems, accessibility and the craft of small details.\",\n        avatar: \"https://i.pravatar.cc/200?img=47\",\n        cover:\n          \"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1400&q=80\",\n        location: \"Lisbon, Portugal\",\n        website: \"mayachen.example.com\",\n        joined: \"March 2021\",\n        url: \"https://example.com/mayachen\",\n        followers: 12840,\n        following: 312,\n        posts: [\n          { title: \"What I learned redesigning a settings page\", date: \"Oct 9\", reads: 4200 },\n          { title: \"Spacing scales that survive real content\", date: \"Sep 21\", reads: 3100 },\n          { title: \"A short guide to focus states\", date: \"Aug 30\", reads: 5800 },\n        ],\n        about: [\n          { label: \"Currently\", value: \"Head of Design, Fernwood\" },\n          { label: \"Previously\", value: \"Tilework, Paperboat\" },\n          { label: \"Speaks\", value: \"English, Portuguese, Mandarin\" },\n          { label: \"Open to\", value: \"Mentoring and talks\" },\n        ],\n        photos: [\n          \"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&w=400&q=80\",\n          \"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=400&q=80\",\n          \"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=400&q=80\",\n        ],\n      }),\n    }\n  );\n\n  const following = ref(false);\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n</script>\n","category":"ProfileCards","description":"Public profile header. Features: Cover image with overlapping avatar, verified badge, location, website and join date, follow and message actions, stats row, tabs for posts, about and photos","path":"Utility/ProfileCards/BlockProfileCards3.vue","components":["avatar","badge","button","container","tabs"]},{"name":"Profile Cards 4","fileName":"BlockProfileCards4.vue","file":"<template>\n  <!--\n    Hover profile cards\n    Features: Mentions in a comment that open a profile card on hover or keyboard focus, follow button inside the card, follower count that updates, avatar group of contributors\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-xl\">\n      <UiCardHeader>\n        <UiCardTitle>Project retrospective</UiCardTitle>\n        <UiCardDescription>Hover or focus a name to see who they are.</UiCardDescription>\n      </UiCardHeader>\n      <UiCardContent class=\"space-y-5\">\n        <p class=\"leading-relaxed\">\n          Big thanks to\n          <template v-for=\"(person, index) in people\" :key=\"person.handle\">\n            <UiHoverCard :open-delay=\"150\">\n              <UiHoverCardTrigger as-child>\n                <a\n                  href=\"#profile\"\n                  class=\"text-primary font-medium underline-offset-4 hover:underline focus-visible:underline\"\n                  @click.prevent\n                  >@{{ person.handle }}</a\n                >\n              </UiHoverCardTrigger>\n              <UiHoverCardContent class=\"w-72\">\n                <div class=\"flex items-start gap-3\">\n                  <UiAvatar class=\"size-12\">\n                    <UiAvatarImage :src=\"person.avatar\" :alt=\"person.name\" />\n                    <UiAvatarFallback>{{ person.name.slice(0, 1) }}</UiAvatarFallback>\n                  </UiAvatar>\n                  <div class=\"min-w-0 flex-1\">\n                    <p class=\"font-semibold\">{{ person.name }}</p>\n                    <p class=\"text-muted-foreground text-sm\">@{{ person.handle }}</p>\n                  </div>\n                  <UiButton\n                    size=\"xs\"\n                    :variant=\"followed.has(person.handle) ? 'outline' : 'default'\"\n                    :aria-pressed=\"followed.has(person.handle)\"\n                    @click=\"toggle(person.handle)\"\n                  >\n                    {{ followed.has(person.handle) ? \"Following\" : \"Follow\" }}\n                  </UiButton>\n                </div>\n                <p class=\"mt-3 text-sm\">{{ person.bio }}</p>\n                <p class=\"text-muted-foreground mt-3 flex items-center gap-4 text-xs\">\n                  <span class=\"flex items-center gap-1\"\n                    ><Icon name=\"lucide:map-pin\" class=\"size-3.5\" />{{ person.location }}</span\n                  >\n                  <span class=\"flex items-center gap-1\"\n                    ><Icon name=\"lucide:users\" class=\"size-3.5\" />{{\n                      followers(person)\n                    }}\n                    followers</span\n                  >\n                </p>\n              </UiHoverCardContent>\n            </UiHoverCard>\n            <template v-if=\"index < people.length - 2\">, </template>\n            <template v-else-if=\"index === people.length - 2\"> and </template>\n          </template>\n          for shipping the new editor on time. The team handled three launches in a single quarter.\n        </p>\n\n        <div class=\"flex items-center gap-3 border-t pt-4\">\n          <UiAvatarGroup>\n            <UiAvatar v-for=\"person in people\" :key=\"person.handle\" class=\"size-8\">\n              <UiAvatarImage :src=\"person.avatar\" :alt=\"person.name\" />\n              <UiAvatarFallback>{{ person.name.slice(0, 1) }}</UiAvatarFallback>\n            </UiAvatar>\n          </UiAvatarGroup>\n          <p class=\"text-muted-foreground text-sm\">{{ people.length }} contributors</p>\n        </div>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Person = {\n    name: string;\n    handle: string;\n    avatar: string;\n    bio: string;\n    location: string;\n    followers: number;\n  };\n\n  withDefaults(\n    defineProps<{\n      people?: Person[];\n    }>(),\n    {\n      people: () => [\n        {\n          name: \"Maya Chen\",\n          handle: \"mayachen\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n          bio: \"Design lead. Loves quiet interfaces and good typography.\",\n          location: \"Lisbon\",\n          followers: 1284,\n        },\n        {\n          name: \"Leo Martins\",\n          handle: \"leomartins\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n          bio: \"Staff engineer building the real time engine.\",\n          location: \"São Paulo\",\n          followers: 960,\n        },\n        {\n          name: \"Sana Ali\",\n          handle: \"sanaali\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n          bio: \"Product manager. Talks to customers more than is healthy.\",\n          location: \"Toronto\",\n          followers: 2105,\n        },\n      ],\n    }\n  );\n\n  const followed = ref(new Set<string>());\n\n  function toggle(handle: string) {\n    const next = new Set(followed.value);\n    if (next.has(handle)) next.delete(handle);\n    else next.add(handle);\n    followed.value = next;\n  }\n\n  function followers(person: Person) {\n    return (person.followers + (followed.value.has(person.handle) ? 1 : 0)).toLocaleString(\"en-US\");\n  }\n</script>\n","category":"ProfileCards","description":"Hover profile cards. Features: Mentions in a comment that open a profile card on hover or keyboard focus, follow button inside the card, follower count that updates, avatar group of contributors","path":"Utility/ProfileCards/BlockProfileCards4.vue","components":["avatar","button","card","container","hover-card"]},{"name":"Profile Cards 5","fileName":"BlockProfileCards5.vue","file":"<template>\n  <!--\n    Contact card\n    Features: Avatar with name and company, phone, email, website and address rows with per row copy buttons, copy all details, download as a vCard file\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-md\">\n      <UiCardHeader class=\"items-center text-center\">\n        <UiAvatar class=\"mx-auto size-20\">\n          <UiAvatarImage :src=\"contact.avatar\" :alt=\"contact.name\" />\n          <UiAvatarFallback>{{ contact.name.slice(0, 1) }}</UiAvatarFallback>\n        </UiAvatar>\n        <UiCardTitle class=\"mt-3 text-xl\">{{ contact.name }}</UiCardTitle>\n        <UiCardDescription>{{ contact.title }} at {{ contact.company }}</UiCardDescription>\n      </UiCardHeader>\n\n      <UiCardContent>\n        <ul class=\"divide-y rounded-lg border\">\n          <li v-for=\"row in rows\" :key=\"row.label\" class=\"flex items-center gap-3 p-3\">\n            <Icon :name=\"row.icon\" class=\"text-muted-foreground size-4 shrink-0\" />\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"text-muted-foreground text-xs\">{{ row.label }}</p>\n              <p class=\"truncate text-sm font-medium\">{{ row.value }}</p>\n            </div>\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              :aria-label=\"\n                copiedKey === row.label ? `${row.label} copied` : `Copy ${row.label.toLowerCase()}`\n              \"\n              @click=\"copyRow(row)\"\n            >\n              <Icon\n                :name=\"copiedKey === row.label ? 'lucide:check' : 'lucide:copy'\"\n                class=\"size-4\"\n              />\n            </UiButton>\n          </li>\n        </ul>\n        <p class=\"sr-only\" role=\"status\">{{ copiedKey ? `${copiedKey} copied` : \"\" }}</p>\n      </UiCardContent>\n\n      <UiCardFooter class=\"flex-col gap-2 sm:flex-row\">\n        <UiButton class=\"w-full sm:flex-1\" @click=\"download\">\n          <Icon name=\"lucide:download\" class=\"size-4\" />Save contact\n        </UiButton>\n        <UiButton variant=\"outline\" class=\"w-full sm:flex-1\" @click=\"copyAll\">\n          <Icon :name=\"copiedKey === 'all' ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />\n          {{ copiedKey === \"all\" ? \"Copied\" : \"Copy all\" }}\n        </UiButton>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Contact = {\n    name: string;\n    title: string;\n    company: string;\n    avatar: string;\n    phone: string;\n    email: string;\n    website: string;\n    address: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      contact?: Contact;\n    }>(),\n    {\n      contact: () => ({\n        name: \"Sana Ali\",\n        title: \"Head of Partnerships\",\n        company: \"Fernwood\",\n        avatar: \"https://i.pravatar.cc/160?img=32\",\n        phone: \"+1 555 010 4477\",\n        email: \"sana@fernwood.example.com\",\n        website: \"fernwood.example.com\",\n        address: \"21 Harbour Street, Toronto, ON\",\n      }),\n    }\n  );\n\n  const rows = computed(() => [\n    { label: \"Phone\", icon: \"lucide:phone\", value: props.contact.phone },\n    { label: \"Email\", icon: \"lucide:mail\", value: props.contact.email },\n    { label: \"Website\", icon: \"lucide:globe\", value: props.contact.website },\n    { label: \"Address\", icon: \"lucide:map-pin\", value: props.contact.address },\n  ]);\n\n  const copiedKey = ref(\"\");\n  const { copy } = useClipboard();\n  let timer: ReturnType<typeof setTimeout> | undefined;\n\n  async function flash(key: string, text: string) {\n    await copy(text);\n    copiedKey.value = key;\n    clearTimeout(timer);\n    timer = setTimeout(() => (copiedKey.value = \"\"), 1500);\n  }\n\n  const copyRow = (row: { label: string; value: string }) => flash(row.label, row.value);\n  const copyAll = () =>\n    flash(\"all\", [props.contact.name, ...rows.value.map((row) => row.value)].join(\"\\n\"));\n\n  function download() {\n    const { name, company, title, phone, email, website, address } = props.contact;\n    const card = [\n      \"BEGIN:VCARD\",\n      \"VERSION:3.0\",\n      `FN:${name}`,\n      `ORG:${company}`,\n      `TITLE:${title}`,\n      `TEL:${phone}`,\n      `EMAIL:${email}`,\n      `URL:https://${website}`,\n      `ADR:;;${address};;;;`,\n      \"END:VCARD\",\n    ].join(\"\\r\\n\");\n    const url = URL.createObjectURL(new Blob([card], { type: \"text/vcard\" }));\n    const link = document.createElement(\"a\");\n    link.href = url;\n    link.download = `${name.toLowerCase().replace(/\\s+/g, \"-\")}.vcf`;\n    link.click();\n    URL.revokeObjectURL(url);\n    useSonner.success(\"Contact saved\", { description: link.download });\n  }\n\n  onBeforeUnmount(() => clearTimeout(timer));\n</script>\n","category":"ProfileCards","description":"Contact card. Features: Avatar with name and company, phone, email, website and address rows with per row copy buttons, copy all details, download as a vCard file","path":"Utility/ProfileCards/BlockProfileCards5.vue","components":["avatar","button","card","container"]},{"name":"Profile Cards 6","fileName":"BlockProfileCards6.vue","file":"<template>\n  <!--\n    Followers and following list\n    Features: Tabs with counts, search filter, follow and unfollow buttons, mutual badge, load more button, empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-lg gap-4\">\n      <UiCardHeader>\n        <UiCardTitle>Connections</UiCardTitle>\n      </UiCardHeader>\n      <UiCardContent class=\"space-y-4\">\n        <UiTabs v-model=\"tab\">\n          <UiTabsList class=\"grid w-full grid-cols-2\">\n            <UiTabsTrigger value=\"followers\">Followers ({{ totals.followers }})</UiTabsTrigger>\n            <UiTabsTrigger value=\"following\">Following ({{ totals.following }})</UiTabsTrigger>\n          </UiTabsList>\n        </UiTabs>\n\n        <div class=\"relative\">\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            v-model=\"query\"\n            type=\"search\"\n            aria-label=\"Search people\"\n            placeholder=\"Search people\"\n            class=\"pl-9\"\n          />\n        </div>\n\n        <p class=\"text-muted-foreground text-sm\" role=\"status\">\n          {{ filtered.length }} {{ filtered.length === 1 ? \"person\" : \"people\" }}\n        </p>\n\n        <ul v-if=\"shown.length\" class=\"divide-y rounded-lg border\">\n          <li v-for=\"person in shown\" :key=\"person.handle\" class=\"flex items-center gap-3 p-3\">\n            <UiAvatar class=\"size-10\">\n              <UiAvatarImage :src=\"person.avatar\" :alt=\"person.name\" />\n              <UiAvatarFallback>{{ person.name.slice(0, 1) }}</UiAvatarFallback>\n            </UiAvatar>\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"truncate text-sm font-medium\">{{ person.name }}</p>\n              <p class=\"text-muted-foreground truncate text-xs\">\n                @{{ person.handle }} · {{ person.role }}\n              </p>\n              <UiBadge v-if=\"person.mutual\" variant=\"secondary\" size=\"sm\" class=\"mt-1\"\n                >Mutual</UiBadge\n              >\n            </div>\n            <UiButton\n              size=\"sm\"\n              :variant=\"isFollowing(person) ? 'outline' : 'default'\"\n              :aria-pressed=\"isFollowing(person)\"\n              :aria-label=\"`${isFollowing(person) ? 'Unfollow' : 'Follow'} ${person.name}`\"\n              @click=\"toggle(person)\"\n            >\n              {{ isFollowing(person) ? \"Following\" : \"Follow\" }}\n            </UiButton>\n          </li>\n        </ul>\n        <div v-else class=\"rounded-lg border border-dashed p-8 text-center text-sm\">\n          <p class=\"font-medium\">No one found</p>\n          <p class=\"text-muted-foreground mt-1\">Try a different name or handle.</p>\n        </div>\n\n        <UiButton\n          v-if=\"filtered.length > limit\"\n          variant=\"outline\"\n          class=\"w-full\"\n          @click=\"limit += pageSize\"\n        >\n          Show {{ Math.min(pageSize, filtered.length - limit) }} more\n        </UiButton>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Person = { name: string; handle: string; role: string; avatar: string; mutual: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      followers?: Person[];\n      following?: Person[];\n      pageSize?: number;\n    }>(),\n    {\n      followers: () =>\n        [\n          [\"Maya Chen\", \"mayachen\", \"Product designer\", 47, true],\n          [\"Leo Martins\", \"leomartins\", \"Staff engineer\", 12, true],\n          [\"Sana Ali\", \"sanaali\", \"Product manager\", 32, false],\n          [\"Omar Haddad\", \"omarh\", \"Frontend engineer\", 15, false],\n          [\"Priya Nair\", \"priyanair\", \"Brand designer\", 45, true],\n          [\"Tom Becker\", \"tombecker\", \"Support lead\", 33, false],\n          [\"Ines Ramos\", \"inesramos\", \"Data analyst\", 44, false],\n        ].map(([name, handle, role, img, mutual]) => ({\n          name: name as string,\n          handle: handle as string,\n          role: role as string,\n          avatar: `https://i.pravatar.cc/80?img=${img}`,\n          mutual: mutual as boolean,\n        })),\n      following: () =>\n        [\n          [\"Maya Chen\", \"mayachen\", \"Product designer\", 47, true],\n          [\"Leo Martins\", \"leomartins\", \"Staff engineer\", 12, true],\n          [\"Priya Nair\", \"priyanair\", \"Brand designer\", 45, true],\n          [\"Jonas Weber\", \"jonasw\", \"Illustrator\", 51, false],\n        ].map(([name, handle, role, img, mutual]) => ({\n          name: name as string,\n          handle: handle as string,\n          role: role as string,\n          avatar: `https://i.pravatar.cc/80?img=${img}`,\n          mutual: mutual as boolean,\n        })),\n      pageSize: 4,\n    }\n  );\n\n  const tab = ref(\"followers\");\n  const query = ref(\"\");\n  const limit = ref(props.pageSize);\n\n  // Everyone in the following list starts as followed. The state is shared by handle across tabs.\n  const followed = ref(new Set<string>([...props.following.map((person) => person.handle)]));\n  const unfollowed = ref(new Set<string>());\n\n  const totals = computed(() => ({\n    followers: props.followers.length,\n    following: props.following.filter((person) => !unfollowed.value.has(person.handle)).length,\n  }));\n\n  const list = computed(() => (tab.value === \"followers\" ? props.followers : props.following));\n  const filtered = computed(() => {\n    const needle = query.value.trim().toLowerCase();\n    return needle\n      ? list.value.filter((person) =>\n          `${person.name} ${person.handle}`.toLowerCase().includes(needle)\n        )\n      : list.value;\n  });\n  const shown = computed(() => filtered.value.slice(0, limit.value));\n\n  watch([tab, query], () => (limit.value = props.pageSize));\n\n  const isFollowing = (person: Person) => followed.value.has(person.handle);\n\n  function toggle(person: Person) {\n    const next = new Set(followed.value);\n    const gone = new Set(unfollowed.value);\n    if (next.has(person.handle)) {\n      next.delete(person.handle);\n      gone.add(person.handle);\n    } else {\n      next.add(person.handle);\n      gone.delete(person.handle);\n    }\n    followed.value = next;\n    unfollowed.value = gone;\n  }\n</script>\n","category":"ProfileCards","description":"Followers and following list. Features: Tabs with counts, search filter, follow and unfollow buttons, mutual badge, load more button, empty state","path":"Utility/ProfileCards/BlockProfileCards6.vue","components":["avatar","badge","button","card","container","input","tabs"]},{"name":"Project Overview 1","fileName":"BlockProjectOverview1.vue","file":"<template>\n  <!--\n    Project header with key stats\n    Features: Project title with status badge and team avatars, deadline countdown, four stat cards for tasks, completed, overdue and progress, a progress bar and quick actions\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n      <div>\n        <div class=\"flex flex-wrap items-center gap-3\">\n          <h1 class=\"text-3xl font-bold tracking-tight\">{{ project.name }}</h1>\n          <UiBadge\n            variant=\"soft\"\n            :color=\"project.status === 'On track' ? 'green' : 'amber'\"\n            shape=\"pill\"\n            >{{ project.status }}</UiBadge\n          >\n        </div>\n        <p class=\"text-muted-foreground mt-2 max-w-xl text-sm\">{{ project.description }}</p>\n        <div class=\"mt-4 flex items-center gap-3\">\n          <div class=\"flex -space-x-2\">\n            <UiAvatar\n              v-for=\"member in project.team\"\n              :key=\"member.name\"\n              :src=\"member.avatar\"\n              :fallback=\"member.name[0]\"\n              class=\"ring-background size-8 ring-2\"\n            />\n          </div>\n          <span class=\"text-muted-foreground text-sm\">{{ project.team.length }} members</span>\n        </div>\n      </div>\n      <div class=\"flex gap-2\">\n        <UiButton variant=\"outline\" @click=\"useSonner.info('Open your share dialog here')\"\n          ><Icon name=\"lucide:share-2\" class=\"size-4\" />Share</UiButton\n        >\n        <UiButton @click=\"useSonner.info('Open your new task form here')\"\n          ><Icon name=\"lucide:plus\" class=\"size-4\" />New task</UiButton\n        >\n      </div>\n    </div>\n\n    <dl class=\"mt-8 grid grid-cols-2 gap-4 lg:grid-cols-4\">\n      <div v-for=\"stat in stats\" :key=\"stat.label\" class=\"rounded-xl border p-4\">\n        <dt class=\"text-muted-foreground flex items-center gap-2 text-sm\">\n          <Icon :name=\"stat.icon\" class=\"size-4\" />{{ stat.label }}\n        </dt>\n        <dd class=\"mt-2 text-3xl font-bold tabular-nums\" :class=\"stat.tone\">{{ stat.value }}</dd>\n      </div>\n    </dl>\n\n    <div class=\"mt-6 rounded-xl border p-4\">\n      <div class=\"flex items-center justify-between text-sm\">\n        <span class=\"font-medium\">Overall progress</span>\n        <span class=\"text-muted-foreground\">{{ percent }}% · {{ project.daysLeft }} days left</span>\n      </div>\n      <UiProgress :model-value=\"percent\" class=\"mt-3 h-2\" aria-label=\"Overall progress\" />\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Project = {\n    name: string;\n    status: string;\n    description: string;\n    daysLeft: number;\n    tasks: { total: number; done: number; overdue: number };\n    team: { name: string; avatar: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      project?: Project;\n    }>(),\n    {\n      project: () => ({\n        name: \"Website relaunch\",\n        status: \"On track\",\n        description:\n          \"A complete redesign of the marketing site with a faster build, new pricing and a content refresh.\",\n        daysLeft: 38,\n        tasks: { total: 64, done: 41, overdue: 3 },\n        team: [\n          { name: \"Sofia\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n          { name: \"Liam\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n          { name: \"Aisha\", avatar: \"https://i.pravatar.cc/80?img=44\" },\n          { name: \"Noah\", avatar: \"https://i.pravatar.cc/80?img=15\" },\n          { name: \"Maya\", avatar: \"https://i.pravatar.cc/80?img=45\" },\n        ],\n      }),\n    }\n  );\n\n  const percent = computed(() =>\n    Math.round((props.project.tasks.done / props.project.tasks.total) * 100)\n  );\n\n  const stats = computed(() => [\n    {\n      label: \"Total tasks\",\n      value: props.project.tasks.total,\n      icon: \"lucide:list-checks\",\n      tone: \"\",\n    },\n    {\n      label: \"Completed\",\n      value: props.project.tasks.done,\n      icon: \"lucide:circle-check\",\n      tone: \"text-green-600 dark:text-green-400\",\n    },\n    {\n      label: \"In progress\",\n      value: props.project.tasks.total - props.project.tasks.done - props.project.tasks.overdue,\n      icon: \"lucide:loader\",\n      tone: \"\",\n    },\n    {\n      label: \"Overdue\",\n      value: props.project.tasks.overdue,\n      icon: \"lucide:alarm-clock\",\n      tone: \"text-red-600 dark:text-red-400\",\n    },\n  ]);\n</script>\n","category":"ProjectOverview","description":"Project header with key stats. Features: Project title with status badge and team avatars, deadline countdown, four stat cards for tasks, completed, overdue and progress, a progress bar and quick actions","path":"Tasks/ProjectOverview/BlockProjectOverview1.vue","components":["avatar","badge","button","container","progress"]},{"name":"Project Overview 2","fileName":"BlockProjectOverview2.vue","file":"<template>\n  <!--\n    Progress cards for several projects\n    Features: Cards with circular progress, project name, task counts, due date, health badge, team avatars and a menu, sorted by health or progress with a select\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n      <UiSelect v-model=\"sort\">\n        <UiSelectTrigger class=\"sm:w-44\" aria-label=\"Sort projects\"\n          ><UiSelectValue\n        /></UiSelectTrigger>\n        <UiSelectContent>\n          <UiSelectItem value=\"progress\">Sort by progress</UiSelectItem>\n          <UiSelectItem value=\"due\">Sort by due date</UiSelectItem>\n          <UiSelectItem value=\"name\">Sort by name</UiSelectItem>\n        </UiSelectContent>\n      </UiSelect>\n    </div>\n\n    <ul class=\"mt-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n      <li v-for=\"project in sorted\" :key=\"project.name\">\n        <UiCard class=\"h-full\">\n          <UiCardHeader>\n            <div class=\"flex items-start gap-4\">\n              <UiCircularProgress\n                :progress=\"project.progress / 100\"\n                size=\"lg\"\n                show-value\n                :aria-label=\"`${project.name} progress`\"\n              />\n              <div class=\"min-w-0 flex-1\">\n                <UiCardTitle class=\"truncate text-base\">{{ project.name }}</UiCardTitle>\n                <UiCardDescription\n                  >{{ project.done }} of {{ project.total }} tasks</UiCardDescription\n                >\n              </div>\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton\n                    variant=\"ghost\"\n                    size=\"icon-sm\"\n                    :aria-label=\"`Options for ${project.name}`\"\n                    ><Icon name=\"lucide:ellipsis\" class=\"size-4\"\n                  /></UiButton>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent align=\"end\">\n                  <UiDropdownMenuItem @select=\"useSonner.info(`Opening ${project.name}`)\"\n                    >Open</UiDropdownMenuItem\n                  >\n                  <UiDropdownMenuItem @select=\"useSonner.info(`Archived ${project.name}`)\"\n                    >Archive</UiDropdownMenuItem\n                  >\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </div>\n          </UiCardHeader>\n          <UiCardFooter class=\"flex-wrap items-center justify-between gap-2\">\n            <div class=\"flex items-center gap-2\">\n              <UiBadge variant=\"soft\" :color=\"health[project.health]\" shape=\"pill\">{{\n                project.health\n              }}</UiBadge>\n              <span class=\"text-muted-foreground text-xs\">Due {{ project.due }}</span>\n            </div>\n            <div class=\"flex -space-x-1.5\">\n              <UiAvatar\n                v-for=\"person in project.team\"\n                :key=\"person\"\n                :src=\"`https://i.pravatar.cc/80?img=${person}`\"\n                fallback=\"?\"\n                class=\"ring-card size-6 ring-2\"\n              />\n            </div>\n          </UiCardFooter>\n        </UiCard>\n      </li>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Project = {\n    name: string;\n    done: number;\n    total: number;\n    progress: number;\n    due: string;\n    health: \"On track\" | \"At risk\" | \"Late\";\n    team: number[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      projects?: Project[];\n    }>(),\n    {\n      title: \"Projects\",\n      projects: () => [\n        {\n          name: \"Website relaunch\",\n          done: 41,\n          total: 64,\n          progress: 64,\n          due: \"Nov 30\",\n          health: \"On track\",\n          team: [32, 12, 44],\n        },\n        {\n          name: \"Mobile app v2\",\n          done: 18,\n          total: 80,\n          progress: 23,\n          due: \"Dec 15\",\n          health: \"At risk\",\n          team: [15, 45],\n        },\n        {\n          name: \"Billing migration\",\n          done: 27,\n          total: 30,\n          progress: 90,\n          due: \"Nov 12\",\n          health: \"On track\",\n          team: [12, 33],\n        },\n        {\n          name: \"Brand refresh\",\n          done: 9,\n          total: 40,\n          progress: 22,\n          due: \"Oct 20\",\n          health: \"Late\",\n          team: [44, 32, 45],\n        },\n        {\n          name: \"Data warehouse\",\n          done: 35,\n          total: 70,\n          progress: 50,\n          due: \"Jan 31\",\n          health: \"On track\",\n          team: [15],\n        },\n        {\n          name: \"Customer portal\",\n          done: 12,\n          total: 36,\n          progress: 33,\n          due: \"Dec 02\",\n          health: \"At risk\",\n          team: [12, 44, 33, 15],\n        },\n      ],\n    }\n  );\n\n  const health = { \"On track\": \"green\", \"At risk\": \"amber\", Late: \"red\" } as const;\n  const sort = ref(\"progress\");\n\n  const dueOrder = (value: string) => new Date(`${value} 2026`).getTime();\n\n  const sorted = computed(() => {\n    const list = [...props.projects];\n    if (sort.value === \"name\") return list.sort((a, b) => a.name.localeCompare(b.name));\n    if (sort.value === \"due\") return list.sort((a, b) => dueOrder(a.due) - dueOrder(b.due));\n    return list.sort((a, b) => b.progress - a.progress);\n  });\n</script>\n","category":"ProjectOverview","description":"Progress cards for several projects. Features: Cards with circular progress, project name, task counts, due date, health badge, team avatars and a menu, sorted by health or progress with a select","path":"Tasks/ProjectOverview/BlockProjectOverview2.vue","components":["avatar","badge","button","card","circular-progress","container","dropdown-menu","select"]},{"name":"Project Overview 3","fileName":"BlockProjectOverview3.vue","file":"<template>\n  <!--\n    Team workload overview\n    Features: Capacity bars for every team member, over capacity warning color, open task counts, hours estimate, toggle between this week and next week and a summary of the team load\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between\">\n        <div>\n          <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\" aria-live=\"polite\">\n            Team load {{ teamLoad }}% · {{ over }} over capacity\n          </p>\n        </div>\n        <UiToggleGroup v-model=\"week\" type=\"single\" variant=\"outline\" aria-label=\"Week\">\n          <UiToggleGroupItem value=\"this\">This week</UiToggleGroupItem>\n          <UiToggleGroupItem value=\"next\">Next week</UiToggleGroupItem>\n        </UiToggleGroup>\n      </div>\n\n      <ul class=\"mt-8 divide-y rounded-xl border\">\n        <li\n          v-for=\"person in rows\"\n          :key=\"person.name\"\n          class=\"flex flex-col gap-3 p-4 sm:flex-row sm:items-center\"\n        >\n          <div class=\"flex items-center gap-3 sm:w-48\">\n            <UiAvatar :src=\"person.avatar\" :fallback=\"person.name[0]\" />\n            <div>\n              <p class=\"text-sm font-medium\">{{ person.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ person.role }}</p>\n            </div>\n          </div>\n          <div class=\"flex-1\">\n            <div\n              class=\"bg-muted h-2.5 overflow-hidden rounded-full\"\n              role=\"img\"\n              :aria-label=\"`${person.name}: ${person.hours} of ${person.capacity} hours`\"\n            >\n              <div\n                class=\"h-full rounded-full transition-all motion-reduce:transition-none\"\n                :class=\"\n                  person.hours > person.capacity\n                    ? 'bg-red-500'\n                    : person.hours / person.capacity > 0.85\n                      ? 'bg-amber-500'\n                      : 'bg-primary'\n                \"\n                :style=\"{ width: `${Math.min(100, (person.hours / person.capacity) * 100)}%` }\"\n              />\n            </div>\n          </div>\n          <div class=\"flex items-center gap-3 text-sm sm:w-44 sm:justify-end\">\n            <span\n              class=\"tabular-nums\"\n              :class=\"\n                person.hours > person.capacity ? 'font-semibold text-red-600 dark:text-red-400' : ''\n              \"\n              >{{ person.hours }}/{{ person.capacity }}h</span\n            >\n            <UiBadge variant=\"secondary\">{{ person.tasks }} tasks</UiBadge>\n          </div>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Person = {\n    name: string;\n    role: string;\n    avatar: string;\n    capacity: number;\n    this: { hours: number; tasks: number };\n    next: { hours: number; tasks: number };\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      people?: Person[];\n    }>(),\n    {\n      title: \"Team workload\",\n      people: () => [\n        {\n          name: \"Sofia Alvarez\",\n          role: \"Designer\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          capacity: 40,\n          this: { hours: 44, tasks: 9 },\n          next: { hours: 32, tasks: 6 },\n        },\n        {\n          name: \"Liam Carter\",\n          role: \"Engineer\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          capacity: 40,\n          this: { hours: 36, tasks: 7 },\n          next: { hours: 38, tasks: 8 },\n        },\n        {\n          name: \"Aisha Khan\",\n          role: \"Marketing\",\n          avatar: \"https://i.pravatar.cc/80?img=44\",\n          capacity: 32,\n          this: { hours: 20, tasks: 5 },\n          next: { hours: 26, tasks: 6 },\n        },\n        {\n          name: \"Noah Williams\",\n          role: \"Engineer\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          capacity: 40,\n          this: { hours: 41, tasks: 8 },\n          next: { hours: 44, tasks: 10 },\n        },\n        {\n          name: \"Maya Chen\",\n          role: \"Product\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          capacity: 40,\n          this: { hours: 28, tasks: 6 },\n          next: { hours: 30, tasks: 6 },\n        },\n      ],\n    }\n  );\n\n  const week = ref<\"this\" | \"next\">(\"this\");\n\n  const rows = computed(() =>\n    props.people.map((person) => ({\n      name: person.name,\n      role: person.role,\n      avatar: person.avatar,\n      capacity: person.capacity,\n      ...person[week.value || \"this\"],\n    }))\n  );\n  const teamLoad = computed(() =>\n    Math.round(\n      (rows.value.reduce((sum, p) => sum + p.hours, 0) /\n        rows.value.reduce((sum, p) => sum + p.capacity, 0)) *\n        100\n    )\n  );\n  const over = computed(() => rows.value.filter((person) => person.hours > person.capacity).length);\n</script>\n","category":"ProjectOverview","description":"Team workload overview. Features: Capacity bars for every team member, over capacity warning color, open task counts, hours estimate, toggle between this week and next week and a summary of the team load","path":"Tasks/ProjectOverview/BlockProjectOverview3.vue","components":["avatar","badge","container","toggle-group"]},{"name":"Project Overview 4","fileName":"BlockProjectOverview4.vue","file":"<template>\n  <!--\n    Milestones timeline for a project\n    Features: Vertical timeline with done, current and upcoming milestones, dates, owner avatars, task progress inside each milestone, the next milestone highlighted and a days remaining label\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n      <p class=\"text-muted-foreground mt-1 text-sm\">\n        {{ doneCount }} of {{ milestones.length }} milestones reached\n      </p>\n\n      <ol class=\"relative mt-8 space-y-6 border-l pl-8\">\n        <li v-for=\"milestone in milestones\" :key=\"milestone.name\" class=\"relative\">\n          <span\n            class=\"absolute top-1 -left-[43px] grid size-6 place-items-center rounded-full border-2\"\n            :class=\"\n              milestone.status === 'done'\n                ? 'border-green-500 bg-green-500 text-white'\n                : milestone.status === 'current'\n                  ? 'border-primary bg-background text-primary'\n                  : 'bg-background text-muted-foreground'\n            \"\n          >\n            <Icon\n              :name=\"\n                milestone.status === 'done'\n                  ? 'lucide:check'\n                  : milestone.status === 'current'\n                    ? 'lucide:flag'\n                    : 'lucide:circle'\n              \"\n              class=\"size-3.5\"\n            />\n          </span>\n          <div\n            class=\"rounded-xl border p-4\"\n            :class=\"milestone.status === 'current' ? 'border-primary/50 bg-primary/5' : ''\"\n            :aria-current=\"milestone.status === 'current' ? 'step' : undefined\"\n          >\n            <div class=\"flex flex-wrap items-center justify-between gap-2\">\n              <h2 class=\"font-semibold\">{{ milestone.name }}</h2>\n              <span class=\"text-muted-foreground text-xs\"\n                >{{ milestone.date\n                }}<template v-if=\"milestone.status === 'current'\">\n                  · {{ milestone.daysLeft }} days left</template\n                ></span\n              >\n            </div>\n            <p class=\"text-muted-foreground mt-1 text-sm\">{{ milestone.description }}</p>\n            <div class=\"mt-3 flex items-center gap-3\">\n              <UiProgress\n                :model-value=\"(milestone.done / milestone.total) * 100\"\n                class=\"h-1.5 flex-1\"\n                :aria-label=\"`${milestone.name} progress`\"\n              />\n              <span class=\"text-muted-foreground text-xs tabular-nums\"\n                >{{ milestone.done }}/{{ milestone.total }}</span\n              >\n              <UiAvatar :src=\"milestone.owner\" fallback=\"?\" class=\"size-6\" />\n            </div>\n          </div>\n        </li>\n      </ol>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Milestone = {\n    name: string;\n    description: string;\n    date: string;\n    status: \"done\" | \"current\" | \"upcoming\";\n    done: number;\n    total: number;\n    owner: string;\n    daysLeft?: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      milestones?: Milestone[];\n    }>(),\n    {\n      title: \"Website relaunch milestones\",\n      milestones: () => [\n        {\n          name: \"Kickoff\",\n          description: \"Goals, scope and team agreed.\",\n          date: \"Sep 12\",\n          status: \"done\",\n          done: 8,\n          total: 8,\n          owner: \"https://i.pravatar.cc/80?img=45\",\n        },\n        {\n          name: \"Design approved\",\n          description: \"Final designs signed off by stakeholders.\",\n          date: \"Oct 05\",\n          status: \"done\",\n          done: 14,\n          total: 14,\n          owner: \"https://i.pravatar.cc/80?img=32\",\n        },\n        {\n          name: \"Beta launch\",\n          description: \"Invite 50 customers to try the new site.\",\n          date: \"Oct 28\",\n          status: \"current\",\n          done: 19,\n          total: 26,\n          owner: \"https://i.pravatar.cc/80?img=12\",\n          daysLeft: 10,\n        },\n        {\n          name: \"Public launch\",\n          description: \"Announce, redirect the old site and monitor.\",\n          date: \"Nov 30\",\n          status: \"upcoming\",\n          done: 0,\n          total: 16,\n          owner: \"https://i.pravatar.cc/80?img=45\",\n        },\n      ],\n    }\n  );\n\n  const doneCount = computed(\n    () => props.milestones.filter((milestone) => milestone.status === \"done\").length\n  );\n</script>\n","category":"ProjectOverview","description":"Milestones timeline for a project. Features: Vertical timeline with done, current and upcoming milestones, dates, owner avatars, task progress inside each milestone, the next milestone highlighted and a days remaining label","path":"Tasks/ProjectOverview/BlockProjectOverview4.vue","components":["avatar","container","progress"]},{"name":"Project Overview 5","fileName":"BlockProjectOverview5.vue","file":"<template>\n  <!--\n    Project grid with search and status filter\n    Features: Search field, status tabs with counts, project cards with color tile, description, progress and members, favorite stars you can toggle and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n      <div class=\"relative sm:w-64\">\n        <UiLabel for=\"po5-search\" class=\"sr-only\">Search projects</UiLabel>\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput id=\"po5-search\" v-model=\"query\" placeholder=\"Search projects\" class=\"pl-9\" />\n      </div>\n    </div>\n\n    <UiTabs v-model=\"tab\" class=\"mt-6\">\n      <UiTabsList>\n        <UiTabsTrigger v-for=\"item in tabs\" :key=\"item\" :value=\"item\" class=\"capitalize\"\n          >{{ item\n          }}<UiBadge variant=\"secondary\" class=\"ml-1.5\">{{ count(item) }}</UiBadge></UiTabsTrigger\n        >\n      </UiTabsList>\n    </UiTabs>\n\n    <ul v-if=\"rows.length\" class=\"mt-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n      <li\n        v-for=\"project in rows\"\n        :key=\"project.id\"\n        class=\"relative rounded-xl border p-4 transition hover:shadow-md\"\n      >\n        <div class=\"flex items-start gap-3\">\n          <span\n            class=\"grid size-10 shrink-0 place-items-center rounded-lg text-white\"\n            :class=\"project.color\"\n            ><Icon :name=\"project.icon\" class=\"size-5\"\n          /></span>\n          <div class=\"min-w-0 flex-1\">\n            <h2 class=\"truncate font-semibold\">{{ project.name }}</h2>\n            <p class=\"text-muted-foreground line-clamp-2 text-sm\">{{ project.description }}</p>\n          </div>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            :aria-pressed=\"project.favorite\"\n            :aria-label=\"\n              project.favorite\n                ? `Remove ${project.name} from favorites`\n                : `Add ${project.name} to favorites`\n            \"\n            @click=\"project.favorite = !project.favorite\"\n          >\n            <Icon\n              name=\"lucide:star\"\n              class=\"size-4\"\n              :class=\"project.favorite ? 'fill-amber-400 text-amber-500' : ''\"\n            />\n          </UiButton>\n        </div>\n        <div class=\"mt-4\">\n          <div class=\"text-muted-foreground mb-1.5 flex justify-between text-xs\">\n            <span class=\"capitalize\">{{ project.status }}</span><span>{{ project.progress }}%</span>\n          </div>\n          <UiProgress\n            :model-value=\"project.progress\"\n            class=\"h-1.5\"\n            :aria-label=\"`${project.name} progress`\"\n          />\n        </div>\n        <div class=\"mt-4 flex -space-x-1.5\">\n          <UiAvatar\n            v-for=\"person in project.team\"\n            :key=\"person\"\n            :src=\"`https://i.pravatar.cc/80?img=${person}`\"\n            fallback=\"?\"\n            class=\"ring-card size-6 ring-2\"\n          />\n        </div>\n      </li>\n    </ul>\n    <p\n      v-else\n      class=\"text-muted-foreground mt-6 rounded-xl border border-dashed py-12 text-center text-sm\"\n      role=\"status\"\n    >\n      No projects match your search.\n    </p>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Project = {\n    id: string;\n    name: string;\n    description: string;\n    status: \"active\" | \"paused\" | \"completed\";\n    progress: number;\n    color: string;\n    icon: string;\n    team: number[];\n    favorite: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Project[];\n    }>(),\n    {\n      title: \"All projects\",\n      initial: () => [\n        {\n          id: \"p1\",\n          name: \"Website relaunch\",\n          description: \"New marketing site with faster builds and pricing.\",\n          status: \"active\",\n          progress: 64,\n          color: \"bg-indigo-500\",\n          icon: \"lucide:globe\",\n          team: [32, 12, 44],\n          favorite: true,\n        },\n        {\n          id: \"p2\",\n          name: \"Mobile app v2\",\n          description: \"Offline mode, push notifications and a refreshed design.\",\n          status: \"active\",\n          progress: 23,\n          color: \"bg-emerald-500\",\n          icon: \"lucide:smartphone\",\n          team: [15, 45],\n          favorite: false,\n        },\n        {\n          id: \"p3\",\n          name: \"Billing migration\",\n          description: \"Move subscriptions to the new payment provider.\",\n          status: \"active\",\n          progress: 90,\n          color: \"bg-amber-500\",\n          icon: \"lucide:credit-card\",\n          team: [12, 33],\n          favorite: false,\n        },\n        {\n          id: \"p4\",\n          name: \"Brand refresh\",\n          description: \"Updated logo, colors and brand guidelines.\",\n          status: \"paused\",\n          progress: 22,\n          color: \"bg-rose-500\",\n          icon: \"lucide:palette\",\n          team: [44, 32],\n          favorite: false,\n        },\n        {\n          id: \"p5\",\n          name: \"Help center\",\n          description: \"Rewrite and reorganize all support articles.\",\n          status: \"completed\",\n          progress: 100,\n          color: \"bg-sky-500\",\n          icon: \"lucide:life-buoy\",\n          team: [45],\n          favorite: true,\n        },\n      ],\n    }\n  );\n\n  const tabs = [\"all\", \"active\", \"paused\", \"completed\"];\n\n  const projects = ref<Project[]>(\n    props.initial.map((project) => ({ ...project, team: [...project.team] }))\n  );\n  const query = ref(\"\");\n  const tab = ref(\"all\");\n\n  const count = (status: string) =>\n    projects.value.filter((project) => status === \"all\" || project.status === status).length;\n  const rows = computed(() => {\n    const term = query.value.trim().toLowerCase();\n    return projects.value.filter(\n      (project) =>\n        (tab.value === \"all\" || project.status === tab.value) &&\n        (!term ||\n          project.name.toLowerCase().includes(term) ||\n          project.description.toLowerCase().includes(term))\n    );\n  });\n</script>\n","category":"ProjectOverview","description":"Project grid with search and status filter. Features: Search field, status tabs with counts, project cards with color tile, description, progress and members, favorite stars you can toggle and an empty state","path":"Tasks/ProjectOverview/BlockProjectOverview5.vue","components":["avatar","badge","button","container","input","label","progress","tabs"]},{"name":"Project Overview 6","fileName":"BlockProjectOverview6.vue","file":"<template>\n  <!--\n    Portfolio table of projects\n    Features: Sortable table with owner, status, progress bar, budget used and next milestone, row totals in the footer, over budget highlight and a status filter select\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n      <UiSelect v-model=\"status\">\n        <UiSelectTrigger class=\"sm:w-44\" aria-label=\"Filter by status\"\n          ><UiSelectValue\n        /></UiSelectTrigger>\n        <UiSelectContent>\n          <UiSelectItem value=\"all\">All statuses</UiSelectItem>\n          <UiSelectItem v-for=\"item in statuses\" :key=\"item\" :value=\"item\">{{ item }}</UiSelectItem>\n        </UiSelectContent>\n      </UiSelect>\n    </div>\n\n    <div class=\"mt-6 overflow-x-auto rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead :aria-sort=\"ariaSort('name')\"\n              ><button\n                type=\"button\"\n                class=\"hover:text-foreground flex items-center gap-1\"\n                @click=\"sortBy('name')\"\n              >\n                Project<Icon :name=\"icon('name')\" class=\"size-3.5\" /></button\n            ></UiTableHead>\n            <UiTableHead class=\"hidden md:table-cell\">Owner</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"hidden w-40 sm:table-cell\" :aria-sort=\"ariaSort('progress')\"\n              ><button\n                type=\"button\"\n                class=\"hover:text-foreground flex items-center gap-1\"\n                @click=\"sortBy('progress')\"\n              >\n                Progress<Icon :name=\"icon('progress')\" class=\"size-3.5\" /></button\n            ></UiTableHead>\n            <UiTableHead class=\"text-right\" :aria-sort=\"ariaSort('spent')\"\n              ><button\n                type=\"button\"\n                class=\"hover:text-foreground ml-auto flex items-center gap-1\"\n                @click=\"sortBy('spent')\"\n              >\n                Budget used<Icon :name=\"icon('spent')\" class=\"size-3.5\" /></button\n            ></UiTableHead>\n            <UiTableHead class=\"hidden lg:table-cell\">Next milestone</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"project in rows\" :key=\"project.name\">\n            <UiTableCell class=\"font-medium\">{{ project.name }}</UiTableCell>\n            <UiTableCell class=\"hidden md:table-cell\"\n              ><span class=\"flex items-center gap-2\"\n                ><UiAvatar :src=\"project.avatar\" :fallback=\"project.owner[0]\" class=\"size-6\" />{{\n                  project.owner\n                }}</span\n              ></UiTableCell\n            >\n            <UiTableCell\n              ><UiBadge variant=\"soft\" :color=\"colors[project.status]\" shape=\"pill\">{{\n                project.status\n              }}</UiBadge></UiTableCell\n            >\n            <UiTableCell class=\"hidden sm:table-cell\"\n              ><div class=\"flex items-center gap-2\">\n                <UiProgress\n                  :model-value=\"project.progress\"\n                  class=\"h-1.5\"\n                  :aria-label=\"`${project.name} progress`\"\n                /><span class=\"text-muted-foreground w-9 text-xs tabular-nums\"\n                  >{{ project.progress }}%</span\n                >\n              </div></UiTableCell\n            >\n            <UiTableCell\n              class=\"text-right tabular-nums\"\n              :class=\"project.spent > 100 ? 'font-medium text-red-600 dark:text-red-400' : ''\"\n              >{{ project.spent }}%</UiTableCell\n            >\n            <UiTableCell class=\"text-muted-foreground hidden whitespace-nowrap lg:table-cell\">{{\n              project.milestone\n            }}</UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"6\"\n            >No projects with this status.</UiTableEmpty\n          >\n        </UiTableBody>\n        <UiTableFooter>\n          <UiTableRow>\n            <UiTableCell colspan=\"3\" class=\"font-medium\">{{ rows.length }} projects</UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">Average {{ average }}%</UiTableCell>\n            <UiTableCell colspan=\"2\" />\n          </UiTableRow>\n        </UiTableFooter>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"Active\" | \"At risk\" | \"Completed\";\n  type Project = {\n    name: string;\n    owner: string;\n    avatar: string;\n    status: Status;\n    progress: number;\n    spent: number;\n    milestone: string;\n  };\n  type Key = \"name\" | \"progress\" | \"spent\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      projects?: Project[];\n    }>(),\n    {\n      title: \"Project portfolio\",\n      projects: () => [\n        {\n          name: \"Website relaunch\",\n          owner: \"Sofia\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          status: \"Active\",\n          progress: 64,\n          spent: 58,\n          milestone: \"Beta launch · Oct 28\",\n        },\n        {\n          name: \"Mobile app v2\",\n          owner: \"Liam\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          status: \"At risk\",\n          progress: 23,\n          spent: 41,\n          milestone: \"Design freeze · Nov 04\",\n        },\n        {\n          name: \"Billing migration\",\n          owner: \"Noah\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          status: \"Active\",\n          progress: 90,\n          spent: 104,\n          milestone: \"Cutover · Nov 12\",\n        },\n        {\n          name: \"Brand refresh\",\n          owner: \"Aisha\",\n          avatar: \"https://i.pravatar.cc/80?img=44\",\n          status: \"At risk\",\n          progress: 22,\n          spent: 76,\n          milestone: \"Guidelines · Oct 20\",\n        },\n        {\n          name: \"Help center\",\n          owner: \"Maya\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          status: \"Completed\",\n          progress: 100,\n          spent: 97,\n          milestone: \"Done\",\n        },\n      ],\n    }\n  );\n\n  const statuses: Status[] = [\"Active\", \"At risk\", \"Completed\"];\n  const colors = { Active: \"blue\", \"At risk\": \"amber\", Completed: \"green\" } as const;\n\n  const status = ref(\"all\");\n  const sortKey = ref<Key>(\"progress\");\n  const direction = ref<\"asc\" | \"desc\">(\"desc\");\n\n  const rows = computed(() => {\n    const factor = direction.value === \"asc\" ? 1 : -1;\n    return props.projects\n      .filter((project) => status.value === \"all\" || project.status === status.value)\n      .sort(\n        (a, b) =>\n          (sortKey.value === \"name\"\n            ? a.name.localeCompare(b.name)\n            : a[sortKey.value] - b[sortKey.value]) * factor\n      );\n  });\n\n  const average = computed(() =>\n    rows.value.length\n      ? Math.round(\n          rows.value.reduce((sum, project) => sum + project.progress, 0) / rows.value.length\n        )\n      : 0\n  );\n\n  function sortBy(key: Key) {\n    if (sortKey.value === key) direction.value = direction.value === \"asc\" ? \"desc\" : \"asc\";\n    else {\n      sortKey.value = key;\n      direction.value = \"asc\";\n    }\n  }\n\n  const ariaSort = (key: Key) =>\n    sortKey.value !== key ? \"none\" : direction.value === \"asc\" ? \"ascending\" : \"descending\";\n  const icon = (key: Key) =>\n    sortKey.value !== key\n      ? \"lucide:arrow-up-down\"\n      : direction.value === \"asc\"\n        ? \"lucide:arrow-up\"\n        : \"lucide:arrow-down\";\n</script>\n","category":"ProjectOverview","description":"Portfolio table of projects. Features: Sortable table with owner, status, progress bar, budget used and next milestone, row totals in the footer, over budget highlight and a status filter select","path":"Tasks/ProjectOverview/BlockProjectOverview6.vue","components":["avatar","badge","container","progress","select","table"]},{"name":"Releases 1","fileName":"BlockReleases1.vue","file":"<template>\n  <!--\n    Release timeline\n    Features: A vertical timeline of releases with version, date and a label for major, minor and patch releases, highlights for each release, a latest badge and a load older releases button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Changelog</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        New features, improvements and fixes in every release.\n      </p>\n\n      <ol class=\"border-border mt-10 ml-2 space-y-10 border-l\" aria-live=\"polite\">\n        <li v-for=\"release in shown\" :key=\"release.version\" class=\"relative pl-8\">\n          <span\n            class=\"ring-background absolute top-1.5 -left-[0.4375rem] size-3.5 rounded-full ring-4\"\n            :class=\"isLatest(release) ? 'bg-primary' : 'bg-muted-foreground/40'\"\n            aria-hidden=\"true\"\n          />\n          <div class=\"flex flex-wrap items-center gap-2\">\n            <h2 class=\"text-xl font-semibold\">v{{ release.version }}</h2>\n            <UiBadge v-if=\"isLatest(release)\" variant=\"solid\" color=\"blue\" shape=\"pill\"\n              >Latest</UiBadge\n            >\n            <UiBadge variant=\"soft\" shape=\"pill\" :color=\"kinds[release.kind]\">{{\n              release.kind\n            }}</UiBadge>\n            <time class=\"text-muted-foreground ml-auto text-sm\" :datetime=\"release.date\">{{\n              format(release.date)\n            }}</time>\n          </div>\n          <p class=\"text-muted-foreground mt-2\">{{ release.summary }}</p>\n          <ul class=\"mt-3 space-y-1.5 text-sm\">\n            <li v-for=\"line in release.highlights\" :key=\"line\" class=\"flex items-start gap-2\">\n              <Icon name=\"lucide:check\" class=\"mt-0.5 size-4 shrink-0 text-green-500\" />{{ line }}\n            </li>\n          </ul>\n        </li>\n      </ol>\n\n      <div class=\"mt-10 text-center\">\n        <UiButton v-if=\"count < releases.length\" variant=\"outline\" @click=\"count += 3\"\n          >Load older releases</UiButton\n        >\n        <p v-else class=\"text-muted-foreground text-sm\">You have reached the first release.</p>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Release = {\n    version: string;\n    date: string;\n    kind: \"major\" | \"minor\" | \"patch\";\n    summary: string;\n    highlights: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      releases?: Release[];\n    }>(),\n    {\n      releases: () => [\n        {\n          version: \"2.4.0\",\n          date: \"2026-10-14\",\n          kind: \"minor\",\n          summary: \"Faster reports and a calmer dashboard.\",\n          highlights: [\n            \"Reports load up to 3 times faster\",\n            \"New saved views on the dashboard\",\n            \"Keyboard shortcuts for the command menu\",\n          ],\n        },\n        {\n          version: \"2.3.2\",\n          date: \"2026-10-02\",\n          kind: \"patch\",\n          summary: \"Stability fixes.\",\n          highlights: [\n            \"Fixed a rare crash when exporting large tables\",\n            \"Dates now follow your time zone everywhere\",\n          ],\n        },\n        {\n          version: \"2.3.0\",\n          date: \"2026-09-18\",\n          kind: \"minor\",\n          summary: \"Team workspaces.\",\n          highlights: [\n            \"Invite teammates with roles\",\n            \"Share saved views with a link\",\n            \"Audit log for admins\",\n          ],\n        },\n        {\n          version: \"2.2.1\",\n          date: \"2026-09-04\",\n          kind: \"patch\",\n          summary: \"Small fixes.\",\n          highlights: [\n            \"Email notifications no longer repeat\",\n            \"Fixed dark mode contrast on charts\",\n          ],\n        },\n        {\n          version: \"2.2.0\",\n          date: \"2026-08-21\",\n          kind: \"minor\",\n          summary: \"Import and export.\",\n          highlights: [\"Import from CSV with column matching\", \"Export any table as CSV or JSON\"],\n        },\n        {\n          version: \"2.0.0\",\n          date: \"2026-07-01\",\n          kind: \"major\",\n          summary: \"The new Acme.\",\n          highlights: [\n            \"A redesigned interface\",\n            \"A public API with keys and webhooks\",\n            \"Single sign on for business plans\",\n          ],\n        },\n      ],\n    }\n  );\n\n  const count = ref(3);\n  const shown = computed(() => props.releases.slice(0, count.value));\n  const isLatest = (release: Release) => release.version === props.releases[0]?.version;\n  const kinds = { major: \"violet\", minor: \"blue\", patch: \"gray\" } as const;\n\n  const format = (iso: string) =>\n    new Date(`${iso}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"long\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"Releases","description":"Release timeline. Features: A vertical timeline of releases with version, date and a label for major, minor and patch releases, highlights for each release, a latest badge and a load older releases button","path":"Changelog/Releases/BlockReleases1.vue","components":["badge","button","container"]},{"name":"Releases 2","fileName":"BlockReleases2.vue","file":"<template>\n  <!--\n    Version cards\n    Features: A grid of release cards with a large version number, the date, a short summary, counts of new, improved and fixed items and a notes toggle that expands the full list inside the card\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Release notes</h1>\n      <div class=\"mt-8 grid items-start gap-5 md:grid-cols-2\">\n        <UiCard v-for=\"release in releases\" :key=\"release.version\" class=\"gap-4\">\n          <UiCardHeader>\n            <div class=\"flex items-baseline justify-between gap-3\">\n              <UiCardTitle class=\"text-3xl tabular-nums\">{{ release.version }}</UiCardTitle>\n              <time class=\"text-muted-foreground text-sm\" :datetime=\"release.date\">{{\n                format(release.date)\n              }}</time>\n            </div>\n            <UiCardDescription>{{ release.summary }}</UiCardDescription>\n          </UiCardHeader>\n          <UiCardContent class=\"space-y-4\">\n            <div class=\"flex flex-wrap gap-2\">\n              <UiBadge\n                v-for=\"kind in kinds\"\n                :key=\"kind.key\"\n                variant=\"soft\"\n                shape=\"pill\"\n                :color=\"kind.color\"\n                >{{ count(release, kind.key) }} {{ kind.label }}</UiBadge\n              >\n            </div>\n            <UiButton\n              variant=\"ghost\"\n              size=\"sm\"\n              class=\"-ml-2\"\n              :aria-expanded=\"open.has(release.version)\"\n              :aria-controls=\"`notes-${release.version}`\"\n              @click=\"toggle(release.version)\"\n            >\n              <Icon\n                name=\"lucide:chevron-down\"\n                class=\"size-4 transition-transform\"\n                :class=\"open.has(release.version) ? 'rotate-180' : ''\"\n              />\n              {{ open.has(release.version) ? \"Hide notes\" : \"Read notes\" }}\n            </UiButton>\n            <ul\n              v-if=\"open.has(release.version)\"\n              :id=\"`notes-${release.version}`\"\n              class=\"space-y-2 border-t pt-4 text-sm\"\n            >\n              <li v-for=\"item in release.items\" :key=\"item.text\" class=\"flex items-start gap-2\">\n                <UiBadge\n                  variant=\"soft\"\n                  shape=\"pill\"\n                  :color=\"colorOf(item.type)\"\n                  class=\"mt-0.5 shrink-0\"\n                  >{{ item.type }}</UiBadge\n                >\n                <span>{{ item.text }}</span>\n              </li>\n            </ul>\n          </UiCardContent>\n        </UiCard>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Type = \"new\" | \"improved\" | \"fixed\";\n  type Release = {\n    version: string;\n    date: string;\n    summary: string;\n    items: { type: Type; text: string }[];\n  };\n\n  withDefaults(\n    defineProps<{\n      releases?: Release[];\n    }>(),\n    {\n      releases: () => [\n        {\n          version: \"2.4\",\n          date: \"2026-10-14\",\n          summary: \"Faster reports and saved views.\",\n          items: [\n            { type: \"new\", text: \"Saved views on the dashboard\" },\n            { type: \"new\", text: \"Command menu shortcuts\" },\n            { type: \"improved\", text: \"Reports load up to 3 times faster\" },\n            { type: \"fixed\", text: \"Exports of large tables no longer crash\" },\n          ],\n        },\n        {\n          version: \"2.3\",\n          date: \"2026-09-18\",\n          summary: \"Team workspaces for everyone.\",\n          items: [\n            { type: \"new\", text: \"Invite teammates with roles\" },\n            { type: \"new\", text: \"Audit log for admins\" },\n            { type: \"improved\", text: \"Sharing links keep their settings\" },\n            { type: \"fixed\", text: \"Notification emails no longer repeat\" },\n            { type: \"fixed\", text: \"Dark mode contrast on charts\" },\n          ],\n        },\n        {\n          version: \"2.2\",\n          date: \"2026-08-21\",\n          summary: \"Bring your data in and out.\",\n          items: [\n            { type: \"new\", text: \"Import from CSV with column matching\" },\n            { type: \"new\", text: \"Export any table as CSV or JSON\" },\n            { type: \"improved\", text: \"Tables remember their sort order\" },\n          ],\n        },\n        {\n          version: \"2.1\",\n          date: \"2026-07-24\",\n          summary: \"A round of polish after the big release.\",\n          items: [\n            { type: \"improved\", text: \"Smaller bundle for faster first load\" },\n            { type: \"fixed\", text: \"Pagination jumping on mobile\" },\n            { type: \"fixed\", text: \"Wrong currency in invoices for some regions\" },\n          ],\n        },\n      ],\n    }\n  );\n\n  const open = ref(new Set<string>([\"2.4\"]));\n  const kinds: { key: Type; label: string; color: string }[] = [\n    { key: \"new\", label: \"new\", color: \"green\" },\n    { key: \"improved\", label: \"improved\", color: \"blue\" },\n    { key: \"fixed\", label: \"fixed\", color: \"amber\" },\n  ];\n\n  const colorOf = (type: Type) => kinds.find((kind) => kind.key === type)!.color;\n  const count = (release: Release, type: Type) =>\n    release.items.filter((item) => item.type === type).length;\n\n  function toggle(version: string) {\n    const next = new Set(open.value);\n    if (next.has(version)) next.delete(version);\n    else next.add(version);\n    open.value = next;\n  }\n\n  const format = (iso: string) =>\n    new Date(`${iso}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"Releases","description":"Version cards. Features: A grid of release cards with a large version number, the date, a short summary, counts of new, improved and fixed items and a notes toggle that expands the full list inside the card","path":"Changelog/Releases/BlockReleases2.vue","components":["badge","button","card","container"]},{"name":"Releases 3","fileName":"BlockReleases3.vue","file":"<template>\n  <!--\n    Release notes grouped by type\n    Features: A version select that switches the release, changes grouped under new, improved and fixed headings with colored icons, a count for each group, the release date and a copy as markdown button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-4\">\n        <div>\n          <h1 class=\"text-3xl font-bold tracking-tight\">What is new in {{ current.version }}</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\">Released {{ format(current.date) }}</p>\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <UiSelect v-model=\"version\">\n            <UiSelectTrigger class=\"w-32\" aria-label=\"Version\"><UiSelectValue /></UiSelectTrigger>\n            <UiSelectContent>\n              <UiSelectItem\n                v-for=\"release in releases\"\n                :key=\"release.version\"\n                :value=\"release.version\"\n                >v{{ release.version }}</UiSelectItem\n              >\n            </UiSelectContent>\n          </UiSelect>\n          <UiButton\n            variant=\"outline\"\n            size=\"icon\"\n            aria-label=\"Copy as markdown\"\n            @click=\"copy(markdown)\"\n            ><Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\"\n          /></UiButton>\n        </div>\n      </div>\n\n      <div class=\"mt-8 space-y-8\" aria-live=\"polite\">\n        <section v-for=\"group in groups\" :key=\"group.key\" :aria-label=\"group.title\">\n          <h2 class=\"flex items-center gap-2 text-lg font-semibold\">\n            <span class=\"grid size-7 place-items-center rounded-md\" :class=\"group.tint\"\n              ><Icon :name=\"group.icon\" class=\"size-4\"\n            /></span>\n            {{ group.title }}\n            <span class=\"text-muted-foreground text-sm font-normal\">{{ group.items.length }}</span>\n          </h2>\n          <ul class=\"mt-3 space-y-3\">\n            <li v-for=\"item in group.items\" :key=\"item.title\" class=\"border-border border-l-2 pl-4\">\n              <p class=\"font-medium\">{{ item.title }}</p>\n              <p v-if=\"item.detail\" class=\"text-muted-foreground text-sm\">{{ item.detail }}</p>\n            </li>\n          </ul>\n        </section>\n        <p\n          v-if=\"!groups.length\"\n          class=\"text-muted-foreground rounded-xl border border-dashed py-10 text-center text-sm\"\n        >\n          No notes for this version.\n        </p>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Type = \"new\" | \"improved\" | \"fixed\";\n  type Release = {\n    version: string;\n    date: string;\n    changes: { type: Type; title: string; detail?: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      releases?: Release[];\n    }>(),\n    {\n      releases: () => [\n        {\n          version: \"2.4.0\",\n          date: \"2026-10-14\",\n          changes: [\n            {\n              type: \"new\",\n              title: \"Saved views\",\n              detail: \"Save a set of filters on the dashboard and share it with your team.\",\n            },\n            {\n              type: \"new\",\n              title: \"Command menu shortcuts\",\n              detail: \"Press Cmd K, then type to jump to any page.\",\n            },\n            {\n              type: \"improved\",\n              title: \"Faster reports\",\n              detail: \"Large reports now load up to 3 times faster.\",\n            },\n            { type: \"improved\", title: \"Clearer empty states\" },\n            {\n              type: \"fixed\",\n              title: \"Export crash\",\n              detail: \"Exporting tables with more than 50,000 rows no longer fails.\",\n            },\n          ],\n        },\n        {\n          version: \"2.3.0\",\n          date: \"2026-09-18\",\n          changes: [\n            {\n              type: \"new\",\n              title: \"Team workspaces\",\n              detail: \"Invite people and give them a role.\",\n            },\n            { type: \"improved\", title: \"Sharing links keep their settings\" },\n            { type: \"fixed\", title: \"Repeated notification emails\" },\n          ],\n        },\n        {\n          version: \"2.2.0\",\n          date: \"2026-08-21\",\n          changes: [\n            { type: \"new\", title: \"CSV import\" },\n            { type: \"new\", title: \"CSV and JSON export\" },\n          ],\n        },\n      ],\n    }\n  );\n\n  const meta: Record<Type, { title: string; icon: string; tint: string }> = {\n    new: {\n      title: \"New\",\n      icon: \"lucide:sparkles\",\n      tint: \"bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\",\n    },\n    improved: {\n      title: \"Improved\",\n      icon: \"lucide:trending-up\",\n      tint: \"bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300\",\n    },\n    fixed: {\n      title: \"Fixed\",\n      icon: \"lucide:wrench\",\n      tint: \"bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300\",\n    },\n  };\n\n  const version = ref(props.releases[0]?.version ?? \"\");\n  const current = computed(\n    () => props.releases.find((release) => release.version === version.value) ?? props.releases[0]!\n  );\n\n  const groups = computed(() =>\n    ([\"new\", \"improved\", \"fixed\"] as Type[])\n      .map((key) => ({\n        key,\n        ...meta[key],\n        items: current.value.changes.filter((change) => change.type === key),\n      }))\n      .filter((group) => group.items.length)\n  );\n\n  const markdown = computed(\n    () =>\n      `## v${current.value.version}\\n\\n` +\n      groups.value\n        .map(\n          (group) =>\n            `### ${group.title}\\n${group.items.map((item) => `- ${item.title}`).join(\"\\n\")}`\n        )\n        .join(\"\\n\\n\")\n  );\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  const format = (iso: string) =>\n    new Date(`${iso}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"long\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"Releases","description":"Release notes grouped by type. Features: A version select that switches the release, changes grouped under new, improved and fixed headings with colored icons, a count for each group, the release date and a copy as markdown button","path":"Changelog/Releases/BlockReleases3.vue","components":["button","container","select"]},{"name":"Releases 4","fileName":"BlockReleases4.vue","file":"<template>\n  <!--\n    Changelog with tags and filters\n    Features: Search, toggle chips for tags such as api, billing and dashboard that can be combined, entries grouped by month, a result count with a clear filters button and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Product updates</h1>\n\n      <div class=\"relative mt-6\">\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput\n          v-model=\"query\"\n          class=\"pl-9\"\n          placeholder=\"Search updates\"\n          aria-label=\"Search updates\"\n        />\n      </div>\n      <div class=\"mt-3 flex flex-wrap items-center gap-2\" role=\"group\" aria-label=\"Filter by tag\">\n        <UiButton\n          v-for=\"tag in tags\"\n          :key=\"tag\"\n          size=\"sm\"\n          class=\"rounded-full\"\n          :variant=\"active.has(tag) ? 'default' : 'outline'\"\n          :aria-pressed=\"active.has(tag)\"\n          @click=\"toggle(tag)\"\n          >{{ tag }}</UiButton\n        >\n        <UiButton v-if=\"active.size || query\" variant=\"ghost\" size=\"sm\" @click=\"clear\"\n          >Clear filters</UiButton\n        >\n      </div>\n      <p class=\"text-muted-foreground mt-3 text-sm\" aria-live=\"polite\">\n        {{ visible.length }} {{ visible.length === 1 ? \"update\" : \"updates\" }}\n      </p>\n\n      <div v-if=\"groups.length\" class=\"mt-6 space-y-8\" aria-live=\"polite\">\n        <section v-for=\"group in groups\" :key=\"group.label\" :aria-label=\"group.label\">\n          <h2 class=\"text-muted-foreground mb-3 text-sm font-semibold\">{{ group.label }}</h2>\n          <ul class=\"divide-y rounded-xl border\">\n            <li v-for=\"item in group.items\" :key=\"item.id\" class=\"px-5 py-4\">\n              <div class=\"flex flex-wrap items-center gap-2\">\n                <p class=\"font-medium\">{{ item.title }}</p>\n                <UiBadge v-for=\"tag in item.tags\" :key=\"tag\" variant=\"soft\" shape=\"pill\">{{\n                  tag\n                }}</UiBadge>\n                <time class=\"text-muted-foreground ml-auto text-xs\" :datetime=\"item.date\">{{\n                  shortDate(item.date)\n                }}</time>\n              </div>\n              <p class=\"text-muted-foreground mt-1 text-sm\">{{ item.body }}</p>\n            </li>\n          </ul>\n        </section>\n      </div>\n      <div v-else class=\"mt-6 rounded-xl border border-dashed py-14 text-center\" aria-live=\"polite\">\n        <Icon name=\"lucide:search-x\" class=\"text-muted-foreground mx-auto size-6\" />\n        <p class=\"mt-2 text-sm font-medium\">No updates match</p>\n        <UiButton variant=\"link\" size=\"sm\" @click=\"clear\">Clear filters</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Entry = { id: string; date: string; title: string; body: string; tags: string[] };\n\n  const props = withDefaults(\n    defineProps<{\n      entries?: Entry[];\n    }>(),\n    {\n      entries: () => [\n        {\n          id: \"c1\",\n          date: \"2026-10-14\",\n          title: \"Saved views\",\n          body: \"Save filters on the dashboard and share them with your team.\",\n          tags: [\"dashboard\"],\n        },\n        {\n          id: \"c2\",\n          date: \"2026-10-09\",\n          title: \"Webhook retries\",\n          body: \"Failed webhooks are retried with backoff for up to 24 hours.\",\n          tags: [\"api\"],\n        },\n        {\n          id: \"c3\",\n          date: \"2026-10-02\",\n          title: \"Annual billing\",\n          body: \"Switch to yearly billing and save 20 percent.\",\n          tags: [\"billing\"],\n        },\n        {\n          id: \"c4\",\n          date: \"2026-09-26\",\n          title: \"Rate limit headers\",\n          body: \"Responses now include remaining and reset headers.\",\n          tags: [\"api\"],\n        },\n        {\n          id: \"c5\",\n          date: \"2026-09-18\",\n          title: \"Team workspaces\",\n          body: \"Invite people and give them a role.\",\n          tags: [\"dashboard\", \"billing\"],\n        },\n        {\n          id: \"c6\",\n          date: \"2026-09-04\",\n          title: \"Invoice PDF redesign\",\n          body: \"Invoices now show your logo and tax details.\",\n          tags: [\"billing\"],\n        },\n        {\n          id: \"c7\",\n          date: \"2026-08-21\",\n          title: \"CSV import\",\n          body: \"Import with column matching and a preview.\",\n          tags: [\"dashboard\"],\n        },\n      ],\n    }\n  );\n\n  const query = ref(\"\");\n  const active = ref(new Set<string>());\n\n  const tags = computed(() => [...new Set(props.entries.flatMap((entry) => entry.tags))].sort());\n  const visible = computed(() => {\n    const text = query.value.trim().toLowerCase();\n    return props.entries\n      .filter((entry) => !active.value.size || entry.tags.some((tag) => active.value.has(tag)))\n      .filter((entry) => !text || `${entry.title} ${entry.body}`.toLowerCase().includes(text))\n      .sort((a, b) => b.date.localeCompare(a.date));\n  });\n\n  const groups = computed(() => {\n    const byMonth = new Map<string, Entry[]>();\n    for (const entry of visible.value) {\n      const key = entry.date.slice(0, 7);\n      byMonth.set(key, [...(byMonth.get(key) ?? []), entry]);\n    }\n    return [...byMonth].map(([key, items]) => ({\n      label: new Date(`${key}-01T00:00:00Z`).toLocaleDateString(\"en-US\", {\n        month: \"long\",\n        year: \"numeric\",\n        timeZone: \"UTC\",\n      }),\n      items,\n    }));\n  });\n\n  function toggle(tag: string) {\n    const next = new Set(active.value);\n    if (next.has(tag)) next.delete(tag);\n    else next.add(tag);\n    active.value = next;\n  }\n\n  function clear() {\n    active.value = new Set();\n    query.value = \"\";\n  }\n\n  const shortDate = (iso: string) =>\n    new Date(`${iso}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"Releases","description":"Changelog with tags and filters. Features: Search, toggle chips for tags such as api, billing and dashboard that can be combined, entries grouped by month, a result count with a clear filters button and an empty state","path":"Changelog/Releases/BlockReleases4.vue","components":["badge","button","container","input"]},{"name":"Releases 5","fileName":"BlockReleases5.vue","file":"<template>\n  <!--\n    Compact changelog list\n    Features: A dense two column list with the date on the left and the title and type badge on the right, year headings, a short description that expands on click and a show more button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex items-end justify-between gap-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Changelog</h1>\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"useSonner.info('Open your RSS feed here')\"\n          ><Icon name=\"lucide:rss\" class=\"size-4\" />RSS</UiButton\n        >\n      </div>\n\n      <div class=\"mt-6 space-y-8\" aria-live=\"polite\">\n        <section v-for=\"group in groups\" :key=\"group.year\" :aria-label=\"group.year\">\n          <h2 class=\"text-muted-foreground mb-2 text-sm font-semibold\">{{ group.year }}</h2>\n          <ul class=\"divide-y border-y\">\n            <li v-for=\"item in group.items\" :key=\"item.id\">\n              <button\n                type=\"button\"\n                class=\"hover:bg-accent/40 focus-visible:bg-accent/40 grid w-full grid-cols-[5rem_1fr_auto] items-start gap-3 py-3 text-left outline-none\"\n                :aria-expanded=\"open === item.id\"\n                @click=\"open = open === item.id ? '' : item.id\"\n              >\n                <time\n                  class=\"text-muted-foreground pt-0.5 text-sm tabular-nums\"\n                  :datetime=\"item.date\"\n                  >{{ shortDate(item.date) }}</time\n                >\n                <span class=\"min-w-0\">\n                  <span class=\"block text-sm font-medium\">{{ item.title }}</span>\n                  <span v-if=\"open === item.id\" class=\"text-muted-foreground mt-1 block text-sm\">{{\n                    item.body\n                  }}</span>\n                </span>\n                <UiBadge variant=\"soft\" shape=\"pill\" :color=\"colors[item.type]\">{{\n                  item.type\n                }}</UiBadge>\n              </button>\n            </li>\n          </ul>\n        </section>\n      </div>\n\n      <div class=\"mt-6 text-center\">\n        <UiButton v-if=\"count < entries.length\" variant=\"outline\" size=\"sm\" @click=\"count += 4\"\n          >Show more</UiButton\n        >\n        <p v-else class=\"text-muted-foreground text-sm\">That is every update.</p>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Type = \"feature\" | \"improvement\" | \"fix\";\n  type Entry = { id: string; date: string; title: string; body: string; type: Type };\n\n  const props = withDefaults(\n    defineProps<{\n      entries?: Entry[];\n    }>(),\n    {\n      entries: () => [\n        {\n          id: \"k1\",\n          date: \"2026-10-14\",\n          title: \"Saved views\",\n          body: \"Save a set of filters and share it with your team.\",\n          type: \"feature\",\n        },\n        {\n          id: \"k2\",\n          date: \"2026-10-09\",\n          title: \"Faster report loading\",\n          body: \"Large reports now load up to 3 times faster.\",\n          type: \"improvement\",\n        },\n        {\n          id: \"k3\",\n          date: \"2026-10-02\",\n          title: \"Fixed duplicate emails\",\n          body: \"Notification emails no longer repeat after a retry.\",\n          type: \"fix\",\n        },\n        {\n          id: \"k4\",\n          date: \"2026-09-18\",\n          title: \"Team workspaces\",\n          body: \"Invite people and give them a role.\",\n          type: \"feature\",\n        },\n        {\n          id: \"k5\",\n          date: \"2026-09-04\",\n          title: \"Better dark mode charts\",\n          body: \"Charts have more contrast on dark backgrounds.\",\n          type: \"improvement\",\n        },\n        {\n          id: \"k6\",\n          date: \"2026-08-21\",\n          title: \"CSV import\",\n          body: \"Import with column matching and a preview.\",\n          type: \"feature\",\n        },\n        {\n          id: \"k7\",\n          date: \"2025-12-12\",\n          title: \"Public API beta\",\n          body: \"Keys, scopes and webhooks are available to everyone.\",\n          type: \"feature\",\n        },\n        {\n          id: \"k8\",\n          date: \"2025-11-03\",\n          title: \"Fixed timezone offsets\",\n          body: \"Reports now use your workspace time zone.\",\n          type: \"fix\",\n        },\n      ],\n    }\n  );\n\n  const colors: Record<Type, string> = { feature: \"green\", improvement: \"blue\", fix: \"amber\" };\n  const count = ref(5);\n  const open = ref(\"\");\n\n  const groups = computed(() => {\n    const years = new Map<string, Entry[]>();\n    for (const entry of [...props.entries]\n      .sort((a, b) => b.date.localeCompare(a.date))\n      .slice(0, count.value)) {\n      const year = entry.date.slice(0, 4);\n      years.set(year, [...(years.get(year) ?? []), entry]);\n    }\n    return [...years].map(([year, items]) => ({ year, items }));\n  });\n\n  const shortDate = (iso: string) =>\n    new Date(`${iso}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"Releases","description":"Compact changelog list. Features: A dense two column list with the date on the left and the title and type badge on the right, year headings, a short description that expands on click and a show more button","path":"Changelog/Releases/BlockReleases5.vue","components":["badge","button","container"]},{"name":"Releases 6","fileName":"BlockReleases6.vue","file":"<template>\n  <!--\n    Changelog with a subscribe card\n    Features: A list of recent releases next to a sticky card where people can subscribe by email, with a frequency select, email validation, a thank you state with an undo, an RSS link with a copy button and a note about privacy\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-5xl gap-10 lg:grid-cols-[1fr_20rem]\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">Changelog</h1>\n        <p class=\"text-muted-foreground mt-2\">Everything we have shipped, newest first.</p>\n        <ul class=\"mt-8 space-y-8\">\n          <li\n            v-for=\"release in releases\"\n            :key=\"release.version\"\n            class=\"border-b pb-8 last:border-0\"\n          >\n            <div class=\"flex items-baseline gap-3\">\n              <h2 class=\"text-xl font-semibold\">v{{ release.version }}</h2>\n              <time class=\"text-muted-foreground text-sm\" :datetime=\"release.date\">{{\n                format(release.date)\n              }}</time>\n            </div>\n            <p class=\"mt-2\">{{ release.summary }}</p>\n            <ul class=\"text-muted-foreground mt-3 list-disc space-y-1 pl-5 text-sm\">\n              <li v-for=\"line in release.items\" :key=\"line\">{{ line }}</li>\n            </ul>\n          </li>\n        </ul>\n      </div>\n\n      <aside class=\"lg:sticky lg:top-6 lg:self-start\">\n        <UiCard class=\"gap-4\">\n          <UiCardHeader>\n            <UiCardTitle class=\"text-base\">Get updates by email</UiCardTitle>\n            <UiCardDescription>New releases, straight to your inbox.</UiCardDescription>\n          </UiCardHeader>\n          <UiCardContent>\n            <div v-if=\"!done\" class=\"space-y-4\">\n              <form class=\"space-y-3\" novalidate @submit.prevent=\"subscribe\">\n                <div class=\"space-y-1.5\">\n                  <UiLabel for=\"changelog-email\">Email</UiLabel>\n                  <UiInput\n                    id=\"changelog-email\"\n                    v-model=\"email\"\n                    type=\"email\"\n                    placeholder=\"you@example.com\"\n                    autocomplete=\"email\"\n                    :aria-invalid=\"!!error\"\n                  />\n                  <p v-if=\"error\" class=\"text-destructive text-sm\">{{ error }}</p>\n                </div>\n                <div class=\"space-y-1.5\">\n                  <UiLabel for=\"changelog-frequency\">How often</UiLabel>\n                  <UiSelect v-model=\"frequency\">\n                    <UiSelectTrigger id=\"changelog-frequency\"><UiSelectValue /></UiSelectTrigger>\n                    <UiSelectContent>\n                      <UiSelectItem value=\"each\">Every release</UiSelectItem>\n                      <UiSelectItem value=\"monthly\">Monthly digest</UiSelectItem>\n                    </UiSelectContent>\n                  </UiSelect>\n                </div>\n                <UiButton type=\"submit\" class=\"w-full\">Subscribe</UiButton>\n              </form>\n              <p class=\"text-muted-foreground text-xs\">No spam. Unsubscribe with one click.</p>\n            </div>\n            <div v-else class=\"space-y-3 text-center\" role=\"status\">\n              <span\n                class=\"mx-auto grid size-10 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n                ><Icon name=\"lucide:check\" class=\"size-5\"\n              /></span>\n              <p class=\"text-sm font-medium\">You are subscribed</p>\n              <p class=\"text-muted-foreground text-sm\">\n                We will send {{ frequency === \"each\" ? \"every release\" : \"a monthly digest\" }} to\n                {{ email }}.\n              </p>\n              <UiButton variant=\"link\" size=\"sm\" @click=\"done = false\">Undo</UiButton>\n            </div>\n          </UiCardContent>\n          <UiCardFooter class=\"border-t\">\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"-ml-2\" @click=\"copy(rss)\"\n              ><Icon :name=\"copied ? 'lucide:check' : 'lucide:rss'\" class=\"size-4\" />{{\n                copied ? \"Feed link copied\" : \"Copy RSS link\"\n              }}</UiButton\n            >\n          </UiCardFooter>\n        </UiCard>\n      </aside>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Release = { version: string; date: string; summary: string; items: string[] };\n\n  withDefaults(\n    defineProps<{\n      releases?: Release[];\n      rss?: string;\n    }>(),\n    {\n      rss: \"https://example.com/changelog.xml\",\n      releases: () => [\n        {\n          version: \"2.4.0\",\n          date: \"2026-10-14\",\n          summary: \"Faster reports and saved views.\",\n          items: [\n            \"Save filters on the dashboard\",\n            \"Reports load up to 3 times faster\",\n            \"Command menu shortcuts\",\n          ],\n        },\n        {\n          version: \"2.3.0\",\n          date: \"2026-09-18\",\n          summary: \"Team workspaces.\",\n          items: [\n            \"Invite teammates with roles\",\n            \"Audit log for admins\",\n            \"Sharing links keep their settings\",\n          ],\n        },\n        {\n          version: \"2.2.0\",\n          date: \"2026-08-21\",\n          summary: \"Import and export.\",\n          items: [\"Import from CSV with column matching\", \"Export any table as CSV or JSON\"],\n        },\n      ],\n    }\n  );\n\n  const email = ref(\"\");\n  const frequency = ref(\"each\");\n  const error = ref(\"\");\n  const done = ref(false);\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  function subscribe() {\n    if (!/^\\S+@\\S+\\.\\S+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    done.value = true;\n  }\n\n  const format = (iso: string) =>\n    new Date(`${iso}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"long\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"Releases","description":"Changelog with a subscribe card. Features: A list of recent releases next to a sticky card where people can subscribe by email, with a frequency select, email validation, a thank you state with an undo, an RSS link with a copy button and a note about privacy","path":"Changelog/Releases/BlockReleases6.vue","components":["button","card","container","input","label","select"]},{"name":"Reset Password","fileName":"BlockResetPassword.vue","file":"<template>\n  <!--\n    Reset password form on a grid background\n    Features: New and confirm password with show and hide toggle, live strength meter and requirements checklist, match validation\n  -->\n  <div class=\"relative flex min-h-screen items-center justify-center px-5 py-12\">\n    <div\n      class=\"absolute inset-0 z-1 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(circle,transparent_25%,var(--color-border)_100%)] bg-size-[100px_100px]\"\n    />\n    <div class=\"relative z-2 w-full max-w-sm\">\n      <div\n        class=\"bg-background mx-auto mb-6 flex size-14 items-center justify-center rounded-lg border\"\n      >\n        <Icon class=\"size-6\" name=\"lucide:lock\" />\n      </div>\n\n      <div class=\"flex flex-col items-center text-center\">\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Set a new password</h1>\n        <p class=\"text-muted-foreground mt-1\">Your new password must be different from before.</p>\n      </div>\n\n      <form class=\"mt-8\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n          <UiVeePasswordInput\n            show-strength\n            show-requirements\n            label=\"New password\"\n            name=\"password\"\n            placeholder=\"Enter a new password\"\n            :requirements=\"['length', 'uppercase', 'number', 'special']\"\n          />\n          <UiVeePasswordInput\n            label=\"Confirm password\"\n            name=\"confirmPassword\"\n            placeholder=\"Repeat your new password\"\n          />\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Reset password\" />\n        </fieldset>\n      </form>\n      <p class=\"mt-8 text-center text-sm\">\n        <NuxtLink\n          class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 font-medium underline-offset-4 hover:underline\"\n          to=\"#\"\n        >\n          <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n          Back to log in\n        </NuxtLink>\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string, ref as yupRef } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Set a new password\",\n    description: \"Your new password must be different from before.\",\n  });\n\n  // Keep the schema in step with the `requirements` shown in the checklist.\n  const ResetSchema = object({\n    password: string()\n      .required()\n      .label(\"Password\")\n      .min(8)\n      .matches(/[A-Z]/, \"Password needs an uppercase letter\")\n      .matches(/[0-9]/, \"Password needs a number\")\n      .matches(/[^A-Za-z0-9]/, \"Password needs a special character\"),\n    confirmPassword: string()\n      .required()\n      .label(\"Confirmation\")\n      .oneOf([yupRef(\"password\")], \"Passwords must match\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof ResetSchema>>({\n    validationSchema: ResetSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Password updated\", {\n      description: \"Your password has been updated successfully.\",\n    });\n  });\n</script>\n","category":"ResetPassword","description":"Reset password form on a grid background. Features: New and confirm password with show and hide toggle, live strength meter and requirements checklist, match validation","path":"ResetPassword/BlockResetPassword.vue","components":["button","vee-password-input"]},{"name":"Reset Password 2","fileName":"BlockResetPassword2.vue","file":"<template>\n  <!--\n    Reset password form inside a card\n    Features: New and confirm password with show and hide toggle, requirements checklist, match validation, back to log in link\n  -->\n  <div class=\"bg-muted/30 relative flex min-h-screen items-center justify-center p-4\">\n    <UiCard class=\"w-full max-w-md shadow-sm\">\n      <div class=\"p-6 lg:p-8\">\n        <div class=\"mb-6 flex justify-center\">\n          <div class=\"bg-primary/10 flex size-14 items-center justify-center rounded-full\">\n            <Icon class=\"text-primary size-7\" name=\"lucide:shield-check\" />\n          </div>\n        </div>\n\n        <div class=\"mb-8 text-center\">\n          <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">Create new password</h1>\n          <p class=\"text-muted-foreground text-sm\">\n            Choose a strong password you haven't used before.\n          </p>\n        </div>\n\n        <form @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeePasswordInput\n              show-requirements\n              label=\"New password\"\n              name=\"password\"\n              placeholder=\"Enter a new password\"\n              :requirements=\"['length', 'number', 'special']\"\n            />\n            <UiVeePasswordInput\n              label=\"Confirm password\"\n              name=\"confirmPassword\"\n              placeholder=\"Repeat your new password\"\n            />\n            <UiButton class=\"w-full\" size=\"lg\" type=\"submit\">Reset password</UiButton>\n          </fieldset>\n        </form>\n\n        <p class=\"mt-6 text-center text-sm\">\n          <NuxtLink\n            class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 font-medium underline-offset-4 hover:underline\"\n            to=\"#\"\n          >\n            <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n            Back to log in\n          </NuxtLink>\n        </p>\n      </div>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string, ref as yupRef } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  // Keep the schema in step with the `requirements` shown in the checklist.\n  const ResetSchema = object({\n    password: string()\n      .required()\n      .label(\"Password\")\n      .min(8)\n      .matches(/[0-9]/, \"Password needs a number\")\n      .matches(/[^A-Za-z0-9]/, \"Password needs a special character\"),\n    confirmPassword: string()\n      .required()\n      .label(\"Confirmation\")\n      .oneOf([yupRef(\"password\")], \"Passwords must match\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof ResetSchema>>({\n    validationSchema: ResetSchema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Password updated\", {\n      description: \"Your password has been updated successfully.\",\n    });\n  });\n</script>\n","category":"ResetPassword","description":"Reset password form inside a card. Features: New and confirm password with show and hide toggle, requirements checklist, match validation, back to log in link","path":"ResetPassword/BlockResetPassword2.vue","components":["button","card","vee-password-input"]},{"name":"Reset Password 3","fileName":"BlockResetPassword3.vue","file":"<template>\n  <!--\n    Split screen reset password with a strength meter\n    Features: New and confirm password with show and hide toggle, a live strength bar with a label, a requirements checklist, match validation, a panel with password tips that hides on mobile and a success state after saving\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-2\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <Icon name=\"lucide:shield\" class=\"size-6\" />\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div v-if=\"!saved\" class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Set a new password</h1>\n            <p class=\"text-muted-foreground\">\n              Your new password must be different from the ones you used before.\n            </p>\n          </div>\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeePasswordInput\n                show-strength\n                show-requirements\n                label=\"New password\"\n                name=\"password\"\n                placeholder=\"Enter a new password\"\n                :requirements=\"['length', 'number', 'uppercase', 'special']\"\n              />\n              <UiVeePasswordInput\n                label=\"Confirm password\"\n                name=\"confirmPassword\"\n                placeholder=\"Repeat your new password\"\n              />\n              <UiButton class=\"w-full\" type=\"submit\">Save password</UiButton>\n            </fieldset>\n          </form>\n        </div>\n        <div v-else class=\"w-full max-w-sm text-center\" role=\"status\">\n          <div\n            class=\"mx-auto mb-6 flex size-14 items-center justify-center rounded-full bg-green-500/10\"\n          >\n            <Icon class=\"size-7 text-green-600\" name=\"lucide:circle-check\" />\n          </div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Password saved</h1>\n          <p class=\"text-muted-foreground mt-2 text-sm\">\n            You can now log in with your new password.\n          </p>\n          <UiButton class=\"mt-8 w-full\" size=\"lg\" to=\"#\">Continue to log in</UiButton>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div class=\"bg-muted/50 hidden flex-col justify-center border-l p-14 lg:flex\">\n      <div class=\"max-w-md\">\n        <h2 class=\"text-2xl font-bold tracking-tight\">Tips for a strong password</h2>\n        <ul class=\"mt-8 grid gap-6\">\n          <li v-for=\"tip in tips\" :key=\"tip.title\" class=\"flex gap-4\">\n            <span\n              class=\"bg-background flex size-10 shrink-0 items-center justify-center rounded-lg border\"\n              ><Icon :name=\"tip.icon\" class=\"size-5\"\n            /></span>\n            <div>\n              <p class=\"font-medium\">{{ tip.title }}</p>\n              <p class=\"text-muted-foreground mt-1 text-sm\">{{ tip.description }}</p>\n            </div>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string, ref as yupRef } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Set a new password\",\n    description: \"Choose a strong password for your account.\",\n  });\n\n  const tips = [\n    {\n      icon: \"lucide:ruler\",\n      title: \"Make it long\",\n      description: \"Twelve characters or more is much harder to guess than eight.\",\n    },\n    {\n      icon: \"lucide:shuffle\",\n      title: \"Mix it up\",\n      description: \"Use upper and lower case letters, numbers and symbols.\",\n    },\n    {\n      icon: \"lucide:key-round\",\n      title: \"Use a password manager\",\n      description: \"Let it create and remember a different password for every site.\",\n    },\n  ];\n\n  const saved = ref(false);\n\n  // Keep the schema in step with the `requirements` shown in the checklist.\n  const ResetSchema = object({\n    password: string()\n      .required()\n      .label(\"Password\")\n      .min(8)\n      .matches(/[0-9]/, \"Password needs a number\")\n      .matches(/[A-Z]/, \"Password needs an uppercase letter\")\n      .matches(/[^A-Za-z0-9]/, \"Password needs a special character\"),\n    confirmPassword: string()\n      .required()\n      .label(\"Confirmation\")\n      .oneOf([yupRef(\"password\")], \"Passwords must match\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof ResetSchema>>({\n    validationSchema: ResetSchema,\n  });\n\n  const submit = handleSubmit(async () => {\n    saved.value = true;\n  });\n</script>\n","category":"ResetPassword","description":"Split screen reset password with a strength meter. Features: New and confirm password with show and hide toggle, a live strength bar with a label, a requirements checklist, match validation, a panel with password tips that hides on mobile and a success state after saving","path":"ResetPassword/BlockResetPassword3.vue","components":["button","vee-password-input"]},{"name":"Reset Password Change","fileName":"BlockResetPasswordChange.vue","file":"<template>\n  <!--\n    Change password while signed in\n    Features: Current, new and confirm password with show and hide toggles, a strength meter, a check that the new password is different from the current one, an option to sign out of other devices and a success message\n  -->\n  <div class=\"bg-muted/30 flex min-h-screen items-center justify-center p-4\">\n    <UiCard class=\"w-full max-w-md shadow-sm\">\n      <div class=\"p-6 lg:p-8\">\n        <div class=\"mb-8\">\n          <h1 class=\"mb-1 text-2xl font-bold tracking-tight\">Change password</h1>\n          <p class=\"text-muted-foreground text-sm\">\n            Use a password that you do not use anywhere else.\n          </p>\n        </div>\n\n        <UiAlert\n          v-if=\"saved\"\n          class=\"mb-6\"\n          icon=\"lucide:circle-check\"\n          title=\"Password updated\"\n          description=\"Your password was changed. Other devices were signed out if you chose that.\"\n          role=\"status\"\n        />\n\n        <form @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeePasswordInput\n              label=\"Current password\"\n              name=\"current\"\n              placeholder=\"Enter your current password\"\n            />\n            <UiVeePasswordInput\n              show-strength\n              label=\"New password\"\n              name=\"password\"\n              placeholder=\"Enter a new password\"\n              hint=\"At least 8 characters, with a number and a symbol.\"\n            />\n            <UiVeePasswordInput\n              label=\"Confirm new password\"\n              name=\"confirmPassword\"\n              placeholder=\"Repeat your new password\"\n            />\n            <UiVeeCheckbox label=\"Sign out of all other devices\" name=\"signOutOthers\" />\n            <div class=\"flex gap-2\">\n              <UiButton class=\"flex-1\" type=\"submit\">Update password</UiButton>\n              <UiButton type=\"button\" variant=\"outline\" @click=\"resetForm()\">Reset</UiButton>\n            </div>\n          </fieldset>\n        </form>\n      </div>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string, ref as yupRef } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Change password\",\n    description: \"Update the password for your account.\",\n  });\n\n  const saved = ref(false);\n\n  const ChangeSchema = object({\n    current: string().required().label(\"Current password\"),\n    password: string()\n      .required()\n      .label(\"New password\")\n      .min(8)\n      .matches(/[0-9]/, \"Password needs a number\")\n      .matches(/[^A-Za-z0-9]/, \"Password needs a special character\")\n      .notOneOf([yupRef(\"current\")], \"The new password must be different from the current one\"),\n    confirmPassword: string()\n      .required()\n      .label(\"Confirmation\")\n      .oneOf([yupRef(\"password\")], \"Passwords must match\"),\n    signOutOthers: boolean().default(false),\n  });\n\n  const { handleSubmit, isSubmitting, resetForm } = useForm<InferType<typeof ChangeSchema>>({\n    validationSchema: ChangeSchema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    saved.value = true;\n    useSonner.success(\"Password updated\", {\n      description: values.signOutOthers\n        ? \"You were signed out of your other devices.\"\n        : \"Your other devices stay signed in.\",\n    });\n    resetForm();\n  });\n</script>\n","category":"ResetPassword","description":"Change password while signed in. Features: Current, new and confirm password with show and hide toggles, a strength meter, a check that the new password is different from the current one, an option to sign out of other devices and a success message","path":"ResetPassword/BlockResetPasswordChange.vue","components":["alert","button","card","vee-checkbox","vee-password-input"]},{"name":"Reset Password Expired","fileName":"BlockResetPasswordExpired.vue","file":"<template>\n  <!--\n    Reset link expired\n    Features: A clear message that the link has expired or was already used, a form to request a new link, a confirmation with a resend cooldown after sending, a help link and a back to log in link\n  -->\n  <div class=\"bg-muted/30 flex min-h-screen items-center justify-center p-4\">\n    <UiCard class=\"w-full max-w-md shadow-sm\">\n      <div class=\"p-6 lg:p-8\">\n        <div class=\"mb-6 flex justify-center\">\n          <div class=\"flex size-14 items-center justify-center rounded-full bg-amber-500/10\">\n            <Icon\n              class=\"size-7 text-amber-600\"\n              :name=\"sent ? 'lucide:mail-check' : 'lucide:link-2-off'\"\n            />\n          </div>\n        </div>\n\n        <template v-if=\"!sent\">\n          <div class=\"mb-8 text-center\">\n            <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">This link has expired</h1>\n            <p class=\"text-muted-foreground text-sm\">\n              Reset links work for 24 hours and only once. Enter your email and we will send you a\n              new one.\n            </p>\n          </div>\n          <form @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput label=\"Email\" type=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n              <UiButton class=\"w-full\" size=\"lg\" type=\"submit\">Send a new link</UiButton>\n            </fieldset>\n          </form>\n        </template>\n\n        <div v-else class=\"text-center\" role=\"status\">\n          <h1 class=\"mb-2 text-2xl font-bold tracking-tight\">Check your inbox</h1>\n          <p class=\"text-muted-foreground text-sm\">\n            We sent a new reset link to\n            <span class=\"text-foreground font-medium\">{{ sentTo }}</span>.\n          </p>\n          <p class=\"text-muted-foreground mt-6 text-sm\">\n            Still nothing?\n            <button\n              type=\"button\"\n              class=\"text-foreground font-semibold underline-offset-4 enabled:hover:underline disabled:opacity-60\"\n              :disabled=\"cooldown > 0\"\n              @click=\"resend\"\n            >\n              {{ cooldown > 0 ? `Resend in ${cooldown}s` : \"Send it again\" }}\n            </button>\n          </p>\n        </div>\n\n        <p class=\"mt-8 text-center text-sm\">\n          <NuxtLink\n            class=\"text-muted-foreground hover:text-foreground inline-flex items-center gap-2 font-medium underline-offset-4 hover:underline\"\n            to=\"#\"\n          >\n            <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n            Back to log in\n          </NuxtLink>\n        </p>\n        <p class=\"text-muted-foreground mt-4 text-center text-xs\">\n          Need help?\n          <NuxtLink class=\"text-foreground font-medium underline underline-offset-4\" to=\"#\"\n            >Contact support</NuxtLink\n          >\n        </p>\n      </div>\n    </UiCard>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Reset link expired\",\n    description: \"Request a new password reset link.\",\n  });\n\n  const sent = ref(false);\n  const sentTo = ref(\"\");\n  const cooldown = ref(0);\n\n  const { pause, resume } = useIntervalFn(\n    () => {\n      if (cooldown.value > 0) cooldown.value--;\n      else pause();\n    },\n    1000,\n    { immediate: false }\n  );\n\n  const EmailSchema = object({\n    email: string().required().email().label(\"Email\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof EmailSchema>>({\n    validationSchema: EmailSchema,\n  });\n\n  const submit = handleSubmit(async (values) => {\n    sentTo.value = values.email;\n    sent.value = true;\n    cooldown.value = 30;\n    resume();\n  });\n\n  function resend() {\n    cooldown.value = 30;\n    resume();\n    useSonner.success(\"A new link is on its way\");\n  }\n</script>\n","category":"ResetPassword","description":"Reset link expired. Features: A clear message that the link has expired or was already used, a form to request a new link, a confirmation with a resend cooldown after sending, a help link and a back to log in link","path":"ResetPassword/BlockResetPasswordExpired.vue","components":["button","card","vee-input"]},{"name":"Reset Password Success","fileName":"BlockResetPasswordSuccess.vue","file":"<template>\n  <!--\n    Confirmation shown after a password is reset\n    Features: Success icon, short explanation, continue to log in button, centered card on a soft background\n  -->\n  <div class=\"bg-muted/30 flex min-h-screen items-center justify-center p-4\">\n    <UiCard class=\"w-full max-w-md shadow-sm\">\n      <div class=\"p-6 text-center lg:p-8\">\n        <div\n          class=\"mx-auto mb-6 flex size-14 items-center justify-center rounded-full bg-green-500/10\"\n        >\n          <Icon class=\"size-7 text-green-600\" name=\"lucide:circle-check\" />\n        </div>\n        <h1 class=\"text-2xl font-bold tracking-tight\">Password reset</h1>\n        <p class=\"text-muted-foreground mt-2 text-sm\">\n          Your password has been updated. You can now log in with your new password.\n        </p>\n        <UiButton class=\"mt-8 w-full\" size=\"lg\" to=\"#\">Continue to log in</UiButton>\n        <p class=\"text-muted-foreground mt-6 text-xs\">\n          Didn't make this change?\n          <NuxtLink class=\"text-foreground font-medium underline underline-offset-4\" to=\"#\">\n            Contact support\n          </NuxtLink>\n        </p>\n      </div>\n    </UiCard>\n  </div>\n</template>\n","category":"ResetPassword","description":"Confirmation shown after a password is reset. Features: Success icon, short explanation, continue to log in button, centered card on a soft background","path":"ResetPassword/BlockResetPasswordSuccess.vue","components":["button","card"]},{"name":"Roadmap 1","fileName":"BlockRoadmap1.vue","file":"<template>\n  <!--\n    Quarterly roadmap columns\n    Features: One column for each quarter with initiative cards, an area filter, a progress bar for work in flight, status badges, item counts in the column headings and a column for later ideas\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-wrap items-end justify-between gap-3\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">Roadmap</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          What we plan to build. Dates are goals, not promises.\n        </p>\n      </div>\n      <UiSelect v-model=\"area\">\n        <UiSelectTrigger class=\"w-44\" aria-label=\"Filter by area\"\n          ><UiSelectValue\n        /></UiSelectTrigger>\n        <UiSelectContent>\n          <UiSelectItem value=\"all\">All areas</UiSelectItem>\n          <UiSelectItem v-for=\"name in areas\" :key=\"name\" :value=\"name\">{{ name }}</UiSelectItem>\n        </UiSelectContent>\n      </UiSelect>\n    </div>\n\n    <div class=\"mt-8 grid items-start gap-5 md:grid-cols-2 xl:grid-cols-4\" aria-live=\"polite\">\n      <section\n        v-for=\"quarter in columns\"\n        :key=\"quarter.label\"\n        :aria-label=\"quarter.label\"\n        class=\"bg-muted/40 rounded-2xl p-3\"\n      >\n        <h2 class=\"flex items-center justify-between px-2 py-1.5 text-sm font-semibold\">\n          {{ quarter.label }}\n          <span\n            class=\"text-muted-foreground bg-background rounded-full border px-2 text-xs tabular-nums\"\n            >{{ quarter.items.length }}</span\n          >\n        </h2>\n        <ul class=\"mt-2 space-y-3\">\n          <li\n            v-for=\"item in quarter.items\"\n            :key=\"item.id\"\n            class=\"bg-card rounded-xl border p-4 shadow-xs\"\n          >\n            <div class=\"flex items-start justify-between gap-2\">\n              <p class=\"text-sm font-medium\">{{ item.title }}</p>\n              <UiBadge\n                variant=\"soft\"\n                shape=\"pill\"\n                :color=\"statusColor[item.status]\"\n                class=\"shrink-0\"\n                >{{ item.status }}</UiBadge\n              >\n            </div>\n            <p class=\"text-muted-foreground mt-1.5 text-sm\">{{ item.summary }}</p>\n            <UiProgress\n              v-if=\"item.progress !== undefined\"\n              :model-value=\"item.progress\"\n              class=\"mt-3 h-1.5\"\n              :aria-label=\"`${item.title} progress`\"\n            />\n            <p class=\"text-muted-foreground mt-3 text-xs\">{{ item.area }}</p>\n          </li>\n          <li\n            v-if=\"!quarter.items.length\"\n            class=\"text-muted-foreground px-2 py-6 text-center text-sm\"\n          >\n            Nothing here yet.\n          </li>\n        </ul>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"In progress\" | \"Planned\" | \"Exploring\";\n  type Item = {\n    id: string;\n    title: string;\n    summary: string;\n    area: string;\n    quarter: string;\n    status: Status;\n    progress?: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      quarters?: string[];\n      items?: Item[];\n    }>(),\n    {\n      quarters: () => [\"Q4 2026\", \"Q1 2027\", \"Q2 2027\", \"Later\"],\n      items: () => [\n        {\n          id: \"r1\",\n          title: \"Saved views\",\n          summary: \"Share filters with your team.\",\n          area: \"Dashboard\",\n          quarter: \"Q4 2026\",\n          status: \"In progress\",\n          progress: 80,\n        },\n        {\n          id: \"r2\",\n          title: \"Webhook retries\",\n          summary: \"Retry failed webhooks with backoff.\",\n          area: \"API\",\n          quarter: \"Q4 2026\",\n          status: \"In progress\",\n          progress: 45,\n        },\n        {\n          id: \"r3\",\n          title: \"Annual billing\",\n          summary: \"Yearly plans with a discount.\",\n          area: \"Billing\",\n          quarter: \"Q4 2026\",\n          status: \"Planned\",\n        },\n        {\n          id: \"r4\",\n          title: \"Mobile app\",\n          summary: \"A native app for iOS and Android.\",\n          area: \"Platform\",\n          quarter: \"Q1 2027\",\n          status: \"Planned\",\n        },\n        {\n          id: \"r5\",\n          title: \"Custom roles\",\n          summary: \"Fine grained permissions for teams.\",\n          area: \"Dashboard\",\n          quarter: \"Q1 2027\",\n          status: \"Planned\",\n        },\n        {\n          id: \"r6\",\n          title: \"GraphQL API\",\n          summary: \"A typed API next to REST.\",\n          area: \"API\",\n          quarter: \"Q2 2027\",\n          status: \"Exploring\",\n        },\n        {\n          id: \"r7\",\n          title: \"Usage based billing\",\n          summary: \"Pay for what you use.\",\n          area: \"Billing\",\n          quarter: \"Q2 2027\",\n          status: \"Exploring\",\n        },\n        {\n          id: \"r8\",\n          title: \"On premise option\",\n          summary: \"Run Acme in your own cloud.\",\n          area: \"Platform\",\n          quarter: \"Later\",\n          status: \"Exploring\",\n        },\n      ],\n    }\n  );\n\n  const area = ref(\"all\");\n  const areas = computed(() => [...new Set(props.items.map((item) => item.area))].sort());\n  const statusColor: Record<Status, string> = {\n    \"In progress\": \"blue\",\n    Planned: \"violet\",\n    Exploring: \"gray\",\n  };\n\n  const columns = computed(() =>\n    props.quarters.map((label) => ({\n      label,\n      items: props.items.filter(\n        (item) => item.quarter === label && (area.value === \"all\" || item.area === area.value)\n      ),\n    }))\n  );\n</script>\n","category":"Roadmap","description":"Quarterly roadmap columns. Features: One column for each quarter with initiative cards, an area filter, a progress bar for work in flight, status badges, item counts in the column headings and a column for later ideas","path":"Changelog/Roadmap/BlockRoadmap1.vue","components":["badge","container","progress","select"]},{"name":"Roadmap 2","fileName":"BlockRoadmap2.vue","file":"<template>\n  <!--\n    Roadmap timeline\n    Features: A month by month timeline with a bar for each initiative, rows grouped by team, a marker for today, bar colors for status, a legend and a table below that lists every item with its dates for screen readers\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-wrap items-end justify-between gap-3\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">Roadmap timeline</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          {{ monthLabel(months[0]!) }} to {{ monthLabel(months[months.length - 1]!) }}\n        </p>\n      </div>\n      <ul class=\"flex flex-wrap gap-3 text-xs\" aria-label=\"Legend\">\n        <li v-for=\"(color, status) in colors\" :key=\"status\" class=\"flex items-center gap-1.5\">\n          <span class=\"size-2.5 rounded-sm\" :class=\"color.bar\" />{{ status }}\n        </li>\n      </ul>\n    </div>\n\n    <div class=\"mt-6 overflow-x-auto rounded-xl border\">\n      <div class=\"min-w-[48rem]\">\n        <div\n          class=\"bg-muted/50 grid grid-cols-[9rem_repeat(6,minmax(0,1fr))] border-b text-xs font-medium\"\n          aria-hidden=\"true\"\n        >\n          <div class=\"px-3 py-2\">Team</div>\n          <div v-for=\"month in months\" :key=\"month\" class=\"border-l px-3 py-2\">\n            {{ monthLabel(month) }}\n          </div>\n        </div>\n        <div\n          v-for=\"team in teams\"\n          :key=\"team.name\"\n          class=\"grid grid-cols-[9rem_1fr] border-b last:border-b-0\"\n          aria-hidden=\"true\"\n        >\n          <div class=\"px-3 py-4 text-sm font-medium\">{{ team.name }}</div>\n          <div class=\"relative border-l\">\n            <div class=\"pointer-events-none absolute inset-0 grid grid-cols-6\">\n              <span v-for=\"month in months\" :key=\"month\" class=\"border-l first:border-l-0\" />\n            </div>\n            <span\n              v-if=\"todayPct !== null\"\n              class=\"bg-primary absolute inset-y-0 z-10 w-px\"\n              :style=\"{ left: `${todayPct}%` }\"\n            />\n            <div class=\"relative space-y-1.5 py-3\">\n              <div v-for=\"item in team.items\" :key=\"item.id\" class=\"relative h-7\">\n                <span\n                  class=\"absolute inset-y-0 flex items-center truncate rounded-md px-2 text-xs font-medium\"\n                  :class=\"colors[item.status].bar\"\n                  :style=\"place(item)\"\n                  :title=\"`${item.title}, ${item.start} to ${item.end}`\"\n                  >{{ item.title }}</span\n                >\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n\n    <div class=\"sr-only\">\n      <table>\n        <caption>\n          Roadmap items\n        </caption>\n        <thead>\n          <tr>\n            <th>Item</th>\n            <th>Team</th>\n            <th>Status</th>\n            <th>Start</th>\n            <th>End</th>\n          </tr>\n        </thead>\n        <tbody>\n          <tr v-for=\"item in items\" :key=\"item.id\">\n            <td>{{ item.title }}</td>\n            <td>{{ item.team }}</td>\n            <td>{{ item.status }}</td>\n            <td>{{ item.start }}</td>\n            <td>{{ item.end }}</td>\n          </tr>\n        </tbody>\n      </table>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"Done\" | \"In progress\" | \"Planned\";\n  type Item = {\n    id: string;\n    title: string;\n    team: string;\n    status: Status;\n    start: string;\n    end: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      /** First month of the timeline as `YYYY-MM`. */\n      from?: string;\n      items?: Item[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      from: \"2026-08\",\n      items: () => [\n        {\n          id: \"m1\",\n          title: \"CSV import\",\n          team: \"Product\",\n          status: \"Done\",\n          start: \"2026-08-03\",\n          end: \"2026-08-21\",\n        },\n        {\n          id: \"m2\",\n          title: \"Team workspaces\",\n          team: \"Product\",\n          status: \"Done\",\n          start: \"2026-08-24\",\n          end: \"2026-09-18\",\n        },\n        {\n          id: \"m3\",\n          title: \"Saved views\",\n          team: \"Product\",\n          status: \"In progress\",\n          start: \"2026-09-21\",\n          end: \"2026-10-30\",\n        },\n        {\n          id: \"m4\",\n          title: \"Custom roles\",\n          team: \"Product\",\n          status: \"Planned\",\n          start: \"2026-11-09\",\n          end: \"2026-12-18\",\n        },\n        {\n          id: \"m5\",\n          title: \"Rate limit headers\",\n          team: \"Platform\",\n          status: \"Done\",\n          start: \"2026-09-01\",\n          end: \"2026-09-26\",\n        },\n        {\n          id: \"m6\",\n          title: \"Webhook retries\",\n          team: \"Platform\",\n          status: \"In progress\",\n          start: \"2026-10-05\",\n          end: \"2026-11-13\",\n        },\n        {\n          id: \"m7\",\n          title: \"GraphQL API\",\n          team: \"Platform\",\n          status: \"Planned\",\n          start: \"2026-11-16\",\n          end: \"2027-01-22\",\n        },\n        {\n          id: \"m8\",\n          title: \"Annual billing\",\n          team: \"Growth\",\n          status: \"In progress\",\n          start: \"2026-09-28\",\n          end: \"2026-10-23\",\n        },\n        {\n          id: \"m9\",\n          title: \"Referral program\",\n          team: \"Growth\",\n          status: \"Planned\",\n          start: \"2026-11-02\",\n          end: \"2027-01-08\",\n        },\n      ],\n    }\n  );\n\n  const colors: Record<Status, { bar: string }> = {\n    Done: { bar: \"bg-green-200 text-green-900 dark:bg-green-500/30 dark:text-green-200\" },\n    \"In progress\": { bar: \"bg-blue-200 text-blue-900 dark:bg-blue-500/30 dark:text-blue-200\" },\n    Planned: { bar: \"bg-violet-200 text-violet-900 dark:bg-violet-500/30 dark:text-violet-200\" },\n  };\n\n  const months = computed(() =>\n    Array.from({ length: 6 }, (_, index) => {\n      const date = new Date(`${props.from}-01T00:00:00Z`);\n      date.setUTCMonth(date.getUTCMonth() + index);\n      return date.toISOString().slice(0, 7);\n    })\n  );\n  const start = computed(() => new Date(`${months.value[0]}-01T00:00:00Z`).getTime());\n  const end = computed(() => {\n    const date = new Date(`${months.value[months.value.length - 1]}-01T00:00:00Z`);\n    date.setUTCMonth(date.getUTCMonth() + 1);\n    return date.getTime();\n  });\n  const pct = (iso: string) =>\n    ((new Date(`${iso}T00:00:00Z`).getTime() - start.value) / (end.value - start.value)) * 100;\n\n  const teams = computed(() =>\n    [...new Set(props.items.map((item) => item.team))].map((name) => ({\n      name,\n      items: props.items.filter((item) => item.team === name),\n    }))\n  );\n  const todayPct = computed(() => {\n    const value = pct(props.today);\n    return value >= 0 && value <= 100 ? value : null;\n  });\n\n  function place(item: Item) {\n    const left = Math.max(0, pct(item.start));\n    const right = Math.min(100, pct(item.end));\n    return { left: `${left}%`, width: `${Math.max(right - left, 2)}%` };\n  }\n\n  const monthLabel = (month: string) =>\n    new Date(`${month}-01T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"Roadmap","description":"Roadmap timeline. Features: A month by month timeline with a bar for each initiative, rows grouped by team, a marker for today, bar colors for status, a legend and a table below that lists every item with its dates for screen readers","path":"Changelog/Roadmap/BlockRoadmap2.vue","components":["container"]},{"name":"Roadmap 3","fileName":"BlockRoadmap3.vue","file":"<template>\n  <!--\n    Roadmap status board\n    Features: Planned, in progress and shipped columns with counts, cards with an area tag and a vote count, an area filter built from toggle chips, shipped dates and a link to the changelog entry\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-wrap items-end justify-between gap-3\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Product roadmap</h1>\n      <UiToggleGroup\n        :model-value=\"area\"\n        type=\"single\"\n        variant=\"outline\"\n        size=\"sm\"\n        aria-label=\"Filter by area\"\n        @update:model-value=\"(value) => (area = (value as string) || 'all')\"\n      >\n        <UiToggleGroupItem\n          v-for=\"name in ['all', ...areas]\"\n          :key=\"name\"\n          :value=\"name\"\n          class=\"capitalize\"\n          >{{ name }}</UiToggleGroupItem\n        >\n      </UiToggleGroup>\n    </div>\n\n    <div class=\"mt-8 grid items-start gap-5 md:grid-cols-3\" aria-live=\"polite\">\n      <section v-for=\"column in columns\" :key=\"column.status\" :aria-label=\"column.status\">\n        <h2 class=\"mb-3 flex items-center gap-2 text-sm font-semibold\">\n          <span class=\"size-2.5 rounded-full\" :class=\"column.dot\" />\n          {{ column.status }}\n          <span class=\"text-muted-foreground font-normal tabular-nums\">{{\n            column.items.length\n          }}</span>\n        </h2>\n        <ul class=\"space-y-3\">\n          <li v-for=\"item in column.items\" :key=\"item.id\" class=\"bg-card rounded-xl border p-4\">\n            <p class=\"text-sm font-medium\">{{ item.title }}</p>\n            <p class=\"text-muted-foreground mt-1 text-sm\">{{ item.summary }}</p>\n            <div class=\"mt-3 flex items-center justify-between gap-2 text-xs\">\n              <UiBadge variant=\"soft\" shape=\"pill\">{{ item.area }}</UiBadge>\n              <span v-if=\"item.shipped\" class=\"text-muted-foreground\"\n                >Shipped {{ shortDate(item.shipped) }}</span\n              >\n              <span v-else class=\"text-muted-foreground flex items-center gap-1\"\n                ><Icon name=\"lucide:arrow-big-up\" class=\"size-3.5\" />{{ item.votes }}</span\n              >\n            </div>\n            <UiButton\n              v-if=\"item.shipped\"\n              variant=\"link\"\n              size=\"sm\"\n              class=\"mt-1 h-auto p-0 text-xs\"\n              @click=\"useSonner.info(`Open the changelog entry for ${item.title}`)\"\n              >Read the release notes</UiButton\n            >\n          </li>\n          <li\n            v-if=\"!column.items.length\"\n            class=\"text-muted-foreground rounded-xl border border-dashed py-8 text-center text-sm\"\n          >\n            Nothing in this column.\n          </li>\n        </ul>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"Planned\" | \"In progress\" | \"Shipped\";\n  type Item = {\n    id: string;\n    title: string;\n    summary: string;\n    area: string;\n    status: Status;\n    votes: number;\n    shipped?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Item[];\n    }>(),\n    {\n      items: () => [\n        {\n          id: \"b1\",\n          title: \"Custom roles\",\n          summary: \"Fine grained permissions for teams.\",\n          area: \"dashboard\",\n          status: \"Planned\",\n          votes: 214,\n        },\n        {\n          id: \"b2\",\n          title: \"Mobile app\",\n          summary: \"Native apps for iOS and Android.\",\n          area: \"platform\",\n          status: \"Planned\",\n          votes: 388,\n        },\n        {\n          id: \"b3\",\n          title: \"GraphQL API\",\n          summary: \"A typed API next to REST.\",\n          area: \"api\",\n          status: \"Planned\",\n          votes: 97,\n        },\n        {\n          id: \"b4\",\n          title: \"Saved views\",\n          summary: \"Share filters with your team.\",\n          area: \"dashboard\",\n          status: \"In progress\",\n          votes: 301,\n        },\n        {\n          id: \"b5\",\n          title: \"Webhook retries\",\n          summary: \"Retry failed webhooks with backoff.\",\n          area: \"api\",\n          status: \"In progress\",\n          votes: 142,\n        },\n        {\n          id: \"b6\",\n          title: \"Team workspaces\",\n          summary: \"Invite people and give them a role.\",\n          area: \"dashboard\",\n          status: \"Shipped\",\n          votes: 420,\n          shipped: \"2026-09-18\",\n        },\n        {\n          id: \"b7\",\n          title: \"CSV import\",\n          summary: \"Import with column matching.\",\n          area: \"platform\",\n          status: \"Shipped\",\n          votes: 266,\n          shipped: \"2026-08-21\",\n        },\n      ],\n    }\n  );\n\n  const area = ref(\"all\");\n  const areas = computed(() => [...new Set(props.items.map((item) => item.area))].sort());\n  const dots: Record<Status, string> = {\n    Planned: \"bg-violet-500\",\n    \"In progress\": \"bg-blue-500\",\n    Shipped: \"bg-green-500\",\n  };\n\n  const columns = computed(() =>\n    ([\"Planned\", \"In progress\", \"Shipped\"] as Status[]).map((status) => ({\n      status,\n      dot: dots[status],\n      items: props.items.filter(\n        (item) => item.status === status && (area.value === \"all\" || item.area === area.value)\n      ),\n    }))\n  );\n\n  const shortDate = (iso: string) =>\n    new Date(`${iso}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n</script>\n","category":"Roadmap","description":"Roadmap status board. Features: Planned, in progress and shipped columns with counts, cards with an area tag and a vote count, an area filter built from toggle chips, shipped dates and a link to the changelog entry","path":"Changelog/Roadmap/BlockRoadmap3.vue","components":["badge","button","container","toggle-group"]},{"name":"Roadmap 4","fileName":"BlockRoadmap4.vue","file":"<template>\n  <!--\n    Feature voting list\n    Features: Ideas sorted by votes or newest, a vote button that toggles with a live count, status badges, search, a form to suggest a new idea that starts with your vote and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Vote on what we build next</h1>\n      <p class=\"text-muted-foreground mt-2\">Upvote the ideas you want. We read every one.</p>\n\n      <form class=\"mt-6 flex gap-2\" novalidate @submit.prevent=\"suggest\">\n        <UiInput\n          v-model=\"draft\"\n          placeholder=\"Suggest an idea\"\n          aria-label=\"Suggest an idea\"\n          :aria-invalid=\"!!error\"\n        />\n        <UiButton type=\"submit\">Suggest</UiButton>\n      </form>\n      <p v-if=\"error\" class=\"text-destructive mt-1.5 text-sm\">{{ error }}</p>\n\n      <div class=\"mt-6 grid gap-3 sm:grid-cols-[1fr_auto]\">\n        <div class=\"relative\">\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            v-model=\"query\"\n            class=\"pl-9\"\n            placeholder=\"Search ideas\"\n            aria-label=\"Search ideas\"\n          />\n        </div>\n        <UiSelect v-model=\"sort\">\n          <UiSelectTrigger class=\"sm:w-40\" aria-label=\"Sort ideas\"\n            ><UiSelectValue\n          /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"votes\">Most votes</UiSelectItem>\n            <UiSelectItem value=\"new\">Newest</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n\n      <ul v-if=\"visible.length\" class=\"mt-4 divide-y rounded-xl border\" aria-live=\"polite\">\n        <li v-for=\"idea in visible\" :key=\"idea.id\" class=\"flex items-start gap-4 px-4 py-4\">\n          <UiButton\n            variant=\"outline\"\n            class=\"h-auto w-14 shrink-0 flex-col gap-0 py-2\"\n            :class=\"idea.voted ? 'border-primary bg-primary/5' : ''\"\n            :aria-pressed=\"idea.voted\"\n            :aria-label=\"`${idea.voted ? 'Remove your vote from' : 'Vote for'} ${idea.title}, ${idea.votes} votes`\"\n            @click=\"vote(idea)\"\n          >\n            <Icon name=\"lucide:chevron-up\" class=\"size-4\" />\n            <span class=\"text-sm font-semibold tabular-nums\">{{ idea.votes }}</span>\n          </UiButton>\n          <div class=\"min-w-0 flex-1\">\n            <div class=\"flex flex-wrap items-center gap-2\">\n              <p class=\"font-medium\">{{ idea.title }}</p>\n              <UiBadge\n                v-if=\"idea.status\"\n                variant=\"soft\"\n                shape=\"pill\"\n                :color=\"statusColor[idea.status]\"\n                >{{ idea.status }}</UiBadge\n              >\n            </div>\n            <p class=\"text-muted-foreground mt-1 text-sm\">{{ idea.body }}</p>\n          </div>\n        </li>\n      </ul>\n      <div\n        v-else\n        class=\"text-muted-foreground mt-4 rounded-xl border border-dashed py-12 text-center text-sm\"\n        aria-live=\"polite\"\n      >\n        No ideas match. Be the first to suggest it.\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"Planned\" | \"Under review\" | \"In progress\";\n  type Idea = {\n    id: string;\n    title: string;\n    body: string;\n    votes: number;\n    voted?: boolean;\n    status?: Status;\n    order: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      ideas?: Idea[];\n    }>(),\n    {\n      ideas: () => [\n        {\n          id: \"v1\",\n          title: \"Dark mode for the mobile site\",\n          body: \"Match the system setting automatically.\",\n          votes: 412,\n          status: \"Planned\",\n          order: 1,\n        },\n        {\n          id: \"v2\",\n          title: \"Bulk edit for tables\",\n          body: \"Select rows and change a field for all of them.\",\n          votes: 286,\n          status: \"In progress\",\n          order: 2,\n        },\n        {\n          id: \"v3\",\n          title: \"Slack integration\",\n          body: \"Post weekly summaries and alerts to a channel.\",\n          votes: 241,\n          status: \"Under review\",\n          order: 3,\n        },\n        {\n          id: \"v4\",\n          title: \"Custom domains for share links\",\n          body: \"Use our own domain for public pages.\",\n          votes: 175,\n          order: 4,\n        },\n        {\n          id: \"v5\",\n          title: \"Keyboard navigation in the editor\",\n          body: \"Move between blocks without the mouse.\",\n          votes: 98,\n          order: 5,\n        },\n      ],\n    }\n  );\n\n  const statusColor: Record<Status, string> = {\n    Planned: \"violet\",\n    \"Under review\": \"gray\",\n    \"In progress\": \"blue\",\n  };\n  const ideas = ref<Idea[]>(props.ideas.map((idea) => ({ ...idea, voted: idea.voted ?? false })));\n  const query = ref(\"\");\n  const sort = ref(\"votes\");\n  const draft = ref(\"\");\n  const error = ref(\"\");\n\n  const visible = computed(() => {\n    const text = query.value.trim().toLowerCase();\n    return ideas.value\n      .filter((idea) => !text || `${idea.title} ${idea.body}`.toLowerCase().includes(text))\n      .sort((a, b) => (sort.value === \"votes\" ? b.votes - a.votes : b.order - a.order));\n  });\n\n  function vote(idea: Idea) {\n    idea.voted = !idea.voted;\n    idea.votes += idea.voted ? 1 : -1;\n  }\n\n  function suggest() {\n    const title = draft.value.trim();\n    if (title.length < 4) {\n      error.value = \"Describe the idea in at least 4 characters.\";\n      return;\n    }\n    if (ideas.value.some((idea) => idea.title.toLowerCase() === title.toLowerCase())) {\n      error.value = \"Someone already suggested this. Vote for it instead.\";\n      return;\n    }\n    error.value = \"\";\n    ideas.value.push({\n      id: `new-${ideas.value.length}`,\n      title,\n      body: \"Suggested by you.\",\n      votes: 1,\n      voted: true,\n      status: \"Under review\",\n      order: ideas.value.length + 1,\n    });\n    draft.value = \"\";\n  }\n</script>\n","category":"Roadmap","description":"Feature voting list. Features: Ideas sorted by votes or newest, a vote button that toggles with a live count, status badges, search, a form to suggest a new idea that starts with your vote and an empty state","path":"Changelog/Roadmap/BlockRoadmap4.vue","components":["badge","button","container","input","select"]},{"name":"Roadmap 5","fileName":"BlockRoadmap5.vue","file":"<template>\n  <!--\n    Now, next and later roadmap\n    Features: Three columns that explain what is being built now, what is next and what is later, items with a follow toggle that shows a bell, an introduction for each column and a note that plans can change\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-5xl\">\n      <div class=\"text-center\">\n        <h1 class=\"text-3xl font-bold tracking-tight\">What we are working on</h1>\n        <p class=\"text-muted-foreground mx-auto mt-2 max-w-xl\">\n          Follow an item to get an email when it moves to the next column.\n        </p>\n      </div>\n\n      <div class=\"mt-10 grid gap-6 md:grid-cols-3\">\n        <section\n          v-for=\"column in columns\"\n          :key=\"column.key\"\n          :aria-label=\"column.title\"\n          class=\"rounded-2xl border p-5\"\n        >\n          <div class=\"flex items-center gap-2\">\n            <span class=\"grid size-8 place-items-center rounded-lg\" :class=\"column.tint\"\n              ><Icon :name=\"column.icon\" class=\"size-4\"\n            /></span>\n            <h2 class=\"text-lg font-semibold\">{{ column.title }}</h2>\n          </div>\n          <p class=\"text-muted-foreground mt-2 text-sm\">{{ column.intro }}</p>\n          <ul class=\"mt-4 space-y-3\">\n            <li\n              v-for=\"item in column.items\"\n              :key=\"item.id\"\n              class=\"flex items-start gap-2 rounded-xl border p-3\"\n            >\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"text-sm font-medium\">{{ item.title }}</p>\n                <p class=\"text-muted-foreground mt-0.5 text-xs\">{{ item.detail }}</p>\n              </div>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"size-7 shrink-0\"\n                :aria-pressed=\"following.has(item.id)\"\n                :aria-label=\"`${following.has(item.id) ? 'Unfollow' : 'Follow'} ${item.title}`\"\n                @click=\"toggle(item)\"\n                ><Icon\n                  :name=\"following.has(item.id) ? 'lucide:bell-ring' : 'lucide:bell'\"\n                  class=\"size-4\"\n                  :class=\"following.has(item.id) ? 'text-primary' : ''\"\n              /></UiButton>\n            </li>\n          </ul>\n        </section>\n      </div>\n      <p class=\"text-muted-foreground mt-8 text-center text-sm\" aria-live=\"polite\">\n        {{\n          following.size\n            ? `You follow ${following.size} ${following.size === 1 ? \"item\" : \"items\"}.`\n            : \"Plans can change as we learn from you.\"\n        }}\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = { id: string; title: string; detail: string; column: \"now\" | \"next\" | \"later\" };\n\n  const props = withDefaults(\n    defineProps<{\n      items?: Item[];\n    }>(),\n    {\n      items: () => [\n        { id: \"n1\", title: \"Saved views\", detail: \"Share filters with your team.\", column: \"now\" },\n        {\n          id: \"n2\",\n          title: \"Webhook retries\",\n          detail: \"Retry failed webhooks with backoff.\",\n          column: \"now\",\n        },\n        { id: \"x1\", title: \"Custom roles\", detail: \"Fine grained permissions.\", column: \"next\" },\n        {\n          id: \"x2\",\n          title: \"Mobile app\",\n          detail: \"Native apps for iOS and Android.\",\n          column: \"next\",\n        },\n        {\n          id: \"x3\",\n          title: \"Annual billing\",\n          detail: \"Yearly plans with a discount.\",\n          column: \"next\",\n        },\n        { id: \"l1\", title: \"GraphQL API\", detail: \"A typed API next to REST.\", column: \"later\" },\n        {\n          id: \"l2\",\n          title: \"On premise option\",\n          detail: \"Run Acme in your own cloud.\",\n          column: \"later\",\n        },\n      ],\n    }\n  );\n\n  const following = ref(new Set<string>([\"x2\"]));\n\n  const columns = computed(() => [\n    {\n      key: \"now\",\n      title: \"Now\",\n      icon: \"lucide:hammer\",\n      tint: \"bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300\",\n      intro: \"In active development. Most of these ship this quarter.\",\n      items: props.items.filter((item) => item.column === \"now\"),\n    },\n    {\n      key: \"next\",\n      title: \"Next\",\n      icon: \"lucide:calendar-clock\",\n      tint: \"bg-violet-100 text-violet-700 dark:bg-violet-500/20 dark:text-violet-300\",\n      intro: \"Designed and waiting for the team to be free.\",\n      items: props.items.filter((item) => item.column === \"next\"),\n    },\n    {\n      key: \"later\",\n      title: \"Later\",\n      icon: \"lucide:telescope\",\n      tint: \"bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300\",\n      intro: \"Ideas we are exploring. No dates yet.\",\n      items: props.items.filter((item) => item.column === \"later\"),\n    },\n  ]);\n\n  function toggle(item: Item) {\n    const next = new Set(following.value);\n    if (next.has(item.id)) next.delete(item.id);\n    else next.add(item.id);\n    following.value = next;\n    if (next.has(item.id)) useSonner.success(`You will get an email about ${item.title}`);\n  }\n</script>\n","category":"Roadmap","description":"Now, next and later roadmap. Features: Three columns that explain what is being built now, what is next and what is later, items with a follow toggle that shows a bell, an introduction for each column and a note that plans can change","path":"Changelog/Roadmap/BlockRoadmap5.vue","components":["button","container"]},{"name":"Roadmap 6","fileName":"BlockRoadmap6.vue","file":"<template>\n  <!--\n    Feature request cards\n    Features: A grid of request cards with the author, a status, vote and comment counts, an expand button for the full description, a request a feature dialog with validation and a category select, and a new request that appears at the top as under review\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-4xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-3xl font-bold tracking-tight\">Feature requests</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\" aria-live=\"polite\">\n            {{ requests.length }} requests\n          </p>\n        </div>\n        <UiDialog v-model:open=\"open\">\n          <UiDialogTrigger as-child>\n            <UiButton><Icon name=\"lucide:lightbulb\" class=\"size-4\" />Request a feature</UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent class=\"sm:max-w-md\">\n            <UiDialogHeader>\n              <UiDialogTitle>Request a feature</UiDialogTitle>\n              <UiDialogDescription\n                >Tell us what is missing and why you need it.</UiDialogDescription\n              >\n            </UiDialogHeader>\n            <form class=\"grid gap-4\" novalidate @submit.prevent=\"submit\">\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"request-title\">Title</UiLabel>\n                <UiInput id=\"request-title\" v-model=\"form.title\" :aria-invalid=\"!!errors.title\" />\n                <p v-if=\"errors.title\" class=\"text-destructive text-sm\">{{ errors.title }}</p>\n              </div>\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"request-category\">Category</UiLabel>\n                <UiSelect v-model=\"form.category\">\n                  <UiSelectTrigger id=\"request-category\"><UiSelectValue /></UiSelectTrigger>\n                  <UiSelectContent>\n                    <UiSelectItem v-for=\"name in categories\" :key=\"name\" :value=\"name\">{{\n                      name\n                    }}</UiSelectItem>\n                  </UiSelectContent>\n                </UiSelect>\n              </div>\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"request-body\">Details</UiLabel>\n                <UiTextarea\n                  id=\"request-body\"\n                  v-model=\"form.body\"\n                  :rows=\"4\"\n                  :aria-invalid=\"!!errors.body\"\n                />\n                <p v-if=\"errors.body\" class=\"text-destructive text-sm\">{{ errors.body }}</p>\n              </div>\n              <UiDialogFooter>\n                <UiButton type=\"button\" variant=\"outline\" @click=\"open = false\">Cancel</UiButton>\n                <UiButton type=\"submit\">Send request</UiButton>\n              </UiDialogFooter>\n            </form>\n          </UiDialogContent>\n        </UiDialog>\n      </div>\n\n      <ul class=\"mt-8 grid items-start gap-4 md:grid-cols-2\" aria-live=\"polite\">\n        <li v-for=\"request in requests\" :key=\"request.id\">\n          <UiCard class=\"gap-3\">\n            <UiCardHeader>\n              <div class=\"flex items-start justify-between gap-3\">\n                <UiCardTitle class=\"text-base leading-snug\">{{ request.title }}</UiCardTitle>\n                <UiBadge\n                  variant=\"soft\"\n                  shape=\"pill\"\n                  :color=\"statusColor[request.status]\"\n                  class=\"shrink-0\"\n                  >{{ request.status }}</UiBadge\n                >\n              </div>\n              <UiCardDescription>{{ request.category }}</UiCardDescription>\n            </UiCardHeader>\n            <UiCardContent class=\"space-y-3\">\n              <p class=\"text-sm\" :class=\"expanded.has(request.id) ? '' : 'line-clamp-2'\">\n                {{ request.body }}\n              </p>\n              <UiButton\n                variant=\"link\"\n                size=\"sm\"\n                class=\"h-auto p-0 text-xs\"\n                :aria-expanded=\"expanded.has(request.id)\"\n                @click=\"toggle(request.id)\"\n              >\n                {{ expanded.has(request.id) ? \"Show less\" : \"Read more\" }}\n              </UiButton>\n            </UiCardContent>\n            <UiCardFooter class=\"justify-between border-t\">\n              <span class=\"flex items-center gap-2 text-xs\">\n                <UiAvatar\n                  :src=\"`https://i.pravatar.cc/80?img=${request.avatar}`\"\n                  :fallback=\"request.author.slice(0, 1)\"\n                  class=\"size-6\"\n                />\n                {{ request.author }}\n              </span>\n              <span class=\"text-muted-foreground flex items-center gap-3 text-xs\">\n                <button\n                  type=\"button\"\n                  class=\"hover:text-foreground flex items-center gap-1\"\n                  :aria-pressed=\"request.voted\"\n                  :aria-label=\"`${request.voted ? 'Remove vote from' : 'Vote for'} ${request.title}, ${request.votes} votes`\"\n                  @click=\"vote(request)\"\n                >\n                  <Icon\n                    name=\"lucide:arrow-big-up\"\n                    class=\"size-4\"\n                    :class=\"request.voted ? '[&_path]:fill-current' : ''\"\n                  />{{ request.votes }}\n                </button>\n                <span class=\"flex items-center gap-1\"\n                  ><Icon name=\"lucide:message-circle\" class=\"size-4\" />{{ request.comments }}</span\n                >\n              </span>\n            </UiCardFooter>\n          </UiCard>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"Under review\" | \"Planned\" | \"In progress\";\n  type Request = {\n    id: string;\n    title: string;\n    category: string;\n    body: string;\n    author: string;\n    avatar: number;\n    votes: number;\n    comments: number;\n    status: Status;\n    voted?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      requests?: Request[];\n    }>(),\n    {\n      requests: () => [\n        {\n          id: \"q1\",\n          title: \"Dark mode for the mobile site\",\n          category: \"Design\",\n          body: \"I use the app at night and the white background is hard on the eyes. It would be great if it followed the system setting, with a manual switch in the profile menu too.\",\n          author: \"Maya Patel\",\n          avatar: 32,\n          votes: 412,\n          comments: 31,\n          status: \"Planned\",\n        },\n        {\n          id: \"q2\",\n          title: \"Bulk edit for tables\",\n          category: \"Productivity\",\n          body: \"Select a few rows and change a field for all of them at once. Right now I do it one by one for hundreds of records.\",\n          author: \"Leo Fischer\",\n          avatar: 12,\n          votes: 286,\n          comments: 18,\n          status: \"In progress\",\n        },\n        {\n          id: \"q3\",\n          title: \"Slack integration\",\n          category: \"Integrations\",\n          body: \"Post weekly summaries and alerts to a channel so the team does not need to open the dashboard.\",\n          author: \"Sofia Alvarez\",\n          avatar: 45,\n          votes: 241,\n          comments: 9,\n          status: \"Under review\",\n        },\n        {\n          id: \"q4\",\n          title: \"Export to PDF\",\n          category: \"Reports\",\n          body: \"Reports should export to a clean PDF with our logo for the board.\",\n          author: \"Noah Kim\",\n          avatar: 15,\n          votes: 120,\n          comments: 6,\n          status: \"Under review\",\n        },\n      ],\n    }\n  );\n\n  const categories = [\"Design\", \"Productivity\", \"Integrations\", \"Reports\", \"Other\"];\n  const statusColor: Record<Status, string> = {\n    \"Under review\": \"gray\",\n    Planned: \"violet\",\n    \"In progress\": \"blue\",\n  };\n\n  const requests = ref<Request[]>(\n    props.requests.map((request) => ({ ...request, voted: request.voted ?? false }))\n  );\n  const expanded = ref(new Set<string>());\n  const open = ref(false);\n  const form = reactive({ title: \"\", category: \"Other\", body: \"\" });\n  const errors = reactive({ title: \"\", body: \"\" });\n\n  function toggle(id: string) {\n    const next = new Set(expanded.value);\n    if (next.has(id)) next.delete(id);\n    else next.add(id);\n    expanded.value = next;\n  }\n\n  function vote(request: Request) {\n    request.voted = !request.voted;\n    request.votes += request.voted ? 1 : -1;\n  }\n\n  function submit() {\n    errors.title =\n      form.title.trim().length >= 4 ? \"\" : \"Give the request a title of at least 4 characters.\";\n    errors.body = form.body.trim().length >= 10 ? \"\" : \"Add a few words about why you need it.\";\n    if (errors.title || errors.body) return;\n    requests.value.unshift({\n      id: `new-${requests.value.length}`,\n      title: form.title.trim(),\n      category: form.category,\n      body: form.body.trim(),\n      author: \"You\",\n      avatar: 32,\n      votes: 1,\n      comments: 0,\n      status: \"Under review\",\n      voted: true,\n    });\n    Object.assign(form, { title: \"\", category: \"Other\", body: \"\" });\n    open.value = false;\n    useSonner.success(\"Thanks, your request was sent\");\n  }\n</script>\n","category":"Roadmap","description":"Feature request cards. Features: A grid of request cards with the author, a status, vote and comment counts, an expand button for the full description, a request a feature dialog with validation and a category select, and a new request that appears at the top as under review","path":"Changelog/Roadmap/BlockRoadmap6.vue","components":["avatar","badge","button","card","container","dialog","input","label","select","textarea"]},{"name":"Blog Section 1","fileName":"BlockBlogSection1.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <div class=\"flex flex-col md:flex-row md:justify-between\">\n        <div class=\"flex flex-col gap-3\">\n          <Motion as=\"p\" :variants=\"textVariant\" class=\"text-primary font-semibold\"\n            >Our blog</Motion\n          >\n          <Motion as=\"h3\" :variants=\"textVariant\" class=\"text-3xl font-semibold lg:text-4xl\"\n            >Our latest blog posts</Motion\n          >\n          <Motion as=\"p\" :variants=\"textVariant\" class=\"text-muted-foreground text-lg lg:text-xl\">\n            Tool and strategies modern teams need to help their companies grow.\n          </Motion>\n        </div>\n        <Motion :variants=\"textVariant\">\n          <UiButton class=\"hidden shrink-0 whitespace-nowrap md:flex\">View all posts</UiButton>\n        </Motion>\n      </div>\n\n      <div class=\"mt-12 grid grid-cols-1 gap-10 lg:mt-16 lg:grid-cols-3\">\n        <Motion\n          v-for=\"item in 3\"\n          :key=\"item\"\n          :variants=\"textVariant\"\n          :transition=\"{\n            delay: item * 0.1,\n          }\"\n        >\n          <Motion\n            as-child\n            :variants=\"{\n              initial: { opacity: 0, y: 10, scale: 0.95 },\n              animate: {\n                opacity: 1,\n                y: 0,\n                scale: 1,\n                transition: { duration: 0.4, ease: 'easeOut' },\n              },\n            }\"\n            class=\"block\"\n          >\n            <NuxtLink :to=\"link\">\n              <img\n                v-if=\"image\"\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"mb-5 h-[240px] w-full rounded-lg object-cover shadow\"\n              />\n            </NuxtLink>\n          </Motion>\n          <Motion\n            v-if=\"headline\"\n            :variants=\"{\n              initial: { opacity: 0, y: 10 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n            as=\"p\"\n            class=\"text-primary mb-2 text-sm font-semibold\"\n            >{{ headline }}</Motion\n          >\n          <NuxtLink :to=\"link\">\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0, y: 10 },\n                animate: { opacity: 1, y: 0 },\n              }\"\n              as=\"p\"\n              class=\"mb-2 text-xl font-semibold lg:text-2xl\"\n              >{{ title }}</Motion\n            >\n          </NuxtLink>\n          <Motion\n            v-if=\"description\"\n            as=\"p\"\n            :variants=\"{\n              initial: { opacity: 0, y: 10 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n            class=\"text-muted-foreground mb-5 line-clamp-2 text-ellipsis\"\n          >\n            {{ description }}\n          </Motion>\n          <div class=\"flex items-center\">\n            <Motion\n              v-if=\"userImage\"\n              :variants=\"{\n                initial: { opacity: 0, scale: 0.8 },\n                animate: { opacity: 1, scale: 1 },\n              }\"\n              as-child\n            >\n              <UiAvatar\n                :src=\"userImage\"\n                :alt=\"userName\"\n                class=\"bg-background ring-ring/30 mr-3 rounded-full shadow ring-1\"\n              />\n            </Motion>\n            <div>\n              <Motion\n                v-if=\"userName\"\n                :variants=\"{\n                  initial: { opacity: 0, x: 10 },\n                  animate: { opacity: 1, x: 0 },\n                }\"\n                as=\"p\"\n                class=\"text-sm font-semibold\"\n                >{{ userName }}</Motion\n              >\n              <Motion\n                v-if=\"date\"\n                :variants=\"{\n                  initial: { opacity: 0, x: 10 },\n                  animate: { opacity: 1, x: 0 },\n                }\"\n                as=\"p\"\n                class=\"text-muted-foreground text-sm\"\n                >{{ date }}</Motion\n              >\n            </div>\n          </div>\n        </Motion>\n      </div>\n      <Motion as-child :variants=\"textVariant\">\n        <UiButton class=\"mt-10 w-full shrink-0 whitespace-nowrap md:hidden\"\n          >View all posts</UiButton\n        >\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  /** This blog section is using the cards from BlockBlogPostCard1.vue and rendering them in a loop. */\n  import { stagger } from \"motion-v\";\n\n  const textVariant = {\n    initial: { opacity: 0, y: 10 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.15),\n      },\n    },\n  };\n\n  withDefaults(\n    defineProps<{\n      image?: string;\n      alt?: string;\n      headline?: string;\n      description?: string;\n      title?: string;\n      userImage?: string;\n      userName?: string;\n      date?: string;\n      link?: string;\n    }>(),\n    {\n      headline: \"Design\",\n      title: \"UX review presentations\",\n      image:\n        \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"UX review presentations\",\n      description:\n        \"How do you create compelling presentations that wow your colleagues and impress your managers?\",\n      date: \"30 Jan 2024\",\n      userImage: \"https://i.pravatar.cc/300?img=15\",\n      userName: \"John Doe\",\n      readTime: \"5 min read\",\n      tags: [\"Design\", \"UX\", \"UI\"],\n      link: \"#\",\n    }\n  );\n</script>\n","category":"Section","description":null,"path":"Blog/Section/BlockBlogSection1.vue","components":["avatar","button","container"]},{"name":"Blog Section 2","fileName":"BlockBlogSection2.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <div class=\"flex flex-col gap-3\">\n        <Motion as=\"h3\" :variants=\"childVariant\" class=\"text-3xl font-semibold lg:text-4xl\"\n          >From the blog</Motion\n        >\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg lg:text-xl\">\n          Tool and strategies modern teams need to help their companies grow.\n        </Motion>\n      </div>\n\n      <div class=\"mt-12 grid grid-cols-1 gap-10 md:grid-cols-2 lg:mt-16\">\n        <Motion v-for=\"item in 4\" :key=\"item\" :variants=\"childVariant\">\n          <Motion v-if=\"image\" as-child class=\"block\" :variants=\"childVariant\">\n            <NuxtLink :to=\"link\">\n              <img\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"mb-5 h-[240px] w-full rounded-lg object-cover shadow\"\n              />\n            </NuxtLink>\n          </Motion>\n          <Motion\n            v-if=\"headline\"\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-primary mb-2 text-sm font-semibold\"\n          >\n            {{ headline }} <span v-if=\"date\">- {{ date }}</span>\n          </Motion>\n          <NuxtLink :to=\"link\">\n            <Motion\n              as=\"p\"\n              :variants=\"childVariant\"\n              class=\"mb-2 text-xl font-semibold lg:text-2xl\"\n              >{{ title }}</Motion\n            >\n          </NuxtLink>\n          <Motion\n            v-if=\"description\"\n            as=\"p\"\n            :variants=\"childVariant\"\n            class=\"text-muted-foreground mb-3 line-clamp-2 text-ellipsis\"\n          >\n            {{ description }}\n          </Motion>\n          <div class=\"flex flex-wrap items-center gap-2\">\n            <template v-for=\"t in tags\" :key=\"t\">\n              <Motion v-if=\"headline\" as-child :variants=\"childVariant\">\n                <UiBadge class=\"px-2 py-0.5 text-sm\" variant=\"outline\">{{ t }}</UiBadge>\n              </Motion>\n            </template>\n          </div>\n        </Motion>\n      </div>\n      <Motion :variants=\"childVariant\">\n        <UiButton size=\"lg\" class=\"mt-14 w-full shrink-0 whitespace-nowrap md:w-auto\"\n          >View all posts</UiButton\n        >\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  /** This section is using the cards from BlockBlogPostCard3.vue. */\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"keyframes\",\n        ease: \"easeOut\",\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  // suggest default props for demonstration\n  const headline = \"Automation\";\n  const title = \"How to automate your workflow\";\n  const image =\n    \"https://images.unsplash.com/photo-1586455122341-927f2dec0691?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\";\n  const alt = \"Automation\";\n  const description =\n    \"Learn how to streamline your tasks and improve efficiency with automation tools.\";\n  const date = \"Mar 16, 2027\";\n  const tags = [\"Productivity\", \"Tools\"];\n  const link = \"#\";\n</script>\n","category":"Section","description":null,"path":"Blog/Section/BlockBlogSection2.vue","components":["badge","button","container"]},{"name":"Blog Section 3","fileName":"BlockBlogSection3.vue","file":"<template>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"overflow-hidden py-16 lg:py-24\">\n      <div>\n        <Motion\n          as=\"h3\"\n          :variants=\"{\n            initial: { opacity: 0, y: 10, scale: 1.1 },\n            animate: { opacity: 1, y: 0, scale: 1 },\n          }\"\n          class=\"mb-5 text-center text-3xl font-semibold lg:text-4xl\"\n          >From the blog</Motion\n        >\n        <Motion\n          as=\"p\"\n          :variants=\"{\n            initial: { opacity: 0, y: 10, scale: 1.1 },\n            animate: { opacity: 1, y: 0, scale: 1 },\n          }\"\n          class=\"text-muted-foreground text-center text-lg lg:text-xl\"\n        >\n          Tool and strategies modern teams need to help their companies grow.\n        </Motion>\n      </div>\n\n      <div class=\"mt-12 grid grid-cols-1 gap-10 lg:mt-16 lg:grid-cols-2\">\n        <Motion\n          v-for=\"item in 4\"\n          :key=\"item\"\n          :variants=\"childVariant\"\n          :transition=\"{\n            delay: item * 0.1,\n          }\"\n        >\n          <div class=\"flex flex-col gap-5 md:flex-row\">\n            <Motion\n              v-if=\"image\"\n              as-child\n              class=\"block basis-full md:basis-[30%]\"\n              :variants=\"{\n                initial: { opacity: 0, scale: 1.1 },\n                animate: { opacity: 1, scale: 1, transition: { duration: 0.4, ease: 'easeOut' } },\n              }\"\n            >\n              <NuxtLink :to=\"link\" class=\"shrink-0\">\n                <img\n                  :src=\"image\"\n                  :alt=\"alt\"\n                  class=\"h-[240px] w-full rounded-lg object-cover shadow md:h-[200px]\"\n                />\n              </NuxtLink>\n            </Motion>\n            <div class=\"basis-full md:basis-[60%]\">\n              <Motion\n                v-if=\"headline\"\n                as=\"p\"\n                :variants=\"childVariant\"\n                class=\"text-primary mb-2 text-sm font-semibold\"\n                >{{ headline }}</Motion\n              >\n              <Motion as-child :variants=\"childVariant\" class=\"block\">\n                <NuxtLink :to=\"link\">\n                  <p class=\"mb-2 text-xl font-semibold lg:text-2xl\">{{ title }}</p>\n                </NuxtLink>\n              </Motion>\n              <Motion\n                v-if=\"description\"\n                as=\"p\"\n                :variants=\"childVariant\"\n                class=\"text-muted-foreground mb-5 line-clamp-2 text-ellipsis\"\n              >\n                {{ description }}\n              </Motion>\n              <Motion :variants=\"childVariant\" class=\"flex items-center\">\n                <UiAvatar\n                  v-if=\"userImage\"\n                  :src=\"userImage\"\n                  :alt=\"userName\"\n                  class=\"bg-background ring-ring/30 mr-3 rounded-full shadow ring-1\"\n                />\n                <div>\n                  <p v-if=\"userName\" class=\"text-sm font-semibold\">{{ userName }}</p>\n                  <p v-if=\"date\" class=\"text-muted-foreground text-sm\">{{ date }}</p>\n                </div>\n              </Motion>\n            </div>\n          </div>\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"keyframes\",\n        ease: \"easeOut\",\n        when: \"beforeChildren\",\n        delayChildren: stagger(0.1),\n      },\n    },\n  };\n\n  const headline = \"Design\";\n  const title = \"UX review presentations\";\n  const image =\n    \"https://images.unsplash.com/photo-1627637820550-423ab938955c?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=3132\";\n  const alt = \"UX review presentations\";\n  const description =\n    \"How do you create compelling presentations that wow your colleagues and impress your managers?\";\n  const date = \"30 Jan 2024\";\n  const userImage = \"https://i.pravatar.cc/300?img=15\";\n  const userName = \"John Doe\";\n  const link = \"#\";\n</script>\n","category":"Section","description":null,"path":"Blog/Section/BlockBlogSection3.vue","components":["avatar","container"]},{"name":"Blog Section 4","fileName":"BlockBlogSection4.vue","file":"<template>\n  <!-- \n    Featured blog section with gradient header and sidebar layout\n    Features: Large featured post, sidebar with recent posts, category chips\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Header with gradient background -->\n      <Motion\n        :variants=\"childVariant\"\n        class=\"from-primary/10 via-primary/5 mb-12 rounded-2xl bg-linear-to-br to-transparent p-8 lg:mb-16\"\n      >\n        <h3 class=\"mb-3 text-3xl font-semibold lg:text-4xl\">Latest from our blog</h3>\n        <p class=\"text-muted-foreground text-lg lg:text-xl\">\n          Insights, stories, and updates from our team\n        </p>\n      </Motion>\n\n      <!-- Two-column layout: Featured + Sidebar -->\n      <div class=\"grid grid-cols-1 gap-10 lg:grid-cols-3\">\n        <!-- Featured post (2 columns) -->\n        <Motion :variants=\"childVariant\" class=\"lg:col-span-2\">\n          <NuxtLink :to=\"link\" class=\"group block\">\n            <div class=\"relative overflow-hidden rounded-xl\">\n              <Motion\n                as=\"img\"\n                :variants=\"{\n                  initial: { scale: 1.1 },\n                  animate: { scale: 1, transition: { duration: 0.6, ease: 'easeOut' } },\n                }\"\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"h-[400px] w-full object-cover transition-transform duration-500 group-hover:scale-105\"\n              />\n              <div\n                class=\"from-background/95 via-background/50 absolute inset-0 bg-linear-to-t to-transparent\"\n              ></div>\n              <div class=\"absolute right-0 bottom-0 left-0 z-10 p-6 lg:p-8\">\n                <UiBadge class=\"mb-3\">{{ headline }}</UiBadge>\n                <h4 class=\"text-foreground mb-2 text-2xl font-semibold lg:text-3xl\">\n                  {{ title }}\n                </h4>\n                <p class=\"mb-4 line-clamp-2\">{{ description }}</p>\n                <div class=\"flex items-center gap-3\">\n                  <UiAvatar\n                    :src=\"userImage\"\n                    :alt=\"userName\"\n                    class=\"bg-background ring-ring/30 shadow ring-1\"\n                  />\n                  <div>\n                    <p class=\"text-sm font-semibold\">{{ userName }}</p>\n                    <p class=\"text-muted-foreground text-sm\">{{ date }}</p>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </NuxtLink>\n        </Motion>\n\n        <!-- Sidebar with recent posts (1 column) -->\n        <div class=\"space-y-4\">\n          <Motion :variants=\"childVariant\">\n            <h4 class=\"mb-4 text-lg font-semibold\">Recent posts</h4>\n          </Motion>\n\n          <Motion\n            v-for=\"item in 3\"\n            :key=\"item\"\n            :variants=\"childVariant\"\n            class=\"hover:bg-muted/50 flex gap-3 rounded-lg p-1\"\n          >\n            <img :src=\"image\" :alt=\"alt\" class=\"h-20 w-20 shrink-0 rounded-lg object-cover\" />\n            <div class=\"min-w-0 flex-1\">\n              <NuxtLink :to=\"link\" class=\"block\">\n                <p class=\"mb-1 line-clamp-2 font-semibold\">{{ title }}</p>\n              </NuxtLink>\n              <p class=\"text-muted-foreground text-xs\">{{ date }}</p>\n            </div>\n          </Motion>\n\n          <!-- Categories -->\n          <Motion :variants=\"childVariant\" class=\"pt-4\">\n            <h5 class=\"mb-3 text-sm font-semibold\">Popular categories</h5>\n            <div class=\"flex flex-wrap gap-2\">\n              <template v-for=\"tag in tags\" :key=\"tag\">\n                <UiBadge variant=\"outline\">{{ tag }}</UiBadge>\n              </template>\n            </div>\n          </Motion>\n        </div>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const headline = \"Featured\";\n  const title = \"The future of design systems in 2024\";\n  const image =\n    \"https://images.unsplash.com/photo-1586455122341-927f2dec0691?q=80&w=1974&auto=format&fit=crop\";\n  const alt = \"Design systems\";\n  const description =\n    \"Explore the latest trends and best practices for building scalable design systems that empower teams.\";\n  const date = \"Jan 15, 2024\";\n  const userImage = \"https://i.pravatar.cc/300?img=20\";\n  const userName = \"Sarah Johnson\";\n  const link = \"#\";\n  const tags = [\"Design\", \"Development\", \"UX\", \"Tools\", \"Trends\"];\n</script>\n","category":"Section","description":"Featured blog section with gradient header and sidebar layout. Features: Large featured post, sidebar with recent posts, category chips","path":"Blog/Section/BlockBlogSection4.vue","components":["avatar","badge","container"]},{"name":"Blog Section 5","fileName":"BlockBlogSection5.vue","file":"<template>\n  <!-- \n    Masonry-style blog grid with staggered card heights\n    Features: Mixed card sizes, category filters, load more button\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.12),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Header with filter tabs -->\n      <div class=\"mb-12 flex flex-col gap-6 lg:mb-16\">\n        <div class=\"flex flex-col gap-3\">\n          <Motion as=\"h3\" :variants=\"childVariant\" class=\"text-3xl font-semibold lg:text-4xl\">\n            Browse our articles\n          </Motion>\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg lg:text-xl\">\n            Discover insights across design, development, and business\n          </Motion>\n        </div>\n\n        <!-- Category filter tabs -->\n        <Motion :variants=\"childVariant\">\n          <UiTabs default-value=\"all\" class=\"w-full\">\n            <UiTabsList class=\"w-fit overflow-x-auto\">\n              <UiTabsTrigger value=\"all\">All posts</UiTabsTrigger>\n              <UiTabsTrigger value=\"design\">Design</UiTabsTrigger>\n              <UiTabsTrigger value=\"dev\">Development</UiTabsTrigger>\n              <UiTabsTrigger value=\"business\">Business</UiTabsTrigger>\n            </UiTabsList>\n          </UiTabs>\n        </Motion>\n      </div>\n\n      <!-- Masonry grid with varied heights -->\n      <div class=\"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3\">\n        <!-- Large card (spans 2 rows) -->\n        <Motion :variants=\"childVariant\" class=\"md:row-span-2\">\n          <UiCard\n            class=\"group overflow-hidden border-0 py-0 shadow-lg transition-shadow hover:shadow-xl\"\n          >\n            <div class=\"relative overflow-hidden\">\n              <Motion\n                as=\"img\"\n                :variants=\"{\n                  initial: { scale: 1 },\n                  animate: { scale: 1, transition: { duration: 0.3 } },\n                }\"\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"h-[400px] w-full object-cover transition-transform duration-500 group-hover:scale-105\"\n              />\n              <UiBadge class=\"absolute top-4 left-4 shadow-md\">{{ headline }}</UiBadge>\n            </div>\n            <UiCardContent class=\"space-y-3 p-6\">\n              <NuxtLink :to=\"link\">\n                <h4 class=\"hover:text-primary text-xl font-semibold transition-colors lg:text-2xl\">\n                  {{ title }}\n                </h4>\n              </NuxtLink>\n              <p class=\"text-muted-foreground mt-2 line-clamp-3\">{{ description }}</p>\n              <div class=\"flex items-center gap-3 pt-2\">\n                <UiAvatar :src=\"userImage\" :alt=\"userName\" size=\"sm\" />\n                <div>\n                  <p class=\"text-sm font-medium\">{{ userName }}</p>\n                  <p class=\"text-muted-foreground text-xs\">{{ date }} · 5 min read</p>\n                </div>\n              </div>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n\n        <!-- Regular cards -->\n        <Motion v-for=\"item in 4\" :key=\"item\" :variants=\"childVariant\">\n          <UiCard\n            class=\"group h-full overflow-hidden border-0 py-0 shadow transition-shadow hover:shadow-lg\"\n          >\n            <div class=\"relative overflow-hidden\">\n              <img\n                :src=\"image\"\n                :alt=\"alt\"\n                class=\"h-[200px] w-full object-cover transition-transform duration-500 group-hover:scale-105\"\n              />\n            </div>\n            <UiCardContent class=\"space-y-2 pb-5\">\n              <UiBadge variant=\"outline\" size=\"sm\">{{ headline }}</UiBadge>\n              <NuxtLink :to=\"link\">\n                <h5 class=\"hover:text-primary font-semibold transition-colors\">{{ title }}</h5>\n              </NuxtLink>\n              <p class=\"text-muted-foreground line-clamp-2 text-sm\">{{ description }}</p>\n              <div class=\"flex items-center gap-2 pt-2\">\n                <UiAvatar :src=\"userImage\" :alt=\"userName\" size=\"xs\" />\n                <p class=\"text-muted-foreground text-xs\">{{ userName }} · {{ date }}</p>\n              </div>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n      </div>\n\n      <!-- Load more button -->\n      <Motion :variants=\"childVariant\" class=\"mt-10 text-center\">\n        <UiButton size=\"lg\" variant=\"outline\">\n          Load more articles\n          <Icon name=\"lucide:chevron-down\" class=\"ml-2 h-4 w-4\" />\n        </UiButton>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 250,\n        damping: 25,\n      },\n    },\n  };\n\n  const headline = \"Design\";\n  const title = \"Creating accessible design systems\";\n  const image =\n    \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?q=80&w=1932&auto=format&fit=crop\";\n  const alt = \"Design systems\";\n  const description =\n    \"Learn how to build design systems that are inclusive and accessible to all users.\";\n  const date = \"Feb 10, 2024\";\n  const userImage = \"https://i.pravatar.cc/300?img=18\";\n  const userName = \"Alex Chen\";\n  const link = \"#\";\n</script>\n","category":"Section","description":"Masonry-style blog grid with staggered card heights. Features: Mixed card sizes, category filters, load more button","path":"Blog/Section/BlockBlogSection5.vue","components":["avatar","badge","button","card","container","tabs"]},{"name":"Blog Section 6","fileName":"BlockBlogSection6.vue","file":"<template>\n  <!-- \n    Newsletter-integrated blog section with subscription card\n    Features: Blog cards with stats, inline newsletter signup, animated badge\n  -->\n  <DefineCard>\n    <UiCard class=\"group overflow-hidden py-0 shadow-xs transition-all\">\n      <div class=\"relative overflow-hidden\">\n        <img\n          :src=\"image\"\n          :alt=\"alt\"\n          class=\"h-[200px] w-full object-cover transition-transform duration-500 group-hover:scale-105\"\n        />\n      </div>\n      <UiCardContent class=\"space-y-3 pb-5\">\n        <div class=\"flex items-center gap-2\">\n          <UiBadge variant=\"secondary\">{{ headline }}</UiBadge>\n          <UiSeparator orientation=\"vertical\" class=\"h-4\" />\n          <span class=\"text-muted-foreground text-xs\">5 min read</span>\n        </div>\n        <NuxtLink :to=\"link\">\n          <h4 class=\"hover:text-primary text-lg font-semibold transition-colors\">\n            {{ title }}\n          </h4>\n        </NuxtLink>\n        <p class=\"text-muted-foreground line-clamp-2 text-sm\">{{ description }}</p>\n        <UiDivider />\n        <div class=\"flex items-center justify-between\">\n          <div class=\"flex items-center gap-2\">\n            <UiAvatar :src=\"userImage\" :alt=\"userName\" size=\"xs\" />\n            <span class=\"text-xs font-medium\">{{ userName }}</span>\n          </div>\n          <div class=\"text-muted-foreground flex items-center gap-3 text-xs\">\n            <span class=\"flex items-center gap-1\">\n              <Icon name=\"lucide:heart\" class=\"h-3 w-3\" />\n              124\n            </span>\n            <span class=\"flex items-center gap-1\">\n              <Icon name=\"lucide:message-circle\" class=\"h-3 w-3\" />\n              12\n            </span>\n          </div>\n        </div>\n      </UiCardContent>\n    </UiCard>\n  </DefineCard>\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Centered header -->\n      <div class=\"mx-auto max-w-3xl text-center\">\n        <Motion\n          :variants=\"childVariant\"\n          as=\"div\"\n          class=\"bg-primary/10 mb-3 inline-flex items-center gap-2 rounded-full px-4 py-1.5\"\n        >\n          <Motion\n            :variants=\"{\n              initial: { scale: 1 },\n              animate: {\n                scale: [1, 1.2, 1],\n                transition: {\n                  duration: 2,\n                  repeat: Infinity,\n                  repeatType: 'loop',\n                },\n              },\n            }\"\n            class=\"bg-primary h-2 w-2 rounded-full\"\n          ></Motion>\n          <span class=\"text-primary text-sm font-semibold\">Weekly updates</span>\n        </Motion>\n        <Motion as=\"h3\" :variants=\"childVariant\" class=\"mb-3 text-3xl font-semibold lg:text-4xl\">\n          Stories worth reading\n        </Motion>\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg lg:text-xl\">\n          Expert insights and practical tips for modern teams\n        </Motion>\n      </div>\n\n      <!-- Grid with newsletter card -->\n      <div class=\"mt-12 grid grid-cols-1 gap-8 md:grid-cols-2 lg:mt-16 lg:grid-cols-3\">\n        <!-- Blog cards -->\n        <Motion v-for=\"item in 2\" :key=\"item\" :variants=\"childVariant\">\n          <BlogCard />\n        </Motion>\n\n        <!-- Newsletter signup card -->\n        <Motion :variants=\"childVariant\">\n          <UiCard class=\"border-primary/30 relative h-full overflow-hidden border-2 border-dashed\">\n            <div\n              class=\"from-primary/20 absolute top-0 right-0 h-32 w-32 bg-linear-to-br to-transparent blur-3xl\"\n            ></div>\n            <UiCardContent class=\"relative flex h-full flex-col justify-center p-6 text-center\">\n              <Motion\n                :variants=\"{\n                  initial: { scale: 1, rotate: 0 },\n                  animate: {\n                    scale: [1, 1.1, 1],\n                    rotate: [0, 5, -5, 0],\n                    transition: {\n                      duration: 4,\n                      repeat: Infinity,\n                      repeatType: 'loop',\n                    },\n                  },\n                }\"\n                class=\"bg-primary/10 mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full\"\n              >\n                <Icon name=\"lucide:mail\" class=\"text-primary h-8 w-8\" />\n              </Motion>\n              <h4 class=\"mb-2 text-lg font-semibold\">Never miss a post</h4>\n              <p class=\"text-muted-foreground mb-4 text-sm\">\n                Get the latest articles delivered to your inbox weekly\n              </p>\n              <UiInput placeholder=\"Enter your email\" class=\"mb-3\" />\n              <UiButton class=\"w-full\">Subscribe now</UiButton>\n              <p class=\"text-muted-foreground mt-3 text-xs\">Join 10,000+ subscribers</p>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n\n        <!-- More blog cards -->\n        <Motion v-for=\"item in 3\" :key=\"`extra-${item}`\" :variants=\"childVariant\">\n          <BlogCard />\n        </Motion>\n      </div>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const [DefineCard, BlogCard] = createReusableTemplate();\n\n  const headline = \"Product\";\n  const title = \"Building better products with user feedback\";\n  const image =\n    \"https://images.unsplash.com/photo-1586455122341-927f2dec0691?q=80&w=1974&auto=format&fit=crop\";\n  const alt = \"Product development\";\n  const description =\n    \"Discover how continuous user feedback shapes product development and drives innovation.\";\n  const userImage = \"https://i.pravatar.cc/300?img=25\";\n  const userName = \"Maria Garcia\";\n  const link = \"#\";\n</script>\n","category":"Section","description":"Newsletter-integrated blog section with subscription card. Features: Blog cards with stats, inline newsletter signup, animated badge","path":"Blog/Section/BlockBlogSection6.vue","components":["avatar","badge","button","card","container","divider","input","separator"]},{"name":"Blog Section 7","fileName":"BlockBlogSection7.vue","file":"<template>\n  <!-- \n    Timeline-style blog section with chronological layout\n    Features: Date markers, connecting line, slide-in animations\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n        },\n      },\n    }\"\n  >\n    <UiContainer class=\"py-16 lg:py-24\">\n      <!-- Header -->\n      <div class=\"mb-12 lg:mb-16\">\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-primary mb-2 font-semibold\">\n          Our journey\n        </Motion>\n        <Motion as=\"h3\" :variants=\"childVariant\" class=\"mb-3 text-3xl font-semibold lg:text-4xl\">\n          Recent updates\n        </Motion>\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground text-lg lg:text-xl\">\n          Follow our latest stories and announcements\n        </Motion>\n      </div>\n\n      <!-- Timeline -->\n      <div class=\"relative space-y-12\">\n        <!-- Vertical line (hidden on mobile) -->\n        <Motion\n          :initial=\"{ height: 0 }\"\n          :animate=\"{\n            height: '100%',\n            transition: { duration: 1, delay: 0.2 },\n          }\"\n          class=\"from-primary via-primary/50 absolute top-0 left-px hidden w-0.5 bg-linear-to-b to-transparent md:block\"\n        ></Motion>\n\n        <!-- Timeline items -->\n        <Motion\n          v-for=\"(item, index) in 4\"\n          :key=\"item\"\n          :variants=\"{\n            initial: { opacity: 0 },\n            animate: {\n              opacity: 1,\n              transition: {\n                delay: index * 0.1,\n              },\n            },\n          }\"\n          class=\"relative md:pl-12\"\n        >\n          <!-- Timeline dot -->\n          <Motion\n            :variants=\"{\n              initial: { scale: 0, opacity: 0 },\n              animate: {\n                scale: [1, 1.3, 1],\n                opacity: 1,\n                transition: {\n                  delay: index * 0.1,\n                },\n              },\n            }\"\n            class=\"bg-primary ring-background absolute top-3 left-0 hidden size-4 -translate-x-1.5 rounded-full ring-4 md:block\"\n          ></Motion>\n\n          <!-- Content card -->\n          <UiCard class=\"group overflow-hidden shadow-xs transition-all hover:shadow-lg\">\n            <div class=\"grid grid-cols-1 items-start gap-6 md:grid-cols-5\">\n              <!-- Date section -->\n              <div\n                class=\"flex items-start gap-3 pl-5 md:col-span-1 md:h-full md:flex-col md:items-end md:justify-start md:border-r md:pr-6 md:pl-0\"\n              >\n                <UiBadge variant=\"outline\" class=\"shrink-0 py-1\">\n                  <Icon name=\"lucide:calendar\" class=\"mr-1.5 h-3 w-3\" />\n                  {{ date }}\n                </UiBadge>\n                <span class=\"text-muted-foreground text-sm\">5 min read</span>\n              </div>\n\n              <!-- Image section -->\n              <div class=\"relative overflow-hidden rounded-md md:col-span-2\">\n                <img\n                  :src=\"image\"\n                  :alt=\"alt\"\n                  class=\"h-full w-full object-cover transition-transform duration-500 group-hover:scale-110\"\n                />\n              </div>\n\n              <!-- Content section -->\n              <UiCardContent class=\"flex flex-col justify-center md:col-span-2\">\n                <UiBadge class=\"mb-3 w-fit\" variant=\"secondary\">{{ headline }}</UiBadge>\n                <NuxtLink :to=\"link\">\n                  <h4\n                    class=\"hover:text-primary mb-2 text-xl font-semibold transition-colors lg:text-2xl\"\n                  >\n                    {{ title }}\n                  </h4>\n                </NuxtLink>\n                <p class=\"text-muted-foreground mb-4 line-clamp-2\">{{ description }}</p>\n                <div class=\"flex items-center gap-3\">\n                  <UiAvatar :src=\"userImage\" :alt=\"userName\" size=\"sm\" />\n                  <div>\n                    <p class=\"text-sm font-medium\">{{ userName }}</p>\n                    <p class=\"text-muted-foreground text-xs\">Author</p>\n                  </div>\n                </div>\n              </UiCardContent>\n            </div>\n          </UiCard>\n        </Motion>\n      </div>\n\n      <!-- View all button -->\n      <Motion :variants=\"childVariant\" class=\"mt-12 text-center\">\n        <UiButton size=\"lg\" variant=\"outline\">\n          View complete timeline\n          <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n        </UiButton>\n      </Motion>\n    </UiContainer>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, x: -30 },\n    animate: {\n      opacity: 1,\n      x: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 25,\n      },\n    },\n  };\n\n  const headline = \"Update\";\n  const title = \"Introducing new collaboration features\";\n  const image =\n    \"https://images.unsplash.com/photo-1620121692029-d088224ddc74?q=80&w=1932&auto=format&fit=crop\";\n  const alt = \"Collaboration features\";\n  const description =\n    \"We're excited to announce new tools that make team collaboration easier and more productive.\";\n  const date = \"Apr 12, 2024\";\n  const userImage = \"https://i.pravatar.cc/300?img=30\";\n  const userName = \"David Lee\";\n  const link = \"#\";\n</script>\n","category":"Section","description":"Timeline-style blog section with chronological layout. Features: Date markers, connecting line, slide-in animations","path":"Blog/Section/BlockBlogSection7.vue","components":["avatar","badge","button","card","container"]},{"name":"Blog Section 8","fileName":"BlockBlogSection8.vue","file":"<template>\n  <!-- \n    Compact blog section with horizontal scroll on mobile\n    Features: Scrollable cards, gradient fade edges, view counter, bookmark action\n  -->\n  <Motion\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :in-view-options=\"{ once: true }\"\n    as-child\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <div class=\"overflow-hidden py-16 lg:py-24\">\n      <UiContainer>\n        <!-- Header -->\n        <div class=\"mb-8 flex items-end justify-between lg:mb-12\">\n          <div>\n            <Motion\n              as=\"h3\"\n              :variants=\"childVariant\"\n              class=\"mb-2 text-3xl font-semibold lg:text-4xl\"\n            >\n              Trending articles\n            </Motion>\n            <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground\">\n              Most popular posts this week\n            </Motion>\n          </div>\n          <Motion :variants=\"childVariant\">\n            <UiButton variant=\"ghost\" class=\"hidden md:flex\">\n              View all\n              <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n            </UiButton>\n          </Motion>\n        </div>\n      </UiContainer>\n\n      <!-- Scrollable container -->\n      <Motion :variants=\"childVariant\" class=\"relative\">\n        <!-- Gradient fade on edges (desktop only) -->\n        <div\n          class=\"from-background pointer-events-none absolute top-0 left-0 z-10 hidden h-full w-20 bg-linear-to-r to-transparent lg:block\"\n        ></div>\n        <div\n          class=\"from-background pointer-events-none absolute top-0 right-0 z-10 hidden h-full w-20 bg-linear-to-l to-transparent lg:block\"\n        ></div>\n\n        <!-- Horizontal scroll -->\n        <UiScrollArea orientation=\"horizontal\" class=\"w-full whitespace-nowrap\">\n          <div class=\"flex gap-6 px-4 pb-4 lg:px-12\">\n            <Motion\n              v-for=\"item in 6\"\n              :key=\"item\"\n              :variants=\"{\n                initial: { opacity: 0, scale: 0.9 },\n                animate: {\n                  opacity: 1,\n                  scale: 1,\n                  transition: {\n                    type: 'spring',\n                    stiffness: 200,\n                    damping: 20,\n                    delay: item * 0.05,\n                  },\n                },\n              }\"\n              class=\"inline-block w-[320px] shrink-0 lg:w-[380px]\"\n            >\n              <UiCard class=\"group h-full overflow-hidden py-0 transition-all hover:shadow-xl\">\n                <!-- Image with overlay badge -->\n                <div class=\"relative overflow-hidden\">\n                  <img\n                    :src=\"image\"\n                    :alt=\"alt\"\n                    class=\"h-[200px] w-full object-cover transition-transform duration-500 group-hover:scale-110\"\n                  />\n                  <div\n                    class=\"from-background/90 via-background/40 absolute inset-0 bg-linear-to-t to-transparent\"\n                  ></div>\n\n                  <!-- Trending badge -->\n                  <div\n                    class=\"bg-background/90 absolute top-4 left-4 flex items-center gap-2 rounded-full px-3 py-1.5 shadow-lg backdrop-blur-sm\"\n                  >\n                    <Motion\n                      :variants=\"{\n                        initial: {},\n                        animate: {\n                          scale: [1, 1.2, 1],\n                          transition: {\n                            duration: 2,\n                            repeat: Infinity,\n                            ease: 'linear',\n                          },\n                        },\n                      }\"\n                    >\n                      <Icon name=\"lucide:trending-up\" class=\"text-primary h-4 w-4\" />\n                    </Motion>\n                    <span class=\"text-xs font-semibold\">Trending</span>\n                  </div>\n\n                  <!-- Stats overlay -->\n                  <div class=\"absolute right-4 bottom-4 left-4 flex items-center justify-between\">\n                    <div class=\"text-foreground flex items-center gap-3 text-xs\">\n                      <span class=\"flex items-center gap-1\">\n                        <Icon name=\"lucide:eye\" class=\"h-3.5 w-3.5\" />\n                        2.4k\n                      </span>\n                      <span class=\"flex items-center gap-1\">\n                        <Icon name=\"lucide:clock\" class=\"h-3.5 w-3.5\" />\n                        5 min\n                      </span>\n                    </div>\n                    <UiButton\n                      size=\"icon\"\n                      variant=\"secondary\"\n                      class=\"h-7 w-7 rounded-full shadow-lg\"\n                    >\n                      <Icon name=\"lucide:bookmark\" class=\"h-3.5 w-3.5\" />\n                    </UiButton>\n                  </div>\n                </div>\n\n                <!-- Content -->\n                <UiCardContent class=\"space-y-3 pb-5\">\n                  <UiBadge variant=\"outline\" size=\"sm\">{{ headline }}</UiBadge>\n                  <NuxtLink :to=\"link\" class=\"block\">\n                    <h4\n                      class=\"hover:text-primary line-clamp-2 text-lg font-semibold transition-colors\"\n                    >\n                      {{ title }}\n                    </h4>\n                  </NuxtLink>\n                  <p class=\"text-muted-foreground line-clamp-2 text-sm\">{{ description }}</p>\n                  <UiDivider class=\"my-3!\" />\n                  <div class=\"flex items-center gap-2\">\n                    <UiAvatar :src=\"userImage\" :alt=\"userName\" size=\"xs\" />\n                    <div class=\"min-w-0 flex-1\">\n                      <p class=\"truncate text-xs font-medium\">{{ userName }}</p>\n                      <p class=\"text-muted-foreground text-xs\">{{ date }}</p>\n                    </div>\n                  </div>\n                </UiCardContent>\n              </UiCard>\n            </Motion>\n          </div>\n        </UiScrollArea>\n      </Motion>\n\n      <!-- Mobile view all button -->\n      <UiContainer>\n        <Motion :variants=\"childVariant\" class=\"mt-6 md:hidden\">\n          <UiButton variant=\"outline\" class=\"w-full\">\n            View all articles\n            <Icon name=\"lucide:arrow-right\" class=\"ml-2 h-4 w-4\" />\n          </UiButton>\n        </Motion>\n      </UiContainer>\n    </div>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 20 },\n    animate: {\n      opacity: 1,\n      y: 0,\n      transition: {\n        type: \"spring\",\n        stiffness: 200,\n        damping: 20,\n      },\n    },\n  };\n\n  const headline = \"Tutorial\";\n  const title = \"Getting started with modern web development\";\n  const image =\n    \"https://images.unsplash.com/photo-1627637820550-423ab938955c?ixlib=rb-4.1.0&auto=format&fit=crop&q=80&w=3132\";\n  const alt = \"Web development\";\n  const description =\n    \"A comprehensive guide to building modern web applications with the latest tools and frameworks.\";\n  const date = \"May 8, 2024\";\n  const userImage = \"https://i.pravatar.cc/300?img=35\";\n  const userName = \"Emma Wilson\";\n  const link = \"#\";\n</script>\n","category":"Section","description":"Compact blog section with horizontal scroll on mobile. Features: Scrollable cards, gradient fade edges, view counter, bookmark action","path":"Blog/Section/BlockBlogSection8.vue","components":["avatar","badge","button","card","container","divider","scroll-area"]},{"name":"Settings Security Danger Zone","fileName":"BlockSettingsSecurityDangerZone.vue","file":"<template>\n  <!--\n    Danger zone for destructive account actions\n    Features: Export data, deactivate and delete rows, delete requires typing the account name inside an alert dialog\n  -->\n  <UiCard class=\"border-destructive/40\">\n    <UiCardHeader>\n      <UiCardTitle class=\"text-destructive\">{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <UiCardContent class=\"divide-y p-0\">\n      <div class=\"flex flex-wrap items-center justify-between gap-4 px-6 py-4\">\n        <div>\n          <p class=\"text-sm font-medium\">Export your data</p>\n          <p class=\"text-muted-foreground text-sm\">Download a copy of everything we store.</p>\n        </div>\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"useSonner.info('Export started')\">\n          <Icon name=\"lucide:download\" class=\"size-4\" />\n          Export\n        </UiButton>\n      </div>\n      <div class=\"flex flex-wrap items-center justify-between gap-4 px-6 py-4\">\n        <div>\n          <p class=\"text-sm font-medium\">Deactivate account</p>\n          <p class=\"text-muted-foreground text-sm\">Hide your profile. You can come back anytime.</p>\n        </div>\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"useSonner.info('Account deactivated')\">\n          Deactivate\n        </UiButton>\n      </div>\n      <div class=\"flex flex-wrap items-center justify-between gap-4 px-6 py-4\">\n        <div>\n          <p class=\"text-sm font-medium\">Delete account</p>\n          <p class=\"text-muted-foreground text-sm\">\n            Permanently remove your account and all of its data.\n          </p>\n        </div>\n        <UiAlertDialog v-model:open=\"open\">\n          <UiAlertDialogTrigger as-child>\n            <UiButton variant=\"destructive\" size=\"sm\">Delete account</UiButton>\n          </UiAlertDialogTrigger>\n          <UiAlertDialogContent>\n            <UiAlertDialogHeader>\n              <UiAlertDialogTitle>Are you absolutely sure?</UiAlertDialogTitle>\n              <UiAlertDialogDescription>\n                This permanently deletes your account. Type\n                <span class=\"text-foreground font-semibold\">{{ props.confirmText }}</span>\n                to confirm.\n              </UiAlertDialogDescription>\n            </UiAlertDialogHeader>\n            <UiInput v-model=\"typed\" :placeholder=\"props.confirmText\" aria-label=\"Confirmation\" />\n            <UiAlertDialogFooter>\n              <UiAlertDialogCancel @click=\"typed = ''\">Cancel</UiAlertDialogCancel>\n              <UiAlertDialogAction\n                :disabled=\"typed !== props.confirmText\"\n                class=\"bg-destructive hover:bg-destructive/90 text-white\"\n                @click=\"remove\"\n              >\n                Delete account\n              </UiAlertDialogAction>\n            </UiAlertDialogFooter>\n          </UiAlertDialogContent>\n        </UiAlertDialog>\n      </div>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      confirmText?: string;\n    }>(),\n    {\n      title: \"Danger zone\",\n      description: \"These actions are permanent or hard to undo.\",\n      confirmText: \"delete my account\",\n    }\n  );\n\n  const open = ref(false);\n  const typed = ref(\"\");\n\n  function remove() {\n    typed.value = \"\";\n    useSonner.error(\"Account deleted\");\n  }\n</script>\n","category":"Security","description":"Danger zone for destructive account actions. Features: Export data, deactivate and delete rows, delete requires typing the account name inside an alert dialog","path":"Settings/Security/BlockSettingsSecurityDangerZone.vue","components":["alert-dialog","button","card","input"]},{"name":"Settings Security Password","fileName":"BlockSettingsSecurityPassword.vue","file":"<template>\n  <!--\n    Change password card with a live requirements checklist\n    Features: Password inputs with show and hide, strength meter, requirement checklist that updates as you type, confirm match validation\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n    </UiCardHeader>\n    <form @submit.prevent=\"onSubmit\">\n      <UiCardContent class=\"space-y-6\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n          <UiVeePasswordInput name=\"current\" label=\"Current password\" />\n          <UiVeePasswordInput name=\"password\" label=\"New password\" />\n          <UiVeePasswordInput name=\"confirm\" label=\"Confirm new password\" />\n        </fieldset>\n\n        <div class=\"space-y-3\">\n          <div class=\"flex items-center gap-3\">\n            <UiProgress :model-value=\"(score / requirements.length) * 100\" class=\"h-1.5\" />\n            <span class=\"text-muted-foreground w-16 text-right text-xs font-medium\">\n              {{ strengthLabel }}\n            </span>\n          </div>\n          <ul class=\"grid gap-2 text-sm sm:grid-cols-2\">\n            <li v-for=\"req in checks\" :key=\"req.label\" class=\"flex items-center gap-2\">\n              <span\n                class=\"flex size-4 items-center justify-center rounded-full\"\n                :class=\"req.passed ? 'bg-primary text-primary-foreground' : 'bg-muted'\"\n              >\n                <Icon v-if=\"req.passed\" name=\"lucide:check\" class=\"size-3\" />\n              </span>\n              <span :class=\"req.passed ? 'text-foreground' : 'text-muted-foreground'\">\n                {{ req.label }}\n              </span>\n            </li>\n          </ul>\n        </div>\n      </UiCardContent>\n      <UiCardFooter class=\"justify-end gap-2 border-t\">\n        <UiButton type=\"button\" variant=\"outline\" @click=\"resetForm()\">Cancel</UiButton>\n        <UiButton type=\"submit\" :disabled=\"isSubmitting\">Update password</UiButton>\n      </UiCardFooter>\n    </form>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, ref as yupRef, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Password\",\n      description: \"Choose a strong password you don't use anywhere else.\",\n    }\n  );\n\n  const requirements = [\n    { label: \"At least 8 characters\", test: (v: string) => v.length >= 8 },\n    { label: \"One uppercase letter\", test: (v: string) => /[A-Z]/.test(v) },\n    { label: \"One number\", test: (v: string) => /\\d/.test(v) },\n    { label: \"One special character\", test: (v: string) => /[^A-Za-z0-9]/.test(v) },\n  ];\n\n  const schema = object({\n    current: string().required().label(\"Current password\"),\n    password: string()\n      .required()\n      .test(\"strong\", \"Password does not meet all requirements\", (v) =>\n        requirements.every((req) => req.test(v ?? \"\"))\n      )\n      .label(\"New password\"),\n    confirm: string()\n      .oneOf([yupRef(\"password\")], \"Passwords must match\")\n      .required()\n      .label(\"Confirmation\"),\n  });\n\n  const { handleSubmit, isSubmitting, resetForm, values } = useForm<InferType<typeof schema>>({\n    validationSchema: schema,\n  });\n\n  const checks = computed(() =>\n    requirements.map((req) => ({ label: req.label, passed: req.test(values.password ?? \"\") }))\n  );\n  const score = computed(() => checks.value.filter((req) => req.passed).length);\n  const strengthLabel = computed(\n    () => [\"Too weak\", \"Weak\", \"Fair\", \"Good\", \"Strong\"][score.value] ?? \"Too weak\"\n  );\n\n  const onSubmit = handleSubmit(async () => {\n    await new Promise((resolve) => setTimeout(resolve, 600));\n    resetForm();\n    useSonner.success(\"Password updated\", {\n      description: \"You'll be asked to sign in again on your other devices.\",\n    });\n  });\n</script>\n","category":"Security","description":"Change password card with a live requirements checklist. Features: Password inputs with show and hide, strength meter, requirement checklist that updates as you type, confirm match validation","path":"Settings/Security/BlockSettingsSecurityPassword.vue","components":["button","card","progress","vee-password-input"]},{"name":"Settings Security Sessions","fileName":"BlockSettingsSecuritySessions.vue","file":"<template>\n  <!--\n    Active sessions and signed-in devices\n    Features: Current session highlighted, device icon, location and last active time, revoke one session or all others\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n      <UiCardAction>\n        <UiButton variant=\"outline\" size=\"sm\" :disabled=\"sessions.length < 2\" @click=\"revokeOthers\">\n          Sign out all others\n        </UiButton>\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"divide-y p-0\">\n      <div v-for=\"session in sessions\" :key=\"session.id\" class=\"flex items-center gap-4 px-6 py-4\">\n        <div class=\"bg-muted flex size-10 shrink-0 items-center justify-center rounded-md\">\n          <Icon :name=\"session.icon\" class=\"size-5\" />\n        </div>\n        <div class=\"min-w-0 flex-1\">\n          <div class=\"flex flex-wrap items-center gap-2\">\n            <p class=\"truncate text-sm font-medium\">{{ session.device }}</p>\n            <UiBadge v-if=\"session.current\" variant=\"success\">This device</UiBadge>\n          </div>\n          <p class=\"text-muted-foreground text-sm\">\n            {{ session.location }} · {{ session.lastActive }}\n          </p>\n        </div>\n        <UiButton v-if=\"!session.current\" variant=\"ghost\" size=\"sm\" @click=\"revoke(session.id)\">\n          Revoke\n        </UiButton>\n      </div>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Session = {\n    id: number;\n    device: string;\n    icon: string;\n    location: string;\n    lastActive: string;\n    current?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Active sessions\",\n      description: \"Devices that are currently signed in to your account.\",\n    }\n  );\n\n  const sessions = ref<Session[]>([\n    {\n      id: 1,\n      device: \"MacBook Pro · Chrome\",\n      icon: \"lucide:laptop\",\n      location: \"Melbourne, AU\",\n      lastActive: \"Active now\",\n      current: true,\n    },\n    {\n      id: 2,\n      device: \"iPhone 15 · Safari\",\n      icon: \"lucide:smartphone\",\n      location: \"Melbourne, AU\",\n      lastActive: \"2 hours ago\",\n    },\n    {\n      id: 3,\n      device: \"Windows PC · Edge\",\n      icon: \"lucide:monitor\",\n      location: \"Sydney, AU\",\n      lastActive: \"3 days ago\",\n    },\n  ]);\n\n  function revoke(id: number) {\n    sessions.value = sessions.value.filter((session) => session.id !== id);\n    useSonner.success(\"Session revoked\");\n  }\n\n  function revokeOthers() {\n    sessions.value = sessions.value.filter((session) => session.current);\n    useSonner.success(\"Signed out of all other devices\");\n  }\n</script>\n","category":"Security","description":"Active sessions and signed-in devices. Features: Current session highlighted, device icon, location and last active time, revoke one session or all others","path":"Settings/Security/BlockSettingsSecuritySessions.vue","components":["badge","button","card"]},{"name":"Settings Security Two Factor","fileName":"BlockSettingsSecurityTwoFactor.vue","file":"<template>\n  <!--\n    Two-factor authentication methods\n    Features: Master toggle, selectable methods (authenticator, SMS, passkey) with status badges, recovery codes action\n  -->\n  <UiCard>\n    <UiCardHeader>\n      <UiCardTitle>{{ props.title }}</UiCardTitle>\n      <UiCardDescription>{{ props.description }}</UiCardDescription>\n      <UiCardAction>\n        <UiSwitch v-model=\"enabled\" aria-label=\"Enable two-factor authentication\" />\n      </UiCardAction>\n    </UiCardHeader>\n    <UiCardContent class=\"space-y-3\" :class=\"!enabled && 'pointer-events-none opacity-50'\">\n      <div\n        v-for=\"method in methods\"\n        :key=\"method.id\"\n        class=\"flex items-center gap-4 rounded-lg border p-4\"\n      >\n        <div class=\"bg-muted flex size-10 shrink-0 items-center justify-center rounded-md\">\n          <Icon :name=\"method.icon\" class=\"size-5\" />\n        </div>\n        <div class=\"min-w-0 flex-1\">\n          <div class=\"flex items-center gap-2\">\n            <p class=\"text-sm font-medium\">{{ method.name }}</p>\n            <UiBadge v-if=\"method.recommended\" variant=\"secondary\">Recommended</UiBadge>\n          </div>\n          <p class=\"text-muted-foreground text-sm\">{{ method.description }}</p>\n        </div>\n        <UiButton\n          size=\"sm\"\n          :variant=\"method.configured ? 'outline' : 'default'\"\n          @click=\"toggle(method)\"\n        >\n          {{ method.configured ? \"Remove\" : \"Set up\" }}\n        </UiButton>\n      </div>\n    </UiCardContent>\n    <UiCardFooter class=\"justify-between gap-4 border-t\">\n      <p class=\"text-muted-foreground text-sm\">\n        Save your recovery codes somewhere safe in case you lose access to a device.\n      </p>\n      <UiButton variant=\"outline\" size=\"sm\" :disabled=\"!enabled\" @click=\"downloadCodes\">\n        <Icon name=\"lucide:download\" class=\"size-4\" />\n        Recovery codes\n      </UiButton>\n    </UiCardFooter>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Method = {\n    id: string;\n    name: string;\n    description: string;\n    icon: string;\n    configured: boolean;\n    recommended?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Two-factor authentication\",\n      description: \"Add a second step when you sign in to keep your account safe.\",\n    }\n  );\n\n  const enabled = ref(true);\n\n  const methods = reactive<Method[]>([\n    {\n      id: \"app\",\n      name: \"Authenticator app\",\n      description: \"Use a code from an app like 1Password or Authy.\",\n      icon: \"lucide:smartphone\",\n      configured: true,\n      recommended: true,\n    },\n    {\n      id: \"passkey\",\n      name: \"Passkey\",\n      description: \"Sign in with Face ID, Touch ID or a security key.\",\n      icon: \"lucide:fingerprint\",\n      configured: false,\n    },\n    {\n      id: \"sms\",\n      name: \"Text message\",\n      description: \"Get a code by SMS. Less secure than the options above.\",\n      icon: \"lucide:message-square\",\n      configured: false,\n    },\n  ]);\n\n  function toggle(method: Method) {\n    method.configured = !method.configured;\n    useSonner.success(method.configured ? `${method.name} added` : `${method.name} removed`);\n  }\n\n  function downloadCodes() {\n    useSonner.info(\"Recovery codes downloaded\");\n  }\n</script>\n","category":"Security","description":"Two-factor authentication methods. Features: Master toggle, selectable methods (authenticator, SMS, passkey) with status badges, recovery codes action","path":"Settings/Security/BlockSettingsSecurityTwoFactor.vue","components":["badge","button","card","switch"]},{"name":"Sharing 1","fileName":"BlockSharing1.vue","file":"<template>\n  <!--\n    Share dialog\n    Features: A dialog with an invite field that adds people by email, a role select for each person, a general access select for anyone with the link, a copy link button and a done button that shows who the file is shared with\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl\">\n      <UiCard class=\"gap-4\">\n        <div class=\"flex items-center gap-3 px-6\">\n          <span class=\"bg-muted grid size-12 place-items-center rounded-lg\"\n            ><Icon name=\"lucide:file-text\" class=\"size-6 text-blue-500\"\n          /></span>\n          <div class=\"min-w-0 flex-1\">\n            <UiCardTitle class=\"truncate\">{{ file }}</UiCardTitle>\n            <UiCardDescription\n              >Shared with {{ shared.length }}\n              {{ shared.length === 1 ? \"person\" : \"people\" }}</UiCardDescription\n            >\n          </div>\n          <UiDialog v-model:open=\"open\">\n            <UiDialogTrigger as-child>\n              <UiButton><Icon name=\"lucide:share-2\" class=\"size-4\" />Share</UiButton>\n            </UiDialogTrigger>\n            <UiDialogContent class=\"sm:max-w-lg\">\n              <UiDialogHeader>\n                <UiDialogTitle>Share \"{{ file }}\"</UiDialogTitle>\n                <UiDialogDescription>Invite people or share a link.</UiDialogDescription>\n              </UiDialogHeader>\n              <form class=\"flex gap-2\" novalidate @submit.prevent=\"invite\">\n                <UiInput\n                  v-model=\"email\"\n                  type=\"email\"\n                  placeholder=\"Add people by email\"\n                  aria-label=\"Email address\"\n                  :aria-invalid=\"!!error\"\n                />\n                <UiButton type=\"submit\">Invite</UiButton>\n              </form>\n              <p v-if=\"error\" class=\"text-destructive -mt-2 text-sm\">{{ error }}</p>\n\n              <ul class=\"max-h-52 space-y-3 overflow-y-auto\" aria-label=\"People with access\">\n                <li v-for=\"person in people\" :key=\"person.email\" class=\"flex items-center gap-3\">\n                  <UiAvatar\n                    :src=\"\n                      person.avatar ? `https://i.pravatar.cc/80?img=${person.avatar}` : undefined\n                    \"\n                    :fallback=\"person.name.slice(0, 1).toUpperCase()\"\n                    class=\"size-8\"\n                  />\n                  <div class=\"min-w-0 flex-1\">\n                    <p class=\"truncate text-sm font-medium\">{{ person.name }}</p>\n                    <p class=\"text-muted-foreground truncate text-xs\">{{ person.email }}</p>\n                  </div>\n                  <span v-if=\"person.owner\" class=\"text-muted-foreground text-sm\">Owner</span>\n                  <UiSelect v-else v-model=\"person.role\">\n                    <UiSelectTrigger class=\"h-8 w-28\" :aria-label=\"`Role for ${person.name}`\"\n                      ><UiSelectValue\n                    /></UiSelectTrigger>\n                    <UiSelectContent>\n                      <UiSelectItem value=\"viewer\">Viewer</UiSelectItem>\n                      <UiSelectItem value=\"commenter\">Commenter</UiSelectItem>\n                      <UiSelectItem value=\"editor\">Editor</UiSelectItem>\n                    </UiSelectContent>\n                  </UiSelect>\n                </li>\n              </ul>\n\n              <div class=\"space-y-2 border-t pt-4\">\n                <UiLabel for=\"general-access\">General access</UiLabel>\n                <div class=\"flex items-center gap-2\">\n                  <UiSelect v-model=\"access\">\n                    <UiSelectTrigger id=\"general-access\" class=\"flex-1\"\n                      ><UiSelectValue\n                    /></UiSelectTrigger>\n                    <UiSelectContent>\n                      <UiSelectItem value=\"restricted\"\n                        >Restricted. Only people added can open</UiSelectItem\n                      >\n                      <UiSelectItem value=\"link\">Anyone with the link can view</UiSelectItem>\n                    </UiSelectContent>\n                  </UiSelect>\n                </div>\n              </div>\n              <UiDialogFooter class=\"sm:justify-between\">\n                <UiButton type=\"button\" variant=\"outline\" @click=\"copy(link)\"\n                  ><Icon :name=\"copied ? 'lucide:check' : 'lucide:link'\" class=\"size-4\" />{{\n                    copied ? \"Link copied\" : \"Copy link\"\n                  }}</UiButton\n                >\n                <UiButton type=\"button\" @click=\"done\">Done</UiButton>\n              </UiDialogFooter>\n            </UiDialogContent>\n          </UiDialog>\n        </div>\n        <UiCardContent>\n          <div class=\"flex items-center gap-2\">\n            <div class=\"flex -space-x-2\">\n              <UiAvatar\n                v-for=\"person in shared\"\n                :key=\"person.email\"\n                :src=\"person.avatar ? `https://i.pravatar.cc/80?img=${person.avatar}` : undefined\"\n                :fallback=\"person.name.slice(0, 1).toUpperCase()\"\n                class=\"ring-background size-8 ring-2\"\n              />\n            </div>\n            <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n              {{ access === \"link\" ? \"Anyone with the link can view\" : \"Restricted\" }}\n            </p>\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Role = \"viewer\" | \"commenter\" | \"editor\";\n  type Person = { name: string; email: string; avatar?: number; role: Role; owner?: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      file?: string;\n      link?: string;\n      people?: Person[];\n    }>(),\n    {\n      file: \"Q3 report.pdf\",\n      link: \"https://files.example.com/s/q3-report-8f2a\",\n      people: () => [\n        { name: \"You\", email: \"alex@example.com\", avatar: 32, role: \"editor\", owner: true },\n        { name: \"Sofia Alvarez\", email: \"sofia@example.com\", avatar: 45, role: \"editor\" },\n        { name: \"Noah Kim\", email: \"noah@example.com\", avatar: 15, role: \"viewer\" },\n      ],\n    }\n  );\n\n  const open = ref(false);\n  const people = ref<Person[]>(props.people.map((person) => ({ ...person })));\n  const shared = ref<Person[]>(people.value.map((person) => ({ ...person })));\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const access = ref(\"restricted\");\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  function invite() {\n    const value = email.value.trim().toLowerCase();\n    if (!/^\\S+@\\S+\\.\\S+$/.test(value)) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    if (people.value.some((person) => person.email === value)) {\n      error.value = \"This person already has access.\";\n      return;\n    }\n    error.value = \"\";\n    people.value.push({ name: value.split(\"@\")[0]!, email: value, role: \"viewer\" });\n    email.value = \"\";\n  }\n\n  function done() {\n    shared.value = people.value.map((person) => ({ ...person }));\n    open.value = false;\n    useSonner.success(\"Sharing settings saved\");\n  }\n</script>\n","category":"Sharing","description":"Share dialog. Features: A dialog with an invite field that adds people by email, a role select for each person, a general access select for anyone with the link, a copy link button and a done button that shows who the file is shared with","path":"Files/Sharing/BlockSharing1.vue","components":["avatar","button","card","container","dialog","input","label","select"]},{"name":"Sharing 2","fileName":"BlockSharing2.vue","file":"<template>\n  <!--\n    Access list\n    Features: Everyone with access listed with a role select, an owner row that cannot be changed, pending invitations with resend and cancel, a remove action with an undo and a count of people by role\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">People with access</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">{{ summary }}</p>\n        </div>\n        <UiButton size=\"sm\" @click=\"useSonner.info('Open the invite dialog here')\"\n          ><Icon name=\"lucide:user-plus\" class=\"size-4\" />Invite</UiButton\n        >\n      </div>\n\n      <ul class=\"mt-6 divide-y rounded-xl border\" aria-live=\"polite\">\n        <li\n          v-for=\"person in people\"\n          :key=\"person.email\"\n          class=\"flex flex-wrap items-center gap-3 px-4 py-3.5 sm:flex-nowrap\"\n        >\n          <UiAvatar\n            :src=\"`https://i.pravatar.cc/80?img=${person.avatar}`\"\n            :fallback=\"person.name.slice(0, 1)\"\n            class=\"size-10\"\n          />\n          <div class=\"min-w-0 flex-1 basis-40\">\n            <p class=\"flex items-center gap-2 truncate text-sm font-medium\">\n              {{ person.name }}\n              <UiBadge v-if=\"person.pending\" variant=\"soft\" color=\"amber\" shape=\"pill\"\n                >Pending</UiBadge\n              >\n            </p>\n            <p class=\"text-muted-foreground truncate text-xs\">{{ person.email }}</p>\n          </div>\n          <span v-if=\"person.owner\" class=\"text-muted-foreground text-sm\">Owner</span>\n          <div v-else class=\"ml-auto flex items-center gap-2\">\n            <UiButton v-if=\"person.pending\" variant=\"ghost\" size=\"sm\" @click=\"resend(person)\"\n              >Resend</UiButton\n            >\n            <UiSelect v-model=\"person.role\">\n              <UiSelectTrigger class=\"h-8 w-32\" :aria-label=\"`Role for ${person.name}`\"\n                ><UiSelectValue\n              /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem value=\"viewer\">Viewer</UiSelectItem>\n                <UiSelectItem value=\"commenter\">Commenter</UiSelectItem>\n                <UiSelectItem value=\"editor\">Editor</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              :aria-label=\"`${person.pending ? 'Cancel invitation for' : 'Remove'} ${person.name}`\"\n              @click=\"remove(person)\"\n              ><Icon name=\"lucide:x\" class=\"size-4\"\n            /></UiButton>\n          </div>\n        </li>\n        <li v-if=\"!people.length\" class=\"text-muted-foreground px-4 py-10 text-center text-sm\">\n          Nobody has access yet.\n        </li>\n      </ul>\n\n      <div\n        v-if=\"removed\"\n        class=\"bg-muted/60 mt-4 flex items-center justify-between gap-3 rounded-lg px-4 py-2.5 text-sm\"\n        role=\"status\"\n      >\n        <span>Removed {{ removed.person.name }}.</span>\n        <UiButton variant=\"link\" size=\"sm\" class=\"h-auto p-0\" @click=\"undo\">Undo</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Role = \"viewer\" | \"commenter\" | \"editor\";\n  type Person = {\n    name: string;\n    email: string;\n    avatar: number;\n    role: Role;\n    owner?: boolean;\n    pending?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      people?: Person[];\n    }>(),\n    {\n      people: () => [\n        { name: \"Alex Rivera\", email: \"alex@example.com\", avatar: 32, role: \"editor\", owner: true },\n        { name: \"Sofia Alvarez\", email: \"sofia@example.com\", avatar: 45, role: \"editor\" },\n        { name: \"Noah Kim\", email: \"noah@example.com\", avatar: 15, role: \"commenter\" },\n        { name: \"Priya Nair\", email: \"priya@example.com\", avatar: 44, role: \"viewer\" },\n        { name: \"Tom Becker\", email: \"tom@example.com\", avatar: 33, role: \"viewer\", pending: true },\n      ],\n    }\n  );\n\n  const people = ref<Person[]>(props.people.map((person) => ({ ...person })));\n  const removed = ref<{ person: Person; index: number } | null>(null);\n\n  const summary = computed(() => {\n    const active = people.value.filter((person) => !person.pending);\n    const editors = active.filter((person) => person.role === \"editor\").length;\n    const pending = people.value.length - active.length;\n    return `${active.length} ${active.length === 1 ? \"person\" : \"people\"}, ${editors} ${editors === 1 ? \"editor\" : \"editors\"}${pending ? `, ${pending} pending` : \"\"}`;\n  });\n\n  function remove(person: Person) {\n    const index = people.value.findIndex((item) => item.email === person.email);\n    removed.value = { person, index };\n    people.value.splice(index, 1);\n  }\n\n  function undo() {\n    if (!removed.value) return;\n    people.value.splice(removed.value.index, 0, removed.value.person);\n    removed.value = null;\n  }\n\n  function resend(person: Person) {\n    useSonner.success(`Invitation sent again to ${person.email}`);\n  }\n</script>\n","category":"Sharing","description":"Access list. Features: Everyone with access listed with a role select, an owner row that cannot be changed, pending invitations with resend and cancel, a remove action with an undo and a count of people by role","path":"Files/Sharing/BlockSharing2.vue","components":["avatar","badge","button","container","select"]},{"name":"Sharing 3","fileName":"BlockSharing3.vue","file":"<template>\n  <!--\n    Public link settings\n    Features: A switch that turns the public link on or off, the link with a copy button, a permission select, optional password protection with a show and hide button, an expiry select, an allow download switch, a view counter and a reset link action with a confirmation\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-xl gap-0 py-0\">\n      <div class=\"flex items-center justify-between gap-4 px-6 py-5\">\n        <div>\n          <h1 class=\"font-semibold\">Public link</h1>\n          <p class=\"text-muted-foreground text-sm\">Anyone with the link can open this file.</p>\n        </div>\n        <UiSwitch v-model=\"enabled\" aria-label=\"Enable public link\" />\n      </div>\n\n      <div v-if=\"enabled\" class=\"space-y-5 border-t px-6 py-5\">\n        <div class=\"space-y-2\">\n          <UiLabel for=\"public-link\">Link</UiLabel>\n          <div class=\"flex gap-2\">\n            <UiInput id=\"public-link\" :model-value=\"link\" readonly class=\"font-mono text-sm\" />\n            <UiButton variant=\"outline\" @click=\"copy(link)\"\n              ><Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />{{\n                copied ? \"Copied\" : \"Copy\"\n              }}</UiButton\n            >\n          </div>\n          <p class=\"text-muted-foreground text-xs\">{{ views }} views in the last 30 days</p>\n        </div>\n\n        <div class=\"grid gap-4 sm:grid-cols-2\">\n          <div class=\"space-y-2\">\n            <UiLabel for=\"link-permission\">Permission</UiLabel>\n            <UiSelect v-model=\"permission\">\n              <UiSelectTrigger id=\"link-permission\"><UiSelectValue /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem value=\"view\">Can view</UiSelectItem>\n                <UiSelectItem value=\"comment\">Can comment</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n          <div class=\"space-y-2\">\n            <UiLabel for=\"link-expiry\">Link expires</UiLabel>\n            <UiSelect v-model=\"expiry\">\n              <UiSelectTrigger id=\"link-expiry\"><UiSelectValue /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem value=\"never\">Never</UiSelectItem>\n                <UiSelectItem value=\"1\">In 1 day</UiSelectItem>\n                <UiSelectItem value=\"7\">In 7 days</UiSelectItem>\n                <UiSelectItem value=\"30\">In 30 days</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n        </div>\n        <p class=\"text-muted-foreground -mt-2 text-xs\" aria-live=\"polite\">{{ expiryText }}</p>\n\n        <div class=\"space-y-3\">\n          <div class=\"flex items-center justify-between gap-4\">\n            <UiLabel for=\"link-password-toggle\" class=\"font-normal\">Require a password</UiLabel>\n            <UiSwitch id=\"link-password-toggle\" v-model=\"protect\" />\n          </div>\n          <div v-if=\"protect\" class=\"space-y-1.5\">\n            <UiLabel for=\"link-password\">Password</UiLabel>\n            <div class=\"relative\">\n              <UiInput\n                id=\"link-password\"\n                v-model=\"password\"\n                :type=\"reveal ? 'text' : 'password'\"\n                class=\"pr-10\"\n                autocomplete=\"new-password\"\n                :aria-invalid=\"!!passwordError\"\n              />\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"absolute top-1/2 right-1 size-7 -translate-y-1/2\"\n                :aria-label=\"reveal ? 'Hide password' : 'Show password'\"\n                :aria-pressed=\"reveal\"\n                @click=\"reveal = !reveal\"\n                ><Icon :name=\"reveal ? 'lucide:eye-off' : 'lucide:eye'\" class=\"size-4\"\n              /></UiButton>\n            </div>\n            <p v-if=\"passwordError\" class=\"text-destructive text-sm\">{{ passwordError }}</p>\n          </div>\n          <div class=\"flex items-center justify-between gap-4\">\n            <UiLabel for=\"link-download\" class=\"font-normal\">Allow downloads</UiLabel>\n            <UiSwitch id=\"link-download\" v-model=\"download\" />\n          </div>\n        </div>\n      </div>\n      <div v-else class=\"text-muted-foreground border-t px-6 py-10 text-center text-sm\">\n        <Icon name=\"lucide:link-2-off\" class=\"mx-auto mb-2 size-6\" />\n        The public link is off. Nobody can open this file with a link.\n      </div>\n\n      <div class=\"flex items-center justify-between gap-3 border-t px-6 py-4\">\n        <UiAlertDialog>\n          <UiAlertDialogTrigger as-child>\n            <UiButton variant=\"ghost\" size=\"sm\" class=\"text-destructive\" :disabled=\"!enabled\"\n              >Reset link</UiButton\n            >\n          </UiAlertDialogTrigger>\n          <UiAlertDialogContent>\n            <UiAlertDialogHeader>\n              <UiAlertDialogTitle>Reset the public link?</UiAlertDialogTitle>\n              <UiAlertDialogDescription\n                >The old link will stop working and a new one is created. People who have the old\n                link lose access.</UiAlertDialogDescription\n              >\n            </UiAlertDialogHeader>\n            <UiAlertDialogFooter>\n              <UiAlertDialogCancel>Cancel</UiAlertDialogCancel>\n              <UiAlertDialogAction @click=\"resetLink\">Reset link</UiAlertDialogAction>\n            </UiAlertDialogFooter>\n          </UiAlertDialogContent>\n        </UiAlertDialog>\n        <UiButton size=\"sm\" @click=\"save\">Save settings</UiButton>\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      baseLink?: string;\n      views?: number;\n    }>(),\n    {\n      baseLink: \"https://files.example.com/s/\",\n      views: 128,\n    }\n  );\n\n  const enabled = ref(true);\n  const token = ref(\"q3-report-8f2a\");\n  const permission = ref(\"view\");\n  const expiry = ref(\"never\");\n  const protect = ref(false);\n  const password = ref(\"\");\n  const reveal = ref(false);\n  const download = ref(true);\n  const passwordError = ref(\"\");\n\n  const link = computed(() => `${props.baseLink}${token.value}`);\n  const expiryText = computed(() =>\n    expiry.value === \"never\"\n      ? \"The link works until you turn it off.\"\n      : `The link stops working ${expiry.value === \"1\" ? \"after 1 day\" : `after ${expiry.value} days`}.`\n  );\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  function resetLink() {\n    token.value = Math.random().toString(36).slice(2, 10);\n    useSonner.success(\"A new link was created\");\n  }\n\n  function save() {\n    if (enabled.value && protect.value && password.value.length < 6) {\n      passwordError.value = \"Use at least 6 characters.\";\n      return;\n    }\n    passwordError.value = \"\";\n    useSonner.success(\"Link settings saved\");\n  }\n</script>\n","category":"Sharing","description":"Public link settings. Features: A switch that turns the public link on or off, the link with a copy button, a permission select, optional password protection with a show and hide button, an expiry select, an allow download switch, a view counter and a reset link action with a confirmation","path":"Files/Sharing/BlockSharing3.vue","components":["alert-dialog","button","card","container","input","label","select","switch"]},{"name":"Sharing 4","fileName":"BlockSharing4.vue","file":"<template>\n  <!--\n    File detail panel\n    Features: A preview, the name and type, tabs for details, activity and sharing, editable tags that can be added and removed, a metadata list, an activity list, avatars of who has access and download, share and delete actions\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-sm gap-0 overflow-hidden py-0\">\n      <div class=\"bg-muted relative\">\n        <img\n          :src=\"file.preview\"\n          :alt=\"file.name\"\n          class=\"aspect-[4/3] w-full object-cover\"\n          loading=\"lazy\"\n        />\n      </div>\n      <div class=\"space-y-1 px-5 pt-4\">\n        <h1 class=\"truncate font-semibold\">{{ file.name }}</h1>\n        <p class=\"text-muted-foreground text-sm\">{{ file.type }} · {{ file.size }}</p>\n      </div>\n\n      <UiTabs v-model=\"tab\" class=\"px-5 pt-4 pb-5\">\n        <UiTabsList class=\"w-full\">\n          <UiTabsTrigger value=\"details\" class=\"flex-1\">Details</UiTabsTrigger>\n          <UiTabsTrigger value=\"activity\" class=\"flex-1\">Activity</UiTabsTrigger>\n          <UiTabsTrigger value=\"sharing\" class=\"flex-1\">Sharing</UiTabsTrigger>\n        </UiTabsList>\n\n        <UiTabsContent value=\"details\" class=\"space-y-4\">\n          <dl class=\"grid grid-cols-[6rem_1fr] gap-x-3 gap-y-2 text-sm\">\n            <template v-for=\"row in file.meta\" :key=\"row.label\">\n              <dt class=\"text-muted-foreground\">{{ row.label }}</dt>\n              <dd class=\"truncate\">{{ row.value }}</dd>\n            </template>\n          </dl>\n          <div>\n            <p class=\"mb-2 text-sm font-medium\">Tags</p>\n            <div class=\"flex flex-wrap gap-1.5\">\n              <UiBadge v-for=\"tag in tags\" :key=\"tag\" variant=\"soft\" shape=\"pill\" class=\"gap-1\">\n                {{ tag }}\n                <button\n                  type=\"button\"\n                  :aria-label=\"`Remove tag ${tag}`\"\n                  @click=\"tags = tags.filter((item) => item !== tag)\"\n                >\n                  <Icon name=\"lucide:x\" class=\"size-3\" />\n                </button>\n              </UiBadge>\n              <span v-if=\"!tags.length\" class=\"text-muted-foreground text-sm\">No tags yet.</span>\n            </div>\n            <form class=\"mt-2 flex gap-2\" @submit.prevent=\"addTag\">\n              <UiInput v-model=\"newTag\" class=\"h-8\" placeholder=\"Add a tag\" aria-label=\"New tag\" />\n              <UiButton type=\"submit\" size=\"sm\" variant=\"outline\" :disabled=\"!newTag.trim()\"\n                >Add</UiButton\n              >\n            </form>\n          </div>\n        </UiTabsContent>\n\n        <UiTabsContent value=\"activity\">\n          <ol class=\"space-y-3 text-sm\">\n            <li v-for=\"item in file.activity\" :key=\"item.text\" class=\"flex gap-3\">\n              <UiAvatar\n                :src=\"`https://i.pravatar.cc/80?img=${item.avatar}`\"\n                :fallback=\"item.who.slice(0, 1)\"\n                class=\"size-7\"\n              />\n              <div>\n                <p><span class=\"font-medium\">{{ item.who }}</span> {{ item.text }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ item.when }}</p>\n              </div>\n            </li>\n          </ol>\n        </UiTabsContent>\n\n        <UiTabsContent value=\"sharing\" class=\"space-y-3\">\n          <ul class=\"space-y-2\">\n            <li\n              v-for=\"person in file.people\"\n              :key=\"person.name\"\n              class=\"flex items-center gap-3 text-sm\"\n            >\n              <UiAvatar\n                :src=\"`https://i.pravatar.cc/80?img=${person.avatar}`\"\n                :fallback=\"person.name.slice(0, 1)\"\n                class=\"size-8\"\n              />\n              <span class=\"flex-1 truncate\">{{ person.name }}</span>\n              <span class=\"text-muted-foreground capitalize\">{{ person.role }}</span>\n            </li>\n          </ul>\n        </UiTabsContent>\n      </UiTabs>\n\n      <div class=\"flex gap-2 border-t px-5 py-4\">\n        <UiButton\n          class=\"flex-1\"\n          variant=\"outline\"\n          size=\"sm\"\n          @click=\"useSonner.success(`Downloading ${file.name}`)\"\n          ><Icon name=\"lucide:download\" class=\"size-4\" />Download</UiButton\n        >\n        <UiButton class=\"flex-1\" variant=\"outline\" size=\"sm\" @click=\"tab = 'sharing'\"\n          ><Icon name=\"lucide:share-2\" class=\"size-4\" />Share</UiButton\n        >\n        <UiButton\n          variant=\"outline\"\n          size=\"icon-sm\"\n          class=\"text-destructive\"\n          aria-label=\"Delete file\"\n          @click=\"useSonner.success(`Moved ${file.name} to trash`)\"\n          ><Icon name=\"lucide:trash-2\" class=\"size-4\"\n        /></UiButton>\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type FileInfo = {\n    name: string;\n    type: string;\n    size: string;\n    preview: string;\n    meta: { label: string; value: string }[];\n    tags: string[];\n    activity: { who: string; avatar: number; text: string; when: string }[];\n    people: { name: string; avatar: number; role: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      file?: FileInfo;\n    }>(),\n    {\n      file: () => ({\n        name: \"Mountain lake.jpg\",\n        type: \"JPEG image\",\n        size: \"3.4 MB\",\n        preview: \"https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=640&q=70\",\n        meta: [\n          { label: \"Owner\", value: \"Maya Patel\" },\n          { label: \"Location\", value: \"My files / Photos\" },\n          { label: \"Modified\", value: \"Oct 16, 2026, 11:20 AM\" },\n          { label: \"Created\", value: \"Oct 16, 2026, 11:18 AM\" },\n          { label: \"Dimensions\", value: \"4032 x 3024\" },\n        ],\n        tags: [\"landscape\", \"brand\"],\n        activity: [\n          { who: \"Maya Patel\", avatar: 32, text: \"renamed the file\", when: \"Oct 16, 11:20 AM\" },\n          { who: \"Leo Fischer\", avatar: 12, text: \"viewed the file\", when: \"Oct 16, 1:05 PM\" },\n          { who: \"Maya Patel\", avatar: 32, text: \"uploaded the file\", when: \"Oct 16, 11:18 AM\" },\n        ],\n        people: [\n          { name: \"Maya Patel\", avatar: 32, role: \"owner\" },\n          { name: \"Leo Fischer\", avatar: 12, role: \"editor\" },\n          { name: \"Sofia Alvarez\", avatar: 45, role: \"viewer\" },\n        ],\n      }),\n    }\n  );\n\n  const tab = ref(\"details\");\n  const tags = ref([...props.file.tags]);\n  const newTag = ref(\"\");\n\n  function addTag() {\n    const value = newTag.value.trim().toLowerCase();\n    if (value && !tags.value.includes(value)) tags.value.push(value);\n    newTag.value = \"\";\n  }\n</script>\n","category":"Sharing","description":"File detail panel. Features: A preview, the name and type, tabs for details, activity and sharing, editable tags that can be added and removed, a metadata list, an activity list, avatars of who has access and download, share and delete actions","path":"Files/Sharing/BlockSharing4.vue","components":["avatar","badge","button","card","container","input","tabs"]},{"name":"Shop Hero 1","fileName":"BlockShopHero1.vue","file":"<template>\n  <!--\n    Shop hero with a product photo collage\n    Features: Headline and calls to action on the left, three staggered product photos on the right with a floating customer rating card, and a row of shipping, returns and warranty perks\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"grid items-center gap-12 lg:grid-cols-2 lg:gap-16\">\n      <Motion\n        :initial=\"{ opacity: 0, y: 20 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.5 }\"\n      >\n        <UiBadge variant=\"secondary\" size=\"md\" class=\"gap-1.5\">\n          <Icon name=\"lucide:sparkles\" />\n          {{ eyebrow }}\n        </UiBadge>\n        <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ title }}\n        </h1>\n        <p class=\"text-muted-foreground mt-6 max-w-lg text-lg\">{{ description }}</p>\n        <div class=\"mt-8 flex flex-wrap gap-3\">\n          <UiButton size=\"lg\">\n            Shop the collection\n            <Icon name=\"lucide:arrow-right\" />\n          </UiButton>\n          <UiButton variant=\"outline\" size=\"lg\">Browse the lookbook</UiButton>\n        </div>\n        <ul class=\"mt-12 grid max-w-lg grid-cols-1 gap-4 text-sm sm:grid-cols-3\">\n          <li v-for=\"perk in perks\" :key=\"perk.label\" class=\"flex items-center gap-2.5\">\n            <span class=\"bg-muted grid size-9 shrink-0 place-items-center rounded-full\">\n              <Icon :name=\"perk.icon\" class=\"size-4\" />\n            </span>\n            <span class=\"text-muted-foreground leading-tight\">{{ perk.label }}</span>\n          </li>\n        </ul>\n      </Motion>\n\n      <Motion\n        class=\"grid h-[440px] grid-cols-6 grid-rows-6 gap-3 sm:h-[560px] sm:gap-4\"\n        :initial=\"{ opacity: 0, scale: 0.96 }\"\n        :animate=\"{ opacity: 1, scale: 1 }\"\n        :transition=\"{ duration: 0.6, delay: 0.1 }\"\n      >\n        <div class=\"bg-muted col-span-4 row-span-4 overflow-hidden rounded-2xl sm:rounded-3xl\">\n          <img\n            :src=\"images[0]\"\n            alt=\"Rust bomber jacket on a hanger\"\n            class=\"size-full object-cover\"\n          />\n        </div>\n        <div class=\"bg-muted col-span-2 row-span-3 overflow-hidden rounded-2xl sm:rounded-3xl\">\n          <img :src=\"images[1]\" alt=\"Yellow over-ear headphones\" class=\"size-full object-cover\" />\n        </div>\n        <div class=\"bg-muted col-span-2 row-span-3 overflow-hidden rounded-2xl sm:rounded-3xl\">\n          <img\n            :src=\"images[2]\"\n            alt=\"Soy candle burning in a glass jar\"\n            class=\"size-full object-cover\"\n          />\n        </div>\n        <div\n          class=\"bg-card col-span-4 row-span-2 flex flex-col justify-center gap-2 rounded-2xl border p-4 shadow-sm sm:rounded-3xl sm:p-6\"\n        >\n          <div class=\"flex items-center gap-2\">\n            <UiRating\n              :model-value=\"4.9\"\n              size=\"sm\"\n              icon=\"mdi:star\"\n              filled-icon-class-name=\"text-amber-400\"\n            />\n            <span class=\"text-sm font-semibold\">4.9</span>\n          </div>\n          <p class=\"text-muted-foreground text-sm\">\n            “Beautifully made and it arrived in two days.”\n          </p>\n          <p class=\"text-xs font-medium\">Sarah J. · 2,300+ verified reviews</p>\n        </div>\n      </Motion>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Perk = { icon: string; label: string };\n\n  withDefaults(\n    defineProps<{\n      eyebrow?: string;\n      title?: string;\n      description?: string;\n      perks?: Perk[];\n      images?: [string, string, string];\n    }>(),\n    {\n      eyebrow: \"Autumn collection is here\",\n      title: \"Everyday pieces made to last.\",\n      description:\n        \"Considered essentials in honest materials, from soft knits to stoneware. Designed in small batches and shipped free over $75.\",\n      perks: () => [\n        { icon: \"lucide:truck\", label: \"Free shipping over $75\" },\n        { icon: \"lucide:rotate-ccw\", label: \"30 day free returns\" },\n        { icon: \"lucide:shield-check\", label: \"2 year warranty\" },\n      ],\n      images: () => [\n        \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1000&q=80\",\n        \"https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=600&q=80\",\n        \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=600&q=80\",\n      ],\n    }\n  );\n</script>\n","category":"ShopHero","description":"Shop hero with a product photo collage. Features: Headline and calls to action on the left, three staggered product photos on the right with a floating customer rating card, and a row of shipping, returns and warranty perks","path":"Ecommerce/ShopHero/BlockShopHero1.vue","components":["badge","button","container","rating"]},{"name":"Shop Hero 2","fileName":"BlockShopHero2.vue","file":"<template>\n  <!--\n    Centered shop hero with category tiles\n    Features: Centered headline with two calls to action, a promo strip, and four image tiles that link straight into the main categories with a hover lift\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl text-center\">\n      <Motion\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.5 }\"\n      >\n        <a\n          href=\"#\"\n          class=\"bg-muted hover:bg-muted/70 inline-flex items-center gap-2 rounded-full px-4 py-1.5 text-sm transition\"\n        >\n          <span class=\"font-medium\">{{ promo }}</span>\n          <Icon name=\"lucide:arrow-right\" class=\"size-3.5\" />\n        </a>\n        <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n          {{ title }}\n        </h1>\n        <p class=\"text-muted-foreground mx-auto mt-6 max-w-xl text-lg\">{{ description }}</p>\n        <div class=\"mt-8 flex flex-wrap justify-center gap-3\">\n          <UiButton size=\"lg\">Shop new arrivals</UiButton>\n          <UiButton variant=\"outline\" size=\"lg\">See best sellers</UiButton>\n        </div>\n      </Motion>\n    </div>\n\n    <ul class=\"mt-16 grid grid-cols-2 gap-4 lg:grid-cols-4 lg:gap-6\">\n      <Motion\n        v-for=\"(category, i) in categories\"\n        :key=\"category.name\"\n        as=\"li\"\n        :initial=\"{ opacity: 0, y: 24 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.45, delay: 0.15 + i * 0.08 }\"\n      >\n        <a\n          :href=\"category.href\"\n          class=\"group focus-visible:ring-ring block rounded-2xl focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n        >\n          <div class=\"bg-muted overflow-hidden rounded-2xl\">\n            <UiAspectRatio :ratio=\"1\">\n              <img\n                :src=\"category.image\"\n                :alt=\"category.name\"\n                loading=\"lazy\"\n                class=\"size-full object-cover transition duration-500 group-hover:scale-105\"\n              />\n            </UiAspectRatio>\n          </div>\n          <div class=\"mt-3 flex items-center justify-between\">\n            <span class=\"font-medium\">{{ category.name }}</span>\n            <Icon\n              name=\"lucide:arrow-up-right\"\n              class=\"text-muted-foreground size-4 transition group-hover:translate-x-0.5 group-hover:-translate-y-0.5\"\n            />\n          </div>\n        </a>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Category = { name: string; image: string; href: string };\n\n  withDefaults(\n    defineProps<{\n      promo?: string;\n      title?: string;\n      description?: string;\n      categories?: Category[];\n    }>(),\n    {\n      promo: \"Free shipping on orders over $75\",\n      title: \"Find something you will keep for years.\",\n      description:\n        \"Footwear, audio, bags and home goods, chosen for how well they age. Browse by category or start with what is new this week.\",\n      categories: () => [\n        {\n          name: \"Footwear\",\n          image:\n            \"https://images.unsplash.com/photo-1560343090-f0409e92791a?auto=format&fit=crop&w=700&q=80\",\n          href: \"#\",\n        },\n        {\n          name: \"Audio\",\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=700&q=80\",\n          href: \"#\",\n        },\n        {\n          name: \"Bags\",\n          image:\n            \"https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=700&q=80\",\n          href: \"#\",\n        },\n        {\n          name: \"Home\",\n          image:\n            \"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=700&q=80\",\n          href: \"#\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"ShopHero","description":"Centered shop hero with category tiles. Features: Centered headline with two calls to action, a promo strip, and four image tiles that link straight into the main categories with a hover lift","path":"Ecommerce/ShopHero/BlockShopHero2.vue","components":["aspect-ratio","button","container"]},{"name":"Shop Hero 3","fileName":"BlockShopHero3.vue","file":"<template>\n  <!--\n    Full bleed shop hero with image overlay\n    Features: Edge to edge photo with a dark gradient scrim, left aligned headline and calls to action, a small promo ribbon and scroll cue, text stays readable on any photo\n  -->\n  <section\n    class=\"relative isolate flex min-h-[560px] items-center overflow-hidden lg:min-h-[680px]\"\n  >\n    <img\n      :src=\"image\"\n      :alt=\"imageAlt\"\n      class=\"absolute inset-0 -z-20 size-full object-cover object-[center_45%]\"\n    />\n    <div\n      class=\"absolute inset-0 -z-10 bg-gradient-to-r from-black/80 via-black/50 to-black/10\"\n      aria-hidden=\"true\"\n    />\n\n    <UiContainer class=\"py-20\">\n      <Motion\n        class=\"max-w-xl text-white\"\n        :initial=\"{ opacity: 0, y: 24 }\"\n        :animate=\"{ opacity: 1, y: 0 }\"\n        :transition=\"{ duration: 0.6 }\"\n      >\n        <p\n          class=\"inline-flex items-center gap-2 rounded-full bg-white/15 px-3 py-1 text-xs font-medium tracking-wide uppercase backdrop-blur\"\n        >\n          <Icon name=\"lucide:gift\" class=\"size-3.5\" />\n          {{ ribbon }}\n        </p>\n        <h1 class=\"mt-6 text-5xl font-bold tracking-tight text-balance sm:text-7xl\">\n          {{ title }}\n        </h1>\n        <p class=\"mt-6 max-w-md text-lg text-white/80\">{{ description }}</p>\n        <div class=\"mt-10 flex flex-wrap gap-3\">\n          <UiButton size=\"lg\" class=\"bg-white text-black hover:bg-white/90\">\n            Shop for the home\n          </UiButton>\n          <UiButton\n            size=\"lg\"\n            variant=\"outline\"\n            class=\"border-white/40 bg-transparent text-white hover:bg-white/10 hover:text-white\"\n          >\n            View lookbook\n          </UiButton>\n        </div>\n      </Motion>\n    </UiContainer>\n\n    <a\n      href=\"#\"\n      class=\"absolute bottom-6 left-1/2 hidden -translate-x-1/2 text-white/70 transition hover:text-white sm:block\"\n      aria-label=\"Scroll to products\"\n    >\n      <Icon name=\"lucide:chevrons-down\" class=\"size-6 animate-bounce\" />\n    </a>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      ribbon?: string;\n      title?: string;\n      description?: string;\n      image?: string;\n      imageAlt?: string;\n    }>(),\n    {\n      ribbon: \"Free gift wrap this week\",\n      title: \"Make the house feel like autumn.\",\n      description:\n        \"Hand poured soy candles, stoneware and soft throws for slower evenings. Small batches, natural wax and free gift wrapping on every order.\",\n      image:\n        \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=2000&q=80\",\n      imageAlt: \"Soy candle burning in a glass jar beside a small plant\",\n    }\n  );\n</script>\n","category":"ShopHero","description":"Full bleed shop hero with image overlay. Features: Edge to edge photo with a dark gradient scrim, left aligned headline and calls to action, a small promo ribbon and scroll cue, text stays readable on any photo","path":"Ecommerce/ShopHero/BlockShopHero3.vue","components":["button","container"]},{"name":"Shop Hero 4","fileName":"BlockShopHero4.vue","file":"<template>\n  <!--\n    Featured product spotlight hero\n    Features: Large product photo with a product of the week badge and discount tag, rating, compare at price, color swatches, add to cart with confirmation, wishlist toggle and delivery perks\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"grid items-center gap-10 lg:grid-cols-2 lg:gap-16\">\n      <Motion\n        class=\"bg-muted relative overflow-hidden rounded-3xl\"\n        :initial=\"{ opacity: 0, scale: 0.97 }\"\n        :animate=\"{ opacity: 1, scale: 1 }\"\n        :transition=\"{ duration: 0.5 }\"\n      >\n        <UiAspectRatio :ratio=\"1\">\n          <img :src=\"product.image\" :alt=\"product.name\" class=\"size-full object-cover\" />\n        </UiAspectRatio>\n        <UiBadge class=\"absolute top-5 left-5\" size=\"md\">{{ eyebrow }}</UiBadge>\n        <UiBadge v-if=\"discount\" variant=\"destructive\" size=\"md\" class=\"absolute top-5 right-5\">\n          -{{ discount }}%\n        </UiBadge>\n      </Motion>\n\n      <Motion\n        :initial=\"{ opacity: 0, x: 24 }\"\n        :animate=\"{ opacity: 1, x: 0 }\"\n        :transition=\"{ duration: 0.5, delay: 0.1 }\"\n      >\n        <p class=\"text-muted-foreground text-sm tracking-wide uppercase\">{{ product.category }}</p>\n        <h1 class=\"mt-2 text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n          {{ product.name }}\n        </h1>\n        <div class=\"mt-4 flex items-center gap-2\">\n          <UiRating\n            :model-value=\"product.rating\"\n            size=\"sm\"\n            icon=\"mdi:star\"\n            filled-icon-class-name=\"text-amber-400\"\n          />\n          <span class=\"text-muted-foreground text-sm\">\n            {{ product.rating }} · {{ product.reviews }} reviews\n          </span>\n        </div>\n        <p class=\"mt-6 flex items-baseline gap-3\">\n          <span class=\"text-3xl font-semibold\">{{ money.format(product.price) }}</span>\n          <span v-if=\"product.compareAt\" class=\"text-muted-foreground text-lg line-through\">\n            {{ money.format(product.compareAt) }}\n          </span>\n        </p>\n        <p class=\"text-muted-foreground mt-6 max-w-lg\">{{ product.description }}</p>\n\n        <fieldset class=\"mt-8\">\n          <legend class=\"mb-3 text-sm font-medium\">\n            Color: <span class=\"text-muted-foreground font-normal\">{{ color.name }}</span>\n          </legend>\n          <div class=\"flex gap-3\">\n            <button\n              v-for=\"c in product.colors\"\n              :key=\"c.hex\"\n              type=\"button\"\n              class=\"focus-visible:ring-ring size-9 rounded-full border transition focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n              :class=\"color.hex === c.hex ? 'ring-primary ring-2 ring-offset-2' : ''\"\n              :style=\"{ backgroundColor: c.hex }\"\n              :aria-label=\"c.name\"\n              :aria-pressed=\"color.hex === c.hex\"\n              @click=\"color = c\"\n            />\n          </div>\n        </fieldset>\n\n        <div class=\"mt-8 flex gap-3\">\n          <UiButton size=\"lg\" class=\"flex-1 sm:flex-none sm:px-10\" @click=\"addToCart\">\n            <Icon :name=\"added ? 'lucide:check' : 'lucide:shopping-bag'\" />\n            {{ added ? \"Added to cart\" : \"Add to cart\" }}\n          </UiButton>\n          <UiButton\n            variant=\"outline\"\n            size=\"icon-lg\"\n            :aria-pressed=\"wishlisted\"\n            :aria-label=\"wishlisted ? 'Remove from wishlist' : 'Add to wishlist'\"\n            @click=\"wishlisted = !wishlisted\"\n          >\n            <Icon name=\"lucide:heart\" :class=\"wishlisted ? 'fill-red-500 text-red-500' : ''\" />\n          </UiButton>\n        </div>\n\n        <ul class=\"mt-8 space-y-3 border-t pt-6 text-sm\">\n          <li v-for=\"perk in perks\" :key=\"perk.label\" class=\"flex items-center gap-3\">\n            <Icon :name=\"perk.icon\" class=\"text-muted-foreground size-4\" />\n            {{ perk.label }}\n          </li>\n        </ul>\n      </Motion>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    name: string;\n    category: string;\n    description: string;\n    price: number;\n    compareAt?: number;\n    rating: number;\n    reviews: number;\n    colors: { name: string; hex: string }[];\n    image: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      eyebrow?: string;\n      product?: Product;\n      perks?: { icon: string; label: string }[];\n    }>(),\n    {\n      eyebrow: \"Product of the week\",\n      product: () => ({\n        name: \"Minimal Watch\",\n        category: \"Accessories\",\n        description:\n          \"A quiet, sapphire glass watch with a soft silicone strap. Water resistant to 50 meters and light enough to forget you are wearing it.\",\n        price: 149,\n        compareAt: 189,\n        rating: 4.6,\n        reviews: 132,\n        colors: [\n          { name: \"White\", hex: \"#f4f4f5\" },\n          { name: \"Black\", hex: \"#18181b\" },\n        ],\n        image:\n          \"https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=1200&q=80\",\n      }),\n      perks: () => [\n        { icon: \"lucide:truck\", label: \"Free delivery in 2 to 4 days\" },\n        { icon: \"lucide:rotate-ccw\", label: \"Free 30 day returns\" },\n        { icon: \"lucide:shield-check\", label: \"2 year warranty included\" },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const color = ref(props.product.colors[0]!);\n  const added = ref(false);\n  const wishlisted = ref(false);\n\n  const discount = computed(() =>\n    props.product.compareAt\n      ? Math.round((1 - props.product.price / props.product.compareAt) * 100)\n      : 0\n  );\n\n  // Replace this with a call to your cart store or API.\n  function addToCart() {\n    added.value = true;\n    setTimeout(() => (added.value = false), 1800);\n  }\n</script>\n","category":"ShopHero","description":"Featured product spotlight hero. Features: Large product photo with a product of the week badge and discount tag, rating, compare at price, color swatches, add to cart with confirmation, wishlist toggle and delivery perks","path":"Ecommerce/ShopHero/BlockShopHero4.vue","components":["aspect-ratio","badge","button","container","rating"]},{"name":"Shop Hero 5","fileName":"BlockShopHero5.vue","file":"<template>\n  <!--\n    Sale hero with a live countdown\n    Features: Dark promo panel with a headline discount, a countdown to days, hours, minutes and seconds that ticks every second, a screen reader friendly summary and two tilted product photos\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div\n      class=\"relative isolate overflow-hidden rounded-3xl bg-zinc-950 px-6 py-12 text-white ring-1 ring-white/10 sm:px-12 lg:px-16 lg:py-16\"\n    >\n      <div\n        class=\"absolute -top-24 -right-24 -z-10 size-96 rounded-full bg-orange-500/30 blur-3xl\"\n        aria-hidden=\"true\"\n      />\n      <div class=\"grid items-center gap-12 lg:grid-cols-[1.1fr_0.9fr]\">\n        <Motion\n          :initial=\"{ opacity: 0, y: 20 }\"\n          :animate=\"{ opacity: 1, y: 0 }\"\n          :transition=\"{ duration: 0.5 }\"\n        >\n          <p\n            class=\"inline-flex items-center gap-2 rounded-full bg-orange-500/15 px-3 py-1 text-xs font-semibold tracking-wide text-orange-300 uppercase\"\n          >\n            <span class=\"relative flex size-2\">\n              <span\n                class=\"absolute inline-flex size-full animate-ping rounded-full bg-orange-400 opacity-75\"\n              />\n              <span class=\"relative inline-flex size-2 rounded-full bg-orange-400\" />\n            </span>\n            {{ eyebrow }}\n          </p>\n          <h1 class=\"mt-6 text-4xl font-bold tracking-tight text-balance sm:text-6xl\">\n            {{ title }}\n          </h1>\n          <p class=\"mt-4 max-w-md text-lg text-white/70\">{{ description }}</p>\n\n          <p class=\"sr-only\" role=\"timer\" aria-live=\"off\">\n            Sale ends in {{ parts[0]!.value }} days, {{ parts[1]!.value }} hours and\n            {{ parts[2]!.value }} minutes.\n          </p>\n          <dl class=\"mt-8 flex gap-3 sm:gap-4\" aria-hidden=\"true\">\n            <div\n              v-for=\"part in parts\"\n              :key=\"part.label\"\n              class=\"w-16 rounded-xl bg-white/10 py-3 text-center backdrop-blur sm:w-20\"\n            >\n              <dt class=\"sr-only\">{{ part.label }}</dt>\n              <dd class=\"text-2xl font-bold tabular-nums sm:text-3xl\">\n                {{ String(part.value).padStart(2, \"0\") }}\n              </dd>\n              <p class=\"text-xs text-white/60\">{{ part.label }}</p>\n            </div>\n          </dl>\n\n          <div class=\"mt-10 flex flex-wrap items-center gap-4\">\n            <UiButton size=\"lg\" class=\"bg-orange-500 text-white hover:bg-orange-400\">\n              Shop the sale\n              <Icon name=\"lucide:arrow-right\" />\n            </UiButton>\n            <span class=\"text-sm text-white/60\"\n              >Use code <strong class=\"text-white\">AUTUMN40</strong></span\n            >\n          </div>\n        </Motion>\n\n        <Motion\n          class=\"relative mx-auto h-72 w-full max-w-md sm:h-96\"\n          :initial=\"{ opacity: 0, scale: 0.95 }\"\n          :animate=\"{ opacity: 1, scale: 1 }\"\n          :transition=\"{ duration: 0.6, delay: 0.1 }\"\n        >\n          <img\n            :src=\"images[0]\"\n            alt=\"Studio over-ear headphones\"\n            class=\"absolute top-0 left-0 h-[78%] w-[58%] -rotate-6 rounded-2xl object-cover shadow-2xl\"\n          />\n          <img\n            :src=\"images[1]\"\n            alt=\"Rust bomber jacket\"\n            class=\"absolute right-0 bottom-0 h-[78%] w-[58%] rotate-6 rounded-2xl object-cover shadow-2xl\"\n          />\n          <span\n            class=\"absolute top-1/2 left-1/2 grid size-20 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-orange-500 text-center text-sm leading-tight font-bold shadow-lg\"\n          >\n            Up to<br />40% off\n          </span>\n        </Motion>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      eyebrow?: string;\n      title?: string;\n      description?: string;\n      /** ISO date for when the sale ends. Defaults to a few days from now. */\n      endsAt?: string;\n      images?: [string, string];\n    }>(),\n    {\n      eyebrow: \"Autumn sale is live\",\n      title: \"Up to 40% off the season's best sellers.\",\n      description: \"Headphones, outerwear and everyday bags at their lowest prices of the year.\",\n      endsAt: () => new Date(Date.now() + (3 * 24 + 7) * 3_600_000).toISOString(),\n      images: () => [\n        \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=700&q=80\",\n        \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=700&q=80\",\n      ],\n    }\n  );\n\n  // Time is read after mount so server and client markup match.\n  const now = ref(0);\n  const mounted = ref(false);\n\n  onMounted(() => {\n    now.value = Date.now();\n    mounted.value = true;\n  });\n  useIntervalFn(() => (now.value = Date.now()), 1000);\n\n  const parts = computed(() => {\n    const ms = mounted.value ? Math.max(0, Date.parse(props.endsAt) - now.value) : 0;\n    const total = Math.floor(ms / 1000);\n    return [\n      { label: \"Days\", value: Math.floor(total / 86400) },\n      { label: \"Hours\", value: Math.floor((total % 86400) / 3600) },\n      { label: \"Minutes\", value: Math.floor((total % 3600) / 60) },\n      { label: \"Seconds\", value: total % 60 },\n    ];\n  });\n</script>\n","category":"ShopHero","description":"Sale hero with a live countdown. Features: Dark promo panel with a headline discount, a countdown to days, hours, minutes and seconds that ticks every second, a screen reader friendly summary and two tilted product photos","path":"Ecommerce/ShopHero/BlockShopHero5.vue","components":["button","container"]},{"name":"Shop Hero 6","fileName":"BlockShopHero6.vue","file":"<template>\n  <!--\n    Shop hero slider that rotates on its own\n    Features: Embla carousel with three tinted promo slides, rotates every few seconds, pauses on hover, focus or with a play pause button, respects reduced motion, arrows and dot navigation\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div\n      role=\"group\"\n      aria-label=\"Featured promotions\"\n      class=\"relative\"\n      @mouseenter=\"hovering = true\"\n      @mouseleave=\"hovering = false\"\n      @focusin=\"focused = true\"\n      @focusout=\"focused = false\"\n    >\n      <UiCarousel :opts=\"{ loop: true }\" class=\"overflow-hidden rounded-3xl\" @init-api=\"onInit\">\n        <UiCarouselContent>\n          <UiCarouselItem\n            v-for=\"(slide, i) in slides\"\n            :key=\"slide.title\"\n            role=\"group\"\n            aria-roledescription=\"slide\"\n            :aria-label=\"`${i + 1} of ${slides.length}`\"\n          >\n            <div class=\"grid min-h-[480px] md:grid-cols-2\" :class=\"slide.tone\">\n              <div class=\"flex flex-col justify-center gap-5 p-8 sm:p-12 lg:p-16\">\n                <p class=\"text-sm font-semibold tracking-wide uppercase opacity-70\">\n                  {{ slide.eyebrow }}\n                </p>\n                <h2 class=\"text-4xl font-bold tracking-tight text-balance sm:text-5xl\">\n                  {{ slide.title }}\n                </h2>\n                <p class=\"max-w-md text-lg opacity-80\">{{ slide.description }}</p>\n                <div>\n                  <UiButton size=\"lg\" as=\"a\" :href=\"slide.href\">\n                    {{ slide.cta }}\n                    <Icon name=\"lucide:arrow-right\" />\n                  </UiButton>\n                </div>\n              </div>\n              <div class=\"relative min-h-64\">\n                <img\n                  :src=\"slide.image\"\n                  :alt=\"slide.imageAlt\"\n                  class=\"absolute inset-0 size-full object-cover\"\n                  draggable=\"false\"\n                />\n              </div>\n            </div>\n          </UiCarouselItem>\n        </UiCarouselContent>\n      </UiCarousel>\n\n      <div class=\"mt-5 flex items-center justify-between gap-4\">\n        <div class=\"flex items-center gap-2\" role=\"group\" aria-label=\"Choose a slide\">\n          <button\n            v-for=\"(slide, i) in slides\"\n            :key=\"slide.title\"\n            type=\"button\"\n            class=\"focus-visible:ring-ring h-2 rounded-full transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none\"\n            :class=\"i === index ? 'bg-primary w-8' : 'bg-muted-foreground/30 w-2'\"\n            :aria-label=\"`Go to slide ${i + 1}`\"\n            :aria-current=\"i === index\"\n            @click=\"api?.scrollTo(i)\"\n          />\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <UiButton\n            variant=\"outline\"\n            size=\"icon-sm\"\n            class=\"rounded-full\"\n            :aria-label=\"playing ? 'Pause slideshow' : 'Play slideshow'\"\n            @click=\"playing = !playing\"\n          >\n            <Icon :name=\"playing ? 'lucide:pause' : 'lucide:play'\" />\n          </UiButton>\n          <UiButton\n            variant=\"outline\"\n            size=\"icon-sm\"\n            class=\"rounded-full\"\n            aria-label=\"Previous slide\"\n            @click=\"api?.scrollPrev()\"\n          >\n            <Icon name=\"lucide:arrow-left\" />\n          </UiButton>\n          <UiButton\n            variant=\"outline\"\n            size=\"icon-sm\"\n            class=\"rounded-full\"\n            aria-label=\"Next slide\"\n            @click=\"api?.scrollNext()\"\n          >\n            <Icon name=\"lucide:arrow-right\" />\n          </UiButton>\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Slide = {\n    eyebrow: string;\n    title: string;\n    description: string;\n    cta: string;\n    href: string;\n    image: string;\n    imageAlt: string;\n    tone: string;\n  };\n\n  type EmblaLike = {\n    scrollNext: () => void;\n    scrollPrev: () => void;\n    scrollTo: (index: number) => void;\n    selectedScrollSnap: () => number;\n    on: (event: \"select\", callback: () => void) => void;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      slides?: Slide[];\n      /** Milliseconds between automatic slide changes. */\n      interval?: number;\n    }>(),\n    {\n      interval: 5000,\n      slides: () => [\n        {\n          eyebrow: \"New season\",\n          title: \"Layers for the first cold mornings.\",\n          description: \"Bomber jackets, knits and everyday outerwear, restocked this week.\",\n          cta: \"Shop outerwear\",\n          href: \"#\",\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=1200&q=80\",\n          imageAlt: \"Rust bomber jacket on a hanger\",\n          tone: \"bg-amber-50 text-amber-950 dark:bg-amber-950/40 dark:text-amber-50\",\n        },\n        {\n          eyebrow: \"Listen closer\",\n          title: \"Studio sound without the studio price.\",\n          description: \"Our best selling over-ear headphones are now $50 off for a limited time.\",\n          cta: \"Shop audio\",\n          href: \"#\",\n          image:\n            \"https://images.unsplash.com/photo-1583394838336-acd977736f90?auto=format&fit=crop&w=1200&q=80\",\n          imageAlt: \"Black over-ear headphones\",\n          tone: \"bg-sky-50 text-sky-950 dark:bg-sky-950/40 dark:text-sky-50\",\n        },\n        {\n          eyebrow: \"Slow evenings\",\n          title: \"Make the house smell like autumn.\",\n          description: \"Hand poured soy candles and stoneware, gift wrapped for free.\",\n          cta: \"Shop for home\",\n          href: \"#\",\n          image:\n            \"https://images.unsplash.com/photo-1602874801007-bd458bb1b8b6?auto=format&fit=crop&w=1200&q=80\",\n          imageAlt: \"Soy candle burning in a glass jar\",\n          tone: \"bg-rose-50 text-rose-950 dark:bg-rose-950/40 dark:text-rose-50\",\n        },\n      ],\n    }\n  );\n\n  const api = shallowRef<EmblaLike>();\n  const index = ref(0);\n  const playing = ref(true);\n  const hovering = ref(false);\n  const focused = ref(false);\n  const reducedMotion = usePreferredReducedMotion();\n\n  function onInit(embla: EmblaLike) {\n    api.value = embla;\n    index.value = embla.selectedScrollSnap();\n    embla.on(\"select\", () => (index.value = embla.selectedScrollSnap()));\n  }\n\n  const running = computed(\n    () => playing.value && !hovering.value && !focused.value && reducedMotion.value !== \"reduce\"\n  );\n\n  const { pause, resume } = useIntervalFn(() => api.value?.scrollNext(), props.interval, {\n    immediate: false,\n  });\n  watch(running, (value) => (value ? resume() : pause()), { immediate: true });\n</script>\n","category":"ShopHero","description":"Shop hero slider that rotates on its own. Features: Embla carousel with three tinted promo slides, rotates every few seconds, pauses on hover, focus or with a play pause button, respects reduced motion, arrows and dot navigation","path":"Ecommerce/ShopHero/BlockShopHero6.vue","components":["button","carousel","container"]},{"name":"App Sidebar 1","fileName":"BlockAppSidebar1.vue","file":"<template>\n  <!--\n    Workspace sidebar that collapses to icons\n    Features: Workspace switcher dropdown, command search button, collapsible nav groups with badges, projects with hover actions, storage usage card that hides when collapsed, user menu in the footer\n  -->\n  <UiSidebarProvider v-slot=\"{ isMobile }\">\n    <UiSidebar collapsible=\"icon\" class=\"*:data-[sidebar=sidebar]:bg-(--sidebar)\">\n      <UiSidebarHeader>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon :name=\"workspace.icon\" class=\"size-4\" />\n                  </div>\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">{{ workspace.name }}</span>\n                    <span class=\"truncate text-xs\">{{ workspace.plan }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"w-(--reka-dropdown-menu-trigger-width) min-w-56\"\n                align=\"start\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n              >\n                <UiDropdownMenuLabel class=\"text-muted-foreground text-xs\">\n                  Workspaces\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuItem\n                  v-for=\"item in workspaces\"\n                  :key=\"item.name\"\n                  class=\"gap-2\"\n                  @select=\"workspace = item\"\n                >\n                  <div class=\"flex size-6 items-center justify-center rounded-md border\">\n                    <Icon :name=\"item.icon\" class=\"size-3.5\" />\n                  </div>\n                  {{ item.name }}\n                  <Icon v-if=\"item.name === workspace.name\" name=\"lucide:check\" class=\"ml-auto\" />\n                </UiDropdownMenuItem>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem class=\"gap-2\">\n                  <div\n                    class=\"flex size-6 items-center justify-center rounded-md border border-dashed\"\n                  >\n                    <Icon name=\"lucide:plus\" class=\"size-3.5\" />\n                  </div>\n                  <span class=\"text-muted-foreground font-medium\">Add workspace</span>\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n          <UiSidebarMenuItem>\n            <UiSidebarMenuButton tooltip=\"Search\" class=\"text-muted-foreground border\">\n              <Icon name=\"lucide:search\" />\n              <span>Search</span>\n              <UiKbd class=\"ml-auto group-data-[collapsible=icon]:hidden\">⌘K</UiKbd>\n            </UiSidebarMenuButton>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarHeader>\n\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Platform\" />\n          <UiSidebarMenu>\n            <template v-for=\"item in nav\" :key=\"item.title\">\n              <UiCollapsible\n                v-if=\"item.items\"\n                v-slot=\"{ open }\"\n                as-child\n                :default-open=\"item.active\"\n              >\n                <UiSidebarMenuItem>\n                  <UiCollapsibleTrigger as-child>\n                    <UiSidebarMenuButton :tooltip=\"item.title\">\n                      <Icon :name=\"item.icon\" />\n                      <span>{{ item.title }}</span>\n                      <Icon\n                        name=\"lucide:chevron-right\"\n                        class=\"ml-auto transition-transform duration-200\"\n                        :class=\"open && 'rotate-90'\"\n                      />\n                    </UiSidebarMenuButton>\n                  </UiCollapsibleTrigger>\n                  <UiCollapsibleContent>\n                    <UiSidebarMenuSub>\n                      <UiSidebarMenuSubItem v-for=\"sub in item.items\" :key=\"sub\">\n                        <UiSidebarMenuSubButton as-child>\n                          <NuxtLink to=\"#\">{{ sub }}</NuxtLink>\n                        </UiSidebarMenuSubButton>\n                      </UiSidebarMenuSubItem>\n                    </UiSidebarMenuSub>\n                  </UiCollapsibleContent>\n                </UiSidebarMenuItem>\n              </UiCollapsible>\n              <UiSidebarMenuItem v-else>\n                <UiSidebarMenuButton as-child :tooltip=\"item.title\" :is-active=\"item.active\">\n                  <NuxtLink to=\"#\">\n                    <Icon :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </NuxtLink>\n                </UiSidebarMenuButton>\n                <UiSidebarMenuBadge v-if=\"item.badge\">{{ item.badge }}</UiSidebarMenuBadge>\n              </UiSidebarMenuItem>\n            </template>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n\n        <UiSidebarGroup class=\"group-data-[collapsible=icon]:hidden\">\n          <UiSidebarGroupLabel label=\"Projects\" />\n          <UiSidebarGroupAction title=\"New project\">\n            <Icon name=\"lucide:plus\" />\n            <span class=\"sr-only\">New project</span>\n          </UiSidebarGroupAction>\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"project in projects\" :key=\"project.name\">\n              <UiSidebarMenuButton as-child>\n                <NuxtLink to=\"#\">\n                  <span class=\"size-2 rounded-full\" :class=\"project.color\" />\n                  <span>{{ project.name }}</span>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiSidebarMenuAction show-on-hover>\n                    <Icon name=\"lucide:ellipsis\" />\n                    <span class=\"sr-only\">More</span>\n                  </UiSidebarMenuAction>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent\n                  class=\"w-44\"\n                  :side=\"isMobile ? 'bottom' : 'right'\"\n                  align=\"start\"\n                >\n                  <UiDropdownMenuItem icon=\"lucide:folder-open\" title=\"Open\" />\n                  <UiDropdownMenuItem icon=\"lucide:share-2\" title=\"Share\" />\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem variant=\"destructive\" icon=\"lucide:trash-2\" title=\"Delete\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n\n      <UiSidebarFooter>\n        <div\n          v-if=\"showStorage\"\n          class=\"bg-sidebar-accent/60 relative rounded-lg border p-3 group-data-[collapsible=icon]:hidden\"\n        >\n          <button\n            type=\"button\"\n            class=\"text-muted-foreground hover:text-foreground absolute top-2 right-2\"\n            aria-label=\"Dismiss\"\n            @click=\"showStorage = false\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-3.5\" />\n          </button>\n          <p class=\"text-sm font-medium\">Storage almost full</p>\n          <p class=\"text-muted-foreground mt-0.5 text-xs\">8.2 GB of 10 GB used</p>\n          <UiProgress :model-value=\"82\" class=\"mt-3 h-1.5\" />\n          <UiButton size=\"xs\" class=\"mt-3 w-full\">Upgrade plan</UiButton>\n        </div>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <UiAvatar\n                    src=\"https://i.pravatar.cc/80?img=47\"\n                    fallback=\"MC\"\n                    class=\"size-8 rounded-lg\"\n                  />\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">Maya Chen</span>\n                    <span class=\"truncate text-xs\">maya@uithing.com</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"w-(--reka-dropdown-menu-trigger-width) min-w-56\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                align=\"end\"\n              >\n                <UiDropdownMenuItem icon=\"lucide:user\" title=\"Account\" />\n                <UiDropdownMenuItem icon=\"lucide:credit-card\" title=\"Billing\" />\n                <UiDropdownMenuItem icon=\"lucide:bell\" title=\"Notifications\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n      <UiSidebarRail />\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header class=\"flex h-14 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiSeparator orientation=\"vertical\" class=\"mr-2 h-4\" />\n        <h1 class=\"text-sm font-medium\">{{ workspace.name }}</h1>\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 p-4\">\n        <div class=\"grid gap-4 md:grid-cols-3\">\n          <div v-for=\"n in 3\" :key=\"n\" class=\"bg-muted/50 aspect-video rounded-xl\" />\n        </div>\n        <div class=\"bg-muted/50 min-h-48 flex-1 rounded-xl\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  type NavItem = {\n    title: string;\n    icon: string;\n    active?: boolean;\n    badge?: string;\n    items?: string[];\n  };\n\n  const workspaces = [\n    { name: \"Acme Inc.\", plan: \"Enterprise\", icon: \"lucide:building-2\" },\n    { name: \"Northwind\", plan: \"Pro\", icon: \"lucide:compass\" },\n    { name: \"Side project\", plan: \"Free\", icon: \"lucide:rocket\" },\n  ];\n  const workspace = ref(workspaces[0]!);\n\n  const nav: NavItem[] = [\n    { title: \"Dashboard\", icon: \"lucide:layout-dashboard\", active: true },\n    { title: \"Inbox\", icon: \"lucide:inbox\", badge: \"12\" },\n    {\n      title: \"Analytics\",\n      icon: \"lucide:chart-no-axes-combined\",\n      items: [\"Overview\", \"Reports\", \"Audiences\"],\n    },\n    { title: \"Customers\", icon: \"lucide:users\", items: [\"All customers\", \"Segments\", \"Imports\"] },\n    { title: \"Settings\", icon: \"lucide:settings\" },\n  ];\n\n  const projects = [\n    { name: \"Website redesign\", color: \"bg-violet-500\" },\n    { name: \"Mobile app\", color: \"bg-sky-500\" },\n    { name: \"Brand refresh\", color: \"bg-amber-500\" },\n  ];\n\n  const showStorage = ref(true);\n</script>\n","category":"Sidebar","description":"Workspace sidebar that collapses to icons. Features: Workspace switcher dropdown, command search button, collapsible nav groups with badges, projects with hover actions, storage usage card that hides when collapsed, user menu in the footer","path":"App/Sidebar/BlockAppSidebar1.vue","components":["avatar","button","collapsible","dropdown-menu","kbd","progress","separator","sidebar"]},{"name":"App Sidebar 2","fileName":"BlockAppSidebar2.vue","file":"<template>\n  <!--\n    Two tier mail style sidebar with an icon rail and a list panel\n    Features: Icon rail that switches the section, second panel with a searchable conversation list, unread filter switch, selected state, collapses on mobile\n  -->\n  <UiSidebarProvider class=\"min-h-[34rem] [--sidebar-width:22rem]!\">\n    <UiSidebar\n      collapsible=\"icon\"\n      class=\"overflow-hidden *:data-[sidebar=sidebar]:flex-row *:data-[sidebar=sidebar]:bg-(--sidebar)\"\n    >\n      <!-- Icon rail -->\n      <UiSidebar collapsible=\"none\" class=\"w-[calc(var(--sidebar-width-icon)+1px)]! border-r\">\n        <UiSidebarHeader>\n          <UiSidebarMenu>\n            <UiSidebarMenuItem>\n              <UiSidebarMenuButton size=\"lg\" as-child class=\"md:h-8 md:p-0\">\n                <NuxtLink to=\"#\">\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon name=\"lucide:send\" class=\"size-4\" />\n                  </div>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarHeader>\n        <UiSidebarContent>\n          <UiSidebarGroup>\n            <UiSidebarGroupContent class=\"px-1.5 md:px-0\">\n              <UiSidebarMenu>\n                <UiSidebarMenuItem v-for=\"item in folders\" :key=\"item.title\">\n                  <UiSidebarMenuButton\n                    :tooltip=\"item.title\"\n                    class=\"px-2.5 md:px-2\"\n                    :is-active=\"active.title === item.title\"\n                    @click=\"active = item\"\n                  >\n                    <Icon :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </UiSidebarMenuButton>\n                  <UiSidebarMenuBadge v-if=\"item.unread\" class=\"md:hidden\">\n                    {{ item.unread }}\n                  </UiSidebarMenuBadge>\n                </UiSidebarMenuItem>\n              </UiSidebarMenu>\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </UiSidebarContent>\n        <UiSidebarFooter>\n          <UiAvatar src=\"https://i.pravatar.cc/80?img=47\" fallback=\"MC\" class=\"size-8 rounded-lg\" />\n        </UiSidebarFooter>\n      </UiSidebar>\n\n      <!-- Conversation list -->\n      <UiSidebar collapsible=\"none\" class=\"hidden flex-1 md:flex\">\n        <UiSidebarHeader class=\"gap-3.5 border-b p-4\">\n          <div class=\"flex w-full items-center justify-between\">\n            <div class=\"text-foreground text-base font-semibold\">{{ active.title }}</div>\n            <label class=\"flex items-center gap-2 text-sm\">\n              <span>Unread</span>\n              <UiSwitch v-model=\"unreadOnly\" class=\"shadow-none\" />\n            </label>\n          </div>\n          <div class=\"relative\">\n            <Icon\n              name=\"lucide:search\"\n              class=\"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 opacity-50\"\n            />\n            <UiSidebarInput v-model=\"query\" placeholder=\"Type to search…\" class=\"pl-8\" />\n          </div>\n        </UiSidebarHeader>\n        <UiSidebarContent>\n          <UiSidebarGroup class=\"px-0\">\n            <UiSidebarGroupContent>\n              <button\n                v-for=\"mail in filtered\"\n                :key=\"mail.id\"\n                type=\"button\"\n                class=\"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground flex w-full flex-col items-start gap-2 border-b p-4 text-left text-sm leading-tight whitespace-nowrap last:border-b-0\"\n                :class=\"selected === mail.id && 'bg-sidebar-accent'\"\n                @click=\"selected = mail.id\"\n              >\n                <div class=\"flex w-full items-center gap-2\">\n                  <span\n                    v-if=\"mail.unread\"\n                    class=\"bg-primary size-2 shrink-0 rounded-full\"\n                    aria-label=\"Unread\"\n                  />\n                  <span class=\"font-medium\" :class=\"!mail.unread && 'text-muted-foreground'\">\n                    {{ mail.name }}\n                  </span>\n                  <span class=\"text-muted-foreground ml-auto text-xs\">{{ mail.date }}</span>\n                </div>\n                <span class=\"font-medium\">{{ mail.subject }}</span>\n                <span\n                  class=\"text-muted-foreground line-clamp-2 w-[260px] text-xs whitespace-break-spaces\"\n                >\n                  {{ mail.teaser }}\n                </span>\n              </button>\n              <p v-if=\"!filtered.length\" class=\"text-muted-foreground p-6 text-center text-sm\">\n                No messages match.\n              </p>\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </UiSidebarContent>\n      </UiSidebar>\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header\n        class=\"bg-background sticky top-0 flex h-14 shrink-0 items-center gap-2 border-b px-4\"\n      >\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiSeparator orientation=\"vertical\" class=\"mr-2 h-4\" />\n        <span class=\"text-muted-foreground text-sm\">{{ active.title }}</span>\n        <Icon name=\"lucide:chevron-right\" class=\"text-muted-foreground size-3.5\" />\n        <span class=\"text-sm font-medium\">\n          {{ current?.subject ?? \"Select a message\" }}\n        </span>\n      </header>\n      <div v-if=\"current\" class=\"flex flex-1 flex-col gap-4 p-6\">\n        <div class=\"flex items-center gap-3\">\n          <UiAvatar :fallback=\"current.name[0]\" class=\"size-10\" />\n          <div>\n            <p class=\"text-sm font-semibold\">{{ current.name }}</p>\n            <p class=\"text-muted-foreground text-xs\">{{ current.date }}</p>\n          </div>\n        </div>\n        <h2 class=\"text-xl font-bold tracking-tight\">{{ current.subject }}</h2>\n        <p class=\"text-muted-foreground max-w-xl text-sm\">{{ current.teaser }}</p>\n      </div>\n      <div v-else class=\"text-muted-foreground flex flex-1 items-center justify-center text-sm\">\n        Choose a message from the list.\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const folders = [\n    { title: \"Inbox\", icon: \"lucide:inbox\", unread: 3 },\n    { title: \"Drafts\", icon: \"lucide:file\", unread: 0 },\n    { title: \"Sent\", icon: \"lucide:send\", unread: 0 },\n    { title: \"Junk\", icon: \"lucide:archive-x\", unread: 1 },\n    { title: \"Trash\", icon: \"lucide:trash-2\", unread: 0 },\n  ];\n  const active = ref(folders[0]!);\n\n  const mails = [\n    {\n      id: 1,\n      name: \"Priya Nair\",\n      subject: \"Design review on Friday\",\n      date: \"09:34 AM\",\n      unread: true,\n      teaser:\n        \"Can we move the review to the afternoon? I'd like to include the latest prototype so everyone can click through it.\",\n    },\n    {\n      id: 2,\n      name: \"Liam Carter\",\n      subject: \"Weekly sync notes\",\n      date: \"Yesterday\",\n      unread: true,\n      teaser:\n        \"Here is a short summary of what we agreed on, along with the open questions we still need to close.\",\n    },\n    {\n      id: 3,\n      name: \"Sam Okafor\",\n      subject: \"Invoice for October\",\n      date: \"Tuesday\",\n      unread: false,\n      teaser:\n        \"Attached is the invoice for last month. Let me know if the PO number needs to change before it goes out.\",\n    },\n    {\n      id: 4,\n      name: \"Jordan Lee\",\n      subject: \"Welcome to the team\",\n      date: \"Last week\",\n      unread: false,\n      teaser:\n        \"We're so glad you're joining. Your onboarding plan for the first two weeks is linked below.\",\n    },\n  ];\n\n  const query = ref(\"\");\n  const unreadOnly = ref(false);\n  const selected = ref<number>();\n\n  const filtered = computed(() =>\n    mails.filter(\n      (mail) =>\n        (!unreadOnly.value || mail.unread) &&\n        `${mail.name} ${mail.subject} ${mail.teaser}`\n          .toLowerCase()\n          .includes(query.value.toLowerCase())\n    )\n  );\n  const current = computed(() => mails.find((mail) => mail.id === selected.value));\n</script>\n","category":"Sidebar","description":"Two tier mail style sidebar with an icon rail and a list panel. Features: Icon rail that switches the section, second panel with a searchable conversation list, unread filter switch, selected state, collapses on mobile","path":"App/Sidebar/BlockAppSidebar2.vue","components":["avatar","separator","sidebar","switch"]},{"name":"App Sidebar 3","fileName":"BlockAppSidebar3.vue","file":"<template>\n  <!--\n    Compact icon sidebar with tooltips that expands on demand\n    Features: Starts collapsed to icons with tooltips, expands with the trigger, the rail or the keyboard shortcut, active route state, notification dot, user menu at the bottom\n  -->\n  <UiSidebarProvider v-slot=\"{ isMobile }\" :default-open=\"false\">\n    <UiSidebar collapsible=\"icon\" class=\"*:data-[sidebar=sidebar]:bg-(--sidebar)\">\n      <UiSidebarHeader>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiSidebarMenuButton size=\"lg\" as-child>\n              <NuxtLink to=\"#\">\n                <div\n                  class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                >\n                  <Icon name=\"lucide:command\" class=\"size-4\" />\n                </div>\n                <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                  <span class=\"truncate font-semibold\">UI Thing</span>\n                  <span class=\"truncate text-xs\">Admin console</span>\n                </div>\n              </NuxtLink>\n            </UiSidebarMenuButton>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarHeader>\n\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"item in nav\" :key=\"item.title\">\n              <UiSidebarMenuButton\n                as-child\n                :tooltip=\"item.title\"\n                :is-active=\"item.title === active\"\n              >\n                <NuxtLink to=\"#\" @click.prevent=\"active = item.title\">\n                  <Icon :name=\"item.icon\" />\n                  <span>{{ item.title }}</span>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiSidebarMenuBadge v-if=\"item.badge\">{{ item.badge }}</UiSidebarMenuBadge>\n              <span\n                v-else-if=\"item.dot\"\n                class=\"bg-primary absolute top-2 right-2 size-1.5 rounded-full group-data-[collapsible=icon]:top-1.5 group-data-[collapsible=icon]:right-1.5\"\n                aria-label=\"New activity\"\n              />\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n\n      <UiSidebarFooter>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiSidebarMenuButton tooltip=\"Help\" as-child>\n              <NuxtLink to=\"#\">\n                <Icon name=\"lucide:circle-help\" />\n                <span>Help center</span>\n              </NuxtLink>\n            </UiSidebarMenuButton>\n          </UiSidebarMenuItem>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton size=\"lg\" tooltip=\"Account\">\n                  <UiAvatar\n                    src=\"https://i.pravatar.cc/80?img=47\"\n                    fallback=\"MC\"\n                    class=\"size-8 rounded-lg\"\n                  />\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">Maya Chen</span>\n                    <span class=\"truncate text-xs\">maya@uithing.com</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"min-w-52\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                align=\"end\"\n              >\n                <UiDropdownMenuItem icon=\"lucide:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"lucide:settings\" title=\"Settings\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n      <UiSidebarRail />\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header class=\"flex h-14 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiSeparator orientation=\"vertical\" class=\"mr-2 h-4\" />\n        <h1 class=\"text-sm font-medium\">{{ active }}</h1>\n        <p class=\"text-muted-foreground ml-auto hidden text-xs sm:block\">\n          Toggle with <UiKbd>⌘</UiKbd> <UiKbd>B</UiKbd>\n        </p>\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 p-4\">\n        <div class=\"grid gap-4 md:grid-cols-3\">\n          <div v-for=\"n in 3\" :key=\"n\" class=\"bg-muted/50 aspect-video rounded-xl\" />\n        </div>\n        <div class=\"bg-muted/50 min-h-48 flex-1 rounded-xl\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const nav = [\n    { title: \"Overview\", icon: \"lucide:house\" },\n    { title: \"Analytics\", icon: \"lucide:chart-column\", dot: true },\n    { title: \"Projects\", icon: \"lucide:folder-kanban\" },\n    { title: \"Tasks\", icon: \"lucide:list-checks\", badge: \"5\" },\n    { title: \"Calendar\", icon: \"lucide:calendar\" },\n    { title: \"Messages\", icon: \"lucide:mail\", badge: \"12\" },\n    { title: \"Team\", icon: \"lucide:users\" },\n    { title: \"Settings\", icon: \"lucide:settings\" },\n  ];\n\n  const active = ref(\"Overview\");\n</script>\n","category":"Sidebar","description":"Compact icon sidebar with tooltips that expands on demand. Features: Starts collapsed to icons with tooltips, expands with the trigger, the rail or the keyboard shortcut, active route state, notification dot, user menu at the bottom","path":"App/Sidebar/BlockAppSidebar3.vue","components":["avatar","dropdown-menu","kbd","separator","sidebar"]},{"name":"App Sidebar 4","fileName":"BlockAppSidebar4.vue","file":"<template>\n  <!--\n    Floating sidebar with categorized sections\n    Features: Floating variant with rounded corners, notification badges, colored workspace indicators that toggle, settings section, collapses fully off canvas\n  -->\n  <UiSidebarProvider v-slot=\"{ isMobile }\">\n    <UiSidebar variant=\"floating\" class=\"*:data-[sidebar=sidebar]:bg-(--sidebar)\">\n      <UiSidebarHeader>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiSidebarMenuButton size=\"lg\" as-child>\n              <NuxtLink to=\"#\">\n                <div\n                  class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                >\n                  <Icon name=\"lucide:layers\" class=\"size-4\" />\n                </div>\n                <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                  <span class=\"truncate font-semibold\">UI Thing</span>\n                  <span class=\"truncate text-xs\">Team plan</span>\n                </div>\n              </NuxtLink>\n            </UiSidebarMenuButton>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n        <div class=\"relative\">\n          <Icon\n            name=\"lucide:search\"\n            class=\"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 opacity-50\"\n          />\n          <UiSidebarInput v-model=\"query\" placeholder=\"Search menu\" class=\"pl-8\" />\n        </div>\n      </UiSidebarHeader>\n\n      <UiSidebarContent>\n        <UiSidebarGroup v-for=\"group in filteredGroups\" :key=\"group.label\">\n          <UiSidebarGroupLabel :label=\"group.label\" />\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"item in group.items\" :key=\"item.title\">\n              <UiSidebarMenuButton as-child :is-active=\"item.title === active\">\n                <NuxtLink to=\"#\" @click.prevent=\"active = item.title\">\n                  <Icon :name=\"item.icon\" />\n                  <span>{{ item.title }}</span>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiSidebarMenuBadge v-if=\"item.badge\">{{ item.badge }}</UiSidebarMenuBadge>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n\n        <UiSidebarGroup v-if=\"!query\">\n          <UiSidebarGroupLabel label=\"Workspaces\" />\n          <UiSidebarGroupAction title=\"Add workspace\">\n            <Icon name=\"lucide:plus\" />\n            <span class=\"sr-only\">Add workspace</span>\n          </UiSidebarGroupAction>\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"space in spaces\" :key=\"space.name\">\n              <UiSidebarMenuButton\n                :is-active=\"space.name === currentSpace\"\n                @click=\"currentSpace = space.name\"\n              >\n                <span class=\"size-2.5 rounded-sm\" :class=\"space.color\" />\n                <span>{{ space.name }}</span>\n              </UiSidebarMenuButton>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n\n        <p v-if=\"query && !filteredGroups.length\" class=\"text-muted-foreground p-4 text-sm\">\n          No menu items match.\n        </p>\n      </UiSidebarContent>\n\n      <UiSidebarFooter>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton size=\"lg\">\n                  <UiAvatar\n                    src=\"https://i.pravatar.cc/80?img=12\"\n                    fallback=\"LC\"\n                    class=\"size-8 rounded-lg\"\n                  />\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">Liam Carter</span>\n                    <span class=\"truncate text-xs\">Product manager</span>\n                  </div>\n                  <Icon name=\"lucide:ellipsis\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"min-w-52\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                align=\"end\"\n              >\n                <UiDropdownMenuItem icon=\"lucide:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"lucide:settings\" title=\"Preferences\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header class=\"flex h-14 shrink-0 items-center gap-2 px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiSeparator orientation=\"vertical\" class=\"mr-2 h-4\" />\n        <h1 class=\"text-sm font-medium\">{{ active }}</h1>\n        <UiBadge variant=\"secondary\" class=\"ml-1\">{{ currentSpace }}</UiBadge>\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 p-4 pt-0\">\n        <div class=\"grid gap-4 md:grid-cols-3\">\n          <div v-for=\"n in 3\" :key=\"n\" class=\"bg-muted/50 aspect-video rounded-xl\" />\n        </div>\n        <div class=\"bg-muted/50 min-h-48 flex-1 rounded-xl\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const groups = [\n    {\n      label: \"Main menu\",\n      items: [\n        { title: \"Overview\", icon: \"lucide:layout-grid\", badge: \"3\" },\n        { title: \"Inbox\", icon: \"lucide:inbox\", badge: \"12\" },\n        { title: \"Projects\", icon: \"lucide:folder\" },\n        { title: \"Tasks\", icon: \"lucide:square-check-big\", badge: \"5\" },\n        { title: \"Calendar\", icon: \"lucide:calendar\" },\n        { title: \"Documents\", icon: \"lucide:file-text\" },\n      ],\n    },\n    {\n      label: \"Settings\",\n      items: [\n        { title: \"Preferences\", icon: \"lucide:settings\" },\n        { title: \"Help & support\", icon: \"lucide:life-buoy\" },\n      ],\n    },\n  ];\n\n  const spaces = [\n    { name: \"Design team\", color: \"bg-violet-500\" },\n    { name: \"Marketing\", color: \"bg-pink-500\" },\n    { name: \"Development\", color: \"bg-blue-500\" },\n  ];\n\n  const query = ref(\"\");\n  const active = ref(\"Overview\");\n  const currentSpace = ref(\"Design team\");\n\n  const filteredGroups = computed(() =>\n    groups\n      .map((group) => ({\n        ...group,\n        items: group.items.filter((item) =>\n          item.title.toLowerCase().includes(query.value.toLowerCase())\n        ),\n      }))\n      .filter((group) => group.items.length)\n  );\n</script>\n","category":"Sidebar","description":"Floating sidebar with categorized sections. Features: Floating variant with rounded corners, notification badges, colored workspace indicators that toggle, settings section, collapses fully off canvas","path":"App/Sidebar/BlockAppSidebar4.vue","components":["avatar","badge","dropdown-menu","separator","sidebar"]},{"name":"App Sidebar 5","fileName":"BlockAppSidebar5.vue","file":"<template>\n  <!--\n    Inset sidebar with quick actions and an account footer\n    Features: Inset variant where the page sits in a rounded card, quick action buttons, grouped nav with a New badge, nested items, storage meter and user row in the footer\n  -->\n  <UiSidebarProvider v-slot=\"{ isMobile }\">\n    <UiSidebar variant=\"inset\">\n      <UiSidebarHeader>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiSidebarMenuButton size=\"lg\" as-child>\n              <NuxtLink to=\"#\">\n                <div\n                  class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                >\n                  <Icon name=\"lucide:zap\" class=\"size-4\" />\n                </div>\n                <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                  <span class=\"truncate font-semibold\">UI Thing</span>\n                  <span class=\"truncate text-xs\">Admin dashboard</span>\n                </div>\n              </NuxtLink>\n            </UiSidebarMenuButton>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n        <div class=\"grid grid-cols-2 gap-2\">\n          <UiButton size=\"sm\" class=\"gap-1.5\">\n            <Icon name=\"lucide:plus\" class=\"size-4\" />\n            New\n          </UiButton>\n          <UiButton size=\"sm\" variant=\"outline\" class=\"gap-1.5\">\n            <Icon name=\"lucide:upload\" class=\"size-4\" />\n            Upload\n          </UiButton>\n        </div>\n      </UiSidebarHeader>\n\n      <UiSidebarContent>\n        <UiSidebarGroup v-for=\"group in groups\" :key=\"group.label\">\n          <UiSidebarGroupLabel :label=\"group.label\" />\n          <UiSidebarMenu>\n            <template v-for=\"item in group.items\" :key=\"item.title\">\n              <UiCollapsible v-if=\"item.children\" v-slot=\"{ open }\" as-child>\n                <UiSidebarMenuItem>\n                  <UiCollapsibleTrigger as-child>\n                    <UiSidebarMenuButton>\n                      <Icon :name=\"item.icon\" />\n                      <span>{{ item.title }}</span>\n                      <Icon\n                        name=\"lucide:chevron-right\"\n                        class=\"ml-auto transition-transform duration-200\"\n                        :class=\"open && 'rotate-90'\"\n                      />\n                    </UiSidebarMenuButton>\n                  </UiCollapsibleTrigger>\n                  <UiCollapsibleContent>\n                    <UiSidebarMenuSub>\n                      <UiSidebarMenuSubItem v-for=\"child in item.children\" :key=\"child\">\n                        <UiSidebarMenuSubButton as-child>\n                          <NuxtLink to=\"#\">{{ child }}</NuxtLink>\n                        </UiSidebarMenuSubButton>\n                      </UiSidebarMenuSubItem>\n                    </UiSidebarMenuSub>\n                  </UiCollapsibleContent>\n                </UiSidebarMenuItem>\n              </UiCollapsible>\n              <UiSidebarMenuItem v-else>\n                <UiSidebarMenuButton as-child :is-active=\"item.title === active\">\n                  <NuxtLink to=\"#\" @click.prevent=\"active = item.title\">\n                    <Icon :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </NuxtLink>\n                </UiSidebarMenuButton>\n                <UiSidebarMenuBadge v-if=\"item.badge\">{{ item.badge }}</UiSidebarMenuBadge>\n              </UiSidebarMenuItem>\n            </template>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n\n      <UiSidebarFooter>\n        <div class=\"rounded-lg border p-3\">\n          <div class=\"flex items-center justify-between text-xs\">\n            <span class=\"font-medium\">Storage</span>\n            <span class=\"text-muted-foreground\">68% used</span>\n          </div>\n          <UiProgress :model-value=\"68\" class=\"mt-2 h-1.5\" />\n        </div>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton size=\"lg\">\n                  <UiAvatar\n                    src=\"https://i.pravatar.cc/80?img=32\"\n                    fallback=\"SO\"\n                    class=\"size-8 rounded-lg\"\n                  />\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">Sam Okafor</span>\n                    <span class=\"truncate text-xs\">sam@uithing.com</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"min-w-52\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                align=\"end\"\n              >\n                <UiDropdownMenuItem icon=\"lucide:user\" title=\"Account\" />\n                <UiDropdownMenuItem icon=\"lucide:credit-card\" title=\"Billing\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header class=\"flex h-14 shrink-0 items-center gap-2 px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiSeparator orientation=\"vertical\" class=\"mr-2 h-4\" />\n        <h1 class=\"text-sm font-medium\">{{ active }}</h1>\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 p-4 pt-0\">\n        <div class=\"grid gap-4 md:grid-cols-3\">\n          <div v-for=\"n in 3\" :key=\"n\" class=\"bg-muted/50 aspect-video rounded-xl\" />\n        </div>\n        <div class=\"bg-muted/50 min-h-48 flex-1 rounded-xl\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = { title: string; icon: string; badge?: string; children?: string[] };\n\n  const groups: { label: string; items: Item[] }[] = [\n    {\n      label: \"Main\",\n      items: [\n        { title: \"Dashboard\", icon: \"lucide:house\" },\n        { title: \"Analytics\", icon: \"lucide:chart-line\", badge: \"New\" },\n        { title: \"Reports\", icon: \"lucide:file-bar-chart\" },\n      ],\n    },\n    {\n      label: \"Management\",\n      items: [\n        { title: \"Users\", icon: \"lucide:users\", children: [\"All users\", \"Roles\", \"Invitations\"] },\n        { title: \"Projects\", icon: \"lucide:folder\", badge: \"12\" },\n        { title: \"Tasks\", icon: \"lucide:circle-check\", badge: \"5\" },\n      ],\n    },\n    {\n      label: \"Support\",\n      items: [\n        { title: \"Documentation\", icon: \"lucide:book-open\" },\n        { title: \"Help center\", icon: \"lucide:life-buoy\" },\n      ],\n    },\n  ];\n\n  const active = ref(\"Dashboard\");\n</script>\n","category":"Sidebar","description":"Inset sidebar with quick actions and an account footer. Features: Inset variant where the page sits in a rounded card, quick action buttons, grouped nav with a New badge, nested items, storage meter and user row in the footer","path":"App/Sidebar/BlockAppSidebar5.vue","components":["avatar","button","collapsible","dropdown-menu","progress","separator","sidebar"]},{"name":"App Sidebar 6","fileName":"BlockAppSidebar6.vue","file":"<template>\n  <!--\n    Projects sidebar with recent, starred and all tabs\n    Features: Tabs that filter the list, live search, star toggles that move projects between tabs, color-coded projects, empty states, quick links and a new project button\n  -->\n  <UiSidebarProvider v-slot=\"{ isMobile }\">\n    <UiSidebar class=\"*:data-[sidebar=sidebar]:bg-(--sidebar)\">\n      <UiSidebarHeader class=\"gap-3\">\n        <div class=\"flex items-center justify-between\">\n          <div class=\"flex items-center gap-2 font-semibold\">\n            <div\n              class=\"bg-sidebar-primary text-sidebar-primary-foreground flex size-8 items-center justify-center rounded-lg\"\n            >\n              <Icon name=\"lucide:folder-kanban\" class=\"size-4\" />\n            </div>\n            Projects\n          </div>\n          <UiButton variant=\"ghost\" size=\"icon-sm\" aria-label=\"New project\">\n            <Icon name=\"lucide:plus\" class=\"size-4\" />\n          </UiButton>\n        </div>\n        <div class=\"relative\">\n          <Icon\n            name=\"lucide:search\"\n            class=\"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 opacity-50\"\n          />\n          <UiSidebarInput v-model=\"query\" placeholder=\"Search projects\" class=\"pl-8\" />\n        </div>\n        <UiTabs v-model=\"tab\">\n          <UiTabsList class=\"grid w-full grid-cols-3\">\n            <UiTabsTrigger value=\"recent\">Recent</UiTabsTrigger>\n            <UiTabsTrigger value=\"starred\">\n              Starred\n              <span class=\"text-muted-foreground ml-1 text-xs tabular-nums\">{{\n                starredCount\n              }}</span>\n            </UiTabsTrigger>\n            <UiTabsTrigger value=\"all\">All</UiTabsTrigger>\n          </UiTabsList>\n        </UiTabs>\n      </UiSidebarHeader>\n\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"project in visible\" :key=\"project.id\">\n              <UiSidebarMenuButton as-child class=\"h-auto py-2\">\n                <NuxtLink to=\"#\">\n                  <span class=\"size-2.5 shrink-0 rounded-full\" :class=\"project.color\" />\n                  <div class=\"grid min-w-0 flex-1 leading-tight\">\n                    <span class=\"truncate text-sm font-medium\">{{ project.name }}</span>\n                    <span class=\"text-muted-foreground truncate text-xs\">{{\n                      project.updated\n                    }}</span>\n                  </div>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiSidebarMenuAction\n                :aria-label=\"project.starred ? 'Unstar project' : 'Star project'\"\n                :aria-pressed=\"project.starred\"\n                @click=\"project.starred = !project.starred\"\n              >\n                <Icon\n                  name=\"lucide:star\"\n                  :class=\"project.starred && 'fill-amber-400 text-amber-400'\"\n                />\n              </UiSidebarMenuAction>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n          <p v-if=\"!visible.length\" class=\"text-muted-foreground px-3 py-8 text-center text-sm\">\n            {{ emptyText }}\n          </p>\n        </UiSidebarGroup>\n\n        <UiSidebarSeparator />\n\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Quick links\" />\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"link in links\" :key=\"link.title\">\n              <UiSidebarMenuButton as-child>\n                <NuxtLink to=\"#\">\n                  <Icon :name=\"link.icon\" />\n                  <span>{{ link.title }}</span>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n\n      <UiSidebarFooter>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton size=\"lg\">\n                  <UiAvatar\n                    src=\"https://i.pravatar.cc/80?img=45\"\n                    fallback=\"PN\"\n                    class=\"size-8 rounded-lg\"\n                  />\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">Priya Nair</span>\n                    <span class=\"truncate text-xs\">Design team</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"min-w-52\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                align=\"end\"\n              >\n                <UiDropdownMenuItem icon=\"lucide:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header class=\"flex h-14 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiSeparator orientation=\"vertical\" class=\"mr-2 h-4\" />\n        <h1 class=\"text-sm font-medium\">Select a project</h1>\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 p-4\">\n        <div class=\"bg-muted/50 min-h-64 flex-1 rounded-xl\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const projects = reactive([\n    {\n      id: 1,\n      name: \"Website redesign\",\n      updated: \"2 hours ago\",\n      color: \"bg-violet-500\",\n      starred: true,\n    },\n    { id: 2, name: \"Mobile app\", updated: \"5 hours ago\", color: \"bg-pink-500\", starred: false },\n    { id: 3, name: \"Brand identity\", updated: \"Yesterday\", color: \"bg-sky-500\", starred: true },\n    {\n      id: 4,\n      name: \"Marketing campaign\",\n      updated: \"2 days ago\",\n      color: \"bg-amber-500\",\n      starred: false,\n    },\n    {\n      id: 5,\n      name: \"Customer research\",\n      updated: \"Last week\",\n      color: \"bg-emerald-500\",\n      starred: false,\n    },\n    { id: 6, name: \"Design system\", updated: \"Last week\", color: \"bg-rose-500\", starred: false },\n  ]);\n\n  const links = [\n    { title: \"Team\", icon: \"lucide:users\" },\n    { title: \"Settings\", icon: \"lucide:settings\" },\n    { title: \"Help\", icon: \"lucide:circle-help\" },\n  ];\n\n  const tab = ref(\"recent\");\n  const query = ref(\"\");\n\n  const starredCount = computed(() => projects.filter((project) => project.starred).length);\n\n  const visible = computed(() => {\n    const q = query.value.toLowerCase();\n    const base =\n      tab.value === \"starred\"\n        ? projects.filter((project) => project.starred)\n        : tab.value === \"recent\"\n          ? projects.slice(0, 4)\n          : projects;\n    return base.filter((project) => project.name.toLowerCase().includes(q));\n  });\n\n  const emptyText = computed(() =>\n    query.value\n      ? \"No projects match your search.\"\n      : tab.value === \"starred\"\n        ? \"Star a project to pin it here.\"\n        : \"No projects yet.\"\n  );\n</script>\n","category":"Sidebar","description":"Projects sidebar with recent, starred and all tabs. Features: Tabs that filter the list, live search, star toggles that move projects between tabs, color-coded projects, empty states, quick links and a new project button","path":"App/Sidebar/BlockAppSidebar6.vue","components":["avatar","button","dropdown-menu","separator","sidebar","tabs"]},{"name":"App Sidebar 7","fileName":"BlockAppSidebar7.vue","file":"<template>\n  <!--\n    Settings navigation sidebar\n    Features: Back to app link, grouped settings links with icons, active page state that updates the content, upgrade callout, designed to sit beside a settings page\n  -->\n  <UiSidebarProvider>\n    <UiSidebar class=\"*:data-[sidebar=sidebar]:bg-(--sidebar)\">\n      <UiSidebarHeader>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiSidebarMenuButton as-child class=\"text-muted-foreground\">\n              <NuxtLink to=\"#\">\n                <Icon name=\"lucide:arrow-left\" />\n                <span>Back to app</span>\n              </NuxtLink>\n            </UiSidebarMenuButton>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n        <div class=\"px-2\">\n          <h2 class=\"text-lg font-bold tracking-tight\">Settings</h2>\n          <p class=\"text-muted-foreground text-xs\">Manage your account and workspace</p>\n        </div>\n      </UiSidebarHeader>\n\n      <UiSidebarContent>\n        <UiSidebarGroup v-for=\"group in groups\" :key=\"group.label\">\n          <UiSidebarGroupLabel :label=\"group.label\" />\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"item in group.items\" :key=\"item.title\">\n              <UiSidebarMenuButton as-child :is-active=\"item.title === active\">\n                <NuxtLink to=\"#\" @click.prevent=\"active = item.title\">\n                  <Icon :name=\"item.icon\" />\n                  <span>{{ item.title }}</span>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiSidebarMenuBadge v-if=\"item.badge\">{{ item.badge }}</UiSidebarMenuBadge>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n\n      <UiSidebarFooter>\n        <div class=\"from-primary/10 to-primary/0 rounded-xl border bg-linear-to-br p-4\">\n          <div class=\"flex items-center gap-2\">\n            <Icon name=\"lucide:sparkles\" class=\"text-primary size-4\" />\n            <p class=\"text-sm font-semibold\">Upgrade to Pro</p>\n          </div>\n          <p class=\"text-muted-foreground mt-1 text-xs\">\n            Unlock unlimited projects, advanced roles and priority support.\n          </p>\n          <UiButton size=\"sm\" class=\"mt-3 w-full\">See plans</UiButton>\n        </div>\n      </UiSidebarFooter>\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header class=\"flex h-14 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiSeparator orientation=\"vertical\" class=\"mr-2 h-4\" />\n        <UiBreadcrumbs :items=\"crumbs\" />\n      </header>\n      <div class=\"flex flex-1 flex-col gap-6 p-6\">\n        <div>\n          <h2 class=\"text-xl font-bold tracking-tight\">{{ active }}</h2>\n          <p class=\"text-muted-foreground text-sm\">\n            Update your {{ active.toLowerCase() }} settings.\n          </p>\n        </div>\n        <div class=\"bg-muted/50 h-24 rounded-xl\" />\n        <div class=\"bg-muted/50 min-h-40 flex-1 rounded-xl\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  import type { BreadcrumbItem } from \"@/components/Ui/Breadcrumbs.vue\";\n\n  const groups = [\n    {\n      label: \"Account\",\n      items: [\n        { title: \"Profile\", icon: \"lucide:user\" },\n        { title: \"Security\", icon: \"lucide:shield\" },\n        { title: \"Notifications\", icon: \"lucide:bell\", badge: \"2\" },\n        { title: \"Appearance\", icon: \"lucide:palette\" },\n      ],\n    },\n    {\n      label: \"Workspace\",\n      items: [\n        { title: \"General\", icon: \"lucide:building-2\" },\n        { title: \"Members\", icon: \"lucide:users\" },\n        { title: \"Billing\", icon: \"lucide:credit-card\" },\n        { title: \"Integrations\", icon: \"lucide:plug\" },\n        { title: \"API keys\", icon: \"lucide:key-round\" },\n      ],\n    },\n  ];\n\n  const active = ref(\"Profile\");\n\n  const crumbs = computed<BreadcrumbItem[]>(() => [\n    { label: \"Settings\", link: \"#\" },\n    { label: active.value, link: \"#\" },\n  ]);\n</script>\n","category":"Sidebar","description":"Settings navigation sidebar. Features: Back to app link, grouped settings links with icons, active page state that updates the content, upgrade callout, designed to sit beside a settings page","path":"App/Sidebar/BlockAppSidebar7.vue","components":["breadcrumbs","button","separator","sidebar"]},{"name":"App Sidebar 8","fileName":"BlockAppSidebar8.vue","file":"<template>\n  <!--\n    Chat conversations sidebar\n    Features: New message button, search, pinned and recent groups, online presence dots, unread badges that clear when opened, selected conversation shown in the chat pane\n  -->\n  <UiSidebarProvider class=\"[--sidebar-width:20rem]!\">\n    <UiSidebar class=\"*:data-[sidebar=sidebar]:bg-(--sidebar)\">\n      <UiSidebarHeader class=\"gap-3\">\n        <div class=\"flex items-center justify-between px-1\">\n          <h2 class=\"text-lg font-bold tracking-tight\">Messages</h2>\n          <UiButton size=\"icon-sm\" aria-label=\"New message\">\n            <Icon name=\"lucide:square-pen\" class=\"size-4\" />\n          </UiButton>\n        </div>\n        <div class=\"relative\">\n          <Icon\n            name=\"lucide:search\"\n            class=\"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 opacity-50\"\n          />\n          <UiSidebarInput v-model=\"query\" placeholder=\"Search conversations\" class=\"pl-8\" />\n        </div>\n      </UiSidebarHeader>\n\n      <UiSidebarContent>\n        <UiSidebarGroup v-for=\"group in grouped\" :key=\"group.label\">\n          <UiSidebarGroupLabel :label=\"group.label\" />\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"chat in group.items\" :key=\"chat.id\">\n              <UiSidebarMenuButton\n                class=\"h-auto items-start py-2.5\"\n                :is-active=\"selected === chat.id\"\n                @click=\"open(chat)\"\n              >\n                <div class=\"relative shrink-0\">\n                  <UiAvatar :src=\"chat.avatar\" :fallback=\"chat.name[0]\" class=\"size-9\" />\n                  <span\n                    v-if=\"chat.online\"\n                    class=\"ring-sidebar absolute right-0 bottom-0 size-2.5 rounded-full bg-green-500 ring-2\"\n                    aria-label=\"Online\"\n                  />\n                </div>\n                <div class=\"grid min-w-0 flex-1 gap-0.5 leading-tight\">\n                  <div class=\"flex items-center justify-between gap-2\">\n                    <span class=\"truncate text-sm font-medium\">{{ chat.name }}</span>\n                    <span class=\"text-muted-foreground shrink-0 text-xs\">{{ chat.time }}</span>\n                  </div>\n                  <div class=\"flex items-center justify-between gap-2\">\n                    <span\n                      class=\"truncate text-xs\"\n                      :class=\"chat.unread ? 'text-foreground font-medium' : 'text-muted-foreground'\"\n                    >\n                      {{ chat.last }}\n                    </span>\n                    <span\n                      v-if=\"chat.unread\"\n                      class=\"bg-primary text-primary-foreground flex size-5 shrink-0 items-center justify-center rounded-full text-[10px] font-semibold\"\n                    >\n                      {{ chat.unread }}\n                    </span>\n                  </div>\n                </div>\n              </UiSidebarMenuButton>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n        <p v-if=\"!grouped.length\" class=\"text-muted-foreground p-6 text-center text-sm\">\n          No conversations found.\n        </p>\n      </UiSidebarContent>\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header class=\"flex h-14 shrink-0 items-center gap-3 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <template v-if=\"current\">\n          <UiAvatar :src=\"current.avatar\" :fallback=\"current.name[0]\" class=\"size-8\" />\n          <div class=\"leading-tight\">\n            <p class=\"text-sm font-semibold\">{{ current.name }}</p>\n            <p class=\"text-muted-foreground text-xs\">{{ current.online ? \"Online\" : \"Offline\" }}</p>\n          </div>\n        </template>\n        <span v-else class=\"text-sm font-medium\">Messages</span>\n      </header>\n      <div v-if=\"current\" class=\"flex flex-1 flex-col justify-end gap-3 p-4\">\n        <div class=\"bg-muted max-w-sm rounded-2xl rounded-bl-sm px-4 py-2 text-sm\">\n          {{ current.last }}\n        </div>\n        <div\n          class=\"bg-primary text-primary-foreground ml-auto max-w-sm rounded-2xl rounded-br-sm px-4 py-2 text-sm\"\n        >\n          Sounds good, thanks!\n        </div>\n      </div>\n      <div v-else class=\"text-muted-foreground flex flex-1 items-center justify-center text-sm\">\n        Select a conversation to start chatting.\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  type Chat = {\n    id: number;\n    name: string;\n    avatar: string;\n    last: string;\n    time: string;\n    unread: number;\n    online: boolean;\n    pinned?: boolean;\n  };\n\n  const chats = reactive<Chat[]>([\n    {\n      id: 1,\n      name: \"Design team\",\n      avatar: \"\",\n      last: \"Priya: The new mockups are ready\",\n      time: \"9:41\",\n      unread: 3,\n      online: true,\n      pinned: true,\n    },\n    {\n      id: 2,\n      name: \"Liam Carter\",\n      avatar: \"https://i.pravatar.cc/80?img=12\",\n      last: \"Can you review my PR today?\",\n      time: \"9:12\",\n      unread: 1,\n      online: true,\n      pinned: true,\n    },\n    {\n      id: 3,\n      name: \"Priya Nair\",\n      avatar: \"https://i.pravatar.cc/80?img=45\",\n      last: \"Thanks, that helps a lot\",\n      time: \"Yesterday\",\n      unread: 0,\n      online: false,\n    },\n    {\n      id: 4,\n      name: \"Sam Okafor\",\n      avatar: \"https://i.pravatar.cc/80?img=32\",\n      last: \"Lunch on Thursday?\",\n      time: \"Yesterday\",\n      unread: 0,\n      online: true,\n    },\n    {\n      id: 5,\n      name: \"Jordan Lee\",\n      avatar: \"https://i.pravatar.cc/80?img=15\",\n      last: \"Invoice attached\",\n      time: \"Tuesday\",\n      unread: 0,\n      online: false,\n    },\n  ]);\n\n  const query = ref(\"\");\n  const selected = ref<number>();\n\n  const grouped = computed(() => {\n    const q = query.value.toLowerCase();\n    const matches = chats.filter((chat) => `${chat.name} ${chat.last}`.toLowerCase().includes(q));\n    return [\n      { label: \"Pinned\", items: matches.filter((chat) => chat.pinned) },\n      { label: \"Recent\", items: matches.filter((chat) => !chat.pinned) },\n    ].filter((group) => group.items.length);\n  });\n\n  const current = computed(() => chats.find((chat) => chat.id === selected.value));\n\n  function open(chat: Chat) {\n    selected.value = chat.id;\n    chat.unread = 0;\n  }\n</script>\n","category":"Sidebar","description":"Chat conversations sidebar. Features: New message button, search, pinned and recent groups, online presence dots, unread badges that clear when opened, selected conversation shown in the chat pane","path":"App/Sidebar/BlockAppSidebar8.vue","components":["avatar","button","sidebar"]},{"name":"App Sidebar 9","fileName":"BlockAppSidebar9.vue","file":"<template>\n  <!--\n    Dark brand sidebar that stays dark in light mode\n    Features: Always dark sidebar next to a light page, environment switcher with a colored badge, gradient logo, active item highlight, collapses to icons, user footer\n  -->\n  <UiSidebarProvider v-slot=\"{ isMobile }\">\n    <UiSidebar\n      collapsible=\"icon\"\n      class=\"dark text-sidebar-foreground *:data-[sidebar=sidebar]:bg-(--sidebar)\"\n    >\n      <UiSidebarHeader>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <div\n                    class=\"flex aspect-square size-8 items-center justify-center rounded-lg bg-linear-to-br from-indigo-500 to-pink-500 text-white\"\n                  >\n                    <Icon name=\"lucide:hexagon\" class=\"size-4\" />\n                  </div>\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">Hexa Cloud</span>\n                    <span class=\"flex items-center gap-1.5 truncate text-xs\">\n                      <span class=\"size-1.5 rounded-full\" :class=\"environment.dot\" />\n                      {{ environment.name }}\n                    </span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"dark w-(--reka-dropdown-menu-trigger-width) min-w-52\"\n                align=\"start\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n              >\n                <UiDropdownMenuLabel class=\"text-muted-foreground text-xs\">\n                  Environment\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuItem\n                  v-for=\"env in environments\"\n                  :key=\"env.name\"\n                  class=\"gap-2\"\n                  @select=\"environment = env\"\n                >\n                  <span class=\"size-2 rounded-full\" :class=\"env.dot\" />\n                  {{ env.name }}\n                  <Icon v-if=\"env.name === environment.name\" name=\"lucide:check\" class=\"ml-auto\" />\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarHeader>\n\n      <UiSidebarContent>\n        <UiSidebarGroup v-for=\"group in groups\" :key=\"group.label\">\n          <UiSidebarGroupLabel :label=\"group.label\" />\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"item in group.items\" :key=\"item.title\">\n              <UiSidebarMenuButton\n                as-child\n                :tooltip=\"item.title\"\n                :is-active=\"item.title === active\"\n              >\n                <NuxtLink to=\"#\" @click.prevent=\"active = item.title\">\n                  <Icon :name=\"item.icon\" />\n                  <span>{{ item.title }}</span>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiSidebarMenuBadge v-if=\"item.badge\">{{ item.badge }}</UiSidebarMenuBadge>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n\n      <UiSidebarFooter>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton size=\"lg\" tooltip=\"Account\">\n                  <UiAvatar\n                    src=\"https://i.pravatar.cc/80?img=47\"\n                    fallback=\"MC\"\n                    class=\"size-8 rounded-lg\"\n                  />\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">Maya Chen</span>\n                    <span class=\"truncate text-xs\">Admin</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"dark min-w-52\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                align=\"end\"\n              >\n                <UiDropdownMenuItem icon=\"lucide:user\" title=\"Profile\" />\n                <UiDropdownMenuItem icon=\"lucide:settings\" title=\"Settings\" />\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n      <UiSidebarRail />\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header class=\"flex h-14 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiSeparator orientation=\"vertical\" class=\"mr-2 h-4\" />\n        <h1 class=\"text-sm font-medium\">{{ active }}</h1>\n        <UiBadge variant=\"outline\" class=\"ml-auto gap-1.5\">\n          <span class=\"size-1.5 rounded-full\" :class=\"environment.dot\" />\n          {{ environment.name }}\n        </UiBadge>\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 p-4\">\n        <div class=\"grid gap-4 md:grid-cols-3\">\n          <div v-for=\"n in 3\" :key=\"n\" class=\"bg-muted/50 aspect-video rounded-xl\" />\n        </div>\n        <div class=\"bg-muted/50 min-h-48 flex-1 rounded-xl\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const environments = [\n    { name: \"Production\", dot: \"bg-green-500\" },\n    { name: \"Staging\", dot: \"bg-amber-500\" },\n    { name: \"Development\", dot: \"bg-sky-500\" },\n  ];\n  const environment = ref(environments[0]!);\n\n  const groups = [\n    {\n      label: \"Infrastructure\",\n      items: [\n        { title: \"Overview\", icon: \"lucide:gauge\" },\n        { title: \"Servers\", icon: \"lucide:server\", badge: \"8\" },\n        { title: \"Databases\", icon: \"lucide:database\" },\n        { title: \"Networking\", icon: \"lucide:network\" },\n      ],\n    },\n    {\n      label: \"Operations\",\n      items: [\n        { title: \"Deployments\", icon: \"lucide:rocket\" },\n        { title: \"Logs\", icon: \"lucide:scroll-text\" },\n        { title: \"Alerts\", icon: \"lucide:triangle-alert\", badge: \"3\" },\n        { title: \"Billing\", icon: \"lucide:receipt\" },\n      ],\n    },\n  ];\n\n  const active = ref(\"Overview\");\n</script>\n","category":"Sidebar","description":"Dark brand sidebar that stays dark in light mode. Features: Always dark sidebar next to a light page, environment switcher with a colored badge, gradient logo, active item highlight, collapses to icons, user footer","path":"App/Sidebar/BlockAppSidebar9.vue","components":["avatar","badge","dropdown-menu","separator","sidebar"]},{"name":"Sidebar 01","fileName":"BlockSidebar01.vue","file":"<template>\n  <UiSidebarProvider>\n    <!-- App Sidebar -->\n    <UiSidebar>\n      <UiSidebarHeader>\n        <!-- Version switcher -->\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon name=\"lucide:gallery-vertical-end\" class=\"size-4\" />\n                  </div>\n                  <div class=\"flex flex-col gap-0.5 leading-none\">\n                    <span class=\"font-semibold\">Documentation</span>\n                    <span class=\"\">v{{ selectedVersion }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent class=\"w-(--reka-dropdown-menu-trigger-width)\" align=\"start\">\n                <UiDropdownMenuItem\n                  v-for=\"version in data.versions\"\n                  :key=\"version\"\n                  class=\"cursor-pointer\"\n                  @select=\"selectedVersion = version\"\n                >\n                  v{{ version }}\n                  <Icon v-if=\"version === selectedVersion\" name=\"lucide:check\" class=\"ml-auto\" />\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n        <!-- Search form -->\n        <form>\n          <UiSidebarGroup class=\"py-0\">\n            <UiSidebarGroupContent class=\"relative\">\n              <UiLabel for=\"search\" class=\"sr-only\"> Search </UiLabel>\n              <UiSidebarInput id=\"search\" placeholder=\"Search the docs...\" class=\"pl-8\" />\n              <Icon\n                name=\"lucide:search\"\n                class=\"pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none\"\n              />\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </form>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <!-- We create a SidebarGroup for each parent. -->\n        <template v-for=\"item in data.navMain\" :key=\"item.title\">\n          <UiSidebarGroup>\n            <UiSidebarGroupLabel :label=\"item.title\" />\n            <UiSidebarGroupContent>\n              <UiSidebarMenu>\n                <template v-for=\"child in item.items\" :key=\"`child-${child.title}`\">\n                  <UiSidebarMenuItem>\n                    <UiSidebarMenuButton as-child :is-active=\"child.isActive\">\n                      <NuxtLink :href=\"child.url\">{{ child.title }}</NuxtLink>\n                    </UiSidebarMenuButton>\n                  </UiSidebarMenuItem>\n                </template>\n              </UiSidebarMenu>\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </template>\n      </UiSidebarContent>\n      <UiSidebarRail />\n    </UiSidebar>\n    <!-- Sidebar main content -->\n    <UiSidebarInset>\n      <!-- Navbar -->\n      <UiNavbar sticky class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </UiNavbar>\n      <div class=\"flex flex-1 flex-col gap-4 p-4\">\n        <div class=\"grid auto-rows-min gap-4 md:grid-cols-3\">\n          <UiPlaceholder v-for=\"n in 3\" :key=\"n\" class=\"aspect-video rounded-lg\" />\n        </div>\n        <UiPlaceholder class=\"min-h-dvh flex-1 rounded-lg md:min-h-min\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Breadcrumb items\n  const breadcrumbItems = [\n    { label: \"Building Your Application\", link: \"#\" },\n    { label: \"Data Fetching\", link: \"#\" },\n  ];\n  // This is sample data.\n  const data = {\n    versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n    navMain: [\n      {\n        title: \"Getting Started\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Installation\",\n            url: \"#\",\n          },\n          {\n            title: \"Project Structure\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Building Your Application\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Routing\",\n            url: \"#\",\n          },\n          {\n            title: \"Data Fetching\",\n            url: \"#\",\n            isActive: true,\n          },\n          {\n            title: \"Rendering\",\n            url: \"#\",\n          },\n          {\n            title: \"Caching\",\n            url: \"#\",\n          },\n          {\n            title: \"Styling\",\n            url: \"#\",\n          },\n          {\n            title: \"Optimizing\",\n            url: \"#\",\n          },\n          {\n            title: \"Configuring\",\n            url: \"#\",\n          },\n          {\n            title: \"Testing\",\n            url: \"#\",\n          },\n          {\n            title: \"Authentication\",\n            url: \"#\",\n          },\n          {\n            title: \"Deploying\",\n            url: \"#\",\n          },\n          {\n            title: \"Upgrading\",\n            url: \"#\",\n          },\n          {\n            title: \"Examples\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"API Reference\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Components\",\n            url: \"#\",\n          },\n          {\n            title: \"File Conventions\",\n            url: \"#\",\n          },\n          {\n            title: \"Functions\",\n            url: \"#\",\n          },\n          {\n            title: \"next.config.js Options\",\n            url: \"#\",\n          },\n          {\n            title: \"CLI\",\n            url: \"#\",\n          },\n          {\n            title: \"Edge Runtime\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Architecture\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Accessibility\",\n            url: \"#\",\n          },\n          {\n            title: \"Fast Refresh\",\n            url: \"#\",\n          },\n          {\n            title: \"Next.js Compiler\",\n            url: \"#\",\n          },\n          {\n            title: \"Supported Browsers\",\n            url: \"#\",\n          },\n          {\n            title: \"Turbopack\",\n            url: \"#\",\n          },\n        ],\n      },\n    ],\n  };\n  const selectedVersion = ref(data.versions[0]);\n  useSeoMeta({ title: \"Sidebar 01\" });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar01.vue","components":["breadcrumbs","divider","dropdown-menu","label","navbar","placeholder","sidebar"]},{"name":"Sidebar 02","fileName":"BlockSidebar02.vue","file":"<template>\n  <UiSidebarProvider>\n    <!-- App Sidebar -->\n    <UiSidebar>\n      <UiSidebarHeader>\n        <!-- Version switcher -->\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon name=\"lucide:gallery-vertical-end\" class=\"size-4\" />\n                  </div>\n                  <div class=\"flex flex-col gap-0.5 leading-none\">\n                    <span class=\"font-semibold\">Documentation</span>\n                    <span class=\"\">v{{ selectedVersion }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent class=\"w-(--reka-dropdown-menu-trigger-width)\" align=\"start\">\n                <UiDropdownMenuItem\n                  v-for=\"version in data.versions\"\n                  :key=\"version\"\n                  class=\"cursor-pointer\"\n                  @select=\"selectedVersion = version\"\n                >\n                  v{{ version }}\n                  <Icon v-if=\"version === selectedVersion\" name=\"lucide:check\" class=\"ml-auto\" />\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n        <!-- Search form -->\n        <form>\n          <UiSidebarGroup class=\"py-0\">\n            <UiSidebarGroupContent class=\"relative\">\n              <UiLabel for=\"search\" class=\"sr-only\"> Search </UiLabel>\n              <UiSidebarInput id=\"search\" placeholder=\"Search the docs...\" class=\"pl-8\" />\n              <Icon\n                name=\"lucide:search\"\n                class=\"pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none\"\n              />\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </form>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <!-- We create a SidebarGroup for each parent. -->\n        <template v-for=\"item in data.navMain\" :key=\"item.title\">\n          <UiCollapsible v-slot=\"{ open }\" default-open>\n            <UiSidebarGroup>\n              <UiCollapsibleTrigger as-child>\n                <UiSidebarGroupLabel\n                  class=\"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground text-sm\"\n                  >{{ item.title }}\n                  <Icon\n                    class=\"ml-auto transition-transform\"\n                    :class=\"[open && 'rotate-90']\"\n                    name=\"lucide:chevron-right\"\n                /></UiSidebarGroupLabel>\n              </UiCollapsibleTrigger>\n              <UiCollapsibleContent>\n                <UiSidebarGroupContent>\n                  <UiSidebarMenu>\n                    <template v-for=\"child in item.items\" :key=\"`child-${child.title}`\">\n                      <UiSidebarMenuItem>\n                        <UiSidebarMenuButton as-child :is-active=\"child.isActive\">\n                          <NuxtLink :href=\"child.url\">{{ child.title }}</NuxtLink>\n                        </UiSidebarMenuButton>\n                      </UiSidebarMenuItem>\n                    </template>\n                  </UiSidebarMenu>\n                </UiSidebarGroupContent>\n              </UiCollapsibleContent>\n            </UiSidebarGroup>\n          </UiCollapsible>\n        </template>\n      </UiSidebarContent>\n      <UiSidebarRail />\n    </UiSidebar>\n    <!-- Sidebar main content -->\n    <UiSidebarInset>\n      <!-- Navbar -->\n      <UiNavbar sticky class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </UiNavbar>\n      <div class=\"grid auto-rows-min gap-4 p-4 md:grid-cols-3\">\n        <UiPlaceholder v-for=\"n in 30\" :key=\"n\" class=\"aspect-video rounded-lg\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Breadcrumb items\n  const breadcrumbItems = [\n    { label: \"Building Your Application\", link: \"#\" },\n    { label: \"Data Fetching\", link: \"#\" },\n  ];\n  // This is sample data.\n  const data = {\n    versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n    navMain: [\n      {\n        title: \"Getting Started\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Installation\",\n            url: \"#\",\n          },\n          {\n            title: \"Project Structure\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Building Your Application\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Routing\",\n            url: \"#\",\n          },\n          {\n            title: \"Data Fetching\",\n            url: \"#\",\n            isActive: true,\n          },\n          {\n            title: \"Rendering\",\n            url: \"#\",\n          },\n          {\n            title: \"Caching\",\n            url: \"#\",\n          },\n          {\n            title: \"Styling\",\n            url: \"#\",\n          },\n          {\n            title: \"Optimizing\",\n            url: \"#\",\n          },\n          {\n            title: \"Configuring\",\n            url: \"#\",\n          },\n          {\n            title: \"Testing\",\n            url: \"#\",\n          },\n          {\n            title: \"Authentication\",\n            url: \"#\",\n          },\n          {\n            title: \"Deploying\",\n            url: \"#\",\n          },\n          {\n            title: \"Upgrading\",\n            url: \"#\",\n          },\n          {\n            title: \"Examples\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"API Reference\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Components\",\n            url: \"#\",\n          },\n          {\n            title: \"File Conventions\",\n            url: \"#\",\n          },\n          {\n            title: \"Functions\",\n            url: \"#\",\n          },\n          {\n            title: \"next.config.js Options\",\n            url: \"#\",\n          },\n          {\n            title: \"CLI\",\n            url: \"#\",\n          },\n          {\n            title: \"Edge Runtime\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Architecture\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Accessibility\",\n            url: \"#\",\n          },\n          {\n            title: \"Fast Refresh\",\n            url: \"#\",\n          },\n          {\n            title: \"Next.js Compiler\",\n            url: \"#\",\n          },\n          {\n            title: \"Supported Browsers\",\n            url: \"#\",\n          },\n          {\n            title: \"Turbopack\",\n            url: \"#\",\n          },\n        ],\n      },\n    ],\n  };\n  const selectedVersion = ref(data.versions[0]);\n  useSeoMeta({ title: \"A sidebar with collapsible sections.\" });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar02.vue","components":["breadcrumbs","collapsible","divider","dropdown-menu","label","navbar","placeholder","sidebar"]},{"name":"Sidebar 03","fileName":"BlockSidebar03.vue","file":"<template>\n  <UiSidebarProvider>\n    <!-- App Sidebar -->\n    <UiSidebar>\n      <UiSidebarHeader>\n        <!-- Version switcher -->\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon name=\"lucide:gallery-vertical-end\" class=\"size-4\" />\n                  </div>\n                  <div class=\"flex flex-col gap-0.5 leading-none\">\n                    <span class=\"font-semibold\">Documentation</span>\n                    <span class=\"\">v{{ selectedVersion }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent class=\"w-(--reka-dropdown-menu-trigger-width)\" align=\"start\">\n                <UiDropdownMenuItem\n                  v-for=\"version in data.versions\"\n                  :key=\"version\"\n                  class=\"cursor-pointer\"\n                  @select=\"selectedVersion = version\"\n                >\n                  v{{ version }}\n                  <Icon v-if=\"version === selectedVersion\" name=\"lucide:check\" class=\"ml-auto\" />\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n        <!-- Search form -->\n        <form>\n          <UiSidebarGroup class=\"py-0\">\n            <UiSidebarGroupContent class=\"relative\">\n              <UiLabel for=\"search\" class=\"sr-only\"> Search </UiLabel>\n              <UiSidebarInput id=\"search\" placeholder=\"Search the docs...\" class=\"pl-8\" />\n              <Icon\n                name=\"lucide:search\"\n                class=\"pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none\"\n              />\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </form>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"item in data.navMain\" :key=\"item.title\">\n              <UiSidebarMenuButton as-child>\n                <NuxtLink :href=\"item.url\" class=\"font-medium\">\n                  {{ item.title }}\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiSidebarMenuSub v-if=\"item.items?.length\">\n                <UiSidebarMenuSubItem v-for=\"child in item.items\" :key=\"child.title\">\n                  <UiSidebarMenuSubButton as-child :is-active=\"child.isActive\">\n                    <NuxtLink :href=\"child.url\">{{ child.title }}</NuxtLink>\n                  </UiSidebarMenuSubButton>\n                </UiSidebarMenuSubItem>\n              </UiSidebarMenuSub>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n      <UiSidebarRail />\n    </UiSidebar>\n    <!-- Sidebar main content -->\n    <UiSidebarInset>\n      <!-- Navbar -->\n      <UiNavbar sticky class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </UiNavbar>\n      <div class=\"grid auto-rows-min gap-4 p-4 md:grid-cols-3\">\n        <UiPlaceholder v-for=\"n in 30\" :key=\"n\" class=\"aspect-video rounded-lg\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Breadcrumb items\n  const breadcrumbItems = [\n    { label: \"Building Your Application\", link: \"#\" },\n    { label: \"Data Fetching\", link: \"#\" },\n  ];\n  // This is sample data.\n  const data = {\n    versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n    navMain: [\n      {\n        title: \"Getting Started\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Installation\",\n            url: \"#\",\n          },\n          {\n            title: \"Project Structure\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Building Your Application\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Routing\",\n            url: \"#\",\n          },\n          {\n            title: \"Data Fetching\",\n            url: \"#\",\n            isActive: true,\n          },\n          {\n            title: \"Rendering\",\n            url: \"#\",\n          },\n          {\n            title: \"Caching\",\n            url: \"#\",\n          },\n          {\n            title: \"Styling\",\n            url: \"#\",\n          },\n          {\n            title: \"Optimizing\",\n            url: \"#\",\n          },\n          {\n            title: \"Configuring\",\n            url: \"#\",\n          },\n          {\n            title: \"Testing\",\n            url: \"#\",\n          },\n          {\n            title: \"Authentication\",\n            url: \"#\",\n          },\n          {\n            title: \"Deploying\",\n            url: \"#\",\n          },\n          {\n            title: \"Upgrading\",\n            url: \"#\",\n          },\n          {\n            title: \"Examples\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"API Reference\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Components\",\n            url: \"#\",\n          },\n          {\n            title: \"File Conventions\",\n            url: \"#\",\n          },\n          {\n            title: \"Functions\",\n            url: \"#\",\n          },\n          {\n            title: \"next.config.js Options\",\n            url: \"#\",\n          },\n          {\n            title: \"CLI\",\n            url: \"#\",\n          },\n          {\n            title: \"Edge Runtime\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Architecture\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Accessibility\",\n            url: \"#\",\n          },\n          {\n            title: \"Fast Refresh\",\n            url: \"#\",\n          },\n          {\n            title: \"Next.js Compiler\",\n            url: \"#\",\n          },\n          {\n            title: \"Supported Browsers\",\n            url: \"#\",\n          },\n          {\n            title: \"Turbopack\",\n            url: \"#\",\n          },\n        ],\n      },\n    ],\n  };\n  const selectedVersion = ref(data.versions[0]);\n  useSeoMeta({ title: \"A sidebar with submenus.\" });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar03.vue","components":["breadcrumbs","divider","dropdown-menu","label","navbar","placeholder","sidebar"]},{"name":"Sidebar 04","fileName":"BlockSidebar04.vue","file":"<template>\n  <UiSidebarProvider class=\"[--sidebar-width:19rem_!important]\">\n    <!-- App Sidebar -->\n    <UiSidebar variant=\"floating\">\n      <UiSidebarHeader>\n        <!-- Version switcher -->\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon name=\"lucide:gallery-vertical-end\" class=\"size-4\" />\n                  </div>\n                  <div class=\"flex flex-col gap-0.5 leading-none\">\n                    <span class=\"font-semibold\">Documentation</span>\n                    <span class=\"\">v{{ selectedVersion }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent class=\"w-(--reka-dropdown-menu-trigger-width)\" align=\"start\">\n                <UiDropdownMenuItem\n                  v-for=\"version in data.versions\"\n                  :key=\"version\"\n                  class=\"cursor-pointer\"\n                  @select=\"selectedVersion = version\"\n                >\n                  v{{ version }}\n                  <Icon v-if=\"version === selectedVersion\" name=\"lucide:check\" class=\"ml-auto\" />\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarMenu class=\"gap-2\">\n            <UiSidebarMenuItem v-for=\"item in data.navMain\" :key=\"item.title\">\n              <UiSidebarMenuButton as-child>\n                <NuxtLink :href=\"item.url\" class=\"font-medium\">\n                  {{ item.title }}\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiSidebarMenuSub v-if=\"item.items?.length\" class=\"border-l-0 px-1.5\">\n                <UiSidebarMenuSubItem v-for=\"child in item.items\" :key=\"child.title\">\n                  <UiSidebarMenuSubButton as-child :is-active=\"child.isActive\">\n                    <NuxtLink :href=\"child.url\">{{ child.title }}</NuxtLink>\n                  </UiSidebarMenuSubButton>\n                </UiSidebarMenuSubItem>\n              </UiSidebarMenuSub>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n      <UiSidebarRail />\n    </UiSidebar>\n    <!-- Sidebar main content -->\n    <UiSidebarInset>\n      <!-- Navbar -->\n      <UiNavbar sticky class=\"flex h-14 shrink-0 items-center gap-2 border-b-0 px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </UiNavbar>\n      <div class=\"grid auto-rows-min gap-4 p-4 md:grid-cols-3\">\n        <UiPlaceholder v-for=\"n in 30\" :key=\"n\" class=\"aspect-video rounded-lg\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Breadcrumb items\n  const breadcrumbItems = [\n    { label: \"Building Your Application\", link: \"#\" },\n    { label: \"Data Fetching\", link: \"#\" },\n  ];\n  // This is sample data.\n  const data = {\n    versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n    navMain: [\n      {\n        title: \"Getting Started\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Installation\",\n            url: \"#\",\n          },\n          {\n            title: \"Project Structure\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Building Your Application\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Routing\",\n            url: \"#\",\n          },\n          {\n            title: \"Data Fetching\",\n            url: \"#\",\n            isActive: true,\n          },\n          {\n            title: \"Rendering\",\n            url: \"#\",\n          },\n          {\n            title: \"Caching\",\n            url: \"#\",\n          },\n          {\n            title: \"Styling\",\n            url: \"#\",\n          },\n          {\n            title: \"Optimizing\",\n            url: \"#\",\n          },\n          {\n            title: \"Configuring\",\n            url: \"#\",\n          },\n          {\n            title: \"Testing\",\n            url: \"#\",\n          },\n          {\n            title: \"Authentication\",\n            url: \"#\",\n          },\n          {\n            title: \"Deploying\",\n            url: \"#\",\n          },\n          {\n            title: \"Upgrading\",\n            url: \"#\",\n          },\n          {\n            title: \"Examples\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"API Reference\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Components\",\n            url: \"#\",\n          },\n          {\n            title: \"File Conventions\",\n            url: \"#\",\n          },\n          {\n            title: \"Functions\",\n            url: \"#\",\n          },\n          {\n            title: \"next.config.js Options\",\n            url: \"#\",\n          },\n          {\n            title: \"CLI\",\n            url: \"#\",\n          },\n          {\n            title: \"Edge Runtime\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Architecture\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Accessibility\",\n            url: \"#\",\n          },\n          {\n            title: \"Fast Refresh\",\n            url: \"#\",\n          },\n          {\n            title: \"Next.js Compiler\",\n            url: \"#\",\n          },\n          {\n            title: \"Supported Browsers\",\n            url: \"#\",\n          },\n          {\n            title: \"Turbopack\",\n            url: \"#\",\n          },\n        ],\n      },\n    ],\n  };\n  const selectedVersion = ref(data.versions[0]);\n  useSeoMeta({ title: \"A floating sidebar with submenus.\" });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar04.vue","components":["breadcrumbs","divider","dropdown-menu","navbar","placeholder","sidebar"]},{"name":"Sidebar 05","fileName":"BlockSidebar05.vue","file":"<template>\n  <UiSidebarProvider>\n    <!-- App Sidebar -->\n    <UiSidebar>\n      <UiSidebarHeader>\n        <!-- Version switcher -->\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon name=\"lucide:gallery-vertical-end\" class=\"size-4\" />\n                  </div>\n                  <div class=\"flex flex-col gap-0.5 leading-none\">\n                    <span class=\"font-semibold\">Documentation</span>\n                    <span class=\"\">v{{ selectedVersion }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent class=\"w-(--reka-dropdown-menu-trigger-width)\" align=\"start\">\n                <UiDropdownMenuItem\n                  v-for=\"version in data.versions\"\n                  :key=\"version\"\n                  class=\"cursor-pointer\"\n                  @select=\"selectedVersion = version\"\n                >\n                  v{{ version }}\n                  <Icon v-if=\"version === selectedVersion\" name=\"lucide:check\" class=\"ml-auto\" />\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n        <!-- Search form -->\n        <form>\n          <UiSidebarGroup class=\"py-0\">\n            <UiSidebarGroupContent class=\"relative\">\n              <UiLabel for=\"search\" class=\"sr-only\"> Search </UiLabel>\n              <UiSidebarInput id=\"search\" placeholder=\"Search the docs...\" class=\"pl-8\" />\n              <Icon\n                name=\"lucide:search\"\n                class=\"pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none\"\n              />\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </form>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarMenu>\n            <template v-for=\"(item, index) in data.navMain\" :key=\"item.title\">\n              <UiCollapsible v-slot=\"{ open }\" :default-open=\"index == 1\">\n                <UiSidebarMenuItem>\n                  <UiCollapsibleTrigger as-child>\n                    <UiSidebarMenuButton>\n                      {{ item.title }}\n                      <Icon v-if=\"!open\" name=\"lucide:plus\" class=\"ml-auto\" />\n                      <Icon v-else name=\"lucide:minus\" class=\"ml-auto\" />\n                    </UiSidebarMenuButton>\n                  </UiCollapsibleTrigger>\n                  <UiCollapsibleContent v-if=\"item.items?.length\">\n                    <UiSidebarMenuSub>\n                      <template v-for=\"child in item.items\" :key=\"child.title\">\n                        <UiSidebarMenuSubItem>\n                          <UiSidebarMenuSubButton as-child :is-active=\"child.isActive\">\n                            <NuxtLink :href=\"child.url\">{{ child.title }}</NuxtLink>\n                          </UiSidebarMenuSubButton>\n                        </UiSidebarMenuSubItem>\n                      </template>\n                    </UiSidebarMenuSub>\n                  </UiCollapsibleContent>\n                </UiSidebarMenuItem>\n              </UiCollapsible>\n            </template>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n      <UiSidebarRail />\n    </UiSidebar>\n    <!-- Sidebar main content -->\n    <UiSidebarInset>\n      <!-- Navbar -->\n      <UiNavbar sticky class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </UiNavbar>\n      <div class=\"grid auto-rows-min gap-4 p-4 md:grid-cols-3\">\n        <UiPlaceholder v-for=\"n in 30\" :key=\"n\" class=\"aspect-video rounded-lg\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Breadcrumb items\n  const breadcrumbItems = [\n    { label: \"Building Your Application\", link: \"#\" },\n    { label: \"Data Fetching\", link: \"#\" },\n  ];\n  // This is sample data.\n  const data = {\n    versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n    navMain: [\n      {\n        title: \"Getting Started\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Installation\",\n            url: \"#\",\n          },\n          {\n            title: \"Project Structure\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Building Your Application\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Routing\",\n            url: \"#\",\n          },\n          {\n            title: \"Data Fetching\",\n            url: \"#\",\n            isActive: true,\n          },\n          {\n            title: \"Rendering\",\n            url: \"#\",\n          },\n          {\n            title: \"Caching\",\n            url: \"#\",\n          },\n          {\n            title: \"Styling\",\n            url: \"#\",\n          },\n          {\n            title: \"Optimizing\",\n            url: \"#\",\n          },\n          {\n            title: \"Configuring\",\n            url: \"#\",\n          },\n          {\n            title: \"Testing\",\n            url: \"#\",\n          },\n          {\n            title: \"Authentication\",\n            url: \"#\",\n          },\n          {\n            title: \"Deploying\",\n            url: \"#\",\n          },\n          {\n            title: \"Upgrading\",\n            url: \"#\",\n          },\n          {\n            title: \"Examples\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"API Reference\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Components\",\n            url: \"#\",\n          },\n          {\n            title: \"File Conventions\",\n            url: \"#\",\n          },\n          {\n            title: \"Functions\",\n            url: \"#\",\n          },\n          {\n            title: \"next.config.js Options\",\n            url: \"#\",\n          },\n          {\n            title: \"CLI\",\n            url: \"#\",\n          },\n          {\n            title: \"Edge Runtime\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Architecture\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Accessibility\",\n            url: \"#\",\n          },\n          {\n            title: \"Fast Refresh\",\n            url: \"#\",\n          },\n          {\n            title: \"Next.js Compiler\",\n            url: \"#\",\n          },\n          {\n            title: \"Supported Browsers\",\n            url: \"#\",\n          },\n          {\n            title: \"Turbopack\",\n            url: \"#\",\n          },\n        ],\n      },\n    ],\n  };\n  const selectedVersion = ref(data.versions[0]);\n  useSeoMeta({ title: \"A sidebar with collapsible submenus.\" });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar05.vue","components":["breadcrumbs","collapsible","divider","dropdown-menu","label","navbar","placeholder","sidebar"]},{"name":"Sidebar 06","fileName":"BlockSidebar06.vue","file":"<template>\n  <UiSidebarProvider v-slot=\"{ isMobile }\">\n    <!-- App Sidebar -->\n    <UiSidebar>\n      <UiSidebarHeader>\n        <!-- Version switcher -->\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon name=\"lucide:gallery-vertical-end\" class=\"size-4\" />\n                  </div>\n                  <div class=\"flex flex-col gap-0.5 leading-none\">\n                    <span class=\"font-semibold\">Documentation</span>\n                    <span class=\"\">v{{ selectedVersion }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent class=\"w-(--reka-dropdown-menu-trigger-width)\" align=\"start\">\n                <UiDropdownMenuItem\n                  v-for=\"version in data.versions\"\n                  :key=\"version\"\n                  class=\"cursor-pointer\"\n                  @select=\"selectedVersion = version\"\n                >\n                  v{{ version }}\n                  <Icon v-if=\"version === selectedVersion\" name=\"lucide:check\" class=\"ml-auto\" />\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n        <!-- Search form -->\n        <form>\n          <UiSidebarGroup class=\"py-0\">\n            <UiSidebarGroupContent class=\"relative\">\n              <UiLabel for=\"search\" class=\"sr-only\"> Search </UiLabel>\n              <UiSidebarInput id=\"search\" placeholder=\"Search the docs...\" class=\"pl-8\" />\n              <Icon\n                name=\"lucide:search\"\n                class=\"pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none\"\n              />\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </form>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarMenu>\n            <template v-for=\"item in data.navMain\" :key=\"item.title\">\n              <UiDropdownMenu>\n                <UiSidebarMenuItem>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiSidebarMenuButton\n                      class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                    >\n                      {{ item.title }}\n                      <Icon name=\"lucide:ellipsis-vertical\" class=\"ml-auto rotate-90\" />\n                    </UiSidebarMenuButton>\n                  </UiDropdownMenuTrigger>\n                </UiSidebarMenuItem>\n\n                <UiDropdownMenuContent\n                  v-if=\"item.items?.length\"\n                  :side=\"isMobile ? 'bottom' : 'right'\"\n                  :align=\"isMobile ? 'end' : 'start'\"\n                  class=\"min-w-56 rounded-lg\"\n                >\n                  <template v-for=\"child in item.items\" :key=\"`child-${child.title}`\">\n                    <UiDropdownMenuItem as-child>\n                      <NuxtLink :href=\"child.url\">{{ child.title }}</NuxtLink>\n                    </UiDropdownMenuItem>\n                  </template>\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </template>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n      <UiSidebarRail />\n      <!-- Footer with subscription form -->\n      <UiSidebarFooter>\n        <div class=\"p-1\">\n          <UiCard class=\"shadow-none\">\n            <form>\n              <UiCardHeader class=\"p-4\">\n                <UiCardTitle class=\"text-sm\">Subscribe to our newsletter</UiCardTitle>\n                <UiCardDescription>\n                  Opt-in to receive updates and news about the sidebar.\n                </UiCardDescription>\n              </UiCardHeader>\n              <UiCardContent class=\"grid gap-2.5 p-4\">\n                <UiSidebarInput type=\"email\" placeholder=\"Email\" />\n                <UiButton\n                  class=\"bg-sidebar-primary text-sidebar-primary-foreground hover:bg-sidebar-primary/80\"\n                  size=\"sm\"\n                >\n                  Subscribe\n                </UiButton>\n              </UiCardContent>\n            </form>\n          </UiCard>\n        </div>\n      </UiSidebarFooter>\n    </UiSidebar>\n    <!-- Sidebar main content -->\n    <UiSidebarInset>\n      <!-- Navbar -->\n      <UiNavbar sticky class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </UiNavbar>\n      <div class=\"grid auto-rows-min gap-4 p-4 md:grid-cols-3\">\n        <UiPlaceholder v-for=\"n in 30\" :key=\"n\" class=\"aspect-video rounded-lg\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Breadcrumb items\n  const breadcrumbItems = [\n    { label: \"Building Your Application\", link: \"#\" },\n    { label: \"Data Fetching\", link: \"#\" },\n  ];\n  // This is sample data.\n  const data = {\n    versions: [\"1.0.1\", \"1.1.0-alpha\", \"2.0.0-beta1\"],\n    navMain: [\n      {\n        title: \"Getting Started\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Installation\",\n            url: \"#\",\n          },\n          {\n            title: \"Project Structure\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Building Your Application\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Routing\",\n            url: \"#\",\n          },\n          {\n            title: \"Data Fetching\",\n            url: \"#\",\n            isActive: true,\n          },\n          {\n            title: \"Rendering\",\n            url: \"#\",\n          },\n          {\n            title: \"Caching\",\n            url: \"#\",\n          },\n          {\n            title: \"Styling\",\n            url: \"#\",\n          },\n          {\n            title: \"Optimizing\",\n            url: \"#\",\n          },\n          {\n            title: \"Configuring\",\n            url: \"#\",\n          },\n          {\n            title: \"Testing\",\n            url: \"#\",\n          },\n          {\n            title: \"Authentication\",\n            url: \"#\",\n          },\n          {\n            title: \"Deploying\",\n            url: \"#\",\n          },\n          {\n            title: \"Upgrading\",\n            url: \"#\",\n          },\n          {\n            title: \"Examples\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"API Reference\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Components\",\n            url: \"#\",\n          },\n          {\n            title: \"File Conventions\",\n            url: \"#\",\n          },\n          {\n            title: \"Functions\",\n            url: \"#\",\n          },\n          {\n            title: \"next.config.js Options\",\n            url: \"#\",\n          },\n          {\n            title: \"CLI\",\n            url: \"#\",\n          },\n          {\n            title: \"Edge Runtime\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Architecture\",\n        url: \"#\",\n        items: [\n          {\n            title: \"Accessibility\",\n            url: \"#\",\n          },\n          {\n            title: \"Fast Refresh\",\n            url: \"#\",\n          },\n          {\n            title: \"Next.js Compiler\",\n            url: \"#\",\n          },\n          {\n            title: \"Supported Browsers\",\n            url: \"#\",\n          },\n          {\n            title: \"Turbopack\",\n            url: \"#\",\n          },\n        ],\n      },\n    ],\n  };\n  const selectedVersion = ref(data.versions[0]);\n  useSeoMeta({ title: \"A sidebar with collapsible submenus.\" });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar06.vue","components":["breadcrumbs","button","card","divider","dropdown-menu","label","navbar","placeholder","sidebar"]},{"name":"Sidebar 07","fileName":"BlockSidebar07.vue","file":"<template>\n  <UiSidebarProvider v-slot=\"{ isMobile, state }\">\n    <!-- App Sidebar -->\n    <UiSidebar collapsible=\"icon\">\n      <!-- Team switcher -->\n      <UiSidebarHeader>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-0!\"\n                >\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon v-if=\"activeTeam\" mode=\"svg\" :name=\"activeTeam?.logo\" class=\"size-4\" />\n                  </div>\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">\n                      {{ activeTeam?.name }}\n                    </span>\n                    <span class=\"truncate text-xs\">{{ activeTeam?.plan }}</span>\n                  </div>\n                  <Icon mode=\"svg\" name=\"lucide:chevrons-up-down\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"w-(--reka-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n                align=\"start\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                :side-offset=\"4\"\n              >\n                <UiDropdownMenuLabel class=\"text-muted-foreground text-xs\">\n                  Teams\n                </UiDropdownMenuLabel>\n                <template v-for=\"(team, index) in data.teams\" :key=\"index\">\n                  <UiDropdownMenuItem\n                    class=\"cursor-pointer gap-2 p-2\"\n                    :class=\"[team.name == activeTeam?.name && 'bg-muted']\"\n                    @click=\"activeTeam = team\"\n                  >\n                    <div class=\"flex size-6 items-center justify-center rounded-sm border\">\n                      <Icon mode=\"svg\" :name=\"team.logo\" class=\"size-4 shrink-0\" />\n                    </div>\n                    {{ team.name }}\n                    <UiDropdownMenuShortcut>⌘{{ index + 1 }}</UiDropdownMenuShortcut>\n                  </UiDropdownMenuItem>\n                </template>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem class=\"gap-2 p-2\">\n                  <div\n                    class=\"bg-background flex size-6 items-center justify-center rounded-md border\"\n                  >\n                    <Icon name=\"lucide:plus\" class=\"size-4\" />\n                  </div>\n                  <div class=\"text-muted-foreground font-medium\">Add team</div>\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n\n        <!-- Search form -->\n        <form v-if=\"state != 'collapsed'\">\n          <UiSidebarGroup class=\"py-0\">\n            <UiSidebarGroupContent class=\"relative\">\n              <UiLabel for=\"search\" class=\"sr-only\"> Search </UiLabel>\n              <UiSidebarInput id=\"search\" placeholder=\"Search the docs...\" class=\"pl-8\" />\n              <Icon\n                name=\"lucide:search\"\n                class=\"pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none\"\n              />\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </form>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <!-- Main -->\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Platform\" />\n          <UiSidebarMenu>\n            <UiCollapsible\n              v-for=\"(item, index) in data.navMain\"\n              :key=\"index\"\n              v-slot=\"{ open }\"\n              as-child\n              :default-open=\"item.isActive\"\n            >\n              <UiSidebarMenuItem>\n                <UiCollapsibleTrigger as-child>\n                  <UiSidebarMenuButton :tooltip=\"item.title\">\n                    <Icon mode=\"svg\" :name=\"item.icon\" />\n\n                    <span>{{ item.title }}</span>\n                    <Icon\n                      mode=\"svg\"\n                      name=\"lucide:chevron-right\"\n                      class=\"ml-auto transition-transform duration-200\"\n                      :class=\"[open && 'rotate-90']\"\n                    />\n                  </UiSidebarMenuButton>\n                </UiCollapsibleTrigger>\n                <UiCollapsibleContent>\n                  <UiSidebarMenuSub>\n                    <UiSidebarMenuSubItem v-for=\"subItem in item.items\" :key=\"subItem.title\">\n                      <UiSidebarMenuSubButton as-child>\n                        <NuxtLink :href=\"subItem.url\">\n                          <span>{{ subItem.title }}</span>\n                        </NuxtLink>\n                      </UiSidebarMenuSubButton>\n                    </UiSidebarMenuSubItem>\n                  </UiSidebarMenuSub>\n                </UiCollapsibleContent>\n              </UiSidebarMenuItem>\n            </UiCollapsible>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n        <!-- Projects -->\n        <UiSidebarGroup class=\"group-data-[collapsible=icon]:hidden\">\n          <UiSidebarGroupLabel label=\"Projects\" />\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"item in data.projects\" :key=\"item.name\">\n              <UiSidebarMenuButton as-child>\n                <NuxtLink :href=\"item.url\">\n                  <Icon mode=\"svg\" :name=\"item.icon\" />\n                  <span>{{ item.name }}</span>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiSidebarMenuAction show-on-hover>\n                    <Icon mode=\"svg\" name=\"lucide:ellipsis-vertical\" class=\"rotate-90\" />\n                    <span class=\"sr-only\">More</span>\n                  </UiSidebarMenuAction>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent\n                  class=\"w-48 rounded-lg\"\n                  :side=\"isMobile ? 'bottom' : 'right'\"\n                  :align=\"isMobile ? 'end' : 'start'\"\n                >\n                  <UiDropdownMenuItem>\n                    <Icon mode=\"svg\" name=\"lucide:folder\" class=\"text-muted-foreground\" />\n                    <span>View Project</span>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem>\n                    <Icon name=\"lucide:forward\" class=\"text-muted-foreground\" />\n                    <span>Share Project</span>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem>\n                    <Icon name=\"lucide:trash-2\" class=\"text-muted-foreground\" />\n                    <span>Delete Project</span>\n                  </UiDropdownMenuItem>\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiSidebarMenuItem>\n\n            <UiSidebarMenuItem>\n              <UiSidebarMenuButton class=\"text-sidebar-foreground/70\">\n                <Icon\n                  name=\"lucide:ellipsis-vertical\"\n                  class=\"text-sidebar-foreground/70 rotate-90\"\n                />\n                <span>More</span>\n              </UiSidebarMenuButton>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n      <UiSidebarRail />\n      <!-- Footer-->\n      <UiSidebarFooter>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <UiAvatar class=\"size-8 rounded-lg\">\n                    <UiAvatarImage :src=\"data.user.avatar\" :alt=\"data.user.name\" />\n                    <UiAvatarFallback class=\"rounded-lg\">BB</UiAvatarFallback>\n                  </UiAvatar>\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">{{ data.user.name }}</span>\n                    <span class=\"truncate text-xs\">{{ data.user.email }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"w-(--reka-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                :side-offset=\"4\"\n                align=\"end\"\n              >\n                <UiDropdownMenuLabel class=\"p-0 font-normal\">\n                  <div class=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n                    <UiAvatar class=\"size-8 rounded-lg\">\n                      <UiAvatarImage :src=\"data.user.avatar\" :alt=\"data.user.name\" />\n                      <UiAvatarFallback class=\"rounded-lg\">BB</UiAvatarFallback>\n                    </UiAvatar>\n                    <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                      <span class=\"truncate font-semibold\">{{ data.user.name }}</span>\n                      <span class=\"truncate text-xs\">{{ data.user.email }}</span>\n                    </div>\n                  </div>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuGroup>\n                  <UiDropdownMenuItem icon=\"lucide:sparkles\" title=\"Upgrade to Pro\" />\n                </UiDropdownMenuGroup>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuGroup>\n                  <UiDropdownMenuItem icon=\"lucide:badge-check\" title=\"Account\" />\n                  <UiDropdownMenuItem icon=\"lucide:credit-card\" title=\"Billing\" />\n                  <UiDropdownMenuItem icon=\"lucide:settings-2\" title=\"Settings\" />\n                  <UiDropdownMenuItem icon=\"lucide:bell\" title=\"Notifications\" />\n                </UiDropdownMenuGroup>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n    </UiSidebar>\n    <!-- Sidebar main content -->\n    <UiSidebarInset>\n      <!-- Navbar -->\n      <UiNavbar sticky class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </UiNavbar>\n      <div class=\"grid auto-rows-min gap-4 p-4 md:grid-cols-3\">\n        <UiPlaceholder v-for=\"n in 30\" :key=\"n\" class=\"aspect-video rounded-lg\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Breadcrumb items\n  const breadcrumbItems = [\n    { label: \"Building Your Application\", link: \"#\" },\n    { label: \"Data Fetching\", link: \"#\" },\n  ];\n  // This is sample data.\n  const data = {\n    user: {\n      name: \"breezy\",\n      email: \"m@example.com\",\n      avatar: \"https://behonbaker.com/icon.png\",\n    },\n    teams: [\n      {\n        name: \"Acme Inc\",\n        logo: \"lucide:gallery-vertical-end\",\n        plan: \"Enterprise\",\n      },\n      {\n        name: \"Acme Corp.\",\n        logo: \"lucide:audio-waveform\",\n        plan: \"Startup\",\n      },\n      {\n        name: \"Evil Corp.\",\n        logo: \"lucide:command\",\n        plan: \"Free\",\n      },\n    ],\n    navMain: [\n      {\n        title: \"Playground\",\n        url: \"#\",\n        icon: \"lucide:square-terminal\",\n        isActive: true,\n        items: [\n          {\n            title: \"History\",\n            url: \"#\",\n          },\n          {\n            title: \"Starred\",\n            url: \"#\",\n          },\n          {\n            title: \"Settings\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Models\",\n        url: \"#\",\n        icon: \"lucide:bot\",\n        items: [\n          {\n            title: \"Genesis\",\n            url: \"#\",\n          },\n          {\n            title: \"Explorer\",\n            url: \"#\",\n          },\n          {\n            title: \"Quantum\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Documentation\",\n        url: \"#\",\n        icon: \"lucide:book-open\",\n        items: [\n          {\n            title: \"Introduction\",\n            url: \"#\",\n          },\n          {\n            title: \"Get Started\",\n            url: \"#\",\n          },\n          {\n            title: \"Tutorials\",\n            url: \"#\",\n          },\n          {\n            title: \"Changelog\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Settings\",\n        url: \"#\",\n        icon: \"lucide:settings-2\",\n        items: [\n          {\n            title: \"General\",\n            url: \"#\",\n          },\n          {\n            title: \"Team\",\n            url: \"#\",\n          },\n          {\n            title: \"Billing\",\n            url: \"#\",\n          },\n          {\n            title: \"Limits\",\n            url: \"#\",\n          },\n        ],\n      },\n    ],\n    projects: [\n      {\n        name: \"Design Engineering\",\n        url: \"#\",\n        icon: \"lucide:frame\",\n      },\n      {\n        name: \"Sales & Marketing\",\n        url: \"#\",\n        icon: \"lucide:pie-chart\",\n      },\n      {\n        name: \"Travel\",\n        url: \"#\",\n        icon: \"lucide:map\",\n      },\n    ],\n  };\n  const activeTeam = ref(data.teams[1]);\n  useSeoMeta({ title: \"A sidebar that collapses to icons.\" });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar07.vue","components":["avatar","breadcrumbs","collapsible","divider","dropdown-menu","label","navbar","placeholder","sidebar"]},{"name":"Sidebar 08","fileName":"BlockSidebar08.vue","file":"<template>\n  <UiSidebarProvider v-slot=\"{ isMobile, state }\">\n    <!-- App Sidebar -->\n    <UiSidebar variant=\"inset\">\n      <!-- Team switcher -->\n      <UiSidebarHeader>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon v-if=\"activeTeam\" mode=\"svg\" :name=\"activeTeam.logo\" class=\"size-4\" />\n                  </div>\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">\n                      {{ activeTeam?.name }}\n                    </span>\n                    <span class=\"truncate text-xs\">{{ activeTeam?.plan }}</span>\n                  </div>\n                  <Icon mode=\"svg\" name=\"lucide:chevrons-up-down\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"w-(--reka-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n                align=\"start\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                :side-offset=\"4\"\n              >\n                <UiDropdownMenuLabel class=\"text-muted-foreground text-xs\">\n                  Teams\n                </UiDropdownMenuLabel>\n                <template v-for=\"(team, index) in data.teams\" :key=\"index\">\n                  <UiDropdownMenuItem\n                    class=\"cursor-pointer gap-2 p-2\"\n                    :class=\"[team.name == activeTeam?.name && 'bg-muted']\"\n                    @click=\"activeTeam = team\"\n                  >\n                    <div class=\"flex size-6 items-center justify-center rounded-sm border\">\n                      <Icon mode=\"svg\" :name=\"team.logo\" class=\"size-4 shrink-0\" />\n                    </div>\n                    {{ team.name }}\n                    <UiDropdownMenuShortcut>⌘{{ index + 1 }}</UiDropdownMenuShortcut>\n                  </UiDropdownMenuItem>\n                </template>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem class=\"gap-2 p-2\">\n                  <div\n                    class=\"bg-background flex size-6 items-center justify-center rounded-md border\"\n                  >\n                    <Icon name=\"lucide:plus\" class=\"size-4\" />\n                  </div>\n                  <div class=\"text-muted-foreground font-medium\">Add team</div>\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n\n        <!-- Search form -->\n        <form v-if=\"state != 'collapsed'\">\n          <UiSidebarGroup class=\"py-0\">\n            <UiSidebarGroupContent class=\"relative\">\n              <UiLabel for=\"search\" class=\"sr-only\"> Search </UiLabel>\n              <UiSidebarInput id=\"search\" placeholder=\"Search the docs...\" class=\"pl-8\" />\n              <Icon\n                name=\"lucide:search\"\n                class=\"pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none\"\n              />\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </form>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <!-- Main -->\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Platform\" />\n          <UiSidebarMenu>\n            <UiCollapsible\n              v-for=\"(item, index) in data.navMain\"\n              :key=\"index\"\n              v-slot=\"{ open }\"\n              as-child\n              :default-open=\"item.isActive\"\n            >\n              <UiSidebarMenuItem>\n                <UiCollapsibleTrigger as-child>\n                  <UiSidebarMenuButton :tooltip=\"item.title\">\n                    <Icon mode=\"svg\" :name=\"item.icon\" />\n\n                    <span>{{ item.title }}</span>\n                    <Icon\n                      mode=\"svg\"\n                      name=\"lucide:chevron-right\"\n                      class=\"ml-auto transition-transform duration-200\"\n                      :class=\"[open && 'rotate-90']\"\n                    />\n                  </UiSidebarMenuButton>\n                </UiCollapsibleTrigger>\n                <UiCollapsibleContent>\n                  <UiSidebarMenuSub>\n                    <UiSidebarMenuSubItem v-for=\"subItem in item.items\" :key=\"subItem.title\">\n                      <UiSidebarMenuSubButton as-child>\n                        <NuxtLink :href=\"subItem.url\">\n                          <span>{{ subItem.title }}</span>\n                        </NuxtLink>\n                      </UiSidebarMenuSubButton>\n                    </UiSidebarMenuSubItem>\n                  </UiSidebarMenuSub>\n                </UiCollapsibleContent>\n              </UiSidebarMenuItem>\n            </UiCollapsible>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n        <!-- Projects -->\n        <UiSidebarGroup class=\"group-data-[collapsible=icon]:hidden\">\n          <UiSidebarGroupLabel label=\"Projects\" />\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"item in data.projects\" :key=\"item.name\">\n              <UiSidebarMenuButton as-child>\n                <NuxtLink :href=\"item.url\">\n                  <Icon mode=\"svg\" :name=\"item.icon\" />\n                  <span>{{ item.name }}</span>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiSidebarMenuAction show-on-hover>\n                    <Icon mode=\"svg\" name=\"lucide:ellipsis-vertical\" class=\"rotate-90\" />\n                    <span class=\"sr-only\">More</span>\n                  </UiSidebarMenuAction>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent\n                  class=\"w-48 rounded-lg\"\n                  :side=\"isMobile ? 'bottom' : 'right'\"\n                  :align=\"isMobile ? 'end' : 'start'\"\n                >\n                  <UiDropdownMenuItem>\n                    <Icon mode=\"svg\" name=\"lucide:folder\" class=\"text-muted-foreground\" />\n                    <span>View Project</span>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem>\n                    <Icon name=\"lucide:forward\" class=\"text-muted-foreground\" />\n                    <span>Share Project</span>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem>\n                    <Icon name=\"lucide:trash-2\" class=\"text-muted-foreground\" />\n                    <span>Delete Project</span>\n                  </UiDropdownMenuItem>\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiSidebarMenuItem>\n\n            <UiSidebarMenuItem>\n              <UiSidebarMenuButton class=\"text-sidebar-foreground/70\">\n                <Icon\n                  name=\"lucide:ellipsis-vertical\"\n                  class=\"text-sidebar-foreground/70 rotate-90\"\n                />\n                <span>More</span>\n              </UiSidebarMenuButton>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n        <!-- Secondary -->\n        <UiSidebarGroup class=\"mt-auto\">\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"item in data.navSecondary\" :key=\"item.title\">\n                <UiSidebarMenuButton as-child size=\"sm\">\n                  <NuxtLink :href=\"item.url\">\n                    <Icon mode=\"svg\" :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </NuxtLink>\n                </UiSidebarMenuButton>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n      <UiSidebarRail />\n      <!-- Footer-->\n      <UiSidebarFooter>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <UiAvatar class=\"size-8 rounded-lg\">\n                    <UiAvatarImage :src=\"data.user.avatar\" :alt=\"data.user.name\" />\n                    <UiAvatarFallback class=\"rounded-lg\">BB</UiAvatarFallback>\n                  </UiAvatar>\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">{{ data.user.name }}</span>\n                    <span class=\"truncate text-xs\">{{ data.user.email }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"w-(--reka-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                :side-offset=\"4\"\n                align=\"end\"\n              >\n                <UiDropdownMenuLabel class=\"p-0 font-normal\">\n                  <div class=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n                    <UiAvatar class=\"size-8 rounded-lg\">\n                      <UiAvatarImage :src=\"data.user.avatar\" :alt=\"data.user.name\" />\n                      <UiAvatarFallback class=\"rounded-lg\">BB</UiAvatarFallback>\n                    </UiAvatar>\n                    <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                      <span class=\"truncate font-semibold\">{{ data.user.name }}</span>\n                      <span class=\"truncate text-xs\">{{ data.user.email }}</span>\n                    </div>\n                  </div>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuGroup>\n                  <UiDropdownMenuItem icon=\"lucide:sparkles\" title=\"Upgrade to Pro\" />\n                </UiDropdownMenuGroup>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuGroup>\n                  <UiDropdownMenuItem icon=\"lucide:badge-check\" title=\"Account\" />\n                  <UiDropdownMenuItem icon=\"lucide:credit-card\" title=\"Billing\" />\n                  <UiDropdownMenuItem icon=\"lucide:settings-2\" title=\"Settings\" />\n                  <UiDropdownMenuItem icon=\"lucide:bell\" title=\"Notifications\" />\n                </UiDropdownMenuGroup>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n    </UiSidebar>\n    <!-- Sidebar main content -->\n    <UiSidebarInset>\n      <!-- Navbar -->\n      <UiNavbar sticky class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </UiNavbar>\n      <div class=\"grid auto-rows-min gap-4 p-4 md:grid-cols-3\">\n        <UiPlaceholder v-for=\"n in 30\" :key=\"n\" class=\"aspect-video rounded-lg\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Breadcrumb items\n  const breadcrumbItems = [\n    { label: \"Building Your Application\", link: \"#\" },\n    { label: \"Data Fetching\", link: \"#\" },\n  ];\n  // This is sample data.\n  const data = {\n    user: {\n      name: \"breezy\",\n      email: \"m@example.com\",\n      avatar: \"https://behonbaker.com/icon.png\",\n    },\n    teams: [\n      {\n        name: \"Acme Inc\",\n        logo: \"lucide:gallery-vertical-end\",\n        plan: \"Enterprise\",\n      },\n      {\n        name: \"Acme Corp.\",\n        logo: \"lucide:audio-waveform\",\n        plan: \"Startup\",\n      },\n      {\n        name: \"Evil Corp.\",\n        logo: \"lucide:command\",\n        plan: \"Free\",\n      },\n    ],\n    navMain: [\n      {\n        title: \"Playground\",\n        url: \"#\",\n        icon: \"lucide:square-terminal\",\n        isActive: true,\n        items: [\n          {\n            title: \"History\",\n            url: \"#\",\n          },\n          {\n            title: \"Starred\",\n            url: \"#\",\n          },\n          {\n            title: \"Settings\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Models\",\n        url: \"#\",\n        icon: \"lucide:bot\",\n        items: [\n          {\n            title: \"Genesis\",\n            url: \"#\",\n          },\n          {\n            title: \"Explorer\",\n            url: \"#\",\n          },\n          {\n            title: \"Quantum\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Documentation\",\n        url: \"#\",\n        icon: \"lucide:book-open\",\n        items: [\n          {\n            title: \"Introduction\",\n            url: \"#\",\n          },\n          {\n            title: \"Get Started\",\n            url: \"#\",\n          },\n          {\n            title: \"Tutorials\",\n            url: \"#\",\n          },\n          {\n            title: \"Changelog\",\n            url: \"#\",\n          },\n        ],\n      },\n      {\n        title: \"Settings\",\n        url: \"#\",\n        icon: \"lucide:settings-2\",\n        items: [\n          {\n            title: \"General\",\n            url: \"#\",\n          },\n          {\n            title: \"Team\",\n            url: \"#\",\n          },\n          {\n            title: \"Billing\",\n            url: \"#\",\n          },\n          {\n            title: \"Limits\",\n            url: \"#\",\n          },\n        ],\n      },\n    ],\n    projects: [\n      {\n        name: \"Design Engineering\",\n        url: \"#\",\n        icon: \"lucide:frame\",\n      },\n      {\n        name: \"Sales & Marketing\",\n        url: \"#\",\n        icon: \"lucide:pie-chart\",\n      },\n      {\n        name: \"Travel\",\n        url: \"#\",\n        icon: \"lucide:map\",\n      },\n    ],\n    navSecondary: [\n      {\n        title: \"Support\",\n        url: \"#\",\n        icon: \"lucide:life-buoy\",\n      },\n      {\n        title: \"Feedback\",\n        url: \"#\",\n        icon: \"lucide:send\",\n      },\n    ],\n  };\n  const activeTeam = ref(data.teams[1]);\n  useSeoMeta({ title: \"An inset sidebar with secondary navigation.\" });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar08.vue","components":["avatar","breadcrumbs","collapsible","divider","dropdown-menu","label","navbar","placeholder","sidebar"]},{"name":"Sidebar 09","fileName":"BlockSidebar09.vue","file":"<template>\n  <UiSidebarProvider v-slot=\"{ isMobile, setOpen }\" class=\"[--sidebar-width:350px_!important]\">\n    <!-- App Sidebar -->\n    <UiSidebar collapsible=\"icon\" class=\"overflow-hidden *:data-[sidebar=sidebar]:flex-row\">\n      <!-- This is the first sidebar  -->\n      <!-- We disable collapsible and adjust width to icon.  -->\n      <!-- This will make the sidebar appear as icons.  -->\n      <UiSidebar collapsible=\"none\" class=\"w-[calc(var(--sidebar-width-icon)+1px)]! border-r\">\n        <UiSidebarHeader>\n          <UiSidebarMenu>\n            <UiSidebarMenuItem>\n              <UiSidebarMenuButton size=\"lg\" as-child class=\"md:h-8 md:p-0\">\n                <NuxtLink href=\"#\">\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\"\n                  >\n                    <Icon mode=\"svg\" name=\"lucide:command\" class=\"size-4\" />\n                  </div>\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">Acme Inc</span>\n                    <span class=\"truncate text-xs\">Enterprise</span>\n                  </div>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarHeader>\n        <UiSidebarContent>\n          <UiSidebarGroup>\n            <UiSidebarGroupContent class=\"px-1.5 md:px-0\">\n              <UiSidebarMenu>\n                <UiSidebarMenuItem v-for=\"item in data.navMain\" :key=\"item.title\">\n                  <UiSidebarMenuButton\n                    :tooltip=\"item.title\"\n                    :is-active=\"activeItem?.title === item.title\"\n                    class=\"px-2.5 md:px-2\"\n                    @click=\"\n                      () => {\n                        activeItem = item;\n                        const mail = data.mails.sort(() => Math.random() - 0.5);\n\n                        mails = mail.slice(0, Math.max(5, Math.floor(Math.random() * 10) + 1));\n                        setOpen(true);\n                      }\n                    \"\n                  >\n                    <Icon mode=\"svg\" :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </UiSidebarMenuButton>\n                </UiSidebarMenuItem>\n              </UiSidebarMenu>\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </UiSidebarContent>\n        <!-- minibar footer -->\n\n        <UiSidebarFooter>\n          <UiSidebarMenu>\n            <UiSidebarMenuItem>\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiSidebarMenuButton\n                    size=\"lg\"\n                    class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground md:h-8 md:p-0\"\n                  >\n                    <UiAvatar class=\"h-8 w-8 rounded-lg\">\n                      <UiAvatarImage :src=\"data.user.avatar\" :alt=\"data.user.name\" />\n                      <UiAvatarFallback class=\"rounded-lg\">BB</UiAvatarFallback>\n                    </UiAvatar>\n                    <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                      <span class=\"truncate font-semibold\">{{ data.user.name }}</span>\n                      <span class=\"truncate text-xs\">{{ data.user.email }}</span>\n                    </div>\n                    <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                  </UiSidebarMenuButton>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent\n                  class=\"w-(--reka-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n                  :side=\"isMobile ? 'bottom' : 'right'\"\n                  :side-offset=\"4\"\n                  align=\"end\"\n                >\n                  <UiDropdownMenuLabel class=\"p-0 font-normal\">\n                    <div class=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n                      <UiAvatar class=\"size-8 rounded-lg\">\n                        <UiAvatarImage :src=\"data.user.avatar\" :alt=\"data.user.name\" />\n                        <UiAvatarFallback class=\"rounded-lg\">BB</UiAvatarFallback>\n                      </UiAvatar>\n                      <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                        <span class=\"truncate font-semibold\">{{ data.user.name }}</span>\n                        <span class=\"truncate text-xs\">{{ data.user.email }}</span>\n                      </div>\n                    </div>\n                  </UiDropdownMenuLabel>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuGroup>\n                    <UiDropdownMenuItem icon=\"lucide:sparkles\" title=\"Upgrade to Pro\" />\n                  </UiDropdownMenuGroup>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuGroup>\n                    <UiDropdownMenuItem icon=\"lucide:badge-check\" title=\"Account\" />\n                    <UiDropdownMenuItem icon=\"lucide:credit-card\" title=\"Billing\" />\n                    <UiDropdownMenuItem icon=\"lucide:settings-2\" title=\"Settings\" />\n                    <UiDropdownMenuItem icon=\"lucide:bell\" title=\"Notifications\" />\n                  </UiDropdownMenuGroup>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarFooter>\n      </UiSidebar>\n      <!-- This is the second sidebar  -->\n      <!-- We disable collapsible and let it fill remaining space  -->\n      <UiSidebar collapsible=\"none\" class=\"hidden flex-1 md:flex\">\n        <UiSidebarHeader class=\"gap-3.5 border-b p-4\">\n          <div class=\"flex w-full items-center justify-between\">\n            <div class=\"text-foreground text-base font-medium\">\n              {{ activeItem?.title }}\n            </div>\n            <UiLabel class=\"flex items-center gap-2 text-sm\">\n              <span>Unreads</span>\n              <UiSwitch class=\"shadow-none\" />\n            </UiLabel>\n          </div>\n          <UiSidebarInput placeholder=\"Type to search...\" />\n        </UiSidebarHeader>\n        <UiSidebarContent>\n          <UiSidebarGroup class=\"px-0\">\n            <UiSidebarGroupContent>\n              <NuxtLink\n                v-for=\"mail in mails\"\n                :key=\"mail.email\"\n                href=\"#\"\n                class=\"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground flex flex-col items-start gap-2 border-b p-4 text-sm leading-tight whitespace-nowrap last:border-b-0\"\n              >\n                <div class=\"flex w-full items-center gap-2\">\n                  <span>{{ mail.name }}</span>\n                  <span class=\"ml-auto text-xs\">{{ mail.date }}</span>\n                </div>\n                <span class=\"font-medium\">{{ mail.subject }}</span>\n                <span class=\"line-clamp-2 w-[260px] text-xs whitespace-break-spaces\">\n                  {{ mail.teaser }}\n                </span>\n              </NuxtLink>\n            </UiSidebarGroupContent>\n          </UiSidebarGroup>\n        </UiSidebarContent>\n      </UiSidebar>\n    </UiSidebar>\n    <!-- Sidebar main content -->\n    <UiSidebarInset>\n      <!-- Navbar -->\n      <UiNavbar sticky class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </UiNavbar>\n      <div class=\"grid auto-rows-min gap-4 p-4 md:grid-cols-3\">\n        <UiPlaceholder v-for=\"n in 30\" :key=\"n\" class=\"aspect-video rounded-lg\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Breadcrumb items\n  const breadcrumbItems = [\n    { label: \"All Inboxes\", link: \"#\" },\n    { label: \"Inbox\", link: \"#\" },\n  ];\n  // This is sample data.\n  const data = {\n    user: {\n      name: \"breezy\",\n      email: \"m@example.com\",\n      avatar: \"https://behonbaker.com/icon.png\",\n    },\n    navMain: [\n      {\n        title: \"Inbox\",\n        url: \"#\",\n        icon: \"lucide:inbox\",\n        isActive: true,\n      },\n      {\n        title: \"Drafts\",\n        url: \"#\",\n        icon: \"lucide:file\",\n        isActive: false,\n      },\n      {\n        title: \"Sent\",\n        url: \"#\",\n        icon: \"lucide:send\",\n        isActive: false,\n      },\n      {\n        title: \"Junk\",\n        url: \"#\",\n        icon: \"lucide:archive-x\",\n        isActive: false,\n      },\n      {\n        title: \"Trash\",\n        url: \"#\",\n        icon: \"lucide:trash-2\",\n        isActive: false,\n      },\n    ],\n    mails: [\n      {\n        name: \"William Smith\",\n        email: \"williamsmith@example.com\",\n        subject: \"Meeting Tomorrow\",\n        date: \"09:34 AM\",\n        teaser:\n          \"Hi team, just a reminder about our meeting tomorrow at 10 AM.\\nPlease come prepared with your project updates.\",\n      },\n      {\n        name: \"Alice Smith\",\n        email: \"alicesmith@example.com\",\n        subject: \"Re: Project Update\",\n        date: \"Yesterday\",\n        teaser:\n          \"Thanks for the update. The progress looks great so far.\\nLet's schedule a call to discuss the next steps.\",\n      },\n      {\n        name: \"Bob Johnson\",\n        email: \"bobjohnson@example.com\",\n        subject: \"Weekend Plans\",\n        date: \"2 days ago\",\n        teaser:\n          \"Hey everyone! I'm thinking of organizing a team outing this weekend.\\nWould you be interested in a hiking trip or a beach day?\",\n      },\n      {\n        name: \"Emily Davis\",\n        email: \"emilydavis@example.com\",\n        subject: \"Re: Question about Budget\",\n        date: \"2 days ago\",\n        teaser:\n          \"I've reviewed the budget numbers you sent over.\\nCan we set up a quick call to discuss some potential adjustments?\",\n      },\n      {\n        name: \"Michael Wilson\",\n        email: \"michaelwilson@example.com\",\n        subject: \"Important Announcement\",\n        date: \"1 week ago\",\n        teaser:\n          \"Please join us for an all-hands meeting this Friday at 3 PM.\\nWe have some exciting news to share about the company's future.\",\n      },\n      {\n        name: \"Sarah Brown\",\n        email: \"sarahbrown@example.com\",\n        subject: \"Re: Feedback on Proposal\",\n        date: \"1 week ago\",\n        teaser:\n          \"Thank you for sending over the proposal. I've reviewed it and have some thoughts.\\nCould we schedule a meeting to discuss my feedback in detail?\",\n      },\n      {\n        name: \"David Lee\",\n        email: \"davidlee@example.com\",\n        subject: \"New Project Idea\",\n        date: \"1 week ago\",\n        teaser:\n          \"I've been brainstorming and came up with an interesting project concept.\\nDo you have time this week to discuss its potential impact and feasibility?\",\n      },\n      {\n        name: \"Olivia Wilson\",\n        email: \"oliviawilson@example.com\",\n        subject: \"Vacation Plans\",\n        date: \"1 week ago\",\n        teaser:\n          \"Just a heads up that I'll be taking a two-week vacation next month.\\nI'll make sure all my projects are up to date before I leave.\",\n      },\n      {\n        name: \"James Martin\",\n        email: \"jamesmartin@example.com\",\n        subject: \"Re: Conference Registration\",\n        date: \"1 week ago\",\n        teaser:\n          \"I've completed the registration for the upcoming tech conference.\\nLet me know if you need any additional information from my end.\",\n      },\n      {\n        name: \"Sophia White\",\n        email: \"sophiawhite@example.com\",\n        subject: \"Team Dinner\",\n        date: \"1 week ago\",\n        teaser:\n          \"To celebrate our recent project success, I'd like to organize a team dinner.\\nAre you available next Friday evening? Please let me know your preferences.\",\n      },\n    ],\n  };\n  const activeItem = ref(data.navMain[0]);\n  const mails = ref(data.mails);\n  useSeoMeta({ title: \"An inset sidebar with secondary navigation.\" });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar09.vue","components":["avatar","breadcrumbs","divider","dropdown-menu","label","navbar","placeholder","sidebar","switch"]},{"name":"Sidebar 10","fileName":"BlockSidebar10.vue","file":"<template>\n  <UiSidebarProvider v-slot=\"{ isMobile }\">\n    <!-- Main Sidebar -->\n    <UiSidebar class=\"border-r-0\">\n      <UiSidebarHeader>\n        <!-- Team Switcher -->\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton class=\"w-full px-1.5\">\n                  <div\n                    class=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-5 items-center justify-center rounded-md\"\n                  >\n                    <Icon v-if=\"activeTeam\" :name=\"activeTeam?.logo\" mode=\"svg\" class=\"size-3\" />\n                  </div>\n                  <span class=\"truncate font-semibold\">{{ activeTeam?.name }}</span>\n                  <Icon name=\"lucide:chevron-down\" class=\"ml-auto opacity-50\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"w-64 rounded-lg\"\n                align=\"start\"\n                side=\"bottom\"\n                :side-offset=\"4\"\n              >\n                <UiDropdownMenuLabel label=\"Teams\" class=\"text-muted-foreground text-xs\" />\n\n                <UiDropdownMenuItem\n                  v-for=\"(team, index) in data.teams\"\n                  :key=\"team.name\"\n                  class=\"gap-2 p-2\"\n                  @click=\"activeTeam = team\"\n                >\n                  <div class=\"flex size-6 items-center justify-center rounded-sm border\">\n                    <Icon :name=\"team.logo\" class=\"size-4 shrink-0\" />\n                  </div>\n                  {{ team.name }}\n                  <UiDropdownMenuShortcut>⌘{{ index + 1 }}</UiDropdownMenuShortcut>\n                </UiDropdownMenuItem>\n\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem class=\"gap-2 p-2\">\n                  <div\n                    class=\"bg-background flex size-6 items-center justify-center rounded-md border\"\n                  >\n                    <Icon name=\"lucide:plus\" class=\"size-4\" />\n                  </div>\n                  <div class=\"text-muted-foreground font-medium\">Add team</div>\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n        <!-- Nav Main -->\n        <UiSidebarMenu>\n          <UiSidebarMenuItem v-for=\"(item, index) in data.navMain\" :key=\"index\">\n            <UiSidebarMenuButton as-child :is-active=\"item.isActive\">\n              <NuxtLink :href=\"item.url\">\n                <Icon mode=\"svg\" :name=\"item.icon\" />\n                <span>{{ item.title }}</span>\n              </NuxtLink>\n            </UiSidebarMenuButton>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarHeader>\n      <!-- Sidebar content -->\n      <UiSidebarContent>\n        <!-- Nav favorites -->\n        <UiSidebarGroup class=\"group-data-[collapsible=icon]:hidden\">\n          <UiSidebarGroupLabel label=\"Favorites\" />\n          <UiSidebarMenu>\n            <UiSidebarMenuItem v-for=\"(item, index) in data.favorites\" :key=\"index\">\n              <UiSidebarMenuButton as-child>\n                <NuxtLink :href=\"item.url\" :title=\"item.name\">\n                  <span>{{ item.emoji }}</span>\n                  <span>{{ item.name }}</span>\n                </NuxtLink>\n              </UiSidebarMenuButton>\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiSidebarMenuAction show-on-hover>\n                    <Icon name=\"lucide:ellipsis-vertical\" class=\"rotate-90\" />\n                    <span class=\"sr-only\">More</span>\n                  </UiSidebarMenuAction>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent\n                  class=\"w-56 rounded-lg\"\n                  :side=\"isMobile ? 'bottom' : 'right'\"\n                  :align=\"isMobile ? 'end' : 'start'\"\n                >\n                  <UiDropdownMenuItem>\n                    <Icon name=\"lucide:star-off\" class=\"text-muted-foreground\" />\n                    <span>Remove from Favorites</span>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem>\n                    <Icon name=\"lucide:link\" class=\"text-muted-foreground\" />\n                    <span>Copy Link</span>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem>\n                    <Icon name=\"lucide:arrow-up-right\" class=\"text-muted-foreground\" />\n                    <span>Open in New Tab</span>\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem>\n                    <Icon name=\"lucide:trash-2\" class=\"text-muted-foreground\" />\n                    <span>Delete</span>\n                  </UiDropdownMenuItem>\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiSidebarMenuItem>\n\n            <UiSidebarMenuItem>\n              <UiSidebarMenuButton class=\"text-sidebar-foreground/70\">\n                <Icon name=\"lucide:ellipsis-vertical\" class=\"rotate-90\" />\n                <span>More</span>\n              </UiSidebarMenuButton>\n            </UiSidebarMenuItem>\n          </UiSidebarMenu>\n        </UiSidebarGroup>\n        <!-- Nav workspaces -->\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Workspaces\" />\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiCollapsible v-for=\"(workspace, index) in data.workspaces\" :key=\"index\">\n                <UiSidebarMenuItem>\n                  <UiSidebarMenuButton as-child>\n                    <NuxtLink href=\"#\">\n                      <span>{{ workspace.emoji }}</span>\n                      <span>{{ workspace.name }}</span>\n                    </NuxtLink>\n                  </UiSidebarMenuButton>\n                  <UiCollapsibleTrigger as-child>\n                    <UiSidebarMenuAction\n                      class=\"bg-sidebar-accent text-sidebar-accent-foreground left-2 data-[state=open]:rotate-90\"\n                      show-on-hover\n                    >\n                      <Icon name=\"lucide:chevron-right\" mode=\"svg\" />\n                    </UiSidebarMenuAction>\n                  </UiCollapsibleTrigger>\n                  <UiSidebarMenuAction show-on-hover>\n                    <Icon name=\"lucide:plus\" />\n                  </UiSidebarMenuAction>\n                  <UiCollapsibleContent>\n                    <UiSidebarMenuSub>\n                      <UiSidebarMenuSubItem v-for=\"(page, idx) in workspace.pages\" :key=\"idx\">\n                        <UiSidebarMenuSubButton as-child>\n                          <NuxtLink href=\"#\">\n                            <span>{{ page.emoji }}</span>\n                            <span>{{ page.name }}</span>\n                          </NuxtLink>\n                        </UiSidebarMenuSubButton>\n                      </UiSidebarMenuSubItem>\n                    </UiSidebarMenuSub>\n                  </UiCollapsibleContent>\n                </UiSidebarMenuItem>\n              </UiCollapsible>\n\n              <UiSidebarMenuItem>\n                <UiSidebarMenuButton class=\"text-sidebar-foreground/70\">\n                  <Icon name=\"lucide:ellipsis-vertical\" class=\"rotate-90\" />\n                  <span>More</span>\n                </UiSidebarMenuButton>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n        <!-- Nav secondary -->\n        <UiSidebarGroup class=\"mt-auto\">\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"(item, index) in data.navSecondary\" :key=\"index\">\n                <UiSidebarMenuButton as-child>\n                  <NuxtLink :href=\"item.url\">\n                    <Icon mode=\"svg\" :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </NuxtLink>\n                </UiSidebarMenuButton>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <header class=\"flex h-14 shrink-0 items-center gap-2\">\n        <div class=\"flex flex-1 items-center gap-2 px-3\">\n          <UiSidebarTrigger />\n          <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n          <UiBreadcrumbs :items=\"breadcrumbItems\" />\n        </div>\n        <div class=\"ml-auto px-3\">\n          <!-- Nav actions -->\n          <div class=\"flex items-center gap-2 text-sm\">\n            <div class=\"text-muted-foreground hidden font-medium md:inline-block\">Edit Oct 08</div>\n            <UiButton variant=\"ghost\" size=\"icon\" class=\"h-7 w-7\">\n              <Icon name=\"lucide:star\" mode=\"svg\" />\n            </UiButton>\n            <UiPopover v-model:open=\"navOpen\">\n              <UiPopoverTrigger as-child>\n                <UiButton variant=\"ghost\" size=\"icon\" class=\"data-[state=open]:bg-accent h-7 w-7\">\n                  <Icon name=\"lucide:ellipsis-vertical\" class=\"rotate-90\" />\n                </UiButton>\n              </UiPopoverTrigger>\n              <UiPopoverContent class=\"w-56 overflow-hidden rounded-lg p-0\" align=\"end\">\n                <!-- Sidebar inside the popup -->\n                <UiSidebar collapsible=\"none\" class=\"bg-transparent\">\n                  <UiSidebarContent>\n                    <UiSidebarGroup\n                      v-for=\"(group, index) in navActions\"\n                      :key=\"index\"\n                      class=\"border-b last:border-none\"\n                    >\n                      <UiSidebarGroupContent class=\"gap-0\">\n                        <UiSidebarMenu>\n                          <UiSidebarMenuItem v-for=\"(item, idx) in group\" :key=\"idx\">\n                            <UiSidebarMenuButton>\n                              <Icon mode=\"svg\" :name=\"item.icon\" /> <span>{{ item.label }}</span>\n                            </UiSidebarMenuButton>\n                          </UiSidebarMenuItem>\n                        </UiSidebarMenu>\n                      </UiSidebarGroupContent>\n                    </UiSidebarGroup>\n                  </UiSidebarContent>\n                </UiSidebar>\n              </UiPopoverContent>\n            </UiPopover>\n          </div>\n        </div>\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 px-4 py-10\">\n        <UiPlaceholder class=\"mx-auto h-24 w-full max-w-3xl rounded-xl\" />\n        <UiPlaceholder class=\"mx-auto h-full w-full max-w-3xl rounded-xl\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const breadcrumbItems = [{ label: \"Project Management & Task Tracking\" }];\n  useSeoMeta({ title: \"A sidebar in a popover.\" });\n  const navActions = [\n    [\n      { label: \"Customize Page\", icon: \"lucide:settings-2\" },\n      { label: \"Turn into wiki\", icon: \"lucide:file-text\" },\n    ],\n    [\n      { label: \"Copy Link\", icon: \"lucide:link\" },\n      { label: \"Duplicate\", icon: \"lucide:copy\" },\n      { label: \"Move to\", icon: \"lucide:corner-up-right\" },\n      { label: \"Move to Trash\", icon: \"lucide:trash-2\" },\n    ],\n    [\n      { label: \"Undo\", icon: \"lucide:corner-up-left\" },\n      { label: \"View analytics\", icon: \"lucide:line-chart\" },\n      { label: \"Version History\", icon: \"lucide:gallery-vertical-end\" },\n      { label: \"Show delete pages\", icon: \"lucide:trash\" },\n      { label: \"Notifications\", icon: \"lucide:bell\" },\n    ],\n    [\n      { label: \"Import\", icon: \"lucide:arrow-up\" },\n      { label: \"Export\", icon: \"lucide:arrow-down\" },\n    ],\n  ];\n\n  const navOpen = ref(true);\n\n  const data = {\n    teams: [\n      { name: \"Acme Inc\", logo: \"lucide:command\", plan: \"Enterprise\" },\n      { name: \"Acme Corp.\", logo: \"lucide:audio-waveform\", plan: \"Startup\" },\n      { name: \"Evil Corp.\", logo: \"lucide:skull\", plan: \"Free\" },\n    ],\n    navMain: [\n      { title: \"Search\", url: \"#\", icon: \"lucide:search\" },\n      { title: \"Ask AI\", url: \"#\", icon: \"lucide:sparkles\" },\n      { title: \"Home\", url: \"#\", icon: \"lucide:home\", isActive: true },\n      { title: \"Inbox\", url: \"#\", icon: \"lucide:inbox\", badge: \"10\" },\n    ],\n    navSecondary: [\n      { title: \"Calendar\", url: \"#\", icon: \"lucide:calendar\" },\n      { title: \"Settings\", url: \"#\", icon: \"lucide:settings-2\" },\n      { title: \"Templates\", url: \"#\", icon: \"lucide:blocks\" },\n      { title: \"Trash\", url: \"#\", icon: \"lucide:trash-2\" },\n      { title: \"Help\", url: \"#\", icon: \"lucide:message-circle-question\" },\n    ],\n    favorites: [\n      { name: \"Project Management & Task Tracking\", url: \"#\", emoji: \"📊\" },\n      { name: \"Family Recipe Collection & Meal Planning\", url: \"#\", emoji: \"🍳\" },\n      { name: \"Fitness Tracker & Workout Routines\", url: \"#\", emoji: \"💪\" },\n      { name: \"Book Notes & Reading List\", url: \"#\", emoji: \"📚\" },\n      { name: \"Sustainable Gardening Tips & Plant Care\", url: \"#\", emoji: \"🌱\" },\n      { name: \"Language Learning Progress & Resources\", url: \"#\", emoji: \"🗣️\" },\n      { name: \"Home Renovation Ideas & Budget Tracker\", url: \"#\", emoji: \"🏠\" },\n      { name: \"Personal Finance & Investment Portfolio\", url: \"#\", emoji: \"💰\" },\n      { name: \"Movie & TV Show Watchlist with Reviews\", url: \"#\", emoji: \"🎬\" },\n      { name: \"Daily Habit Tracker & Goal Setting\", url: \"#\", emoji: \"✅\" },\n    ],\n    workspaces: [\n      {\n        name: \"Personal Life Management\",\n        emoji: \"🏠\",\n        pages: [\n          { name: \"Daily Journal & Reflection\", url: \"#\", emoji: \"📔\" },\n          { name: \"Health & Wellness Tracker\", url: \"#\", emoji: \"🍏\" },\n          { name: \"Personal Growth & Learning Goals\", url: \"#\", emoji: \"🌟\" },\n        ],\n      },\n      {\n        name: \"Professional Development\",\n        emoji: \"💼\",\n        pages: [\n          { name: \"Career Objectives & Milestones\", url: \"#\", emoji: \"🎯\" },\n          { name: \"Skill Acquisition & Training Log\", url: \"#\", emoji: \"🧠\" },\n          { name: \"Networking Contacts & Events\", url: \"#\", emoji: \"🤝\" },\n        ],\n      },\n      {\n        name: \"Creative Projects\",\n        emoji: \"🎨\",\n        pages: [\n          { name: \"Writing Ideas & Story Outlines\", url: \"#\", emoji: \"✍️\" },\n          { name: \"Art & Design Portfolio\", url: \"#\", emoji: \"🖼️\" },\n          { name: \"Music Composition & Practice Log\", url: \"#\", emoji: \"🎵\" },\n        ],\n      },\n      {\n        name: \"Home Management\",\n        emoji: \"🏡\",\n        pages: [\n          { name: \"Household Budget & Expense Tracking\", url: \"#\", emoji: \"💰\" },\n          { name: \"Home Maintenance Schedule & Tasks\", url: \"#\", emoji: \"🔧\" },\n          { name: \"Family Calendar & Event Planning\", url: \"#\", emoji: \"📅\" },\n        ],\n      },\n      {\n        name: \"Travel & Adventure\",\n        emoji: \"🧳\",\n        pages: [\n          { name: \"Trip Planning & Itineraries\", url: \"#\", emoji: \"🗺️\" },\n          { name: \"Travel Bucket List & Inspiration\", url: \"#\", emoji: \"🌎\" },\n          { name: \"Travel Journal & Photo Gallery\", url: \"#\", emoji: \"📸\" },\n        ],\n      },\n    ],\n  };\n  const activeTeam = ref(data.teams[0]);\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar10.vue","components":["breadcrumbs","button","collapsible","divider","dropdown-menu","placeholder","popover","sidebar"]},{"name":"Sidebar 11","fileName":"BlockSidebar11.vue","file":"<template>\n  <UiSidebarProvider>\n    <!-- Main sidebar -->\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Changes\" />\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"(change, index) in data.changes\" :key=\"index\">\n                <UiSidebarMenuButton>\n                  <Icon mode=\"svg\" name=\"lucide:file\" />\n                  {{ change.file }}\n                </UiSidebarMenuButton>\n                <UiSidebarMenuBadge>{{ change.state }}</UiSidebarMenuBadge>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Files\" />\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <TreeComp v-for=\"(file, index) in data.tree\" :key=\"index\" :item=\"file\" />\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n      <UiSidebarRail />\n    </UiSidebar>\n    <UiSidebarInset>\n      <header class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <UiDivider orientation=\"vertical\" class=\"mr-2 h-4 w-px\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 p-4\">\n        <div class=\"grid auto-rows-min gap-4 md:grid-cols-3\">\n          <UiPlaceholder class=\"aspect-video rounded-xl\" />\n          <UiPlaceholder class=\"aspect-video rounded-xl\" />\n          <UiPlaceholder class=\"aspect-video rounded-xl\" />\n        </div>\n        <UiPlaceholder class=\"min-h-screen flex-1 rounded-xl md:min-h-min\" />\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  import {\n    Icon,\n    UiCollapsible,\n    UiCollapsibleContent,\n    UiCollapsibleTrigger,\n    UiSidebarMenuButton,\n    UiSidebarMenuItem,\n    UiSidebarMenuSub,\n  } from \"#components\";\n\n  const breadcrumbItems = [{ label: \"components\" }, { label: \"ui\" }, { label: \"button.vue\" }];\n  useSeoMeta({ title: \"A sidebar with a collapsible file tree.\" });\n  const data = {\n    changes: [\n      { file: \"README.md\", state: \"M\" },\n      { file: \"api/hello/route.ts\", state: \"U\" },\n      { file: \"app/layout.tsx\", state: \"M\" },\n    ],\n    tree: [\n      [\"app\", [\"api\", [\"hello\", [\"route.ts\"]], \"page.tsx\", \"layout.tsx\", [\"blog\", [\"page.tsx\"]]]],\n      [\"components\", [\"ui\", \"button.tsx\", \"card.tsx\"], \"header.tsx\", \"footer.tsx\"],\n      [\"lib\", [\"util.ts\"]],\n      [\"public\", \"favicon.ico\", \"vercel.svg\"],\n      \".eslintrc.json\",\n      \".gitignore\",\n      \"next.config.js\",\n      \"tailwind.config.js\",\n      \"package.json\",\n      \"README.md\",\n    ],\n  };\n\n  const TreeComp = defineComponent({\n    props: {\n      item: {\n        type: [String, Array] as PropType<string | any[]>,\n        required: true,\n      },\n    },\n    computed: {\n      itemData() {\n        const [name, ...items] = Array.isArray(this.item) ? this.item : [this.item];\n        return { name, items };\n      },\n    },\n    render() {\n      const { name, items } = this.itemData;\n      if (!items.length) {\n        return h(\n          UiSidebarMenuButton,\n          {\n            class: \"data-[active=true]:bg-transparent\",\n          },\n          () => [h(Icon, { mode: \"svg\", name: \"lucide:file\" }), name]\n        );\n      }\n\n      return h(\n        UiSidebarMenuItem,\n        {},\n        {\n          default: () =>\n            h(\n              UiCollapsible,\n              {\n                class: \"group/collapsible [&[data-state=open]>button>svg:first-child]:rotate-90\",\n                defaultOpen: name === \"components\" || name === \"ui\",\n              },\n              {\n                default: () => [\n                  h(UiCollapsibleTrigger, { asChild: true }, () =>\n                    h(UiSidebarMenuButton, () => [\n                      h(Icon, {\n                        mode: \"svg\",\n                        name: \"lucide:chevron-right\",\n                      }),\n                      h(Icon, { mode: \"svg\", name: \"lucide:folder\" }),\n                      name,\n                    ])\n                  ),\n                  h(UiCollapsibleContent, () =>\n                    h(\n                      UiSidebarMenuSub,\n                      {},\n                      {\n                        default: () =>\n                          items.map((child, index) =>\n                            h(TreeComp, {\n                              key: index,\n                              item: child,\n                            })\n                          ),\n                      }\n                    )\n                  ),\n                ],\n              }\n            ),\n        }\n      );\n    },\n  });\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar11.vue","components":["breadcrumbs","divider","placeholder","sidebar"]},{"name":"Sidebar 12","fileName":"BlockSidebar12.vue","file":"<template>\n  <UiSidebarProvider v-slot=\"{ isMobile }\" class=\"[--sidebar-width:280px_!important]\">\n    <!-- Main Sidebar -->\n    <UiSidebar>\n      <UiSidebarHeader class=\"border-sidebar-border h-16 border-b\">\n        <!-- Logged in user -->\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton\n                  size=\"lg\"\n                  class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n                >\n                  <UiAvatar class=\"h-8 w-8 rounded-lg\">\n                    <UiAvatarImage :src=\"data.user.avatar\" :alt=\"data.user.name\" />\n                    <UiAvatarFallback class=\"rounded-lg\">BB</UiAvatarFallback>\n                  </UiAvatar>\n                  <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span class=\"truncate font-semibold\">{{ data.user.name }}</span>\n                    <span class=\"truncate text-xs\">{{ data.user.email }}</span>\n                  </div>\n                  <Icon name=\"lucide:chevrons-up-down\" class=\"ml-auto size-4\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent\n                class=\"w-(--reka-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n                :side=\"isMobile ? 'bottom' : 'right'\"\n                :side-offset=\"4\"\n                align=\"end\"\n              >\n                <UiDropdownMenuLabel class=\"p-0 font-normal\">\n                  <div class=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n                    <UiAvatar class=\"size-8 rounded-lg\">\n                      <UiAvatarImage :src=\"data.user.avatar\" :alt=\"data.user.name\" />\n                      <UiAvatarFallback class=\"rounded-lg\">BB</UiAvatarFallback>\n                    </UiAvatar>\n                    <div class=\"grid flex-1 text-left text-sm leading-tight\">\n                      <span class=\"truncate font-semibold\">{{ data.user.name }}</span>\n                      <span class=\"truncate text-xs\">{{ data.user.email }}</span>\n                    </div>\n                  </div>\n                </UiDropdownMenuLabel>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuGroup>\n                  <UiDropdownMenuItem icon=\"lucide:sparkles\" title=\"Upgrade to Pro\" />\n                </UiDropdownMenuGroup>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuGroup>\n                  <UiDropdownMenuItem icon=\"lucide:badge-check\" title=\"Account\" />\n                  <UiDropdownMenuItem icon=\"lucide:credit-card\" title=\"Billing\" />\n                  <UiDropdownMenuItem icon=\"lucide:settings-2\" title=\"Settings\" />\n                  <UiDropdownMenuItem icon=\"lucide:bell\" title=\"Notifications\" />\n                </UiDropdownMenuGroup>\n                <UiDropdownMenuSeparator />\n                <UiDropdownMenuItem icon=\"lucide:log-out\" title=\"Log out\" />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <!-- Datepicker -->\n        <UiSidebarGroup class=\"px-0\">\n          <UiSidebarGroupContent>\n            <div class=\"flex justify-center\">\n              <UiDatepicker\n                :model-value=\"new Date()\"\n                borderless\n                class=\"[--vc-bg:var(--sidebar-background)_!important]\"\n              />\n            </div>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n        <UiSidebarSeparator class=\"mx-0\" />\n        <!-- Calendars -->\n        <template v-for=\"(calendar, index) in data.calendars\" :key=\"index\">\n          <UiSidebarGroup class=\"py-0\">\n            <UiCollapsible :default-open=\"index === 0\" class=\"group/collapsible\">\n              <UiSidebarGroupLabel\n                as-child\n                class=\"group/label text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground w-full text-sm\"\n              >\n                <UiCollapsibleTrigger>\n                  {{ calendar.name }}\n                  <Icon\n                    name=\"lucide:chevron-right\"\n                    class=\"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-90\"\n                  />\n                </UiCollapsibleTrigger>\n              </UiSidebarGroupLabel>\n              <UiCollapsibleContent>\n                <UiSidebarGroupContent>\n                  <UiSidebarMenu>\n                    <UiSidebarMenuItem v-for=\"(item, idx) in calendar.items\" :key=\"idx\">\n                      <UiSidebarMenuButton>\n                        <div\n                          :data-active=\"idx < 2\"\n                          class=\"group/calendar-item border-sidebar-border text-sidebar-primary-foreground data-[active=true]:border-sidebar-primary data-[active=true]:bg-sidebar-primary flex aspect-square size-4 shrink-0 items-center justify-center rounded-sm border\"\n                        >\n                          <Icon\n                            mode=\"svg\"\n                            name=\"lucide:check\"\n                            class=\"hidden size-3 group-data-[active=true]/calendar-item:block\"\n                          />\n                        </div>\n                        {{ item }}\n                      </UiSidebarMenuButton>\n                    </UiSidebarMenuItem>\n                  </UiSidebarMenu>\n                </UiSidebarGroupContent>\n              </UiCollapsibleContent>\n            </UiCollapsible>\n          </UiSidebarGroup>\n          <UiSidebarSeparator class=\"mx-0\" />\n        </template>\n      </UiSidebarContent>\n      <UiSidebarFooter>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiSidebarMenuButton>\n              <Icon name=\"lucide:plus\" mode=\"svg\" /> <span>New Calendar</span>\n            </UiSidebarMenuButton>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n      <UiSidebarRail />\n    </UiSidebar>\n\n    <UiSidebarInset>\n      <header\n        class=\"bg-background sticky top-0 z-20 flex h-16 shrink-0 items-center gap-2 border-b px-4\"\n      >\n        <UiSidebarTrigger class=\"-ml-1\" />\n        <Separator orientation=\"vertical\" class=\"mr-2 h-4\" />\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 p-4\">\n        <div class=\"grid auto-rows-min gap-4 md:grid-cols-5\">\n          <UiPlaceholder v-for=\"n in 20\" :key=\"n\" class=\"aspect-square rounded-xl\" />\n        </div>\n      </div>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const breadcrumbItems = computed(() => [\n    { label: useDateFormat(new Date(), \"MMMM DD, YYYY\").value },\n  ]);\n  useSeoMeta({ title: \"A sidebar with a calendar.\" });\n  const data = {\n    user: {\n      name: \"breezy\",\n      email: \"m@example.com\",\n      avatar: \"https://behonbaker.com/icon.png\",\n    },\n    calendars: [\n      { name: \"My Calendars\", items: [\"Personal\", \"Work\", \"Family\"] },\n      { name: \"Favorites\", items: [\"Holidays\", \"Birthdays\"] },\n      { name: \"Other\", items: [\"Travel\", \"Reminders\", \"Deadlines\"] },\n    ],\n  };\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar12.vue","components":["avatar","breadcrumbs","collapsible","datepicker","dropdown-menu","placeholder","sidebar"]},{"name":"Sidebar 13","fileName":"BlockSidebar13.vue","file":"<template>\n  <div class=\"flex h-svh items-center justify-center\">\n    <UiDialog v-model:open=\"open\">\n      <UiDialogTrigger as-child>\n        <UiButton size=\"sm\">Open Dialog</UiButton>\n      </UiDialogTrigger>\n      <UiDialogContent\n        class=\"overflow-hidden p-0 md:max-h-[500px] md:max-w-[700px] lg:max-w-[800px]\"\n      >\n        <UiDialogTitle class=\"sr-only\">Settings</UiDialogTitle>\n        <UiDialogDescription class=\"sr-only\"> Customize your settings here. </UiDialogDescription>\n        <UiSidebarProvider class=\"items-start\">\n          <UiSidebar collapsible=\"none\" class=\"hidden md:flex\">\n            <UiSidebarContent>\n              <UiSidebarGroup>\n                <UiSidebarGroupContent>\n                  <UiSidebarMenu>\n                    <UiSidebarMenuItem v-for=\"item in data.nav\" :key=\"item.name\">\n                      <UiSidebarMenuButton as-child :is-active=\"item.name === 'Messages & media'\">\n                        <NuxtLink href=\"#\">\n                          <Icon :name=\"item.icon\" />\n                          <span>{{ item.name }}</span>\n                        </NuxtLink>\n                      </UiSidebarMenuButton>\n                    </UiSidebarMenuItem>\n                  </UiSidebarMenu>\n                </UiSidebarGroupContent>\n              </UiSidebarGroup>\n            </UiSidebarContent>\n          </UiSidebar>\n          <main class=\"flex h-[480px] flex-1 flex-col overflow-hidden\">\n            <header\n              class=\"flex h-16 shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12\"\n            >\n              <div class=\"flex items-center gap-2 px-4\">\n                <UiBreadcrumbs :items=\"breadcrumbItems\" />\n              </div>\n            </header>\n            <div class=\"flex flex-1 flex-col gap-4 overflow-y-auto p-4\">\n              <div class=\"grid auto-rows-min gap-4 md:grid-cols-5\">\n                <UiPlaceholder v-for=\"n in 40\" :key=\"n\" class=\"aspect-square rounded-xl\" />\n              </div>\n            </div>\n          </main>\n        </UiSidebarProvider>\n      </UiDialogContent>\n    </UiDialog>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  useSeoMeta({ title: \"A sidebar in a dialog.\" });\n  const breadcrumbItems = [\n    { label: \"Settings\", href: \"#\" },\n    { label: \"Messages & media\", href: \"#\" },\n  ];\n  const open = ref(true);\n  const data = {\n    nav: [\n      { name: \"Notifications\", icon: \"lucide:bell\" },\n      { name: \"Navigation\", icon: \"lucide:menu\" },\n      { name: \"Home\", icon: \"lucide:home\" },\n      { name: \"Appearance\", icon: \"lucide:paintbrush\" },\n      { name: \"Messages & media\", icon: \"lucide:message-circle\" },\n      { name: \"Language & region\", icon: \"lucide:globe\" },\n      { name: \"Accessibility\", icon: \"lucide:keyboard\" },\n      { name: \"Mark as read\", icon: \"lucide:check\" },\n      { name: \"Audio & video\", icon: \"lucide:video\" },\n      { name: \"Connected accounts\", icon: \"lucide:link\" },\n      { name: \"Privacy & visibility\", icon: \"lucide:lock\" },\n      { name: \"Advanced\", icon: \"lucide:settings\" },\n    ],\n  };\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar13.vue","components":["breadcrumbs","button","dialog","placeholder","sidebar"]},{"name":"Sidebar 14","fileName":"BlockSidebar14.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebarInset>\n      <header class=\"flex h-16 shrink-0 items-center gap-2 border-b px-4\">\n        <UiBreadcrumbs :items=\"breadcrumbItems\" />\n        <UiSidebarTrigger class=\"-mr-1 ml-auto rotate-180\" />\n      </header>\n      <div class=\"flex flex-1 flex-col gap-4 p-4\">\n        <div class=\"grid auto-rows-min gap-4 md:grid-cols-3\">\n          <UiPlaceholder v-for=\"n in 3\" :key=\"n\" class=\"aspect-video rounded-xl\" />\n        </div>\n        <UiPlaceholder class=\"min-h-screen flex-1 rounded-xl md:min-h-min\" />\n      </div>\n    </UiSidebarInset>\n    <!-- Main Sidebar -->\n    <UiSidebar side=\"right\">\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Table of Contents\" />\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"item in data.navMain\" :key=\"item.title\">\n                <UiSidebarMenuButton as-child>\n                  <NuxtLink :href=\"item.url\" class=\"font-medium\">\n                    {{ item.title }}\n                  </NuxtLink>\n                </UiSidebarMenuButton>\n                <UiSidebarMenuSub v-if=\"item.items?.length\">\n                  <UiSidebarMenuSubItem v-for=\"(child, index) in item.items\" :key=\"index\">\n                    <UiSidebarMenuSubButton as-child :is-active=\"child.isActive\">\n                      <NuxtLink :href=\"child.url\">{{ child.title }}</NuxtLink>\n                    </UiSidebarMenuSubButton>\n                  </UiSidebarMenuSubItem>\n                </UiSidebarMenuSub>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n      <UiSidebarRail />\n    </UiSidebar>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  useSeoMeta({ title: \"A sidebar on the right.\" });\n  const breadcrumbItems = [\n    { label: \"Building Your Application\", href: \"#\" },\n    { label: \"Data Fetching\", href: \"#\" },\n  ];\n  const data = {\n    navMain: [\n      {\n        title: \"Getting Started\",\n        url: \"#\",\n        items: [\n          { title: \"Installation\", url: \"#\" },\n          { title: \"Project Structure\", url: \"#\" },\n        ],\n      },\n      {\n        title: \"Building Your Application\",\n        url: \"#\",\n        items: [\n          { title: \"Routing\", url: \"#\" },\n          { title: \"Data Fetching\", url: \"#\", isActive: true },\n          { title: \"Rendering\", url: \"#\" },\n          { title: \"Caching\", url: \"#\" },\n          { title: \"Styling\", url: \"#\" },\n          { title: \"Optimizing\", url: \"#\" },\n          { title: \"Configuring\", url: \"#\" },\n          { title: \"Testing\", url: \"#\" },\n          { title: \"Authentication\", url: \"#\" },\n          { title: \"Deploying\", url: \"#\" },\n          { title: \"Upgrading\", url: \"#\" },\n          { title: \"Examples\", url: \"#\" },\n        ],\n      },\n      {\n        title: \"API Reference\",\n        url: \"#\",\n        items: [\n          { title: \"Components\", url: \"#\" },\n          { title: \"File Conventions\", url: \"#\" },\n          { title: \"Functions\", url: \"#\" },\n          { title: \"next.config.js Options\", url: \"#\" },\n          { title: \"CLI\", url: \"#\" },\n          { title: \"Edge Runtime\", url: \"#\" },\n        ],\n      },\n      {\n        title: \"Architecture\",\n        url: \"#\",\n        items: [\n          { title: \"Accessibility\", url: \"#\" },\n          { title: \"Fast Refresh\", url: \"#\" },\n          { title: \"Next.js Compiler\", url: \"#\" },\n          { title: \"Supported Browsers\", url: \"#\" },\n          { title: \"Turbopack\", url: \"#\" },\n        ],\n      },\n      {\n        title: \"Community\",\n        url: \"#\",\n        items: [{ title: \"Contribution Guide\", url: \"#\" }],\n      },\n    ],\n  };\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebar14.vue","components":["breadcrumbs","placeholder","sidebar"]},{"name":"Sidebar Collapsible Side Group","fileName":"BlockSidebarCollapsibleSideGroup.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiCollapsible v-slot=\"{ open }\" default-open>\n          <UiSidebarGroup>\n            <UiSidebarGroupLabel\n              class=\"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground\"\n              as-child\n            >\n              <UiCollapsibleTrigger>\n                Application\n                <Icon class=\"ml-auto\" name=\"lucide:chevron-down\" :class=\"[open && 'rotate-180']\" />\n              </UiCollapsibleTrigger>\n            </UiSidebarGroupLabel>\n            <UiCollapsibleContent>\n              <UiSidebarGroupContent>\n                <UiSidebarMenu>\n                  <UiSidebarMenuItem v-for=\"item in items\" :key=\"item.title\">\n                    <UiSidebarMenuButton as-child>\n                      <a :href=\"item.url\">\n                        <Icon :name=\"item.icon\" />\n                        <span>{{ item.title }}</span>\n                      </a>\n                    </UiSidebarMenuButton>\n                  </UiSidebarMenuItem>\n                </UiSidebarMenu>\n              </UiSidebarGroupContent>\n            </UiCollapsibleContent>\n          </UiSidebarGroup>\n        </UiCollapsible>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiSidebarTrigger />\n        </UiContainer>\n      </UiNavbar>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Menu items.\n  const items = [\n    { title: \"Home\", url: \"#\", icon: \"lucide:home\" },\n    { title: \"Inbox\", url: \"#\", icon: \"lucide:inbox\" },\n    { title: \"Calendar\", url: \"#\", icon: \"lucide:calendar\" },\n    { title: \"Search\", url: \"#\", icon: \"lucide:search\" },\n    { title: \"Settings\", url: \"#\", icon: \"lucide:settings\" },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarCollapsibleSideGroup.vue","components":["collapsible","container","navbar","sidebar"]},{"name":"Sidebar Controlled","fileName":"BlockSidebarControlled.vue","file":"<template>\n  <UiSidebarProvider v-model:open=\"state\">\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <template v-for=\"(item, index) in items\" :key=\"index\">\n                <UiSidebarMenuItem>\n                  <UiSidebarMenuButton as-child>\n                    <NuxtLink :href=\"item.url\">\n                      {{ item.title }}\n                    </NuxtLink>\n                  </UiSidebarMenuButton>\n                  <UiSidebarMenuSub>\n                    <template v-for=\"(child, k) in item.items\" :key=\"`child-${k}`\">\n                      <UiSidebarMenuSubItem>\n                        <UiSidebarMenuSubButton as-child>\n                          <NuxtLink :href=\"child.url\">\n                            {{ child.title }}\n                          </NuxtLink>\n                        </UiSidebarMenuSubButton>\n                      </UiSidebarMenuSubItem>\n                    </template>\n                  </UiSidebarMenuSub>\n                </UiSidebarMenuItem>\n              </template>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiButton size=\"icon-xs\" variant=\"outline\" @click=\"toggleState\">\n            <Icon\n              name=\"lucide:arrow-right-from-line\"\n              class=\"transition\"\n              :class=\"[state && 'rotate-180']\"\n            />\n            <span class=\"sr-only\">{{ state ? \"Close Sidebar\" : \"Open Sidebar\" }}</span>\n          </UiButton>\n        </UiContainer>\n      </UiNavbar>\n      <UiContainer class=\"py-5\">\n        <UiPlaceholder class=\"h-[450px]\">\n          <p>The sidebar is currently <strong>{{ state ? \"open\" : \"closed\" }}</strong>.</p>\n        </UiPlaceholder>\n      </UiContainer>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const state = ref(false);\n  const toggleState = () => (state.value = !state.value);\n  const items = [\n    {\n      title: \"Getting Started\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Installation\",\n          url: \"#\",\n        },\n        {\n          title: \"Project Structure\",\n          url: \"#\",\n        },\n      ],\n    },\n    {\n      title: \"Building Your Application\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Routing\",\n          url: \"#\",\n        },\n        {\n          title: \"Data Fetching\",\n          url: \"#\",\n          isActive: true,\n        },\n        {\n          title: \"Rendering\",\n          url: \"#\",\n        },\n        {\n          title: \"Caching\",\n          url: \"#\",\n        },\n        {\n          title: \"Styling\",\n          url: \"#\",\n        },\n        {\n          title: \"Optimizing\",\n          url: \"#\",\n        },\n        {\n          title: \"Configuring\",\n          url: \"#\",\n        },\n        {\n          title: \"Testing\",\n          url: \"#\",\n        },\n        {\n          title: \"Authentication\",\n          url: \"#\",\n        },\n        {\n          title: \"Deploying\",\n          url: \"#\",\n        },\n        {\n          title: \"Upgrading\",\n          url: \"#\",\n        },\n        {\n          title: \"Examples\",\n          url: \"#\",\n        },\n      ],\n    },\n    {\n      title: \"API Reference\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Components\",\n          url: \"#\",\n        },\n        {\n          title: \"File Conventions\",\n          url: \"#\",\n        },\n        {\n          title: \"Functions\",\n          url: \"#\",\n        },\n        {\n          title: \"next.config.js Options\",\n          url: \"#\",\n        },\n        {\n          title: \"CLI\",\n          url: \"#\",\n        },\n        {\n          title: \"Edge Runtime\",\n          url: \"#\",\n        },\n      ],\n    },\n    {\n      title: \"Architecture\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Accessibility\",\n          url: \"#\",\n        },\n        {\n          title: \"Fast Refresh\",\n          url: \"#\",\n        },\n        {\n          title: \"Next.js Compiler\",\n          url: \"#\",\n        },\n        {\n          title: \"Supported Browsers\",\n          url: \"#\",\n        },\n        {\n          title: \"Turbopack\",\n          url: \"#\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarControlled.vue","components":["button","container","navbar","placeholder","sidebar"]},{"name":"Sidebar First Sidebar","fileName":"BlockSidebarFirstSidebar.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Application\" />\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"item in items\" :key=\"item.title\">\n                <UiSidebarMenuButton as-child>\n                  <a :href=\"item.url\">\n                    <Icon :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </a>\n                </UiSidebarMenuButton>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiSidebarTrigger />\n        </UiContainer>\n      </UiNavbar>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Menu items.\n  const items = [\n    { title: \"Home\", url: \"#\", icon: \"lucide:home\" },\n    { title: \"Inbox\", url: \"#\", icon: \"lucide:inbox\" },\n    { title: \"Calendar\", url: \"#\", icon: \"lucide:calendar\" },\n    { title: \"Search\", url: \"#\", icon: \"lucide:search\" },\n    { title: \"Settings\", url: \"#\", icon: \"lucide:settings\" },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarFirstSidebar.vue","components":["container","navbar","sidebar"]},{"name":"Sidebar Footer","fileName":"BlockSidebarFooter.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Main\" />\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"item in items\" :key=\"item.title\">\n                <UiSidebarMenuButton as-child>\n                  <a :href=\"item.url\">\n                    <Icon :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </a>\n                </UiSidebarMenuButton>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n\n      <UiSidebarFooter>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton>\n                  <Icon name=\"lucide:user\" /> Username\n                  <Icon name=\"lucide:chevron-up\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent side=\"top\" class=\"w-(--reka-dropdown-menu-trigger-width)\">\n                <UiDropdownMenuItem\n                  v-for=\"item in ['Account', 'Billing', 'Sign Out']\"\n                  :key=\"item\"\n                  :title=\"item\"\n                />\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarFooter>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiSidebarTrigger />\n        </UiContainer>\n      </UiNavbar>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Menu items.\n  const items = [\n    { title: \"Home\", url: \"#\", icon: \"lucide:home\" },\n    { title: \"Inbox\", url: \"#\", icon: \"lucide:inbox\" },\n    { title: \"Calendar\", url: \"#\", icon: \"lucide:calendar\" },\n    { title: \"Search\", url: \"#\", icon: \"lucide:search\" },\n    { title: \"Settings\", url: \"#\", icon: \"lucide:settings\" },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarFooter.vue","components":["container","dropdown-menu","navbar","sidebar"]},{"name":"Sidebar Header","fileName":"BlockSidebarHeader.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarHeader>\n        <UiSidebarMenu>\n          <UiSidebarMenuItem>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiSidebarMenuButton>\n                  Select Workspace\n                  <Icon name=\"lucide:chevron-down\" class=\"ml-auto\" />\n                </UiSidebarMenuButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent class=\"w-(--reka-dropdown-menu-trigger-width)\">\n                <UiDropdownMenuItem>\n                  <span>Acme Inc</span>\n                </UiDropdownMenuItem>\n                <UiDropdownMenuItem>\n                  <span>Acme Corp.</span>\n                </UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </UiSidebarMenuItem>\n        </UiSidebarMenu>\n      </UiSidebarHeader>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel>Application</UiSidebarGroupLabel>\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"item in items\" :key=\"item.title\">\n                <UiSidebarMenuButton as-child>\n                  <a :href=\"item.url\">\n                    <Icon :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </a>\n                </UiSidebarMenuButton>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiSidebarTrigger />\n        </UiContainer>\n      </UiNavbar>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Menu items.\n  const items = [\n    { title: \"Home\", url: \"#\", icon: \"lucide:home\" },\n    { title: \"Inbox\", url: \"#\", icon: \"lucide:inbox\" },\n    { title: \"Calendar\", url: \"#\", icon: \"lucide:calendar\" },\n    { title: \"Search\", url: \"#\", icon: \"lucide:search\" },\n    { title: \"Settings\", url: \"#\", icon: \"lucide:settings\" },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarHeader.vue","components":["container","dropdown-menu","navbar","sidebar"]},{"name":"Sidebar Sidebar Group Action","fileName":"BlockSidebarSidebarGroupAction.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Projects\" />\n          <UiSidebarGroupAction title=\"Add Project\">\n            <Icon name=\"lucide:plus\" /> <span class=\"sr-only\">Add Project</span>\n          </UiSidebarGroupAction>\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"item in items\" :key=\"item.title\">\n                <UiSidebarMenuButton as-child>\n                  <a :href=\"item.url\">\n                    <Icon :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </a>\n                </UiSidebarMenuButton>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiSidebarTrigger />\n        </UiContainer>\n      </UiNavbar>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  // Menu items.\n  const items = [\n    { title: \"Home\", url: \"#\", icon: \"lucide:home\" },\n    { title: \"Inbox\", url: \"#\", icon: \"lucide:inbox\" },\n    { title: \"Calendar\", url: \"#\", icon: \"lucide:calendar\" },\n    { title: \"Search\", url: \"#\", icon: \"lucide:search\" },\n    { title: \"Settings\", url: \"#\", icon: \"lucide:settings\" },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarSidebarGroupAction.vue","components":["container","navbar","sidebar"]},{"name":"Sidebar Sidebar Menu Action","fileName":"BlockSidebarSidebarMenuAction.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Projects\" />\n          <UiSidebarGroupAction title=\"Add Project\">\n            <Icon name=\"lucide:plus\" /> <span class=\"sr-only\">Add Project</span>\n          </UiSidebarGroupAction>\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"item in items\" :key=\"item.title\">\n                <UiSidebarMenuButton as-child>\n                  <NuxtLink :href=\"item.url\">\n                    <Icon :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </NuxtLink>\n                </UiSidebarMenuButton>\n                <UiDropdownMenu>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiSidebarMenuAction>\n                      <Icon name=\"lucide:ellipsis-vertical\" />\n                    </UiSidebarMenuAction>\n                  </UiDropdownMenuTrigger>\n                  <UiDropdownMenuContent side=\"right\" align=\"start\">\n                    <UiDropdownMenuItem v-for=\"child in actions\" :key=\"child.title\" as-child>\n                      <NuxtLink :href=\"child.url\">\n                        <Icon :name=\"child.icon\" />\n                        <span>{{ child.title }}</span>\n                      </NuxtLink>\n                    </UiDropdownMenuItem>\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiSidebarTrigger />\n        </UiContainer>\n      </UiNavbar>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const items = [\n    { title: \"Design Engineering\", url: \"#\", icon: \"lucide:hash\" },\n    { title: \"Sales & Marketing\", url: \"#\", icon: \"lucide:chart-pie\" },\n    { title: \"Travel\", url: \"#\", icon: \"lucide:map\" },\n    { title: \"Support\", url: \"#\", icon: \"lucide:life-buoy\" },\n    { title: \"Feedback\", url: \"#\", icon: \"lucide:circle-help\" },\n  ];\n\n  const actions = [\n    { title: \"Add Project\", icon: \"lucide:plus\", url: \"#\" },\n    { title: \"Add Task\", icon: \"lucide:plus\", url: \"#\" },\n    { title: \"Add User\", icon: \"lucide:plus\", url: \"#\" },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarSidebarMenuAction.vue","components":["container","dropdown-menu","navbar","sidebar"]},{"name":"Sidebar Sidebar Menu Badge","fileName":"BlockSidebarSidebarMenuBadge.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupLabel label=\"Application\" />\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <UiSidebarMenuItem v-for=\"item in items\" :key=\"item.title\">\n                <UiSidebarMenuButton as-child>\n                  <a :href=\"item.url\">\n                    <Icon :name=\"item.icon\" />\n                    <span>{{ item.title }}</span>\n                  </a>\n                </UiSidebarMenuButton>\n                <UiSidebarMenuBadge>{{ item.notifications }}</UiSidebarMenuBadge>\n              </UiSidebarMenuItem>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiSidebarTrigger />\n        </UiContainer>\n      </UiNavbar>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const items = [\n    { title: \"Home\", url: \"#\", icon: \"lucide:home\", notifications: 45 },\n    { title: \"Inbox\", url: \"#\", icon: \"lucide:inbox\", notifications: 21 },\n    { title: \"Calendar\", url: \"#\", icon: \"lucide:calendar\", notifications: 17 },\n    { title: \"Search\", url: \"#\", icon: \"lucide:search\", notifications: 29 },\n    { title: \"Settings\", url: \"#\", icon: \"lucide:settings\", notifications: 29 },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarSidebarMenuBadge.vue","components":["container","navbar","sidebar"]},{"name":"Sidebar Sidebar Menu Sub","fileName":"BlockSidebarSidebarMenuSub.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <template v-for=\"(item, index) in items\" :key=\"index\">\n                <UiSidebarMenuItem>\n                  <UiSidebarMenuButton as-child>\n                    <NuxtLink :href=\"item.url\">\n                      {{ item.title }}\n                    </NuxtLink>\n                  </UiSidebarMenuButton>\n                  <UiSidebarMenuSub>\n                    <template v-for=\"(child, k) in item.items\" :key=\"`child-${k}`\">\n                      <UiSidebarMenuSubItem>\n                        <UiSidebarMenuSubButton as-child>\n                          <NuxtLink :href=\"child.url\">\n                            {{ child.title }}\n                          </NuxtLink>\n                        </UiSidebarMenuSubButton>\n                      </UiSidebarMenuSubItem>\n                    </template>\n                  </UiSidebarMenuSub>\n                </UiSidebarMenuItem>\n              </template>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiSidebarTrigger />\n        </UiContainer>\n      </UiNavbar>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const items = [\n    {\n      title: \"Getting Started\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Installation\",\n          url: \"#\",\n        },\n        {\n          title: \"Project Structure\",\n          url: \"#\",\n        },\n      ],\n    },\n    {\n      title: \"Building Your Application\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Routing\",\n          url: \"#\",\n        },\n        {\n          title: \"Data Fetching\",\n          url: \"#\",\n          isActive: true,\n        },\n        {\n          title: \"Rendering\",\n          url: \"#\",\n        },\n        {\n          title: \"Caching\",\n          url: \"#\",\n        },\n        {\n          title: \"Styling\",\n          url: \"#\",\n        },\n        {\n          title: \"Optimizing\",\n          url: \"#\",\n        },\n        {\n          title: \"Configuring\",\n          url: \"#\",\n        },\n        {\n          title: \"Testing\",\n          url: \"#\",\n        },\n        {\n          title: \"Authentication\",\n          url: \"#\",\n        },\n        {\n          title: \"Deploying\",\n          url: \"#\",\n        },\n        {\n          title: \"Upgrading\",\n          url: \"#\",\n        },\n        {\n          title: \"Examples\",\n          url: \"#\",\n        },\n      ],\n    },\n    {\n      title: \"API Reference\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Components\",\n          url: \"#\",\n        },\n        {\n          title: \"File Conventions\",\n          url: \"#\",\n        },\n        {\n          title: \"Functions\",\n          url: \"#\",\n        },\n        {\n          title: \"next.config.js Options\",\n          url: \"#\",\n        },\n        {\n          title: \"CLI\",\n          url: \"#\",\n        },\n        {\n          title: \"Edge Runtime\",\n          url: \"#\",\n        },\n      ],\n    },\n    {\n      title: \"Architecture\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Accessibility\",\n          url: \"#\",\n        },\n        {\n          title: \"Fast Refresh\",\n          url: \"#\",\n        },\n        {\n          title: \"Next.js Compiler\",\n          url: \"#\",\n        },\n        {\n          title: \"Supported Browsers\",\n          url: \"#\",\n        },\n        {\n          title: \"Turbopack\",\n          url: \"#\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarSidebarMenuSub.vue","components":["container","navbar","sidebar"]},{"name":"Sidebar Sidebar Menu Sub Collapsible","fileName":"BlockSidebarSidebarMenuSubCollapsible.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <template v-for=\"(item, index) in items\" :key=\"index\">\n                <UiCollapsible v-slot=\"{ open }\" default-open>\n                  <UiSidebarMenuItem>\n                    <UiCollapsibleTrigger as-child>\n                      <UiSidebarMenuButton as-child>\n                        <NuxtLink :href=\"item.url\">\n                          {{ item.title }}\n                          <Icon\n                            name=\"lucide:chevron-right\"\n                            class=\"ml-auto transition\"\n                            :class=\"[open && 'rotate-90']\"\n                          />\n                        </NuxtLink>\n                      </UiSidebarMenuButton>\n                    </UiCollapsibleTrigger>\n                    <UiCollapsibleContent>\n                      <UiSidebarMenuSub>\n                        <template v-for=\"(child, k) in item.items\" :key=\"`child-${k}`\">\n                          <UiSidebarMenuSubItem>\n                            <UiSidebarMenuSubButton as-child>\n                              <NuxtLink :href=\"child.url\">\n                                {{ child.title }}\n                              </NuxtLink>\n                            </UiSidebarMenuSubButton>\n                          </UiSidebarMenuSubItem>\n                        </template>\n                      </UiSidebarMenuSub>\n                    </UiCollapsibleContent>\n                  </UiSidebarMenuItem>\n                </UiCollapsible>\n              </template>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset>\n      <UiNavbar sticky>\n        <UiContainer class=\"flex h-12 items-center\">\n          <UiSidebarTrigger />\n        </UiContainer>\n      </UiNavbar>\n    </UiSidebarInset>\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const items = [\n    {\n      title: \"Getting Started\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Installation\",\n          url: \"#\",\n        },\n        {\n          title: \"Project Structure\",\n          url: \"#\",\n        },\n      ],\n    },\n    {\n      title: \"Building Your Application\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Routing\",\n          url: \"#\",\n        },\n        {\n          title: \"Data Fetching\",\n          url: \"#\",\n          isActive: true,\n        },\n        {\n          title: \"Rendering\",\n          url: \"#\",\n        },\n        {\n          title: \"Caching\",\n          url: \"#\",\n        },\n        {\n          title: \"Styling\",\n          url: \"#\",\n        },\n        {\n          title: \"Optimizing\",\n          url: \"#\",\n        },\n        {\n          title: \"Configuring\",\n          url: \"#\",\n        },\n        {\n          title: \"Testing\",\n          url: \"#\",\n        },\n        {\n          title: \"Authentication\",\n          url: \"#\",\n        },\n        {\n          title: \"Deploying\",\n          url: \"#\",\n        },\n        {\n          title: \"Upgrading\",\n          url: \"#\",\n        },\n        {\n          title: \"Examples\",\n          url: \"#\",\n        },\n      ],\n    },\n    {\n      title: \"API Reference\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Components\",\n          url: \"#\",\n        },\n        {\n          title: \"File Conventions\",\n          url: \"#\",\n        },\n        {\n          title: \"Functions\",\n          url: \"#\",\n        },\n        {\n          title: \"next.config.js Options\",\n          url: \"#\",\n        },\n        {\n          title: \"CLI\",\n          url: \"#\",\n        },\n        {\n          title: \"Edge Runtime\",\n          url: \"#\",\n        },\n      ],\n    },\n    {\n      title: \"Architecture\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Accessibility\",\n          url: \"#\",\n        },\n        {\n          title: \"Fast Refresh\",\n          url: \"#\",\n        },\n        {\n          title: \"Next.js Compiler\",\n          url: \"#\",\n        },\n        {\n          title: \"Supported Browsers\",\n          url: \"#\",\n        },\n        {\n          title: \"Turbopack\",\n          url: \"#\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarSidebarMenuSubCollapsible.vue","components":["collapsible","container","navbar","sidebar"]},{"name":"Sidebar Sidebar Rail","fileName":"BlockSidebarSidebarRail.vue","file":"<template>\n  <UiSidebarProvider>\n    <UiSidebar>\n      <UiSidebarRail />\n      <UiSidebarContent>\n        <UiSidebarGroup>\n          <UiSidebarGroupContent>\n            <UiSidebarMenu>\n              <template v-for=\"(item, index) in items\" :key=\"index\">\n                <UiSidebarMenuItem>\n                  <UiSidebarMenuButton as-child>\n                    <NuxtLink :href=\"item.url\">\n                      {{ item.title }}\n                    </NuxtLink>\n                  </UiSidebarMenuButton>\n                  <UiSidebarMenuSub>\n                    <template v-for=\"(child, k) in item.items\" :key=\"`child-${k}`\">\n                      <UiSidebarMenuSubItem>\n                        <UiSidebarMenuSubButton as-child>\n                          <NuxtLink :href=\"child.url\">\n                            {{ child.title }}\n                          </NuxtLink>\n                        </UiSidebarMenuSubButton>\n                      </UiSidebarMenuSubItem>\n                    </template>\n                  </UiSidebarMenuSub>\n                </UiSidebarMenuItem>\n              </template>\n            </UiSidebarMenu>\n          </UiSidebarGroupContent>\n        </UiSidebarGroup>\n      </UiSidebarContent>\n    </UiSidebar>\n    <UiSidebarInset />\n  </UiSidebarProvider>\n</template>\n\n<script lang=\"ts\" setup>\n  const items = [\n    {\n      title: \"Getting Started\",\n      url: \"#\",\n      items: [\n        {\n          title: \"Installation\",\n          url: \"#\",\n        },\n        {\n          title: \"Project Structure\",\n          url: \"#\",\n        },\n      ],\n    },\n  ];\n</script>\n","category":"Sidebar","description":null,"path":"Sidebar/BlockSidebarSidebarRail.vue","components":["sidebar"]},{"name":"Sign Up","fileName":"BlockSignUp.vue","file":"<template>\n  <!--\n    Simple sign up form on a dotted background\n    Features: Name, email and password with show and hide toggle, soft radial dot pattern, log in link, validation\n  -->\n  <div class=\"relative flex min-h-screen items-center justify-center px-5 py-12\">\n    <div\n      class=\"absolute h-full w-full bg-[radial-gradient(--alpha(var(--color-border)/90%)_1px,transparent_1px)] mask-[radial-gradient(ellipse_closest-side_at_50%_50%,#000_60%,transparent_100%)] bg-size-[20px_20px]\"\n    />\n\n    <div class=\"relative w-full max-w-sm\">\n      <div class=\"space-y-1.5\">\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Sign up</h1>\n        <p class=\"text-muted-foreground\">Create an account to get started.</p>\n      </div>\n\n      <form class=\"mt-8\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n          <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n          <UiVeeInput\n            required\n            label=\"Email\"\n            type=\"email\"\n            name=\"email\"\n            placeholder=\"you@example.com\"\n          />\n          <UiVeePasswordInput\n            required\n            label=\"Password\"\n            name=\"password\"\n            placeholder=\"Create a password\"\n            hint=\"Must be at least 8 characters.\"\n          />\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Create account\" />\n        </fieldset>\n      </form>\n\n      <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n        Already have an account?\n        <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n          Log in\n        </NuxtLink>\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({ title: \"Sign up\", description: \"Create an account to get started.\" });\n\n  const Schema = object({\n    name: string().required().label(\"Name\").min(3).max(50),\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n</script>\n","category":"SignUp","description":"Simple sign up form on a dotted background. Features: Name, email and password with show and hide toggle, soft radial dot pattern, log in link, validation","path":"SignUp/BlockSignUp.vue","components":["button","vee-input","vee-password-input"]},{"name":"Sign Up Card","fileName":"BlockSignUpCard.vue","file":"<template>\n  <!--\n    Sign up form inside a card\n    Features: Centered card on a dot pattern, logo header, password toggle, terms notice, log in footer\n  -->\n  <div class=\"bg-muted/40 relative flex min-h-screen items-center justify-center px-5 py-12\">\n    <div\n      class=\"absolute h-full w-full bg-[radial-gradient(--alpha(var(--color-border)/90%)_1px,transparent_1px)] mask-[radial-gradient(ellipse_closest-side_at_50%_50%,#000_60%,transparent_100%)] bg-size-[20px_20px]\"\n    />\n    <div class=\"relative w-full max-w-md\">\n      <UiCard class=\"shadow-sm\">\n        <UiCardHeader class=\"justify-items-center text-center\">\n          <svg\n            class=\"fill-primary mb-3 h-8\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          <UiCardTitle class=\"text-2xl\">Create your account</UiCardTitle>\n          <UiCardDescription>Start building in minutes. No credit card needed.</UiCardDescription>\n        </UiCardHeader>\n        <UiCardContent>\n          <form @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n              <UiVeeInput\n                required\n                label=\"Email\"\n                type=\"email\"\n                name=\"email\"\n                placeholder=\"you@example.com\"\n              />\n              <UiVeePasswordInput\n                required\n                label=\"Password\"\n                name=\"password\"\n                placeholder=\"Create a password\"\n                hint=\"Must be at least 8 characters.\"\n              />\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Create account\" />\n            </fieldset>\n          </form>\n        </UiCardContent>\n        <UiCardFooter class=\"justify-center border-t\">\n          <p class=\"text-muted-foreground text-sm\">\n            Already have an account?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Log in\n            </NuxtLink>\n          </p>\n        </UiCardFooter>\n      </UiCard>\n      <p class=\"text-muted-foreground mt-6 text-center text-xs text-balance\">\n        By signing up you agree to our\n        <NuxtLink class=\"hover:text-foreground underline underline-offset-4\" to=\"#\">\n          Terms of Service\n        </NuxtLink>\n        and\n        <NuxtLink class=\"hover:text-foreground underline underline-offset-4\" to=\"#\">\n          Privacy Policy\n        </NuxtLink>\n        .\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const Schema = object({\n    name: string().required().label(\"Name\").min(3).max(50),\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n</script>\n","category":"SignUp","description":"Sign up form inside a card. Features: Centered card on a dot pattern, logo header, password toggle, terms notice, log in footer","path":"SignUp/BlockSignUpCard.vue","components":["button","card","vee-input","vee-password-input"]},{"name":"Sign Up Centered","fileName":"BlockSignUpCentered.vue","file":"<template>\n  <!--\n    Centered sign up with the social buttons first\n    Features: Logo header with log in link, Google and GitHub buttons above the form, password toggle, optional product updates checkbox\n  -->\n  <div class=\"flex min-h-screen items-center justify-center px-5 py-12\">\n    <div class=\"w-full max-w-[380px]\">\n      <div class=\"text-center\">\n        <svg\n          class=\"fill-primary mx-auto mb-6 h-10\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            class=\"ccustom\"\n          />\n        </svg>\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Get started for free</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          No credit card required. Start building immediately.\n        </p>\n      </div>\n\n      <div class=\"mt-10\">\n        <div class=\"grid gap-3\">\n          <UiButton variant=\"outline\" type=\"button\" @click=\"signUpWithGoogle()\">\n            <Icon class=\"size-5\" name=\"logos:google-icon\" />\n            <span class=\"ml-2\">Sign up with Google</span>\n          </UiButton>\n          <UiButton variant=\"outline\" type=\"button\" @click=\"signUpWithGithub()\">\n            <Icon class=\"size-5\" name=\"mdi:github\" />\n            <span class=\"ml-2\">Sign up with Github</span>\n          </UiButton>\n        </div>\n\n        <UiDivider class=\"my-6\" label=\"Or continue with email\" />\n\n        <form @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeeInput required label=\"Full name\" name=\"name\" placeholder=\"John Doe\" />\n            <UiVeeInput\n              required\n              label=\"Work email\"\n              type=\"email\"\n              name=\"email\"\n              placeholder=\"you@company.com\"\n            />\n            <UiVeePasswordInput\n              required\n              label=\"Password\"\n              name=\"password\"\n              placeholder=\"Create a password\"\n              hint=\"Must be at least 8 characters.\"\n            />\n            <div class=\"flex items-start gap-3\">\n              <UiVeeCheckbox\n                name=\"marketing\"\n                label=\"Send me occasional product updates and announcements\"\n              />\n            </div>\n            <UiButton class=\"w-full\" type=\"submit\" text=\"Create account\" />\n          </fieldset>\n        </form>\n\n        <p class=\"text-muted-foreground mt-6 text-center text-sm\">\n          Already have an account?\n          <NuxtLink class=\"text-primary font-semibold underline-offset-2 hover:underline\" to=\"#\"\n            >Log in</NuxtLink\n          >\n        </p>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Get started for free\",\n    description: \"No credit card required. Start building immediately.\",\n  });\n\n  const Schema = object({\n    name: string().required().label(\"Full name\").min(3),\n    email: string().email().required().label(\"Work email\"),\n    password: string().required().label(\"Password\").min(8),\n    marketing: boolean().label(\"Marketing\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n\n  const signUpWithGoogle = () => {\n    useSonner(\"Sign up with Google\", {\n      description: \"Redirecting to Google...\",\n    });\n  };\n\n  const signUpWithGithub = () => {\n    useSonner(\"Sign up with Github\", {\n      description: \"Redirecting to Github...\",\n    });\n  };\n</script>\n","category":"SignUp","description":"Centered sign up with the social buttons first. Features: Logo header with log in link, Google and GitHub buttons above the form, password toggle, optional product updates checkbox","path":"SignUp/BlockSignUpCentered.vue","components":["button","divider","vee-checkbox","vee-input","vee-password-input"]},{"name":"Sign Up Header Nav","fileName":"BlockSignUpHeaderNav.vue","file":"<template>\n  <!--\n    Sign up page with a header navigation bar\n    Features: Top bar with logo, links and log in button, centered form with social sign up and terms checkbox, links collapse on mobile\n  -->\n  <div class=\"flex min-h-screen flex-col\">\n    <header class=\"border-b\">\n      <div class=\"mx-auto flex h-16 max-w-6xl items-center justify-between px-5\">\n        <NuxtLink to=\"#\" class=\"flex items-center gap-2 font-semibold\">\n          <svg\n            class=\"fill-primary h-6\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          UI Thing\n        </NuxtLink>\n        <nav class=\"text-muted-foreground hidden items-center gap-6 text-sm font-medium md:flex\">\n          <NuxtLink v-for=\"link in links\" :key=\"link\" to=\"#\" class=\"hover:text-foreground\">\n            {{ link }}\n          </NuxtLink>\n        </nav>\n        <UiButton variant=\"outline\" size=\"sm\">Log in</UiButton>\n      </div>\n    </header>\n\n    <main class=\"flex flex-1 items-center justify-center px-5 py-12\">\n      <div class=\"w-full max-w-sm\">\n        <div class=\"text-center\">\n          <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Create an account</h1>\n          <p class=\"text-muted-foreground mt-2\">Start your 14 day free trial today.</p>\n        </div>\n\n        <form class=\"mt-8\" @submit=\"submit\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n            <UiVeeInput\n              required\n              label=\"Email\"\n              type=\"email\"\n              name=\"email\"\n              placeholder=\"you@example.com\"\n            />\n            <UiVeePasswordInput\n              required\n              label=\"Password\"\n              name=\"password\"\n              placeholder=\"Create a password\"\n              hint=\"Must be at least 8 characters.\"\n            />\n            <UiButton class=\"w-full\" type=\"submit\" text=\"Get started\" />\n            <UiButton variant=\"outline\" type=\"button\" @click=\"signUpWithGoogle()\">\n              <Icon class=\"size-4\" name=\"logos:google-icon\" />\n              Sign up with Google\n            </UiButton>\n          </fieldset>\n        </form>\n\n        <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n          Already have an account?\n          <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n            Log in\n          </NuxtLink>\n        </p>\n      </div>\n    </main>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const links = [\"Product\", \"Pricing\", \"Docs\", \"Support\"];\n\n  const Schema = object({\n    name: string().required().label(\"Name\").min(3).max(50),\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n\n  const signUpWithGoogle = () => {\n    useSonner(\"Sign up with Google\", {\n      description: \"Wire this up to your auth provider.\",\n    });\n  };\n</script>\n","category":"SignUp","description":"Sign up page with a header navigation bar. Features: Top bar with logo, links and log in button, centered form with social sign up and terms checkbox, links collapse on mobile","path":"SignUp/BlockSignUpHeaderNav.vue","components":["button","vee-input","vee-password-input"]},{"name":"Sign Up Image","fileName":"BlockSignUpImage.vue","file":"<template>\n  <!--\n    Split screen sign up with a full height image\n    Features: Form on the left with logo and footer, image with caption on the right that hides on mobile, Google sign up, password toggle\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-2\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Create your account</h1>\n            <p class=\"text-muted-foreground\">Start your free trial. Cancel anytime.</p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n              <UiVeeInput\n                required\n                label=\"Email\"\n                type=\"email\"\n                name=\"email\"\n                placeholder=\"you@example.com\"\n              />\n              <UiVeePasswordInput\n                required\n                label=\"Password\"\n                name=\"password\"\n                placeholder=\"Create a password\"\n                hint=\"Must be at least 8 characters.\"\n              />\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Get started\" />\n              <UiDivider label=\"OR\" />\n              <UiButton variant=\"outline\" type=\"button\" @click=\"signUpWithGoogle()\">\n                <Icon class=\"size-4\" name=\"logos:google-icon\" />\n                Sign up with Google\n              </UiButton>\n            </fieldset>\n          </form>\n\n          <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n            Already have an account?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Log in\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div class=\"relative hidden lg:block\">\n      <img\n        src=\"https://images.unsplash.com/photo-1512551980832-13df02babc9e?q=60&w=2864&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n        alt=\"Abstract light lines on a dark ceiling\"\n        class=\"absolute inset-0 size-full object-cover\"\n      />\n      <div class=\"absolute inset-0 bg-linear-to-t from-black/70 via-black/10 to-transparent\" />\n      <div class=\"absolute inset-x-0 bottom-0 p-10 text-white\">\n        <p class=\"max-w-md text-lg font-medium\">Build the interface once, own the code forever.</p>\n        <p class=\"mt-2 text-sm text-white/70\">Copy, paste and make it yours.</p>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({ title: \"Sign up\", description: \"Create your account to get started.\" });\n\n  const Schema = object({\n    name: string().required().label(\"Name\").min(3).max(50),\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n\n  const signUpWithGoogle = () => {\n    useSonner(\"Sign up with Google\", {\n      description: \"Wire this up to your auth provider.\",\n    });\n  };\n</script>\n","category":"SignUp","description":"Split screen sign up with a full height image. Features: Form on the left with logo and footer, image with caption on the right that hides on mobile, Google sign up, password toggle","path":"SignUp/BlockSignUpImage.vue","components":["button","divider","vee-input","vee-password-input"]},{"name":"Sign Up Minimal","fileName":"BlockSignUpMinimal.vue","file":"<template>\n  <!--\n    Minimal sign up card with an icon header\n    Features: Centered card, circular icon, password and confirm password with show and hide toggle, log in footer\n  -->\n  <div class=\"bg-muted/50 flex min-h-screen items-center justify-center px-5 py-12\">\n    <div class=\"bg-card w-full max-w-[420px] rounded-lg border p-8 shadow-sm\">\n      <div class=\"mb-8 text-center\">\n        <div\n          class=\"bg-primary/10 mx-auto mb-4 flex size-12 items-center justify-center rounded-full\"\n        >\n          <Icon name=\"lucide:user-plus\" class=\"text-primary size-6\" />\n        </div>\n        <h1 class=\"text-2xl font-bold tracking-tight\">Join us today</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">Create your account in seconds</p>\n      </div>\n\n      <form @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-4\">\n          <UiVeeInput required label=\"Full name\" name=\"name\" placeholder=\"John Doe\" />\n          <UiVeeInput\n            required\n            label=\"Email address\"\n            type=\"email\"\n            name=\"email\"\n            placeholder=\"you@example.com\"\n          />\n          <UiVeePasswordInput\n            required\n            label=\"Password\"\n            name=\"password\"\n            placeholder=\"Create a password\"\n            hint=\"Must be at least 8 characters.\"\n          />\n          <UiVeePasswordInput\n            required\n            label=\"Confirm password\"\n            name=\"confirmPassword\"\n            placeholder=\"Repeat your password\"\n          />\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Create account\" />\n        </fieldset>\n      </form>\n\n      <div class=\"mt-6 text-center\">\n        <p class=\"text-muted-foreground text-sm\">\n          Already have an account?\n          <NuxtLink class=\"text-primary font-semibold underline-offset-2 hover:underline\" to=\"#\"\n            >Sign in</NuxtLink\n          >\n        </p>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string, ref as yupRef } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({\n    title: \"Join us today\",\n    description: \"Create your account in seconds.\",\n  });\n\n  const Schema = object({\n    name: string().required().label(\"Full name\").min(3),\n    email: string().email().required().label(\"Email address\"),\n    password: string().required().label(\"Password\").min(8),\n    confirmPassword: string()\n      .required()\n      .label(\"Confirm password\")\n      .oneOf([yupRef(\"password\")], \"Passwords must match\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n</script>\n","category":"SignUp","description":"Minimal sign up card with an icon header. Features: Centered card, circular icon, password and confirm password with show and hide toggle, log in footer","path":"SignUp/BlockSignUpMinimal.vue","components":["button","vee-input","vee-password-input"]},{"name":"Sign Up Password Meter","fileName":"BlockSignUpPasswordMeter.vue","file":"<template>\n  <!--\n    Sign up form with a live password strength meter\n    Features: Strength bar and requirements checklist driven by the password field, name and email, validation that matches the checklist\n  -->\n  <div class=\"relative flex min-h-screen items-center justify-center px-5 py-12\">\n    <div\n      class=\"absolute h-full w-full bg-[radial-gradient(--alpha(var(--color-border)/90%)_1px,transparent_1px)] mask-[radial-gradient(ellipse_closest-side_at_50%_50%,#000_60%,transparent_100%)] bg-size-[20px_20px]\"\n    />\n\n    <div class=\"relative w-full max-w-sm\">\n      <div class=\"space-y-1.5\">\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Sign up</h1>\n        <p class=\"text-muted-foreground\">Pick a strong password to protect your account.</p>\n      </div>\n\n      <form class=\"mt-8\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n          <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n          <UiVeeInput\n            required\n            label=\"Email\"\n            type=\"email\"\n            name=\"email\"\n            placeholder=\"you@example.com\"\n          />\n          <UiVeePasswordInput\n            required\n            show-strength\n            show-requirements\n            label=\"Password\"\n            name=\"password\"\n            placeholder=\"Create a password\"\n            :requirements=\"['length', 'uppercase', 'number', 'special']\"\n          />\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Create account\" />\n        </fieldset>\n      </form>\n\n      <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n        Already have an account?\n        <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n          Log in\n        </NuxtLink>\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  useSeoMeta({ title: \"Sign up\", description: \"Pick a strong password to protect your account.\" });\n\n  // Keep the schema in step with the `requirements` shown in the checklist.\n  const Schema = object({\n    name: string().required().label(\"Name\").min(3).max(50),\n    email: string().email().required().label(\"Email\"),\n    password: string()\n      .required()\n      .label(\"Password\")\n      .min(8)\n      .matches(/[A-Z]/, \"Password needs an uppercase letter\")\n      .matches(/[0-9]/, \"Password needs a number\")\n      .matches(/[^A-Za-z0-9]/, \"Password needs a special character\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n</script>\n","category":"SignUp","description":"Sign up form with a live password strength meter. Features: Strength bar and requirements checklist driven by the password field, name and email, validation that matches the checklist","path":"SignUp/BlockSignUpPasswordMeter.vue","components":["button","vee-input","vee-password-input"]},{"name":"Sign Up Progress","fileName":"BlockSignUpProgress.vue","file":"<template>\n  <!--\n    Multi step sign up with a horizontal progress indicator\n    Features: Three steps (account, about you, done) with numbered progress, per step validation, back button, team size choice cards, success state\n  -->\n  <div class=\"flex min-h-screen items-center justify-center px-5 py-12\">\n    <div class=\"w-full max-w-md\">\n      <ol class=\"mb-10 flex items-center\" aria-label=\"Sign up progress\">\n        <li\n          v-for=\"(item, i) in steps\"\n          :key=\"item.id\"\n          class=\"flex items-center\"\n          :class=\"i < steps.length - 1 && 'flex-1'\"\n          :aria-current=\"step === item.id ? 'step' : undefined\"\n        >\n          <div class=\"flex items-center gap-2.5\">\n            <span\n              class=\"flex size-8 shrink-0 items-center justify-center rounded-full border text-sm font-semibold transition-colors\"\n              :class=\"\n                step > item.id || step === steps.length\n                  ? 'bg-primary text-primary-foreground border-primary'\n                  : step === item.id\n                    ? 'border-primary text-primary'\n                    : 'text-muted-foreground'\n              \"\n            >\n              <Icon\n                v-if=\"step > item.id || step === steps.length\"\n                name=\"lucide:check\"\n                class=\"size-4\"\n              />\n              <template v-else>{{ item.id }}</template>\n            </span>\n            <span\n              class=\"hidden text-sm font-medium sm:block\"\n              :class=\"step >= item.id ? 'text-foreground' : 'text-muted-foreground'\"\n            >\n              {{ item.title }}\n            </span>\n          </div>\n          <div\n            v-if=\"i < steps.length - 1\"\n            class=\"mx-3 h-px flex-1 transition-colors\"\n            :class=\"step > item.id ? 'bg-primary' : 'bg-border'\"\n          />\n        </li>\n      </ol>\n\n      <template v-if=\"step === 1\">\n        <div class=\"space-y-1.5\">\n          <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Create your account</h1>\n          <p class=\"text-muted-foreground\">Step 1 of 2. Tell us how to sign you in.</p>\n        </div>\n        <form class=\"mt-8\" @submit=\"next\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n            <UiVeeInput\n              required\n              label=\"Email\"\n              type=\"email\"\n              name=\"email\"\n              placeholder=\"you@example.com\"\n            />\n            <UiVeePasswordInput\n              required\n              label=\"Password\"\n              name=\"password\"\n              placeholder=\"Create a password\"\n              hint=\"Must be at least 8 characters.\"\n            />\n            <UiButton class=\"w-full\" type=\"submit\">\n              Continue\n              <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n            </UiButton>\n          </fieldset>\n        </form>\n        <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n          Already have an account?\n          <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n            Log in\n          </NuxtLink>\n        </p>\n      </template>\n\n      <template v-else-if=\"step === 2\">\n        <div class=\"space-y-1.5\">\n          <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">About you</h1>\n          <p class=\"text-muted-foreground\">Step 2 of 2. This helps us tailor your workspace.</p>\n        </div>\n        <form class=\"mt-8\" @submit=\"next\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <UiVeeInput required label=\"Company\" name=\"company\" placeholder=\"Acme Inc.\" />\n            <UiVeeSelect required label=\"Your role\" name=\"role\">\n              <option value=\"\" disabled selected>Select a role</option>\n              <option>Founder</option>\n              <option>Engineer</option>\n              <option>Designer</option>\n              <option>Product manager</option>\n              <option>Other</option>\n            </UiVeeSelect>\n            <div class=\"grid gap-2\">\n              <UiLabel>Team size</UiLabel>\n              <UiRadioGroup v-model=\"teamSize\" class=\"grid grid-cols-3 gap-3\">\n                <label\n                  v-for=\"option in sizes\"\n                  :key=\"option\"\n                  class=\"flex cursor-pointer items-center justify-center gap-2 rounded-lg border px-3 py-2.5 text-sm transition-colors\"\n                  :class=\"\n                    teamSize === option ? 'border-primary bg-primary/5' : 'hover:bg-accent/50'\n                  \"\n                >\n                  <UiRadioGroupItem :value=\"option\" class=\"sr-only\" />\n                  {{ option }}\n                </label>\n              </UiRadioGroup>\n            </div>\n            <div class=\"grid grid-cols-2 gap-3\">\n              <UiButton type=\"button\" variant=\"outline\" @click=\"step = 1\">\n                <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n                Back\n              </UiButton>\n              <UiButton type=\"submit\">Create account</UiButton>\n            </div>\n          </fieldset>\n        </form>\n      </template>\n\n      <div v-else class=\"text-center\">\n        <div\n          class=\"bg-primary/10 mx-auto mb-5 flex size-14 items-center justify-center rounded-full\"\n        >\n          <Icon name=\"lucide:party-popper\" class=\"text-primary size-7\" />\n        </div>\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">You're all set</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          Your account is ready. We sent a confirmation link to your email.\n        </p>\n        <UiButton class=\"mt-8 w-full\" @click=\"useSonner.info('Take them to your dashboard here')\">\n          Go to dashboard\n        </UiButton>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n\n  const steps = [\n    { id: 1, title: \"Account\" },\n    { id: 2, title: \"About you\" },\n    { id: 3, title: \"Done\" },\n  ];\n  const sizes = [\"Just me\", \"2-10\", \"11+\"];\n\n  const step = ref(1);\n  const teamSize = ref(\"2-10\");\n\n  const accountSchema = object({\n    name: string().required().label(\"Name\").min(3).max(50),\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n  const profileSchema = object({\n    company: string().required().label(\"Company\"),\n    role: string().required().label(\"Role\"),\n  });\n\n  // Each step validates only its own fields, and values survive the step changing.\n  const { handleSubmit, isSubmitting } = useForm({\n    validationSchema: computed(() => (step.value === 1 ? accountSchema : profileSchema)),\n    keepValuesOnUnmount: true,\n  });\n\n  const next = handleSubmit(async (values) => {\n    if (step.value === 2) {\n      await new Promise((resolve) => setTimeout(resolve, 500));\n      useSonner.success(\"Account created!\", { description: `Welcome, ${values.name}.` });\n    }\n    step.value += 1;\n  });\n</script>\n","category":"SignUp","description":"Multi step sign up with a horizontal progress indicator. Features: Three steps (account, about you, done) with numbered progress, per step validation, back button, team size choice cards, success state","path":"SignUp/BlockSignUpProgress.vue","components":["button","label","radio-group","vee-input","vee-password-input","vee-select"]},{"name":"Sign Up Sidebar Progress","fileName":"BlockSignUpSidebarProgress.vue","file":"<template>\n  <!--\n    Multi step sign up with a vertical progress sidebar\n    Features: Brand sidebar listing every step with completed state, compact progress bar on mobile, per step validation, invite teammates step, success state\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-[22rem_minmax(0,1fr)]\">\n    <aside\n      class=\"bg-primary text-primary-foreground relative hidden flex-col justify-between overflow-hidden p-10 lg:flex\"\n    >\n      <div\n        class=\"bg-primary-foreground/10 absolute -right-24 -bottom-24 size-80 rounded-full blur-3xl\"\n      />\n      <div class=\"relative\">\n        <div class=\"flex items-center gap-2 font-semibold\">\n          <svg\n            class=\"fill-primary-foreground h-6\"\n            viewBox=\"0 0 53 44\"\n            fill=\"none\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n          >\n            <path\n              d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n            />\n          </svg>\n          UI Thing\n        </div>\n\n        <ol class=\"mt-14\" aria-label=\"Sign up progress\">\n          <li\n            v-for=\"(item, i) in steps\"\n            :key=\"item.id\"\n            class=\"relative flex gap-4 pb-10 last:pb-0\"\n            :aria-current=\"step === item.id ? 'step' : undefined\"\n          >\n            <div\n              v-if=\"i < steps.length - 1\"\n              class=\"absolute top-9 bottom-1 left-4 w-px\"\n              :class=\"step > item.id ? 'bg-primary-foreground' : 'bg-primary-foreground/25'\"\n            />\n            <span\n              class=\"relative flex size-8 shrink-0 items-center justify-center rounded-full border text-sm font-semibold transition-colors\"\n              :class=\"\n                step > item.id\n                  ? 'bg-primary-foreground text-primary border-primary-foreground'\n                  : step === item.id\n                    ? 'border-primary-foreground'\n                    : 'border-primary-foreground/40 text-primary-foreground/60'\n              \"\n            >\n              <Icon v-if=\"step > item.id\" name=\"lucide:check\" class=\"size-4\" />\n              <template v-else>{{ item.id }}</template>\n            </span>\n            <div>\n              <p\n                class=\"text-sm font-semibold\"\n                :class=\"step >= item.id ? '' : 'text-primary-foreground/60'\"\n              >\n                {{ item.title }}\n              </p>\n              <p class=\"text-primary-foreground/60 text-sm\">{{ item.description }}</p>\n            </div>\n          </li>\n        </ol>\n      </div>\n\n      <p class=\"text-primary-foreground/60 relative text-sm\">\n        Need help? Email support@uithing.com\n      </p>\n    </aside>\n\n    <div class=\"flex flex-col\">\n      <div class=\"border-b p-5 lg:hidden\">\n        <div class=\"flex items-center justify-between text-sm\">\n          <span class=\"font-semibold\">{{ steps[Math.min(step, steps.length) - 1]?.title }}</span>\n          <span class=\"text-muted-foreground\"\n            >Step {{ Math.min(step, steps.length) }} of {{ steps.length }}</span\n          >\n        </div>\n        <UiProgress\n          :model-value=\"(Math.min(step, steps.length) / steps.length) * 100\"\n          class=\"mt-3 h-1.5\"\n        />\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center px-5 py-12\">\n        <div class=\"w-full max-w-md\">\n          <template v-if=\"step === 1\">\n            <div class=\"space-y-1.5\">\n              <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Your details</h1>\n              <p class=\"text-muted-foreground\">\n                Start with the basics. You can change these later.\n              </p>\n            </div>\n            <form class=\"mt-8\" @submit=\"next\">\n              <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n                <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n                <UiVeeInput\n                  required\n                  label=\"Work email\"\n                  type=\"email\"\n                  name=\"email\"\n                  placeholder=\"you@company.com\"\n                />\n                <UiVeePasswordInput\n                  required\n                  label=\"Password\"\n                  name=\"password\"\n                  placeholder=\"Create a password\"\n                  hint=\"Must be at least 8 characters.\"\n                />\n                <UiButton class=\"w-full\" type=\"submit\">\n                  Continue\n                  <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n                </UiButton>\n              </fieldset>\n            </form>\n            <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n              Already have an account?\n              <NuxtLink\n                class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n                to=\"#\"\n              >\n                Log in\n              </NuxtLink>\n            </p>\n          </template>\n\n          <template v-else-if=\"step === 2\">\n            <div class=\"space-y-1.5\">\n              <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Your workspace</h1>\n              <p class=\"text-muted-foreground\">This is where your team will collaborate.</p>\n            </div>\n            <form class=\"mt-8\" @submit=\"next\">\n              <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n                <UiVeeInput\n                  required\n                  label=\"Workspace name\"\n                  name=\"workspace\"\n                  placeholder=\"Acme Inc.\"\n                />\n                <UiVeeInput\n                  required\n                  label=\"Workspace URL\"\n                  name=\"slug\"\n                  placeholder=\"acme\"\n                  hint=\"uithing.com/your-workspace\"\n                />\n                <div class=\"grid grid-cols-2 gap-3\">\n                  <UiButton type=\"button\" variant=\"outline\" @click=\"step = 1\">\n                    <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n                    Back\n                  </UiButton>\n                  <UiButton type=\"submit\">Continue</UiButton>\n                </div>\n              </fieldset>\n            </form>\n          </template>\n\n          <template v-else-if=\"step === 3\">\n            <div class=\"space-y-1.5\">\n              <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Invite your team</h1>\n              <p class=\"text-muted-foreground\">Work is better together. You can also skip this.</p>\n            </div>\n            <form class=\"mt-8\" @submit=\"next\">\n              <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n                <UiVeeTextarea\n                  label=\"Email addresses\"\n                  name=\"invites\"\n                  :rows=\"4\"\n                  placeholder=\"jane@company.com, sam@company.com\"\n                  hint=\"Separate addresses with commas.\"\n                />\n                <div class=\"grid grid-cols-2 gap-3\">\n                  <UiButton type=\"button\" variant=\"outline\" @click=\"step = 2\">\n                    <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n                    Back\n                  </UiButton>\n                  <UiButton type=\"submit\">Finish</UiButton>\n                </div>\n                <UiButton type=\"button\" variant=\"ghost\" @click=\"skip()\">Skip for now</UiButton>\n              </fieldset>\n            </form>\n          </template>\n\n          <div v-else class=\"text-center\">\n            <div\n              class=\"bg-primary/10 mx-auto mb-5 flex size-14 items-center justify-center rounded-full\"\n            >\n              <Icon name=\"lucide:party-popper\" class=\"text-primary size-7\" />\n            </div>\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Welcome aboard</h1>\n            <p class=\"text-muted-foreground mt-2\">\n              Your workspace is ready. We sent a confirmation link to your email.\n            </p>\n            <UiButton\n              class=\"mt-8 w-full\"\n              @click=\"useSonner.info('Take them to your dashboard here')\"\n            >\n              Go to dashboard\n            </UiButton>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n\n  const steps = [\n    { id: 1, title: \"Your details\", description: \"Name, email and password\" },\n    { id: 2, title: \"Your workspace\", description: \"Name and URL\" },\n    { id: 3, title: \"Invite your team\", description: \"Optional\" },\n  ];\n\n  const step = ref(1);\n\n  const schemas = [\n    object({\n      name: string().required().label(\"Name\").min(3).max(50),\n      email: string().email().required().label(\"Work email\"),\n      password: string().required().label(\"Password\").min(8),\n    }),\n    object({\n      workspace: string().required().label(\"Workspace name\"),\n      slug: string()\n        .matches(/^[a-z0-9-]+$/, \"Use lowercase letters, numbers and dashes\")\n        .required()\n        .label(\"Workspace URL\"),\n    }),\n    object({ invites: string().label(\"Email addresses\") }),\n  ];\n\n  // Each step validates only its own fields, and values survive the step changing.\n  const { handleSubmit, isSubmitting } = useForm({\n    validationSchema: computed(() => schemas[Math.min(step.value, 3) - 1]),\n    keepValuesOnUnmount: true,\n  });\n\n  const next = handleSubmit(async () => {\n    if (step.value === 3) {\n      await new Promise((resolve) => setTimeout(resolve, 500));\n      useSonner.success(\"Workspace created!\");\n    }\n    step.value += 1;\n  });\n\n  const skip = () => {\n    step.value = 4;\n  };\n</script>\n","category":"SignUp","description":"Multi step sign up with a vertical progress sidebar. Features: Brand sidebar listing every step with completed state, compact progress bar on mobile, per step validation, invite teammates step, success state","path":"SignUp/BlockSignUpSidebarProgress.vue","components":["button","progress","vee-input","vee-password-input","vee-textarea"]},{"name":"Sign Up Social","fileName":"BlockSignUpSocial.vue","file":"<template>\n  <!--\n    Sign up form with social sign in below the form\n    Features: Name, email and password, divider, Google and GitHub buttons side by side, grid background, terms notice\n  -->\n  <div class=\"relative flex min-h-screen items-center justify-center px-5 py-12\">\n    <div\n      class=\"absolute inset-0 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] mask-[radial-gradient(circle_at_center,white,transparent_85%)] bg-size-[80px_80px]\"\n    />\n    <div class=\"relative w-full max-w-sm\">\n      <div class=\"space-y-1.5\">\n        <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Create your account</h1>\n        <p class=\"text-muted-foreground\">Join thousands of teams already building with us.</p>\n      </div>\n\n      <form class=\"mt-8\" @submit=\"submit\">\n        <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n          <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n          <UiVeeInput\n            required\n            label=\"Email\"\n            type=\"email\"\n            name=\"email\"\n            placeholder=\"you@example.com\"\n          />\n          <UiVeePasswordInput\n            required\n            label=\"Password\"\n            name=\"password\"\n            placeholder=\"Create a password\"\n            hint=\"Must be at least 8 characters.\"\n          />\n          <UiButton class=\"w-full\" type=\"submit\" text=\"Get started\" />\n          <UiDivider label=\"or sign up with\" />\n          <div class=\"grid grid-cols-2 gap-3\">\n            <UiButton variant=\"outline\" type=\"button\" @click=\"social('Google')\">\n              <Icon class=\"size-4\" name=\"logos:google-icon\" />\n              Google\n            </UiButton>\n            <UiButton variant=\"outline\" type=\"button\" @click=\"social('GitHub')\">\n              <Icon class=\"size-4\" name=\"mdi:github\" />\n              GitHub\n            </UiButton>\n          </div>\n        </fieldset>\n      </form>\n\n      <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n        Already have an account?\n        <NuxtLink class=\"text-foreground font-semibold underline-offset-4 hover:underline\" to=\"#\">\n          Log in\n        </NuxtLink>\n      </p>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const Schema = object({\n    name: string().required().label(\"Name\").min(3).max(50),\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n\n  const social = (provider: string) => {\n    useSonner(`Continue with ${provider}`, {\n      description: \"Wire this up to your auth provider.\",\n    });\n  };\n</script>\n","category":"SignUp","description":"Sign up form with social sign in below the form. Features: Name, email and password, divider, Google and GitHub buttons side by side, grid background, terms notice","path":"SignUp/BlockSignUpSocial.vue","components":["button","divider","vee-input","vee-password-input"]},{"name":"Sign Up Split Carousel","fileName":"BlockSignUpSplitCarousel.vue","file":"<template>\n  <!--\n    Split screen sign up with a rotating testimonial panel\n    Features: Form on the left, brand panel on the right that cycles through customer quotes every few seconds with clickable dots, pauses on hover, hides on mobile\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-2\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Get started</h1>\n            <p class=\"text-muted-foreground\">Create your account to continue.</p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n              <UiVeeInput\n                required\n                label=\"Email\"\n                type=\"email\"\n                name=\"email\"\n                placeholder=\"you@example.com\"\n              />\n              <UiVeePasswordInput\n                required\n                label=\"Password\"\n                name=\"password\"\n                placeholder=\"Create a password\"\n                hint=\"Must be at least 8 characters.\"\n              />\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Create account\" />\n            </fieldset>\n          </form>\n\n          <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n            Already have an account?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Log in\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div\n      class=\"bg-primary text-primary-foreground relative hidden flex-col items-center justify-center overflow-hidden p-12 lg:flex\"\n      @mouseenter=\"paused = true\"\n      @mouseleave=\"paused = false\"\n    >\n      <div\n        class=\"bg-primary-foreground/10 absolute -top-24 -right-24 size-96 rounded-full blur-3xl\"\n      />\n      <div\n        class=\"bg-primary-foreground/10 absolute -bottom-32 -left-16 size-80 rounded-full blur-3xl\"\n      />\n\n      <div class=\"relative h-72 w-full max-w-md\">\n        <figure\n          v-for=\"(item, i) in quotes\"\n          :key=\"item.name\"\n          class=\"absolute inset-0 flex flex-col justify-center transition-all duration-700\"\n          :class=\"\n            i === active\n              ? 'translate-y-0 opacity-100'\n              : 'pointer-events-none translate-y-3 opacity-0'\n          \"\n          :aria-hidden=\"i !== active\"\n        >\n          <Icon name=\"lucide:quote\" class=\"text-primary-foreground/30 mb-5 size-9\" />\n          <blockquote class=\"text-xl leading-snug font-medium text-balance\">\n            {{ item.text }}\n          </blockquote>\n          <figcaption class=\"mt-6 flex items-center gap-3\">\n            <UiAvatar class=\"size-11\" :src=\"item.avatar\" :fallback=\"item.initials\" />\n            <div>\n              <p class=\"font-semibold\">{{ item.name }}</p>\n              <p class=\"text-primary-foreground/70 text-sm\">{{ item.role }}</p>\n            </div>\n          </figcaption>\n        </figure>\n      </div>\n\n      <div class=\"relative mt-6 flex items-center gap-2\">\n        <button\n          v-for=\"(item, i) in quotes\"\n          :key=\"item.name\"\n          type=\"button\"\n          class=\"h-2 rounded-full transition-all\"\n          :class=\"i === active ? 'bg-primary-foreground w-6' : 'bg-primary-foreground/30 w-2'\"\n          :aria-label=\"`Show quote from ${item.name}`\"\n          :aria-current=\"i === active\"\n          @click=\"active = i\"\n        />\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const quotes = [\n    {\n      text: \"We rebuilt our whole dashboard in a weekend. Every piece was already there and every piece was ours to change.\",\n      name: \"Maya Chen\",\n      role: \"Head of Product, Northwind\",\n      initials: \"MC\",\n      avatar: \"https://i.pravatar.cc/120?img=47\",\n    },\n    {\n      text: \"The accessibility work alone saved us weeks. Keyboard support and focus handling just work.\",\n      name: \"Priya Nair\",\n      role: \"Frontend Engineer, Lumen\",\n      initials: \"PN\",\n      avatar: \"https://i.pravatar.cc/120?img=45\",\n    },\n    {\n      text: \"Themeing was a handful of tokens. Our brand was live across every screen the same afternoon.\",\n      name: \"Sam Okafor\",\n      role: \"Design Lead, Fieldwork\",\n      initials: \"SO\",\n      avatar: \"https://i.pravatar.cc/120?img=32\",\n    },\n  ];\n\n  const active = ref(0);\n  const paused = ref(false);\n\n  let timer: ReturnType<typeof setInterval> | undefined;\n  onMounted(() => {\n    timer = setInterval(() => {\n      if (!paused.value) active.value = (active.value + 1) % quotes.length;\n    }, 5000);\n  });\n  onBeforeUnmount(() => clearInterval(timer));\n\n  const Schema = object({\n    name: string().required().label(\"Name\").min(3).max(50),\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n</script>\n","category":"SignUp","description":"Split screen sign up with a rotating testimonial panel. Features: Form on the left, brand panel on the right that cycles through customer quotes every few seconds with clickable dots, pauses on hover, hides on mobile","path":"SignUp/BlockSignUpSplitCarousel.vue","components":["avatar","button","vee-input","vee-password-input"]},{"name":"Sign Up Split Mockup","fileName":"BlockSignUpSplitMockup.vue","file":"<template>\n  <!--\n    Split screen sign up with a product mockup\n    Features: Form on the left, brand panel on the right with a partial app preview built from cards, headline and benefit list, panel hides on mobile\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-[minmax(0,1fr)_minmax(0,1.15fr)]\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Sign up</h1>\n            <p class=\"text-muted-foreground\">Create your account in under a minute.</p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <UiVeeInput required label=\"Name\" name=\"name\" placeholder=\"Jane Doe\" />\n              <UiVeeInput\n                required\n                label=\"Email\"\n                type=\"email\"\n                name=\"email\"\n                placeholder=\"you@example.com\"\n              />\n              <UiVeePasswordInput\n                required\n                label=\"Password\"\n                name=\"password\"\n                placeholder=\"Create a password\"\n                hint=\"Must be at least 8 characters.\"\n              />\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Create account\" />\n              <UiDivider label=\"or sign up with\" />\n              <div class=\"grid grid-cols-2 gap-3\">\n                <UiButton variant=\"outline\" type=\"button\" @click=\"social('Google')\">\n                  <Icon class=\"size-4\" name=\"logos:google-icon\" />\n                  Google\n                </UiButton>\n                <UiButton variant=\"outline\" type=\"button\" @click=\"social('GitHub')\">\n                  <Icon class=\"size-4\" name=\"mdi:github\" />\n                  GitHub\n                </UiButton>\n              </div>\n            </fieldset>\n          </form>\n\n          <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n            Already have an account?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Log in\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div\n      class=\"bg-primary text-primary-foreground relative hidden flex-col justify-between overflow-hidden pt-16 pl-14 lg:flex\"\n    >\n      <div\n        class=\"bg-primary-foreground/10 absolute -top-20 -left-20 size-80 rounded-full blur-3xl\"\n      />\n      <div class=\"relative max-w-md pr-14\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance\">\n          Start shipping in minutes, not weeks.\n        </h2>\n        <ul class=\"text-primary-foreground/80 mt-5 grid gap-2.5\">\n          <li v-for=\"item in benefits\" :key=\"item\" class=\"flex items-center gap-2.5\">\n            <Icon name=\"lucide:circle-check\" class=\"size-5 shrink-0\" />\n            {{ item }}\n          </li>\n        </ul>\n      </div>\n\n      <div class=\"bg-background text-foreground relative mt-12 rounded-tl-2xl border shadow-2xl\">\n        <div class=\"flex items-center gap-1.5 border-b px-4 py-3\">\n          <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n          <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n          <span class=\"bg-muted-foreground/30 size-2.5 rounded-full\" />\n          <span class=\"text-muted-foreground ml-3 text-xs\">Projects</span>\n        </div>\n        <div class=\"grid gap-3 p-5 pb-8\">\n          <div\n            v-for=\"project in projects\"\n            :key=\"project.name\"\n            class=\"flex items-center gap-4 rounded-lg border p-4\"\n          >\n            <span class=\"bg-muted flex size-10 items-center justify-center rounded-lg\">\n              <Icon :name=\"project.icon\" class=\"size-5\" />\n            </span>\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"text-sm font-medium\">{{ project.name }}</p>\n              <div class=\"bg-muted mt-2 h-1.5 overflow-hidden rounded-full\">\n                <div\n                  class=\"bg-primary h-full rounded-full\"\n                  :style=\"{ width: `${project.progress}%` }\"\n                />\n              </div>\n            </div>\n            <span class=\"text-muted-foreground text-xs\">{{ project.progress }}%</span>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const benefits = [\"Free for 14 days\", \"No credit card required\", \"Cancel anytime\"];\n  const projects = [\n    { name: \"Website redesign\", icon: \"lucide:layout-template\", progress: 82 },\n    { name: \"Mobile app\", icon: \"lucide:smartphone\", progress: 54 },\n    { name: \"Design system\", icon: \"lucide:blocks\", progress: 91 },\n    { name: \"Launch campaign\", icon: \"lucide:megaphone\", progress: 33 },\n  ];\n\n  const Schema = object({\n    name: string().required().label(\"Name\").min(3).max(50),\n    email: string().email().required().label(\"Email\"),\n    password: string().required().label(\"Password\").min(8),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n\n  const social = (provider: string) => {\n    useSonner(`Continue with ${provider}`, {\n      description: \"Wire this up to your auth provider.\",\n    });\n  };\n</script>\n","category":"SignUp","description":"Split screen sign up with a product mockup. Features: Form on the left, brand panel on the right with a partial app preview built from cards, headline and benefit list, panel hides on mobile","path":"SignUp/BlockSignUpSplitMockup.vue","components":["button","divider","vee-input","vee-password-input"]},{"name":"Sign Up Split Quote","fileName":"BlockSignUpSplitQuote.vue","file":"<template>\n  <!--\n    Split screen sign up with a customer quote\n    Features: Form on the left, brand colored panel on the right with a testimonial, avatar, role and star rating, panel hides on mobile\n  -->\n  <div class=\"grid min-h-screen lg:grid-cols-2\">\n    <div class=\"flex flex-col px-6 py-8 sm:px-10\">\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <svg\n          class=\"fill-primary h-6\"\n          viewBox=\"0 0 53 44\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M23.2997 0L52.0461 28.6301V44H38.6311V34.1553L17.7522 13.3607L13.415 13.3607L13.415 44H0L0 0L23.2997 0ZM38.6311 15.2694V0L52.0461 0V15.2694L38.6311 15.2694Z\"\n          />\n        </svg>\n        UI Thing\n      </div>\n\n      <div class=\"flex flex-1 items-center justify-center py-10\">\n        <div class=\"w-full max-w-sm\">\n          <div class=\"space-y-1.5\">\n            <h1 class=\"text-2xl font-bold tracking-tight lg:text-3xl\">Create your account</h1>\n            <p class=\"text-muted-foreground\">Free for 14 days. No credit card required.</p>\n          </div>\n\n          <form class=\"mt-8\" @submit=\"submit\">\n            <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n              <div class=\"grid gap-5 sm:grid-cols-2\">\n                <UiVeeInput required label=\"First name\" name=\"firstName\" placeholder=\"Jane\" />\n                <UiVeeInput required label=\"Last name\" name=\"lastName\" placeholder=\"Doe\" />\n              </div>\n              <UiVeeInput\n                required\n                label=\"Work email\"\n                type=\"email\"\n                name=\"email\"\n                placeholder=\"you@company.com\"\n              />\n              <UiVeePasswordInput\n                required\n                label=\"Password\"\n                name=\"password\"\n                placeholder=\"Create a password\"\n                hint=\"Must be at least 8 characters.\"\n              />\n              <UiVeeCheckbox\n                name=\"terms\"\n                label=\"I agree to the Terms of Service and Privacy Policy\"\n              />\n              <UiButton class=\"w-full\" type=\"submit\" text=\"Create account\" />\n              <UiButton variant=\"outline\" type=\"button\" @click=\"signUpWithGoogle()\">\n                <Icon class=\"size-4\" name=\"logos:google-icon\" />\n                Sign up with Google\n              </UiButton>\n            </fieldset>\n          </form>\n\n          <p class=\"text-muted-foreground mt-8 text-center text-sm\">\n            Already have an account?\n            <NuxtLink\n              class=\"text-foreground font-semibold underline-offset-4 hover:underline\"\n              to=\"#\"\n            >\n              Log in\n            </NuxtLink>\n          </p>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">&copy; UI Thing. All rights reserved.</p>\n    </div>\n\n    <div\n      class=\"bg-primary text-primary-foreground relative hidden flex-col justify-end overflow-hidden p-12 lg:flex\"\n    >\n      <div\n        class=\"bg-primary-foreground/10 absolute -top-24 -right-24 size-96 rounded-full blur-3xl\"\n      />\n      <div\n        class=\"bg-primary-foreground/10 absolute -bottom-32 -left-16 size-80 rounded-full blur-3xl\"\n      />\n      <div class=\"relative mb-6 flex gap-1\">\n        <Icon v-for=\"n in 5\" :key=\"n\" name=\"lucide:star\" class=\"size-5 fill-current\" />\n      </div>\n      <blockquote class=\"relative max-w-xl text-2xl leading-snug font-medium text-balance\">\n        {{ quote.text }}\n      </blockquote>\n      <figcaption class=\"relative mt-8 flex items-center gap-3\">\n        <UiAvatar class=\"size-11\" :src=\"quote.avatar\" :fallback=\"quote.initials\" />\n        <div>\n          <p class=\"font-semibold\">{{ quote.name }}</p>\n          <p class=\"text-primary-foreground/70 text-sm\">{{ quote.role }}</p>\n        </div>\n      </figcaption>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  import { boolean, object, string } from \"yup\";\n  import type { InferType } from \"yup\";\n\n  const quote = {\n    text: \"Setting up took ten minutes. The team was shipping real screens by the end of the first day.\",\n    name: \"Liam Carter\",\n    role: \"Engineering Lead, Northwind\",\n    initials: \"LC\",\n    avatar: \"https://i.pravatar.cc/120?img=12\",\n  };\n\n  const Schema = object({\n    firstName: string().required().label(\"First name\"),\n    lastName: string().required().label(\"Last name\"),\n    email: string().email().required().label(\"Work email\"),\n    password: string().required().label(\"Password\").min(8),\n    terms: boolean().oneOf([true], \"You must accept the terms\").label(\"Terms\"),\n  });\n\n  const { handleSubmit, isSubmitting } = useForm<InferType<typeof Schema>>({\n    validationSchema: Schema,\n  });\n\n  const submit = handleSubmit(async (_) => {\n    useSonner(\"Account created!\", {\n      description: \"You have successfully created an account.\",\n    });\n  });\n\n  const signUpWithGoogle = () => {\n    useSonner(\"Sign up with Google\", {\n      description: \"Wire this up to your auth provider.\",\n    });\n  };\n</script>\n","category":"SignUp","description":"Split screen sign up with a customer quote. Features: Form on the left, brand colored panel on the right with a testimonial, avatar, role and star rating, panel hides on mobile","path":"SignUp/BlockSignUpSplitQuote.vue","components":["avatar","button","vee-checkbox","vee-input","vee-password-input"]},{"name":"Social Proof 1","fileName":"BlockSocialProof1.vue","file":"<template>\n  <!--\n    Trusted by row of company wordmarks\n    Features: Centered label above a row of wordmark logos that fade in on scroll, muted by default and full strength on hover, wraps on small screens\n  -->\n  <UiContainer class=\"py-16 lg:py-20\">\n    <Motion\n      :initial=\"{ opacity: 0, y: 12 }\"\n      :while-in-view=\"{ opacity: 1, y: 0 }\"\n      :in-view-options=\"{ once: true }\"\n      :transition=\"{ duration: 0.5 }\"\n    >\n      <p class=\"text-muted-foreground text-center text-sm font-medium\">{{ props.title }}</p>\n      <ul class=\"mt-8 flex flex-wrap items-center justify-center gap-x-10 gap-y-6 lg:gap-x-14\">\n        <li\n          v-for=\"logo in props.logos\"\n          :key=\"logo.name\"\n          class=\"text-muted-foreground hover:text-foreground flex items-center gap-2 text-xl font-semibold transition-colors\"\n        >\n          <Icon :name=\"logo.icon\" class=\"size-6\" />\n          {{ logo.name }}\n        </li>\n      </ul>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Logo = { name: string; icon: string };\n\n  const props = withDefaults(defineProps<{ title?: string; logos?: Logo[] }>(), {\n    title: \"Trusted by teams at 4,000+ companies\",\n    logos: () => [\n      { name: \"Acme\", icon: \"lucide:hexagon\" },\n      { name: \"Northwind\", icon: \"lucide:compass\" },\n      { name: \"Vertex\", icon: \"lucide:triangle\" },\n      { name: \"Lumen\", icon: \"lucide:sun\" },\n      { name: \"Orbit\", icon: \"lucide:orbit\" },\n      { name: \"Pulse\", icon: \"lucide:activity\" },\n    ],\n  });\n</script>\n","category":"SocialProof","description":"Trusted by row of company wordmarks. Features: Centered label above a row of wordmark logos that fade in on scroll, muted by default and full strength on hover, wraps on small screens","path":"SocialProof/BlockSocialProof1.vue","components":["container"]},{"name":"Social Proof 10","fileName":"BlockSocialProof10.vue","file":"<template>\n  <!--\n    Logo wall that reveals a result on hover\n    Features: Grid of customer cards where the logo slides up to reveal a one line outcome on hover or keyboard focus, always visible on touch screens\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <ul class=\"mt-12 grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n      <li v-for=\"item in props.customers\" :key=\"item.name\">\n        <a\n          href=\"#\"\n          class=\"group bg-card hover:border-primary/40 focus-visible:ring-ring relative flex h-40 flex-col justify-between overflow-hidden rounded-2xl border p-6 transition-all outline-none hover:shadow-md focus-visible:ring-2\"\n        >\n          <span class=\"flex items-center gap-2 text-xl font-semibold\">\n            <Icon :name=\"item.icon\" class=\"size-6\" />\n            {{ item.name }}\n          </span>\n          <span class=\"flex items-end justify-between gap-4\">\n            <span class=\"max-w-52 text-sm\">\n              <span class=\"text-primary block text-2xl font-bold tracking-tight\">{{\n                item.stat\n              }}</span>\n              <span class=\"text-muted-foreground\">{{ item.result }}</span>\n            </span>\n            <Icon\n              name=\"lucide:arrow-up-right\"\n              class=\"text-muted-foreground size-5 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5\"\n            />\n          </span>\n        </a>\n      </li>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Customer = { name: string; icon: string; stat: string; result: string };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; customers?: Customer[] }>(),\n    {\n      title: \"Real results from real teams\",\n      description: \"A few of the outcomes our customers are proud of.\",\n      customers: () => [\n        {\n          name: \"Northwind\",\n          icon: \"lucide:compass\",\n          stat: \"42%\",\n          result: \"faster sprint planning\",\n        },\n        {\n          name: \"Vertex\",\n          icon: \"lucide:triangle\",\n          stat: \"5x\",\n          result: \"quicker engineer onboarding\",\n        },\n        { name: \"Lumen\", icon: \"lucide:sun\", stat: \"-33%\", result: \"fewer support tickets\" },\n        {\n          name: \"Orbit\",\n          icon: \"lucide:orbit\",\n          stat: \"$1.2M\",\n          result: \"saved on tooling each year\",\n        },\n        {\n          name: \"Pulse\",\n          icon: \"lucide:activity\",\n          stat: \"99.99%\",\n          result: \"uptime across launches\",\n        },\n        {\n          name: \"Nimbus\",\n          icon: \"lucide:cloud\",\n          stat: \"3 weeks\",\n          result: \"from pilot to company wide\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"SocialProof","description":"Logo wall that reveals a result on hover. Features: Grid of customer cards where the logo slides up to reveal a one line outcome on hover or keyboard focus, always visible on touch screens","path":"SocialProof/BlockSocialProof10.vue","components":["container"]},{"name":"Social Proof 11","fileName":"BlockSocialProof11.vue","file":"<template>\n  <!--\n    Trust and security badges\n    Features: Row of compliance and reliability badges with fancy icons, a short claim under each, and a link to the trust center\n  -->\n  <UiContainer class=\"py-16 lg:py-20\">\n    <div class=\"bg-muted/40 rounded-3xl border p-8 sm:p-12\">\n      <div class=\"flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-end\">\n        <div class=\"max-w-xl\">\n          <h2 class=\"text-2xl font-bold tracking-tight text-balance sm:text-3xl\">\n            {{ props.title }}\n          </h2>\n          <p class=\"text-muted-foreground mt-2\">{{ props.description }}</p>\n        </div>\n        <UiButton variant=\"outline\">\n          Visit trust center\n          <Icon name=\"lucide:arrow-up-right\" class=\"size-4\" />\n        </UiButton>\n      </div>\n      <ul class=\"mt-10 grid gap-6 sm:grid-cols-2 lg:grid-cols-4\">\n        <Motion\n          v-for=\"(badge, i) in props.badges\"\n          :key=\"badge.title\"\n          as=\"li\"\n          :initial=\"{ opacity: 0, y: 14 }\"\n          :while-in-view=\"{ opacity: 1, y: 0 }\"\n          :in-view-options=\"{ once: true }\"\n          :transition=\"{ duration: 0.4, delay: i * 0.08 }\"\n          class=\"bg-card rounded-2xl border p-5\"\n        >\n          <UiFancyIcon :icon=\"badge.icon\" theme=\"modern\" :color=\"badge.color\" />\n          <p class=\"mt-4 font-semibold\">{{ badge.title }}</p>\n          <p class=\"text-muted-foreground mt-1 text-sm\">{{ badge.text }}</p>\n        </Motion>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Badge = {\n    title: string;\n    text: string;\n    icon: string;\n    color: \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; badges?: Badge[] }>(),\n    {\n      title: \"Built to be trusted\",\n      description: \"Security and reliability are table stakes. Here is what we hold ourselves to.\",\n      badges: () => [\n        {\n          title: \"SOC 2 Type II\",\n          text: \"Audited every year by an independent firm.\",\n          icon: \"lucide:shield-check\",\n          color: \"success\",\n        },\n        {\n          title: \"GDPR ready\",\n          text: \"Data processing agreements and EU hosting.\",\n          icon: \"lucide:lock-keyhole\",\n          color: \"info\",\n        },\n        {\n          title: \"99.99% uptime\",\n          text: \"Backed by a public status page and SLA.\",\n          icon: \"lucide:activity\",\n          color: \"warning\",\n        },\n        {\n          title: \"Single sign on\",\n          text: \"SAML, SCIM and audit logs on every plan.\",\n          icon: \"lucide:key-round\",\n          color: \"primary\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"SocialProof","description":"Trust and security badges. Features: Row of compliance and reliability badges with fancy icons, a short claim under each, and a link to the trust center","path":"SocialProof/BlockSocialProof11.vue","components":["button","container","fancy-icon"]},{"name":"Social Proof 12","fileName":"BlockSocialProof12.vue","file":"<template>\n  <!--\n    Live activity feed with rotating customer events\n    Features: Card that cycles through recent signups and upgrades with an animated swap, relative timestamps, a pulsing live dot and a heading with supporting copy\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"grid items-center gap-10 lg:grid-cols-2 lg:gap-16\">\n      <div>\n        <p class=\"text-primary flex items-center gap-2 text-sm font-semibold\">\n          <span class=\"relative flex size-2\">\n            <span\n              class=\"bg-primary absolute inline-flex size-full animate-ping rounded-full opacity-60\"\n            />\n            <span class=\"bg-primary relative inline-flex size-2 rounded-full\" />\n          </span>\n          Happening now\n        </p>\n        <h2 class=\"mt-3 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-4 text-lg\">{{ props.description }}</p>\n      </div>\n\n      <UiCard class=\"shadow-sm\">\n        <UiCardContent class=\"p-0\">\n          <TransitionGroup\n            tag=\"ul\"\n            class=\"relative divide-y\"\n            aria-live=\"polite\"\n            move-class=\"transition-transform duration-500\"\n            enter-active-class=\"transition duration-500\"\n            enter-from-class=\"-translate-y-4 opacity-0\"\n            leave-active-class=\"absolute inset-x-0 transition duration-300\"\n            leave-to-class=\"opacity-0\"\n          >\n            <li\n              v-for=\"(event, i) in visible\"\n              :key=\"event.id\"\n              class=\"bg-card flex items-center gap-4 p-5 transition-opacity duration-500\"\n              :class=\"i === 0 ? 'opacity-100' : i === 1 ? 'opacity-70' : 'opacity-40'\"\n            >\n              <UiAvatar :src=\"event.avatar\" :fallback=\"event.name[0]\" class=\"size-10\" />\n              <p class=\"min-w-0 flex-1 text-sm\">\n                <span class=\"font-semibold\">{{ event.name }}</span>\n                <span class=\"text-muted-foreground\"> from {{ event.city }} {{ event.action }}</span>\n              </p>\n              <UiBadge variant=\"secondary\" class=\"shrink-0\">{{ event.time }}</UiBadge>\n            </li>\n          </TransitionGroup>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = { name: string; city: string; action: string; avatar: string };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; events?: Event[] }>(),\n    {\n      title: \"New teams join every hour\",\n      description: \"Someone, somewhere, just started building with us. Here is a live look.\",\n      events: () => [\n        {\n          name: \"Maya\",\n          city: \"Berlin\",\n          action: \"upgraded to Pro\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n        },\n        {\n          name: \"Liam\",\n          city: \"Toronto\",\n          action: \"invited 12 teammates\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n        },\n        {\n          name: \"Priya\",\n          city: \"Mumbai\",\n          action: \"launched a new project\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n        },\n        {\n          name: \"Noah\",\n          city: \"Lisbon\",\n          action: \"started a free trial\",\n          avatar: \"https://i.pravatar.cc/80?img=53\",\n        },\n        {\n          name: \"Sam\",\n          city: \"Austin\",\n          action: \"connected Slack\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n        },\n        {\n          name: \"Ana\",\n          city: \"São Paulo\",\n          action: \"upgraded to Team\",\n          avatar: \"https://i.pravatar.cc/80?img=44\",\n        },\n      ],\n    }\n  );\n\n  const times = [\"just now\", \"1m ago\", \"3m ago\"];\n  const start = ref(0);\n  const visible = computed(() =>\n    Array.from({ length: 3 }, (_, i) => {\n      const event = props.events[(start.value + i) % props.events.length]!;\n      return { ...event, id: (start.value + i) % props.events.length, time: times[i]! };\n    })\n  );\n\n  useIntervalFn(() => {\n    start.value = (start.value + props.events.length - 1) % props.events.length;\n  }, 3200);\n</script>\n","category":"SocialProof","description":"Live activity feed with rotating customer events. Features: Card that cycles through recent signups and upgrades with an animated swap, relative timestamps, a pulsing live dot and a heading with supporting copy","path":"SocialProof/BlockSocialProof12.vue","components":["avatar","badge","card","container"]},{"name":"Social Proof 2","fileName":"BlockSocialProof2.vue","file":"<template>\n  <!--\n    Bordered logo grid with a heading\n    Features: Heading and supporting copy above a grid of hairline bordered logo cells that stagger in and lift their logo on hover, two columns on mobile and four on desktop\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <ul class=\"mt-12 grid grid-cols-2 overflow-hidden rounded-2xl border md:grid-cols-4\">\n      <Motion\n        v-for=\"(logo, i) in props.logos\"\n        :key=\"logo.name\"\n        as=\"li\"\n        :initial=\"{ opacity: 0 }\"\n        :while-in-view=\"{ opacity: 1 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.4, delay: i * 0.05 }\"\n        class=\"group bg-card relative flex h-28 items-center justify-center border-r border-b p-6 [&:nth-child(2n)]:max-md:border-r-0 md:[&:nth-child(4n)]:border-r-0 max-md:[&:nth-last-child(-n+2)]:border-b-0 md:[&:nth-last-child(-n+4)]:border-b-0\"\n      >\n        <span\n          class=\"text-muted-foreground group-hover:text-foreground flex items-center gap-2 text-xl font-semibold transition-all duration-300 group-hover:-translate-y-0.5\"\n        >\n          <Icon :name=\"logo.icon\" class=\"size-6\" />\n          {{ logo.name }}\n        </span>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Logo = { name: string; icon: string };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; logos?: Logo[] }>(),\n    {\n      title: \"Trusted by industry leaders\",\n      description: \"Over 4,000 teams use us to plan, ship and grow.\",\n      logos: () => [\n        { name: \"Acme\", icon: \"lucide:hexagon\" },\n        { name: \"Northwind\", icon: \"lucide:compass\" },\n        { name: \"Vertex\", icon: \"lucide:triangle\" },\n        { name: \"Lumen\", icon: \"lucide:sun\" },\n        { name: \"Orbit\", icon: \"lucide:orbit\" },\n        { name: \"Pulse\", icon: \"lucide:activity\" },\n        { name: \"Nimbus\", icon: \"lucide:cloud\" },\n        { name: \"Quanta\", icon: \"lucide:atom\" },\n      ],\n    }\n  );\n</script>\n","category":"SocialProof","description":"Bordered logo grid with a heading. Features: Heading and supporting copy above a grid of hairline bordered logo cells that stagger in and lift their logo on hover, two columns on mobile and four on desktop","path":"SocialProof/BlockSocialProof2.vue","components":["container"]},{"name":"Social Proof 3","fileName":"BlockSocialProof3.vue","file":"<template>\n  <!--\n    Split section with key numbers and a logo grid\n    Features: Heading with three fancy icon highlights on one side and a two column grid of logo tiles on the other, tiles lift on hover\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"grid items-center gap-12 lg:grid-cols-2 lg:gap-16\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-4 text-lg\">{{ props.description }}</p>\n        <ul class=\"mt-8 space-y-5\">\n          <li v-for=\"item in props.highlights\" :key=\"item.title\" class=\"flex items-center gap-4\">\n            <UiFancyIcon :icon=\"item.icon\" theme=\"light\" :color=\"item.color\" />\n            <div>\n              <p class=\"font-semibold\">{{ item.title }}</p>\n              <p class=\"text-muted-foreground text-sm\">{{ item.text }}</p>\n            </div>\n          </li>\n        </ul>\n      </div>\n      <ul class=\"grid grid-cols-2 gap-4\">\n        <li\n          v-for=\"logo in props.logos\"\n          :key=\"logo.name\"\n          class=\"bg-muted/50 text-muted-foreground hover:bg-muted hover:text-foreground flex h-24 items-center justify-center gap-2 rounded-xl text-lg font-semibold transition-all hover:-translate-y-0.5\"\n        >\n          <Icon :name=\"logo.icon\" class=\"size-6\" />\n          {{ logo.name }}\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Logo = { name: string; icon: string };\n  type Highlight = {\n    title: string;\n    text: string;\n    icon: string;\n    color: \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      highlights?: Highlight[];\n      logos?: Logo[];\n    }>(),\n    {\n      title: \"Join thousands of happy customers\",\n      description:\n        \"See why leading companies choose our platform to move faster and reach their goals sooner.\",\n      highlights: () => [\n        {\n          title: \"50,000+ active users\",\n          text: \"A growing community of professionals\",\n          icon: \"lucide:users\",\n          color: \"info\",\n        },\n        {\n          title: \"4.9 out of 5 rating\",\n          text: \"Based on 2,000+ verified reviews\",\n          icon: \"lucide:star\",\n          color: \"warning\",\n        },\n        {\n          title: \"Award winning support\",\n          text: \"Real people, replies within the hour\",\n          icon: \"lucide:award\",\n          color: \"success\",\n        },\n      ],\n      logos: () => [\n        { name: \"Acme\", icon: \"lucide:hexagon\" },\n        { name: \"Northwind\", icon: \"lucide:compass\" },\n        { name: \"Vertex\", icon: \"lucide:triangle\" },\n        { name: \"Lumen\", icon: \"lucide:sun\" },\n        { name: \"Orbit\", icon: \"lucide:orbit\" },\n        { name: \"Pulse\", icon: \"lucide:activity\" },\n      ],\n    }\n  );\n</script>\n","category":"SocialProof","description":"Split section with key numbers and a logo grid. Features: Heading with three fancy icon highlights on one side and a two column grid of logo tiles on the other, tiles lift on hover","path":"SocialProof/BlockSocialProof3.vue","components":["container","fancy-icon"]},{"name":"Social Proof 4","fileName":"BlockSocialProof4.vue","file":"<template>\n  <!--\n    Testimonial cards with a rating summary and logo strip\n    Features: Overall rating with review count, three quote cards with stars, avatars and roles, and a muted row of customer wordmarks underneath\n  -->\n  <section class=\"bg-muted/40 py-16 lg:py-24\">\n    <UiContainer>\n      <div class=\"mx-auto max-w-2xl text-center\">\n        <p class=\"text-primary text-sm font-semibold tracking-wide uppercase\">Testimonials</p>\n        <h2 class=\"mt-2 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <div class=\"mt-4 flex items-center justify-center gap-2 text-sm\">\n          <UiRating\n            :model-value=\"props.rating\"\n            size=\"sm\"\n            icon=\"mdi:star\"\n            filled-icon-class-name=\"text-amber-400\"\n          />\n          <span class=\"font-semibold\">{{ props.rating }} out of 5</span>\n          <span class=\"text-muted-foreground\">({{ props.reviews }} reviews)</span>\n        </div>\n      </div>\n\n      <div class=\"mt-12 grid gap-6 md:grid-cols-3\">\n        <Motion\n          v-for=\"(quote, i) in props.quotes\"\n          :key=\"quote.name\"\n          :initial=\"{ opacity: 0, y: 20 }\"\n          :while-in-view=\"{ opacity: 1, y: 0 }\"\n          :in-view-options=\"{ once: true }\"\n          :transition=\"{ duration: 0.5, delay: i * 0.1 }\"\n        >\n          <UiCard class=\"h-full\">\n            <UiCardContent class=\"flex h-full flex-col gap-5\">\n              <UiRating\n                :model-value=\"5\"\n                size=\"sm\"\n                icon=\"mdi:star\"\n                filled-icon-class-name=\"text-amber-400\"\n              />\n              <blockquote class=\"flex-1 leading-relaxed\">“{{ quote.text }}”</blockquote>\n              <div class=\"flex items-center gap-3\">\n                <UiAvatar :src=\"quote.avatar\" :fallback=\"quote.name[0]\" />\n                <div>\n                  <p class=\"text-sm font-semibold\">{{ quote.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">{{ quote.role }}</p>\n                </div>\n              </div>\n            </UiCardContent>\n          </UiCard>\n        </Motion>\n      </div>\n\n      <div class=\"mt-14\">\n        <p class=\"text-muted-foreground text-center text-sm\">Trusted by leading teams worldwide</p>\n        <ul class=\"mt-6 flex flex-wrap items-center justify-center gap-x-10 gap-y-4\">\n          <li\n            v-for=\"logo in props.logos\"\n            :key=\"logo.name\"\n            class=\"text-muted-foreground/70 flex items-center gap-2 text-lg font-semibold\"\n          >\n            <Icon :name=\"logo.icon\" class=\"size-5\" />\n            {{ logo.name }}\n          </li>\n        </ul>\n      </div>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  type Logo = { name: string; icon: string };\n  type Quote = { text: string; name: string; role: string; avatar: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      rating?: number;\n      reviews?: string;\n      quotes?: Quote[];\n      logos?: Logo[];\n    }>(),\n    {\n      title: \"What our customers say\",\n      rating: 4.9,\n      reviews: \"2,458\",\n      quotes: () => [\n        {\n          text: \"It changed how our whole team works. Everything is where we expect it to be and nothing gets lost.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO at Northwind\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n        },\n        {\n          text: \"Best investment we made this year. Planning time is down by 40% and our releases are calmer.\",\n          name: \"Michael Chen\",\n          role: \"CTO at Vertex\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n        },\n        {\n          text: \"Outstanding support and constant improvements. They clearly care about the people using it.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Product at Lumen\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n        },\n      ],\n      logos: () => [\n        { name: \"Acme\", icon: \"lucide:hexagon\" },\n        { name: \"Orbit\", icon: \"lucide:orbit\" },\n        { name: \"Pulse\", icon: \"lucide:activity\" },\n        { name: \"Nimbus\", icon: \"lucide:cloud\" },\n        { name: \"Quanta\", icon: \"lucide:atom\" },\n      ],\n    }\n  );\n</script>\n","category":"SocialProof","description":"Testimonial cards with a rating summary and logo strip. Features: Overall rating with review count, three quote cards with stars, avatars and roles, and a muted row of customer wordmarks underneath","path":"SocialProof/BlockSocialProof4.vue","components":["avatar","card","container","rating"]},{"name":"Social Proof 5","fileName":"BlockSocialProof5.vue","file":"<template>\n  <!--\n    Infinite logo marquee with key numbers\n    Features: Endlessly scrolling wordmarks with edge fades that pause on hover and respect reduced motion, three headline numbers underneath\n  -->\n  <section class=\"overflow-hidden py-16 lg:py-24\">\n    <UiContainer>\n      <div class=\"mx-auto max-w-2xl text-center\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-3 text-lg\">{{ props.description }}</p>\n      </div>\n    </UiContainer>\n\n    <div\n      class=\"marquee mt-12 mask-[linear-gradient(to_right,transparent,black_12%,black_88%,transparent)]\"\n    >\n      <ul class=\"marquee-track flex w-max items-center gap-14 pr-14\">\n        <li\n          v-for=\"(logo, i) in [...props.logos, ...props.logos]\"\n          :key=\"`${logo.name}-${i}`\"\n          class=\"text-muted-foreground hover:text-foreground flex shrink-0 items-center gap-2 text-2xl font-semibold transition-colors\"\n          :aria-hidden=\"i >= props.logos.length\"\n        >\n          <Icon :name=\"logo.icon\" class=\"size-7\" />\n          {{ logo.name }}\n        </li>\n      </ul>\n    </div>\n\n    <UiContainer>\n      <dl class=\"mt-14 grid gap-8 text-center sm:grid-cols-3\">\n        <div v-for=\"stat in props.stats\" :key=\"stat.label\" class=\"flex flex-col-reverse gap-1\">\n          <dt class=\"text-muted-foreground text-sm\">{{ stat.label }}</dt>\n          <dd class=\"text-4xl font-bold tracking-tight\">{{ stat.value }}</dd>\n        </div>\n      </dl>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  type Logo = { name: string; icon: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      logos?: Logo[];\n      stats?: { value: string; label: string }[];\n    }>(),\n    {\n      title: \"Powering teams of every size\",\n      description: \"From two person startups to global enterprises.\",\n      logos: () => [\n        { name: \"Acme\", icon: \"lucide:hexagon\" },\n        { name: \"Northwind\", icon: \"lucide:compass\" },\n        { name: \"Vertex\", icon: \"lucide:triangle\" },\n        { name: \"Lumen\", icon: \"lucide:sun\" },\n        { name: \"Orbit\", icon: \"lucide:orbit\" },\n        { name: \"Pulse\", icon: \"lucide:activity\" },\n        { name: \"Nimbus\", icon: \"lucide:cloud\" },\n        { name: \"Quanta\", icon: \"lucide:atom\" },\n      ],\n      stats: () => [\n        { value: \"10,000+\", label: \"Companies worldwide\" },\n        { value: \"5M+\", label: \"Monthly active users\" },\n        { value: \"99.9%\", label: \"Customer satisfaction\" },\n      ],\n    }\n  );\n</script>\n\n<style scoped>\n  .marquee-track {\n    animation: marquee-scroll 40s linear infinite;\n  }\n  .marquee:hover .marquee-track {\n    animation-play-state: paused;\n  }\n  @keyframes marquee-scroll {\n    to {\n      transform: translateX(-50%);\n    }\n  }\n  @media (prefers-reduced-motion: reduce) {\n    .marquee-track {\n      animation: none;\n    }\n  }\n</style>\n","category":"SocialProof","description":"Infinite logo marquee with key numbers. Features: Endlessly scrolling wordmarks with edge fades that pause on hover and respect reduced motion, three headline numbers underneath","path":"SocialProof/BlockSocialProof5.vue","components":["container"]},{"name":"Social Proof 6","fileName":"BlockSocialProof6.vue","file":"<template>\n  <!--\n    Two row marquee scrolling in opposite directions\n    Features: Heading with a button, two rows of logo pills that drift in opposite directions with edge fades, pause on hover and stop for reduced motion\n  -->\n  <section class=\"overflow-hidden py-16 lg:py-24\">\n    <UiContainer>\n      <div class=\"mx-auto max-w-2xl text-center\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n        <UiButton class=\"mt-6\" variant=\"outline\">\n          Read customer stories\n          <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </UiContainer>\n\n    <div\n      class=\"marquee mt-12 space-y-4 mask-[linear-gradient(to_right,transparent,black_10%,black_90%,transparent)]\"\n    >\n      <ul\n        v-for=\"(row, r) in rows\"\n        :key=\"r\"\n        class=\"marquee-track flex w-max gap-4 pr-4\"\n        :class=\"r === 1 ? 'marquee-reverse' : ''\"\n      >\n        <li\n          v-for=\"(logo, i) in [...row, ...row]\"\n          :key=\"`${logo.name}-${i}`\"\n          class=\"bg-card text-muted-foreground flex shrink-0 items-center gap-2 rounded-full border px-5 py-3 text-lg font-semibold\"\n          :aria-hidden=\"i >= row.length\"\n        >\n          <Icon :name=\"logo.icon\" class=\"size-5\" />\n          {{ logo.name }}\n        </li>\n      </ul>\n    </div>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  type Logo = { name: string; icon: string };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; logos?: Logo[] }>(),\n    {\n      title: \"Loved by builders everywhere\",\n      description: \"Thousands of teams ship with us every day.\",\n      logos: () => [\n        { name: \"Acme\", icon: \"lucide:hexagon\" },\n        { name: \"Northwind\", icon: \"lucide:compass\" },\n        { name: \"Vertex\", icon: \"lucide:triangle\" },\n        { name: \"Lumen\", icon: \"lucide:sun\" },\n        { name: \"Orbit\", icon: \"lucide:orbit\" },\n        { name: \"Pulse\", icon: \"lucide:activity\" },\n        { name: \"Nimbus\", icon: \"lucide:cloud\" },\n        { name: \"Quanta\", icon: \"lucide:atom\" },\n        { name: \"Fable\", icon: \"lucide:book-open\" },\n        { name: \"Summit\", icon: \"lucide:mountain\" },\n        { name: \"Verdant\", icon: \"lucide:leaf\" },\n        { name: \"Bolt\", icon: \"lucide:zap\" },\n      ],\n    }\n  );\n\n  const half = Math.ceil(props.logos.length / 2);\n  const rows = [props.logos.slice(0, half), props.logos.slice(half)];\n</script>\n\n<style scoped>\n  .marquee-track {\n    animation: marquee-scroll 45s linear infinite;\n  }\n  .marquee-reverse {\n    animation-direction: reverse;\n  }\n  .marquee:hover .marquee-track {\n    animation-play-state: paused;\n  }\n  @keyframes marquee-scroll {\n    to {\n      transform: translateX(-50%);\n    }\n  }\n  @media (prefers-reduced-motion: reduce) {\n    .marquee-track {\n      animation: none;\n    }\n  }\n</style>\n","category":"SocialProof","description":"Two row marquee scrolling in opposite directions. Features: Heading with a button, two rows of logo pills that drift in opposite directions with edge fades, pause on hover and stop for reduced motion","path":"SocialProof/BlockSocialProof6.vue","components":["button","container"]},{"name":"Social Proof 7","fileName":"BlockSocialProof7.vue","file":"<template>\n  <!--\n    Compact rating strip with an avatar stack\n    Features: Overlapping reader avatars, a five star rating and a customer count in one tidy line, meant to sit under a hero call to action\n  -->\n  <UiContainer class=\"py-10\">\n    <Motion\n      :initial=\"{ opacity: 0, y: 10 }\"\n      :while-in-view=\"{ opacity: 1, y: 0 }\"\n      :in-view-options=\"{ once: true }\"\n      :transition=\"{ duration: 0.5 }\"\n      class=\"flex flex-col items-center justify-center gap-4 sm:flex-row sm:gap-6\"\n    >\n      <UiAvatarGroup>\n        <UiAvatar v-for=\"person in props.people\" :key=\"person.name\" class=\"size-10\">\n          <UiAvatarImage :src=\"person.avatar\" :alt=\"person.name\" />\n          <UiAvatarFallback>{{ person.name[0] }}</UiAvatarFallback>\n        </UiAvatar>\n        <span\n          class=\"bg-muted text-muted-foreground ring-background z-0 flex size-10 items-center justify-center rounded-full text-xs font-semibold ring-2\"\n        >\n          +{{ props.more }}\n        </span>\n      </UiAvatarGroup>\n      <div class=\"text-center sm:text-left\">\n        <div class=\"flex items-center justify-center gap-2 sm:justify-start\">\n          <UiRating\n            :model-value=\"props.rating\"\n            size=\"sm\"\n            icon=\"mdi:star\"\n            filled-icon-class-name=\"text-amber-400\"\n          />\n          <span class=\"text-sm font-semibold\">{{ props.rating }}</span>\n        </div>\n        <p class=\"text-muted-foreground text-sm\">{{ props.text }}</p>\n      </div>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      rating?: number;\n      text?: string;\n      more?: string;\n      people?: { name: string; avatar: string }[];\n    }>(),\n    {\n      rating: 4.9,\n      text: \"Loved by 12,000+ makers and teams\",\n      more: \"12k\",\n      people: () => [\n        { name: \"Maya\", avatar: \"https://i.pravatar.cc/80?img=47\" },\n        { name: \"Liam\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n        { name: \"Priya\", avatar: \"https://i.pravatar.cc/80?img=45\" },\n        { name: \"Sam\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n        { name: \"Noah\", avatar: \"https://i.pravatar.cc/80?img=53\" },\n      ],\n    }\n  );\n</script>\n","category":"SocialProof","description":"Compact rating strip with an avatar stack. Features: Overlapping reader avatars, a five star rating and a customer count in one tidy line, meant to sit under a hero call to action","path":"SocialProof/BlockSocialProof7.vue","components":["avatar","container","rating"]},{"name":"Social Proof 8","fileName":"BlockSocialProof8.vue","file":"<template>\n  <!--\n    Customer spotlight with a logo switcher\n    Features: Large featured quote with an outcome stat, logo buttons that switch the story with an animated crossfade, accessible tab semantics\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-4xl\">\n      <div\n        role=\"tablist\"\n        aria-label=\"Customer stories\"\n        class=\"flex flex-wrap items-center justify-center gap-2\"\n      >\n        <button\n          v-for=\"(story, i) in props.stories\"\n          :key=\"story.company\"\n          role=\"tab\"\n          type=\"button\"\n          :aria-selected=\"active === i\"\n          class=\"flex items-center gap-2 rounded-full border px-4 py-2 text-sm font-semibold transition-colors\"\n          :class=\"\n            active === i\n              ? 'border-primary bg-primary text-primary-foreground'\n              : 'text-muted-foreground hover:text-foreground'\n          \"\n          @click=\"active = i\"\n        >\n          <Icon :name=\"story.icon\" class=\"size-4\" />\n          {{ story.company }}\n        </button>\n      </div>\n\n      <div class=\"relative mt-10 min-h-80 sm:min-h-64\" role=\"tabpanel\">\n        <AnimatePresence mode=\"wait\">\n          <Motion\n            :key=\"current.company\"\n            :initial=\"{ opacity: 0, y: 12 }\"\n            :animate=\"{ opacity: 1, y: 0 }\"\n            :exit=\"{ opacity: 0, y: -12 }\"\n            :transition=\"{ duration: 0.25 }\"\n            class=\"grid items-center gap-8 md:grid-cols-[1fr_auto]\"\n          >\n            <figure>\n              <blockquote class=\"text-2xl leading-snug font-medium text-balance sm:text-3xl\">\n                “{{ current.quote }}”\n              </blockquote>\n              <figcaption class=\"mt-6 flex items-center gap-3\">\n                <UiAvatar :src=\"current.avatar\" :fallback=\"current.name[0]\" class=\"size-11\" />\n                <div>\n                  <p class=\"font-semibold\">{{ current.name }}</p>\n                  <p class=\"text-muted-foreground text-sm\">{{ current.role }}</p>\n                </div>\n              </figcaption>\n            </figure>\n            <div class=\"bg-muted/60 rounded-2xl p-6 text-center md:min-w-48\">\n              <p class=\"text-primary text-5xl font-bold tracking-tight\">{{ current.stat }}</p>\n              <p class=\"text-muted-foreground mt-1 text-sm\">{{ current.statLabel }}</p>\n            </div>\n          </Motion>\n        </AnimatePresence>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Story = {\n    company: string;\n    icon: string;\n    quote: string;\n    name: string;\n    role: string;\n    avatar: string;\n    stat: string;\n    statLabel: string;\n  };\n\n  const props = withDefaults(defineProps<{ stories?: Story[] }>(), {\n    stories: () => [\n      {\n        company: \"Northwind\",\n        icon: \"lucide:compass\",\n        quote:\n          \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n        name: \"Sarah Johnson\",\n        role: \"CEO at Northwind\",\n        avatar: \"https://i.pravatar.cc/80?img=47\",\n        stat: \"42%\",\n        statLabel: \"faster planning\",\n      },\n      {\n        company: \"Vertex\",\n        icon: \"lucide:triangle\",\n        quote:\n          \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n        name: \"Michael Chen\",\n        role: \"CTO at Vertex\",\n        avatar: \"https://i.pravatar.cc/80?img=12\",\n        stat: \"5x\",\n        statLabel: \"quicker onboarding\",\n      },\n      {\n        company: \"Lumen\",\n        icon: \"lucide:sun\",\n        quote:\n          \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n        name: \"Emily Rodriguez\",\n        role: \"Head of Support at Lumen\",\n        avatar: \"https://i.pravatar.cc/80?img=32\",\n        stat: \"-33%\",\n        statLabel: \"support tickets\",\n      },\n    ],\n  });\n\n  const active = ref(0);\n  const current = computed(() => props.stories[active.value]!);\n</script>\n","category":"SocialProof","description":"Customer spotlight with a logo switcher. Features: Large featured quote with an outcome stat, logo buttons that switch the story with an animated crossfade, accessible tab semantics","path":"SocialProof/BlockSocialProof8.vue","components":["avatar","container"]},{"name":"Social Proof 9","fileName":"BlockSocialProof9.vue","file":"<template>\n  <!--\n    Always dark logo cloud with a glow\n    Features: Dark panel that keeps its look in light and dark mode, heading on the left, two by four logo grid on the right, soft radial glow behind\n  -->\n  <UiContainer class=\"py-14 lg:py-20\">\n    <div\n      class=\"relative overflow-hidden rounded-3xl bg-neutral-950 px-6 py-14 text-white ring-1 ring-white/15 sm:px-12 lg:px-16\"\n    >\n      <div\n        class=\"pointer-events-none absolute -top-24 -left-24 size-96 rounded-full bg-indigo-500/30 blur-3xl\"\n        aria-hidden=\"true\"\n      />\n      <div class=\"relative grid items-center gap-10 lg:grid-cols-[1fr_1.2fr] lg:gap-16\">\n        <div>\n          <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n            {{ props.title }}\n          </h2>\n          <p class=\"mt-4 text-lg text-neutral-400\">{{ props.description }}</p>\n          <UiButton class=\"mt-6 bg-white text-neutral-950 hover:bg-white/90\">\n            Explore customers\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n        </div>\n        <ul class=\"grid grid-cols-2 gap-px overflow-hidden rounded-2xl bg-white/10 sm:grid-cols-4\">\n          <li\n            v-for=\"logo in props.logos\"\n            :key=\"logo.name\"\n            class=\"flex h-24 flex-col items-center justify-center gap-2 bg-neutral-950 text-neutral-400 transition-colors hover:bg-white/5 hover:text-white\"\n          >\n            <Icon :name=\"logo.icon\" class=\"size-6\" />\n            <span class=\"text-sm font-semibold\">{{ logo.name }}</span>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Logo = { name: string; icon: string };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; logos?: Logo[] }>(),\n    {\n      title: \"The teams behind the best products use us\",\n      description:\n        \"From early stage startups to public companies, we are the quiet part of great launches.\",\n      logos: () => [\n        { name: \"Acme\", icon: \"lucide:hexagon\" },\n        { name: \"Northwind\", icon: \"lucide:compass\" },\n        { name: \"Vertex\", icon: \"lucide:triangle\" },\n        { name: \"Lumen\", icon: \"lucide:sun\" },\n        { name: \"Orbit\", icon: \"lucide:orbit\" },\n        { name: \"Pulse\", icon: \"lucide:activity\" },\n        { name: \"Nimbus\", icon: \"lucide:cloud\" },\n        { name: \"Quanta\", icon: \"lucide:atom\" },\n      ],\n    }\n  );\n</script>\n","category":"SocialProof","description":"Always dark logo cloud with a glow. Features: Dark panel that keeps its look in light and dark mode, heading on the left, two by four logo grid on the right, soft radial glow behind","path":"SocialProof/BlockSocialProof9.vue","components":["button","container"]},{"name":"Sprint 1","fileName":"BlockSprint1.vue","file":"<template>\n  <!--\n    Sprint planning with backlog and sprint lists\n    Features: Backlog and current sprint side by side, move stories with buttons or by dragging between lists, capacity meter that warns when the sprint is overcommitted, story points and a start sprint action\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          Drag stories between lists, or use the buttons.\n        </p>\n      </div>\n      <UiButton\n        :disabled=\"!sprint.length || committed > capacity\"\n        @click=\"useSonner.success(`Sprint started with ${sprint.length} stories`)\"\n      >\n        <Icon name=\"lucide:play\" class=\"size-4\" />Start sprint\n      </UiButton>\n    </div>\n\n    <div class=\"mt-6 rounded-xl border p-4\">\n      <div class=\"flex items-center justify-between text-sm\">\n        <span class=\"font-medium\">Sprint capacity</span>\n        <span\n          :class=\"\n            committed > capacity\n              ? 'font-semibold text-red-600 dark:text-red-400'\n              : 'text-muted-foreground'\n          \"\n          aria-live=\"polite\"\n          >{{ committed }} / {{ capacity }} points<template v-if=\"committed > capacity\">\n            · over capacity</template\n          ></span\n        >\n      </div>\n      <UiProgress\n        :model-value=\"Math.min(100, (committed / capacity) * 100)\"\n        class=\"mt-2 h-2\"\n        :class=\"committed > capacity ? '[&>div]:bg-red-500' : ''\"\n        aria-label=\"Sprint capacity used\"\n      />\n    </div>\n\n    <div class=\"mt-6 grid gap-6 md:grid-cols-2\">\n      <section v-for=\"list in lists\" :key=\"list.id\" :aria-label=\"list.title\">\n        <h2 class=\"mb-2 flex items-center justify-between text-sm font-semibold\">\n          {{ list.title }}\n          <span class=\"text-muted-foreground font-normal\"\n            >{{ list.items.value.length }} stories · {{ points(list.items.value) }} pts</span\n          >\n        </h2>\n        <UiDraggable\n          v-model=\"list.items.value\"\n          group=\"sprint1\"\n          item-key=\"id\"\n          :animation=\"150\"\n          ghost-class=\"opacity-40\"\n          class=\"bg-muted/30 min-h-32 space-y-2 rounded-xl border border-dashed p-2\"\n        >\n          <template #item=\"{ element }\">\n            <article\n              class=\"bg-card flex cursor-grab items-center gap-3 rounded-lg border p-3 text-sm shadow-xs active:cursor-grabbing\"\n            >\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"font-medium\">{{ element.title }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ element.key }}</p>\n              </div>\n              <UiBadge variant=\"secondary\">{{ element.points }}</UiBadge>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"size-7\"\n                :aria-label=\"`${list.id === 'backlog' ? 'Add' : 'Remove'} ${element.title} ${list.id === 'backlog' ? 'to' : 'from'} the sprint`\"\n                @click=\"transfer(element, list.id)\"\n              >\n                <Icon\n                  :name=\"list.id === 'backlog' ? 'lucide:arrow-right' : 'lucide:arrow-left'\"\n                  class=\"size-4\"\n                />\n              </UiButton>\n            </article>\n          </template>\n        </UiDraggable>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Story = { id: string; key: string; title: string; points: number };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      capacity?: number;\n      backlog?: Story[];\n      current?: Story[];\n    }>(),\n    {\n      title: \"Sprint 25 planning\",\n      capacity: 20,\n      backlog: () => [\n        { id: \"b1\", key: \"WEB-201\", title: \"Single sign on with SAML\", points: 8 },\n        { id: \"b2\", key: \"WEB-205\", title: \"Bulk edit tasks\", points: 5 },\n        { id: \"b3\", key: \"WEB-209\", title: \"Improve search relevance\", points: 5 },\n        { id: \"b4\", key: \"WEB-214\", title: \"Keyboard shortcuts help\", points: 2 },\n        { id: \"b5\", key: \"WEB-218\", title: \"Export audit log\", points: 3 },\n      ],\n      current: () => [\n        { id: \"s1\", key: \"WEB-190\", title: \"Fix double charge on upgrade\", points: 3 },\n        { id: \"s2\", key: \"WEB-195\", title: \"Onboarding checklist\", points: 8 },\n      ],\n    }\n  );\n\n  const backlog = ref<Story[]>(props.backlog.map((story) => ({ ...story })));\n  const sprint = ref<Story[]>(props.current.map((story) => ({ ...story })));\n  const lists = [\n    { id: \"backlog\", title: \"Backlog\", items: backlog },\n    { id: \"sprint\", title: \"This sprint\", items: sprint },\n  ];\n\n  const points = (stories: Story[]) => stories.reduce((sum, story) => sum + story.points, 0);\n  const committed = computed(() => points(sprint.value));\n\n  function transfer(story: Story, from: string) {\n    if (from === \"backlog\") {\n      backlog.value = backlog.value.filter((item) => item.id !== story.id);\n      sprint.value.push(story);\n    } else {\n      sprint.value = sprint.value.filter((item) => item.id !== story.id);\n      backlog.value.push(story);\n    }\n  }\n</script>\n","category":"Sprint","description":"Sprint planning with backlog and sprint lists. Features: Backlog and current sprint side by side, move stories with buttons or by dragging between lists, capacity meter that warns when the sprint is overcommitted, story points and a start sprint action","path":"Tasks/Sprint/BlockSprint1.vue","components":["badge","button","container","draggable","progress"]},{"name":"Sprint 2","fileName":"BlockSprint2.vue","file":"<template>\n  <!--\n    Sprint board summary with burndown chart\n    Features: Sprint header with days remaining, points done and remaining, a burndown chart drawn in SVG with an ideal line and an actual line, a text alternative table and status counts\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\">\n            Day {{ day }} of {{ days }} · {{ days - day }} days left\n          </p>\n        </div>\n        <UiBadge variant=\"soft\" :color=\"onTrack ? 'green' : 'amber'\" shape=\"pill\">{{\n          onTrack ? \"On track\" : \"Behind plan\"\n        }}</UiBadge>\n      </div>\n\n      <dl class=\"mt-6 grid grid-cols-3 gap-3 text-center\">\n        <div class=\"rounded-xl border p-3\">\n          <dt class=\"text-muted-foreground text-xs\">Total</dt>\n          <dd class=\"text-2xl font-bold tabular-nums\">{{ total }}</dd>\n        </div>\n        <div class=\"rounded-xl border p-3\">\n          <dt class=\"text-muted-foreground text-xs\">Done</dt>\n          <dd class=\"text-2xl font-bold text-green-600 tabular-nums dark:text-green-400\">\n            {{ total - remaining }}\n          </dd>\n        </div>\n        <div class=\"rounded-xl border p-3\">\n          <dt class=\"text-muted-foreground text-xs\">Remaining</dt>\n          <dd class=\"text-2xl font-bold tabular-nums\">{{ remaining }}</dd>\n        </div>\n      </dl>\n\n      <figure class=\"mt-6 rounded-xl border p-4\">\n        <figcaption class=\"mb-2 flex items-center justify-between text-sm font-medium\">\n          Burndown\n          <span class=\"text-muted-foreground flex items-center gap-3 text-xs font-normal\">\n            <span class=\"flex items-center gap-1.5\"\n              ><span class=\"inline-block h-0.5 w-4 bg-slate-400\" />Ideal</span\n            >\n            <span class=\"flex items-center gap-1.5\"\n              ><span class=\"bg-primary inline-block h-0.5 w-4\" />Actual</span\n            >\n          </span>\n        </figcaption>\n        <svg\n          viewBox=\"0 0 400 180\"\n          class=\"h-auto w-full\"\n          role=\"img\"\n          :aria-label=\"`Burndown chart. ${remaining} of ${total} points remain on day ${day} of ${days}.`\"\n        >\n          <g class=\"text-muted-foreground\" fill=\"currentColor\" font-size=\"10\">\n            <template v-for=\"tick in ticks\" :key=\"tick\">\n              <line\n                :x1=\"pad\"\n                :x2=\"400 - pad\"\n                :y1=\"y(tick)\"\n                :y2=\"y(tick)\"\n                stroke=\"currentColor\"\n                stroke-opacity=\"0.15\"\n              />\n              <text :x=\"pad - 6\" :y=\"y(tick) + 3\" text-anchor=\"end\">{{ tick }}</text>\n            </template>\n            <text\n              v-for=\"d in [0, Math.round(days / 2), days]\"\n              :key=\"d\"\n              :x=\"x(d)\"\n              y=\"172\"\n              text-anchor=\"middle\"\n            >\n              D{{ d }}\n            </text>\n          </g>\n          <polyline\n            :points=\"idealPoints\"\n            fill=\"none\"\n            stroke=\"#94a3b8\"\n            stroke-width=\"2\"\n            stroke-dasharray=\"4 4\"\n          />\n          <polyline\n            :points=\"actualPoints\"\n            fill=\"none\"\n            stroke=\"var(--primary)\"\n            stroke-width=\"2.5\"\n            stroke-linejoin=\"round\"\n          />\n          <circle :cx=\"x(day)\" :cy=\"y(actual[day] ?? remaining)\" r=\"4\" fill=\"var(--primary)\" />\n        </svg>\n        <table class=\"sr-only\">\n          <caption>\n            Remaining points per day\n          </caption>\n          <thead>\n            <tr>\n              <th>Day</th>\n              <th>Ideal</th>\n              <th>Actual</th>\n            </tr>\n          </thead>\n          <tbody>\n            <tr v-for=\"(value, index) in actual\" :key=\"index\">\n              <td>{{ index }}</td>\n              <td>{{ ideal(index) }}</td>\n              <td>{{ value }}</td>\n            </tr>\n          </tbody>\n        </table>\n      </figure>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      days?: number;\n      total?: number;\n      /** Remaining points at the end of each day, starting with day 0. */\n      actual?: number[];\n    }>(),\n    {\n      title: \"Sprint 24 burndown\",\n      days: 10,\n      total: 40,\n      actual: () => [40, 38, 35, 35, 30, 27, 22],\n    }\n  );\n\n  const pad = 30;\n  const day = computed(() => props.actual.length - 1);\n  const remaining = computed(() => props.actual[props.actual.length - 1] ?? props.total);\n  const ideal = (d: number) => Math.round(props.total - (props.total / props.days) * d);\n  const onTrack = computed(() => remaining.value <= ideal(day.value) + 1);\n\n  const ticks = computed(() => [0, Math.round(props.total / 2), props.total]);\n  const x = (d: number) => pad + (d / props.days) * (400 - pad * 2);\n  const y = (value: number) => 150 - (value / props.total) * 130;\n\n  const idealPoints = computed(() =>\n    Array.from({ length: props.days + 1 }, (_, d) => `${x(d)},${y(ideal(d))}`).join(\" \")\n  );\n  const actualPoints = computed(() =>\n    props.actual.map((value, d) => `${x(d)},${y(value)}`).join(\" \")\n  );\n</script>\n","category":"Sprint","description":"Sprint board summary with burndown chart. Features: Sprint header with days remaining, points done and remaining, a burndown chart drawn in SVG with an ideal line and an actual line, a text alternative table and status counts","path":"Tasks/Sprint/BlockSprint2.vue","components":["badge","container"]},{"name":"Sprint 3","fileName":"BlockSprint3.vue","file":"<template>\n  <!--\n    Sprint review summary\n    Features: Completed versus planned points, velocity trend bars for the last sprints, a list of finished stories, carried over stories with a reason and a shareable summary button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\">{{ dates }}</p>\n        </div>\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"copySummary\"\n          ><Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />{{\n            copied ? \"Copied\" : \"Copy summary\"\n          }}</UiButton\n        >\n      </div>\n\n      <div class=\"mt-6 grid gap-4 sm:grid-cols-2\">\n        <UiCard>\n          <UiCardHeader>\n            <UiCardDescription>Completed</UiCardDescription>\n            <UiCardTitle class=\"text-3xl tabular-nums\"\n              >{{ completedPoints }}\n              <span class=\"text-muted-foreground text-base font-normal\"\n                >of {{ planned }} pts</span\n              ></UiCardTitle\n            >\n          </UiCardHeader>\n          <UiCardContent>\n            <UiProgress\n              :model-value=\"(completedPoints / planned) * 100\"\n              class=\"h-2\"\n              aria-label=\"Completed versus planned\"\n            />\n          </UiCardContent>\n        </UiCard>\n        <UiCard>\n          <UiCardHeader>\n            <UiCardDescription>Velocity, last {{ velocity.length }} sprints</UiCardDescription>\n          </UiCardHeader>\n          <UiCardContent>\n            <ul class=\"flex h-20 items-end gap-3\" aria-label=\"Velocity by sprint\">\n              <li\n                v-for=\"item in velocity\"\n                :key=\"item.name\"\n                class=\"flex flex-1 flex-col items-center gap-1\"\n              >\n                <span class=\"text-muted-foreground text-xs tabular-nums\">{{ item.points }}</span>\n                <span\n                  class=\"w-full rounded-t\"\n                  :class=\"item.current ? 'bg-primary' : 'bg-muted-foreground/30'\"\n                  :style=\"{ height: `${(item.points / maxVelocity) * 52}px` }\"\n                />\n                <span class=\"text-muted-foreground text-[10px]\">{{ item.name }}</span>\n              </li>\n            </ul>\n          </UiCardContent>\n        </UiCard>\n      </div>\n\n      <div class=\"mt-6 grid gap-6 md:grid-cols-2\">\n        <section aria-labelledby=\"sp3-done\">\n          <h2 id=\"sp3-done\" class=\"mb-2 flex items-center gap-2 text-sm font-semibold\">\n            <Icon name=\"lucide:circle-check\" class=\"size-4 text-green-600\" />Shipped ({{\n              shipped.length\n            }})\n          </h2>\n          <ul class=\"divide-y rounded-xl border text-sm\">\n            <li\n              v-for=\"story in shipped\"\n              :key=\"story.title\"\n              class=\"flex items-center justify-between gap-3 px-3 py-2.5\"\n            >\n              <span>{{ story.title }}</span\n              ><UiBadge variant=\"secondary\">{{ story.points }}</UiBadge>\n            </li>\n          </ul>\n        </section>\n        <section aria-labelledby=\"sp3-carry\">\n          <h2 id=\"sp3-carry\" class=\"mb-2 flex items-center gap-2 text-sm font-semibold\">\n            <Icon name=\"lucide:corner-down-right\" class=\"size-4 text-amber-600\" />Carried over ({{\n              carried.length\n            }})\n          </h2>\n          <ul class=\"divide-y rounded-xl border text-sm\">\n            <li v-for=\"story in carried\" :key=\"story.title\" class=\"px-3 py-2.5\">\n              <div class=\"flex items-center justify-between gap-3\">\n                <span>{{ story.title }}</span\n                ><UiBadge variant=\"secondary\">{{ story.points }}</UiBadge>\n              </div>\n              <p class=\"text-muted-foreground mt-0.5 text-xs\">{{ story.reason }}</p>\n            </li>\n          </ul>\n        </section>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Done = { title: string; points: number };\n  type Carry = Done & { reason: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      dates?: string;\n      shipped?: Done[];\n      carried?: Carry[];\n      velocity?: { name: string; points: number; current?: boolean }[];\n    }>(),\n    {\n      title: \"Sprint 24 review\",\n      dates: \"Oct 5 to Oct 16, 2026\",\n      shipped: () => [\n        { title: \"Onboarding checklist\", points: 8 },\n        { title: \"Fix double charge on upgrade\", points: 3 },\n        { title: \"Export audit log\", points: 5 },\n        { title: \"Dark mode polish\", points: 3 },\n        { title: \"Keyboard shortcuts help\", points: 2 },\n      ],\n      carried: () => [\n        {\n          title: \"Single sign on with SAML\",\n          points: 8,\n          reason: \"Waiting on the identity provider sandbox.\",\n        },\n        { title: \"Bulk edit tasks\", points: 5, reason: \"Scope grew during implementation.\" },\n      ],\n      velocity: () => [\n        { name: \"S21\", points: 18 },\n        { name: \"S22\", points: 22 },\n        { name: \"S23\", points: 19 },\n        { name: \"S24\", points: 21, current: true },\n      ],\n    }\n  );\n\n  const completedPoints = computed(() =>\n    props.shipped.reduce((sum, story) => sum + story.points, 0)\n  );\n  const planned = computed(\n    () => completedPoints.value + props.carried.reduce((sum, story) => sum + story.points, 0)\n  );\n  const maxVelocity = computed(() => Math.max(...props.velocity.map((item) => item.points)));\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  function copySummary() {\n    copy(\n      `${props.title}: ${completedPoints.value} of ${planned.value} points done. Shipped ${props.shipped.length} stories, carried over ${props.carried.length}.`\n    );\n  }\n</script>\n","category":"Sprint","description":"Sprint review summary. Features: Completed versus planned points, velocity trend bars for the last sprints, a list of finished stories, carried over stories with a reason and a shareable summary button","path":"Tasks/Sprint/BlockSprint3.vue","components":["badge","button","card","container","progress"]},{"name":"Sprint 4","fileName":"BlockSprint4.vue","file":"<template>\n  <!--\n    Retrospective board\n    Features: Went well, to improve and action items columns, add a note to any column, vote on notes with a limited number of votes, notes sorted by votes and action items you can tick off\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\" aria-live=\"polite\">\n          You have {{ votesLeft }} {{ votesLeft === 1 ? \"vote\" : \"votes\" }} left.\n        </p>\n      </div>\n      <UiButton variant=\"outline\" size=\"sm\" :disabled=\"votesLeft === maxVotes\" @click=\"resetVotes\"\n        >Reset my votes</UiButton\n      >\n    </div>\n\n    <div class=\"mt-6 grid gap-4 md:grid-cols-3\">\n      <section\n        v-for=\"column in columns\"\n        :key=\"column.id\"\n        class=\"rounded-xl border p-3\"\n        :class=\"column.tone\"\n        :aria-label=\"column.title\"\n      >\n        <h2 class=\"mb-3 flex items-center gap-2 px-1 text-sm font-semibold\">\n          <Icon :name=\"column.icon\" class=\"size-4\" />{{ column.title }}\n        </h2>\n        <ul class=\"space-y-2\">\n          <li\n            v-for=\"note in sorted(column)\"\n            :key=\"note.id\"\n            class=\"bg-card flex items-start gap-2 rounded-lg border p-3 text-sm shadow-xs\"\n          >\n            <UiCheckbox\n              v-if=\"column.id === 'actions'\"\n              :id=\"`retro-${note.id}`\"\n              v-model=\"note.done\"\n              class=\"mt-0.5\"\n              :aria-label=\"`Mark done: ${note.text}`\"\n            />\n            <p class=\"flex-1\" :class=\"note.done ? 'text-muted-foreground line-through' : ''\">\n              {{ note.text }}\n            </p>\n            <button\n              type=\"button\"\n              class=\"hover:bg-muted focus-visible:ring-ring/50 flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs outline-none focus-visible:ring-[3px]\"\n              :class=\"note.mine ? 'border-primary bg-primary/10' : ''\"\n              :aria-pressed=\"note.mine\"\n              :aria-label=\"`${note.mine ? 'Remove your vote from' : 'Vote for'} ${note.text}`\"\n              @click=\"vote(note)\"\n            >\n              <Icon name=\"lucide:thumbs-up\" class=\"size-3.5\" />{{ note.votes }}\n            </button>\n          </li>\n        </ul>\n        <form class=\"mt-3\" @submit.prevent=\"add(column)\">\n          <UiLabel :for=\"`retro-new-${column.id}`\" class=\"sr-only\"\n            >Add a note to {{ column.title }}</UiLabel\n          >\n          <UiInput\n            :id=\"`retro-new-${column.id}`\"\n            v-model=\"drafts[column.id]\"\n            placeholder=\"Add a note\"\n            autocomplete=\"off\"\n          />\n        </form>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Note = { id: string; text: string; votes: number; mine: boolean; done?: boolean };\n  type Column = { id: string; title: string; icon: string; tone: string; notes: Note[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      maxVotes?: number;\n      initial?: Column[];\n    }>(),\n    {\n      title: \"Sprint 24 retrospective\",\n      maxVotes: 3,\n      initial: () => [\n        {\n          id: \"good\",\n          title: \"Went well\",\n          icon: \"lucide:smile\",\n          tone: \"bg-green-500/5 border-green-500/30\",\n          notes: [\n            { id: \"n1\", text: \"Pairing on the checklist sped things up\", votes: 4, mine: false },\n            { id: \"n2\", text: \"Demos kept everyone aligned\", votes: 2, mine: false },\n          ],\n        },\n        {\n          id: \"bad\",\n          title: \"To improve\",\n          icon: \"lucide:frown\",\n          tone: \"bg-amber-500/5 border-amber-500/30\",\n          notes: [\n            { id: \"n3\", text: \"Too many surprise requests mid sprint\", votes: 5, mine: false },\n            { id: \"n4\", text: \"Staging was flaky for two days\", votes: 1, mine: false },\n          ],\n        },\n        {\n          id: \"actions\",\n          title: \"Action items\",\n          icon: \"lucide:list-checks\",\n          tone: \"bg-blue-500/5 border-blue-500/30\",\n          notes: [\n            {\n              id: \"n5\",\n              text: \"Agree a request intake process\",\n              votes: 0,\n              mine: false,\n              done: false,\n            },\n            { id: \"n6\", text: \"Add a staging health check\", votes: 0, mine: false, done: true },\n          ],\n        },\n      ],\n    }\n  );\n\n  const columns = ref<Column[]>(\n    props.initial.map((column) => ({ ...column, notes: column.notes.map((note) => ({ ...note })) }))\n  );\n  const drafts = reactive<Record<string, string>>({});\n  let counter = 100;\n\n  const used = computed(\n    () => columns.value.flatMap((column) => column.notes).filter((note) => note.mine).length\n  );\n  const votesLeft = computed(() => props.maxVotes - used.value);\n\n  const sorted = (column: Column) => [...column.notes].sort((a, b) => b.votes - a.votes);\n\n  function vote(note: Note) {\n    if (note.mine) {\n      note.mine = false;\n      note.votes--;\n    } else if (votesLeft.value > 0) {\n      note.mine = true;\n      note.votes++;\n    } else {\n      useSonner.info(\"You are out of votes. Remove one to vote again.\");\n    }\n  }\n\n  function resetVotes() {\n    columns.value\n      .flatMap((column) => column.notes)\n      .forEach((note) => {\n        if (note.mine) {\n          note.mine = false;\n          note.votes--;\n        }\n      });\n  }\n\n  function add(column: Column) {\n    const text = drafts[column.id]?.trim();\n    if (!text) return;\n    column.notes.push({\n      id: `n${counter++}`,\n      text,\n      votes: 0,\n      mine: false,\n      done: column.id === \"actions\" ? false : undefined,\n    });\n    drafts[column.id] = \"\";\n  }\n</script>\n","category":"Sprint","description":"Retrospective board. Features: Went well, to improve and action items columns, add a note to any column, vote on notes with a limited number of votes, notes sorted by votes and action items you can tick off","path":"Tasks/Sprint/BlockSprint4.vue","components":["button","checkbox","container","input","label"]},{"name":"App Stats 1","fileName":"BlockAppStats1.vue","file":"<template>\n  <!--\n    Stat card with an icon, trend pill and sparkline\n    Features: Fancy icon, large value, trend pill with direction color, comparison text, area sparkline drawn from your data\n  -->\n  <UiCard class=\"overflow-hidden py-0\">\n    <UiCardContent class=\"p-5 pb-0\">\n      <div class=\"flex items-start justify-between gap-3\">\n        <slot name=\"icon\">\n          <UiFancyIcon :icon=\"props.icon\" theme=\"modern\" color=\"gray\" />\n        </slot>\n        <span\n          class=\"inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium\"\n          :class=\"\n            up\n              ? 'bg-green-500/10 text-green-600 dark:text-green-400'\n              : 'bg-red-500/10 text-red-600 dark:text-red-400'\n          \"\n        >\n          <Icon :name=\"up ? 'lucide:arrow-up-right' : 'lucide:arrow-down-right'\" class=\"size-3\" />\n          {{ props.change }}\n        </span>\n      </div>\n      <div class=\"mt-4\">\n        <slot name=\"label\">\n          <p class=\"text-muted-foreground text-sm font-medium\">{{ props.label }}</p>\n        </slot>\n        <slot name=\"value\">\n          <p class=\"mt-1 text-3xl font-bold tracking-tight tabular-nums\">{{ props.value }}</p>\n        </slot>\n        <p class=\"text-muted-foreground mt-1 text-xs\">{{ props.comparison }}</p>\n      </div>\n    </UiCardContent>\n    <svg\n      viewBox=\"0 0 160 48\"\n      preserveAspectRatio=\"none\"\n      class=\"mt-3 h-14 w-full\"\n      :class=\"up ? 'text-green-500' : 'text-red-500'\"\n      aria-hidden=\"true\"\n    >\n      <path :d=\"spark.area\" fill=\"currentColor\" class=\"opacity-10\" />\n      <path\n        :d=\"spark.line\"\n        fill=\"none\"\n        stroke=\"currentColor\"\n        stroke-width=\"2\"\n        stroke-linejoin=\"round\"\n        stroke-linecap=\"round\"\n        vector-effect=\"non-scaling-stroke\"\n      />\n    </svg>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      value?: string;\n      change?: string;\n      comparison?: string;\n      icon?: string;\n      trend?: \"up\" | \"down\";\n      data?: number[];\n    }>(),\n    {\n      label: \"Total revenue\",\n      value: \"$48,260\",\n      change: \"12.5%\",\n      comparison: \"Compared to $42,900 last month\",\n      icon: \"lucide:wallet\",\n      trend: \"up\",\n      data: () => [12, 18, 15, 24, 21, 30, 27, 36, 33, 42, 39, 48],\n    }\n  );\n\n  const up = computed(() => props.trend === \"up\");\n\n  const spark = computed(() => {\n    const w = 160;\n    const h = 48;\n    const min = Math.min(...props.data);\n    const max = Math.max(...props.data);\n    const step = w / (props.data.length - 1);\n    const points = props.data.map((v, i) => [\n      i * step,\n      h - 6 - ((v - min) / (max - min || 1)) * (h - 14),\n    ]);\n    const line = points\n      .map(([x, y], i) => `${i ? \"L\" : \"M\"}${x!.toFixed(1)},${y!.toFixed(1)}`)\n      .join(\" \");\n    return { line, area: `${line} L${w},${h} L0,${h} Z` };\n  });\n</script>\n","category":"Stats","description":"Stat card with an icon, trend pill and sparkline. Features: Fancy icon, large value, trend pill with direction color, comparison text, area sparkline drawn from your data","path":"App/Stats/BlockAppStats1.vue","components":["card","fancy-icon"]},{"name":"App Stats 10","fileName":"BlockAppStats10.vue","file":"<template>\n  <!--\n    Stat card with a period switcher\n    Features: Segmented 7D, 30D and 90D control that swaps the value, delta and chart, modern fancy icon, bars animate between periods\n  -->\n  <UiCard>\n    <UiCardContent class=\"space-y-5\">\n      <div class=\"flex items-center justify-between gap-3\">\n        <div class=\"flex items-center gap-3\">\n          <slot name=\"icon\">\n            <UiFancyIcon :icon=\"props.icon\" theme=\"modern-neue\" color=\"gray\" />\n          </slot>\n          <slot name=\"label\">\n            <p class=\"text-sm font-medium\">{{ props.label }}</p>\n          </slot>\n        </div>\n        <UiToggleGroup\n          :model-value=\"period\"\n          type=\"single\"\n          variant=\"outline\"\n          size=\"sm\"\n          aria-label=\"Period\"\n          @update:model-value=\"(value) => value && (period = value as string)\"\n        >\n          <UiToggleGroupItem\n            v-for=\"item in periods\"\n            :key=\"item.value\"\n            :value=\"item.value\"\n            class=\"px-2.5 text-xs\"\n          >\n            {{ item.label }}\n          </UiToggleGroupItem>\n        </UiToggleGroup>\n      </div>\n\n      <div class=\"flex items-end justify-between gap-4\">\n        <div>\n          <p class=\"text-3xl font-bold tracking-tight tabular-nums\">{{ current.value }}</p>\n          <p\n            class=\"mt-1 flex items-center gap-1 text-sm font-medium\"\n            :class=\"\n              current.up ? 'text-green-600 dark:text-green-400' : 'text-red-600 dark:text-red-400'\n            \"\n          >\n            <Icon\n              :name=\"current.up ? 'lucide:trending-up' : 'lucide:trending-down'\"\n              class=\"size-4\"\n            />\n            {{ current.delta }}\n            <span class=\"text-muted-foreground font-normal\">vs previous period</span>\n          </p>\n        </div>\n        <div class=\"flex h-16 items-end gap-1\" aria-hidden=\"true\">\n          <div\n            v-for=\"(bar, i) in current.bars\"\n            :key=\"i\"\n            class=\"bg-primary/70 w-2 rounded-sm transition-all duration-500\"\n            :style=\"{ height: `${bar}%` }\"\n          />\n        </div>\n      </div>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      icon?: string;\n    }>(),\n    {\n      label: \"Page views\",\n      icon: \"lucide:eye\",\n    }\n  );\n\n  const periods = [\n    { label: \"7D\", value: \"7d\" },\n    { label: \"30D\", value: \"30d\" },\n    { label: \"90D\", value: \"90d\" },\n  ];\n\n  const data: Record<string, { value: string; delta: string; up: boolean; bars: number[] }> = {\n    \"7d\": { value: \"84,210\", delta: \"+6.4%\", up: true, bars: [45, 60, 52, 75, 68, 88, 80] },\n    \"30d\": {\n      value: \"362,904\",\n      delta: \"+12.8%\",\n      up: true,\n      bars: [30, 42, 38, 55, 48, 62, 58, 70, 66, 78, 74, 90],\n    },\n    \"90d\": {\n      value: \"1.04M\",\n      delta: \"-2.1%\",\n      up: false,\n      bars: [80, 74, 78, 66, 70, 62, 64, 56, 60, 52, 55, 48, 50, 44, 46, 40],\n    },\n  };\n\n  const period = ref(\"30d\");\n  const current = computed(() => data[period.value] ?? data[\"30d\"]!);\n</script>\n","category":"Stats","description":"Stat card with a period switcher. Features: Segmented 7D, 30D and 90D control that swaps the value, delta and chart, modern fancy icon, bars animate between periods","path":"App/Stats/BlockAppStats10.vue","components":["card","fancy-icon","toggle-group"]},{"name":"App Stats 11","fileName":"BlockAppStats11.vue","file":"<template>\n  <!--\n    Stat group joined in a single card\n    Features: Four stats in one card with hairline dividers that stay correct as the grid reflows, light fancy icons in different colors, trend text, hover highlight per stat\n  -->\n  <UiCard class=\"overflow-hidden py-0\">\n    <div class=\"bg-border grid gap-px sm:grid-cols-2 lg:grid-cols-4\">\n      <div\n        v-for=\"stat in props.stats\"\n        :key=\"stat.label\"\n        class=\"bg-card hover:bg-muted flex flex-col gap-4 p-5 transition-colors\"\n      >\n        <div class=\"flex items-center justify-between\">\n          <UiFancyIcon :icon=\"stat.icon\" theme=\"light\" :color=\"stat.color\" size=\"md\" />\n          <span\n            class=\"flex items-center gap-0.5 text-xs font-medium\"\n            :class=\"\n              stat.up ? 'text-green-600 dark:text-green-400' : 'text-red-600 dark:text-red-400'\n            \"\n          >\n            <Icon\n              :name=\"stat.up ? 'lucide:arrow-up-right' : 'lucide:arrow-down-right'\"\n              class=\"size-3.5\"\n            />\n            {{ stat.change }}\n          </span>\n        </div>\n        <div>\n          <p class=\"text-muted-foreground text-sm\">{{ stat.label }}</p>\n          <p class=\"mt-1 text-2xl font-bold tracking-tight tabular-nums\">{{ stat.value }}</p>\n        </div>\n      </div>\n    </div>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n\n  const props = withDefaults(\n    defineProps<{\n      stats?: {\n        label: string;\n        value: string;\n        change: string;\n        up: boolean;\n        icon: string;\n        color: Color;\n      }[];\n    }>(),\n    {\n      stats: () => [\n        {\n          label: \"Revenue\",\n          value: \"$48.2k\",\n          change: \"12.4%\",\n          up: true,\n          icon: \"lucide:wallet\",\n          color: \"success\",\n        },\n        {\n          label: \"Customers\",\n          value: \"2,840\",\n          change: \"8.1%\",\n          up: true,\n          icon: \"lucide:users\",\n          color: \"info\",\n        },\n        {\n          label: \"Orders\",\n          value: \"1,467\",\n          change: \"3.2%\",\n          up: true,\n          icon: \"lucide:shopping-bag\",\n          color: \"warning\",\n        },\n        {\n          label: \"Refunds\",\n          value: \"42\",\n          change: \"1.4%\",\n          up: false,\n          icon: \"lucide:undo-2\",\n          color: \"error\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Stats","description":"Stat group joined in a single card. Features: Four stats in one card with hairline dividers that stay correct as the grid reflows, light fancy icons in different colors, trend text, hover highlight per stat","path":"App/Stats/BlockAppStats11.vue","components":["card","fancy-icon"]},{"name":"App Stats 12","fileName":"BlockAppStats12.vue","file":"<template>\n  <!--\n    Dense KPI strip with a sparkline for each metric\n    Features: Compact tiles with small icons, value and delta, an inline sparkline per metric, selected tile highlights, scrolls sideways on small screens\n  -->\n  <div class=\"-mx-4 overflow-x-auto px-4 pb-1\">\n    <div class=\"grid min-w-[44rem] grid-cols-4 gap-3\">\n      <button\n        v-for=\"kpi in props.kpis\"\n        :key=\"kpi.label\"\n        type=\"button\"\n        class=\"bg-card hover:border-ring/60 group rounded-xl border p-4 text-left transition-all\"\n        :class=\"selected === kpi.label && 'border-primary ring-primary/20 ring-4'\"\n        :aria-pressed=\"selected === kpi.label\"\n        @click=\"selected = kpi.label\"\n      >\n        <div class=\"flex items-center gap-2\">\n          <UiFancyIcon :icon=\"kpi.icon\" theme=\"modern\" color=\"gray\" size=\"sm\" class=\"size-8\" />\n          <span class=\"text-muted-foreground truncate text-xs font-medium\">{{ kpi.label }}</span>\n        </div>\n        <div class=\"mt-3 flex items-end justify-between gap-2\">\n          <div>\n            <p class=\"text-xl font-bold tracking-tight tabular-nums\">{{ kpi.value }}</p>\n            <p\n              class=\"mt-0.5 text-xs font-medium\"\n              :class=\"\n                kpi.up ? 'text-green-600 dark:text-green-400' : 'text-red-600 dark:text-red-400'\n              \"\n            >\n              {{ kpi.up ? \"↑\" : \"↓\" }} {{ kpi.change }}\n            </p>\n          </div>\n          <svg\n            viewBox=\"0 0 64 28\"\n            class=\"h-7 w-16\"\n            :class=\"kpi.up ? 'text-green-500' : 'text-red-500'\"\n            aria-hidden=\"true\"\n          >\n            <polyline\n              :points=\"points(kpi.data)\"\n              fill=\"none\"\n              stroke=\"currentColor\"\n              stroke-width=\"2\"\n              stroke-linecap=\"round\"\n              stroke-linejoin=\"round\"\n            />\n          </svg>\n        </div>\n      </button>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      kpis?: {\n        label: string;\n        value: string;\n        change: string;\n        up: boolean;\n        icon: string;\n        data: number[];\n      }[];\n    }>(),\n    {\n      kpis: () => [\n        {\n          label: \"Sessions\",\n          value: \"84.2k\",\n          change: \"6.4%\",\n          up: true,\n          icon: \"lucide:mouse-pointer-click\",\n          data: [3, 5, 4, 7, 6, 9, 8, 11],\n        },\n        {\n          label: \"Sign-ups\",\n          value: \"1,284\",\n          change: \"12.8%\",\n          up: true,\n          icon: \"lucide:user-plus\",\n          data: [2, 3, 3, 5, 4, 6, 7, 9],\n        },\n        {\n          label: \"Bounce rate\",\n          value: \"38.2%\",\n          change: \"2.1%\",\n          up: false,\n          icon: \"lucide:log-out\",\n          data: [8, 7, 9, 6, 7, 5, 6, 4],\n        },\n        {\n          label: \"Avg. session\",\n          value: \"4m 12s\",\n          change: \"9.3%\",\n          up: true,\n          icon: \"lucide:timer\",\n          data: [4, 4, 5, 6, 5, 7, 8, 8],\n        },\n      ],\n    }\n  );\n\n  const selected = ref(props.kpis[0]?.label);\n\n  function points(data: number[]) {\n    const min = Math.min(...data);\n    const max = Math.max(...data);\n    const step = 64 / (data.length - 1);\n    return data\n      .map(\n        (v, i) =>\n          `${(i * step).toFixed(1)},${(26 - ((v - min) / (max - min || 1)) * 24).toFixed(1)}`\n      )\n      .join(\" \");\n  }\n</script>\n","category":"Stats","description":"Dense KPI strip with a sparkline for each metric. Features: Compact tiles with small icons, value and delta, an inline sparkline per metric, selected tile highlights, scrolls sideways on small screens","path":"App/Stats/BlockAppStats12.vue","components":["fancy-icon"]},{"name":"App Stats 13","fileName":"BlockAppStats13.vue","file":"<template>\n  <!--\n    Featured stat with a chart beside four smaller stats\n    Features: Large revenue card with a bar chart that shows a tooltip on hover, a two by two grid of compact stats with fancy icons, collapses to a single column on mobile\n  -->\n  <div class=\"grid gap-4 lg:grid-cols-5\">\n    <UiCard class=\"lg:col-span-3\">\n      <UiCardContent class=\"flex h-full flex-col gap-5\">\n        <div class=\"flex items-start justify-between gap-3\">\n          <div>\n            <p class=\"text-muted-foreground text-sm font-medium\">{{ props.title }}</p>\n            <p class=\"mt-1 text-3xl font-bold tracking-tight tabular-nums\">{{ total }}</p>\n            <p\n              class=\"mt-1 flex items-center gap-1 text-sm font-medium text-green-600 dark:text-green-400\"\n            >\n              <Icon name=\"lucide:trending-up\" class=\"size-4\" />\n              {{ props.change }}\n              <span class=\"text-muted-foreground font-normal\">vs last year</span>\n            </p>\n          </div>\n          <UiFancyIcon icon=\"lucide:chart-column\" theme=\"modern-neue\" color=\"gray\" />\n        </div>\n\n        <div class=\"flex min-h-40 flex-1 items-end gap-2\" role=\"img\" aria-label=\"Monthly revenue\">\n          <div\n            v-for=\"month in props.months\"\n            :key=\"month.label\"\n            class=\"group relative flex h-full flex-1 flex-col justify-end\"\n          >\n            <span\n              class=\"bg-foreground text-background pointer-events-none absolute -top-8 left-1/2 z-10 -translate-x-1/2 rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap opacity-0 transition-opacity group-hover:opacity-100\"\n            >\n              ${{ month.value }}k\n            </span>\n            <div\n              class=\"bg-primary/20 group-hover:bg-primary rounded-t-md transition-colors\"\n              :style=\"{ height: `${(month.value / max) * 100}%` }\"\n            />\n            <span class=\"text-muted-foreground mt-2 text-center text-[10px]\">{{\n              month.label\n            }}</span>\n          </div>\n        </div>\n      </UiCardContent>\n    </UiCard>\n\n    <div class=\"grid gap-4 sm:grid-cols-2 lg:col-span-2\">\n      <UiCard v-for=\"stat in props.stats\" :key=\"stat.label\">\n        <UiCardContent class=\"flex h-full flex-col justify-between gap-4\">\n          <UiFancyIcon :icon=\"stat.icon\" theme=\"light\" :color=\"stat.color\" size=\"md\" />\n          <div>\n            <p class=\"text-muted-foreground text-xs font-medium\">{{ stat.label }}</p>\n            <p class=\"mt-0.5 text-xl font-bold tracking-tight tabular-nums\">{{ stat.value }}</p>\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      change?: string;\n      months?: { label: string; value: number }[];\n      stats?: { label: string; value: string; icon: string; color: Color }[];\n    }>(),\n    {\n      title: \"Revenue this year\",\n      change: \"18.2%\",\n      months: () =>\n        [38, 44, 41, 52, 49, 58, 55, 63, 60, 71, 68, 82].map((value, i) => ({\n          label: \"JFMAMJJASOND\"[i]!,\n          value,\n        })),\n      stats: () => [\n        { label: \"New customers\", value: \"1,284\", icon: \"lucide:user-plus\", color: \"info\" },\n        { label: \"Avg. order value\", value: \"$86.40\", icon: \"lucide:receipt\", color: \"success\" },\n        { label: \"Churn rate\", value: \"1.9%\", icon: \"lucide:user-minus\", color: \"error\" },\n        { label: \"Support tickets\", value: \"142\", icon: \"lucide:life-buoy\", color: \"warning\" },\n      ],\n    }\n  );\n\n  const max = computed(() => Math.max(...props.months.map((month) => month.value)));\n  const total = computed(\n    () => `$${props.months.reduce((sum, month) => sum + month.value, 0).toLocaleString()}k`\n  );\n</script>\n","category":"Stats","description":"Featured stat with a chart beside four smaller stats. Features: Large revenue card with a bar chart that shows a tooltip on hover, a two by two grid of compact stats with fancy icons, collapses to a single column on mobile","path":"App/Stats/BlockAppStats13.vue","components":["card","fancy-icon"]},{"name":"App Stats 14","fileName":"BlockAppStats14.vue","file":"<template>\n  <!--\n    Overview section with a period switcher and four stat cards\n    Features: Section heading with a segmented range control, cards whose values and trends change per range, colored gradient fancy icons, skeleton shimmer while the data loads\n  -->\n  <section class=\"space-y-5\">\n    <div class=\"flex flex-wrap items-end justify-between gap-3\">\n      <div>\n        <slot name=\"title\">\n          <h2 class=\"text-xl font-bold tracking-tight\">{{ props.title }}</h2>\n        </slot>\n        <slot name=\"description\">\n          <p class=\"text-muted-foreground text-sm\">{{ props.description }}</p>\n        </slot>\n      </div>\n      <UiToggleGroup\n        :model-value=\"range\"\n        type=\"single\"\n        variant=\"outline\"\n        aria-label=\"Date range\"\n        class=\"bg-background shadow-xs\"\n        @update:model-value=\"change\"\n      >\n        <UiToggleGroupItem\n          v-for=\"item in ranges\"\n          :key=\"item.value\"\n          :value=\"item.value\"\n          class=\"px-3 text-sm\"\n        >\n          {{ item.label }}\n        </UiToggleGroupItem>\n      </UiToggleGroup>\n    </div>\n\n    <div class=\"grid gap-4 sm:grid-cols-2 xl:grid-cols-4\">\n      <UiCard v-for=\"stat in cards\" :key=\"stat.label\">\n        <UiCardContent class=\"space-y-4\">\n          <div class=\"flex items-center justify-between\">\n            <UiFancyIcon :icon=\"stat.icon\" theme=\"gradient\" :color=\"stat.color\" size=\"md\" />\n            <span\n              v-if=\"!loading\"\n              class=\"flex items-center gap-0.5 text-xs font-medium\"\n              :class=\"\n                stat.up ? 'text-green-600 dark:text-green-400' : 'text-red-600 dark:text-red-400'\n              \"\n            >\n              <Icon\n                :name=\"stat.up ? 'lucide:arrow-up-right' : 'lucide:arrow-down-right'\"\n                class=\"size-3.5\"\n              />\n              {{ stat.change }}\n            </span>\n          </div>\n          <div>\n            <p class=\"text-muted-foreground text-sm\">{{ stat.label }}</p>\n            <div v-if=\"loading\" class=\"bg-muted mt-2 h-8 w-24 animate-pulse rounded-md\" />\n            <p v-else class=\"mt-1 text-2xl font-bold tracking-tight tabular-nums\">\n              {{ stat.values[range] }}\n            </p>\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n  type Range = \"7d\" | \"30d\" | \"90d\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n    }>(),\n    {\n      title: \"Overview\",\n      description: \"How the business is doing across the selected period.\",\n    }\n  );\n\n  const ranges: { label: string; value: Range }[] = [\n    { label: \"7 days\", value: \"7d\" },\n    { label: \"30 days\", value: \"30d\" },\n    { label: \"90 days\", value: \"90d\" },\n  ];\n\n  const range = ref<Range>(\"30d\");\n  const loading = ref(false);\n\n  const metrics: {\n    label: string;\n    icon: string;\n    color: Color;\n    values: Record<Range, string>;\n    changes: Record<Range, { change: string; up: boolean }>;\n  }[] = [\n    {\n      label: \"Revenue\",\n      icon: \"lucide:wallet\",\n      color: \"success\",\n      values: { \"7d\": \"$12.4k\", \"30d\": \"$48.2k\", \"90d\": \"$141k\" },\n      changes: {\n        \"7d\": { change: \"4.2%\", up: true },\n        \"30d\": { change: \"12.4%\", up: true },\n        \"90d\": { change: \"21.8%\", up: true },\n      },\n    },\n    {\n      label: \"New customers\",\n      icon: \"lucide:user-plus\",\n      color: \"info\",\n      values: { \"7d\": \"312\", \"30d\": \"1,284\", \"90d\": \"3,906\" },\n      changes: {\n        \"7d\": { change: \"2.1%\", up: true },\n        \"30d\": { change: \"8.1%\", up: true },\n        \"90d\": { change: \"14.3%\", up: true },\n      },\n    },\n    {\n      label: \"Open tickets\",\n      icon: \"lucide:life-buoy\",\n      color: \"warning\",\n      values: { \"7d\": \"38\", \"30d\": \"142\", \"90d\": \"406\" },\n      changes: {\n        \"7d\": { change: \"6.0%\", up: false },\n        \"30d\": { change: \"3.4%\", up: false },\n        \"90d\": { change: \"1.2%\", up: true },\n      },\n    },\n    {\n      label: \"Churn rate\",\n      icon: \"lucide:user-minus\",\n      color: \"error\",\n      values: { \"7d\": \"0.4%\", \"30d\": \"1.9%\", \"90d\": \"5.2%\" },\n      changes: {\n        \"7d\": { change: \"0.1%\", up: true },\n        \"30d\": { change: \"0.3%\", up: true },\n        \"90d\": { change: \"0.8%\", up: false },\n      },\n    },\n  ];\n\n  const cards = computed(() =>\n    metrics.map((metric) => ({\n      ...metric,\n      ...metric.changes[range.value],\n    }))\n  );\n\n  async function change(value: unknown) {\n    // Clicking the active item clears a single toggle group, so ignore empty values.\n    if (!value || value === range.value) return;\n    range.value = value as Range;\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 450));\n    loading.value = false;\n  }\n</script>\n","category":"Stats","description":"Overview section with a period switcher and four stat cards. Features: Section heading with a segmented range control, cards whose values and trends change per range, colored gradient fancy icons, skeleton shimmer while the data loads","path":"App/Stats/BlockAppStats14.vue","components":["card","fancy-icon","toggle-group"]},{"name":"App Stats 2","fileName":"BlockAppStats2.vue","file":"<template>\n  <!--\n    Stat card with a gradient icon on the right\n    Features: Gradient fancy icon, big value, trend with an arrow, supporting text, hover lift and ring\n  -->\n  <UiCard class=\"group transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md\">\n    <UiCardContent class=\"flex items-start justify-between gap-4\">\n      <div class=\"min-w-0\">\n        <slot name=\"label\">\n          <p class=\"text-muted-foreground text-sm font-medium\">{{ props.label }}</p>\n        </slot>\n        <slot name=\"value\">\n          <p class=\"mt-2 text-3xl font-bold tracking-tight tabular-nums\">{{ props.value }}</p>\n        </slot>\n        <p class=\"mt-3 flex items-center gap-1.5 text-sm\">\n          <span\n            class=\"flex items-center gap-0.5 font-medium\"\n            :class=\"\n              props.trend === 'up'\n                ? 'text-green-600 dark:text-green-400'\n                : 'text-red-600 dark:text-red-400'\n            \"\n          >\n            <Icon\n              :name=\"props.trend === 'up' ? 'lucide:trending-up' : 'lucide:trending-down'\"\n              class=\"size-4\"\n            />\n            {{ props.change }}\n          </span>\n          <span class=\"text-muted-foreground\">{{ props.comparison }}</span>\n        </p>\n      </div>\n      <slot name=\"icon\">\n        <UiFancyIcon\n          :icon=\"props.icon\"\n          theme=\"gradient\"\n          :color=\"props.color\"\n          size=\"xl\"\n          class=\"transition-transform duration-300 group-hover:scale-105 group-hover:-rotate-3\"\n        />\n      </slot>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      value?: string;\n      change?: string;\n      comparison?: string;\n      icon?: string;\n      trend?: \"up\" | \"down\";\n      color?: \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n    }>(),\n    {\n      label: \"Active users\",\n      value: \"24,830\",\n      change: \"+8.2%\",\n      comparison: \"vs last week\",\n      icon: \"lucide:users\",\n      trend: \"up\",\n      color: \"info\",\n    }\n  );\n</script>\n","category":"Stats","description":"Stat card with a gradient icon on the right. Features: Gradient fancy icon, big value, trend with an arrow, supporting text, hover lift and ring","path":"App/Stats/BlockAppStats2.vue","components":["card","fancy-icon"]},{"name":"App Stats 3","fileName":"BlockAppStats3.vue","file":"<template>\n  <!--\n    Goal card with a progress bar and milestone\n    Features: Fancy icon, value against a target, progress bar with a percent badge, remaining amount, days left footer\n  -->\n  <UiCard>\n    <UiCardContent class=\"space-y-5\">\n      <div class=\"flex items-center justify-between gap-3\">\n        <div class=\"flex items-center gap-3\">\n          <slot name=\"icon\">\n            <UiFancyIcon :icon=\"props.icon\" theme=\"light\" :color=\"props.color\" />\n          </slot>\n          <div>\n            <slot name=\"label\">\n              <p class=\"text-sm font-medium\">{{ props.label }}</p>\n            </slot>\n            <p class=\"text-muted-foreground text-xs\">Target {{ props.target }}</p>\n          </div>\n        </div>\n        <UiBadge variant=\"secondary\" class=\"tabular-nums\">{{ props.progress }}%</UiBadge>\n      </div>\n\n      <div>\n        <slot name=\"value\">\n          <p class=\"text-3xl font-bold tracking-tight tabular-nums\">{{ props.value }}</p>\n        </slot>\n        <div class=\"bg-muted relative mt-3 h-2.5 rounded-full\">\n          <div\n            class=\"bg-primary h-full rounded-full transition-[width] duration-700 ease-out\"\n            :style=\"{ width: `${props.progress}%` }\"\n          />\n          <span\n            class=\"bg-background ring-primary absolute top-1/2 size-4 -translate-x-1/2 -translate-y-1/2 rounded-full ring-2\"\n            :style=\"{ left: `${props.progress}%` }\"\n          />\n        </div>\n        <div class=\"text-muted-foreground mt-2 flex justify-between text-xs\">\n          <span>{{ props.remaining }} to go</span>\n          <span>{{ props.target }}</span>\n        </div>\n      </div>\n\n      <div class=\"text-muted-foreground flex items-center gap-2 border-t pt-4 text-xs\">\n        <Icon name=\"lucide:clock\" class=\"size-3.5\" />\n        {{ props.daysLeft }} days left this quarter\n      </div>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      value?: string;\n      target?: string;\n      remaining?: string;\n      progress?: number;\n      daysLeft?: number;\n      icon?: string;\n      color?: \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n    }>(),\n    {\n      label: \"Quarterly revenue goal\",\n      value: \"$124,500\",\n      target: \"$150,000\",\n      remaining: \"$25,500\",\n      progress: 83,\n      daysLeft: 24,\n      icon: \"lucide:target\",\n      color: \"success\",\n    }\n  );\n</script>\n","category":"Stats","description":"Goal card with a progress bar and milestone. Features: Fancy icon, value against a target, progress bar with a percent badge, remaining amount, days left footer","path":"App/Stats/BlockAppStats3.vue","components":["badge","card","fancy-icon"]},{"name":"App Stats 4","fileName":"BlockAppStats4.vue","file":"<template>\n  <!--\n    Live stat card with a dark icon block and a pulsing live badge\n    Features: Dark fancy icon on a colored accent column, live indicator that pulses, value that counts up on load, period label\n  -->\n  <UiCard class=\"overflow-hidden py-0\">\n    <div class=\"flex\">\n      <div class=\"bg-primary/5 flex items-center border-r px-5\">\n        <slot name=\"icon\">\n          <UiFancyIcon :icon=\"props.icon\" theme=\"dark\" color=\"primary\" size=\"lg\" />\n        </slot>\n      </div>\n      <div class=\"min-w-0 flex-1 p-5\">\n        <div class=\"flex items-center justify-between gap-2\">\n          <slot name=\"label\">\n            <p class=\"text-muted-foreground text-sm font-medium\">{{ props.label }}</p>\n          </slot>\n          <span\n            class=\"flex items-center gap-1.5 rounded-full border border-green-500/30 bg-green-500/10 px-2 py-0.5 text-xs font-medium text-green-600 dark:text-green-400\"\n          >\n            <span class=\"relative flex size-2\">\n              <span\n                class=\"absolute inline-flex size-full animate-ping rounded-full bg-green-500 opacity-75\"\n              />\n              <span class=\"relative inline-flex size-2 rounded-full bg-green-500\" />\n            </span>\n            Live\n          </span>\n        </div>\n        <slot name=\"value\">\n          <p class=\"mt-1 text-3xl font-bold tracking-tight tabular-nums\">{{ display }}</p>\n        </slot>\n        <p class=\"text-muted-foreground mt-1 flex items-center gap-1.5 text-xs\">\n          <Icon name=\"lucide:calendar\" class=\"size-3.5\" />\n          {{ props.period }}\n        </p>\n      </div>\n    </div>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      value?: number;\n      period?: string;\n      icon?: string;\n    }>(),\n    {\n      label: \"Active users\",\n      value: 2845,\n      period: \"Last 30 minutes\",\n      icon: \"lucide:users\",\n    }\n  );\n\n  // Counts up from zero when the card appears, then keeps the final value.\n  const source = ref(0);\n  const animated = useTransition(source, { duration: 1200 });\n  const display = computed(() => Math.round(animated.value).toLocaleString(\"en-US\"));\n  onMounted(() => {\n    source.value = props.value;\n  });\n</script>\n","category":"Stats","description":"Live stat card with a dark icon block and a pulsing live badge. Features: Dark fancy icon on a colored accent column, live indicator that pulses, value that counts up on load, period label","path":"App/Stats/BlockAppStats4.vue","components":["card","fancy-icon"]},{"name":"App Stats 5","fileName":"BlockAppStats5.vue","file":"<template>\n  <!--\n    Stat card with a mini bar chart and an actions menu\n    Features: Light fancy icon, overflow menu with refresh that simulates a reload, trend pill, bar chart that highlights the latest bar on hover\n  -->\n  <UiCard>\n    <UiCardContent class=\"space-y-5\">\n      <div class=\"flex items-start justify-between\">\n        <div class=\"flex items-center gap-3\">\n          <slot name=\"icon\">\n            <UiFancyIcon :icon=\"props.icon\" theme=\"light\" :color=\"props.color\" />\n          </slot>\n          <slot name=\"label\">\n            <p class=\"text-muted-foreground text-sm font-medium\">{{ props.label }}</p>\n          </slot>\n        </div>\n        <UiDropdownMenu>\n          <UiDropdownMenuTrigger as-child>\n            <UiButton variant=\"ghost\" size=\"icon-sm\" aria-label=\"More options\">\n              <Icon name=\"lucide:ellipsis\" class=\"size-4\" />\n            </UiButton>\n          </UiDropdownMenuTrigger>\n          <UiDropdownMenuContent align=\"end\">\n            <UiDropdownMenuItem icon=\"lucide:eye\" title=\"View details\" />\n            <UiDropdownMenuItem icon=\"lucide:download\" title=\"Export\" />\n            <UiDropdownMenuSeparator />\n            <UiDropdownMenuItem icon=\"lucide:refresh-cw\" title=\"Refresh\" @select=\"refresh\" />\n          </UiDropdownMenuContent>\n        </UiDropdownMenu>\n      </div>\n\n      <div class=\"flex items-end justify-between gap-4\">\n        <div>\n          <p\n            class=\"text-3xl font-bold tracking-tight tabular-nums transition-opacity\"\n            :class=\"loading && 'opacity-40'\"\n          >\n            {{ props.value }}\n          </p>\n          <p\n            class=\"mt-1 flex items-center gap-1 text-sm font-medium\"\n            :class=\"\n              props.trend === 'up'\n                ? 'text-green-600 dark:text-green-400'\n                : 'text-red-600 dark:text-red-400'\n            \"\n          >\n            <Icon\n              :name=\"props.trend === 'up' ? 'lucide:trending-up' : 'lucide:trending-down'\"\n              class=\"size-4\"\n            />\n            {{ props.change }}\n            <span class=\"text-muted-foreground font-normal\">vs last week</span>\n          </p>\n        </div>\n        <div class=\"flex h-14 items-end gap-1.5\" aria-hidden=\"true\">\n          <div\n            v-for=\"(bar, i) in props.data\"\n            :key=\"i\"\n            class=\"w-2.5 rounded-sm transition-all duration-300\"\n            :class=\"\n              i === props.data.length - 1 ? 'bg-primary' : 'bg-primary/20 hover:bg-primary/50'\n            \"\n            :style=\"{ height: loading ? '20%' : `${(bar / max) * 100}%` }\"\n          />\n        </div>\n      </div>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      value?: string;\n      change?: string;\n      icon?: string;\n      trend?: \"up\" | \"down\";\n      color?: \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n      data?: number[];\n    }>(),\n    {\n      label: \"Sales\",\n      value: \"$24,500\",\n      change: \"8.2%\",\n      icon: \"lucide:shopping-cart\",\n      trend: \"up\",\n      color: \"primary\",\n      data: () => [40, 65, 48, 80, 58, 72, 95],\n    }\n  );\n\n  const max = computed(() => Math.max(...props.data));\n  const loading = ref(false);\n\n  async function refresh() {\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n  }\n</script>\n","category":"Stats","description":"Stat card with a mini bar chart and an actions menu. Features: Light fancy icon, overflow menu with refresh that simulates a reload, trend pill, bar chart that highlights the latest bar on hover","path":"App/Stats/BlockAppStats5.vue","components":["button","card","dropdown-menu","fancy-icon"]},{"name":"App Stats 6","fileName":"BlockAppStats6.vue","file":"<template>\n  <!--\n    Breakdown stat with a segmented bar and legend\n    Features: Total value with a fancy icon, stacked bar split by status, legend with counts and percentages, segments highlight on hover\n  -->\n  <UiCard>\n    <UiCardContent class=\"space-y-5\">\n      <div class=\"flex items-center justify-between gap-3\">\n        <div class=\"flex items-center gap-3\">\n          <slot name=\"icon\">\n            <UiFancyIcon :icon=\"props.icon\" theme=\"modern-neue\" color=\"gray\" />\n          </slot>\n          <div>\n            <slot name=\"label\">\n              <p class=\"text-muted-foreground text-sm font-medium\">{{ props.label }}</p>\n            </slot>\n            <p class=\"text-2xl font-bold tracking-tight tabular-nums\">\n              {{ total.toLocaleString() }}\n            </p>\n          </div>\n        </div>\n        <UiBadge variant=\"outline\">This month</UiBadge>\n      </div>\n\n      <div class=\"flex h-3 gap-1 overflow-hidden rounded-full\" role=\"img\" :aria-label=\"summary\">\n        <div\n          v-for=\"segment in props.segments\"\n          :key=\"segment.label\"\n          class=\"h-full rounded-full transition-all duration-300 first:rounded-l-full last:rounded-r-full\"\n          :class=\"[segment.color, active && active !== segment.label && 'opacity-30']\"\n          :style=\"{ width: `${(segment.value / total) * 100}%` }\"\n          @mouseenter=\"active = segment.label\"\n          @mouseleave=\"active = ''\"\n        />\n      </div>\n\n      <ul class=\"grid gap-2.5\">\n        <li\n          v-for=\"segment in props.segments\"\n          :key=\"segment.label\"\n          class=\"flex items-center justify-between gap-3 text-sm transition-opacity\"\n          :class=\"active && active !== segment.label && 'opacity-40'\"\n          @mouseenter=\"active = segment.label\"\n          @mouseleave=\"active = ''\"\n        >\n          <span class=\"flex items-center gap-2\">\n            <span class=\"size-2.5 rounded-full\" :class=\"segment.color\" />\n            {{ segment.label }}\n          </span>\n          <span class=\"flex items-center gap-3\">\n            <span class=\"font-medium tabular-nums\">{{ segment.value.toLocaleString() }}</span>\n            <span class=\"text-muted-foreground w-10 text-right tabular-nums\">\n              {{ Math.round((segment.value / total) * 100) }}%\n            </span>\n          </span>\n        </li>\n      </ul>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      icon?: string;\n      segments?: { label: string; value: number; color: string }[];\n    }>(),\n    {\n      label: \"Total orders\",\n      icon: \"lucide:package\",\n      segments: () => [\n        { label: \"Completed\", value: 1305, color: \"bg-green-500\" },\n        { label: \"Pending\", value: 124, color: \"bg-amber-500\" },\n        { label: \"Cancelled\", value: 38, color: \"bg-red-500\" },\n      ],\n    }\n  );\n\n  const active = ref(\"\");\n  const total = computed(() => props.segments.reduce((sum, segment) => sum + segment.value, 0));\n  const summary = computed(() =>\n    props.segments.map((segment) => `${segment.label}: ${segment.value}`).join(\", \")\n  );\n</script>\n","category":"Stats","description":"Breakdown stat with a segmented bar and legend. Features: Total value with a fancy icon, stacked bar split by status, legend with counts and percentages, segments highlight on hover","path":"App/Stats/BlockAppStats6.vue","components":["badge","card","fancy-icon"]},{"name":"App Stats 7","fileName":"BlockAppStats7.vue","file":"<template>\n  <!--\n    Comparison stat showing the current period against the previous one\n    Features: Warning colored fancy icon, large value with a delta pill, paired bars for current and previous, plain language footnote\n  -->\n  <UiCard>\n    <UiCardContent class=\"space-y-5\">\n      <div class=\"flex items-start justify-between gap-3\">\n        <div class=\"flex items-center gap-3\">\n          <slot name=\"icon\">\n            <UiFancyIcon :icon=\"props.icon\" theme=\"light\" color=\"warning\" />\n          </slot>\n          <slot name=\"label\">\n            <p class=\"text-muted-foreground text-sm font-medium\">{{ props.label }}</p>\n          </slot>\n        </div>\n        <UiBadge :variant=\"improved ? 'success' : 'error'\" class=\"gap-1\">\n          <Icon :name=\"improved ? 'lucide:arrow-up' : 'lucide:arrow-down'\" class=\"size-3\" />\n          {{ delta }}%\n        </UiBadge>\n      </div>\n\n      <p class=\"text-4xl font-bold tracking-tight tabular-nums\">{{ props.current }}%</p>\n\n      <div class=\"space-y-3\">\n        <div v-for=\"row in rows\" :key=\"row.label\" class=\"space-y-1.5\">\n          <div class=\"flex justify-between text-xs\">\n            <span class=\"text-muted-foreground\">{{ row.label }}</span>\n            <span class=\"font-medium tabular-nums\">{{ row.value }}%</span>\n          </div>\n          <div class=\"bg-muted h-2 rounded-full\">\n            <div\n              class=\"h-full rounded-full transition-[width] duration-700 ease-out\"\n              :class=\"row.bar\"\n              :style=\"{ width: `${(row.value / scale) * 100}%` }\"\n            />\n          </div>\n        </div>\n      </div>\n\n      <p class=\"text-muted-foreground text-xs\">\n        {{ improved ? \"Up\" : \"Down\" }}\n        {{ Math.abs(props.current - props.previous).toFixed(2) }} points compared to the previous\n        {{ props.period }}.\n      </p>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      icon?: string;\n      current?: number;\n      previous?: number;\n      period?: string;\n    }>(),\n    {\n      label: \"Conversion rate\",\n      icon: \"lucide:activity\",\n      current: 3.24,\n      previous: 2.84,\n      period: \"30 days\",\n    }\n  );\n\n  const improved = computed(() => props.current >= props.previous);\n  const delta = computed(() =>\n    Math.abs(((props.current - props.previous) / (props.previous || 1)) * 100).toFixed(1)\n  );\n  const scale = computed(() => Math.max(props.current, props.previous) * 1.1);\n  const rows = computed(() => [\n    { label: `This ${props.period}`, value: props.current, bar: \"bg-primary\" },\n    { label: `Previous ${props.period}`, value: props.previous, bar: \"bg-muted-foreground/40\" },\n  ]);\n</script>\n","category":"Stats","description":"Comparison stat showing the current period against the previous one. Features: Warning colored fancy icon, large value with a delta pill, paired bars for current and previous, plain language footnote","path":"App/Stats/BlockAppStats7.vue","components":["badge","card","fancy-icon"]},{"name":"App Stats 8","fileName":"BlockAppStats8.vue","file":"<template>\n  <!--\n    Stat card with a progress ring\n    Features: Ring that fills to the value with the percentage in the middle, outline fancy icon, legend for used and remaining, upgrade link\n  -->\n  <UiCard>\n    <UiCardContent class=\"flex items-center gap-6\">\n      <div class=\"relative size-28 shrink-0\">\n        <svg class=\"size-28 -rotate-90\" viewBox=\"0 0 100 100\" aria-hidden=\"true\">\n          <circle cx=\"50\" cy=\"50\" r=\"42\" fill=\"none\" stroke-width=\"10\" class=\"stroke-muted\" />\n          <circle\n            cx=\"50\"\n            cy=\"50\"\n            r=\"42\"\n            fill=\"none\"\n            stroke-width=\"10\"\n            stroke-linecap=\"round\"\n            class=\"stroke-primary transition-[stroke-dashoffset] duration-1000 ease-out\"\n            :stroke-dasharray=\"circumference\"\n            :stroke-dashoffset=\"offset\"\n          />\n        </svg>\n        <div class=\"absolute inset-0 flex flex-col items-center justify-center\">\n          <span class=\"text-2xl font-bold tabular-nums\">{{ props.percent }}%</span>\n          <span class=\"text-muted-foreground text-[10px] tracking-wide uppercase\">used</span>\n        </div>\n      </div>\n\n      <div class=\"min-w-0 flex-1 space-y-3\">\n        <div class=\"flex items-center gap-3\">\n          <slot name=\"icon\">\n            <UiFancyIcon :icon=\"props.icon\" theme=\"outline\" color=\"primary\" size=\"sm\" />\n          </slot>\n          <slot name=\"label\">\n            <p class=\"text-sm font-semibold\">{{ props.label }}</p>\n          </slot>\n        </div>\n        <ul class=\"space-y-1.5 text-sm\">\n          <li class=\"flex items-center justify-between\">\n            <span class=\"text-muted-foreground flex items-center gap-2\">\n              <span class=\"bg-primary size-2 rounded-full\" />\n              Used\n            </span>\n            <span class=\"font-medium tabular-nums\">{{ props.used }}</span>\n          </li>\n          <li class=\"flex items-center justify-between\">\n            <span class=\"text-muted-foreground flex items-center gap-2\">\n              <span class=\"bg-muted-foreground/30 size-2 rounded-full\" />\n              Available\n            </span>\n            <span class=\"font-medium tabular-nums\">{{ props.available }}</span>\n          </li>\n        </ul>\n        <NuxtLink\n          to=\"#\"\n          class=\"text-primary inline-flex items-center gap-1 text-sm font-medium underline-offset-4 hover:underline\"\n        >\n          Upgrade storage\n          <Icon name=\"lucide:arrow-right\" class=\"size-3.5\" />\n        </NuxtLink>\n      </div>\n    </UiCardContent>\n  </UiCard>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      icon?: string;\n      percent?: number;\n      used?: string;\n      available?: string;\n    }>(),\n    {\n      label: \"Storage\",\n      icon: \"lucide:hard-drive\",\n      percent: 72,\n      used: \"36 GB\",\n      available: \"14 GB\",\n    }\n  );\n\n  const circumference = 2 * Math.PI * 42;\n  // Starts empty and fills once mounted so the ring animates in.\n  const shown = ref(0);\n  const offset = computed(() => circumference * (1 - shown.value / 100));\n  onMounted(() => {\n    requestAnimationFrame(() => {\n      shown.value = props.percent;\n    });\n  });\n</script>\n","category":"Stats","description":"Stat card with a progress ring. Features: Ring that fills to the value with the percentage in the middle, outline fancy icon, legend for used and remaining, upgrade link","path":"App/Stats/BlockAppStats8.vue","components":["card","fancy-icon"]},{"name":"App Stats 9","fileName":"BlockAppStats9.vue","file":"<template>\n  <!--\n    Hero stat card on a dark gradient\n    Features: Always dark card, glass fancy icon, large value that counts up, trend, soft glowing sparkline, call to action\n  -->\n  <div\n    class=\"from-primary to-primary/80 text-primary-foreground relative overflow-hidden rounded-2xl bg-linear-to-br p-6 shadow-lg\"\n  >\n    <div\n      class=\"bg-primary-foreground/10 absolute -top-16 -right-10 size-56 rounded-full blur-3xl\"\n    />\n    <div class=\"relative flex items-start justify-between\">\n      <div>\n        <slot name=\"label\">\n          <p class=\"text-primary-foreground/70 text-sm font-medium\">{{ props.label }}</p>\n        </slot>\n        <slot name=\"value\">\n          <p class=\"mt-2 text-4xl font-bold tracking-tight tabular-nums\">${{ display }}</p>\n        </slot>\n        <p class=\"mt-3 flex items-center gap-2 text-sm\">\n          <span\n            class=\"bg-primary-foreground/15 flex items-center gap-1 rounded-full px-2 py-0.5 font-medium\"\n          >\n            <Icon name=\"lucide:arrow-up-right\" class=\"size-3.5\" />\n            {{ props.change }}\n          </span>\n          <span class=\"text-primary-foreground/70\">{{ props.comparison }}</span>\n        </p>\n      </div>\n      <slot name=\"icon\">\n        <span\n          class=\"bg-primary-foreground/15 flex size-12 items-center justify-center rounded-xl backdrop-blur\"\n        >\n          <Icon :name=\"props.icon\" class=\"size-6\" />\n        </span>\n      </slot>\n    </div>\n\n    <svg\n      viewBox=\"0 0 200 50\"\n      preserveAspectRatio=\"none\"\n      class=\"relative mt-6 h-16 w-full\"\n      aria-hidden=\"true\"\n    >\n      <path :d=\"spark.area\" class=\"fill-primary-foreground/10\" />\n      <path\n        :d=\"spark.line\"\n        fill=\"none\"\n        class=\"stroke-primary-foreground\"\n        stroke-width=\"2.5\"\n        stroke-linecap=\"round\"\n        stroke-linejoin=\"round\"\n        vector-effect=\"non-scaling-stroke\"\n      />\n    </svg>\n\n    <UiButton variant=\"secondary\" size=\"sm\" class=\"relative mt-5 w-full\">\n      View full report\n      <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n    </UiButton>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      label?: string;\n      value?: number;\n      change?: string;\n      comparison?: string;\n      icon?: string;\n      data?: number[];\n    }>(),\n    {\n      label: \"Net revenue\",\n      value: 128450,\n      change: \"18.5%\",\n      comparison: \"from last quarter\",\n      icon: \"lucide:badge-dollar-sign\",\n      data: () => [20, 26, 22, 34, 30, 41, 37, 48, 44, 56, 52, 64],\n    }\n  );\n\n  const source = ref(0);\n  const animated = useTransition(source, { duration: 1400 });\n  const display = computed(() => Math.round(animated.value).toLocaleString(\"en-US\"));\n  onMounted(() => {\n    source.value = props.value;\n  });\n\n  const spark = computed(() => {\n    const w = 200;\n    const h = 50;\n    const min = Math.min(...props.data);\n    const max = Math.max(...props.data);\n    const step = w / (props.data.length - 1);\n    const points = props.data.map((v, i) => [\n      i * step,\n      h - 6 - ((v - min) / (max - min || 1)) * (h - 14),\n    ]);\n    const line = points\n      .map(([x, y], i) => `${i ? \"L\" : \"M\"}${x!.toFixed(1)},${y!.toFixed(1)}`)\n      .join(\" \");\n    return { line, area: `${line} L${w},${h} L0,${h} Z` };\n  });\n</script>\n","category":"Stats","description":"Hero stat card on a dark gradient. Features: Always dark card, glass fancy icon, large value that counts up, trend, soft glowing sparkline, call to action","path":"App/Stats/BlockAppStats9.vue","components":["button"]},{"name":"Status Page 1","fileName":"BlockStatusPage1.vue","file":"<template>\n  <!--\n    Status page uptime overview\n    Features: An overall status banner that follows the worst service, a row for each service with a 90 day bar chart, an uptime percentage, the current status, a text summary for screen readers and a legend\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex items-center gap-3 rounded-xl border p-5\" :class=\"banner.tone\" role=\"status\">\n        <Icon :name=\"banner.icon\" class=\"size-6 shrink-0\" />\n        <div>\n          <h1 class=\"text-lg font-semibold\">{{ banner.title }}</h1>\n          <p class=\"text-sm opacity-90\">Updated {{ updated }}</p>\n        </div>\n      </div>\n\n      <ul class=\"mt-8 space-y-6\">\n        <li v-for=\"service in services\" :key=\"service.name\">\n          <div class=\"flex items-center justify-between gap-3\">\n            <p class=\"font-medium\">{{ service.name }}</p>\n            <p class=\"flex items-center gap-2 text-sm\">\n              <span class=\"text-muted-foreground tabular-nums\">{{ uptime(service) }}% uptime</span>\n              <UiBadge variant=\"soft\" shape=\"pill\" :color=\"meta[service.status].badge\">{{\n                meta[service.status].label\n              }}</UiBadge>\n            </p>\n          </div>\n          <div class=\"mt-2 flex h-9 gap-[2px]\" role=\"img\" :aria-label=\"summary(service)\">\n            <span\n              v-for=\"(day, index) in service.days\"\n              :key=\"index\"\n              class=\"flex-1 rounded-[2px]\"\n              :class=\"meta[day].bar\"\n              :title=\"`${dayLabel(index)}: ${meta[day].label}`\"\n            />\n          </div>\n          <div class=\"text-muted-foreground mt-1 flex justify-between text-xs\" aria-hidden=\"true\">\n            <span>90 days ago</span><span>Today</span>\n          </div>\n        </li>\n      </ul>\n\n      <ul class=\"mt-8 flex flex-wrap gap-4 text-xs\" aria-label=\"Legend\">\n        <li v-for=\"(item, key) in meta\" :key=\"key\" class=\"flex items-center gap-1.5\">\n          <span class=\"size-3 rounded-[2px]\" :class=\"item.bar\" />{{ item.label }}\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"up\" | \"degraded\" | \"down\";\n  type Service = { name: string; status: Status; days: Status[] };\n\n  const props = withDefaults(\n    defineProps<{\n      /** The current moment as `YYYY-MM-DDTHH:mm`. */\n      now?: string;\n      services?: Service[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      services: () => {\n        const build = (marks: Record<number, Status>): Status[] =>\n          Array.from({ length: 90 }, (_, index) => marks[index] ?? \"up\");\n        return [\n          {\n            name: \"API\",\n            status: \"up\",\n            days: build({ 12: \"degraded\", 47: \"down\", 48: \"degraded\", 71: \"degraded\" }),\n          },\n          {\n            name: \"Dashboard\",\n            status: \"degraded\",\n            days: build({ 30: \"degraded\", 63: \"degraded\", 89: \"degraded\" }),\n          },\n          { name: \"Webhooks\", status: \"up\", days: build({ 8: \"down\", 55: \"degraded\" }) },\n          { name: \"Email delivery\", status: \"up\", days: build({}) },\n        ];\n      },\n    }\n  );\n\n  const meta: Record<Status, { label: string; bar: string; badge: string }> = {\n    up: { label: \"Operational\", bar: \"bg-green-500\", badge: \"green\" },\n    degraded: { label: \"Degraded\", bar: \"bg-amber-400\", badge: \"amber\" },\n    down: { label: \"Outage\", bar: \"bg-red-500\", badge: \"red\" },\n  };\n\n  const worst = computed<Status>(() =>\n    props.services.some((service) => service.status === \"down\")\n      ? \"down\"\n      : props.services.some((service) => service.status === \"degraded\")\n        ? \"degraded\"\n        : \"up\"\n  );\n\n  const banner = computed(() => {\n    const tones = {\n      up: {\n        title: \"All systems operational\",\n        icon: \"lucide:circle-check\",\n        tone: \"border-green-200 bg-green-50 text-green-900 dark:border-green-500/30 dark:bg-green-500/10 dark:text-green-200\",\n      },\n      degraded: {\n        title: \"Some systems are degraded\",\n        icon: \"lucide:triangle-alert\",\n        tone: \"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-200\",\n      },\n      down: {\n        title: \"We are experiencing an outage\",\n        icon: \"lucide:circle-x\",\n        tone: \"border-red-200 bg-red-50 text-red-900 dark:border-red-500/30 dark:bg-red-500/10 dark:text-red-200\",\n      },\n    };\n    return tones[worst.value];\n  });\n\n  const uptime = (service: Service) => {\n    const score = service.days.reduce(\n      (sum, day) => sum + (day === \"up\" ? 1 : day === \"degraded\" ? 0.995 : 0),\n      0\n    );\n    return ((score / service.days.length) * 100).toFixed(2);\n  };\n\n  const summary = (service: Service) => {\n    const bad = service.days.filter((day) => day !== \"up\").length;\n    return `${service.name}: ${bad === 0 ? \"no incidents\" : `${bad} ${bad === 1 ? \"day\" : \"days\"} with issues`} in the last 90 days.`;\n  };\n\n  const dayLabel = (index: number) => {\n    const date = new Date(`${props.now.slice(0, 10)}T00:00:00Z`);\n    date.setUTCDate(date.getUTCDate() - (89 - index));\n    return date.toLocaleDateString(\"en-US\", { month: \"short\", day: \"numeric\", timeZone: \"UTC\" });\n  };\n\n  const updated = computed(\n    () =>\n      new Date(`${props.now}:00Z`).toLocaleString(\"en-US\", {\n        month: \"short\",\n        day: \"numeric\",\n        hour: \"numeric\",\n        minute: \"2-digit\",\n        timeZone: \"UTC\",\n      }) + \" UTC\"\n  );\n</script>\n","category":"StatusPage","description":"Status page uptime overview. Features: An overall status banner that follows the worst service, a row for each service with a 90 day bar chart, an uptime percentage, the current status, a text summary for screen readers and a legend","path":"Changelog/StatusPage/BlockStatusPage1.vue","components":["badge","container"]},{"name":"Status Page 2","fileName":"BlockStatusPage2.vue","file":"<template>\n  <!--\n    Incident history\n    Features: Past incidents grouped by day with an impact badge, a timeline of updates from investigating to resolved, a time range select, days without incidents listed too and a collapse toggle for each incident\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Incident history</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n            {{ list.length }} {{ list.length === 1 ? \"incident\" : \"incidents\" }} in the last\n            {{ range }} days\n          </p>\n        </div>\n        <UiSelect v-model=\"range\">\n          <UiSelectTrigger class=\"w-40\" aria-label=\"Time range\"><UiSelectValue /></UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem value=\"7\">Last 7 days</UiSelectItem>\n            <UiSelectItem value=\"30\">Last 30 days</UiSelectItem>\n            <UiSelectItem value=\"90\">Last 90 days</UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n\n      <div class=\"mt-8 space-y-8\" aria-live=\"polite\">\n        <section v-for=\"day in days\" :key=\"day.date\" :aria-label=\"longDate(day.date)\">\n          <h2 class=\"border-b pb-2 text-sm font-semibold\">{{ longDate(day.date) }}</h2>\n          <p v-if=\"!day.items.length\" class=\"text-muted-foreground pt-3 text-sm\">\n            No incidents reported.\n          </p>\n          <article v-for=\"incident in day.items\" :key=\"incident.id\" class=\"pt-4\">\n            <div class=\"flex flex-wrap items-center gap-2\">\n              <h3 class=\"font-medium\">{{ incident.title }}</h3>\n              <UiBadge variant=\"soft\" shape=\"pill\" :color=\"impact[incident.impact]\">{{\n                incident.impact\n              }}</UiBadge>\n              <UiButton\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"ml-auto h-7\"\n                :aria-expanded=\"!closed.has(incident.id)\"\n                :aria-label=\"`${closed.has(incident.id) ? 'Show' : 'Hide'} updates for ${incident.title}`\"\n                @click=\"toggle(incident.id)\"\n                ><Icon\n                  name=\"lucide:chevron-down\"\n                  class=\"size-4 transition-transform\"\n                  :class=\"closed.has(incident.id) ? '' : 'rotate-180'\"\n              /></UiButton>\n            </div>\n            <ol\n              v-if=\"!closed.has(incident.id)\"\n              class=\"border-border mt-3 ml-1 space-y-4 border-l pl-5\"\n            >\n              <li v-for=\"update in incident.updates\" :key=\"update.time\" class=\"relative\">\n                <span\n                  class=\"bg-muted-foreground/50 ring-background absolute top-1.5 -left-[1.6875rem] size-2 rounded-full ring-4\"\n                  aria-hidden=\"true\"\n                />\n                <p class=\"text-sm\">\n                  <span class=\"font-semibold\">{{ update.stage }}.</span> {{ update.text }}\n                </p>\n                <p class=\"text-muted-foreground text-xs\">{{ time(update.time) }}</p>\n              </li>\n            </ol>\n          </article>\n        </section>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Incident = {\n    id: string;\n    date: string;\n    title: string;\n    impact: \"minor\" | \"major\" | \"maintenance\";\n    updates: { stage: string; text: string; time: string }[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      incidents?: Incident[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      incidents: () => [\n        {\n          id: \"i1\",\n          date: \"2026-10-16\",\n          title: \"Elevated API latency\",\n          impact: \"minor\",\n          updates: [\n            {\n              stage: \"Resolved\",\n              text: \"Latency is back to normal. We scaled up the database.\",\n              time: \"2026-10-16T14:05\",\n            },\n            {\n              stage: \"Monitoring\",\n              text: \"A fix was deployed and we are watching the numbers.\",\n              time: \"2026-10-16T13:20\",\n            },\n            {\n              stage: \"Identified\",\n              text: \"A slow query on the reports table caused the delay.\",\n              time: \"2026-10-16T12:48\",\n            },\n            {\n              stage: \"Investigating\",\n              text: \"We are looking into slow responses from the API.\",\n              time: \"2026-10-16T12:30\",\n            },\n          ],\n        },\n        {\n          id: \"i2\",\n          date: \"2026-10-09\",\n          title: \"Webhook deliveries failing\",\n          impact: \"major\",\n          updates: [\n            {\n              stage: \"Resolved\",\n              text: \"All failed webhooks were retried and delivered.\",\n              time: \"2026-10-09T09:40\",\n            },\n            {\n              stage: \"Identified\",\n              text: \"A certificate expired on our delivery service.\",\n              time: \"2026-10-09T08:55\",\n            },\n            {\n              stage: \"Investigating\",\n              text: \"Some webhooks are failing to deliver.\",\n              time: \"2026-10-09T08:30\",\n            },\n          ],\n        },\n        {\n          id: \"i3\",\n          date: \"2026-09-27\",\n          title: \"Scheduled database maintenance\",\n          impact: \"maintenance\",\n          updates: [\n            {\n              stage: \"Completed\",\n              text: \"Maintenance finished with no downtime.\",\n              time: \"2026-09-27T03:30\",\n            },\n            {\n              stage: \"In progress\",\n              text: \"We started upgrading the primary database.\",\n              time: \"2026-09-27T03:00\",\n            },\n          ],\n        },\n        {\n          id: \"i4\",\n          date: \"2026-08-30\",\n          title: \"Dashboard not loading for some users\",\n          impact: \"minor\",\n          updates: [\n            { stage: \"Resolved\", text: \"A bad deploy was rolled back.\", time: \"2026-08-30T17:10\" },\n            {\n              stage: \"Investigating\",\n              text: \"Some users see a blank dashboard.\",\n              time: \"2026-08-30T16:42\",\n            },\n          ],\n        },\n      ],\n    }\n  );\n\n  const impact = { minor: \"amber\", major: \"red\", maintenance: \"blue\" } as const;\n  const range = ref(\"30\");\n  const closed = ref(new Set<string>());\n\n  const cutoff = computed(() => {\n    const date = new Date(`${props.today}T00:00:00Z`);\n    date.setUTCDate(date.getUTCDate() - Number(range.value));\n    return date.toISOString().slice(0, 10);\n  });\n  const list = computed(() => props.incidents.filter((incident) => incident.date > cutoff.value));\n\n  /** Days with incidents, newest first, and the quiet days in between up to the first one shown. */\n  const days = computed(() => {\n    const dates = [...new Set(list.value.map((incident) => incident.date))].sort().reverse();\n    const quiet = new Set<string>();\n    for (let offset = 0; offset < Math.min(Number(range.value), 5); offset++) {\n      const date = new Date(`${props.today}T00:00:00Z`);\n      date.setUTCDate(date.getUTCDate() - offset);\n      quiet.add(date.toISOString().slice(0, 10));\n    }\n    return [...new Set([...quiet, ...dates])]\n      .sort()\n      .reverse()\n      .map((date) => ({ date, items: list.value.filter((incident) => incident.date === date) }));\n  });\n\n  function toggle(id: string) {\n    const next = new Set(closed.value);\n    if (next.has(id)) next.delete(id);\n    else next.add(id);\n    closed.value = next;\n  }\n\n  const longDate = (iso: string) =>\n    new Date(`${iso}T00:00:00Z`).toLocaleDateString(\"en-US\", {\n      month: \"long\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  const time = (iso: string) =>\n    new Date(`${iso}:00Z`).toLocaleTimeString(\"en-US\", {\n      hour: \"numeric\",\n      minute: \"2-digit\",\n      timeZone: \"UTC\",\n    }) + \" UTC\";\n</script>\n","category":"StatusPage","description":"Incident history. Features: Past incidents grouped by day with an impact badge, a timeline of updates from investigating to resolved, a time range select, days without incidents listed too and a collapse toggle for each incident","path":"Changelog/StatusPage/BlockStatusPage2.vue","components":["badge","button","container","select"]},{"name":"Status Page 3","fileName":"BlockStatusPage3.vue","file":"<template>\n  <!--\n    Component status list\n    Features: Components grouped by area with a status for each one, groups that collapse to hide their parts, an only show issues switch, a count of operational components, colored status icons with text and a last checked time\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">System status</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n            {{ ok }} of {{ total }} components operational\n          </p>\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <UiSwitch id=\"issues-only\" v-model=\"issuesOnly\" />\n          <UiLabel for=\"issues-only\" class=\"text-sm font-normal\">Only show issues</UiLabel>\n        </div>\n      </div>\n\n      <div class=\"mt-6 space-y-4\" aria-live=\"polite\">\n        <UiCard v-for=\"group in visible\" :key=\"group.name\" class=\"gap-0 py-0\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-accent/40 focus-visible:bg-accent/40 flex w-full items-center gap-3 px-5 py-4 text-left outline-none\"\n            :aria-expanded=\"!closed.has(group.name)\"\n            @click=\"toggle(group.name)\"\n          >\n            <Icon\n              name=\"lucide:chevron-right\"\n              class=\"text-muted-foreground size-4 transition-transform\"\n              :class=\"closed.has(group.name) ? '' : 'rotate-90'\"\n            />\n            <span class=\"flex-1 font-medium\">{{ group.name }}</span>\n            <span class=\"flex items-center gap-1.5 text-sm\" :class=\"meta[group.status].text\">\n              <Icon :name=\"meta[group.status].icon\" class=\"size-4\" />{{ meta[group.status].label }}\n            </span>\n          </button>\n          <ul v-if=\"!closed.has(group.name)\" class=\"divide-y border-t\">\n            <li\n              v-for=\"part in group.parts\"\n              :key=\"part.name\"\n              class=\"flex items-center gap-3 px-5 py-3 pl-12 text-sm\"\n            >\n              <span class=\"flex-1\">{{ part.name }}</span>\n              <span v-if=\"part.note\" class=\"text-muted-foreground hidden text-xs sm:block\">{{\n                part.note\n              }}</span>\n              <span class=\"flex items-center gap-1.5\" :class=\"meta[part.status].text\">\n                <Icon :name=\"meta[part.status].icon\" class=\"size-4\" />{{ meta[part.status].label }}\n              </span>\n            </li>\n          </ul>\n        </UiCard>\n        <p\n          v-if=\"!visible.length\"\n          class=\"text-muted-foreground rounded-xl border border-dashed py-12 text-center text-sm\"\n        >\n          <Icon name=\"lucide:circle-check\" class=\"mx-auto mb-2 size-6 text-green-500\" />\n          Everything is working. There are no issues to show.\n        </p>\n      </div>\n      <p class=\"text-muted-foreground mt-4 text-xs\">Last checked {{ checked }}</p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"up\" | \"degraded\" | \"down\" | \"maintenance\";\n  type Part = { name: string; status: Status; note?: string };\n  type Group = { name: string; parts: Part[] };\n\n  const props = withDefaults(\n    defineProps<{\n      checked?: string;\n      groups?: Group[];\n    }>(),\n    {\n      checked: \"10:19 AM UTC, 1 minute ago\",\n      groups: () => [\n        {\n          name: \"API\",\n          parts: [\n            { name: \"REST API\", status: \"up\" },\n            { name: \"Webhooks\", status: \"degraded\", note: \"Delivery delays of about 2 minutes\" },\n            { name: \"Authentication\", status: \"up\" },\n          ],\n        },\n        {\n          name: \"Dashboard\",\n          parts: [\n            { name: \"Web app\", status: \"up\" },\n            { name: \"Reports\", status: \"up\" },\n            { name: \"Exports\", status: \"maintenance\", note: \"Back at 12:00 UTC\" },\n          ],\n        },\n        {\n          name: \"Infrastructure\",\n          parts: [\n            { name: \"Database\", status: \"up\" },\n            { name: \"File storage\", status: \"up\" },\n            { name: \"Email delivery\", status: \"up\" },\n          ],\n        },\n      ],\n    }\n  );\n\n  const meta: Record<Status, { label: string; icon: string; text: string }> = {\n    up: {\n      label: \"Operational\",\n      icon: \"lucide:circle-check\",\n      text: \"text-green-600 dark:text-green-400\",\n    },\n    degraded: {\n      label: \"Degraded\",\n      icon: \"lucide:triangle-alert\",\n      text: \"text-amber-600 dark:text-amber-400\",\n    },\n    down: { label: \"Outage\", icon: \"lucide:circle-x\", text: \"text-red-600 dark:text-red-400\" },\n    maintenance: {\n      label: \"Maintenance\",\n      icon: \"lucide:wrench\",\n      text: \"text-blue-600 dark:text-blue-400\",\n    },\n  };\n  const rank: Status[] = [\"up\", \"maintenance\", \"degraded\", \"down\"];\n\n  const issuesOnly = ref(false);\n  const closed = ref(new Set<string>());\n\n  const all = computed(() =>\n    props.groups.map((group) => ({\n      ...group,\n      status: group.parts.reduce<Status>(\n        (worst, part) => (rank.indexOf(part.status) > rank.indexOf(worst) ? part.status : worst),\n        \"up\"\n      ),\n    }))\n  );\n  const visible = computed(() =>\n    all.value\n      .map((group) => ({\n        ...group,\n        parts: issuesOnly.value ? group.parts.filter((part) => part.status !== \"up\") : group.parts,\n      }))\n      .filter((group) => group.parts.length)\n  );\n  const total = computed(() => props.groups.reduce((sum, group) => sum + group.parts.length, 0));\n  const ok = computed(() =>\n    props.groups.reduce(\n      (sum, group) => sum + group.parts.filter((part) => part.status === \"up\").length,\n      0\n    )\n  );\n\n  function toggle(name: string) {\n    const next = new Set(closed.value);\n    if (next.has(name)) next.delete(name);\n    else next.add(name);\n    closed.value = next;\n  }\n</script>\n","category":"StatusPage","description":"Component status list. Features: Components grouped by area with a status for each one, groups that collapse to hide their parts, an only show issues switch, a count of operational components, colored status icons with text and a last checked time","path":"Changelog/StatusPage/BlockStatusPage3.vue","components":["card","container","label","switch"]},{"name":"Status Page 4","fileName":"BlockStatusPage4.vue","file":"<template>\n  <!--\n    Subscribe to status updates\n    Features: Tabs for email, webhook and RSS, a list of components to follow with select all, email and webhook validation, a confirmation state with the chosen components and a copy button for the feed address\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-lg\">\n      <UiCardHeader>\n        <UiCardTitle>Subscribe to updates</UiCardTitle>\n        <UiCardDescription>Get notified when an incident is created or resolved.</UiCardDescription>\n      </UiCardHeader>\n      <UiCardContent>\n        <div v-if=\"done\" class=\"space-y-3 text-center\" role=\"status\">\n          <span\n            class=\"mx-auto grid size-12 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n            ><Icon name=\"lucide:check\" class=\"size-6\"\n          /></span>\n          <p class=\"font-medium\">You are subscribed</p>\n          <p class=\"text-muted-foreground text-sm\">{{ done }}</p>\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"done = ''\">Change subscription</UiButton>\n        </div>\n        <UiTabs v-else v-model=\"tab\">\n          <UiTabsList class=\"grid w-full grid-cols-3\">\n            <UiTabsTrigger value=\"email\">Email</UiTabsTrigger>\n            <UiTabsTrigger value=\"webhook\">Webhook</UiTabsTrigger>\n            <UiTabsTrigger value=\"rss\">RSS</UiTabsTrigger>\n          </UiTabsList>\n\n          <UiTabsContent value=\"email\" class=\"space-y-4\">\n            <form class=\"space-y-4\" novalidate @submit.prevent=\"subscribeEmail\">\n              <div class=\"space-y-1.5\">\n                <UiLabel for=\"status-email\">Email address</UiLabel>\n                <UiInput\n                  id=\"status-email\"\n                  v-model=\"email\"\n                  type=\"email\"\n                  placeholder=\"you@example.com\"\n                  :aria-invalid=\"!!errors.email\"\n                />\n                <p v-if=\"errors.email\" class=\"text-destructive text-sm\">{{ errors.email }}</p>\n              </div>\n              <fieldset class=\"space-y-2\">\n                <legend class=\"text-sm font-medium\">Components</legend>\n                <div class=\"flex items-center gap-2\">\n                  <UiCheckbox\n                    id=\"status-all\"\n                    :model-value=\"all ? true : picked.size ? 'indeterminate' : false\"\n                    @update:model-value=\"toggleAll\"\n                  />\n                  <UiLabel for=\"status-all\" class=\"font-normal\">All components</UiLabel>\n                </div>\n                <div v-for=\"item in components\" :key=\"item\" class=\"flex items-center gap-2 pl-6\">\n                  <UiCheckbox\n                    :id=\"`status-${item}`\"\n                    :model-value=\"picked.has(item)\"\n                    @update:model-value=\"toggle(item)\"\n                  />\n                  <UiLabel :for=\"`status-${item}`\" class=\"font-normal\">{{ item }}</UiLabel>\n                </div>\n                <p v-if=\"errors.components\" class=\"text-destructive text-sm\">\n                  {{ errors.components }}\n                </p>\n              </fieldset>\n              <UiButton type=\"submit\" class=\"w-full\">Subscribe</UiButton>\n            </form>\n          </UiTabsContent>\n\n          <UiTabsContent value=\"webhook\" class=\"space-y-4\">\n            <form class=\"space-y-3\" novalidate @submit.prevent=\"subscribeWebhook\">\n              <div class=\"space-y-1.5\">\n                <UiLabel for=\"status-webhook\">Endpoint URL</UiLabel>\n                <UiInput\n                  id=\"status-webhook\"\n                  v-model=\"webhook\"\n                  type=\"url\"\n                  placeholder=\"https://example.com/hooks/status\"\n                  :aria-invalid=\"!!errors.webhook\"\n                />\n                <p v-if=\"errors.webhook\" class=\"text-destructive text-sm\">{{ errors.webhook }}</p>\n              </div>\n              <p class=\"text-muted-foreground text-xs\">\n                We send a JSON POST request with the incident and the affected components.\n              </p>\n              <UiButton type=\"submit\" class=\"w-full\">Add webhook</UiButton>\n            </form>\n          </UiTabsContent>\n\n          <UiTabsContent value=\"rss\" class=\"space-y-3\">\n            <UiLabel for=\"status-rss\">Feed address</UiLabel>\n            <div class=\"flex gap-2\">\n              <UiInput id=\"status-rss\" :model-value=\"rss\" readonly class=\"font-mono text-sm\" />\n              <UiButton variant=\"outline\" @click=\"copy(rss)\"\n                ><Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />{{\n                  copied ? \"Copied\" : \"Copy\"\n                }}</UiButton\n              >\n            </div>\n            <p class=\"text-muted-foreground text-xs\">Add this address to your feed reader.</p>\n          </UiTabsContent>\n        </UiTabs>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      components?: string[];\n      rss?: string;\n    }>(),\n    {\n      components: () => [\"API\", \"Dashboard\", \"Webhooks\", \"Email delivery\"],\n      rss: \"https://status.example.com/history.rss\",\n    }\n  );\n\n  const tab = ref(\"email\");\n  const email = ref(\"\");\n  const webhook = ref(\"\");\n  const picked = ref(new Set<string>(props.components));\n  const errors = reactive({ email: \"\", components: \"\", webhook: \"\" });\n  const done = ref(\"\");\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  const all = computed(() => picked.value.size === props.components.length);\n\n  function toggle(item: string) {\n    const next = new Set(picked.value);\n    if (next.has(item)) next.delete(item);\n    else next.add(item);\n    picked.value = next;\n  }\n\n  function toggleAll() {\n    picked.value = all.value ? new Set() : new Set(props.components);\n  }\n\n  function subscribeEmail() {\n    errors.email = /^\\S+@\\S+\\.\\S+$/.test(email.value.trim()) ? \"\" : \"Enter a valid email address.\";\n    errors.components = picked.value.size ? \"\" : \"Pick at least one component.\";\n    if (errors.email || errors.components) return;\n    done.value = `We will email ${email.value.trim()} about ${all.value ? \"all components\" : [...picked.value].join(\", \")}.`;\n  }\n\n  function subscribeWebhook() {\n    let url: URL | null = null;\n    try {\n      url = new URL(webhook.value.trim());\n    } catch {\n      url = null;\n    }\n    errors.webhook = url && url.protocol === \"https:\" ? \"\" : \"Enter an https URL.\";\n    if (errors.webhook) return;\n    done.value = `We will send updates to ${url!.hostname}.`;\n  }\n</script>\n","category":"StatusPage","description":"Subscribe to status updates. Features: Tabs for email, webhook and RSS, a list of components to follow with select all, email and webhook validation, a confirmation state with the chosen components and a copy button for the feed address","path":"Changelog/StatusPage/BlockStatusPage4.vue","components":["button","card","checkbox","container","input","label","tabs"]},{"name":"Storage 1","fileName":"BlockStorage1.vue","file":"<template>\n  <!--\n    Storage usage meter\n    Features: Used and total storage in large numbers, a segmented bar split by file type with a text alternative, a legend with the size of each type, the free space left and manage and upgrade buttons\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-lg\">\n      <UiCardHeader>\n        <UiCardTitle>Storage</UiCardTitle>\n        <UiCardDescription>{{ plan }} plan</UiCardDescription>\n      </UiCardHeader>\n      <UiCardContent class=\"space-y-5\">\n        <div>\n          <p class=\"text-3xl font-bold tabular-nums\">\n            {{ used.toFixed(1) }} GB\n            <span class=\"text-muted-foreground text-base font-normal\">of {{ total }} GB used</span>\n          </p>\n          <div\n            class=\"bg-muted mt-3 flex h-3 overflow-hidden rounded-full\"\n            role=\"img\"\n            :aria-label=\"summary\"\n          >\n            <span\n              v-for=\"segment in segments\"\n              :key=\"segment.label\"\n              class=\"h-full first:rounded-l-full\"\n              :class=\"segment.color\"\n              :style=\"{ width: `${(segment.gb / total) * 100}%` }\"\n            />\n          </div>\n          <p class=\"text-muted-foreground mt-2 text-sm\">{{ (total - used).toFixed(1) }} GB free</p>\n        </div>\n        <ul class=\"grid grid-cols-2 gap-x-6 gap-y-2 text-sm\">\n          <li v-for=\"segment in segments\" :key=\"segment.label\" class=\"flex items-center gap-2\">\n            <span class=\"size-2.5 shrink-0 rounded-full\" :class=\"segment.color\" />\n            <span class=\"flex-1\">{{ segment.label }}</span>\n            <span class=\"text-muted-foreground tabular-nums\">{{ segment.gb.toFixed(1) }} GB</span>\n          </li>\n        </ul>\n      </UiCardContent>\n      <UiCardFooter class=\"gap-2 border-t\">\n        <UiButton variant=\"outline\" @click=\"useSonner.info('Open the storage manager here')\"\n          >Manage storage</UiButton\n        >\n        <UiButton @click=\"useSonner.info('Open the plans page here')\">Get more space</UiButton>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Segment = { label: string; gb: number; color: string };\n\n  const props = withDefaults(\n    defineProps<{\n      plan?: string;\n      total?: number;\n      segments?: Segment[];\n    }>(),\n    {\n      plan: \"Free\",\n      total: 15,\n      segments: () => [\n        { label: \"Documents\", gb: 1.2, color: \"bg-blue-500\" },\n        { label: \"Images\", gb: 3.1, color: \"bg-violet-500\" },\n        { label: \"Videos\", gb: 2.4, color: \"bg-pink-500\" },\n        { label: \"Backups\", gb: 0.5, color: \"bg-amber-500\" },\n        { label: \"Other\", gb: 0.2, color: \"bg-slate-400\" },\n      ],\n    }\n  );\n\n  const used = computed(() => props.segments.reduce((sum, segment) => sum + segment.gb, 0));\n  const summary = computed(\n    () =>\n      `${used.value.toFixed(1)} of ${props.total} gigabytes used. ` +\n      props.segments.map((segment) => `${segment.label} ${segment.gb.toFixed(1)}`).join(\", \")\n  );\n</script>\n","category":"Storage","description":"Storage usage meter. Features: Used and total storage in large numbers, a segmented bar split by file type with a text alternative, a legend with the size of each type, the free space left and manage and upgrade buttons","path":"Files/Storage/BlockStorage1.vue","components":["button","card","container"]},{"name":"Storage 2","fileName":"BlockStorage2.vue","file":"<template>\n  <!--\n    Storage breakdown by type\n    Features: A row for each kind of file with an icon, a bar sized against the largest type, the size or file count, a switch between size and file count, rows sorted by the chosen metric and a review button for each type\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex flex-wrap items-center justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">What is using your space</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">{{ totalLabel }}</p>\n        </div>\n        <UiToggleGroup\n          :model-value=\"metric\"\n          type=\"single\"\n          variant=\"outline\"\n          size=\"sm\"\n          aria-label=\"Show by\"\n          @update:model-value=\"(value) => (metric = (value as 'size' | 'count') || 'size')\"\n        >\n          <UiToggleGroupItem value=\"size\">Size</UiToggleGroupItem>\n          <UiToggleGroupItem value=\"count\">File count</UiToggleGroupItem>\n        </UiToggleGroup>\n      </div>\n\n      <ul class=\"mt-6 space-y-4\" aria-live=\"polite\">\n        <li v-for=\"row in rows\" :key=\"row.label\" class=\"flex items-center gap-4\">\n          <span class=\"grid size-10 shrink-0 place-items-center rounded-lg\" :class=\"row.tint\"\n            ><Icon :name=\"row.icon\" class=\"size-5\"\n          /></span>\n          <div class=\"min-w-0 flex-1\">\n            <div class=\"flex items-baseline justify-between gap-3\">\n              <p class=\"text-sm font-medium\">{{ row.label }}</p>\n              <p class=\"text-muted-foreground text-sm tabular-nums\">{{ valueLabel(row) }}</p>\n            </div>\n            <div class=\"bg-muted mt-1.5 h-2 overflow-hidden rounded-full\" role=\"presentation\">\n              <div\n                class=\"h-full rounded-full transition-[width]\"\n                :class=\"row.bar\"\n                :style=\"{ width: `${(valueOf(row) / max) * 100}%` }\"\n              />\n            </div>\n          </div>\n          <UiButton\n            variant=\"ghost\"\n            size=\"sm\"\n            :aria-label=\"`Review ${row.label}`\"\n            @click=\"useSonner.info(`Review ${row.label} here`)\"\n            >Review</UiButton\n          >\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Row = { label: string; icon: string; tint: string; bar: string; gb: number; files: number };\n\n  const props = withDefaults(\n    defineProps<{\n      rows?: Row[];\n    }>(),\n    {\n      rows: () => [\n        {\n          label: \"Images\",\n          icon: \"lucide:image\",\n          tint: \"bg-violet-100 text-violet-700 dark:bg-violet-500/20 dark:text-violet-300\",\n          bar: \"bg-violet-500\",\n          gb: 3.1,\n          files: 2840,\n        },\n        {\n          label: \"Videos\",\n          icon: \"lucide:video\",\n          tint: \"bg-pink-100 text-pink-700 dark:bg-pink-500/20 dark:text-pink-300\",\n          bar: \"bg-pink-500\",\n          gb: 2.4,\n          files: 36,\n        },\n        {\n          label: \"Documents\",\n          icon: \"lucide:file-text\",\n          tint: \"bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300\",\n          bar: \"bg-blue-500\",\n          gb: 1.2,\n          files: 913,\n        },\n        {\n          label: \"Backups\",\n          icon: \"lucide:archive\",\n          tint: \"bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300\",\n          bar: \"bg-amber-500\",\n          gb: 0.5,\n          files: 12,\n        },\n        {\n          label: \"Audio\",\n          icon: \"lucide:music\",\n          tint: \"bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\",\n          bar: \"bg-green-500\",\n          gb: 0.3,\n          files: 74,\n        },\n      ],\n    }\n  );\n\n  const metric = ref<\"size\" | \"count\">(\"size\");\n\n  const valueOf = (row: Row) => (metric.value === \"size\" ? row.gb : row.files);\n  const rows = computed(() => [...props.rows].sort((a, b) => valueOf(b) - valueOf(a)));\n  const max = computed(() => Math.max(...props.rows.map(valueOf), 1));\n  const valueLabel = (row: Row) =>\n    metric.value === \"size\"\n      ? `${row.gb.toFixed(1)} GB`\n      : `${row.files.toLocaleString(\"en-US\")} files`;\n  const totalLabel = computed(() =>\n    metric.value === \"size\"\n      ? `${props.rows.reduce((sum, row) => sum + row.gb, 0).toFixed(1)} GB in total`\n      : `${props.rows.reduce((sum, row) => sum + row.files, 0).toLocaleString(\"en-US\")} files in total`\n  );\n</script>\n","category":"Storage","description":"Storage breakdown by type. Features: A row for each kind of file with an icon, a bar sized against the largest type, the size or file count, a switch between size and file count, rows sorted by the chosen metric and a review button for each type","path":"Files/Storage/BlockStorage2.vue","components":["button","container","toggle-group"]},{"name":"Storage 3","fileName":"BlockStorage3.vue","file":"<template>\n  <!--\n    Storage plan upgrade prompt\n    Features: Current usage with a warning when space is nearly full, plan cards with storage and price, a monthly and yearly switch that changes the price and shows the saving, a selected plan state and an upgrade button with a summary\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"text-center\">\n        <h1 class=\"text-3xl font-bold tracking-tight\">You are running out of space</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          You have used {{ used }} GB of {{ current }} GB. Pick a plan to keep uploading.\n        </p>\n        <div class=\"mx-auto mt-5 max-w-sm\">\n          <UiProgress :model-value=\"(used / current) * 100\" class=\"h-2\" aria-label=\"Storage used\" />\n        </div>\n      </div>\n\n      <div class=\"mt-6 flex items-center justify-center gap-3\">\n        <span class=\"text-sm\" :class=\"yearly ? 'text-muted-foreground' : 'font-medium'\"\n          >Monthly</span\n        >\n        <UiSwitch v-model=\"yearly\" aria-label=\"Bill yearly\" />\n        <span class=\"text-sm\" :class=\"yearly ? 'font-medium' : 'text-muted-foreground'\"\n          >Yearly</span\n        >\n        <UiBadge variant=\"soft\" color=\"green\" shape=\"pill\">Save {{ saving }}%</UiBadge>\n      </div>\n\n      <UiRadioGroup v-model=\"picked\" class=\"mt-6 grid gap-4 sm:grid-cols-2\" aria-label=\"Plan\">\n        <label\n          v-for=\"plan in plans\"\n          :key=\"plan.id\"\n          class=\"hover:bg-accent/40 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5 relative flex cursor-pointer flex-col gap-3 rounded-2xl border p-5 transition-colors\"\n        >\n          <span class=\"flex items-start justify-between gap-3\">\n            <span>\n              <span class=\"block text-lg font-semibold\">{{ plan.name }}</span>\n              <span class=\"text-muted-foreground block text-sm\">{{ plan.storage }} of storage</span>\n            </span>\n            <UiRadioGroupItem :value=\"plan.id\" :aria-label=\"plan.name\" />\n          </span>\n          <span class=\"text-3xl font-bold tabular-nums\">\n            {{ money(price(plan))\n            }}<span class=\"text-muted-foreground text-sm font-normal\"> / month</span>\n          </span>\n          <ul class=\"text-muted-foreground space-y-1.5 text-sm\">\n            <li v-for=\"line in plan.features\" :key=\"line\" class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:check\" class=\"size-4 shrink-0 text-green-500\" />{{ line }}\n            </li>\n          </ul>\n        </label>\n      </UiRadioGroup>\n\n      <div class=\"mt-6 flex flex-col items-center gap-3\">\n        <p class=\"text-sm\" aria-live=\"polite\">\n          {{ chosen.name }}: <span class=\"font-semibold\">{{ money(billed) }}</span> billed\n          {{ yearly ? \"every year\" : \"every month\" }}\n        </p>\n        <UiButton size=\"lg\" @click=\"useSonner.success(`Upgrading to ${chosen.name}`)\"\n          >Upgrade to {{ chosen.name }}</UiButton\n        >\n        <UiButton variant=\"link\" size=\"sm\" @click=\"useSonner.info('Open the storage manager here')\"\n          >Free up space instead</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Plan = { id: string; name: string; storage: string; monthly: number; features: string[] };\n\n  const props = withDefaults(\n    defineProps<{\n      used?: number;\n      current?: number;\n      saving?: number;\n      plans?: Plan[];\n    }>(),\n    {\n      used: 13.6,\n      current: 15,\n      saving: 20,\n      plans: () => [\n        {\n          id: \"pro\",\n          name: \"Pro\",\n          storage: \"200 GB\",\n          monthly: 4,\n          features: [\n            \"Version history for 30 days\",\n            \"Share links with passwords\",\n            \"Priority support\",\n          ],\n        },\n        {\n          id: \"business\",\n          name: \"Business\",\n          storage: \"2 TB\",\n          monthly: 12,\n          features: [\n            \"Version history for 1 year\",\n            \"Admin controls and audit log\",\n            \"Single sign on\",\n          ],\n        },\n      ],\n    }\n  );\n\n  const money = (value: number) => `$${value.toFixed(2).replace(/\\.00$/, \"\")}`;\n  const yearly = ref(true);\n  const picked = ref(props.plans[0]?.id ?? \"\");\n\n  const price = (plan: Plan) =>\n    yearly.value ? Math.round(plan.monthly * (1 - props.saving / 100) * 100) / 100 : plan.monthly;\n  const chosen = computed(\n    () => props.plans.find((plan) => plan.id === picked.value) ?? props.plans[0]!\n  );\n  const billed = computed(() =>\n    yearly.value ? Math.round(price(chosen.value) * 12 * 100) / 100 : chosen.value.monthly\n  );\n</script>\n","category":"Storage","description":"Storage plan upgrade prompt. Features: Current usage with a warning when space is nearly full, plan cards with storage and price, a monthly and yearly switch that changes the price and shows the saving, a selected plan state and an upgrade button with a summary","path":"Files/Storage/BlockStorage3.vue","components":["badge","button","container","progress","radio-group","switch"]},{"name":"Storage 4","fileName":"BlockStorage4.vue","file":"<template>\n  <!--\n    Quota warning banners\n    Features: A banner that changes with how full the storage is, a heads up at 80 percent, a warning at 90 percent and a full state at 100 percent that pauses uploads, a dismiss button for the lower levels and free up space and upgrade actions, with a demo slider to preview each state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl space-y-6\">\n      <div\n        v-if=\"state\"\n        :key=\"state.level\"\n        class=\"flex items-start gap-3 rounded-xl border p-4\"\n        :class=\"state.tone\"\n        :role=\"state.level === 'full' ? 'alert' : 'status'\"\n      >\n        <Icon :name=\"state.icon\" class=\"mt-0.5 size-5 shrink-0\" />\n        <div class=\"min-w-0 flex-1\">\n          <p class=\"text-sm font-semibold\">{{ state.title }}</p>\n          <p class=\"mt-0.5 text-sm opacity-90\">{{ state.body }}</p>\n          <div class=\"mt-3 flex flex-wrap gap-2\">\n            <UiButton\n              size=\"sm\"\n              variant=\"outline\"\n              class=\"bg-background/60\"\n              @click=\"useSonner.info('Open the storage manager here')\"\n              >Free up space</UiButton\n            >\n            <UiButton size=\"sm\" @click=\"useSonner.info('Open the plans page here')\"\n              >Upgrade</UiButton\n            >\n          </div>\n        </div>\n        <UiButton\n          v-if=\"state.level !== 'full'\"\n          variant=\"ghost\"\n          size=\"icon-sm\"\n          aria-label=\"Dismiss\"\n          @click=\"dismissed = state.level\"\n          ><Icon name=\"lucide:x\" class=\"size-4\"\n        /></UiButton>\n      </div>\n\n      <UiCard>\n        <UiCardContent class=\"space-y-4\">\n          <div class=\"flex items-center justify-between text-sm\">\n            <span class=\"font-medium\">Your storage</span>\n            <span class=\"tabular-nums\">{{ usedGb.toFixed(1) }} of {{ total }} GB</span>\n          </div>\n          <UiProgress :model-value=\"percent\" class=\"h-2.5\" aria-label=\"Storage used\" />\n          <UiButton\n            :disabled=\"percent >= 100\"\n            class=\"w-full\"\n            @click=\"useSonner.success('Upload started')\"\n          >\n            <Icon name=\"lucide:upload\" class=\"size-4\" />{{\n              percent >= 100 ? \"Uploads paused\" : \"Upload a file\"\n            }}\n          </UiButton>\n        </UiCardContent>\n      </UiCard>\n\n      <div class=\"rounded-xl border border-dashed p-4\">\n        <div class=\"flex items-center justify-between gap-3\">\n          <UiLabel for=\"demo-usage\" class=\"text-sm\">Preview usage (demo only)</UiLabel>\n          <span class=\"text-muted-foreground text-sm tabular-nums\">{{ percent }}%</span>\n        </div>\n        <input\n          id=\"demo-usage\"\n          v-model.number=\"percent\"\n          type=\"range\"\n          min=\"40\"\n          max=\"100\"\n          step=\"1\"\n          class=\"accent-primary mt-2 w-full\"\n        />\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Level = \"notice\" | \"warning\" | \"full\";\n\n  const props = withDefaults(\n    defineProps<{\n      total?: number;\n      /** Starting usage as a percent. */\n      usage?: number;\n    }>(),\n    { total: 15, usage: 92 }\n  );\n\n  const percent = ref(props.usage);\n  const dismissed = ref<Level | \"\">(\"\");\n  const usedGb = computed(() => (percent.value / 100) * props.total);\n\n  const level = computed<Level | null>(() =>\n    percent.value >= 100\n      ? \"full\"\n      : percent.value >= 90\n        ? \"warning\"\n        : percent.value >= 80\n          ? \"notice\"\n          : null\n  );\n\n  watch(level, () => (dismissed.value = \"\"));\n\n  const states: Record<Level, { icon: string; title: string; body: string; tone: string }> = {\n    notice: {\n      icon: \"lucide:info\",\n      title: \"You have used 80 percent of your storage\",\n      body: \"You still have room, but now is a good time to clear out what you do not need.\",\n      tone: \"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-500/30 dark:bg-blue-500/10 dark:text-blue-200\",\n    },\n    warning: {\n      icon: \"lucide:triangle-alert\",\n      title: \"Your storage is almost full\",\n      body: \"At 100 percent you will not be able to upload new files or sync changes.\",\n      tone: \"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-200\",\n    },\n    full: {\n      icon: \"lucide:circle-alert\",\n      title: \"Your storage is full\",\n      body: \"Uploads are paused until you free up space or upgrade your plan.\",\n      tone: \"border-red-200 bg-red-50 text-red-900 dark:border-red-500/30 dark:bg-red-500/10 dark:text-red-200\",\n    },\n  };\n\n  const state = computed(() =>\n    level.value && dismissed.value !== level.value\n      ? { level: level.value, ...states[level.value] }\n      : null\n  );\n</script>\n","category":"Storage","description":"Quota warning banners. Features: A banner that changes with how full the storage is, a heads up at 80 percent, a warning at 90 percent and a full state at 100 percent that pauses uploads, a dismiss button for the lower levels and free up space and upgrade actions, with a demo slider to preview each state","path":"Files/Storage/BlockStorage4.vue","components":["button","card","container","label","progress"]},{"name":"Blog Subscribe 1","fileName":"BlockBlogSubscribe1.vue","file":"<template>\n  <Motion\n    as-child\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0, scale: 0.9 },\n      animate: {\n        opacity: 1,\n        scale: 1,\n        transition: { when: 'beforeChildren', delayChildren: stagger(0.1), type: 'keyframes' },\n      },\n    }\"\n  >\n    <UiCard class=\"shadow-xs\">\n      <UiCardContent>\n        <Motion\n          :variants=\"{\n            initial: { scale: 0, y: 20 },\n            animate: { scale: 1, y: 0 },\n          }\"\n          class=\"from-primary/50 text-primary inline-flex size-16 items-center justify-center rounded-full bg-linear-to-b\"\n        >\n          <Icon name=\"lucide:send\" class=\"h-6 w-6\" />\n        </Motion>\n\n        <Motion\n          as=\"h3\"\n          :variants=\"{\n            initial: { opacity: 0, y: 10 },\n            animate: { opacity: 1, y: 0 },\n          }\"\n          class=\"mt-6 mb-2 text-2xl font-semibold\"\n          >Weekly newsletter</Motion\n        >\n        <Motion\n          as=\"p\"\n          :variants=\"{\n            initial: { opacity: 0, y: 10 },\n            animate: { opacity: 1, y: 0 },\n          }\"\n          class=\"text-muted-foreground mb-6\"\n        >\n          No spam. Just the latest releases and tips, interesting articles, and exclusive interviews\n          in your inbox every week.\n        </Motion>\n        <form>\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, y: 10 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n            class=\"w-full\"\n          >\n            <UiVeeInput required placeholder=\"Enter your email\" aria-label=\"Enter your email\" />\n          </Motion>\n          <Motion\n            as=\"p\"\n            :variants=\"{\n              initial: { opacity: 0, y: 10 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n            class=\"text-muted-foreground my-4 text-sm\"\n          >\n            Read about our privacy policy <a href=\"#\" class=\"text-primary\">here</a>.\n          </Motion>\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, y: 10 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n          >\n            <UiButton size=\"lg\" class=\"w-full whitespace-nowrap\" type=\"submit\">Subscribe</UiButton>\n          </Motion>\n        </form>\n      </UiCardContent>\n    </UiCard>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n</script>\n","category":"Subscribe","description":null,"path":"Blog/Subscribe/BlockBlogSubscribe1.vue","components":["button","card","vee-input"]},{"name":"Blog Subscribe 2","fileName":"BlockBlogSubscribe2.vue","file":"<template>\n  <Motion\n    as-child\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0, scale: 0.9, y: 10 },\n      animate: {\n        opacity: 1,\n        scale: 1,\n        y: 0,\n        transition: { when: 'beforeChildren', delayChildren: stagger(0.2), type: 'keyframes' },\n      },\n    }\"\n  >\n    <UiCard class=\"relative rounded-none shadow-xs\">\n      <Motion\n        class=\"bg-primary absolute top-0 h-0.5 w-full\"\n        :variants=\"{\n          initial: { scaleX: 0 },\n          animate: { scaleX: 1, transition: { duration: 1, ease: 'easeOut' } },\n        }\"\n      />\n      <UiCardContent>\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, scale: 0 },\n            animate: {\n              opacity: 1,\n              scale: 1,\n              transition: { type: 'spring', stiffness: 200, damping: 20 },\n            },\n          }\"\n          class=\"from-primary/40 text-primary inline-flex size-14 items-center justify-center rounded-md bg-linear-to-b\"\n        >\n          <Icon name=\"lucide:mail\" class=\"size-6\" />\n        </Motion>\n\n        <Motion as=\"h3\" :variants=\"childVariant\" class=\"mt-8 mb-2 text-2xl font-semibold\"\n          >Weekly newsletter</Motion\n        >\n        <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground mb-6\">\n          No spam. Just the latest releases and tips, interesting articles, and exclusive interviews\n          in your inbox every week.\n        </Motion>\n        <form>\n          <Motion :variants=\"childVariant\" class=\"w-full\">\n            <UiVeeInput required placeholder=\"Enter your email\" aria-label=\"Enter your email\" />\n          </Motion>\n          <Motion as=\"p\" :variants=\"childVariant\" class=\"text-muted-foreground my-4 text-sm\">\n            Read about our privacy policy <a href=\"#\" class=\"text-primary\">here</a>.\n          </Motion>\n          <Motion :variants=\"childVariant\">\n            <UiButton size=\"lg\" class=\"w-full whitespace-nowrap\" type=\"submit\">Subscribe</UiButton>\n          </Motion>\n        </form>\n      </UiCardContent>\n    </UiCard>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n  import type { MotionProps } from \"motion-v\";\n\n  const childVariant: MotionProps[\"variants\"] = {\n    initial: { opacity: 0, y: 10 },\n    animate: { opacity: 1, y: 0, transition: { type: \"spring\", stiffness: 200, damping: 20 } },\n  };\n</script>\n","category":"Subscribe","description":null,"path":"Blog/Subscribe/BlockBlogSubscribe2.vue","components":["button","card","vee-input"]},{"name":"Blog Subscribe 3","fileName":"BlockBlogSubscribe3.vue","file":"<template>\n  <Motion\n    as-child\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0, y: 30 },\n      animate: {\n        opacity: 1,\n        y: 0,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.15),\n          type: 'spring',\n          stiffness: 200,\n          damping: 25,\n        },\n      },\n    }\"\n  >\n    <UiCard class=\"overflow-hidden shadow-xs\">\n      <Motion\n        :variants=\"{\n          initial: { opacity: 0, scale: 0.8 },\n          animate: {\n            opacity: 1,\n            scale: 1,\n            transition: {\n              when: 'beforeChildren',\n            },\n          },\n        }\"\n        class=\"to-primary/40 mx-auto flex size-16 items-center justify-center rounded-full bg-radial via-transparent\"\n      >\n        <Motion\n          as-child\n          :variants=\"{\n            initial: { scale: 0, rotate: -180 },\n            animate: {\n              scale: 1,\n              rotate: 0,\n              transition: { type: 'spring', stiffness: 200, damping: 15 },\n            },\n          }\"\n        >\n          <Icon name=\"lucide:mail-open\" class=\"text-primary dark:text-foreground size-6\" />\n        </Motion>\n      </Motion>\n\n      <UiCardContent class=\"pt-2\">\n        <Motion\n          as=\"h3\"\n          :variants=\"{\n            initial: { opacity: 0, y: 10 },\n            animate: { opacity: 1, y: 0 },\n          }\"\n          class=\"text-center text-2xl font-bold\"\n        >\n          Stay in the loop\n        </Motion>\n        <Motion\n          as=\"p\"\n          :variants=\"{\n            initial: { opacity: 0, y: 10 },\n            animate: { opacity: 1, y: 0 },\n          }\"\n          class=\"text-muted-foreground mt-2 mb-6 text-center\"\n        >\n          Get notified about new articles, tutorials, and exclusive content delivered straight to\n          your inbox.\n        </Motion>\n\n        <form class=\"space-y-4\">\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, x: -20 },\n              animate: {\n                opacity: 1,\n                x: 0,\n                transition: { type: 'spring', stiffness: 200, damping: 20 },\n              },\n            }\"\n          >\n            <UiVeeInput required placeholder=\"Your email address\" aria-label=\"Email address\" />\n          </Motion>\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, x: 20 },\n              animate: {\n                opacity: 1,\n                x: 0,\n                transition: { type: 'spring', stiffness: 200, damping: 20 },\n              },\n            }\"\n          >\n            <UiButton size=\"lg\" class=\"w-full\" type=\"submit\">\n              <Icon name=\"lucide:send\" class=\"size-4\" />\n              Subscribe now\n            </UiButton>\n          </Motion>\n        </form>\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, x: -10 },\n            animate: {\n              opacity: 1,\n              x: 0,\n              transition: { type: 'spring', stiffness: 200, damping: 20 },\n            },\n          }\"\n          class=\"text-muted-foreground mt-4 flex items-center justify-center gap-2 text-xs\"\n        >\n          <Icon name=\"lucide:shield-check\" class=\"size-4\" />\n          <span>We respect your privacy. Unsubscribe anytime.</span>\n        </Motion>\n      </UiCardContent>\n    </UiCard>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n</script>\n","category":"Subscribe","description":null,"path":"Blog/Subscribe/BlockBlogSubscribe3.vue","components":["button","card","vee-input"]},{"name":"Blog Subscribe 4","fileName":"BlockBlogSubscribe4.vue","file":"<template>\n  <Motion\n    as-child\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0, scale: 0.95, y: 10 },\n      animate: {\n        opacity: 1,\n        scale: 1,\n        y: 0,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n          type: 'keyframes',\n        },\n      },\n    }\"\n  >\n    <UiCard class=\"relative overflow-hidden shadow-xs\">\n      <div class=\"bg-primary/10 absolute top-0 right-0 size-40 blur-3xl\" />\n      <div class=\"bg-primary/5 absolute bottom-0 left-0 size-52 blur-3xl\" />\n\n      <UiCardContent class=\"relative\">\n        <div class=\"mb-6 flex items-start justify-between\">\n          <div>\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0, x: -20 },\n                animate: { opacity: 1, x: 0 },\n              }\"\n            >\n              <UiBadge variant=\"default\" class=\"mb-3\">\n                <Icon name=\"lucide:zap\" class=\"size-3\" />\n                Weekly insights\n              </UiBadge>\n            </Motion>\n            <Motion\n              as=\"h3\"\n              :variants=\"{\n                initial: { opacity: 0, y: 10 },\n                animate: { opacity: 1, y: 0 },\n              }\"\n              class=\"text-2xl font-bold\"\n            >\n              Join our newsletter\n            </Motion>\n          </div>\n          <Motion\n            :variants=\"{\n              initial: { scale: 0, opacity: 0 },\n              animate: {\n                scale: 1,\n                opacity: 1,\n                transition: { type: 'spring', stiffness: 200, damping: 15 },\n              },\n            }\"\n            class=\"to-primary/40 flex size-14 shrink-0 items-center justify-center rounded-full bg-radial via-transparent via-40%\"\n          >\n            <Icon name=\"lucide:newspaper\" class=\"text-primary size-5\" />\n          </Motion>\n        </div>\n\n        <Motion\n          as=\"p\"\n          :variants=\"{\n            initial: { opacity: 0, y: 10 },\n            animate: { opacity: 1, y: 0 },\n          }\"\n          class=\"text-muted-foreground mb-6\"\n        >\n          Subscribe to receive curated articles, industry news, and expert tips delivered weekly.\n        </Motion>\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, y: 10 },\n            animate: { opacity: 1, y: 0 },\n          }\"\n          class=\"mb-6 space-y-2\"\n        >\n          <div class=\"flex items-center gap-2 text-sm\">\n            <Icon name=\"lucide:check-circle-2\" class=\"text-primary size-4\" />\n            <span>Exclusive content and early access</span>\n          </div>\n          <div class=\"flex items-center gap-2 text-sm\">\n            <Icon name=\"lucide:check-circle-2\" class=\"text-primary size-4\" />\n            <span>No spam, unsubscribe anytime</span>\n          </div>\n          <div class=\"flex items-center gap-2 text-sm\">\n            <Icon name=\"lucide:check-circle-2\" class=\"text-primary size-4\" />\n            <span>Join 10,000+ readers worldwide</span>\n          </div>\n        </Motion>\n\n        <form class=\"space-y-3\">\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, y: 20 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n          >\n            <UiVeeInput required placeholder=\"Enter your email\" aria-label=\"Email address\" />\n          </Motion>\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, y: 20 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n          >\n            <UiButton size=\"lg\" class=\"w-full\" type=\"submit\">\n              Get started free\n              <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n            </UiButton>\n          </Motion>\n        </form>\n      </UiCardContent>\n    </UiCard>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n</script>\n","category":"Subscribe","description":null,"path":"Blog/Subscribe/BlockBlogSubscribe4.vue","components":["badge","button","card","vee-input"]},{"name":"Blog Subscribe 5","fileName":"BlockBlogSubscribe5.vue","file":"<template>\n  <Motion\n    as-child\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0, y: 20 },\n      animate: {\n        opacity: 1,\n        y: 0,\n        transition: { when: 'beforeChildren', delayChildren: stagger(0.12), duration: 0.5 },\n      },\n    }\"\n  >\n    <UiCard\n      class=\"ring-muted/30 dark:from-primary/10 dark:via-background dark:to-background dark:ring-primary/5 border-none shadow-sm ring-1 dark:bg-linear-to-br\"\n    >\n      <UiCardContent>\n        <div class=\"mb-6 flex items-center gap-4\">\n          <Motion\n            :variants=\"{\n              initial: { scale: 0, opacity: 0 },\n              animate: {\n                scale: 1,\n                opacity: 1,\n                transition: { type: 'spring', stiffness: 200, damping: 20 },\n              },\n            }\"\n            class=\"from-primary/20 flex size-12 shrink-0 items-center justify-center rounded-md bg-linear-to-br\"\n          >\n            <Icon name=\"lucide:book-open\" class=\"text-primary dark:text-foreground size-6\" />\n          </Motion>\n          <div class=\"flex-1\">\n            <Motion\n              as=\"h3\"\n              :variants=\"{\n                initial: { opacity: 0, x: -20 },\n                animate: { opacity: 1, x: 0, transition: { type: 'keyframes' } },\n              }\"\n              class=\"text-lg font-bold\"\n            >\n              Subscribe to our blog\n            </Motion>\n            <Motion\n              as=\"p\"\n              :variants=\"{\n                initial: { opacity: 0, x: -20 },\n                animate: { opacity: 1, x: 0, transition: { type: 'keyframes' } },\n              }\"\n              class=\"text-muted-foreground text-sm\"\n            >\n              Fresh content every week\n            </Motion>\n          </div>\n        </div>\n\n        <Motion\n          as=\"p\"\n          :variants=\"{\n            initial: { opacity: 0, y: 10 },\n            animate: { opacity: 1, y: 0 },\n          }\"\n          class=\"text-muted-foreground mb-6\"\n        >\n          Don't miss out on our latest posts, tutorials, and industry insights. Get them delivered\n          to your inbox.\n        </Motion>\n\n        <form>\n          <div class=\"flex gap-2\">\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0, scale: 0.9 },\n                animate: { opacity: 1, scale: 1 },\n              }\"\n              class=\"flex-1\"\n            >\n              <UiVeeInput required placeholder=\"you@example.com\" aria-label=\"Email address\" />\n            </Motion>\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0, scale: 0.9 },\n                animate: { opacity: 1, scale: 1 },\n              }\"\n            >\n              <UiButton size=\"default\" type=\"submit\">\n                <Icon name=\"lucide:send\" class=\"size-4\" />\n                <span class=\"hidden sm:inline\">Subscribe</span>\n              </UiButton>\n            </Motion>\n          </div>\n          <Motion\n            as=\"p\"\n            :variants=\"{\n              initial: { opacity: 0 },\n              animate: { opacity: 1 },\n            }\"\n            class=\"text-muted-foreground mt-3 text-xs\"\n          >\n            By subscribing, you agree to our Privacy Policy and consent to receive updates.\n          </Motion>\n        </form>\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, scaleX: 0 },\n            animate: { opacity: 1, scaleX: 1, transition: { delay: 0.5, duration: 0.5 } },\n          }\"\n          class=\"from-primary/50 via-primary/20 mt-6 h-px origin-left bg-linear-to-r\"\n        />\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, y: 10 },\n            animate: { opacity: 1, y: 0 },\n          }\"\n          class=\"text-muted-foreground mt-4 flex items-center justify-center gap-6 text-xs\"\n        >\n          <div class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:users\" class=\"size-3.5\" />\n            <span>12K+ subscribers</span>\n          </div>\n          <div class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:star\" class=\"size-3.5 fill-yellow-500 text-yellow-500\" />\n            <span>Rated 4.9/5</span>\n          </div>\n        </Motion>\n      </UiCardContent>\n    </UiCard>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n</script>\n","category":"Subscribe","description":null,"path":"Blog/Subscribe/BlockBlogSubscribe5.vue","components":["button","card","vee-input"]},{"name":"Blog Subscribe 6","fileName":"BlockBlogSubscribe6.vue","file":"<template>\n  <Motion\n    as-child\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0 },\n      animate: {\n        opacity: 1,\n        transition: { when: 'beforeChildren', delayChildren: stagger(0.1), duration: 0.3 },\n      },\n    }\"\n  >\n    <UiCard class=\"hover:border-primary border-dashed shadow-md\">\n      <UiCardContent>\n        <div class=\"mb-6 text-center\">\n          <Motion\n            :variants=\"{\n              initial: { scale: 0, y: 10 },\n              animate: {\n                scale: 1,\n                y: 0,\n                transition: { type: 'spring', stiffness: 400, damping: 20 },\n              },\n            }\"\n            class=\"to-primary/40 mx-auto mb-4 inline-flex size-14 items-center justify-center rounded-full bg-radial via-transparent\"\n          >\n            <Motion\n              as-child\n              :variants=\"{\n                initial: {},\n                animate: {\n                  rotate: [0, 15, -15, 15, -15, 0],\n                  transition: {\n                    duration: 0.8,\n                    repeat: Infinity,\n                    repeatDelay: 3,\n                    repeatType: 'loop',\n                  },\n                },\n              }\"\n            >\n              <Icon name=\"lucide:bell-ring\" class=\"text-primary size-7\" />\n              <span class=\"sr-only\">Notifications</span>\n            </Motion>\n          </Motion>\n          <Motion\n            as=\"h3\"\n            :variants=\"{\n              initial: { opacity: 0, y: 10 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n            class=\"mb-2 text-xl font-bold\"\n          >\n            Never miss an update\n          </Motion>\n          <Motion\n            as=\"p\"\n            :variants=\"{\n              initial: { opacity: 0, y: 10 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n            class=\"text-muted-foreground text-sm\"\n          >\n            Subscribe to get our latest articles and updates\n          </Motion>\n        </div>\n\n        <form class=\"space-y-3\">\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, x: -30 },\n              animate: { opacity: 1, x: 0 },\n            }\"\n          >\n            <UiVeeInput\n              required\n              placeholder=\"name@company.com\"\n              type=\"email\"\n              aria-label=\"Email address\"\n              icon=\"lucide:mail\"\n            />\n          </Motion>\n\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, y: 20 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n          >\n            <UiButton size=\"lg\" class=\"w-full\" type=\"submit\">\n              Subscribe to newsletter\n              <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n            </UiButton>\n          </Motion>\n        </form>\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, scaleX: 0 },\n            animate: { opacity: 1, scaleX: 1, transition: { delay: 0.4, type: 'keyframes' } },\n          }\"\n          class=\"bg-border my-5 h-px origin-top\"\n        />\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0 },\n            animate: { opacity: 1 },\n          }\"\n          class=\"text-muted-foreground flex items-center justify-between text-xs\"\n        >\n          <div class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:lock\" class=\"size-3.5\" />\n            <span>100% Secure</span>\n          </div>\n          <UiSeparator orientation=\"vertical\" class=\"h-3\" />\n          <div class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:check\" class=\"size-3.5\" />\n            <span>No spam</span>\n          </div>\n          <UiSeparator orientation=\"vertical\" class=\"h-3\" />\n          <div class=\"flex items-center gap-1.5\">\n            <Icon name=\"lucide:x-circle\" class=\"size-3.5\" />\n            <span>Easy unsubscribe</span>\n          </div>\n        </Motion>\n      </UiCardContent>\n    </UiCard>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n</script>\n","category":"Subscribe","description":null,"path":"Blog/Subscribe/BlockBlogSubscribe6.vue","components":["button","card","separator","vee-input"]},{"name":"Blog Subscribe 7","fileName":"BlockBlogSubscribe7.vue","file":"<template>\n  <Motion\n    as-child\n    initial=\"initial\"\n    while-in-view=\"animate\"\n    :variants=\"{\n      initial: { opacity: 0, rotateX: -15 },\n      animate: {\n        opacity: 1,\n        rotateX: 0,\n        transition: {\n          when: 'beforeChildren',\n          delayChildren: stagger(0.1),\n        },\n      },\n    }\"\n  >\n    <UiCard class=\"bg-primary text-primary-foreground shadow-2xl\">\n      <UiCardContent>\n        <div class=\"mb-6 flex items-start justify-between\">\n          <div class=\"flex-1\">\n            <Motion\n              :variants=\"{\n                initial: { opacity: 0, y: -10 },\n                animate: { opacity: 1, y: 0 },\n              }\"\n            >\n              <UiBadge\n                variant=\"secondary\"\n                class=\"bg-primary-foreground/20 text-primary-foreground mb-3\"\n              >\n                <Icon name=\"lucide:trending-up\" class=\"size-3\" />\n                Popular choice\n              </UiBadge>\n            </Motion>\n            <Motion\n              as=\"h3\"\n              :variants=\"{\n                initial: { opacity: 0, x: -20 },\n                animate: { opacity: 1, x: 0 },\n              }\"\n              class=\"mb-2 text-2xl font-bold\"\n            >\n              Get premium content\n            </Motion>\n            <Motion\n              as=\"p\"\n              :variants=\"{\n                initial: { opacity: 0, x: -20 },\n                animate: { opacity: 1, x: 0 },\n              }\"\n              class=\"text-primary-foreground/80\"\n            >\n              Access exclusive articles, in-depth guides, and expert analysis.\n            </Motion>\n          </div>\n          <Motion\n            :variants=\"{\n              initial: { scale: 0, rotate: -180 },\n              animate: {\n                scale: 1,\n                rotate: 0,\n                transition: { type: 'spring', stiffness: 300, damping: 20 },\n              },\n            }\"\n            class=\"bg-primary-foreground/20 flex size-12 shrink-0 items-center justify-center rounded-full\"\n          >\n            <Icon name=\"lucide:crown\" class=\"size-6\" />\n          </Motion>\n        </div>\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0, y: 10 },\n            animate: { opacity: 1, y: 0 },\n          }\"\n          class=\"mb-6 grid grid-cols-2 gap-3\"\n        >\n          <div class=\"bg-primary-foreground/10 rounded-lg p-3\">\n            <div class=\"mb-1 text-2xl font-bold\">50+</div>\n            <div class=\"text-primary-foreground/80 text-xs\">Articles monthly</div>\n          </div>\n          <div class=\"bg-primary-foreground/10 rounded-lg p-3\">\n            <div class=\"mb-1 text-2xl font-bold\">5K+</div>\n            <div class=\"text-primary-foreground/80 text-xs\">Active readers</div>\n          </div>\n        </Motion>\n\n        <form class=\"space-y-3\">\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, y: 20 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n          >\n            <UiVeeInput\n              required\n              placeholder=\"Enter your email\"\n              aria-label=\"Email address\"\n              class=\"border-primary-foreground/20 bg-primary-foreground/10 text-primary-foreground placeholder:text-primary-foreground/60 focus-visible:border-primary-foreground focus-visible:ring-primary-foreground/30\"\n            />\n          </Motion>\n          <Motion\n            :variants=\"{\n              initial: { opacity: 0, y: 20 },\n              animate: { opacity: 1, y: 0 },\n            }\"\n          >\n            <UiButton\n              size=\"lg\"\n              class=\"bg-primary-foreground text-primary hover:bg-primary-foreground/90 w-full\"\n              type=\"submit\"\n            >\n              Start reading\n              <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n            </UiButton>\n          </Motion>\n        </form>\n\n        <Motion\n          :variants=\"{\n            initial: { opacity: 0 },\n            animate: { opacity: 1 },\n          }\"\n          class=\"text-primary-foreground mt-4 flex items-center justify-center gap-2 text-xs\"\n        >\n          <Icon name=\"lucide:shield\" class=\"size-3.5\" />\n          <span>Your data is safe with us. No spam, ever.</span>\n        </Motion>\n      </UiCardContent>\n    </UiCard>\n  </Motion>\n</template>\n\n<script lang=\"ts\" setup>\n  import { stagger } from \"motion-v\";\n</script>\n","category":"Subscribe","description":null,"path":"Blog/Subscribe/BlockBlogSubscribe7.vue","components":["badge","button","card","vee-input"]},{"name":"Success 1","fileName":"BlockSuccess1.vue","file":"<template>\n  <!--\n    Payment success\n    Features: Success header with order number and copy button, itemised receipt with totals and payment method, download receipt and continue actions, confirmation email note\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl\">\n      <div class=\"text-center\">\n        <span\n          class=\"mx-auto grid size-16 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n        >\n          <Icon name=\"lucide:check\" class=\"size-8\" />\n        </span>\n        <h1 class=\"mt-6 text-3xl font-bold tracking-tight lg:text-4xl\">Payment successful</h1>\n        <p class=\"text-muted-foreground mt-3\">\n          Thanks, {{ customer }}. We sent a receipt to\n          <span class=\"text-foreground font-medium\">{{ email }}</span>.\n        </p>\n        <p class=\"mt-4 inline-flex items-center gap-2 text-sm\">\n          <span class=\"text-muted-foreground\">Order</span>\n          <span class=\"font-mono font-medium\">{{ orderNumber }}</span>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-xs\"\n            :aria-label=\"copied ? 'Order number copied' : 'Copy order number'\"\n            @click=\"copy(orderNumber)\"\n          >\n            <Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-3.5\" />\n          </UiButton>\n        </p>\n      </div>\n\n      <UiCard class=\"mt-8\">\n        <UiCardHeader>\n          <UiCardTitle class=\"text-base\">Receipt</UiCardTitle>\n          <UiCardDescription>{{ date }}</UiCardDescription>\n        </UiCardHeader>\n        <UiCardContent class=\"space-y-4\">\n          <ul class=\"divide-y\">\n            <li\n              v-for=\"item in items\"\n              :key=\"item.name\"\n              class=\"flex items-start justify-between gap-4 py-2.5 text-sm first:pt-0\"\n            >\n              <span>\n                <span class=\"block font-medium\">{{ item.name }}</span>\n                <span class=\"text-muted-foreground block text-xs\">Qty {{ item.qty }}</span>\n              </span>\n              <span class=\"tabular-nums\">{{ money(item.price * item.qty) }}</span>\n            </li>\n          </ul>\n          <dl class=\"space-y-1.5 border-t pt-4 text-sm\">\n            <div class=\"flex justify-between\">\n              <dt class=\"text-muted-foreground\">Subtotal</dt>\n              <dd class=\"tabular-nums\">{{ money(subtotal) }}</dd>\n            </div>\n            <div class=\"flex justify-between\">\n              <dt class=\"text-muted-foreground\">Tax</dt>\n              <dd class=\"tabular-nums\">{{ money(tax) }}</dd>\n            </div>\n            <div class=\"flex justify-between text-base font-semibold\">\n              <dt>Total paid</dt>\n              <dd class=\"tabular-nums\">{{ money(subtotal + tax) }}</dd>\n            </div>\n          </dl>\n          <p class=\"text-muted-foreground flex items-center gap-2 text-sm\">\n            <Icon name=\"lucide:credit-card\" class=\"size-4\" />{{ method }}\n          </p>\n        </UiCardContent>\n      </UiCard>\n\n      <div class=\"mt-6 flex flex-col gap-2 sm:flex-row sm:justify-center\">\n        <UiButton variant=\"outline\" @click=\"download\"\n          ><Icon name=\"lucide:download\" class=\"size-4\" />Download receipt</UiButton\n        >\n        <UiButton>View order<Icon name=\"lucide:arrow-right\" class=\"size-4\" /></UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = { name: string; qty: number; price: number };\n\n  const props = withDefaults(\n    defineProps<{\n      customer?: string;\n      email?: string;\n      orderNumber?: string;\n      date?: string;\n      method?: string;\n      taxRate?: number;\n      items?: Item[];\n    }>(),\n    {\n      customer: \"Alex\",\n      email: \"alex@example.com\",\n      orderNumber: \"ORD-48213\",\n      date: \"October 18, 2026\",\n      method: \"Visa ending in 4242\",\n      taxRate: 0.08,\n      items: () => [\n        { name: \"Pro plan, annual\", qty: 1, price: 190 },\n        { name: \"Extra seat\", qty: 3, price: 12 },\n      ],\n    }\n  );\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  const money = (value: number) =>\n    new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" }).format(value);\n\n  const subtotal = computed(() =>\n    props.items.reduce((sum, item) => sum + item.price * item.qty, 0)\n  );\n  const tax = computed(() => Math.round(subtotal.value * props.taxRate * 100) / 100);\n\n  function download() {\n    useSonner.success(\"Receipt downloaded\", { description: `${props.orderNumber}.pdf` });\n  }\n</script>\n","category":"Success","description":"Payment success. Features: Success header with order number and copy button, itemised receipt with totals and payment method, download receipt and continue actions, confirmation email note","path":"Utility/Success/BlockSuccess1.vue","components":["button","card","container"]},{"name":"Success 2","fileName":"BlockSuccess2.vue","file":"<template>\n  <!--\n    Form submitted\n    Features: Confirmation with reference number and copy button, submitted answers summary, what happens next steps, one tap rating of the form\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"text-center\">\n        <span\n          class=\"bg-primary/10 text-primary mx-auto grid size-14 place-items-center rounded-full\"\n        >\n          <Icon name=\"lucide:send\" class=\"size-6\" />\n        </span>\n        <h1 class=\"mt-5 text-3xl font-bold tracking-tight lg:text-4xl\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-3 text-lg\">{{ description }}</p>\n        <p class=\"mt-4 inline-flex items-center gap-2 text-sm\">\n          <span class=\"text-muted-foreground\">Reference</span>\n          <span class=\"font-mono font-medium\">{{ reference }}</span>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-xs\"\n            :aria-label=\"copied ? 'Reference copied' : 'Copy reference'\"\n            @click=\"copy(reference)\"\n          >\n            <Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-3.5\" />\n          </UiButton>\n        </p>\n      </div>\n\n      <div class=\"mt-8 grid gap-4 md:grid-cols-2\">\n        <UiCard>\n          <UiCardHeader>\n            <UiCardTitle class=\"text-base\">What you sent</UiCardTitle>\n          </UiCardHeader>\n          <UiCardContent>\n            <dl class=\"space-y-3 text-sm\">\n              <div v-for=\"answer in answers\" :key=\"answer.label\">\n                <dt class=\"text-muted-foreground text-xs\">{{ answer.label }}</dt>\n                <dd class=\"mt-0.5 font-medium\">{{ answer.value }}</dd>\n              </div>\n            </dl>\n          </UiCardContent>\n        </UiCard>\n\n        <UiCard>\n          <UiCardHeader>\n            <UiCardTitle class=\"text-base\">What happens next</UiCardTitle>\n          </UiCardHeader>\n          <UiCardContent>\n            <ol class=\"space-y-4\">\n              <li v-for=\"(step, index) in steps\" :key=\"step.title\" class=\"flex gap-3 text-sm\">\n                <span\n                  class=\"bg-muted grid size-6 shrink-0 place-items-center rounded-full text-xs font-semibold\"\n                  >{{ index + 1 }}</span\n                >\n                <span>\n                  <span class=\"block font-medium\">{{ step.title }}</span>\n                  <span class=\"text-muted-foreground block text-xs\">{{ step.text }}</span>\n                </span>\n              </li>\n            </ol>\n          </UiCardContent>\n        </UiCard>\n      </div>\n\n      <div class=\"mt-6 rounded-xl border p-4 text-center\" role=\"group\" aria-label=\"Rate this form\">\n        <template v-if=\"!rating\">\n          <p class=\"text-sm font-medium\">How easy was that form?</p>\n          <div class=\"mt-3 flex justify-center gap-1\">\n            <UiButton\n              v-for=\"option in options\"\n              :key=\"option.value\"\n              variant=\"outline\"\n              size=\"icon\"\n              :aria-label=\"option.label\"\n              @click=\"rating = option.value\"\n            >\n              <Icon :name=\"option.icon\" class=\"size-5\" />\n            </UiButton>\n          </div>\n        </template>\n        <p v-else class=\"text-sm\" role=\"status\">\n          Thanks for rating it “{{ options.find((o) => o.value === rating)?.label.toLowerCase() }}”.\n          <UiButton variant=\"link\" size=\"sm\" class=\"h-auto p-0\" @click=\"rating = ''\"\n            >Change</UiButton\n          >\n        </p>\n      </div>\n\n      <div class=\"mt-6 flex flex-col gap-2 sm:flex-row sm:justify-center\">\n        <UiButton variant=\"outline\">Submit another response</UiButton>\n        <UiButton>Back to home</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Answer = { label: string; value: string };\n  type Step = { title: string; text: string };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      reference?: string;\n      answers?: Answer[];\n      steps?: Step[];\n    }>(),\n    {\n      title: \"Thanks, we got your message\",\n      description: \"A real person reads every submission. Expect a reply within one working day.\",\n      reference: \"SUP-2026-1842\",\n      answers: () => [\n        { label: \"Name\", value: \"Alex Rivera\" },\n        { label: \"Email\", value: \"alex@example.com\" },\n        { label: \"Topic\", value: \"Billing question\" },\n        { label: \"Message\", value: \"I was charged twice for the annual plan.\" },\n      ],\n      steps: () => [\n        { title: \"We review your message\", text: \"Usually within a few hours.\" },\n        { title: \"You get a reply by email\", text: \"From a member of our support team.\" },\n        { title: \"We follow up if needed\", text: \"Reply to that email to add details.\" },\n      ],\n    }\n  );\n\n  const rating = ref(\"\");\n  const options = [\n    { value: \"hard\", label: \"Hard\", icon: \"lucide:frown\" },\n    { value: \"okay\", label: \"Okay\", icon: \"lucide:meh\" },\n    { value: \"easy\", label: \"Easy\", icon: \"lucide:smile\" },\n  ];\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n</script>\n","category":"Success","description":"Form submitted. Features: Confirmation with reference number and copy button, submitted answers summary, what happens next steps, one tap rating of the form","path":"Utility/Success/BlockSuccess2.vue","components":["button","card","container"]},{"name":"Success 3","fileName":"BlockSuccess3.vue","file":"<template>\n  <!--\n    Account verified\n    Features: Verified email confirmation, automatic redirect countdown with cancel and continue now buttons, getting started checklist\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-md text-center\">\n      <span\n        class=\"mx-auto grid size-16 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n      >\n        <Icon name=\"lucide:badge-check\" class=\"size-8\" />\n      </span>\n      <h1 class=\"mt-6 text-3xl font-bold tracking-tight lg:text-4xl\">Email verified</h1>\n      <p class=\"text-muted-foreground mt-3\">\n        <span class=\"text-foreground font-medium\">{{ email }}</span> is confirmed. Your account is\n        ready to use.\n      </p>\n\n      <div class=\"mt-6\" role=\"status\" aria-live=\"polite\">\n        <p v-if=\"state === 'counting'\" class=\"text-muted-foreground text-sm\">\n          Taking you to your {{ destination }} in {{ remaining }}\n          {{ remaining === 1 ? \"second\" : \"seconds\" }}.\n        </p>\n        <p v-else-if=\"state === 'redirecting'\" class=\"text-sm font-medium\">\n          <Icon name=\"lucide:loader-circle\" class=\"mr-1 inline size-4 motion-safe:animate-spin\" />\n          Redirecting to your {{ destination }}.\n        </p>\n        <p v-else class=\"text-muted-foreground text-sm\">Automatic redirect cancelled.</p>\n      </div>\n      <UiProgress\n        v-if=\"state === 'counting'\"\n        :model-value=\"(remaining / seconds) * 100\"\n        class=\"mx-auto mt-3 h-1.5 max-w-xs\"\n        aria-label=\"Time until redirect\"\n      />\n\n      <div class=\"mt-6 flex flex-col gap-2 sm:flex-row sm:justify-center\">\n        <UiButton :disabled=\"state === 'redirecting'\" @click=\"state = 'redirecting'\"\n          >Continue now<Icon name=\"lucide:arrow-right\" class=\"size-4\"\n        /></UiButton>\n        <UiButton v-if=\"state === 'counting'\" variant=\"outline\" @click=\"state = 'cancelled'\"\n          >Stay on this page</UiButton\n        >\n      </div>\n\n      <div class=\"mt-10 rounded-xl border p-5 text-left\">\n        <div class=\"flex items-center justify-between gap-2\">\n          <p class=\"text-sm font-medium\">Get started</p>\n          <p class=\"text-muted-foreground text-xs tabular-nums\">\n            {{ done.size }} of {{ tasks.length }}\n          </p>\n        </div>\n        <ul class=\"mt-3 space-y-3\">\n          <li v-for=\"task in tasks\" :key=\"task\" class=\"flex items-center gap-3\">\n            <UiCheckbox\n              :id=\"`verified-${task}`\"\n              :model-value=\"done.has(task)\"\n              @update:model-value=\"toggle(task)\"\n            />\n            <UiLabel\n              :for=\"`verified-${task}`\"\n              class=\"font-normal\"\n              :class=\"done.has(task) ? 'text-muted-foreground line-through' : ''\"\n              >{{ task }}</UiLabel\n            >\n          </li>\n        </ul>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      email?: string;\n      destination?: string;\n      seconds?: number;\n      tasks?: string[];\n    }>(),\n    {\n      email: \"alex@example.com\",\n      destination: \"dashboard\",\n      seconds: 8,\n      tasks: () => [\"Add a profile photo\", \"Invite a teammate\", \"Create your first project\"],\n    }\n  );\n\n  const state = ref<\"counting\" | \"redirecting\" | \"cancelled\">(\"counting\");\n  const done = ref(new Set<string>());\n\n  const started = Date.now();\n  const clock = useNow({ interval: 1000 });\n  const remaining = computed(() =>\n    Math.max(0, props.seconds - Math.floor((clock.value.getTime() - started) / 1000))\n  );\n\n  watch(remaining, (value) => {\n    if (value === 0 && state.value === \"counting\") state.value = \"redirecting\";\n  });\n\n  function toggle(task: string) {\n    const next = new Set(done.value);\n    if (next.has(task)) next.delete(task);\n    else next.add(task);\n    done.value = next;\n  }\n</script>\n","category":"Success","description":"Account verified. Features: Verified email confirmation, automatic redirect countdown with cancel and continue now buttons, getting started checklist","path":"Utility/Success/BlockSuccess3.vue","components":["button","checkbox","container","label","progress"]},{"name":"Success 4","fileName":"BlockSuccess4.vue","file":"<template>\n  <!--\n    Action completed with undo\n    Features: Completion message, undo window with a shrinking timer, restored and expired states, summary of what changed, links back to the list\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-md text-center\">\n      <UiCardContent class=\"space-y-4 py-4\">\n        <span\n          class=\"mx-auto grid size-14 place-items-center rounded-full\"\n          :class=\"\n            state === 'restored'\n              ? 'bg-primary/10 text-primary'\n              : 'bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300'\n          \"\n        >\n          <Icon :name=\"state === 'restored' ? 'lucide:undo-2' : 'lucide:archive'\" class=\"size-7\" />\n        </span>\n\n        <div role=\"status\" aria-live=\"polite\">\n          <h1 class=\"text-2xl font-bold tracking-tight\">\n            {{ state === \"restored\" ? `${name} restored` : `${name} archived` }}\n          </h1>\n          <p class=\"text-muted-foreground mt-2 text-sm\">\n            {{\n              state === \"restored\"\n                ? \"Everything is back where it was.\"\n                : state === \"expired\"\n                  ? \"The undo window has closed. You can still restore it from the archive.\"\n                  : `It is hidden from your list. ${impact}`\n            }}\n          </p>\n        </div>\n\n        <div v-if=\"state === 'done'\" class=\"space-y-2\">\n          <UiButton variant=\"outline\" class=\"w-full\" @click=\"state = 'restored'\">\n            <Icon name=\"lucide:undo-2\" class=\"size-4\" />Undo ({{ remaining }}s)\n          </UiButton>\n          <UiProgress\n            :model-value=\"(remaining / undoSeconds) * 100\"\n            class=\"h-1\"\n            aria-label=\"Time left to undo\"\n          />\n        </div>\n\n        <dl class=\"bg-muted/50 grid gap-1 rounded-lg p-3 text-left text-sm\">\n          <div v-for=\"fact in facts\" :key=\"fact.label\" class=\"flex justify-between gap-3\">\n            <dt class=\"text-muted-foreground\">{{ fact.label }}</dt>\n            <dd class=\"font-medium\">{{ fact.value }}</dd>\n          </div>\n        </dl>\n\n        <div class=\"flex flex-col gap-2 sm:flex-row sm:justify-center\">\n          <UiButton variant=\"outline\">View archive</UiButton>\n          <UiButton>Back to projects</UiButton>\n        </div>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Fact = { label: string; value: string };\n\n  const props = withDefaults(\n    defineProps<{\n      name?: string;\n      impact?: string;\n      undoSeconds?: number;\n      facts?: Fact[];\n    }>(),\n    {\n      name: \"Website redesign\",\n      impact: \"Members lose access until it is restored.\",\n      undoSeconds: 10,\n      facts: () => [\n        { label: \"Tasks kept\", value: \"48\" },\n        { label: \"Members notified\", value: \"6\" },\n        { label: \"Deleted permanently\", value: \"In 30 days\" },\n      ],\n    }\n  );\n\n  const state = ref<\"done\" | \"restored\" | \"expired\">(\"done\");\n  const started = Date.now();\n  const clock = useNow({ interval: 1000 });\n  const remaining = computed(() =>\n    Math.max(0, props.undoSeconds - Math.floor((clock.value.getTime() - started) / 1000))\n  );\n\n  watch(remaining, (value) => {\n    if (value === 0 && state.value === \"done\") state.value = \"expired\";\n  });\n</script>\n","category":"Success","description":"Action completed with undo. Features: Completion message, undo window with a shrinking timer, restored and expired states, summary of what changed, links back to the list","path":"Utility/Success/BlockSuccess4.vue","components":["button","card","container","progress"]},{"name":"Table Expandable 1","fileName":"BlockTableExpandable1.vue","file":"<template>\n  <!--\n    Orders table with expandable detail rows\n    Features: Chevron toggle with aria expanded and aria controls, a detail row with line items and totals, expand all and collapse all buttons, only the toggled rows change\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <div class=\"flex gap-2\">\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"open = orders.map((order) => order.id)\">\n          Expand all\n        </UiButton>\n        <UiButton variant=\"outline\" size=\"sm\" :disabled=\"!open.length\" @click=\"open = []\">\n          Collapse all\n        </UiButton>\n      </div>\n    </div>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"w-10\"><span class=\"sr-only\">Expand</span></UiTableHead>\n            <UiTableHead>Order</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Customer</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"text-right\">Total</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <template v-for=\"order in orders\" :key=\"order.id\">\n            <UiTableRow>\n              <UiTableCell>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  :aria-expanded=\"open.includes(order.id)\"\n                  :aria-controls=\"`details-${order.id}`\"\n                  :aria-label=\"`${open.includes(order.id) ? 'Collapse' : 'Expand'} ${order.id}`\"\n                  @click=\"toggle(order.id)\"\n                >\n                  <Icon\n                    name=\"lucide:chevron-right\"\n                    class=\"size-4 transition-transform\"\n                    :class=\"open.includes(order.id) ? 'rotate-90' : ''\"\n                  />\n                </UiButton>\n              </UiTableCell>\n              <UiTableCell class=\"font-medium\">{{ order.id }}</UiTableCell>\n              <UiTableCell class=\"hidden sm:table-cell\">{{ order.customer }}</UiTableCell>\n              <UiTableCell>\n                <UiBadge variant=\"soft\" :color=\"colors[order.status]\" shape=\"pill\">\n                  {{ order.status }}\n                </UiBadge>\n              </UiTableCell>\n              <UiTableCell class=\"text-right tabular-nums\">\n                {{ money.format(orderTotal(order)) }}\n              </UiTableCell>\n            </UiTableRow>\n            <UiTableRow\n              v-if=\"open.includes(order.id)\"\n              :id=\"`details-${order.id}`\"\n              class=\"bg-muted/40 hover:bg-muted/40\"\n            >\n              <UiTableCell colspan=\"5\" class=\"px-4 py-4 sm:pl-14\">\n                <ul class=\"divide-y text-sm\">\n                  <li\n                    v-for=\"line in order.lines\"\n                    :key=\"line.name\"\n                    class=\"flex items-center justify-between gap-4 py-2\"\n                  >\n                    <span>\n                      {{ line.name }}\n                      <span class=\"text-muted-foreground\">× {{ line.quantity }}</span>\n                    </span>\n                    <span class=\"tabular-nums\">{{ money.format(line.price * line.quantity) }}</span>\n                  </li>\n                </ul>\n              </UiTableCell>\n            </UiTableRow>\n          </template>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"Processing\" | \"Shipped\" | \"Delivered\";\n\n  type Order = {\n    id: string;\n    customer: string;\n    status: Status;\n    lines: { name: string; quantity: number; price: number }[];\n  };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      orders?: Order[];\n    }>(),\n    {\n      title: \"Orders\",\n      description: \"Open a row to see what is inside the order.\",\n      orders: () => [\n        {\n          id: \"AR-48213\",\n          customer: \"Hannah Lee\",\n          status: \"Shipped\",\n          lines: [\n            { name: \"Bomber Jacket\", quantity: 1, price: 138 },\n            { name: \"Classic Tee\", quantity: 2, price: 32 },\n            { name: \"Canvas Tote\", quantity: 1, price: 28 },\n          ],\n        },\n        {\n          id: \"AR-48190\",\n          customer: \"Marco Rossi\",\n          status: \"Processing\",\n          lines: [{ name: \"Stoneware Mug\", quantity: 4, price: 24 }],\n        },\n        {\n          id: \"AR-47602\",\n          customer: \"Priya Nair\",\n          status: \"Delivered\",\n          lines: [\n            { name: \"Crew Sweatshirt\", quantity: 1, price: 58 },\n            { name: \"Wool Beanie\", quantity: 1, price: 26 },\n          ],\n        },\n      ],\n    }\n  );\n\n  const colors = { Processing: \"amber\", Shipped: \"blue\", Delivered: \"green\" } as const;\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const open = ref<string[]>([]);\n\n  function toggle(id: string) {\n    open.value = open.value.includes(id)\n      ? open.value.filter((item) => item !== id)\n      : [...open.value, id];\n  }\n\n  function orderTotal(order: Order) {\n    return order.lines.reduce((sum, line) => sum + line.price * line.quantity, 0);\n  }\n</script>\n","category":"TableExpandable","description":"Orders table with expandable detail rows. Features: Chevron toggle with aria expanded and aria controls, a detail row with line items and totals, expand all and collapse all buttons, only the toggled rows change","path":"DataTable/TableExpandable/BlockTableExpandable1.vue","components":["badge","button","container","table"]},{"name":"Table Expandable 2","fileName":"BlockTableExpandable2.vue","file":"<template>\n  <!--\n    Grouped budget table with collapsible sections\n    Features: Department group rows with subtotals, indented team rows, collapse each group, grand total in the footer and spend versus budget badges\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Department</UiTableHead>\n            <UiTableHead class=\"text-right\">Budget</UiTableHead>\n            <UiTableHead class=\"text-right\">Spent</UiTableHead>\n            <UiTableHead class=\"hidden text-right sm:table-cell\">Used</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <template v-for=\"group in groups\" :key=\"group.name\">\n            <UiTableRow class=\"bg-muted/50 hover:bg-muted/50 font-medium\">\n              <UiTableCell>\n                <button\n                  type=\"button\"\n                  class=\"flex items-center gap-2\"\n                  :aria-expanded=\"!collapsed.includes(group.name)\"\n                  @click=\"toggle(group.name)\"\n                >\n                  <Icon\n                    name=\"lucide:chevron-down\"\n                    class=\"size-4 transition-transform\"\n                    :class=\"collapsed.includes(group.name) ? '-rotate-90' : ''\"\n                  />\n                  {{ group.name }}\n                  <UiBadge variant=\"secondary\">{{ group.teams.length }}</UiBadge>\n                </button>\n              </UiTableCell>\n              <UiTableCell class=\"text-right tabular-nums\">\n                {{ money.format(sum(group.teams, \"budget\")) }}\n              </UiTableCell>\n              <UiTableCell class=\"text-right tabular-nums\">\n                {{ money.format(sum(group.teams, \"spent\")) }}\n              </UiTableCell>\n              <UiTableCell class=\"hidden text-right sm:table-cell\">\n                {{ percent(sum(group.teams, \"spent\"), sum(group.teams, \"budget\")) }}%\n              </UiTableCell>\n            </UiTableRow>\n            <template v-if=\"!collapsed.includes(group.name)\">\n              <UiTableRow v-for=\"team in group.teams\" :key=\"team.name\">\n                <UiTableCell class=\"pl-10\">{{ team.name }}</UiTableCell>\n                <UiTableCell class=\"text-right tabular-nums\">{{\n                  money.format(team.budget)\n                }}</UiTableCell>\n                <UiTableCell class=\"text-right tabular-nums\">{{\n                  money.format(team.spent)\n                }}</UiTableCell>\n                <UiTableCell class=\"hidden text-right sm:table-cell\">\n                  <UiBadge\n                    variant=\"soft\"\n                    :color=\"percent(team.spent, team.budget) > 100 ? 'red' : 'green'\"\n                    shape=\"pill\"\n                  >\n                    {{ percent(team.spent, team.budget) }}%\n                  </UiBadge>\n                </UiTableCell>\n              </UiTableRow>\n            </template>\n          </template>\n        </UiTableBody>\n        <UiTableFooter>\n          <UiTableRow>\n            <UiTableCell class=\"font-medium\">Total</UiTableCell>\n            <UiTableCell class=\"text-right font-medium tabular-nums\">\n              {{ money.format(grand.budget) }}\n            </UiTableCell>\n            <UiTableCell class=\"text-right font-medium tabular-nums\">\n              {{ money.format(grand.spent) }}\n            </UiTableCell>\n            <UiTableCell class=\"hidden text-right sm:table-cell\">\n              {{ percent(grand.spent, grand.budget) }}%\n            </UiTableCell>\n          </UiTableRow>\n        </UiTableFooter>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Team = { name: string; budget: number; spent: number };\n  type Group = { name: string; teams: Team[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      groups?: Group[];\n    }>(),\n    {\n      title: \"Budget by department\",\n      description: \"Collapse a department to focus on the rest.\",\n      groups: () => [\n        {\n          name: \"Engineering\",\n          teams: [\n            { name: \"Platform\", budget: 220000, spent: 198400 },\n            { name: \"Web\", budget: 140000, spent: 151200 },\n            { name: \"Mobile\", budget: 120000, spent: 96500 },\n          ],\n        },\n        {\n          name: \"Marketing\",\n          teams: [\n            { name: \"Growth\", budget: 90000, spent: 84300 },\n            { name: \"Content\", budget: 45000, spent: 39800 },\n          ],\n        },\n        {\n          name: \"Operations\",\n          teams: [\n            { name: \"Support\", budget: 75000, spent: 71200 },\n            { name: \"Finance\", budget: 52000, spent: 48900 },\n          ],\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const collapsed = ref<string[]>([]);\n\n  function toggle(name: string) {\n    collapsed.value = collapsed.value.includes(name)\n      ? collapsed.value.filter((item) => item !== name)\n      : [...collapsed.value, name];\n  }\n\n  function sum(teams: Team[], key: \"budget\" | \"spent\") {\n    return teams.reduce((total, team) => total + team[key], 0);\n  }\n\n  function percent(value: number, total: number) {\n    return total ? Math.round((value / total) * 100) : 0;\n  }\n\n  const grand = computed(() => {\n    const teams = props.groups.flatMap((group) => group.teams);\n    return { budget: sum(teams, \"budget\"), spent: sum(teams, \"spent\") };\n  });\n</script>\n","category":"TableExpandable","description":"Grouped budget table with collapsible sections. Features: Department group rows with subtotals, indented team rows, collapse each group, grand total in the footer and spend versus budget badges","path":"DataTable/TableExpandable/BlockTableExpandable2.vue","components":["badge","container","table"]},{"name":"Table Expandable 3","fileName":"BlockTableExpandable3.vue","file":"<template>\n  <!--\n    Master detail split with a list and a detail panel\n    Features: Selectable table rows with keyboard support, a sticky detail card with contact info and recent activity, stacks on small screens and keeps the first row selected\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n    <div class=\"mt-8 grid gap-6 lg:grid-cols-5\">\n      <div class=\"overflow-hidden rounded-xl border lg:col-span-3\">\n        <UiTable>\n          <UiTableHeader>\n            <UiTableRow>\n              <UiTableHead>Contact</UiTableHead>\n              <UiTableHead class=\"hidden sm:table-cell\">Company</UiTableHead>\n              <UiTableHead>Stage</UiTableHead>\n            </UiTableRow>\n          </UiTableHeader>\n          <UiTableBody>\n            <UiTableRow\n              v-for=\"contact in contacts\"\n              :key=\"contact.id\"\n              tabindex=\"0\"\n              class=\"cursor-pointer\"\n              :data-state=\"contact.id === selectedId ? 'selected' : undefined\"\n              :aria-selected=\"contact.id === selectedId\"\n              @click=\"selectedId = contact.id\"\n              @keydown.enter.prevent=\"selectedId = contact.id\"\n              @keydown.space.prevent=\"selectedId = contact.id\"\n            >\n              <UiTableCell>\n                <div class=\"flex items-center gap-3\">\n                  <UiAvatar :src=\"contact.avatar\" :fallback=\"contact.name[0]\" />\n                  <span class=\"font-medium\">{{ contact.name }}</span>\n                </div>\n              </UiTableCell>\n              <UiTableCell class=\"text-muted-foreground hidden sm:table-cell\">\n                {{ contact.company }}\n              </UiTableCell>\n              <UiTableCell>\n                <UiBadge\n                  variant=\"soft\"\n                  :color=\"contact.stage === 'Customer' ? 'green' : 'blue'\"\n                  shape=\"pill\"\n                >\n                  {{ contact.stage }}\n                </UiBadge>\n              </UiTableCell>\n            </UiTableRow>\n          </UiTableBody>\n        </UiTable>\n      </div>\n\n      <UiCard v-if=\"selected\" class=\"h-fit lg:sticky lg:top-6 lg:col-span-2\" aria-live=\"polite\">\n        <UiCardHeader>\n          <div class=\"flex items-center gap-3\">\n            <UiAvatar :src=\"selected.avatar\" :fallback=\"selected.name[0]\" class=\"size-12\" />\n            <div>\n              <UiCardTitle>{{ selected.name }}</UiCardTitle>\n              <UiCardDescription>{{ selected.role }} at {{ selected.company }}</UiCardDescription>\n            </div>\n          </div>\n        </UiCardHeader>\n        <UiCardContent class=\"space-y-4 text-sm\">\n          <div class=\"space-y-2\">\n            <p class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:mail\" class=\"text-muted-foreground size-4\" />\n              {{ selected.email }}\n            </p>\n            <p class=\"flex items-center gap-2\">\n              <Icon name=\"lucide:map-pin\" class=\"text-muted-foreground size-4\" />\n              {{ selected.location }}\n            </p>\n          </div>\n          <UiSeparator />\n          <div>\n            <h2 class=\"mb-2 font-semibold\">Recent activity</h2>\n            <ul class=\"text-muted-foreground space-y-2\">\n              <li v-for=\"item in selected.activity\" :key=\"item\" class=\"flex gap-2\">\n                <Icon name=\"lucide:dot\" class=\"mt-0.5 size-4 shrink-0\" />\n                {{ item }}\n              </li>\n            </ul>\n          </div>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Contact = {\n    id: string;\n    name: string;\n    role: string;\n    company: string;\n    email: string;\n    location: string;\n    avatar: string;\n    stage: \"Lead\" | \"Customer\";\n    activity: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      contacts?: Contact[];\n    }>(),\n    {\n      title: \"Contacts\",\n      description: \"Pick a row and the details appear next to the list.\",\n      contacts: () => [\n        {\n          id: \"c1\",\n          name: \"Hannah Lee\",\n          role: \"VP Product\",\n          company: \"Globex\",\n          email: \"hannah@globex.example\",\n          location: \"San Francisco, US\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n          stage: \"Customer\",\n          activity: [\n            \"Renewed the annual plan\",\n            \"Opened a support ticket about SSO\",\n            \"Invited 4 teammates\",\n          ],\n        },\n        {\n          id: \"c2\",\n          name: \"Marco Rossi\",\n          role: \"CTO\",\n          company: \"Initech\",\n          email: \"marco@initech.example\",\n          location: \"Milan, IT\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n          stage: \"Lead\",\n          activity: [\"Booked a demo for Thursday\", \"Downloaded the security whitepaper\"],\n        },\n        {\n          id: \"c3\",\n          name: \"Priya Nair\",\n          role: \"Head of Ops\",\n          company: \"Umbrella Labs\",\n          email: \"priya@umbrella.example\",\n          location: \"Bengaluru, IN\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n          stage: \"Customer\",\n          activity: [\"Upgraded to the Team plan\", \"Exported her first report\"],\n        },\n        {\n          id: \"c4\",\n          name: \"Lukas Meyer\",\n          role: \"Engineering Manager\",\n          company: \"Hooli\",\n          email: \"lukas@hooli.example\",\n          location: \"Berlin, DE\",\n          avatar: \"https://i.pravatar.cc/120?img=15\",\n          stage: \"Lead\",\n          activity: [\"Started a free trial\", \"Viewed the pricing page twice\"],\n        },\n      ],\n    }\n  );\n\n  const selectedId = ref(props.contacts[0]?.id ?? \"\");\n\n  const selected = computed(() =>\n    props.contacts.find((contact) => contact.id === selectedId.value)\n  );\n</script>\n","category":"TableExpandable","description":"Master detail split with a list and a detail panel. Features: Selectable table rows with keyboard support, a sticky detail card with contact info and recent activity, stacks on small screens and keeps the first row selected","path":"DataTable/TableExpandable/BlockTableExpandable3.vue","components":["avatar","badge","card","container","separator","table"]},{"name":"Table Expandable 4","fileName":"BlockTableExpandable4.vue","file":"<template>\n  <!--\n    Wide table with a sticky header and sticky first column\n    Features: Scroll container with a fixed height, header that stays on top, first column pinned on horizontal scroll, tabular numbers and a pinned totals row\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n    <div\n      class=\"mt-8 max-h-96 overflow-auto rounded-xl border\"\n      tabindex=\"0\"\n      role=\"region\"\n      aria-label=\"Monthly revenue by product, scrollable\"\n    >\n      <table class=\"w-full min-w-[56rem] caption-bottom text-sm\">\n        <thead class=\"bg-background sticky top-0 z-20\">\n          <tr class=\"border-b\">\n            <th class=\"bg-background sticky left-0 z-30 h-10 px-4 text-left font-medium\">\n              Product\n            </th>\n            <th\n              v-for=\"month in months\"\n              :key=\"month\"\n              class=\"text-muted-foreground h-10 px-4 text-right font-medium whitespace-nowrap\"\n            >\n              {{ month }}\n            </th>\n            <th class=\"h-10 px-4 text-right font-medium\">Total</th>\n          </tr>\n        </thead>\n        <tbody>\n          <tr v-for=\"row in rows\" :key=\"row.name\" class=\"hover:bg-muted/50 border-b last:border-0\">\n            <th\n              class=\"bg-background sticky left-0 z-10 px-4 py-3 text-left font-medium whitespace-nowrap\"\n              scope=\"row\"\n            >\n              {{ row.name }}\n            </th>\n            <td\n              v-for=\"(value, index) in row.values\"\n              :key=\"index\"\n              class=\"px-4 py-3 text-right tabular-nums\"\n            >\n              {{ money.format(value) }}\n            </td>\n            <td class=\"px-4 py-3 text-right font-medium tabular-nums\">\n              {{ money.format(rowTotal(row.values)) }}\n            </td>\n          </tr>\n        </tbody>\n        <tfoot class=\"bg-muted sticky bottom-0 z-20\">\n          <tr class=\"border-t font-medium\">\n            <th class=\"bg-muted sticky left-0 z-30 px-4 py-3 text-left\">Total</th>\n            <td\n              v-for=\"(total, index) in columnTotals\"\n              :key=\"index\"\n              class=\"px-4 py-3 text-right tabular-nums\"\n            >\n              {{ money.format(total) }}\n            </td>\n            <td class=\"px-4 py-3 text-right tabular-nums\">{{ money.format(grandTotal) }}</td>\n          </tr>\n        </tfoot>\n      </table>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Row = { name: string; values: number[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      months?: string[];\n      rows?: Row[];\n    }>(),\n    {\n      title: \"Monthly revenue\",\n      description:\n        \"Scroll sideways and down. The header, the first column and the totals stay put.\",\n      months: () => [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\"],\n      rows: () => [\n        {\n          name: \"Starter plan\",\n          values: [4200, 4350, 4600, 4720, 4980, 5100, 5320, 5410, 5680, 5900],\n        },\n        {\n          name: \"Team plan\",\n          values: [9800, 10200, 10850, 11400, 12100, 12650, 13200, 13900, 14500, 15200],\n        },\n        {\n          name: \"Business plan\",\n          values: [18200, 19100, 19800, 21400, 22900, 23800, 25100, 26400, 27900, 29300],\n        },\n        {\n          name: \"Enterprise\",\n          values: [42000, 42000, 45500, 45500, 51000, 51000, 58000, 58000, 64500, 64500],\n        },\n        { name: \"Add-ons\", values: [1200, 1350, 1280, 1500, 1620, 1710, 1890, 2010, 2140, 2300] },\n        { name: \"Services\", values: [6500, 5200, 7800, 6100, 8400, 7200, 9100, 8300, 9800, 9400] },\n        { name: \"Marketplace\", values: [800, 920, 1100, 1250, 1400, 1580, 1720, 1900, 2150, 2400] },\n        { name: \"Training\", values: [2100, 1800, 2600, 2200, 3100, 2700, 3400, 2900, 3800, 3500] },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  function rowTotal(values: number[]) {\n    return values.reduce((sum, value) => sum + value, 0);\n  }\n\n  const columnTotals = computed(() =>\n    props.months.map((_, index) =>\n      props.rows.reduce((sum, row) => sum + (row.values[index] ?? 0), 0)\n    )\n  );\n\n  const grandTotal = computed(() => columnTotals.value.reduce((sum, value) => sum + value, 0));\n</script>\n","category":"TableExpandable","description":"Wide table with a sticky header and sticky first column. Features: Scroll container with a fixed height, header that stays on top, first column pinned on horizontal scroll, tabular numbers and a pinned totals row","path":"DataTable/TableExpandable/BlockTableExpandable4.vue","components":["container"]},{"name":"Table Expandable 5","fileName":"BlockTableExpandable5.vue","file":"<template>\n  <!--\n    Table loading, empty and error states\n    Features: Skeleton rows while loading, a friendly empty state with an action, an error state with retry, a state switcher for previewing each one and a busy table for screen readers\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <UiToggleGroup\n        v-model=\"state\"\n        type=\"single\"\n        variant=\"outline\"\n        size=\"sm\"\n        aria-label=\"Preview state\"\n      >\n        <UiToggleGroupItem v-for=\"item in states\" :key=\"item\" :value=\"item\" class=\"px-3 capitalize\">\n          {{ item }}\n        </UiToggleGroupItem>\n      </UiToggleGroup>\n    </div>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable :aria-busy=\"state === 'loading'\">\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Project</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Owner</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"text-right\">Updated</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <template v-if=\"state === 'loading'\">\n            <UiTableRow v-for=\"row in 4\" :key=\"row\" aria-hidden=\"true\">\n              <UiTableCell><UiSkeleton class=\"h-4 w-40\" /></UiTableCell>\n              <UiTableCell class=\"hidden sm:table-cell\"\n                ><UiSkeleton class=\"h-4 w-24\"\n              /></UiTableCell>\n              <UiTableCell><UiSkeleton class=\"h-5 w-16 rounded-full\" /></UiTableCell>\n              <UiTableCell class=\"text-right\"><UiSkeleton class=\"ml-auto h-4 w-16\" /></UiTableCell>\n            </UiTableRow>\n          </template>\n          <template v-else-if=\"state === 'data'\">\n            <UiTableRow v-for=\"project in projects\" :key=\"project.name\">\n              <UiTableCell class=\"font-medium\">{{ project.name }}</UiTableCell>\n              <UiTableCell class=\"hidden sm:table-cell\">{{ project.owner }}</UiTableCell>\n              <UiTableCell>\n                <UiBadge\n                  variant=\"soft\"\n                  :color=\"project.status === 'Live' ? 'green' : 'amber'\"\n                  shape=\"pill\"\n                >\n                  {{ project.status }}\n                </UiBadge>\n              </UiTableCell>\n              <UiTableCell class=\"text-muted-foreground text-right\">{{\n                project.updated\n              }}</UiTableCell>\n            </UiTableRow>\n          </template>\n          <UiTableRow v-else class=\"hover:bg-transparent\">\n            <UiTableCell colspan=\"4\" class=\"py-12\">\n              <div class=\"mx-auto flex max-w-sm flex-col items-center text-center\" role=\"status\">\n                <span class=\"bg-muted mb-4 grid size-12 place-items-center rounded-full\">\n                  <Icon\n                    :name=\"state === 'error' ? 'lucide:triangle-alert' : 'lucide:folder-open'\"\n                    class=\"size-6\"\n                    :class=\"state === 'error' ? 'text-destructive' : 'text-muted-foreground'\"\n                  />\n                </span>\n                <h2 class=\"font-semibold\">\n                  {{ state === \"error\" ? \"We could not load your projects\" : \"No projects yet\" }}\n                </h2>\n                <p class=\"text-muted-foreground mt-1 text-sm text-balance\">\n                  {{\n                    state === \"error\"\n                      ? \"Something went wrong on our side. Check your connection and try again.\"\n                      : \"Create your first project to start tracking work here.\"\n                  }}\n                </p>\n                <UiButton\n                  class=\"mt-4\"\n                  size=\"sm\"\n                  @click=\"state = state === 'error' ? 'loading' : 'data'\"\n                >\n                  <Icon\n                    :name=\"state === 'error' ? 'lucide:rotate-ccw' : 'lucide:plus'\"\n                    class=\"size-4\"\n                  />\n                  {{ state === \"error\" ? \"Try again\" : \"New project\" }}\n                </UiButton>\n              </div>\n            </UiTableCell>\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type State = \"loading\" | \"data\" | \"empty\" | \"error\";\n\n  type Project = { name: string; owner: string; status: \"Live\" | \"Draft\"; updated: string };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      projects?: Project[];\n    }>(),\n    {\n      title: \"Projects\",\n      description: \"Every table needs a plan for loading, empty and error states.\",\n      projects: () => [\n        { name: \"Marketing site\", owner: \"Sofia Alvarez\", status: \"Live\", updated: \"2 hours ago\" },\n        { name: \"Customer portal\", owner: \"Liam Carter\", status: \"Draft\", updated: \"Yesterday\" },\n        { name: \"Mobile app\", owner: \"Noah Williams\", status: \"Live\", updated: \"3 days ago\" },\n      ],\n    }\n  );\n\n  const states: State[] = [\"loading\", \"data\", \"empty\", \"error\"];\n  const state = ref<State>(\"data\");\n</script>\n","category":"TableExpandable","description":"Table loading, empty and error states. Features: Skeleton rows while loading, a friendly empty state with an action, an error state with retry, a state switcher for previewing each one and a busy table for screen readers","path":"DataTable/TableExpandable/BlockTableExpandable5.vue","components":["badge","button","container","skeleton","table","toggle-group"]},{"name":"Table Lists 1","fileName":"BlockTableLists1.vue","file":"<template>\n  <!--\n    Users table with search and sortable columns\n    Features: Avatar and email cell, role and status badges, sortable name and last active headers with aria sort, search field, result count and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <div class=\"relative\">\n        <UiLabel for=\"users-search\" class=\"sr-only\">Search users</UiLabel>\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput\n          id=\"users-search\"\n          v-model=\"query\"\n          placeholder=\"Search users\"\n          class=\"pl-9 sm:w-64\"\n        />\n      </div>\n    </div>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead :aria-sort=\"ariaSort('name')\">\n              <button\n                type=\"button\"\n                class=\"hover:text-foreground flex items-center gap-1\"\n                @click=\"sortBy('name')\"\n              >\n                User\n                <Icon :name=\"sortIcon('name')\" class=\"size-3.5\" />\n              </button>\n            </UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Role</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"hidden md:table-cell\" :aria-sort=\"ariaSort('lastActive')\">\n              <button\n                type=\"button\"\n                class=\"hover:text-foreground flex items-center gap-1\"\n                @click=\"sortBy('lastActive')\"\n              >\n                Last active\n                <Icon :name=\"sortIcon('lastActive')\" class=\"size-3.5\" />\n              </button>\n            </UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"user in rows\" :key=\"user.email\">\n            <UiTableCell>\n              <div class=\"flex items-center gap-3\">\n                <UiAvatar :src=\"user.avatar\" :fallback=\"initials(user.name)\" />\n                <div class=\"min-w-0\">\n                  <p class=\"truncate font-medium\">{{ user.name }}</p>\n                  <p class=\"text-muted-foreground truncate text-xs\">{{ user.email }}</p>\n                </div>\n              </div>\n            </UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">{{ user.role }}</UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"soft\" :color=\"statuses[user.status]\" shape=\"pill\">\n                {{ user.status }}\n              </UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden whitespace-nowrap md:table-cell\">\n              {{ formatDate(user.lastActive) }}\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"4\">No users match your search.</UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </div>\n    <p class=\"text-muted-foreground mt-4 text-sm\" aria-live=\"polite\">\n      Showing {{ rows.length }} of {{ users.length }} users\n    </p>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"Active\" | \"Invited\" | \"Suspended\";\n  type SortKey = \"name\" | \"lastActive\";\n\n  type User = {\n    name: string;\n    email: string;\n    avatar: string;\n    role: string;\n    status: Status;\n    lastActive: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      users?: User[];\n    }>(),\n    {\n      title: \"Users\",\n      description: \"Everyone with access to your workspace and what they are up to.\",\n      users: () => [\n        {\n          name: \"Maya Chen\",\n          email: \"maya@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          role: \"Owner\",\n          status: \"Active\",\n          lastActive: \"2026-10-17\",\n        },\n        {\n          name: \"Liam Carter\",\n          email: \"liam@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          role: \"Admin\",\n          status: \"Active\",\n          lastActive: \"2026-10-16\",\n        },\n        {\n          name: \"Sofia Alvarez\",\n          email: \"sofia@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          role: \"Editor\",\n          status: \"Active\",\n          lastActive: \"2026-10-12\",\n        },\n        {\n          name: \"Noah Williams\",\n          email: \"noah@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          role: \"Editor\",\n          status: \"Invited\",\n          lastActive: \"2026-09-30\",\n        },\n        {\n          name: \"Aisha Khan\",\n          email: \"aisha@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          role: \"Viewer\",\n          status: \"Active\",\n          lastActive: \"2026-10-09\",\n        },\n        {\n          name: \"Ethan Brooks\",\n          email: \"ethan@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=33\",\n          role: \"Viewer\",\n          status: \"Suspended\",\n          lastActive: \"2026-08-21\",\n        },\n      ],\n    }\n  );\n\n  const statuses = { Active: \"green\", Invited: \"amber\", Suspended: \"red\" } as const;\n\n  const query = ref(\"\");\n  const sortKey = ref<SortKey>(\"name\");\n  const direction = ref<\"asc\" | \"desc\">(\"asc\");\n\n  function sortBy(key: SortKey) {\n    if (sortKey.value === key) {\n      direction.value = direction.value === \"asc\" ? \"desc\" : \"asc\";\n    } else {\n      sortKey.value = key;\n      direction.value = \"asc\";\n    }\n  }\n\n  function ariaSort(key: SortKey) {\n    if (sortKey.value !== key) return \"none\";\n    return direction.value === \"asc\" ? \"ascending\" : \"descending\";\n  }\n\n  function sortIcon(key: SortKey) {\n    if (sortKey.value !== key) return \"lucide:arrow-up-down\";\n    return direction.value === \"asc\" ? \"lucide:arrow-up\" : \"lucide:arrow-down\";\n  }\n\n  const rows = computed(() => {\n    const term = query.value.trim().toLowerCase();\n    const list = props.users.filter(\n      (user) =>\n        !term || user.name.toLowerCase().includes(term) || user.email.toLowerCase().includes(term)\n    );\n    const factor = direction.value === \"asc\" ? 1 : -1;\n    return [...list].sort((a, b) => a[sortKey.value].localeCompare(b[sortKey.value]) * factor);\n  });\n\n  function initials(name: string) {\n    return name\n      .split(\" \")\n      .map((part) => part[0])\n      .join(\"\")\n      .slice(0, 2);\n  }\n\n  function formatDate(date: string) {\n    return new Date(date).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  }\n</script>\n","category":"TableLists","description":"Users table with search and sortable columns. Features: Avatar and email cell, role and status badges, sortable name and last active headers with aria sort, search field, result count and an empty state","path":"DataTable/TableLists/BlockTableLists1.vue","components":["avatar","badge","container","input","label","table"]},{"name":"Table Lists 2","fileName":"BlockTableLists2.vue","file":"<template>\n  <!--\n    Team directory table with department filter and row actions\n    Features: Card wrapper with member count, department select filter, avatar with title cell, location column, row action menu and an invite button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard>\n      <UiCardHeader>\n        <div class=\"flex items-center gap-2\">\n          <UiCardTitle>{{ title }}</UiCardTitle>\n          <UiBadge variant=\"secondary\">{{ rows.length }}</UiBadge>\n        </div>\n        <UiCardDescription>{{ description }}</UiCardDescription>\n        <UiCardAction>\n          <UiButton size=\"sm\" @click=\"useSonner.info('Open your invite dialog here')\">\n            <Icon name=\"lucide:user-plus\" class=\"size-4\" />\n            Invite\n          </UiButton>\n        </UiCardAction>\n      </UiCardHeader>\n      <UiCardContent class=\"space-y-4 p-0\">\n        <div class=\"px-6\">\n          <UiSelect v-model=\"department\">\n            <UiSelectTrigger class=\"w-full sm:w-52\" aria-label=\"Filter by department\">\n              <UiSelectValue />\n            </UiSelectTrigger>\n            <UiSelectContent>\n              <UiSelectItem value=\"all\">All departments</UiSelectItem>\n              <UiSelectItem v-for=\"name in departments\" :key=\"name\" :value=\"name\">\n                {{ name }}\n              </UiSelectItem>\n            </UiSelectContent>\n          </UiSelect>\n        </div>\n        <UiTable>\n          <UiTableHeader>\n            <UiTableRow>\n              <UiTableHead class=\"pl-6\">Member</UiTableHead>\n              <UiTableHead class=\"hidden sm:table-cell\">Department</UiTableHead>\n              <UiTableHead class=\"hidden md:table-cell\">Location</UiTableHead>\n              <UiTableHead class=\"w-12 pr-6\"><span class=\"sr-only\">Actions</span></UiTableHead>\n            </UiTableRow>\n          </UiTableHeader>\n          <UiTableBody>\n            <UiTableRow v-for=\"member in rows\" :key=\"member.email\">\n              <UiTableCell class=\"pl-6\">\n                <div class=\"flex items-center gap-3\">\n                  <UiAvatar :src=\"member.avatar\" :fallback=\"initials(member.name)\" />\n                  <div class=\"min-w-0\">\n                    <p class=\"truncate font-medium\">{{ member.name }}</p>\n                    <p class=\"text-muted-foreground truncate text-xs\">{{ member.title }}</p>\n                  </div>\n                </div>\n              </UiTableCell>\n              <UiTableCell class=\"hidden sm:table-cell\">\n                <UiBadge variant=\"outline\">{{ member.department }}</UiBadge>\n              </UiTableCell>\n              <UiTableCell class=\"text-muted-foreground hidden md:table-cell\">\n                {{ member.location }}\n              </UiTableCell>\n              <UiTableCell class=\"pr-6 text-right\">\n                <UiDropdownMenu>\n                  <UiDropdownMenuTrigger as-child>\n                    <UiButton\n                      variant=\"ghost\"\n                      size=\"icon-sm\"\n                      :aria-label=\"`Actions for ${member.name}`\"\n                    >\n                      <Icon name=\"lucide:ellipsis\" class=\"size-4\" />\n                    </UiButton>\n                  </UiDropdownMenuTrigger>\n                  <UiDropdownMenuContent align=\"end\">\n                    <UiDropdownMenuItem @select=\"useSonner.info(`Emailing ${member.email}`)\">\n                      <Icon name=\"lucide:mail\" class=\"size-4\" />\n                      Send email\n                    </UiDropdownMenuItem>\n                    <UiDropdownMenuItem @select=\"useSonner.info(`Opening ${member.name}`)\">\n                      <Icon name=\"lucide:user\" class=\"size-4\" />\n                      View profile\n                    </UiDropdownMenuItem>\n                  </UiDropdownMenuContent>\n                </UiDropdownMenu>\n              </UiTableCell>\n            </UiTableRow>\n            <UiTableEmpty v-if=\"!rows.length\" :colspan=\"4\"\n              >No members in this department.</UiTableEmpty\n            >\n          </UiTableBody>\n        </UiTable>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    email: string;\n    avatar: string;\n    title: string;\n    department: string;\n    location: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      members?: Member[];\n    }>(),\n    {\n      title: \"Team directory\",\n      description: \"Find the right person and reach out in a click.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          email: \"maya@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          title: \"Chief Executive Officer\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n        },\n        {\n          name: \"Liam Carter\",\n          email: \"liam@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          title: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Toronto, CA\",\n        },\n        {\n          name: \"Sofia Alvarez\",\n          email: \"sofia@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          title: \"Product Designer\",\n          department: \"Design\",\n          location: \"Madrid, ES\",\n        },\n        {\n          name: \"Noah Williams\",\n          email: \"noah@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          title: \"Frontend Engineer\",\n          department: \"Engineering\",\n          location: \"London, UK\",\n        },\n        {\n          name: \"Aisha Khan\",\n          email: \"aisha@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          title: \"Head of Marketing\",\n          department: \"Marketing\",\n          location: \"Dubai, AE\",\n        },\n        {\n          name: \"Ethan Brooks\",\n          email: \"ethan@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=33\",\n          title: \"Design Lead\",\n          department: \"Design\",\n          location: \"Austin, US\",\n        },\n      ],\n    }\n  );\n\n  const department = ref(\"all\");\n\n  const departments = computed(() => [...new Set(props.members.map((m) => m.department))]);\n\n  const rows = computed(() =>\n    department.value === \"all\"\n      ? props.members\n      : props.members.filter((member) => member.department === department.value)\n  );\n\n  function initials(name: string) {\n    return name\n      .split(\" \")\n      .map((part) => part[0])\n      .join(\"\")\n      .slice(0, 2);\n  }\n</script>\n","category":"TableLists","description":"Team directory table with department filter and row actions. Features: Card wrapper with member count, department select filter, avatar with title cell, location column, row action menu and an invite button","path":"DataTable/TableLists/BlockTableLists2.vue","components":["avatar","badge","button","card","container","dropdown-menu","select","table"]},{"name":"Table Lists 3","fileName":"BlockTableLists3.vue","file":"<template>\n  <!--\n    Customers table with config driven sortable columns\n    Features: Columns defined in one array, click to sort any column with aria sort, right aligned currency and number columns, search by name or country and totals in the footer\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <div class=\"relative\">\n        <UiLabel for=\"customers-search\" class=\"sr-only\">Search customers</UiLabel>\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput\n          id=\"customers-search\"\n          v-model=\"query\"\n          placeholder=\"Search by name or country\"\n          class=\"pl-9 sm:w-72\"\n        />\n      </div>\n    </div>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead\n              v-for=\"column in columns\"\n              :key=\"column.key\"\n              :aria-sort=\"ariaSort(column.key)\"\n              :class=\"column.align === 'right' ? 'text-right' : ''\"\n            >\n              <button\n                type=\"button\"\n                class=\"hover:text-foreground inline-flex items-center gap-1\"\n                @click=\"sortBy(column.key)\"\n              >\n                {{ column.label }}\n                <Icon :name=\"sortIcon(column.key)\" class=\"size-3.5\" />\n              </button>\n            </UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"customer in rows\" :key=\"customer.id\">\n            <UiTableCell>\n              <div class=\"font-medium\">{{ customer.name }}</div>\n              <div class=\"text-muted-foreground text-xs\">{{ customer.email }}</div>\n            </UiTableCell>\n            <UiTableCell>{{ customer.country }}</UiTableCell>\n            <UiTableCell class=\"text-right tabular-nums\">{{ customer.orders }}</UiTableCell>\n            <UiTableCell class=\"text-right tabular-nums\">\n              {{ money.format(customer.spent) }}\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground text-right whitespace-nowrap\">\n              {{ formatDate(customer.joined) }}\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"5\">No customers found.</UiTableEmpty>\n        </UiTableBody>\n        <UiTableFooter>\n          <UiTableRow>\n            <UiTableCell class=\"font-medium\">Total</UiTableCell>\n            <UiTableCell />\n            <UiTableCell class=\"text-right tabular-nums\">{{ totals.orders }}</UiTableCell>\n            <UiTableCell class=\"text-right tabular-nums\">\n              {{ money.format(totals.spent) }}\n            </UiTableCell>\n            <UiTableCell />\n          </UiTableRow>\n        </UiTableFooter>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Customer = {\n    id: string;\n    name: string;\n    email: string;\n    country: string;\n    orders: number;\n    spent: number;\n    joined: string;\n  };\n\n  type SortKey = \"name\" | \"country\" | \"orders\" | \"spent\" | \"joined\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      customers?: Customer[];\n    }>(),\n    {\n      title: \"Customers\",\n      description: \"Lifetime orders and spend for everyone who has bought from you.\",\n      customers: () => [\n        {\n          id: \"c1\",\n          name: \"Hannah Lee\",\n          email: \"hannah@example.com\",\n          country: \"United States\",\n          orders: 14,\n          spent: 1284.5,\n          joined: \"2024-02-11\",\n        },\n        {\n          id: \"c2\",\n          name: \"Marco Rossi\",\n          email: \"marco@example.com\",\n          country: \"Italy\",\n          orders: 6,\n          spent: 612.0,\n          joined: \"2025-01-23\",\n        },\n        {\n          id: \"c3\",\n          name: \"Priya Nair\",\n          email: \"priya@example.com\",\n          country: \"India\",\n          orders: 22,\n          spent: 2430.75,\n          joined: \"2023-08-04\",\n        },\n        {\n          id: \"c4\",\n          name: \"Lukas Meyer\",\n          email: \"lukas@example.com\",\n          country: \"Germany\",\n          orders: 3,\n          spent: 189.9,\n          joined: \"2026-03-17\",\n        },\n        {\n          id: \"c5\",\n          name: \"Chloe Martin\",\n          email: \"chloe@example.com\",\n          country: \"France\",\n          orders: 9,\n          spent: 847.2,\n          joined: \"2024-11-30\",\n        },\n        {\n          id: \"c6\",\n          name: \"Tomás Silva\",\n          email: \"tomas@example.com\",\n          country: \"Brazil\",\n          orders: 1,\n          spent: 59.0,\n          joined: \"2026-09-02\",\n        },\n      ],\n    }\n  );\n\n  const columns: { key: SortKey; label: string; align?: \"right\" }[] = [\n    { key: \"name\", label: \"Customer\" },\n    { key: \"country\", label: \"Country\" },\n    { key: \"orders\", label: \"Orders\", align: \"right\" },\n    { key: \"spent\", label: \"Total spent\", align: \"right\" },\n    { key: \"joined\", label: \"Customer since\", align: \"right\" },\n  ];\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const query = ref(\"\");\n  const sortKey = ref<SortKey>(\"spent\");\n  const direction = ref<\"asc\" | \"desc\">(\"desc\");\n\n  function sortBy(key: SortKey) {\n    if (sortKey.value === key) {\n      direction.value = direction.value === \"asc\" ? \"desc\" : \"asc\";\n    } else {\n      sortKey.value = key;\n      direction.value = \"asc\";\n    }\n  }\n\n  function ariaSort(key: SortKey) {\n    if (sortKey.value !== key) return \"none\";\n    return direction.value === \"asc\" ? \"ascending\" : \"descending\";\n  }\n\n  function sortIcon(key: SortKey) {\n    if (sortKey.value !== key) return \"lucide:arrow-up-down\";\n    return direction.value === \"asc\" ? \"lucide:arrow-up\" : \"lucide:arrow-down\";\n  }\n\n  const rows = computed(() => {\n    const term = query.value.trim().toLowerCase();\n    const list = props.customers.filter(\n      (customer) =>\n        !term ||\n        customer.name.toLowerCase().includes(term) ||\n        customer.country.toLowerCase().includes(term)\n    );\n    const factor = direction.value === \"asc\" ? 1 : -1;\n    return [...list].sort((a, b) => {\n      const left = a[sortKey.value];\n      const right = b[sortKey.value];\n      const result =\n        typeof left === \"number\" && typeof right === \"number\"\n          ? left - right\n          : String(left).localeCompare(String(right));\n      return result * factor;\n    });\n  });\n\n  const totals = computed(() => ({\n    orders: rows.value.reduce((sum, customer) => sum + customer.orders, 0),\n    spent: rows.value.reduce((sum, customer) => sum + customer.spent, 0),\n  }));\n\n  function formatDate(date: string) {\n    return new Date(date).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  }\n</script>\n","category":"TableLists","description":"Customers table with config driven sortable columns. Features: Columns defined in one array, click to sort any column with aria sort, right aligned currency and number columns, search by name or country and totals in the footer","path":"DataTable/TableLists/BlockTableLists3.vue","components":["container","input","label","table"]},{"name":"Table Lists 4","fileName":"BlockTableLists4.vue","file":"<template>\n  <!--\n    Invoices table with status tabs and totals\n    Features: Status tabs with counts, invoice number and customer cells, color coded status badges, overdue due dates highlighted, download action and an outstanding balance footer\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <UiButton @click=\"useSonner.info('Open your new invoice form here')\">\n        <Icon name=\"lucide:plus\" class=\"size-4\" />\n        New invoice\n      </UiButton>\n    </div>\n\n    <UiTabs v-model=\"tab\" class=\"mt-8\">\n      <UiTabsList>\n        <UiTabsTrigger v-for=\"item in tabs\" :key=\"item.value\" :value=\"item.value\">\n          {{ item.label }}\n          <UiBadge variant=\"secondary\" class=\"ml-1.5\">{{ counts[item.value] }}</UiBadge>\n        </UiTabsTrigger>\n      </UiTabsList>\n    </UiTabs>\n\n    <div class=\"mt-4 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Invoice</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Customer</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"hidden md:table-cell\">Due</UiTableHead>\n            <UiTableHead class=\"text-right\">Amount</UiTableHead>\n            <UiTableHead class=\"w-0\"><span class=\"sr-only\">Download</span></UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"invoice in rows\" :key=\"invoice.id\">\n            <UiTableCell class=\"font-medium\">{{ invoice.id }}</UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">{{ invoice.customer }}</UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"soft\" :color=\"statuses[invoice.status].color\" shape=\"pill\">\n                {{ statuses[invoice.status].label }}\n              </UiBadge>\n            </UiTableCell>\n            <UiTableCell\n              class=\"hidden whitespace-nowrap md:table-cell\"\n              :class=\"\n                invoice.status === 'overdue'\n                  ? 'text-destructive font-medium'\n                  : 'text-muted-foreground'\n              \"\n            >\n              {{ formatDate(invoice.due) }}\n            </UiTableCell>\n            <UiTableCell class=\"text-right tabular-nums\">\n              {{ money.format(invoice.amount) }}\n            </UiTableCell>\n            <UiTableCell>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                :aria-label=\"`Download ${invoice.id}`\"\n                @click=\"useSonner.success(`Downloading ${invoice.id}`)\"\n              >\n                <Icon name=\"lucide:download\" class=\"size-4\" />\n              </UiButton>\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"6\">No invoices in this view.</UiTableEmpty>\n        </UiTableBody>\n        <UiTableFooter>\n          <UiTableRow>\n            <UiTableCell colspan=\"4\" class=\"font-medium\">Outstanding balance</UiTableCell>\n            <UiTableCell class=\"text-right font-medium tabular-nums\">\n              {{ money.format(outstanding) }}\n            </UiTableCell>\n            <UiTableCell />\n          </UiTableRow>\n        </UiTableFooter>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"paid\" | \"pending\" | \"overdue\";\n\n  type Invoice = {\n    id: string;\n    customer: string;\n    status: Status;\n    due: string;\n    amount: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      invoices?: Invoice[];\n    }>(),\n    {\n      title: \"Invoices\",\n      description: \"Track what has been paid and what still needs a nudge.\",\n      invoices: () => [\n        {\n          id: \"INV-1042\",\n          customer: \"Northwind Traders\",\n          status: \"paid\",\n          due: \"2026-09-30\",\n          amount: 4200,\n        },\n        {\n          id: \"INV-1043\",\n          customer: \"Globex Corporation\",\n          status: \"pending\",\n          due: \"2026-10-28\",\n          amount: 1850.5,\n        },\n        { id: \"INV-1044\", customer: \"Initech\", status: \"overdue\", due: \"2026-10-05\", amount: 960 },\n        {\n          id: \"INV-1045\",\n          customer: \"Umbrella Labs\",\n          status: \"paid\",\n          due: \"2026-10-10\",\n          amount: 7320,\n        },\n        { id: \"INV-1046\", customer: \"Hooli\", status: \"pending\", due: \"2026-11-02\", amount: 2490 },\n        {\n          id: \"INV-1047\",\n          customer: \"Stark Industries\",\n          status: \"overdue\",\n          due: \"2026-09-26\",\n          amount: 5100,\n        },\n      ],\n    }\n  );\n\n  const statuses = {\n    paid: { label: \"Paid\", color: \"green\" },\n    pending: { label: \"Pending\", color: \"amber\" },\n    overdue: { label: \"Overdue\", color: \"red\" },\n  } as const;\n\n  const tabs = [\n    { value: \"all\", label: \"All\" },\n    { value: \"paid\", label: \"Paid\" },\n    { value: \"pending\", label: \"Pending\" },\n    { value: \"overdue\", label: \"Overdue\" },\n  ] as const;\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const tab = ref<\"all\" | Status>(\"all\");\n\n  const counts = computed(() => ({\n    all: props.invoices.length,\n    paid: props.invoices.filter((invoice) => invoice.status === \"paid\").length,\n    pending: props.invoices.filter((invoice) => invoice.status === \"pending\").length,\n    overdue: props.invoices.filter((invoice) => invoice.status === \"overdue\").length,\n  }));\n\n  const rows = computed(() =>\n    tab.value === \"all\"\n      ? props.invoices\n      : props.invoices.filter((invoice) => invoice.status === tab.value)\n  );\n\n  const outstanding = computed(() =>\n    props.invoices\n      .filter((invoice) => invoice.status !== \"paid\")\n      .reduce((sum, invoice) => sum + invoice.amount, 0)\n  );\n\n  function formatDate(date: string) {\n    return new Date(date).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  }\n</script>\n","category":"TableLists","description":"Invoices table with status tabs and totals. Features: Status tabs with counts, invoice number and customer cells, color coded status badges, overdue due dates highlighted, download action and an outstanding balance footer","path":"DataTable/TableLists/BlockTableLists4.vue","components":["badge","button","container","table","tabs"]},{"name":"Table Lists 5","fileName":"BlockTableLists5.vue","file":"<template>\n  <!--\n    Transactions table grouped by day\n    Features: Day group header rows, category icon badges, credit and debit amounts in color, running day totals, search and a pending badge\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <div class=\"relative\">\n        <UiLabel for=\"transactions-search\" class=\"sr-only\">Search transactions</UiLabel>\n        <Icon\n          name=\"lucide:search\"\n          class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n        />\n        <UiInput\n          id=\"transactions-search\"\n          v-model=\"query\"\n          placeholder=\"Search transactions\"\n          class=\"pl-9 sm:w-64\"\n        />\n      </div>\n    </div>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Transaction</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Category</UiTableHead>\n            <UiTableHead class=\"text-right\">Amount</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <template v-for=\"group in groups\" :key=\"group.date\">\n            <UiTableRow class=\"bg-muted/50 hover:bg-muted/50\">\n              <UiTableCell\n                colspan=\"2\"\n                class=\"text-muted-foreground text-xs font-semibold uppercase\"\n              >\n                {{ formatDate(group.date) }}\n              </UiTableCell>\n              <UiTableCell class=\"text-muted-foreground text-right text-xs tabular-nums\">\n                {{ signed(group.total) }}\n              </UiTableCell>\n            </UiTableRow>\n            <UiTableRow v-for=\"item in group.items\" :key=\"item.id\">\n              <UiTableCell>\n                <div class=\"flex items-center gap-3\">\n                  <span class=\"bg-muted grid size-9 shrink-0 place-items-center rounded-full\">\n                    <Icon :name=\"categories[item.category]\" class=\"size-4\" />\n                  </span>\n                  <div class=\"min-w-0\">\n                    <p class=\"truncate font-medium\">{{ item.name }}</p>\n                    <p class=\"text-muted-foreground truncate text-xs sm:hidden\">\n                      {{ item.category }}\n                    </p>\n                  </div>\n                  <UiBadge v-if=\"item.pending\" variant=\"soft\" color=\"amber\" shape=\"pill\">\n                    Pending\n                  </UiBadge>\n                </div>\n              </UiTableCell>\n              <UiTableCell class=\"text-muted-foreground hidden sm:table-cell\">\n                {{ item.category }}\n              </UiTableCell>\n              <UiTableCell\n                class=\"text-right font-medium tabular-nums\"\n                :class=\"item.amount > 0 ? 'text-green-600 dark:text-green-400' : ''\"\n              >\n                {{ signed(item.amount) }}\n              </UiTableCell>\n            </UiTableRow>\n          </template>\n          <UiTableEmpty v-if=\"!groups.length\" :colspan=\"3\">No transactions found.</UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Category = \"Income\" | \"Groceries\" | \"Transport\" | \"Subscriptions\" | \"Dining\";\n\n  type Transaction = {\n    id: string;\n    name: string;\n    category: Category;\n    date: string;\n    amount: number;\n    pending?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      transactions?: Transaction[];\n    }>(),\n    {\n      title: \"Transactions\",\n      description: \"Money in and out of your checking account.\",\n      transactions: () => [\n        {\n          id: \"t1\",\n          name: \"Salary — Acme Inc.\",\n          category: \"Income\",\n          date: \"2026-10-17\",\n          amount: 4850,\n        },\n        {\n          id: \"t2\",\n          name: \"Whole Foods Market\",\n          category: \"Groceries\",\n          date: \"2026-10-17\",\n          amount: -86.42,\n        },\n        {\n          id: \"t3\",\n          name: \"Uber trip\",\n          category: \"Transport\",\n          date: \"2026-10-16\",\n          amount: -18.9,\n          pending: true,\n        },\n        {\n          id: \"t4\",\n          name: \"Netflix\",\n          category: \"Subscriptions\",\n          date: \"2026-10-16\",\n          amount: -15.49,\n        },\n        {\n          id: \"t5\",\n          name: \"Blue Bottle Coffee\",\n          category: \"Dining\",\n          date: \"2026-10-15\",\n          amount: -7.5,\n        },\n        { id: \"t6\", name: \"Freelance payout\", category: \"Income\", date: \"2026-10-15\", amount: 620 },\n        {\n          id: \"t7\",\n          name: \"Spotify\",\n          category: \"Subscriptions\",\n          date: \"2026-10-15\",\n          amount: -10.99,\n        },\n      ],\n    }\n  );\n\n  const categories: Record<Category, string> = {\n    Income: \"lucide:arrow-down-left\",\n    Groceries: \"lucide:shopping-basket\",\n    Transport: \"lucide:car\",\n    Subscriptions: \"lucide:repeat\",\n    Dining: \"lucide:utensils\",\n  };\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const query = ref(\"\");\n\n  const groups = computed(() => {\n    const term = query.value.trim().toLowerCase();\n    const matches = props.transactions.filter(\n      (item) =>\n        !term ||\n        item.name.toLowerCase().includes(term) ||\n        item.category.toLowerCase().includes(term)\n    );\n    const byDate = new Map<string, Transaction[]>();\n    for (const item of matches) {\n      byDate.set(item.date, [...(byDate.get(item.date) ?? []), item]);\n    }\n    return [...byDate.entries()]\n      .sort(([a], [b]) => b.localeCompare(a))\n      .map(([date, items]) => ({\n        date,\n        items,\n        total: items.reduce((sum, item) => sum + item.amount, 0),\n      }));\n  });\n\n  function signed(amount: number) {\n    return `${amount > 0 ? \"+\" : \"\"}${money.format(amount)}`;\n  }\n\n  function formatDate(date: string) {\n    return new Date(date).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  }\n</script>\n","category":"TableLists","description":"Transactions table grouped by day. Features: Day group header rows, category icon badges, credit and debit amounts in color, running day totals, search and a pending badge","path":"DataTable/TableLists/BlockTableLists5.vue","components":["badge","container","input","label","table"]},{"name":"Table Lists 6","fileName":"BlockTableLists6.vue","file":"<template>\n  <!--\n    API request log table\n    Features: Monospace paths, colored HTTP method badges, status code colors, latency bars, method filter toggle group and a live request count\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <UiToggleGroup v-model=\"method\" type=\"single\" variant=\"outline\" aria-label=\"Filter by method\">\n        <UiToggleGroupItem v-for=\"item in methods\" :key=\"item\" :value=\"item\">\n          {{ item }}\n        </UiToggleGroupItem>\n      </UiToggleGroup>\n    </div>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable class=\"font-mono text-xs\">\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Method</UiTableHead>\n            <UiTableHead>Path</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Latency</UiTableHead>\n            <UiTableHead class=\"hidden text-right md:table-cell\">Time</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"log in rows\" :key=\"log.id\">\n            <UiTableCell>\n              <UiBadge variant=\"soft\" :color=\"methodColors[log.method]\" class=\"font-mono\">\n                {{ log.method }}\n              </UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"max-w-48 truncate sm:max-w-none\">{{ log.path }}</UiTableCell>\n            <UiTableCell :class=\"statusClass(log.status)\" class=\"font-semibold\">\n              {{ log.status }}\n            </UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">\n              <div class=\"flex items-center gap-2\">\n                <div class=\"bg-muted h-1.5 w-24 overflow-hidden rounded-full\">\n                  <div\n                    class=\"bg-primary h-full rounded-full\"\n                    :style=\"{ width: `${Math.min(100, (log.latency / 600) * 100)}%` }\"\n                  />\n                </div>\n                <span class=\"text-muted-foreground w-14 tabular-nums\">{{ log.latency }} ms</span>\n              </div>\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden text-right md:table-cell\">\n              {{ log.time }}\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"5\">No requests for this method.</UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </div>\n    <p class=\"text-muted-foreground mt-4 text-sm\" aria-live=\"polite\">\n      {{ rows.length }} requests in the last hour\n    </p>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Method = \"GET\" | \"POST\" | \"PUT\" | \"DELETE\";\n\n  type Log = {\n    id: string;\n    method: Method;\n    path: string;\n    status: number;\n    latency: number;\n    time: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      logs?: Log[];\n    }>(),\n    {\n      title: \"Request logs\",\n      description: \"Recent traffic hitting your public API.\",\n      logs: () => [\n        {\n          id: \"l1\",\n          method: \"GET\",\n          path: \"/v1/customers\",\n          status: 200,\n          latency: 84,\n          time: \"14:32:09\",\n        },\n        {\n          id: \"l2\",\n          method: \"POST\",\n          path: \"/v1/orders\",\n          status: 201,\n          latency: 212,\n          time: \"14:31:47\",\n        },\n        {\n          id: \"l3\",\n          method: \"GET\",\n          path: \"/v1/orders/ord_8231\",\n          status: 404,\n          latency: 41,\n          time: \"14:31:12\",\n        },\n        {\n          id: \"l4\",\n          method: \"PUT\",\n          path: \"/v1/customers/cus_104\",\n          status: 200,\n          latency: 163,\n          time: \"14:30:58\",\n        },\n        {\n          id: \"l5\",\n          method: \"POST\",\n          path: \"/v1/payments\",\n          status: 500,\n          latency: 540,\n          time: \"14:30:21\",\n        },\n        {\n          id: \"l6\",\n          method: \"DELETE\",\n          path: \"/v1/webhooks/wh_77\",\n          status: 204,\n          latency: 58,\n          time: \"14:29:40\",\n        },\n        {\n          id: \"l7\",\n          method: \"GET\",\n          path: \"/v1/invoices?limit=20\",\n          status: 200,\n          latency: 97,\n          time: \"14:29:02\",\n        },\n      ],\n    }\n  );\n\n  const methods = [\"GET\", \"POST\", \"PUT\", \"DELETE\"] as const;\n  const methodColors = { GET: \"green\", POST: \"blue\", PUT: \"amber\", DELETE: \"red\" } as const;\n\n  const method = ref<Method | undefined>();\n\n  const rows = computed(() =>\n    method.value ? props.logs.filter((log) => log.method === method.value) : props.logs\n  );\n\n  function statusClass(status: number) {\n    if (status >= 500) return \"text-red-600 dark:text-red-400\";\n    if (status >= 400) return \"text-amber-600 dark:text-amber-400\";\n    return \"text-green-600 dark:text-green-400\";\n  }\n</script>\n","category":"TableLists","description":"API request log table. Features: Monospace paths, colored HTTP method badges, status code colors, latency bars, method filter toggle group and a live request count","path":"DataTable/TableLists/BlockTableLists6.vue","components":["badge","container","table","toggle-group"]},{"name":"Table Lists 7","fileName":"BlockTableLists7.vue","file":"<template>\n  <!--\n    Product inventory table with stock levels\n    Features: Product thumbnail and SKU cell, stock progress bar, low stock and out of stock badges, price column and a low stock summary alert\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <UiButton variant=\"outline\" @click=\"useSonner.info('Open your restock form here')\">\n        <Icon name=\"lucide:package-plus\" class=\"size-4\" />\n        Restock\n      </UiButton>\n    </div>\n\n    <UiAlert\n      v-if=\"lowCount\"\n      class=\"mt-8\"\n      variant=\"warning\"\n      icon=\"lucide:triangle-alert\"\n      :title=\"`${lowCount} products need restocking`\"\n      description=\"These items are running low or sold out. Reorder them to avoid missed sales.\"\n    />\n\n    <div class=\"mt-6 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Product</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Stock</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"text-right\">Price</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"product in products\" :key=\"product.sku\">\n            <UiTableCell>\n              <div class=\"flex items-center gap-3\">\n                <img\n                  :src=\"product.image\"\n                  :alt=\"product.name\"\n                  class=\"bg-muted size-11 shrink-0 rounded-lg object-cover\"\n                />\n                <div class=\"min-w-0\">\n                  <p class=\"truncate font-medium\">{{ product.name }}</p>\n                  <p class=\"text-muted-foreground font-mono text-xs\">{{ product.sku }}</p>\n                </div>\n              </div>\n            </UiTableCell>\n            <UiTableCell class=\"hidden w-56 sm:table-cell\">\n              <div class=\"flex items-center gap-3\">\n                <UiProgress\n                  :model-value=\"Math.min(100, (product.stock / product.capacity) * 100)\"\n                  class=\"h-1.5\"\n                  :aria-label=\"`${product.name} stock level`\"\n                />\n                <span class=\"text-muted-foreground w-10 text-xs tabular-nums\">\n                  {{ product.stock }}\n                </span>\n              </div>\n            </UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"soft\" :color=\"stockState(product).color\" shape=\"pill\">\n                {{ stockState(product).label }}\n              </UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"text-right tabular-nums\">\n              {{ money.format(product.price) }}\n            </UiTableCell>\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = {\n    sku: string;\n    name: string;\n    image: string;\n    stock: number;\n    capacity: number;\n    price: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      products?: Product[];\n    }>(),\n    {\n      title: \"Inventory\",\n      description: \"Stock on hand across your warehouses.\",\n      products: () => [\n        {\n          sku: \"JKT-RST-M\",\n          name: \"Bomber Jacket\",\n          image:\n            \"https://images.unsplash.com/photo-1591047139829-d91aecb6caea?auto=format&fit=crop&w=160&q=80\",\n          stock: 42,\n          capacity: 60,\n          price: 138,\n        },\n        {\n          sku: \"TEE-WHT-L\",\n          name: \"Classic Tee\",\n          image:\n            \"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=160&q=80\",\n          stock: 8,\n          capacity: 120,\n          price: 32,\n        },\n        {\n          sku: \"TOT-NAT-01\",\n          name: \"Canvas Tote\",\n          image:\n            \"https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=160&q=80\",\n          stock: 0,\n          capacity: 80,\n          price: 28,\n        },\n        {\n          sku: \"SWT-WHT-M\",\n          name: \"Crew Sweatshirt\",\n          image:\n            \"https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?auto=format&fit=crop&w=160&q=80\",\n          stock: 64,\n          capacity: 80,\n          price: 58,\n        },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  function stockState(product: Product) {\n    if (product.stock === 0) return { label: \"Out of stock\", color: \"red\" } as const;\n    if (product.stock / product.capacity < 0.15)\n      return { label: \"Low stock\", color: \"amber\" } as const;\n    return { label: \"In stock\", color: \"green\" } as const;\n  }\n\n  const lowCount = computed(\n    () => props.products.filter((product) => stockState(product).label !== \"In stock\").length\n  );\n</script>\n","category":"TableLists","description":"Product inventory table with stock levels. Features: Product thumbnail and SKU cell, stock progress bar, low stock and out of stock badges, price column and a low stock summary alert","path":"DataTable/TableLists/BlockTableLists7.vue","components":["alert","badge","button","container","progress","table"]},{"name":"Table Lists 8","fileName":"BlockTableLists8.vue","file":"<template>\n  <!--\n    Compact striped table with caption and footer totals\n    Features: Dense rows, zebra striping, right aligned tabular numbers, change indicators, caption and a totals row\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">{{ title }}</h1>\n      <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n      <div class=\"mt-6 overflow-hidden rounded-lg border\">\n        <UiTable class=\"text-sm\">\n          <UiTableCaption class=\"sr-only\">Revenue by region for the current quarter</UiTableCaption>\n          <UiTableHeader>\n            <UiTableRow>\n              <UiTableHead class=\"h-9\">Region</UiTableHead>\n              <UiTableHead class=\"h-9 text-right\">Revenue</UiTableHead>\n              <UiTableHead class=\"h-9 text-right\">Orders</UiTableHead>\n              <UiTableHead class=\"h-9 text-right\">Change</UiTableHead>\n            </UiTableRow>\n          </UiTableHeader>\n          <UiTableBody>\n            <UiTableRow v-for=\"row in regions\" :key=\"row.name\" class=\"even:bg-muted/40\">\n              <UiTableCell class=\"py-1.5 font-medium\">{{ row.name }}</UiTableCell>\n              <UiTableCell class=\"py-1.5 text-right tabular-nums\">\n                {{ money.format(row.revenue) }}\n              </UiTableCell>\n              <UiTableCell class=\"py-1.5 text-right tabular-nums\">{{ row.orders }}</UiTableCell>\n              <UiTableCell class=\"py-1.5 text-right tabular-nums\">\n                <span\n                  class=\"inline-flex items-center gap-1\"\n                  :class=\"\n                    row.change >= 0\n                      ? 'text-green-600 dark:text-green-400'\n                      : 'text-red-600 dark:text-red-400'\n                  \"\n                >\n                  <Icon\n                    :name=\"row.change >= 0 ? 'lucide:trending-up' : 'lucide:trending-down'\"\n                    class=\"size-3.5\"\n                  />\n                  {{ row.change > 0 ? \"+\" : \"\" }}{{ row.change }}%\n                </span>\n              </UiTableCell>\n            </UiTableRow>\n          </UiTableBody>\n          <UiTableFooter>\n            <UiTableRow>\n              <UiTableCell class=\"py-2\">Total</UiTableCell>\n              <UiTableCell class=\"py-2 text-right tabular-nums\">\n                {{ money.format(totals.revenue) }}\n              </UiTableCell>\n              <UiTableCell class=\"py-2 text-right tabular-nums\">{{ totals.orders }}</UiTableCell>\n              <UiTableCell />\n            </UiTableRow>\n          </UiTableFooter>\n        </UiTable>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Region = { name: string; revenue: number; orders: number; change: number };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      regions?: Region[];\n    }>(),\n    {\n      title: \"Revenue by region\",\n      description: \"A dense, scannable summary for the current quarter.\",\n      regions: () => [\n        { name: \"North America\", revenue: 482300, orders: 3120, change: 12.4 },\n        { name: \"Europe\", revenue: 318950, orders: 2204, change: 6.1 },\n        { name: \"Asia Pacific\", revenue: 267400, orders: 1986, change: 18.7 },\n        { name: \"Latin America\", revenue: 94200, orders: 741, change: -2.3 },\n        { name: \"Middle East & Africa\", revenue: 61800, orders: 468, change: 4.9 },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const totals = computed(() => ({\n    revenue: props.regions.reduce((sum, row) => sum + row.revenue, 0),\n    orders: props.regions.reduce((sum, row) => sum + row.orders, 0),\n  }));\n</script>\n","category":"TableLists","description":"Compact striped table with caption and footer totals. Features: Dense rows, zebra striping, right aligned tabular numbers, change indicators, caption and a totals row","path":"DataTable/TableLists/BlockTableLists8.vue","components":["container","table"]},{"name":"Table Selection 1","fileName":"BlockTableSelection1.vue","file":"<template>\n  <!--\n    Selectable table with a bulk action bar\n    Features: Select all checkbox with an indeterminate state, row checkboxes, highlighted selected rows, a bulk bar with archive, delete and clear and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n    <div class=\"mt-8 flex min-h-12 items-center\">\n      <div\n        v-if=\"selected.length\"\n        class=\"bg-muted flex w-full flex-wrap items-center gap-2 rounded-lg border px-3 py-2\"\n        role=\"region\"\n        aria-label=\"Bulk actions\"\n      >\n        <span class=\"text-sm font-medium\" aria-live=\"polite\">{{ selected.length }} selected</span>\n        <div class=\"ml-auto flex items-center gap-2\">\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"archive\">\n            <Icon name=\"lucide:archive\" class=\"size-4\" />\n            Archive\n          </UiButton>\n          <UiButton variant=\"destructive\" size=\"sm\" @click=\"remove\">\n            <Icon name=\"lucide:trash-2\" class=\"size-4\" />\n            Delete\n          </UiButton>\n          <UiButton variant=\"ghost\" size=\"sm\" @click=\"selected = []\">Clear</UiButton>\n        </div>\n      </div>\n      <p v-else class=\"text-muted-foreground text-sm\">Select rows to see bulk actions.</p>\n    </div>\n\n    <div class=\"overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"w-10\">\n              <UiCheckbox\n                :model-value=\"headerState\"\n                aria-label=\"Select all\"\n                @update:model-value=\"toggleAll\"\n              />\n            </UiTableHead>\n            <UiTableHead>File</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Owner</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"hidden text-right md:table-cell\">Size</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow\n            v-for=\"row in rows\"\n            :key=\"row.id\"\n            :data-state=\"selected.includes(row.id) ? 'selected' : undefined\"\n          >\n            <UiTableCell>\n              <UiCheckbox\n                :model-value=\"selected.includes(row.id)\"\n                :aria-label=\"`Select ${row.name}`\"\n                @update:model-value=\"toggle(row.id)\"\n              />\n            </UiTableCell>\n            <UiTableCell class=\"font-medium\">{{ row.name }}</UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">{{ row.owner }}</UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"soft\" :color=\"row.archived ? 'slate' : 'green'\" shape=\"pill\">\n                {{ row.archived ? \"Archived\" : \"Active\" }}\n              </UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden text-right md:table-cell\">\n              {{ row.size }}\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"5\">Nothing left here.</UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Row = { id: string; name: string; owner: string; archived: boolean; size: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      items?: Row[];\n    }>(),\n    {\n      title: \"Documents\",\n      description: \"Pick one or many rows and act on them together.\",\n      items: () => [\n        {\n          id: \"d1\",\n          name: \"Q3 board deck.pdf\",\n          owner: \"Maya Chen\",\n          archived: false,\n          size: \"4.2 MB\",\n        },\n        {\n          id: \"d2\",\n          name: \"Brand guidelines.fig\",\n          owner: \"Sofia Alvarez\",\n          archived: false,\n          size: \"18.6 MB\",\n        },\n        {\n          id: \"d3\",\n          name: \"Roadmap 2027.xlsx\",\n          owner: \"Liam Carter\",\n          archived: false,\n          size: \"612 KB\",\n        },\n        {\n          id: \"d4\",\n          name: \"Customer interviews.docx\",\n          owner: \"Aisha Khan\",\n          archived: true,\n          size: \"1.1 MB\",\n        },\n        {\n          id: \"d5\",\n          name: \"Launch checklist.md\",\n          owner: \"Noah Williams\",\n          archived: false,\n          size: \"12 KB\",\n        },\n      ],\n    }\n  );\n\n  const rows = ref<Row[]>(props.items.map((item) => ({ ...item })));\n  const selected = ref<string[]>([]);\n\n  const headerState = computed<boolean | \"indeterminate\">(() => {\n    if (!selected.value.length) return false;\n    return selected.value.length === rows.value.length ? true : \"indeterminate\";\n  });\n\n  function toggleAll(value: boolean | \"indeterminate\") {\n    selected.value = value === true ? rows.value.map((row) => row.id) : [];\n  }\n\n  function toggle(id: string) {\n    selected.value = selected.value.includes(id)\n      ? selected.value.filter((item) => item !== id)\n      : [...selected.value, id];\n  }\n\n  function archive() {\n    rows.value = rows.value.map((row) =>\n      selected.value.includes(row.id) ? { ...row, archived: true } : row\n    );\n    useSonner.success(`Archived ${selected.value.length} items`);\n    selected.value = [];\n  }\n\n  function remove() {\n    const count = selected.value.length;\n    rows.value = rows.value.filter((row) => !selected.value.includes(row.id));\n    selected.value = [];\n    useSonner.success(`Deleted ${count} items`);\n  }\n</script>\n","category":"TableSelection","description":"Selectable table with a bulk action bar. Features: Select all checkbox with an indeterminate state, row checkboxes, highlighted selected rows, a bulk bar with archive, delete and clear and an empty state","path":"DataTable/TableSelection/BlockTableSelection1.vue","components":["badge","button","checkbox","container","table"]},{"name":"Table Selection 2","fileName":"BlockTableSelection2.vue","file":"<template>\n  <!--\n    Table with a row action menu\n    Features: Dropdown per row with edit, duplicate, copy ID and delete, destructive item styling, duplicate adds a row, delete removes it and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Webhook</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Endpoint</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"w-12\"><span class=\"sr-only\">Actions</span></UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"hook in rows\" :key=\"hook.id\">\n            <UiTableCell>\n              <p class=\"font-medium\">{{ hook.name }}</p>\n              <p class=\"text-muted-foreground font-mono text-xs\">{{ hook.id }}</p>\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden max-w-64 truncate sm:table-cell\">\n              {{ hook.url }}\n            </UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"soft\" :color=\"hook.active ? 'green' : 'slate'\" shape=\"pill\">\n                {{ hook.active ? \"Active\" : \"Paused\" }}\n              </UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"text-right\">\n              <UiDropdownMenu>\n                <UiDropdownMenuTrigger as-child>\n                  <UiButton variant=\"ghost\" size=\"icon-sm\" :aria-label=\"`Actions for ${hook.name}`\">\n                    <Icon name=\"lucide:ellipsis\" class=\"size-4\" />\n                  </UiButton>\n                </UiDropdownMenuTrigger>\n                <UiDropdownMenuContent align=\"end\" class=\"w-44\">\n                  <UiDropdownMenuLabel>Actions</UiDropdownMenuLabel>\n                  <UiDropdownMenuItem @select=\"useSonner.info(`Editing ${hook.name}`)\">\n                    <Icon name=\"lucide:pencil\" class=\"size-4\" />\n                    Edit\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem @select=\"duplicate(hook)\">\n                    <Icon name=\"lucide:copy\" class=\"size-4\" />\n                    Duplicate\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem @select=\"copyId(hook.id)\">\n                    <Icon name=\"lucide:clipboard\" class=\"size-4\" />\n                    Copy ID\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuItem @select=\"hook.active = !hook.active\">\n                    <Icon :name=\"hook.active ? 'lucide:pause' : 'lucide:play'\" class=\"size-4\" />\n                    {{ hook.active ? \"Pause\" : \"Resume\" }}\n                  </UiDropdownMenuItem>\n                  <UiDropdownMenuSeparator />\n                  <UiDropdownMenuItem variant=\"destructive\" @select=\"remove(hook.id)\">\n                    <Icon name=\"lucide:trash-2\" class=\"size-4\" />\n                    Delete\n                  </UiDropdownMenuItem>\n                </UiDropdownMenuContent>\n              </UiDropdownMenu>\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"4\">No webhooks yet.</UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Hook = { id: string; name: string; url: string; active: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      hooks?: Hook[];\n    }>(),\n    {\n      title: \"Webhooks\",\n      description: \"Every row has a menu with the actions you would expect.\",\n      hooks: () => [\n        {\n          id: \"wh_1a2b3c\",\n          name: \"Order created\",\n          url: \"https://api.example.com/hooks/orders\",\n          active: true,\n        },\n        {\n          id: \"wh_4d5e6f\",\n          name: \"Payment failed\",\n          url: \"https://api.example.com/hooks/payments\",\n          active: true,\n        },\n        {\n          id: \"wh_7g8h9i\",\n          name: \"Customer updated\",\n          url: \"https://api.example.com/hooks/customers\",\n          active: false,\n        },\n      ],\n    }\n  );\n\n  const rows = ref<Hook[]>(props.hooks.map((hook) => ({ ...hook })));\n\n  const { copy } = useClipboard();\n\n  async function copyId(id: string) {\n    await copy(id);\n    useSonner.success(\"ID copied\");\n  }\n\n  function duplicate(hook: Hook) {\n    const index = rows.value.findIndex((row) => row.id === hook.id);\n    const suffix = Math.random().toString(36).slice(2, 8);\n    rows.value.splice(index + 1, 0, { ...hook, id: `wh_${suffix}`, name: `${hook.name} (copy)` });\n  }\n\n  function remove(id: string) {\n    rows.value = rows.value.filter((row) => row.id !== id);\n    useSonner.success(\"Webhook deleted\");\n  }\n</script>\n","category":"TableSelection","description":"Table with a row action menu. Features: Dropdown per row with edit, duplicate, copy ID and delete, destructive item styling, duplicate adds a row, delete removes it and an empty state","path":"DataTable/TableSelection/BlockTableSelection2.vue","components":["badge","button","container","dropdown-menu","table"]},{"name":"Table Selection 3","fileName":"BlockTableSelection3.vue","file":"<template>\n  <!--\n    Table with click to edit cells\n    Features: Editable name and price cells built on Editable, enter or blur saves, escape cancels, visible edit affordance on hover and a live inventory value total\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Product</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">SKU</UiTableHead>\n            <UiTableHead class=\"w-36\">Price</UiTableHead>\n            <UiTableHead class=\"w-28 text-right\">Stock</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"product in rows\" :key=\"product.sku\">\n            <UiTableCell>\n              <UiEditable v-model=\"product.name\" submit-mode=\"both\" class=\"-mx-2\">\n                <UiEditableArea>\n                  <UiEditablePreview\n                    class=\"hover:bg-muted focus-visible:ring-ring/50 block cursor-text rounded-md px-2 py-1 font-medium outline-none focus-visible:ring-[3px]\"\n                  />\n                  <UiEditableInput as-child>\n                    <UiInput class=\"h-8\" :aria-label=\"`Name of ${product.name}`\" />\n                  </UiEditableInput>\n                </UiEditableArea>\n              </UiEditable>\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden font-mono text-xs sm:table-cell\">\n              {{ product.sku }}\n            </UiTableCell>\n            <UiTableCell>\n              <UiEditable\n                :model-value=\"String(product.price)\"\n                submit-mode=\"both\"\n                class=\"-mx-2\"\n                @update:model-value=\"setPrice(product, $event)\"\n              >\n                <UiEditableArea>\n                  <UiEditablePreview\n                    class=\"hover:bg-muted focus-visible:ring-ring/50 block cursor-text rounded-md px-2 py-1 tabular-nums outline-none focus-visible:ring-[3px]\"\n                  >\n                    {{ money.format(product.price) }}\n                  </UiEditablePreview>\n                  <UiEditableInput as-child>\n                    <UiInput\n                      type=\"number\"\n                      min=\"0\"\n                      step=\"0.01\"\n                      class=\"h-8\"\n                      :aria-label=\"`Price of ${product.name}`\"\n                    />\n                  </UiEditableInput>\n                </UiEditableArea>\n              </UiEditable>\n            </UiTableCell>\n            <UiTableCell class=\"text-right tabular-nums\">{{ product.stock }}</UiTableCell>\n          </UiTableRow>\n        </UiTableBody>\n        <UiTableFooter>\n          <UiTableRow>\n            <UiTableCell colspan=\"3\" class=\"font-medium\">Inventory value</UiTableCell>\n            <UiTableCell class=\"text-right font-medium tabular-nums\">\n              {{ money.format(total) }}\n            </UiTableCell>\n          </UiTableRow>\n        </UiTableFooter>\n      </UiTable>\n    </div>\n    <p class=\"text-muted-foreground mt-3 text-sm\">Click a name or price to edit it.</p>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = { sku: string; name: string; price: number; stock: number };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      products?: Product[];\n    }>(),\n    {\n      title: \"Price list\",\n      description: \"Edit values right where you read them.\",\n      products: () => [\n        { sku: \"JKT-RST-M\", name: \"Bomber Jacket\", price: 138, stock: 42 },\n        { sku: \"TEE-WHT-L\", name: \"Classic Tee\", price: 32, stock: 120 },\n        { sku: \"TOT-NAT-01\", name: \"Canvas Tote\", price: 28, stock: 80 },\n        { sku: \"SWT-WHT-M\", name: \"Crew Sweatshirt\", price: 58, stock: 64 },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const rows = ref<Product[]>(props.products.map((product) => ({ ...product })));\n\n  const total = computed(() =>\n    rows.value.reduce((sum, product) => sum + product.price * product.stock, 0)\n  );\n\n  function setPrice(product: Product, value: string | undefined) {\n    const next = Number(value);\n    if (Number.isFinite(next) && next >= 0) product.price = next;\n  }\n</script>\n","category":"TableSelection","description":"Table with click to edit cells. Features: Editable name and price cells built on Editable, enter or blur saves, escape cancels, visible edit affordance on hover and a live inventory value total","path":"DataTable/TableSelection/BlockTableSelection3.vue","components":["container","editable","input","table"]},{"name":"Table Selection 4","fileName":"BlockTableSelection4.vue","file":"<template>\n  <!--\n    Table with inline status select\n    Features: Status select in every row, color coded badge preview, live status counts above the table, native keyboard support and a reset button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <UiButton variant=\"outline\" size=\"sm\" @click=\"reset\">\n        <Icon name=\"lucide:rotate-ccw\" class=\"size-4\" />\n        Reset\n      </UiButton>\n    </div>\n\n    <ul class=\"mt-8 flex flex-wrap gap-2\" aria-label=\"Status counts\" aria-live=\"polite\">\n      <li v-for=\"status in statuses\" :key=\"status.value\">\n        <UiBadge variant=\"soft\" :color=\"status.color\" shape=\"pill\" size=\"md\">\n          {{ status.label }} · {{ counts[status.value] }}\n        </UiBadge>\n      </li>\n    </ul>\n\n    <div class=\"mt-4 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Task</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Assignee</UiTableHead>\n            <UiTableHead class=\"w-44\">Status</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"task in rows\" :key=\"task.id\">\n            <UiTableCell class=\"font-medium\">{{ task.title }}</UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">\n              <div class=\"flex items-center gap-2\">\n                <UiAvatar :src=\"task.avatar\" :fallback=\"task.assignee[0]\" class=\"size-6\" />\n                {{ task.assignee }}\n              </div>\n            </UiTableCell>\n            <UiTableCell>\n              <UiSelect v-model=\"task.status\">\n                <UiSelectTrigger size=\"sm\" :aria-label=\"`Status of ${task.title}`\">\n                  <UiSelectValue />\n                </UiSelectTrigger>\n                <UiSelectContent>\n                  <UiSelectItem\n                    v-for=\"status in statuses\"\n                    :key=\"status.value\"\n                    :value=\"status.value\"\n                  >\n                    <span\n                      class=\"inline-block size-2 rounded-full\"\n                      :class=\"status.dot\"\n                      aria-hidden=\"true\"\n                    />\n                    {{ status.label }}\n                  </UiSelectItem>\n                </UiSelectContent>\n              </UiSelect>\n            </UiTableCell>\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"todo\" | \"progress\" | \"review\" | \"done\";\n\n  type Task = { id: string; title: string; assignee: string; avatar: string; status: Status };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      tasks?: Task[];\n    }>(),\n    {\n      title: \"Sprint tasks\",\n      description: \"Change a status from the row and the counts follow.\",\n      tasks: () => [\n        {\n          id: \"t1\",\n          title: \"Design the pricing page\",\n          assignee: \"Sofia\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          status: \"progress\",\n        },\n        {\n          id: \"t2\",\n          title: \"Migrate billing webhooks\",\n          assignee: \"Liam\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          status: \"review\",\n        },\n        {\n          id: \"t3\",\n          title: \"Write release notes\",\n          assignee: \"Aisha\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          status: \"todo\",\n        },\n        {\n          id: \"t4\",\n          title: \"Fix dark mode flicker\",\n          assignee: \"Noah\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          status: \"done\",\n        },\n        {\n          id: \"t5\",\n          title: \"Audit API rate limits\",\n          assignee: \"Maya\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          status: \"todo\",\n        },\n      ],\n    }\n  );\n\n  const statuses = [\n    { value: \"todo\", label: \"To do\", color: \"slate\", dot: \"bg-slate-400\" },\n    { value: \"progress\", label: \"In progress\", color: \"blue\", dot: \"bg-blue-500\" },\n    { value: \"review\", label: \"In review\", color: \"amber\", dot: \"bg-amber-500\" },\n    { value: \"done\", label: \"Done\", color: \"green\", dot: \"bg-green-500\" },\n  ] as const;\n\n  const rows = ref<Task[]>(props.tasks.map((task) => ({ ...task })));\n\n  const counts = computed(() => {\n    const result: Record<Status, number> = { todo: 0, progress: 0, review: 0, done: 0 };\n    for (const task of rows.value) result[task.status]++;\n    return result;\n  });\n\n  function reset() {\n    rows.value = props.tasks.map((task) => ({ ...task }));\n  }\n</script>\n","category":"TableSelection","description":"Table with inline status select. Features: Status select in every row, color coded badge preview, live status counts above the table, native keyboard support and a reset button","path":"DataTable/TableSelection/BlockTableSelection4.vue","components":["avatar","badge","button","container","select","table"]},{"name":"Table Selection 5","fileName":"BlockTableSelection5.vue","file":"<template>\n  <!--\n    Paginated table with select all across pages\n    Features: Page level select all, a banner that offers to select every result, selection kept across pages, a running total of the selected invoices and pagination\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n    <div class=\"mt-8 space-y-3\">\n      <div\n        v-if=\"pageAllSelected && !allSelected\"\n        class=\"bg-muted flex flex-wrap items-center gap-x-2 rounded-lg border px-4 py-2 text-sm\"\n        role=\"status\"\n      >\n        All {{ pageRows.length }} invoices on this page are selected.\n        <UiButton variant=\"link\" class=\"h-auto p-0\" @click=\"selectEvery\">\n          Select all {{ invoices.length }} invoices\n        </UiButton>\n      </div>\n      <div\n        v-else-if=\"allSelected\"\n        class=\"bg-muted flex flex-wrap items-center gap-x-2 rounded-lg border px-4 py-2 text-sm\"\n        role=\"status\"\n      >\n        All {{ invoices.length }} invoices are selected.\n        <UiButton variant=\"link\" class=\"h-auto p-0\" @click=\"selected = []\"\n          >Clear selection</UiButton\n        >\n      </div>\n\n      <div class=\"overflow-hidden rounded-xl border\">\n        <UiTable>\n          <UiTableHeader>\n            <UiTableRow>\n              <UiTableHead class=\"w-10\">\n                <UiCheckbox\n                  :model-value=\"headerState\"\n                  aria-label=\"Select all on this page\"\n                  @update:model-value=\"togglePage\"\n                />\n              </UiTableHead>\n              <UiTableHead>Invoice</UiTableHead>\n              <UiTableHead class=\"hidden sm:table-cell\">Customer</UiTableHead>\n              <UiTableHead class=\"text-right\">Amount</UiTableHead>\n            </UiTableRow>\n          </UiTableHeader>\n          <UiTableBody>\n            <UiTableRow\n              v-for=\"invoice in pageRows\"\n              :key=\"invoice.id\"\n              :data-state=\"selected.includes(invoice.id) ? 'selected' : undefined\"\n            >\n              <UiTableCell>\n                <UiCheckbox\n                  :model-value=\"selected.includes(invoice.id)\"\n                  :aria-label=\"`Select ${invoice.id}`\"\n                  @update:model-value=\"toggle(invoice.id)\"\n                />\n              </UiTableCell>\n              <UiTableCell class=\"font-medium\">{{ invoice.id }}</UiTableCell>\n              <UiTableCell class=\"hidden sm:table-cell\">{{ invoice.customer }}</UiTableCell>\n              <UiTableCell class=\"text-right tabular-nums\">\n                {{ money.format(invoice.amount) }}\n              </UiTableCell>\n            </UiTableRow>\n          </UiTableBody>\n          <UiTableFooter>\n            <UiTableRow>\n              <UiTableCell colspan=\"3\" class=\"font-medium\" aria-live=\"polite\">\n                {{ selected.length }} selected\n              </UiTableCell>\n              <UiTableCell class=\"text-right font-medium tabular-nums\">\n                {{ money.format(selectedTotal) }}\n              </UiTableCell>\n            </UiTableRow>\n          </UiTableFooter>\n        </UiTable>\n      </div>\n\n      <UiPagination\n        v-model:page=\"page\"\n        :total=\"invoices.length\"\n        :items-per-page=\"perPage\"\n        :sibling-count=\"1\"\n        class=\"pt-2\"\n      />\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Invoice = { id: string; customer: string; amount: number };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      perPage?: number;\n      invoices?: Invoice[];\n    }>(),\n    {\n      title: \"Select invoices\",\n      description: \"Selection sticks while you page, and the total follows along.\",\n      perPage: 4,\n      invoices: () => [\n        { id: \"INV-2001\", customer: \"Northwind Traders\", amount: 1280 },\n        { id: \"INV-2002\", customer: \"Globex Corporation\", amount: 940.5 },\n        { id: \"INV-2003\", customer: \"Initech\", amount: 3200 },\n        { id: \"INV-2004\", customer: \"Umbrella Labs\", amount: 575 },\n        { id: \"INV-2005\", customer: \"Hooli\", amount: 2150 },\n        { id: \"INV-2006\", customer: \"Stark Industries\", amount: 8800 },\n        { id: \"INV-2007\", customer: \"Soylent\", amount: 310.75 },\n        { id: \"INV-2008\", customer: \"Wayne Enterprises\", amount: 4125 },\n        { id: \"INV-2009\", customer: \"Wonka Industries\", amount: 690 },\n        { id: \"INV-2010\", customer: \"Cyberdyne Systems\", amount: 1740 },\n        { id: \"INV-2011\", customer: \"Tyrell Corporation\", amount: 2260 },\n        { id: \"INV-2012\", customer: \"Aperture Science\", amount: 5035 },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const page = ref(1);\n  const selected = ref<string[]>([]);\n\n  const pageRows = computed(() =>\n    props.invoices.slice((page.value - 1) * props.perPage, page.value * props.perPage)\n  );\n\n  const pageAllSelected = computed(\n    () =>\n      pageRows.value.length > 0 && pageRows.value.every((row) => selected.value.includes(row.id))\n  );\n\n  const allSelected = computed(() => selected.value.length === props.invoices.length);\n\n  const headerState = computed<boolean | \"indeterminate\">(() => {\n    if (pageAllSelected.value) return true;\n    return pageRows.value.some((row) => selected.value.includes(row.id)) ? \"indeterminate\" : false;\n  });\n\n  const selectedTotal = computed(() =>\n    props.invoices\n      .filter((invoice) => selected.value.includes(invoice.id))\n      .reduce((sum, invoice) => sum + invoice.amount, 0)\n  );\n\n  function toggle(id: string) {\n    selected.value = selected.value.includes(id)\n      ? selected.value.filter((item) => item !== id)\n      : [...selected.value, id];\n  }\n\n  function togglePage(value: boolean | \"indeterminate\") {\n    const ids = pageRows.value.map((row) => row.id);\n    selected.value =\n      value === true\n        ? [...new Set([...selected.value, ...ids])]\n        : selected.value.filter((id) => !ids.includes(id));\n  }\n\n  function selectEvery() {\n    selected.value = props.invoices.map((invoice) => invoice.id);\n  }\n</script>\n","category":"TableSelection","description":"Paginated table with select all across pages. Features: Page level select all, a banner that offers to select every result, selection kept across pages, a running total of the selected invoices and pagination","path":"DataTable/TableSelection/BlockTableSelection5.vue","components":["button","checkbox","container","pagination","table"]},{"name":"Table Selection 6","fileName":"BlockTableSelection6.vue","file":"<template>\n  <!--\n    Table with a delete confirmation dialog\n    Features: One alert dialog shared by every row, names the item being deleted, destructive confirm button, bulk delete for selected rows and a toast on success\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <UiButton variant=\"destructive\" :disabled=\"!selected.length\" @click=\"askDelete(selected)\">\n        <Icon name=\"lucide:trash-2\" class=\"size-4\" />\n        Delete selected\n        <span v-if=\"selected.length\">({{ selected.length }})</span>\n      </UiButton>\n    </div>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"w-10\"><span class=\"sr-only\">Select</span></UiTableHead>\n            <UiTableHead>Key</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Created</UiTableHead>\n            <UiTableHead class=\"w-12\"><span class=\"sr-only\">Delete</span></UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow\n            v-for=\"key in rows\"\n            :key=\"key.id\"\n            :data-state=\"selected.includes(key.id) ? 'selected' : undefined\"\n          >\n            <UiTableCell>\n              <UiCheckbox\n                :model-value=\"selected.includes(key.id)\"\n                :aria-label=\"`Select ${key.name}`\"\n                @update:model-value=\"toggle(key.id)\"\n              />\n            </UiTableCell>\n            <UiTableCell>\n              <p class=\"font-medium\">{{ key.name }}</p>\n              <p class=\"text-muted-foreground font-mono text-xs\">{{ key.preview }}</p>\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden sm:table-cell\">\n              {{ key.created }}\n            </UiTableCell>\n            <UiTableCell class=\"text-right\">\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                :aria-label=\"`Delete ${key.name}`\"\n                @click=\"askDelete([key.id])\"\n              >\n                <Icon name=\"lucide:trash-2\" class=\"text-destructive size-4\" />\n              </UiButton>\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"4\">You have no API keys.</UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </div>\n\n    <UiAlertDialog v-model:open=\"open\">\n      <UiAlertDialogContent>\n        <UiAlertDialogHeader>\n          <UiAlertDialogTitle>\n            Delete {{ pending.length === 1 ? pendingNames : `${pending.length} API keys` }}?\n          </UiAlertDialogTitle>\n          <UiAlertDialogDescription>\n            <template v-if=\"pending.length === 1\">\n              “{{ pendingNames }}” will stop working immediately. This cannot be undone.\n            </template>\n            <template v-else>\n              These keys will stop working immediately. This cannot be undone.\n            </template>\n          </UiAlertDialogDescription>\n        </UiAlertDialogHeader>\n        <UiAlertDialogFooter>\n          <UiAlertDialogCancel>Cancel</UiAlertDialogCancel>\n          <UiAlertDialogAction variant=\"destructive\" @click=\"confirmDelete\">\n            Delete\n          </UiAlertDialogAction>\n        </UiAlertDialogFooter>\n      </UiAlertDialogContent>\n    </UiAlertDialog>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Key = { id: string; name: string; preview: string; created: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      keys?: Key[];\n    }>(),\n    {\n      title: \"API keys\",\n      description: \"Destructive actions ask for confirmation first.\",\n      keys: () => [\n        {\n          id: \"k1\",\n          name: \"Production server\",\n          preview: \"sk_live_••••8f2a\",\n          created: \"Aug 3, 2026\",\n        },\n        { id: \"k2\", name: \"Staging\", preview: \"sk_test_••••19cd\", created: \"Sep 12, 2026\" },\n        { id: \"k3\", name: \"CI pipeline\", preview: \"sk_live_••••77b0\", created: \"Oct 1, 2026\" },\n        {\n          id: \"k4\",\n          name: \"Local development\",\n          preview: \"sk_test_••••c3e4\",\n          created: \"Oct 14, 2026\",\n        },\n      ],\n    }\n  );\n\n  const rows = ref<Key[]>(props.keys.map((key) => ({ ...key })));\n  const selected = ref<string[]>([]);\n  const pending = ref<string[]>([]);\n  const open = ref(false);\n\n  const pendingNames = computed(\n    () => rows.value.find((row) => row.id === pending.value[0])?.name ?? \"\"\n  );\n\n  function toggle(id: string) {\n    selected.value = selected.value.includes(id)\n      ? selected.value.filter((item) => item !== id)\n      : [...selected.value, id];\n  }\n\n  function askDelete(ids: string[]) {\n    pending.value = [...ids];\n    open.value = true;\n  }\n\n  function confirmDelete() {\n    const count = pending.value.length;\n    rows.value = rows.value.filter((row) => !pending.value.includes(row.id));\n    selected.value = selected.value.filter((id) => !pending.value.includes(id));\n    pending.value = [];\n    useSonner.success(count === 1 ? \"API key deleted\" : `${count} API keys deleted`);\n  }\n</script>\n","category":"TableSelection","description":"Table with a delete confirmation dialog. Features: One alert dialog shared by every row, names the item being deleted, destructive confirm button, bulk delete for selected rows and a toast on success","path":"DataTable/TableSelection/BlockTableSelection6.vue","components":["alert-dialog","button","checkbox","container","table"]},{"name":"Table Toolbars 1","fileName":"BlockTableToolbars1.vue","file":"<template>\n  <!--\n    Table toolbar with search and removable filter chips\n    Features: Search field, status toggle chips with pressed state, active filter chips that can be dismissed one by one, clear all and a live result count\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n    <div class=\"mt-8 flex flex-col gap-3\">\n      <div class=\"flex flex-col gap-3 sm:flex-row sm:items-center\">\n        <div class=\"relative sm:w-72\">\n          <UiLabel for=\"tickets-search\" class=\"sr-only\">Search tickets</UiLabel>\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput id=\"tickets-search\" v-model=\"query\" placeholder=\"Search tickets\" class=\"pl-9\" />\n        </div>\n        <div class=\"flex flex-wrap gap-2\" role=\"group\" aria-label=\"Filter by status\">\n          <UiButton\n            v-for=\"status in statuses\"\n            :key=\"status\"\n            size=\"sm\"\n            :variant=\"active.includes(status) ? 'default' : 'outline'\"\n            :aria-pressed=\"active.includes(status)\"\n            @click=\"toggle(status)\"\n          >\n            {{ status }}\n          </UiButton>\n        </div>\n      </div>\n\n      <div v-if=\"query || active.length\" class=\"flex flex-wrap items-center gap-2\">\n        <span class=\"text-muted-foreground text-sm\">Filters:</span>\n        <UiBadge v-if=\"query\" variant=\"secondary\" class=\"gap-1.5 pr-1\">\n          Search: {{ query }}\n          <button type=\"button\" aria-label=\"Remove search filter\" @click=\"query = ''\">\n            <Icon name=\"lucide:x\" class=\"size-3\" />\n          </button>\n        </UiBadge>\n        <UiBadge v-for=\"status in active\" :key=\"status\" variant=\"secondary\" class=\"gap-1.5 pr-1\">\n          Status: {{ status }}\n          <button type=\"button\" :aria-label=\"`Remove ${status} filter`\" @click=\"toggle(status)\">\n            <Icon name=\"lucide:x\" class=\"size-3\" />\n          </button>\n        </UiBadge>\n        <UiButton variant=\"link\" size=\"sm\" class=\"h-auto p-0\" @click=\"clear\">Clear all</UiButton>\n      </div>\n    </div>\n\n    <div class=\"mt-4 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Ticket</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Requester</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n            <UiTableHead class=\"hidden text-right md:table-cell\">Opened</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"ticket in rows\" :key=\"ticket.id\">\n            <UiTableCell>\n              <p class=\"font-medium\">{{ ticket.subject }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ ticket.id }}</p>\n            </UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">{{ ticket.requester }}</UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"soft\" :color=\"colors[ticket.status]\" shape=\"pill\">\n                {{ ticket.status }}\n              </UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"text-muted-foreground hidden text-right md:table-cell\">\n              {{ ticket.opened }}\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"4\">\n            No tickets match these filters.\n          </UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </div>\n    <p class=\"text-muted-foreground mt-4 text-sm\" aria-live=\"polite\">\n      {{ rows.length }} of {{ tickets.length }} tickets\n    </p>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"Open\" | \"Pending\" | \"Resolved\";\n\n  type Ticket = { id: string; subject: string; requester: string; status: Status; opened: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      tickets?: Ticket[];\n    }>(),\n    {\n      title: \"Support tickets\",\n      description: \"Narrow the queue with search and status filters.\",\n      tickets: () => [\n        {\n          id: \"TCK-2041\",\n          subject: \"Cannot reset my password\",\n          requester: \"Hannah Lee\",\n          status: \"Open\",\n          opened: \"Oct 17\",\n        },\n        {\n          id: \"TCK-2040\",\n          subject: \"Invoice shows the wrong VAT number\",\n          requester: \"Marco Rossi\",\n          status: \"Pending\",\n          opened: \"Oct 16\",\n        },\n        {\n          id: \"TCK-2037\",\n          subject: \"Export to CSV never finishes\",\n          requester: \"Priya Nair\",\n          status: \"Open\",\n          opened: \"Oct 15\",\n        },\n        {\n          id: \"TCK-2033\",\n          subject: \"How do I add a teammate?\",\n          requester: \"Lukas Meyer\",\n          status: \"Resolved\",\n          opened: \"Oct 13\",\n        },\n        {\n          id: \"TCK-2029\",\n          subject: \"Webhook retries are failing\",\n          requester: \"Chloe Martin\",\n          status: \"Pending\",\n          opened: \"Oct 11\",\n        },\n        {\n          id: \"TCK-2024\",\n          subject: \"Dark mode flickers on load\",\n          requester: \"Tomás Silva\",\n          status: \"Resolved\",\n          opened: \"Oct 9\",\n        },\n      ],\n    }\n  );\n\n  const statuses: Status[] = [\"Open\", \"Pending\", \"Resolved\"];\n  const colors = { Open: \"blue\", Pending: \"amber\", Resolved: \"green\" } as const;\n\n  const query = ref(\"\");\n  const active = ref<Status[]>([]);\n\n  function toggle(status: Status) {\n    active.value = active.value.includes(status)\n      ? active.value.filter((item) => item !== status)\n      : [...active.value, status];\n  }\n\n  function clear() {\n    query.value = \"\";\n    active.value = [];\n  }\n\n  const rows = computed(() => {\n    const term = query.value.trim().toLowerCase();\n    return props.tickets.filter(\n      (ticket) =>\n        (!active.value.length || active.value.includes(ticket.status)) &&\n        (!term ||\n          ticket.subject.toLowerCase().includes(term) ||\n          ticket.requester.toLowerCase().includes(term) ||\n          ticket.id.toLowerCase().includes(term))\n    );\n  });\n</script>\n","category":"TableToolbars","description":"Table toolbar with search and removable filter chips. Features: Search field, status toggle chips with pressed state, active filter chips that can be dismissed one by one, clear all and a live result count","path":"DataTable/TableToolbars/BlockTableToolbars1.vue","components":["badge","button","container","input","label","table"]},{"name":"Table Toolbars 2","fileName":"BlockTableToolbars2.vue","file":"<template>\n  <!--\n    Table toolbar with faceted filter popovers\n    Features: Role and status facet popovers with checkbox lists and counts, selected count badges, reset button and a members table that updates as you filter\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n    <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n\n    <div class=\"mt-8 flex flex-wrap items-center gap-2\">\n      <UiPopover v-for=\"facet in facets\" :key=\"facet.key\">\n        <UiPopoverTrigger as-child>\n          <UiButton variant=\"outline\" size=\"sm\" class=\"border-dashed\">\n            <Icon name=\"lucide:circle-plus\" class=\"size-4\" />\n            {{ facet.label }}\n            <UiBadge v-if=\"selected[facet.key].length\" variant=\"secondary\" class=\"ml-1\">\n              {{ selected[facet.key].length }}\n            </UiBadge>\n          </UiButton>\n        </UiPopoverTrigger>\n        <UiPopoverContent align=\"start\" class=\"w-52 p-2\">\n          <ul class=\"space-y-1\">\n            <li v-for=\"option in options(facet.key)\" :key=\"option.value\">\n              <div class=\"hover:bg-accent flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm\">\n                <UiCheckbox\n                  :id=\"`${facet.key}-${option.value}`\"\n                  :model-value=\"selected[facet.key].includes(option.value)\"\n                  @update:model-value=\"toggle(facet.key, option.value)\"\n                />\n                <UiLabel :for=\"`${facet.key}-${option.value}`\" class=\"flex-1 cursor-pointer\">\n                  {{ option.value }}\n                </UiLabel>\n                <span class=\"text-muted-foreground text-xs tabular-nums\">{{ option.count }}</span>\n              </div>\n            </li>\n          </ul>\n        </UiPopoverContent>\n      </UiPopover>\n      <UiButton v-if=\"hasFilters\" variant=\"ghost\" size=\"sm\" @click=\"reset\">\n        Reset\n        <Icon name=\"lucide:x\" class=\"size-4\" />\n      </UiButton>\n    </div>\n\n    <div class=\"mt-4 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Member</UiTableHead>\n            <UiTableHead>Role</UiTableHead>\n            <UiTableHead>Status</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"member in rows\" :key=\"member.email\">\n            <UiTableCell>\n              <div class=\"flex items-center gap-3\">\n                <UiAvatar :src=\"member.avatar\" :fallback=\"initials(member.name)\" />\n                <div class=\"min-w-0\">\n                  <p class=\"truncate font-medium\">{{ member.name }}</p>\n                  <p class=\"text-muted-foreground truncate text-xs\">{{ member.email }}</p>\n                </div>\n              </div>\n            </UiTableCell>\n            <UiTableCell>{{ member.role }}</UiTableCell>\n            <UiTableCell>\n              <UiBadge\n                variant=\"soft\"\n                :color=\"member.status === 'Active' ? 'green' : 'amber'\"\n                shape=\"pill\"\n              >\n                {{ member.status }}\n              </UiBadge>\n            </UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"3\"\n            >No members match these filters.</UiTableEmpty\n          >\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type FacetKey = \"role\" | \"status\";\n\n  type Member = {\n    name: string;\n    email: string;\n    avatar: string;\n    role: string;\n    status: \"Active\" | \"Invited\";\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      members?: Member[];\n    }>(),\n    {\n      title: \"Members\",\n      description: \"Combine facets to find exactly who you are looking for.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          email: \"maya@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          role: \"Owner\",\n          status: \"Active\",\n        },\n        {\n          name: \"Liam Carter\",\n          email: \"liam@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          role: \"Admin\",\n          status: \"Active\",\n        },\n        {\n          name: \"Sofia Alvarez\",\n          email: \"sofia@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          role: \"Editor\",\n          status: \"Active\",\n        },\n        {\n          name: \"Noah Williams\",\n          email: \"noah@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          role: \"Editor\",\n          status: \"Invited\",\n        },\n        {\n          name: \"Aisha Khan\",\n          email: \"aisha@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          role: \"Viewer\",\n          status: \"Active\",\n        },\n        {\n          name: \"Ethan Brooks\",\n          email: \"ethan@acme.dev\",\n          avatar: \"https://i.pravatar.cc/80?img=33\",\n          role: \"Viewer\",\n          status: \"Invited\",\n        },\n      ],\n    }\n  );\n\n  const facets: { key: FacetKey; label: string }[] = [\n    { key: \"role\", label: \"Role\" },\n    { key: \"status\", label: \"Status\" },\n  ];\n\n  const selected = reactive<Record<FacetKey, string[]>>({ role: [], status: [] });\n\n  const hasFilters = computed(() => selected.role.length > 0 || selected.status.length > 0);\n\n  function options(key: FacetKey) {\n    const counts = new Map<string, number>();\n    for (const member of props.members) {\n      counts.set(member[key], (counts.get(member[key]) ?? 0) + 1);\n    }\n    return [...counts.entries()].map(([value, count]) => ({ value, count }));\n  }\n\n  function toggle(key: FacetKey, value: string) {\n    selected[key] = selected[key].includes(value)\n      ? selected[key].filter((item) => item !== value)\n      : [...selected[key], value];\n  }\n\n  function reset() {\n    selected.role = [];\n    selected.status = [];\n  }\n\n  const rows = computed(() =>\n    props.members.filter(\n      (member) =>\n        (!selected.role.length || selected.role.includes(member.role)) &&\n        (!selected.status.length || selected.status.includes(member.status))\n    )\n  );\n\n  function initials(name: string) {\n    return name\n      .split(\" \")\n      .map((part) => part[0])\n      .join(\"\")\n      .slice(0, 2);\n  }\n</script>\n","category":"TableToolbars","description":"Table toolbar with faceted filter popovers. Features: Role and status facet popovers with checkbox lists and counts, selected count badges, reset button and a members table that updates as you filter","path":"DataTable/TableToolbars/BlockTableToolbars2.vue","components":["avatar","badge","button","checkbox","container","label","popover","table"]},{"name":"Table Toolbars 3","fileName":"BlockTableToolbars3.vue","file":"<template>\n  <!--\n    Table toolbar with a column visibility menu\n    Features: Columns dropdown with checkbox items, at least one column always stays visible, show all shortcut and a projects table that renders only the chosen columns\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <UiDropdownMenu>\n        <UiDropdownMenuTrigger as-child>\n          <UiButton variant=\"outline\">\n            <Icon name=\"lucide:columns-3\" class=\"size-4\" />\n            Columns\n            <Icon name=\"lucide:chevron-down\" class=\"size-4\" />\n          </UiButton>\n        </UiDropdownMenuTrigger>\n        <UiDropdownMenuContent align=\"end\" class=\"w-44\">\n          <UiDropdownMenuLabel>Toggle columns</UiDropdownMenuLabel>\n          <UiDropdownMenuSeparator />\n          <UiDropdownMenuCheckboxItem\n            v-for=\"column in columns\"\n            :key=\"column.key\"\n            :model-value=\"visible.includes(column.key)\"\n            :disabled=\"visible.length === 1 && visible.includes(column.key)\"\n            @select.prevent\n            @update:model-value=\"toggle(column.key)\"\n          >\n            {{ column.label }}\n          </UiDropdownMenuCheckboxItem>\n          <UiDropdownMenuSeparator />\n          <UiDropdownMenuItem @select=\"visible = columns.map((column) => column.key)\">\n            Show all\n          </UiDropdownMenuItem>\n        </UiDropdownMenuContent>\n      </UiDropdownMenu>\n    </div>\n\n    <div class=\"mt-8 overflow-x-auto rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead v-for=\"column in shownColumns\" :key=\"column.key\" class=\"whitespace-nowrap\">\n              {{ column.label }}\n            </UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"project in projects\" :key=\"project.name\">\n            <UiTableCell v-for=\"column in shownColumns\" :key=\"column.key\" class=\"whitespace-nowrap\">\n              <span v-if=\"column.key === 'name'\" class=\"font-medium\">{{ project.name }}</span>\n              <UiBadge\n                v-else-if=\"column.key === 'status'\"\n                variant=\"soft\"\n                :color=\"project.status === 'On track' ? 'green' : 'amber'\"\n                shape=\"pill\"\n              >\n                {{ project.status }}\n              </UiBadge>\n              <span v-else-if=\"column.key === 'budget'\" class=\"tabular-nums\">\n                {{ money.format(project.budget) }}\n              </span>\n              <span v-else>{{ project[column.key] }}</span>\n            </UiTableCell>\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type ColumnKey = \"name\" | \"owner\" | \"status\" | \"budget\" | \"deadline\";\n\n  type Project = {\n    name: string;\n    owner: string;\n    status: \"On track\" | \"At risk\";\n    budget: number;\n    deadline: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      projects?: Project[];\n    }>(),\n    {\n      title: \"Projects\",\n      description: \"Hide the columns you do not need and keep the table readable.\",\n      projects: () => [\n        {\n          name: \"Website redesign\",\n          owner: \"Sofia Alvarez\",\n          status: \"On track\",\n          budget: 48000,\n          deadline: \"Nov 30, 2026\",\n        },\n        {\n          name: \"Mobile app v2\",\n          owner: \"Liam Carter\",\n          status: \"At risk\",\n          budget: 125000,\n          deadline: \"Dec 15, 2026\",\n        },\n        {\n          name: \"Billing migration\",\n          owner: \"Noah Williams\",\n          status: \"On track\",\n          budget: 36500,\n          deadline: \"Nov 12, 2026\",\n        },\n        {\n          name: \"Brand refresh\",\n          owner: \"Aisha Khan\",\n          status: \"On track\",\n          budget: 22000,\n          deadline: \"Jan 20, 2027\",\n        },\n        {\n          name: \"Data warehouse\",\n          owner: \"Maya Chen\",\n          status: \"At risk\",\n          budget: 89000,\n          deadline: \"Feb 28, 2027\",\n        },\n      ],\n    }\n  );\n\n  const columns: { key: ColumnKey; label: string }[] = [\n    { key: \"name\", label: \"Project\" },\n    { key: \"owner\", label: \"Owner\" },\n    { key: \"status\", label: \"Status\" },\n    { key: \"budget\", label: \"Budget\" },\n    { key: \"deadline\", label: \"Deadline\" },\n  ];\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const visible = ref<ColumnKey[]>(columns.map((column) => column.key));\n\n  const shownColumns = computed(() =>\n    columns.filter((column) => visible.value.includes(column.key))\n  );\n\n  function toggle(key: ColumnKey) {\n    if (visible.value.includes(key)) {\n      if (visible.value.length > 1) visible.value = visible.value.filter((item) => item !== key);\n    } else {\n      visible.value = [...visible.value, key];\n    }\n  }\n</script>\n","category":"TableToolbars","description":"Table toolbar with a column visibility menu. Features: Columns dropdown with checkbox items, at least one column always stays visible, show all shortcut and a projects table that renders only the chosen columns","path":"DataTable/TableToolbars/BlockTableToolbars3.vue","components":["badge","button","container","dropdown-menu","table"]},{"name":"Table Toolbars 4","fileName":"BlockTableToolbars4.vue","file":"<template>\n  <!--\n    Table toolbar with a date range filter\n    Features: Preset date range select, search, orders filtered against a fixed reference date, revenue summary for the range and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <div class=\"flex flex-col gap-3 sm:flex-row\">\n        <div class=\"relative\">\n          <UiLabel for=\"range-search\" class=\"sr-only\">Search orders</UiLabel>\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            id=\"range-search\"\n            v-model=\"query\"\n            placeholder=\"Search orders\"\n            class=\"pl-9 sm:w-56\"\n          />\n        </div>\n        <UiSelect v-model=\"range\">\n          <UiSelectTrigger class=\"sm:w-44\" aria-label=\"Date range\">\n            <Icon name=\"lucide:calendar\" class=\"size-4\" />\n            <UiSelectValue />\n          </UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem v-for=\"option in ranges\" :key=\"option.value\" :value=\"option.value\">\n              {{ option.label }}\n            </UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n      </div>\n    </div>\n\n    <div class=\"mt-8 grid gap-4 sm:grid-cols-2\">\n      <UiCard>\n        <UiCardHeader>\n          <UiCardDescription>Orders in range</UiCardDescription>\n          <UiCardTitle class=\"text-2xl tabular-nums\">{{ rows.length }}</UiCardTitle>\n        </UiCardHeader>\n      </UiCard>\n      <UiCard>\n        <UiCardHeader>\n          <UiCardDescription>Revenue in range</UiCardDescription>\n          <UiCardTitle class=\"text-2xl tabular-nums\">{{ money.format(revenue) }}</UiCardTitle>\n        </UiCardHeader>\n      </UiCard>\n    </div>\n\n    <div class=\"mt-4 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Order</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Customer</UiTableHead>\n            <UiTableHead>Date</UiTableHead>\n            <UiTableHead class=\"text-right\">Total</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"order in rows\" :key=\"order.id\">\n            <UiTableCell class=\"font-medium\">{{ order.id }}</UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">{{ order.customer }}</UiTableCell>\n            <UiTableCell class=\"text-muted-foreground whitespace-nowrap\">\n              {{ formatDate(order.date) }}\n            </UiTableCell>\n            <UiTableCell class=\"text-right tabular-nums\">{{\n              money.format(order.total)\n            }}</UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"4\"\n            >No orders in this date range.</UiTableEmpty\n          >\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Order = { id: string; customer: string; date: string; total: number };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      /** The date the ranges count back from (ISO). Use today's date in your own app. */\n      today?: string;\n      orders?: Order[];\n    }>(),\n    {\n      title: \"Orders\",\n      description: \"Filter by date range and watch the totals update.\",\n      today: \"2026-10-18\",\n      orders: () => [\n        { id: \"AR-48213\", customer: \"Hannah Lee\", date: \"2026-10-16\", total: 248.4 },\n        { id: \"AR-48190\", customer: \"Marco Rossi\", date: \"2026-10-12\", total: 96 },\n        { id: \"AR-48122\", customer: \"Priya Nair\", date: \"2026-10-03\", total: 412.75 },\n        { id: \"AR-47980\", customer: \"Lukas Meyer\", date: \"2026-09-21\", total: 58.2 },\n        { id: \"AR-47811\", customer: \"Chloe Martin\", date: \"2026-09-02\", total: 189 },\n        { id: \"AR-47402\", customer: \"Tomás Silva\", date: \"2026-08-14\", total: 321.5 },\n        { id: \"AR-46955\", customer: \"Aisha Khan\", date: \"2026-06-30\", total: 74.9 },\n      ],\n    }\n  );\n\n  const ranges = [\n    { value: \"7\", label: \"Last 7 days\" },\n    { value: \"30\", label: \"Last 30 days\" },\n    { value: \"90\", label: \"Last 90 days\" },\n    { value: \"all\", label: \"All time\" },\n  ];\n\n  const money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" });\n\n  const query = ref(\"\");\n  const range = ref(\"30\");\n\n  const rows = computed(() => {\n    const term = query.value.trim().toLowerCase();\n    const end = new Date(props.today).getTime();\n    return props.orders.filter((order) => {\n      const age = (end - new Date(order.date).getTime()) / 86_400_000;\n      const inRange = range.value === \"all\" || (age >= 0 && age <= Number(range.value));\n      return (\n        inRange &&\n        (!term ||\n          order.id.toLowerCase().includes(term) ||\n          order.customer.toLowerCase().includes(term))\n      );\n    });\n  });\n\n  const revenue = computed(() => rows.value.reduce((sum, order) => sum + order.total, 0));\n\n  function formatDate(date: string) {\n    return new Date(date).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      year: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  }\n</script>\n","category":"TableToolbars","description":"Table toolbar with a date range filter. Features: Preset date range select, search, orders filtered against a fixed reference date, revenue summary for the range and an empty state","path":"DataTable/TableToolbars/BlockTableToolbars4.vue","components":["card","container","input","label","select","table"]},{"name":"Table Toolbars 5","fileName":"BlockTableToolbars5.vue","file":"<template>\n  <!--\n    Table with saved view tabs\n    Features: Tabs that apply preset filters, per tab counts, save the current search as a new view, deals table with stage badges and amounts\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <div class=\"flex gap-2\">\n        <div class=\"relative\">\n          <UiLabel for=\"views-search\" class=\"sr-only\">Search deals</UiLabel>\n          <Icon\n            name=\"lucide:search\"\n            class=\"text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2\"\n          />\n          <UiInput\n            id=\"views-search\"\n            v-model=\"query\"\n            placeholder=\"Search deals\"\n            class=\"pl-9 sm:w-52\"\n          />\n        </div>\n        <UiButton variant=\"outline\" :disabled=\"!query.trim()\" @click=\"saveView\">\n          <Icon name=\"lucide:bookmark-plus\" class=\"size-4\" />\n          Save view\n        </UiButton>\n      </div>\n    </div>\n\n    <UiTabs v-model=\"current\" class=\"mt-8\">\n      <div class=\"overflow-x-auto\">\n        <UiTabsList>\n          <UiTabsTrigger v-for=\"view in views\" :key=\"view.id\" :value=\"view.id\">\n            {{ view.label }}\n            <UiBadge variant=\"secondary\" class=\"ml-1.5\">{{ countFor(view) }}</UiBadge>\n          </UiTabsTrigger>\n        </UiTabsList>\n      </div>\n    </UiTabs>\n\n    <div class=\"mt-4 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Deal</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Owner</UiTableHead>\n            <UiTableHead>Stage</UiTableHead>\n            <UiTableHead class=\"text-right\">Amount</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"deal in rows\" :key=\"deal.name\">\n            <UiTableCell class=\"font-medium\">{{ deal.name }}</UiTableCell>\n            <UiTableCell class=\"hidden sm:table-cell\">{{ deal.owner }}</UiTableCell>\n            <UiTableCell>\n              <UiBadge variant=\"soft\" :color=\"stages[deal.stage]\" shape=\"pill\">{{\n                deal.stage\n              }}</UiBadge>\n            </UiTableCell>\n            <UiTableCell class=\"text-right tabular-nums\">{{\n              money.format(deal.amount)\n            }}</UiTableCell>\n          </UiTableRow>\n          <UiTableEmpty v-if=\"!rows.length\" :colspan=\"4\">No deals in this view.</UiTableEmpty>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Stage = \"Lead\" | \"Proposal\" | \"Negotiation\" | \"Won\" | \"Lost\";\n\n  type Deal = { name: string; owner: string; stage: Stage; amount: number };\n\n  type View = { id: string; label: string; filter: (deal: Deal) => boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      deals?: Deal[];\n    }>(),\n    {\n      title: \"Deals\",\n      description: \"Switch between saved views or save your own from a search.\",\n      deals: () => [\n        { name: \"Globex annual contract\", owner: \"Maya Chen\", stage: \"Negotiation\", amount: 84000 },\n        { name: \"Initech pilot\", owner: \"Liam Carter\", stage: \"Proposal\", amount: 12500 },\n        { name: \"Hooli platform rollout\", owner: \"Sofia Alvarez\", stage: \"Won\", amount: 132000 },\n        { name: \"Umbrella Labs renewal\", owner: \"Noah Williams\", stage: \"Lead\", amount: 18900 },\n        {\n          name: \"Stark Industries expansion\",\n          owner: \"Maya Chen\",\n          stage: \"Negotiation\",\n          amount: 215000,\n        },\n        { name: \"Soylent seats\", owner: \"Aisha Khan\", stage: \"Lost\", amount: 9400 },\n      ],\n    }\n  );\n\n  const stages = {\n    Lead: \"slate\",\n    Proposal: \"blue\",\n    Negotiation: \"amber\",\n    Won: \"green\",\n    Lost: \"red\",\n  } as const;\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const views = ref<View[]>([\n    { id: \"all\", label: \"All deals\", filter: () => true },\n    {\n      id: \"open\",\n      label: \"Open\",\n      filter: (deal) => ![\"Won\", \"Lost\"].includes(deal.stage),\n    },\n    { id: \"big\", label: \"Over $50k\", filter: (deal) => deal.amount >= 50000 },\n    { id: \"won\", label: \"Won\", filter: (deal) => deal.stage === \"Won\" },\n  ]);\n\n  const current = ref(\"all\");\n  const query = ref(\"\");\n\n  const activeView = computed(() => views.value.find((view) => view.id === current.value));\n\n  function matches(deal: Deal) {\n    const term = query.value.trim().toLowerCase();\n    return (\n      !term || deal.name.toLowerCase().includes(term) || deal.owner.toLowerCase().includes(term)\n    );\n  }\n\n  function countFor(view: View) {\n    return props.deals.filter((deal) => view.filter(deal) && matches(deal)).length;\n  }\n\n  const rows = computed(() =>\n    props.deals.filter((deal) => (activeView.value?.filter(deal) ?? true) && matches(deal))\n  );\n\n  function saveView() {\n    const term = query.value.trim();\n    if (!term) return;\n    const id = `search-${views.value.length}`;\n    const lower = term.toLowerCase();\n    views.value = [\n      ...views.value,\n      {\n        id,\n        label: `“${term}”`,\n        filter: (deal) =>\n          deal.name.toLowerCase().includes(lower) || deal.owner.toLowerCase().includes(lower),\n      },\n    ];\n    query.value = \"\";\n    current.value = id;\n    useSonner.success(\"View saved\");\n  }\n</script>\n","category":"TableToolbars","description":"Table with saved view tabs. Features: Tabs that apply preset filters, per tab counts, save the current search as a new view, deals table with stage badges and amounts","path":"DataTable/TableToolbars/BlockTableToolbars5.vue","components":["badge","button","container","input","label","table","tabs"]},{"name":"Table Toolbars 6","fileName":"BlockTableToolbars6.vue","file":"<template>\n  <!--\n    Table toolbar with density toggle, page size and export\n    Features: Comfortable and compact density toggle group, rows per page select, export button, density aware cell padding and a showing x of y footer\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-2\">{{ description }}</p>\n      </div>\n      <div class=\"flex flex-wrap items-center gap-2\">\n        <UiToggleGroup\n          v-model=\"density\"\n          type=\"single\"\n          variant=\"outline\"\n          size=\"sm\"\n          aria-label=\"Row density\"\n        >\n          <UiToggleGroupItem value=\"comfortable\" aria-label=\"Comfortable rows\">\n            <Icon name=\"lucide:rows-2\" class=\"size-4\" />\n          </UiToggleGroupItem>\n          <UiToggleGroupItem value=\"compact\" aria-label=\"Compact rows\">\n            <Icon name=\"lucide:rows-4\" class=\"size-4\" />\n          </UiToggleGroupItem>\n        </UiToggleGroup>\n        <UiSelect v-model=\"perPage\">\n          <UiSelectTrigger class=\"w-32\" size=\"sm\" aria-label=\"Rows per page\">\n            <UiSelectValue />\n          </UiSelectTrigger>\n          <UiSelectContent>\n            <UiSelectItem v-for=\"size in ['5', '10']\" :key=\"size\" :value=\"size\">\n              {{ size }} per page\n            </UiSelectItem>\n          </UiSelectContent>\n        </UiSelect>\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"useSonner.success('Exported products.csv')\">\n          <Icon name=\"lucide:download\" class=\"size-4\" />\n          Export\n        </UiButton>\n      </div>\n    </div>\n\n    <div class=\"mt-8 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead>Product</UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Category</UiTableHead>\n            <UiTableHead class=\"text-right\">Units sold</UiTableHead>\n            <UiTableHead class=\"text-right\">Revenue</UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow v-for=\"product in visible\" :key=\"product.name\">\n            <UiTableCell :class=\"density === 'compact' ? 'py-1.5' : 'py-4'\" class=\"font-medium\">\n              {{ product.name }}\n            </UiTableCell>\n            <UiTableCell\n              :class=\"density === 'compact' ? 'py-1.5' : 'py-4'\"\n              class=\"text-muted-foreground hidden sm:table-cell\"\n            >\n              {{ product.category }}\n            </UiTableCell>\n            <UiTableCell\n              :class=\"density === 'compact' ? 'py-1.5' : 'py-4'\"\n              class=\"text-right tabular-nums\"\n            >\n              {{ product.units }}\n            </UiTableCell>\n            <UiTableCell\n              :class=\"density === 'compact' ? 'py-1.5' : 'py-4'\"\n              class=\"text-right tabular-nums\"\n            >\n              {{ money.format(product.units * product.price) }}\n            </UiTableCell>\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n    </div>\n    <p class=\"text-muted-foreground mt-4 text-sm\" aria-live=\"polite\">\n      Showing {{ visible.length }} of {{ products.length }} products\n    </p>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Product = { name: string; category: string; units: number; price: number };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      products?: Product[];\n    }>(),\n    {\n      title: \"Best sellers\",\n      description: \"Tune how much you see at once with density and page size.\",\n      products: () => [\n        { name: \"Bomber Jacket\", category: \"Outerwear\", units: 312, price: 138 },\n        { name: \"Classic Tee\", category: \"Tops\", units: 1204, price: 32 },\n        { name: \"Canvas Tote\", category: \"Accessories\", units: 689, price: 28 },\n        { name: \"Crew Sweatshirt\", category: \"Tops\", units: 457, price: 58 },\n        { name: \"Stoneware Mug\", category: \"Home\", units: 233, price: 24 },\n        { name: \"Wool Beanie\", category: \"Accessories\", units: 398, price: 26 },\n        { name: \"Linen Shirt\", category: \"Tops\", units: 176, price: 72 },\n        { name: \"Denim Jacket\", category: \"Outerwear\", units: 142, price: 118 },\n      ],\n    }\n  );\n\n  const money = new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n    maximumFractionDigits: 0,\n  });\n\n  const density = ref<\"comfortable\" | \"compact\">(\"comfortable\");\n  const perPage = ref(\"5\");\n\n  const visible = computed(() => props.products.slice(0, Number(perPage.value)));\n</script>\n","category":"TableToolbars","description":"Table toolbar with density toggle, page size and export. Features: Comfortable and compact density toggle group, rows per page select, export button, density aware cell padding and a showing x of y footer","path":"DataTable/TableToolbars/BlockTableToolbars6.vue","components":["button","container","select","table","toggle-group"]},{"name":"Task Detail 1","fileName":"BlockTaskDetail1.vue","file":"<template>\n  <!--\n    Task detail in a side sheet\n    Features: Row list that opens a sheet from the right, editable title and description, status, assignee and due date fields, labels, a save button with feedback and a sheet that closes with escape\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n      <ul class=\"mt-6 divide-y rounded-xl border\">\n        <li v-for=\"task in tasks\" :key=\"task.id\">\n          <button\n            type=\"button\"\n            class=\"hover:bg-muted/50 focus-visible:ring-ring/50 flex w-full items-center gap-3 px-4 py-3 text-left outline-none focus-visible:ring-[3px] focus-visible:ring-inset\"\n            @click=\"openTask(task)\"\n          >\n            <Icon\n              :name=\"task.status === 'Done' ? 'lucide:circle-check' : 'lucide:circle'\"\n              class=\"size-4\"\n              :class=\"task.status === 'Done' ? 'text-green-600' : 'text-muted-foreground'\"\n            />\n            <span\n              class=\"flex-1 text-sm font-medium\"\n              :class=\"task.status === 'Done' ? 'text-muted-foreground line-through' : ''\"\n              >{{ task.title }}</span\n            >\n            <UiBadge variant=\"soft\" :color=\"colors[task.status]\" shape=\"pill\">{{\n              task.status\n            }}</UiBadge>\n          </button>\n        </li>\n      </ul>\n    </div>\n\n    <UiSheet v-model:open=\"isOpen\">\n      <UiSheetContent side=\"right\" class=\"w-full sm:max-w-md\">\n        <UiSheetHeader>\n          <UiSheetTitle>Task details</UiSheetTitle>\n          <UiSheetDescription>Edit the task, then save your changes.</UiSheetDescription>\n        </UiSheetHeader>\n        <form v-if=\"draft\" class=\"grid gap-5 overflow-y-auto px-4\" @submit.prevent=\"save\">\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"td1-title\">Title</UiLabel>\n            <UiInput id=\"td1-title\" v-model=\"draft.title\" />\n          </div>\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"td1-desc\">Description</UiLabel>\n            <UiTextarea id=\"td1-desc\" v-model=\"draft.description\" :rows=\"4\" />\n          </div>\n          <div class=\"grid grid-cols-2 gap-4\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"td1-status\">Status</UiLabel>\n              <UiNativeSelect id=\"td1-status\" v-model=\"draft.status\">\n                <option v-for=\"status in statuses\" :key=\"status\">{{ status }}</option>\n              </UiNativeSelect>\n            </div>\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"td1-assignee\">Assignee</UiLabel>\n              <UiNativeSelect id=\"td1-assignee\" v-model=\"draft.assignee\">\n                <option v-for=\"person in people\" :key=\"person\">{{ person }}</option>\n              </UiNativeSelect>\n            </div>\n          </div>\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"td1-due\">Due date</UiLabel>\n            <UiInput id=\"td1-due\" v-model=\"draft.due\" type=\"date\" />\n          </div>\n          <div class=\"grid gap-2\">\n            <span class=\"text-sm leading-none font-medium\">Labels</span>\n            <div class=\"flex flex-wrap gap-1.5\">\n              <UiBadge\n                v-for=\"label in draft.labels\"\n                :key=\"label\"\n                variant=\"secondary\"\n                class=\"gap-1 pr-1\"\n              >\n                {{ label }}\n                <button\n                  type=\"button\"\n                  :aria-label=\"`Remove ${label}`\"\n                  class=\"rounded p-0.5\"\n                  @click=\"draft.labels = draft.labels.filter((item) => item !== label)\"\n                >\n                  <Icon name=\"lucide:x\" class=\"size-3\" />\n                </button>\n              </UiBadge>\n              <span v-if=\"!draft.labels.length\" class=\"text-muted-foreground text-sm\"\n                >No labels</span\n              >\n            </div>\n          </div>\n        </form>\n        <UiSheetFooter>\n          <UiButton @click=\"save\">Save changes</UiButton>\n          <UiSheetClose as-child><UiButton variant=\"outline\">Cancel</UiButton></UiSheetClose>\n        </UiSheetFooter>\n      </UiSheetContent>\n    </UiSheet>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"To do\" | \"In progress\" | \"Done\";\n  type Task = {\n    id: string;\n    title: string;\n    description: string;\n    status: Status;\n    assignee: string;\n    due: string;\n    labels: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Task[];\n    }>(),\n    {\n      title: \"Tasks\",\n      initial: () => [\n        {\n          id: \"t1\",\n          title: \"Design the new settings page\",\n          description: \"Cover profile, billing and notifications. Share a prototype with the team.\",\n          status: \"In progress\",\n          assignee: \"Sofia\",\n          due: \"2026-10-24\",\n          labels: [\"Design\", \"Settings\"],\n        },\n        {\n          id: \"t2\",\n          title: \"Fix flaky checkout test\",\n          description: \"Fails about once in ten runs on CI. Likely a timing issue.\",\n          status: \"To do\",\n          assignee: \"Liam\",\n          due: \"2026-10-21\",\n          labels: [\"Bug\"],\n        },\n        {\n          id: \"t3\",\n          title: \"Publish the changelog\",\n          description: \"Summarize the last two sprints for customers.\",\n          status: \"Done\",\n          assignee: \"Aisha\",\n          due: \"2026-10-15\",\n          labels: [\"Content\"],\n        },\n      ],\n    }\n  );\n\n  const statuses: Status[] = [\"To do\", \"In progress\", \"Done\"];\n  const people = [\"Sofia\", \"Liam\", \"Aisha\", \"Maya\", \"Noah\"];\n  const colors = { \"To do\": \"slate\", \"In progress\": \"blue\", Done: \"green\" } as const;\n\n  const tasks = ref<Task[]>(props.initial.map((task) => ({ ...task, labels: [...task.labels] })));\n  const isOpen = ref(false);\n  const draft = ref<Task>();\n\n  function openTask(task: Task) {\n    draft.value = { ...task, labels: [...task.labels] };\n    isOpen.value = true;\n  }\n\n  function save() {\n    if (!draft.value) return;\n    const index = tasks.value.findIndex((task) => task.id === draft.value!.id);\n    if (index > -1) tasks.value[index] = { ...draft.value };\n    isOpen.value = false;\n    useSonner.success(\"Task saved\");\n  }\n</script>\n","category":"TaskDetail","description":"Task detail in a side sheet. Features: Row list that opens a sheet from the right, editable title and description, status, assignee and due date fields, labels, a save button with feedback and a sheet that closes with escape","path":"Tasks/TaskDetail/BlockTaskDetail1.vue","components":["badge","button","container","input","label","native-select","sheet","textarea"]},{"name":"Task Detail 2","fileName":"BlockTaskDetail2.vue","file":"<template>\n  <!--\n    Full page task detail\n    Features: Breadcrumbs, click to edit title with Editable, description textarea, subtask checklist with progress, properties card with status and priority and a mark complete button that updates the page\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiBreadcrumbs\n      :items=\"[\n        { label: 'Projects', link: '#' },\n        { label: 'Website relaunch', link: '#' },\n        { label: `Task ${task.key}` },\n      ]\"\n      class=\"mb-6\"\n    />\n\n    <div class=\"grid gap-8 lg:grid-cols-[1fr_18rem]\">\n      <div class=\"space-y-8\">\n        <div>\n          <UiEditable v-model=\"task.title\" submit-mode=\"both\">\n            <UiEditableArea>\n              <UiEditablePreview\n                class=\"hover:bg-muted block cursor-text rounded-md px-2 py-1 text-3xl font-bold tracking-tight\"\n              />\n              <UiEditableInput as-child\n                ><UiInput class=\"h-auto text-3xl font-bold tracking-tight\" aria-label=\"Task title\"\n              /></UiEditableInput>\n            </UiEditableArea>\n          </UiEditable>\n          <p class=\"text-muted-foreground mt-1 px-2 text-sm\">\n            Opened by {{ task.author }} on {{ task.opened }}\n          </p>\n        </div>\n\n        <section aria-labelledby=\"td2-desc\">\n          <h2 id=\"td2-desc\" class=\"mb-2 text-sm font-semibold\">Description</h2>\n          <UiTextarea v-model=\"task.description\" :rows=\"5\" aria-label=\"Description\" />\n        </section>\n\n        <section aria-labelledby=\"td2-subs\">\n          <div class=\"mb-2 flex items-center justify-between\">\n            <h2 id=\"td2-subs\" class=\"text-sm font-semibold\">Subtasks</h2>\n            <span class=\"text-muted-foreground text-xs tabular-nums\"\n              >{{ doneCount }}/{{ task.subtasks.length }}</span\n            >\n          </div>\n          <UiProgress\n            :model-value=\"(doneCount / Math.max(task.subtasks.length, 1)) * 100\"\n            class=\"mb-3 h-1.5\"\n            aria-label=\"Subtask progress\"\n          />\n          <ul class=\"divide-y rounded-lg border\">\n            <li\n              v-for=\"sub in task.subtasks\"\n              :key=\"sub.id\"\n              class=\"flex items-center gap-3 px-3 py-2\"\n            >\n              <UiCheckbox :id=\"`td2-${sub.id}`\" v-model=\"sub.done\" />\n              <UiLabel\n                :for=\"`td2-${sub.id}`\"\n                class=\"cursor-pointer text-sm font-normal\"\n                :class=\"sub.done ? 'text-muted-foreground line-through' : ''\"\n                >{{ sub.title }}</UiLabel\n              >\n            </li>\n          </ul>\n        </section>\n      </div>\n\n      <aside class=\"space-y-4\" aria-label=\"Properties\">\n        <UiButton\n          class=\"w-full\"\n          :variant=\"completed ? 'outline' : 'default'\"\n          @click=\"task.status = completed ? 'In progress' : 'Done'\"\n        >\n          <Icon :name=\"completed ? 'lucide:rotate-ccw' : 'lucide:check'\" class=\"size-4\" />\n          {{ completed ? \"Reopen task\" : \"Mark complete\" }}\n        </UiButton>\n        <UiCard class=\"gap-0 py-0\">\n          <dl class=\"divide-y text-sm\">\n            <div class=\"flex items-center justify-between gap-3 px-4 py-3\">\n              <dt class=\"text-muted-foreground\">Status</dt>\n              <dd>\n                <UiBadge variant=\"soft\" :color=\"completed ? 'green' : 'blue'\" shape=\"pill\">{{\n                  task.status\n                }}</UiBadge>\n              </dd>\n            </div>\n            <div class=\"flex items-center justify-between gap-3 px-4 py-3\">\n              <dt class=\"text-muted-foreground\">Priority</dt>\n              <dd>\n                <UiNativeSelect v-model=\"task.priority\" class=\"h-8 w-28\" aria-label=\"Priority\"\n                  ><option v-for=\"item in ['High', 'Medium', 'Low']\" :key=\"item\">\n                    {{ item }}\n                  </option></UiNativeSelect\n                >\n              </dd>\n            </div>\n            <div class=\"flex items-center justify-between gap-3 px-4 py-3\">\n              <dt class=\"text-muted-foreground\">Assignee</dt>\n              <dd class=\"flex items-center gap-2\">\n                <UiAvatar :src=\"task.avatar\" fallback=\"S\" class=\"size-6\" />{{ task.assignee }}\n              </dd>\n            </div>\n            <div class=\"flex items-center justify-between gap-3 px-4 py-3\">\n              <dt class=\"text-muted-foreground\">Due</dt>\n              <dd class=\"font-medium\">{{ task.due }}</dd>\n            </div>\n          </dl>\n        </UiCard>\n      </aside>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Sub = { id: string; title: string; done: boolean };\n  type Task = {\n    key: string;\n    title: string;\n    description: string;\n    status: string;\n    priority: string;\n    assignee: string;\n    avatar: string;\n    due: string;\n    author: string;\n    opened: string;\n    subtasks: Sub[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      initial?: Task;\n    }>(),\n    {\n      initial: () => ({\n        key: \"WEB-142\",\n        title: \"Redesign the pricing page\",\n        description:\n          \"Show three plans with a monthly and yearly switch, add a comparison table and keep the page fast on mobile.\",\n        status: \"In progress\",\n        priority: \"High\",\n        assignee: \"Sofia Alvarez\",\n        avatar: \"https://i.pravatar.cc/80?img=32\",\n        due: \"Oct 24, 2026\",\n        author: \"Maya Chen\",\n        opened: \"Oct 9\",\n        subtasks: [\n          { id: \"s1\", title: \"Collect competitor examples\", done: true },\n          { id: \"s2\", title: \"Sketch three layouts\", done: true },\n          { id: \"s3\", title: \"Build the plan cards\", done: false },\n          { id: \"s4\", title: \"Add the comparison table\", done: false },\n        ],\n      }),\n    }\n  );\n\n  const task = reactive<Task>({\n    ...props.initial,\n    subtasks: props.initial.subtasks.map((sub) => ({ ...sub })),\n  });\n\n  const doneCount = computed(() => task.subtasks.filter((sub) => sub.done).length);\n  const completed = computed(() => task.status === \"Done\");\n</script>\n","category":"TaskDetail","description":"Full page task detail. Features: Breadcrumbs, click to edit title with Editable, description textarea, subtask checklist with progress, properties card with status and priority and a mark complete button that updates the page","path":"Tasks/TaskDetail/BlockTaskDetail2.vue","components":["avatar","badge","breadcrumbs","button","card","checkbox","container","editable","input","label","native-select","progress","textarea"]},{"name":"Task Detail 3","fileName":"BlockTaskDetail3.vue","file":"<template>\n  <!--\n    Task discussion with comments and activity\n    Features: Tabs for comments and activity, comment composer that posts at the top or bottom, relative authors with avatars, a timeline of changes, empty state and counts on the tabs\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">{{ title }}</h1>\n      <UiTabs v-model=\"tab\" class=\"mt-6\">\n        <UiTabsList>\n          <UiTabsTrigger value=\"comments\"\n            >Comments\n            <UiBadge variant=\"secondary\" class=\"ml-1.5\">{{\n              comments.length\n            }}</UiBadge></UiTabsTrigger\n          >\n          <UiTabsTrigger value=\"activity\"\n            >Activity\n            <UiBadge variant=\"secondary\" class=\"ml-1.5\">{{\n              activity.length\n            }}</UiBadge></UiTabsTrigger\n          >\n        </UiTabsList>\n\n        <UiTabsContent value=\"comments\" class=\"mt-4\">\n          <form class=\"flex gap-3\" @submit.prevent=\"post\">\n            <UiAvatar src=\"https://i.pravatar.cc/80?img=45\" fallback=\"Y\" class=\"size-9\" />\n            <div class=\"flex-1 space-y-2\">\n              <UiLabel for=\"td3-comment\" class=\"sr-only\">Add a comment</UiLabel>\n              <UiTextarea id=\"td3-comment\" v-model=\"draft\" :rows=\"3\" placeholder=\"Add a comment\" />\n              <div class=\"flex justify-end\">\n                <UiButton type=\"submit\" size=\"sm\" :disabled=\"!draft.trim()\">Comment</UiButton>\n              </div>\n            </div>\n          </form>\n          <ul class=\"mt-6 space-y-5\">\n            <li v-for=\"comment in comments\" :key=\"comment.id\" class=\"flex gap-3\">\n              <UiAvatar :src=\"comment.avatar\" :fallback=\"comment.author[0]\" class=\"size-9\" />\n              <div class=\"bg-muted/50 flex-1 rounded-xl p-3\">\n                <p class=\"text-sm\">\n                  <span class=\"font-semibold\">{{ comment.author }}</span>\n                  <span class=\"text-muted-foreground text-xs\">{{ comment.time }}</span>\n                </p>\n                <p class=\"mt-1 text-sm whitespace-pre-wrap\">{{ comment.text }}</p>\n              </div>\n            </li>\n            <li v-if=\"!comments.length\" class=\"text-muted-foreground py-8 text-center text-sm\">\n              No comments yet. Start the conversation.\n            </li>\n          </ul>\n        </UiTabsContent>\n\n        <UiTabsContent value=\"activity\" class=\"mt-4\">\n          <ol class=\"relative space-y-5 border-l pl-6\">\n            <li v-for=\"item in activity\" :key=\"item.id\" class=\"relative\">\n              <span\n                class=\"bg-background absolute top-0.5 -left-[34px] grid size-6 place-items-center rounded-full border\"\n                ><Icon :name=\"item.icon\" class=\"text-muted-foreground size-3.5\"\n              /></span>\n              <p class=\"text-sm\">\n                <span class=\"font-semibold\">{{ item.who }}</span> {{ item.text }}\n              </p>\n              <p class=\"text-muted-foreground text-xs\">{{ item.time }}</p>\n            </li>\n          </ol>\n        </UiTabsContent>\n      </UiTabs>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Comment = { id: string; author: string; avatar: string; time: string; text: string };\n  type Activity = { id: string; who: string; text: string; time: string; icon: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initialComments?: Comment[];\n      activity?: Activity[];\n    }>(),\n    {\n      title: \"Redesign the pricing page\",\n      initialComments: () => [\n        {\n          id: \"c1\",\n          author: \"Liam Carter\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          time: \"2 hours ago\",\n          text: \"I pushed the plan cards to the preview branch. Can someone check them on a phone?\",\n        },\n        {\n          id: \"c2\",\n          author: \"Sofia Alvarez\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          time: \"1 hour ago\",\n          text: \"On it. The yearly switch looks great, but the badge wraps on small screens.\",\n        },\n      ],\n      activity: () => [\n        {\n          id: \"a1\",\n          who: \"Sofia\",\n          text: \"changed the status to In progress\",\n          time: \"Yesterday, 4:12 PM\",\n          icon: \"lucide:arrow-right-left\",\n        },\n        {\n          id: \"a2\",\n          who: \"Maya\",\n          text: \"set the due date to Oct 24\",\n          time: \"Oct 12, 10:03 AM\",\n          icon: \"lucide:calendar\",\n        },\n        {\n          id: \"a3\",\n          who: \"Maya\",\n          text: \"assigned this to Sofia\",\n          time: \"Oct 9, 9:30 AM\",\n          icon: \"lucide:user\",\n        },\n        {\n          id: \"a4\",\n          who: \"Maya\",\n          text: \"created this task\",\n          time: \"Oct 9, 9:28 AM\",\n          icon: \"lucide:plus\",\n        },\n      ],\n    }\n  );\n\n  const tab = ref(\"comments\");\n  const draft = ref(\"\");\n  const comments = ref<Comment[]>(props.initialComments.map((comment) => ({ ...comment })));\n\n  function post() {\n    const text = draft.value.trim();\n    if (!text) return;\n    comments.value.push({\n      id: `n${comments.value.length}`,\n      author: \"You\",\n      avatar: \"https://i.pravatar.cc/80?img=45\",\n      time: \"Just now\",\n      text,\n    });\n    draft.value = \"\";\n  }\n</script>\n","category":"TaskDetail","description":"Task discussion with comments and activity. Features: Tabs for comments and activity, comment composer that posts at the top or bottom, relative authors with avatars, a timeline of changes, empty state and counts on the tabs","path":"Tasks/TaskDetail/BlockTaskDetail3.vue","components":["avatar","badge","button","container","label","tabs","textarea"]},{"name":"Task Detail 4","fileName":"BlockTaskDetail4.vue","file":"<template>\n  <!--\n    Task with subtasks and attachments\n    Features: Subtask checklist with add and remove, attachment grid with image previews and file cards, add attachment through the file picker, remove buttons with labels and size totals\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl space-y-10\">\n      <section aria-labelledby=\"td4-subs\">\n        <div class=\"flex items-center justify-between\">\n          <h2 id=\"td4-subs\" class=\"text-lg font-semibold\">Subtasks</h2>\n          <span class=\"text-muted-foreground text-sm\" aria-live=\"polite\"\n            >{{ done }} of {{ subs.length }} done</span\n          >\n        </div>\n        <ul class=\"mt-3 divide-y rounded-xl border\">\n          <li\n            v-for=\"sub in subs\"\n            :key=\"sub.id\"\n            class=\"group/sub flex items-center gap-3 px-4 py-2.5\"\n          >\n            <UiCheckbox :id=\"`td4-${sub.id}`\" v-model=\"sub.done\" />\n            <UiLabel\n              :for=\"`td4-${sub.id}`\"\n              class=\"flex-1 cursor-pointer font-normal\"\n              :class=\"sub.done ? 'text-muted-foreground line-through' : ''\"\n              >{{ sub.title }}</UiLabel\n            >\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              class=\"opacity-0 group-focus-within/sub:opacity-100 group-hover/sub:opacity-100\"\n              :aria-label=\"`Remove ${sub.title}`\"\n              @click=\"subs = subs.filter((item) => item.id !== sub.id)\"\n              ><Icon name=\"lucide:x\" class=\"size-4\"\n            /></UiButton>\n          </li>\n          <li>\n            <form class=\"flex items-center gap-2 px-4 py-2\" @submit.prevent=\"addSub\">\n              <Icon name=\"lucide:plus\" class=\"text-muted-foreground size-4\" />\n              <UiLabel for=\"td4-new\" class=\"sr-only\">Add a subtask</UiLabel>\n              <input\n                id=\"td4-new\"\n                v-model=\"draft\"\n                placeholder=\"Add a subtask\"\n                autocomplete=\"off\"\n                class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent py-1 text-sm outline-none\"\n              />\n            </form>\n          </li>\n        </ul>\n      </section>\n\n      <section aria-labelledby=\"td4-files\">\n        <div class=\"flex items-center justify-between\">\n          <h2 id=\"td4-files\" class=\"text-lg font-semibold\">\n            Attachments\n            <span class=\"text-muted-foreground text-sm font-normal\">({{ files.length }})</span>\n          </h2>\n          <input\n            ref=\"picker\"\n            type=\"file\"\n            multiple\n            class=\"sr-only\"\n            tabindex=\"-1\"\n            aria-hidden=\"true\"\n            @change=\"onPick\"\n          />\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"picker?.click()\"\n            ><Icon name=\"lucide:paperclip\" class=\"size-4\" />Add file</UiButton\n          >\n        </div>\n        <ul class=\"mt-3 grid gap-3 sm:grid-cols-2\">\n          <li\n            v-for=\"file in files\"\n            :key=\"file.id\"\n            class=\"group/file relative flex items-center gap-3 rounded-xl border p-3\"\n          >\n            <img\n              v-if=\"file.image\"\n              :src=\"file.image\"\n              alt=\"\"\n              class=\"bg-muted size-12 shrink-0 rounded-lg object-cover\"\n            />\n            <span v-else class=\"bg-muted grid size-12 shrink-0 place-items-center rounded-lg\"\n              ><Icon name=\"lucide:file-text\" class=\"size-5\"\n            /></span>\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"truncate text-sm font-medium\">{{ file.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ file.size }}</p>\n            </div>\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              :aria-label=\"`Remove ${file.name}`\"\n              @click=\"removeFile(file.id)\"\n              ><Icon name=\"lucide:trash-2\" class=\"size-4\"\n            /></UiButton>\n          </li>\n        </ul>\n        <p\n          v-if=\"!files.length\"\n          class=\"text-muted-foreground mt-3 rounded-xl border border-dashed py-8 text-center text-sm\"\n        >\n          No attachments yet.\n        </p>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Sub = { id: string; title: string; done: boolean };\n  type File_ = { id: number; name: string; size: string; image?: string; local?: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      initialSubs?: Sub[];\n      initialFiles?: File_[];\n    }>(),\n    {\n      initialSubs: () => [\n        { id: \"s1\", title: \"Collect competitor examples\", done: true },\n        { id: \"s2\", title: \"Sketch three layouts\", done: false },\n        { id: \"s3\", title: \"Review with the team\", done: false },\n      ],\n      initialFiles: () => [\n        {\n          id: 1,\n          name: \"layout-a.jpg\",\n          size: \"1.2 MB\",\n          image:\n            \"https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=200&q=80\",\n        },\n        { id: 2, name: \"pricing-research.pdf\", size: \"640 KB\" },\n        {\n          id: 3,\n          name: \"layout-b.jpg\",\n          size: \"980 KB\",\n          image:\n            \"https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=200&q=80\",\n        },\n      ],\n    }\n  );\n\n  const subs = ref<Sub[]>(props.initialSubs.map((sub) => ({ ...sub })));\n  const files = ref<File_[]>(props.initialFiles.map((file) => ({ ...file })));\n  const draft = ref(\"\");\n  const picker = ref<HTMLInputElement>();\n  let counter = 100;\n\n  const done = computed(() => subs.value.filter((sub) => sub.done).length);\n\n  function addSub() {\n    const title = draft.value.trim();\n    if (!title) return;\n    subs.value.push({ id: `n${counter++}`, title, done: false });\n    draft.value = \"\";\n  }\n\n  function readable(bytes: number) {\n    return bytes > 1024 * 1024\n      ? `${(bytes / 1024 / 1024).toFixed(1)} MB`\n      : `${Math.max(1, Math.round(bytes / 1024))} KB`;\n  }\n\n  function onPick(event: Event) {\n    const input = event.target as HTMLInputElement;\n    for (const file of [...(input.files ?? [])]) {\n      files.value.push({\n        id: counter++,\n        name: file.name,\n        size: readable(file.size),\n        image: file.type.startsWith(\"image/\") ? URL.createObjectURL(file) : undefined,\n        local: true,\n      });\n    }\n    input.value = \"\";\n  }\n\n  function removeFile(id: number) {\n    const file = files.value.find((item) => item.id === id);\n    if (file?.local && file.image) URL.revokeObjectURL(file.image);\n    files.value = files.value.filter((item) => item.id !== id);\n  }\n\n  onBeforeUnmount(() =>\n    files.value.forEach((file) => file.local && file.image && URL.revokeObjectURL(file.image))\n  );\n</script>\n","category":"TaskDetail","description":"Task with subtasks and attachments. Features: Subtask checklist with add and remove, attachment grid with image previews and file cards, add attachment through the file picker, remove buttons with labels and size totals","path":"Tasks/TaskDetail/BlockTaskDetail4.vue","components":["button","checkbox","container","label"]},{"name":"Task Detail 5","fileName":"BlockTaskDetail5.vue","file":"<template>\n  <!--\n    Task properties sidebar\n    Features: Label and value rows with popover pickers for status, assignee and priority, labels you can add and remove, due date input, estimate stepper and a read only created and updated footer\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <aside class=\"mx-auto w-full max-w-xs rounded-xl border\" aria-label=\"Task properties\">\n      <h1 class=\"border-b px-4 py-3 text-sm font-semibold\">Properties</h1>\n      <dl class=\"divide-y text-sm\">\n        <div class=\"flex items-center justify-between gap-3 px-4 py-2.5\">\n          <dt class=\"text-muted-foreground\">Status</dt>\n          <dd>\n            <UiPopover v-model:open=\"menus.status\">\n              <UiPopoverTrigger as-child>\n                <UiButton variant=\"ghost\" size=\"sm\" class=\"gap-2\"\n                  ><span class=\"size-2 rounded-full\" :class=\"statusDot[task.status]\" />{{\n                    task.status\n                  }}</UiButton\n                >\n              </UiPopoverTrigger>\n              <UiPopoverContent align=\"end\" class=\"w-44 p-1\">\n                <button\n                  v-for=\"item in statuses\"\n                  :key=\"item\"\n                  type=\"button\"\n                  class=\"hover:bg-accent flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm\"\n                  @click=\"pick('status', item)\"\n                >\n                  <span class=\"size-2 rounded-full\" :class=\"statusDot[item]\" />{{ item\n                  }}<Icon v-if=\"task.status === item\" name=\"lucide:check\" class=\"ml-auto size-4\" />\n                </button>\n              </UiPopoverContent>\n            </UiPopover>\n          </dd>\n        </div>\n        <div class=\"flex items-center justify-between gap-3 px-4 py-2.5\">\n          <dt class=\"text-muted-foreground\">Assignee</dt>\n          <dd>\n            <UiPopover v-model:open=\"menus.assignee\">\n              <UiPopoverTrigger as-child>\n                <UiButton variant=\"ghost\" size=\"sm\" class=\"gap-2\"\n                  ><UiAvatar\n                    :src=\"person(task.assignee).avatar\"\n                    :fallback=\"task.assignee[0]\"\n                    class=\"size-5\"\n                  />{{ task.assignee }}</UiButton\n                >\n              </UiPopoverTrigger>\n              <UiPopoverContent align=\"end\" class=\"w-48 p-1\">\n                <button\n                  v-for=\"item in people\"\n                  :key=\"item.name\"\n                  type=\"button\"\n                  class=\"hover:bg-accent flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm\"\n                  @click=\"pick('assignee', item.name)\"\n                >\n                  <UiAvatar :src=\"item.avatar\" :fallback=\"item.name[0]\" class=\"size-5\" />{{\n                    item.name\n                  }}<Icon\n                    v-if=\"task.assignee === item.name\"\n                    name=\"lucide:check\"\n                    class=\"ml-auto size-4\"\n                  />\n                </button>\n              </UiPopoverContent>\n            </UiPopover>\n          </dd>\n        </div>\n        <div class=\"flex items-center justify-between gap-3 px-4 py-2.5\">\n          <dt class=\"text-muted-foreground\">Priority</dt>\n          <dd>\n            <UiToggleGroup v-model=\"task.priority\" type=\"single\" size=\"sm\" aria-label=\"Priority\">\n              <UiToggleGroupItem\n                v-for=\"item in ['Low', 'Med', 'High']\"\n                :key=\"item\"\n                :value=\"item\"\n                class=\"h-7 px-2 text-xs\"\n                >{{ item }}</UiToggleGroupItem\n              >\n            </UiToggleGroup>\n          </dd>\n        </div>\n        <div class=\"flex items-center justify-between gap-3 px-4 py-2.5\">\n          <dt class=\"text-muted-foreground\"><label for=\"td5-due\">Due date</label></dt>\n          <dd><UiInput id=\"td5-due\" v-model=\"task.due\" type=\"date\" class=\"h-8 w-36 text-xs\" /></dd>\n        </div>\n        <div class=\"flex items-center justify-between gap-3 px-4 py-2.5\">\n          <dt class=\"text-muted-foreground\">Estimate</dt>\n          <dd class=\"flex items-center gap-1\">\n            <UiButton\n              variant=\"outline\"\n              size=\"icon-sm\"\n              class=\"size-7\"\n              aria-label=\"Decrease estimate\"\n              :disabled=\"task.estimate <= 1\"\n              @click=\"task.estimate--\"\n              ><Icon name=\"lucide:minus\" class=\"size-3.5\"\n            /></UiButton>\n            <span class=\"w-10 text-center tabular-nums\" aria-live=\"polite\"\n              >{{ task.estimate }} pt</span\n            >\n            <UiButton\n              variant=\"outline\"\n              size=\"icon-sm\"\n              class=\"size-7\"\n              aria-label=\"Increase estimate\"\n              @click=\"task.estimate++\"\n              ><Icon name=\"lucide:plus\" class=\"size-3.5\"\n            /></UiButton>\n          </dd>\n        </div>\n        <div class=\"px-4 py-3\">\n          <dt class=\"text-muted-foreground mb-2\">Labels</dt>\n          <dd class=\"flex flex-wrap gap-1.5\">\n            <UiBadge\n              v-for=\"label in task.labels\"\n              :key=\"label\"\n              variant=\"secondary\"\n              class=\"gap-1 pr-1\"\n            >\n              {{ label }}\n              <button\n                type=\"button\"\n                :aria-label=\"`Remove ${label}`\"\n                class=\"rounded p-0.5\"\n                @click=\"task.labels = task.labels.filter((item) => item !== label)\"\n              >\n                <Icon name=\"lucide:x\" class=\"size-3\" />\n              </button>\n            </UiBadge>\n            <form class=\"inline-flex\" @submit.prevent=\"addLabel\">\n              <UiLabel for=\"td5-label\" class=\"sr-only\">Add a label</UiLabel>\n              <input\n                id=\"td5-label\"\n                v-model=\"newLabel\"\n                placeholder=\"+ Add\"\n                autocomplete=\"off\"\n                class=\"placeholder:text-muted-foreground/70 w-16 rounded bg-transparent px-1 text-xs outline-none\"\n              />\n            </form>\n          </dd>\n        </div>\n      </dl>\n      <p class=\"text-muted-foreground border-t px-4 py-3 text-xs\">\n        Created Oct 9 by Maya · Updated 2 hours ago\n      </p>\n    </aside>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Task = {\n    status: string;\n    assignee: string;\n    priority: string;\n    due: string;\n    estimate: number;\n    labels: string[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      initial?: Task;\n    }>(),\n    {\n      initial: () => ({\n        status: \"In progress\",\n        assignee: \"Sofia\",\n        priority: \"High\",\n        due: \"2026-10-24\",\n        estimate: 5,\n        labels: [\"Design\", \"Pricing\"],\n      }),\n    }\n  );\n\n  const statuses = [\"To do\", \"In progress\", \"In review\", \"Done\"];\n  const statusDot: Record<string, string> = {\n    \"To do\": \"bg-slate-400\",\n    \"In progress\": \"bg-blue-500\",\n    \"In review\": \"bg-amber-500\",\n    Done: \"bg-green-500\",\n  };\n  const people = [\n    { name: \"Sofia\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n    { name: \"Liam\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n    { name: \"Aisha\", avatar: \"https://i.pravatar.cc/80?img=44\" },\n  ];\n\n  const task = reactive<Task>({ ...props.initial, labels: [...props.initial.labels] });\n  const menus = reactive({ status: false, assignee: false });\n  const newLabel = ref(\"\");\n\n  const person = (name: string) => people.find((item) => item.name === name) ?? people[0]!;\n\n  function pick(key: \"status\" | \"assignee\", value: string) {\n    task[key] = value;\n    menus[key] = false;\n  }\n\n  function addLabel() {\n    const label = newLabel.value.trim();\n    if (label && !task.labels.includes(label)) task.labels.push(label);\n    newLabel.value = \"\";\n  }\n</script>\n","category":"TaskDetail","description":"Task properties sidebar. Features: Label and value rows with popover pickers for status, assignee and priority, labels you can add and remove, due date input, estimate stepper and a read only created and updated footer","path":"Tasks/TaskDetail/BlockTaskDetail5.vue","components":["avatar","badge","button","container","input","label","popover","toggle-group"]},{"name":"Task Detail 6","fileName":"BlockTaskDetail6.vue","file":"<template>\n  <!--\n    Quick add task dialog\n    Features: Dialog with a large title field, quick chips for project, assignee, priority and due date, a keyboard shortcut to save, validation message and a task list that shows the new task\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-lg\">\n      <div class=\"flex items-center justify-between\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">{{ title }}</h1>\n        <UiDialog v-model:open=\"open\">\n          <UiDialogTrigger as-child>\n            <UiButton><Icon name=\"lucide:plus\" class=\"size-4\" />New task</UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent\n            class=\"sm:max-w-lg\"\n            @keydown.meta.enter=\"save\"\n            @keydown.ctrl.enter=\"save\"\n          >\n            <UiDialogHeader>\n              <UiDialogTitle>New task</UiDialogTitle>\n              <UiDialogDescription>Capture it now, add detail later.</UiDialogDescription>\n            </UiDialogHeader>\n            <form class=\"grid gap-4\" novalidate @submit.prevent=\"save\">\n              <div class=\"grid gap-1.5\">\n                <UiLabel for=\"td6-title\" class=\"sr-only\">Task title</UiLabel>\n                <UiInput\n                  id=\"td6-title\"\n                  v-model=\"form.title\"\n                  placeholder=\"What needs to be done?\"\n                  class=\"h-11 text-base\"\n                  :aria-invalid=\"Boolean(error)\"\n                  aria-describedby=\"td6-error\"\n                  autocomplete=\"off\"\n                />\n                <p v-if=\"error\" id=\"td6-error\" class=\"text-destructive text-sm\" role=\"alert\">\n                  {{ error }}\n                </p>\n              </div>\n              <UiTextarea\n                v-model=\"form.notes\"\n                :rows=\"3\"\n                placeholder=\"Add notes (optional)\"\n                aria-label=\"Notes\"\n              />\n              <div class=\"flex flex-wrap gap-2\">\n                <UiNativeSelect\n                  v-model=\"form.project\"\n                  class=\"h-8 w-auto text-xs\"\n                  aria-label=\"Project\"\n                  ><option v-for=\"item in projects\" :key=\"item\">{{ item }}</option></UiNativeSelect\n                >\n                <UiNativeSelect\n                  v-model=\"form.assignee\"\n                  class=\"h-8 w-auto text-xs\"\n                  aria-label=\"Assignee\"\n                  ><option v-for=\"item in people\" :key=\"item\">{{ item }}</option></UiNativeSelect\n                >\n                <UiNativeSelect\n                  v-model=\"form.priority\"\n                  class=\"h-8 w-auto text-xs\"\n                  aria-label=\"Priority\"\n                  ><option v-for=\"item in ['Low', 'Medium', 'High']\" :key=\"item\">\n                    {{ item }}\n                  </option></UiNativeSelect\n                >\n                <UiInput\n                  v-model=\"form.due\"\n                  type=\"date\"\n                  class=\"h-8 w-auto text-xs\"\n                  aria-label=\"Due date\"\n                />\n              </div>\n              <UiDialogFooter class=\"items-center sm:justify-between\">\n                <span class=\"text-muted-foreground hidden text-xs sm:block\"\n                  ><UiKbd>Ctrl</UiKbd> + <UiKbd>Enter</UiKbd> to save</span\n                >\n                <div class=\"flex gap-2\">\n                  <UiDialogClose as-child\n                    ><UiButton type=\"button\" variant=\"outline\">Cancel</UiButton></UiDialogClose\n                  >\n                  <UiButton type=\"submit\">Create task</UiButton>\n                </div>\n              </UiDialogFooter>\n            </form>\n          </UiDialogContent>\n        </UiDialog>\n      </div>\n\n      <ul class=\"mt-6 divide-y rounded-xl border\" aria-live=\"polite\">\n        <li v-for=\"task in tasks\" :key=\"task.id\" class=\"px-4 py-3\">\n          <p class=\"text-sm font-medium\">{{ task.title }}</p>\n          <p class=\"text-muted-foreground mt-0.5 text-xs\">\n            {{ task.project }} · {{ task.assignee }} · {{ task.priority }} priority<template\n              v-if=\"task.due\"\n            >\n              · due {{ task.due }}</template\n            >\n          </p>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Task = {\n    id: string;\n    title: string;\n    project: string;\n    assignee: string;\n    priority: string;\n    due: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Task[];\n    }>(),\n    {\n      title: \"Tasks\",\n      initial: () => [\n        {\n          id: \"q1\",\n          title: \"Send the weekly update\",\n          project: \"Company\",\n          assignee: \"Maya\",\n          priority: \"Medium\",\n          due: \"\",\n        },\n        {\n          id: \"q2\",\n          title: \"Review the new icons\",\n          project: \"Design\",\n          assignee: \"Sofia\",\n          priority: \"Low\",\n          due: \"2026-10-25\",\n        },\n      ],\n    }\n  );\n\n  const projects = [\"Company\", \"Design\", \"Engineering\", \"Marketing\"];\n  const people = [\"Maya\", \"Sofia\", \"Liam\", \"Aisha\"];\n\n  const tasks = ref<Task[]>(props.initial.map((task) => ({ ...task })));\n  const open = ref(false);\n  const error = ref(\"\");\n  const blank = () => ({\n    title: \"\",\n    notes: \"\",\n    project: projects[0]!,\n    assignee: people[0]!,\n    priority: \"Medium\",\n    due: \"\",\n  });\n  const form = reactive(blank());\n  let counter = 100;\n\n  function save() {\n    if (!form.title.trim()) {\n      error.value = \"Give the task a title.\";\n      return;\n    }\n    tasks.value.unshift({\n      id: `n${counter++}`,\n      title: form.title.trim(),\n      project: form.project,\n      assignee: form.assignee,\n      priority: form.priority,\n      due: form.due,\n    });\n    Object.assign(form, blank());\n    error.value = \"\";\n    open.value = false;\n    useSonner.success(\"Task created\");\n  }\n</script>\n","category":"TaskDetail","description":"Quick add task dialog. Features: Dialog with a large title field, quick chips for project, assignee, priority and due date, a keyboard shortcut to save, validation message and a task list that shows the new task","path":"Tasks/TaskDetail/BlockTaskDetail6.vue","components":["button","container","dialog","input","kbd","label","native-select","textarea"]},{"name":"Task List 1","fileName":"BlockTaskList1.vue","file":"<template>\n  <!--\n    Tasks grouped by project\n    Features: Collapsible project groups with progress counts, checkbox rows with strike through when done, priority dots, due dates that turn red when overdue and an add task field per group\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n\n      <div class=\"mt-8 space-y-6\">\n        <UiCollapsible\n          v-for=\"group in groups\"\n          :key=\"group.name\"\n          v-model:open=\"open[group.name]\"\n          class=\"rounded-xl border\"\n        >\n          <div class=\"flex items-center gap-2 px-4 py-3\">\n            <UiCollapsibleTrigger as-child>\n              <button\n                type=\"button\"\n                class=\"focus-visible:ring-ring/50 flex flex-1 items-center gap-2 rounded text-left outline-none focus-visible:ring-[3px]\"\n              >\n                <Icon\n                  name=\"lucide:chevron-down\"\n                  class=\"size-4 transition-transform\"\n                  :class=\"open[group.name] ? '' : '-rotate-90'\"\n                />\n                <span class=\"font-semibold\">{{ group.name }}</span>\n                <span class=\"text-muted-foreground text-sm tabular-nums\"\n                  >{{ doneCount(group) }}/{{ group.tasks.length }}</span\n                >\n              </button>\n            </UiCollapsibleTrigger>\n            <UiProgress\n              :model-value=\"(doneCount(group) / Math.max(group.tasks.length, 1)) * 100\"\n              class=\"h-1.5 w-24\"\n              :aria-label=\"`${group.name} progress`\"\n            />\n          </div>\n          <UiCollapsibleContent>\n            <ul class=\"divide-y border-t\">\n              <li\n                v-for=\"task in group.tasks\"\n                :key=\"task.id\"\n                class=\"flex items-center gap-3 px-4 py-2.5\"\n              >\n                <UiCheckbox :id=\"`tl1-${task.id}`\" v-model=\"task.done\" />\n                <UiLabel\n                  :for=\"`tl1-${task.id}`\"\n                  class=\"flex-1 cursor-pointer font-normal\"\n                  :class=\"task.done ? 'text-muted-foreground line-through' : ''\"\n                >\n                  {{ task.title }}\n                </UiLabel>\n                <span\n                  class=\"size-2 rounded-full\"\n                  :class=\"dots[task.priority]\"\n                  :title=\"`${task.priority} priority`\"\n                />\n                <span class=\"sr-only\">{{ task.priority }} priority</span>\n                <span\n                  v-if=\"task.due\"\n                  class=\"w-14 text-right text-xs\"\n                  :class=\"\n                    overdue(task)\n                      ? 'font-medium text-red-600 dark:text-red-400'\n                      : 'text-muted-foreground'\n                  \"\n                >\n                  {{ task.due }}\n                </span>\n              </li>\n            </ul>\n            <form class=\"flex items-center gap-2 border-t px-4 py-2\" @submit.prevent=\"add(group)\">\n              <Icon name=\"lucide:plus\" class=\"text-muted-foreground size-4\" />\n              <UiLabel :for=\"`add-${group.name}`\" class=\"sr-only\"\n                >Add a task to {{ group.name }}</UiLabel\n              >\n              <input\n                :id=\"`add-${group.name}`\"\n                v-model=\"drafts[group.name]\"\n                placeholder=\"Add a task\"\n                autocomplete=\"off\"\n                class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent py-1 text-sm outline-none\"\n              />\n            </form>\n          </UiCollapsibleContent>\n        </UiCollapsible>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Task = {\n    id: string;\n    title: string;\n    done: boolean;\n    priority: \"high\" | \"medium\" | \"low\";\n    due?: string;\n    overdue?: boolean;\n  };\n  type Group = { name: string; tasks: Task[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Group[];\n    }>(),\n    {\n      title: \"My tasks\",\n      initial: () => [\n        {\n          name: \"Website relaunch\",\n          tasks: [\n            { id: \"a1\", title: \"Finalize homepage copy\", done: true, priority: \"medium\" },\n            {\n              id: \"a2\",\n              title: \"Review pricing table\",\n              done: false,\n              priority: \"high\",\n              due: \"Oct 12\",\n              overdue: true,\n            },\n            {\n              id: \"a3\",\n              title: \"QA the checkout flow\",\n              done: false,\n              priority: \"high\",\n              due: \"Oct 24\",\n            },\n          ],\n        },\n        {\n          name: \"Marketing\",\n          tasks: [\n            {\n              id: \"b1\",\n              title: \"Schedule launch email\",\n              done: false,\n              priority: \"medium\",\n              due: \"Oct 28\",\n            },\n            { id: \"b2\", title: \"Draft social posts\", done: false, priority: \"low\" },\n          ],\n        },\n        {\n          name: \"Personal\",\n          tasks: [{ id: \"c1\", title: \"Book dentist appointment\", done: true, priority: \"low\" }],\n        },\n      ],\n    }\n  );\n\n  const dots = {\n    high: \"bg-red-500\",\n    medium: \"bg-amber-500\",\n    low: \"bg-slate-300 dark:bg-slate-600\",\n  } as const;\n\n  const groups = ref<Group[]>(\n    props.initial.map((group) => ({ ...group, tasks: group.tasks.map((task) => ({ ...task })) }))\n  );\n  const open = reactive<Record<string, boolean>>(\n    Object.fromEntries(props.initial.map((group) => [group.name, true]))\n  );\n  const drafts = reactive<Record<string, string>>({});\n  let counter = 100;\n\n  const doneCount = (group: Group) => group.tasks.filter((task) => task.done).length;\n  const overdue = (task: Task) => !task.done && Boolean(task.overdue);\n\n  function add(group: Group) {\n    const title = drafts[group.name]?.trim();\n    if (!title) return;\n    group.tasks.push({ id: `n${counter++}`, title, done: false, priority: \"medium\" });\n    drafts[group.name] = \"\";\n  }\n</script>\n","category":"TaskList","description":"Tasks grouped by project. Features: Collapsible project groups with progress counts, checkbox rows with strike through when done, priority dots, due dates that turn red when overdue and an add task field per group","path":"Tasks/TaskList/BlockTaskList1.vue","components":["checkbox","collapsible","container","label","progress"]},{"name":"Task List 2","fileName":"BlockTaskList2.vue","file":"<template>\n  <!--\n    Simple checklist with progress and clear completed\n    Features: Add field at the top, remaining count, filter tabs for all, active and completed, inline editing by double click or enter, delete buttons and a clear completed action\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-md\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n\n      <form class=\"mt-6 flex gap-2\" @submit.prevent=\"add\">\n        <UiLabel for=\"tl2-new\" class=\"sr-only\">New task</UiLabel>\n        <UiInput id=\"tl2-new\" v-model=\"draft\" placeholder=\"What needs doing?\" autocomplete=\"off\" />\n        <UiButton type=\"submit\" :disabled=\"!draft.trim()\">Add</UiButton>\n      </form>\n\n      <UiTabs v-model=\"filter\" class=\"mt-4\">\n        <UiTabsList class=\"w-full\">\n          <UiTabsTrigger\n            v-for=\"item in filters\"\n            :key=\"item\"\n            :value=\"item\"\n            class=\"flex-1 capitalize\"\n            >{{ item }}</UiTabsTrigger\n          >\n        </UiTabsList>\n      </UiTabs>\n\n      <ul class=\"mt-2 divide-y\">\n        <li\n          v-for=\"task in visible\"\n          :key=\"task.id\"\n          class=\"group/task flex items-center gap-3 py-2.5\"\n        >\n          <UiCheckbox\n            :id=\"`tl2-${task.id}`\"\n            v-model=\"task.done\"\n            :aria-label=\"`Complete ${task.title}`\"\n          />\n          <template v-if=\"editing === task.id\">\n            <UiInput\n              v-model=\"task.title\"\n              class=\"h-8 flex-1\"\n              :aria-label=\"`Edit ${task.title}`\"\n              @keydown.enter=\"editing = ''\"\n              @keydown.esc=\"editing = ''\"\n              @blur=\"editing = ''\"\n            />\n          </template>\n          <button\n            v-else\n            type=\"button\"\n            class=\"flex-1 rounded text-left text-sm outline-none focus-visible:underline\"\n            :class=\"task.done ? 'text-muted-foreground line-through' : ''\"\n            @dblclick=\"editing = task.id\"\n            @keydown.enter=\"editing = task.id\"\n          >\n            {{ task.title }}\n          </button>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"opacity-0 group-focus-within/task:opacity-100 group-hover/task:opacity-100\"\n            :aria-label=\"`Delete ${task.title}`\"\n            @click=\"remove(task.id)\"\n          >\n            <Icon name=\"lucide:trash-2\" class=\"size-4\" />\n          </UiButton>\n        </li>\n        <li v-if=\"!visible.length\" class=\"text-muted-foreground py-8 text-center text-sm\">\n          Nothing to show.\n        </li>\n      </ul>\n\n      <div class=\"text-muted-foreground mt-4 flex items-center justify-between text-sm\">\n        <span aria-live=\"polite\"\n          >{{ remaining }} {{ remaining === 1 ? \"task\" : \"tasks\" }} left</span\n        >\n        <UiButton\n          variant=\"link\"\n          size=\"sm\"\n          class=\"h-auto p-0\"\n          :disabled=\"remaining === tasks.length\"\n          @click=\"clearDone\"\n          >Clear completed</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Task = { id: string; title: string; done: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Task[];\n    }>(),\n    {\n      title: \"Today\",\n      initial: () => [\n        { id: \"t1\", title: \"Reply to Sofia about the mockups\", done: true },\n        { id: \"t2\", title: \"Review the Q4 budget\", done: false },\n        { id: \"t3\", title: \"Prepare slides for Thursday\", done: false },\n        { id: \"t4\", title: \"Order new laptop stand\", done: false },\n      ],\n    }\n  );\n\n  const filters = [\"all\", \"active\", \"completed\"];\n\n  const tasks = ref<Task[]>(props.initial.map((task) => ({ ...task })));\n  const draft = ref(\"\");\n  const filter = ref(\"all\");\n  const editing = ref(\"\");\n  let counter = 100;\n\n  const visible = computed(() =>\n    tasks.value.filter(\n      (task) => filter.value === \"all\" || (filter.value === \"active\" ? !task.done : task.done)\n    )\n  );\n  const remaining = computed(() => tasks.value.filter((task) => !task.done).length);\n\n  function add() {\n    const title = draft.value.trim();\n    if (!title) return;\n    tasks.value.unshift({ id: `n${counter++}`, title, done: false });\n    draft.value = \"\";\n  }\n\n  function remove(id: string) {\n    tasks.value = tasks.value.filter((task) => task.id !== id);\n  }\n\n  function clearDone() {\n    tasks.value = tasks.value.filter((task) => !task.done);\n  }\n</script>\n","category":"TaskList","description":"Simple checklist with progress and clear completed. Features: Add field at the top, remaining count, filter tabs for all, active and completed, inline editing by double click or enter, delete buttons and a clear completed action","path":"Tasks/TaskList/BlockTaskList2.vue","components":["button","checkbox","container","input","label","tabs"]},{"name":"Task List 3","fileName":"BlockTaskList3.vue","file":"<template>\n  <!--\n    Task table with sortable columns\n    Features: Table with checkbox, title, assignee, status badge, priority and due date, sortable headers with aria sort, status select per row and a footer summary\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-1 text-sm\">{{ done }} of {{ rows.length }} complete</p>\n      </div>\n    </div>\n\n    <div class=\"mt-6 overflow-hidden rounded-xl border\">\n      <UiTable>\n        <UiTableHeader>\n          <UiTableRow>\n            <UiTableHead class=\"w-10\"><span class=\"sr-only\">Complete</span></UiTableHead>\n            <UiTableHead :aria-sort=\"ariaSort('title')\">\n              <button\n                type=\"button\"\n                class=\"hover:text-foreground flex items-center gap-1\"\n                @click=\"sortBy('title')\"\n              >\n                Task<Icon :name=\"icon('title')\" class=\"size-3.5\" />\n              </button>\n            </UiTableHead>\n            <UiTableHead class=\"hidden sm:table-cell\">Assignee</UiTableHead>\n            <UiTableHead class=\"w-40\">Status</UiTableHead>\n            <UiTableHead class=\"hidden md:table-cell\" :aria-sort=\"ariaSort('priority')\">\n              <button\n                type=\"button\"\n                class=\"hover:text-foreground flex items-center gap-1\"\n                @click=\"sortBy('priority')\"\n              >\n                Priority<Icon :name=\"icon('priority')\" class=\"size-3.5\" />\n              </button>\n            </UiTableHead>\n            <UiTableHead class=\"hidden text-right md:table-cell\" :aria-sort=\"ariaSort('due')\">\n              <button\n                type=\"button\"\n                class=\"hover:text-foreground ml-auto flex items-center gap-1\"\n                @click=\"sortBy('due')\"\n              >\n                Due<Icon :name=\"icon('due')\" class=\"size-3.5\" />\n              </button>\n            </UiTableHead>\n          </UiTableRow>\n        </UiTableHeader>\n        <UiTableBody>\n          <UiTableRow\n            v-for=\"task in sorted\"\n            :key=\"task.id\"\n            :data-state=\"task.status === 'Done' ? 'selected' : undefined\"\n          >\n            <UiTableCell>\n              <UiCheckbox\n                :model-value=\"task.status === 'Done'\"\n                :aria-label=\"`Complete ${task.title}`\"\n                @update:model-value=\"task.status = $event ? 'Done' : 'To do'\"\n              />\n            </UiTableCell>\n            <UiTableCell\n              class=\"font-medium\"\n              :class=\"task.status === 'Done' ? 'text-muted-foreground line-through' : ''\"\n              >{{ task.title }}</UiTableCell\n            >\n            <UiTableCell class=\"hidden sm:table-cell\">\n              <span class=\"flex items-center gap-2\">\n                <UiAvatar :src=\"task.avatar\" :fallback=\"task.assignee[0]\" class=\"size-6\" />\n                {{ task.assignee }}\n              </span>\n            </UiTableCell>\n            <UiTableCell>\n              <UiNativeSelect\n                v-model=\"task.status\"\n                class=\"h-8\"\n                :aria-label=\"`Status of ${task.title}`\"\n              >\n                <option v-for=\"status in statuses\" :key=\"status\">{{ status }}</option>\n              </UiNativeSelect>\n            </UiTableCell>\n            <UiTableCell class=\"hidden md:table-cell\">\n              <UiBadge\n                variant=\"soft\"\n                :color=\"colors[task.priority]\"\n                shape=\"pill\"\n                class=\"capitalize\"\n                >{{ task.priority }}</UiBadge\n              >\n            </UiTableCell>\n            <UiTableCell\n              class=\"text-muted-foreground hidden text-right whitespace-nowrap md:table-cell\"\n              >{{ task.due }}</UiTableCell\n            >\n          </UiTableRow>\n        </UiTableBody>\n      </UiTable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"To do\" | \"In progress\" | \"Done\";\n  type Row = {\n    id: string;\n    title: string;\n    assignee: string;\n    avatar: string;\n    status: Status;\n    priority: \"high\" | \"medium\" | \"low\";\n    due: string;\n  };\n  type Key = \"title\" | \"priority\" | \"due\";\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Row[];\n    }>(),\n    {\n      title: \"Sprint tasks\",\n      initial: () => [\n        {\n          id: \"r1\",\n          title: \"Design the settings page\",\n          assignee: \"Sofia\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          status: \"In progress\",\n          priority: \"high\",\n          due: \"2026-10-22\",\n        },\n        {\n          id: \"r2\",\n          title: \"Fix flaky checkout test\",\n          assignee: \"Liam\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          status: \"To do\",\n          priority: \"high\",\n          due: \"2026-10-20\",\n        },\n        {\n          id: \"r3\",\n          title: \"Write release notes\",\n          assignee: \"Aisha\",\n          avatar: \"https://i.pravatar.cc/80?img=44\",\n          status: \"To do\",\n          priority: \"low\",\n          due: \"2026-10-30\",\n        },\n        {\n          id: \"r4\",\n          title: \"Update onboarding emails\",\n          assignee: \"Maya\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          status: \"Done\",\n          priority: \"medium\",\n          due: \"2026-10-15\",\n        },\n        {\n          id: \"r5\",\n          title: \"Audit API rate limits\",\n          assignee: \"Noah\",\n          avatar: \"https://i.pravatar.cc/80?img=15\",\n          status: \"In progress\",\n          priority: \"medium\",\n          due: \"2026-10-27\",\n        },\n      ],\n    }\n  );\n\n  const statuses: Status[] = [\"To do\", \"In progress\", \"Done\"];\n  const colors = { high: \"red\", medium: \"amber\", low: \"slate\" } as const;\n  const rank = { high: 0, medium: 1, low: 2 };\n\n  const rows = ref<Row[]>(props.initial.map((row) => ({ ...row })));\n  const sortKey = ref<Key>(\"due\");\n  const direction = ref<\"asc\" | \"desc\">(\"asc\");\n\n  const done = computed(() => rows.value.filter((row) => row.status === \"Done\").length);\n\n  const sorted = computed(() => {\n    const factor = direction.value === \"asc\" ? 1 : -1;\n    return [...rows.value].sort((a, b) => {\n      if (sortKey.value === \"priority\") return (rank[a.priority] - rank[b.priority]) * factor;\n      return a[sortKey.value].localeCompare(b[sortKey.value]) * factor;\n    });\n  });\n\n  function sortBy(key: Key) {\n    if (sortKey.value === key) direction.value = direction.value === \"asc\" ? \"desc\" : \"asc\";\n    else {\n      sortKey.value = key;\n      direction.value = \"asc\";\n    }\n  }\n\n  const ariaSort = (key: Key) =>\n    sortKey.value !== key ? \"none\" : direction.value === \"asc\" ? \"ascending\" : \"descending\";\n  const icon = (key: Key) =>\n    sortKey.value !== key\n      ? \"lucide:arrow-up-down\"\n      : direction.value === \"asc\"\n        ? \"lucide:arrow-up\"\n        : \"lucide:arrow-down\";\n</script>\n","category":"TaskList","description":"Task table with sortable columns. Features: Table with checkbox, title, assignee, status badge, priority and due date, sortable headers with aria sort, status select per row and a footer summary","path":"Tasks/TaskList/BlockTaskList3.vue","components":["avatar","badge","checkbox","container","native-select","table"]},{"name":"Task List 4","fileName":"BlockTaskList4.vue","file":"<template>\n  <!--\n    My tasks inbox with due date sections\n    Features: Overdue, today, this week and later sections computed from dates, a reference date prop for stable demos, quick complete checkboxes, snooze menu and a celebration message when everything is done\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n      <p class=\"text-muted-foreground mt-1 text-sm\">\n        {{ openCount }} open · {{ overdueCount }} overdue\n      </p>\n\n      <p\n        v-if=\"!openCount\"\n        class=\"mt-8 rounded-xl border border-dashed py-12 text-center\"\n        role=\"status\"\n      >\n        <Icon name=\"lucide:party-popper\" class=\"text-muted-foreground mx-auto size-8\" />\n        <span class=\"mt-2 block font-medium\">You are all caught up</span>\n      </p>\n\n      <section v-for=\"group in sections\" :key=\"group.label\" class=\"mt-8\" :aria-label=\"group.label\">\n        <h2\n          class=\"mb-2 flex items-center gap-2 text-sm font-semibold\"\n          :class=\"group.label === 'Overdue' ? 'text-red-600 dark:text-red-400' : ''\"\n        >\n          {{ group.label }}\n          <UiBadge variant=\"secondary\">{{ group.items.length }}</UiBadge>\n        </h2>\n        <ul class=\"divide-y rounded-xl border\">\n          <li v-for=\"task in group.items\" :key=\"task.id\" class=\"flex items-center gap-3 px-4 py-3\">\n            <UiCheckbox\n              :id=\"`tl4-${task.id}`\"\n              :model-value=\"task.done\"\n              @update:model-value=\"task.done = Boolean($event)\"\n            />\n            <div class=\"min-w-0 flex-1\">\n              <UiLabel :for=\"`tl4-${task.id}`\" class=\"cursor-pointer font-medium\">{{\n                task.title\n              }}</UiLabel>\n              <p class=\"text-muted-foreground text-xs\">\n                {{ task.project }} · {{ formatDate(task.due) }}\n              </p>\n            </div>\n            <UiDropdownMenu>\n              <UiDropdownMenuTrigger as-child>\n                <UiButton variant=\"ghost\" size=\"icon-sm\" :aria-label=\"`Snooze ${task.title}`\"\n                  ><Icon name=\"lucide:alarm-clock\" class=\"size-4\"\n                /></UiButton>\n              </UiDropdownMenuTrigger>\n              <UiDropdownMenuContent align=\"end\">\n                <UiDropdownMenuLabel>Snooze until</UiDropdownMenuLabel>\n                <UiDropdownMenuItem @select=\"snooze(task, 1)\">Tomorrow</UiDropdownMenuItem>\n                <UiDropdownMenuItem @select=\"snooze(task, 3)\">In 3 days</UiDropdownMenuItem>\n                <UiDropdownMenuItem @select=\"snooze(task, 7)\">Next week</UiDropdownMenuItem>\n              </UiDropdownMenuContent>\n            </UiDropdownMenu>\n          </li>\n        </ul>\n      </section>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Task = { id: string; title: string; project: string; due: string; done: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      /** The date sections are measured from (ISO). Use today's date in your own app. */\n      today?: string;\n      initial?: Task[];\n    }>(),\n    {\n      title: \"Inbox\",\n      today: \"2026-10-18\",\n      initial: () => [\n        {\n          id: \"d1\",\n          title: \"Send the signed contract\",\n          project: \"Legal\",\n          due: \"2026-10-15\",\n          done: false,\n        },\n        {\n          id: \"d2\",\n          title: \"Approve the homepage design\",\n          project: \"Website\",\n          due: \"2026-10-18\",\n          done: false,\n        },\n        {\n          id: \"d3\",\n          title: \"Prepare the board update\",\n          project: \"Company\",\n          due: \"2026-10-18\",\n          done: false,\n        },\n        {\n          id: \"d4\",\n          title: \"Review pull request 482\",\n          project: \"Engineering\",\n          due: \"2026-10-21\",\n          done: false,\n        },\n        {\n          id: \"d5\",\n          title: \"Book travel for the offsite\",\n          project: \"People\",\n          due: \"2026-10-24\",\n          done: false,\n        },\n        {\n          id: \"d6\",\n          title: \"Plan Q1 roadmap workshop\",\n          project: \"Product\",\n          due: \"2026-11-10\",\n          done: false,\n        },\n      ],\n    }\n  );\n\n  const tasks = ref<Task[]>(props.initial.map((task) => ({ ...task })));\n\n  const day = (iso: string) =>\n    Math.round((new Date(iso).getTime() - new Date(props.today).getTime()) / 86_400_000);\n\n  const sections = computed(() => {\n    const open = tasks.value\n      .filter((task) => !task.done)\n      .sort((a, b) => a.due.localeCompare(b.due));\n    return [\n      { label: \"Overdue\", items: open.filter((task) => day(task.due) < 0) },\n      { label: \"Today\", items: open.filter((task) => day(task.due) === 0) },\n      { label: \"This week\", items: open.filter((task) => day(task.due) > 0 && day(task.due) <= 7) },\n      { label: \"Later\", items: open.filter((task) => day(task.due) > 7) },\n    ].filter((group) => group.items.length);\n  });\n\n  const openCount = computed(() => tasks.value.filter((task) => !task.done).length);\n  const overdueCount = computed(\n    () => tasks.value.filter((task) => !task.done && day(task.due) < 0).length\n  );\n\n  function snooze(task: Task, days: number) {\n    const next = new Date(props.today);\n    next.setUTCDate(next.getUTCDate() + days);\n    task.due = next.toISOString().slice(0, 10);\n    useSonner.info(`Snoozed to ${formatDate(task.due)}`);\n  }\n\n  function formatDate(iso: string) {\n    return new Date(iso).toLocaleDateString(\"en-US\", {\n      month: \"short\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n  }\n</script>\n","category":"TaskList","description":"My tasks inbox with due date sections. Features: Overdue, today, this week and later sections computed from dates, a reference date prop for stable demos, quick complete checkboxes, snooze menu and a celebration message when everything is done","path":"Tasks/TaskList/BlockTaskList4.vue","components":["badge","button","checkbox","container","dropdown-menu","label"]},{"name":"Task List 5","fileName":"BlockTaskList5.vue","file":"<template>\n  <!--\n    Backlog list with drag to reorder\n    Features: Drag handle on every row to change priority order, rank numbers that update, move up and down buttons as a keyboard alternative, estimate badges and a total estimate\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex items-end justify-between gap-4\">\n        <div>\n          <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\">\n            Highest priority at the top. Drag the handle or use the arrows.\n          </p>\n        </div>\n        <p class=\"text-muted-foreground text-sm whitespace-nowrap\">{{ total }} points</p>\n      </div>\n\n      <UiDraggable\n        v-model=\"items\"\n        item-key=\"id\"\n        handle=\".handle\"\n        :animation=\"150\"\n        ghost-class=\"opacity-40\"\n        tag=\"ol\"\n        class=\"mt-6 divide-y rounded-xl border\"\n      >\n        <template #item=\"{ element, index }\">\n          <li class=\"bg-card flex items-center gap-3 px-3 py-3\">\n            <span\n              class=\"handle text-muted-foreground hover:text-foreground cursor-grab p-1\"\n              aria-hidden=\"true\"\n              ><Icon name=\"lucide:grip-vertical\" class=\"size-4\"\n            /></span>\n            <span class=\"text-muted-foreground w-5 text-center text-sm tabular-nums\">{{\n              index + 1\n            }}</span>\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"truncate text-sm font-medium\">{{ element.title }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ element.type }}</p>\n            </div>\n            <UiBadge variant=\"secondary\">{{ element.points }} pts</UiBadge>\n            <div class=\"flex\">\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"size-7\"\n                :disabled=\"index === 0\"\n                :aria-label=\"`Move ${element.title} up`\"\n                @click=\"move(index, -1)\"\n                ><Icon name=\"lucide:chevron-up\" class=\"size-4\"\n              /></UiButton>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                class=\"size-7\"\n                :disabled=\"index === items.length - 1\"\n                :aria-label=\"`Move ${element.title} down`\"\n                @click=\"move(index, 1)\"\n                ><Icon name=\"lucide:chevron-down\" class=\"size-4\"\n              /></UiButton>\n            </div>\n          </li>\n        </template>\n      </UiDraggable>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Item = { id: string; title: string; type: string; points: number };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Item[];\n    }>(),\n    {\n      title: \"Backlog\",\n      initial: () => [\n        { id: \"p1\", title: \"Single sign on with SAML\", type: \"Feature\", points: 8 },\n        { id: \"p2\", title: \"Fix double charge on upgrade\", type: \"Bug\", points: 3 },\n        { id: \"p3\", title: \"Bulk edit tasks\", type: \"Feature\", points: 5 },\n        { id: \"p4\", title: \"Improve search relevance\", type: \"Improvement\", points: 5 },\n        { id: \"p5\", title: \"Add keyboard shortcuts help\", type: \"Improvement\", points: 2 },\n      ],\n    }\n  );\n\n  const items = ref<Item[]>(props.initial.map((item) => ({ ...item })));\n  const total = computed(() => items.value.reduce((sum, item) => sum + item.points, 0));\n\n  function move(index: number, step: number) {\n    const next = index + step;\n    if (next < 0 || next >= items.value.length) return;\n    const copy = [...items.value];\n    [copy[index], copy[next]] = [copy[next]!, copy[index]!];\n    items.value = copy;\n  }\n</script>\n","category":"TaskList","description":"Backlog list with drag to reorder. Features: Drag handle on every row to change priority order, rank numbers that update, move up and down buttons as a keyboard alternative, estimate badges and a total estimate","path":"Tasks/TaskList/BlockTaskList5.vue","components":["badge","button","container","draggable"]},{"name":"Task List 6","fileName":"BlockTaskList6.vue","file":"<template>\n  <!--\n    Tasks with expandable subtasks\n    Features: Parent tasks with a subtask progress bar, expand to see and tick subtasks, parent completes when every subtask is done, add subtask field and a count of remaining subtasks\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">{{ title }}</h1>\n\n      <ul class=\"mt-6 divide-y rounded-xl border\">\n        <li v-for=\"task in tasks\" :key=\"task.id\">\n          <div class=\"flex items-center gap-3 px-4 py-3\">\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              class=\"size-7\"\n              :aria-expanded=\"expanded.includes(task.id)\"\n              :aria-controls=\"`subs-${task.id}`\"\n              :aria-label=\"`${expanded.includes(task.id) ? 'Hide' : 'Show'} subtasks of ${task.title}`\"\n              @click=\"toggle(task.id)\"\n            >\n              <Icon\n                name=\"lucide:chevron-right\"\n                class=\"size-4 transition-transform\"\n                :class=\"expanded.includes(task.id) ? 'rotate-90' : ''\"\n              />\n            </UiButton>\n            <UiCheckbox\n              :model-value=\"complete(task)\"\n              :aria-label=\"`Complete ${task.title}`\"\n              @update:model-value=\"setAll(task, Boolean($event))\"\n            />\n            <div class=\"min-w-0 flex-1\">\n              <p\n                class=\"text-sm font-medium\"\n                :class=\"complete(task) ? 'text-muted-foreground line-through' : ''\"\n              >\n                {{ task.title }}\n              </p>\n              <div class=\"mt-1.5 flex items-center gap-2\">\n                <UiProgress\n                  :model-value=\"(doneCount(task) / Math.max(task.subtasks.length, 1)) * 100\"\n                  class=\"h-1 w-24\"\n                  aria-hidden=\"true\"\n                />\n                <span class=\"text-muted-foreground text-xs tabular-nums\"\n                  >{{ doneCount(task) }}/{{ task.subtasks.length }} subtasks</span\n                >\n              </div>\n            </div>\n          </div>\n          <div\n            v-if=\"expanded.includes(task.id)\"\n            :id=\"`subs-${task.id}`\"\n            class=\"bg-muted/30 border-t py-1 pr-4 pl-14\"\n          >\n            <ul>\n              <li v-for=\"sub in task.subtasks\" :key=\"sub.id\" class=\"flex items-center gap-3 py-1.5\">\n                <UiCheckbox :id=\"`sub-${sub.id}`\" v-model=\"sub.done\" />\n                <UiLabel\n                  :for=\"`sub-${sub.id}`\"\n                  class=\"cursor-pointer text-sm font-normal\"\n                  :class=\"sub.done ? 'text-muted-foreground line-through' : ''\"\n                  >{{ sub.title }}</UiLabel\n                >\n              </li>\n            </ul>\n            <form class=\"flex items-center gap-2 py-1.5\" @submit.prevent=\"addSub(task)\">\n              <Icon name=\"lucide:plus\" class=\"text-muted-foreground size-4\" />\n              <UiLabel :for=\"`add-sub-${task.id}`\" class=\"sr-only\"\n                >Add a subtask to {{ task.title }}</UiLabel\n              >\n              <input\n                :id=\"`add-sub-${task.id}`\"\n                v-model=\"drafts[task.id]\"\n                placeholder=\"Add a subtask\"\n                autocomplete=\"off\"\n                class=\"placeholder:text-muted-foreground/70 min-w-0 flex-1 bg-transparent text-sm outline-none\"\n              />\n            </form>\n          </div>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Sub = { id: string; title: string; done: boolean };\n  type Task = { id: string; title: string; subtasks: Sub[] };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      initial?: Task[];\n    }>(),\n    {\n      title: \"Launch plan\",\n      initial: () => [\n        {\n          id: \"t1\",\n          title: \"Prepare the announcement\",\n          subtasks: [\n            { id: \"s1\", title: \"Write the blog post\", done: true },\n            { id: \"s2\", title: \"Record a short demo video\", done: false },\n            { id: \"s3\", title: \"Get legal sign off\", done: false },\n          ],\n        },\n        {\n          id: \"t2\",\n          title: \"Update the documentation\",\n          subtasks: [\n            { id: \"s4\", title: \"Refresh screenshots\", done: true },\n            { id: \"s5\", title: \"Add a migration guide\", done: true },\n          ],\n        },\n        {\n          id: \"t3\",\n          title: \"Brief the support team\",\n          subtasks: [\n            { id: \"s6\", title: \"Share the FAQ\", done: false },\n            { id: \"s7\", title: \"Host a Q and A call\", done: false },\n          ],\n        },\n      ],\n    }\n  );\n\n  const tasks = ref<Task[]>(\n    props.initial.map((task) => ({ ...task, subtasks: task.subtasks.map((sub) => ({ ...sub })) }))\n  );\n  const expanded = ref<string[]>([\"t1\"]);\n  const drafts = reactive<Record<string, string>>({});\n  let counter = 100;\n\n  const doneCount = (task: Task) => task.subtasks.filter((sub) => sub.done).length;\n  const complete = (task: Task) =>\n    task.subtasks.length > 0 && doneCount(task) === task.subtasks.length;\n\n  function toggle(id: string) {\n    expanded.value = expanded.value.includes(id)\n      ? expanded.value.filter((item) => item !== id)\n      : [...expanded.value, id];\n  }\n\n  function setAll(task: Task, value: boolean) {\n    task.subtasks.forEach((sub) => (sub.done = value));\n  }\n\n  function addSub(task: Task) {\n    const title = drafts[task.id]?.trim();\n    if (!title) return;\n    task.subtasks.push({ id: `n${counter++}`, title, done: false });\n    drafts[task.id] = \"\";\n  }\n</script>\n","category":"TaskList","description":"Tasks with expandable subtasks. Features: Parent tasks with a subtask progress bar, expand to see and tick subtasks, parent completes when every subtask is done, add subtask field and a count of remaining subtasks","path":"Tasks/TaskList/BlockTaskList6.vue","components":["button","checkbox","container","label","progress"]},{"name":"Team 1","fileName":"BlockTeam1.vue","file":"<template>\n  <!--\n    Centered avatar grid\n    Features: Heading and six round portraits with names and roles that scale in one after another, three columns on desktop and two on mobile\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <ul class=\"mx-auto mt-12 grid max-w-4xl grid-cols-2 gap-x-6 gap-y-10 md:grid-cols-3\">\n      <Motion\n        v-for=\"(m, i) in props.members.slice(0, 6)\"\n        :key=\"m.name\"\n        as=\"li\"\n        :initial=\"{ opacity: 0, scale: 0.9 }\"\n        :while-in-view=\"{ opacity: 1, scale: 1 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.4, delay: i * 0.06 }\"\n        class=\"text-center\"\n      >\n        <UiAvatar :src=\"m.avatar\" :fallback=\"m.name[0]\" class=\"mx-auto size-24 sm:size-28\" />\n        <p class=\"mt-4 font-semibold\">{{ m.name }}</p>\n        <p class=\"text-muted-foreground text-sm\">{{ m.role }}</p>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; members?: Member[] }>(),\n    {\n      title: \"Meet the people behind the product\",\n      description: \"A small, remote team spread across four continents.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Team","description":"Centered avatar grid. Features: Heading and six round portraits with names and roles that scale in one after another, three columns on desktop and two on mobile","path":"Team/BlockTeam1.vue","components":["avatar","container"]},{"name":"Team 10","fileName":"BlockTeam10.vue","file":"<template>\n  <!--\n    Hiring call to action with open roles\n    Features: Dark panel with an overlapping avatar strip, heading, call to action and a list of open positions with team, location and an apply link\n  -->\n  <UiContainer class=\"py-14 lg:py-20\">\n    <div\n      class=\"relative overflow-hidden rounded-3xl bg-neutral-950 p-8 text-white ring-1 ring-white/15 sm:p-12\"\n    >\n      <div\n        class=\"pointer-events-none absolute -right-24 -bottom-24 size-96 rounded-full bg-indigo-500/25 blur-3xl\"\n        aria-hidden=\"true\"\n      />\n      <div class=\"relative grid gap-10 lg:grid-cols-2 lg:gap-16\">\n        <div>\n          <UiAvatarGroup>\n            <UiAvatar v-for=\"m in props.members.slice(0, 6)\" :key=\"m.name\" class=\"size-11\">\n              <UiAvatarImage :src=\"m.avatar\" :alt=\"m.name\" />\n              <UiAvatarFallback>{{ m.name[0] }}</UiAvatarFallback>\n            </UiAvatar>\n          </UiAvatarGroup>\n          <h2 class=\"mt-6 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n            {{ props.title }}\n          </h2>\n          <p class=\"mt-4 text-lg text-neutral-400\">{{ props.description }}</p>\n          <UiButton class=\"mt-6 bg-white text-neutral-950 hover:bg-white/90\">\n            See all {{ props.roles.length }} open roles\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n        </div>\n        <ul class=\"divide-y divide-white/10 self-center rounded-2xl border border-white/10\">\n          <li v-for=\"role in props.roles\" :key=\"role.title\">\n            <a\n              href=\"#\"\n              class=\"group flex items-center justify-between gap-4 p-4 transition-colors hover:bg-white/5\"\n            >\n              <div>\n                <p class=\"font-semibold\">{{ role.title }}</p>\n                <p class=\"text-sm text-neutral-400\">{{ role.team }} · {{ role.location }}</p>\n              </div>\n              <Icon\n                name=\"lucide:arrow-up-right\"\n                class=\"size-5 text-neutral-400 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5 group-hover:text-white\"\n              />\n            </a>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      members?: Member[];\n      roles?: { title: string; team: string; location: string }[];\n    }>(),\n    {\n      title: \"Come build with us\",\n      description:\n        \"We are growing carefully and hiring people who care about craft and each other.\",\n      roles: () => [\n        { title: \"Senior Frontend Engineer\", team: \"Engineering\", location: \"Remote, Europe\" },\n        { title: \"Product Designer\", team: \"Design\", location: \"Remote, Americas\" },\n        { title: \"Developer Advocate\", team: \"Growth\", location: \"Remote, Worldwide\" },\n        { title: \"Customer Success Manager\", team: \"Growth\", location: \"Remote, Asia Pacific\" },\n      ],\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Team","description":"Hiring call to action with open roles. Features: Dark panel with an overlapping avatar strip, heading, call to action and a list of open positions with team, location and an apply link","path":"Team/BlockTeam10.vue","components":["avatar","button","container"]},{"name":"Team 2","fileName":"BlockTeam2.vue","file":"<template>\n  <!--\n    Team grid with bios and social links\n    Features: Four column grid of portraits with name, role, short bio and X, LinkedIn or GitHub links, cards stagger in on scroll\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <ul class=\"mt-14 grid gap-x-8 gap-y-12 sm:grid-cols-2 lg:grid-cols-4\">\n      <Motion\n        v-for=\"(m, i) in props.members\"\n        :key=\"m.name\"\n        as=\"li\"\n        :initial=\"{ opacity: 0, y: 20 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.4, delay: (i % 4) * 0.07 }\"\n      >\n        <UiAvatar :src=\"m.avatar\" :fallback=\"m.name[0]\" class=\"size-20\" />\n        <p class=\"mt-4 text-lg font-semibold\">{{ m.name }}</p>\n        <p class=\"text-primary text-sm font-medium\">{{ m.role }}</p>\n        <p class=\"text-muted-foreground mt-2 text-sm\">{{ m.bio }}</p>\n        <div class=\"mt-4 flex items-center gap-3\">\n          <a\n            v-if=\"m.x\"\n            :href=\"m.x\"\n            :aria-label=\"`${m.name} on X`\"\n            class=\"text-muted-foreground hover:text-foreground transition-colors\"\n            ><Icon name=\"simple-icons:x\" class=\"size-4\"\n          /></a>\n          <a\n            v-if=\"m.linkedin\"\n            :href=\"m.linkedin\"\n            :aria-label=\"`${m.name} on LinkedIn`\"\n            class=\"text-muted-foreground hover:text-foreground transition-colors\"\n            ><Icon name=\"mdi:linkedin\" class=\"size-5\"\n          /></a>\n          <a\n            v-if=\"m.github\"\n            :href=\"m.github\"\n            :aria-label=\"`${m.name} on GitHub`\"\n            class=\"text-muted-foreground hover:text-foreground transition-colors\"\n            ><Icon name=\"mdi:github\" class=\"size-5\"\n          /></a>\n        </div>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; members?: Member[] }>(),\n    {\n      title: \"The people you will be working with\",\n      description: \"We are fully remote and love what we do. Come say hello.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Team","description":"Team grid with bios and social links. Features: Four column grid of portraits with name, role, short bio and X, LinkedIn or GitHub links, cards stagger in on scroll","path":"Team/BlockTeam2.vue","components":["avatar","container"]},{"name":"Team 3","fileName":"BlockTeam3.vue","file":"<template>\n  <!--\n    Photo cards that reveal a bio on hover\n    Features: Square portraits with a gradient overlay, name and role always visible and a bio with social links sliding up on hover or focus, plus two heading buttons\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n      <div class=\"mt-6 flex justify-center gap-3\">\n        <UiButton variant=\"outline\">About us</UiButton>\n        <UiButton>Open positions</UiButton>\n      </div>\n    </div>\n    <ul class=\"mt-14 grid gap-5 sm:grid-cols-2 lg:grid-cols-4\">\n      <li\n        v-for=\"m in props.members\"\n        :key=\"m.name\"\n        class=\"group focus-within:ring-ring relative aspect-square overflow-hidden rounded-2xl focus-within:ring-2\"\n      >\n        <img\n          :src=\"m.avatar\"\n          :alt=\"m.name\"\n          class=\"size-full object-cover transition-transform duration-500 group-hover:scale-105\"\n          loading=\"lazy\"\n        />\n        <div class=\"absolute inset-0 bg-linear-to-t from-black/80 via-black/10 to-transparent\" />\n        <div class=\"absolute inset-x-0 bottom-0 p-4 text-white\">\n          <p class=\"font-semibold\">{{ m.name }}</p>\n          <p class=\"text-sm text-white/75\">{{ m.role }}</p>\n          <div\n            class=\"grid grid-rows-[0fr] transition-all duration-300 group-focus-within:grid-rows-[1fr] group-hover:grid-rows-[1fr]\"\n          >\n            <div class=\"overflow-hidden\">\n              <p class=\"mt-3 text-sm text-white/85\">{{ m.bio }}</p>\n              <div class=\"mt-3 flex items-center gap-3\">\n                <a\n                  v-if=\"m.x\"\n                  :href=\"m.x\"\n                  :aria-label=\"`${m.name} on X`\"\n                  class=\"text-white/80 hover:text-white\"\n                  ><Icon name=\"simple-icons:x\" class=\"size-4\"\n                /></a>\n                <a\n                  v-if=\"m.linkedin\"\n                  :href=\"m.linkedin\"\n                  :aria-label=\"`${m.name} on LinkedIn`\"\n                  class=\"text-white/80 hover:text-white\"\n                  ><Icon name=\"mdi:linkedin\" class=\"size-5\"\n                /></a>\n                <a\n                  v-if=\"m.github\"\n                  :href=\"m.github\"\n                  :aria-label=\"`${m.name} on GitHub`\"\n                  class=\"text-white/80 hover:text-white\"\n                  ><Icon name=\"mdi:github\" class=\"size-5\"\n                /></a>\n              </div>\n            </div>\n          </div>\n        </div>\n      </li>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; members?: Member[] }>(),\n    {\n      title: \"Meet our team\",\n      description:\n        \"Our philosophy is simple: hire diverse, passionate people and build a culture that helps them do their best work.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Team","description":"Photo cards that reveal a bio on hover. Features: Square portraits with a gradient overlay, name and role always visible and a bio with social links sliding up on hover or focus, plus two heading buttons","path":"Team/BlockTeam3.vue","components":["button","container"]},{"name":"Team 4","fileName":"BlockTeam4.vue","file":"<template>\n  <!--\n    Leadership profile cards\n    Features: Horizontal cards with a large portrait beside a name, role, location, bio and social links, two columns on desktop\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <ul class=\"mt-12 grid gap-6 lg:grid-cols-2\">\n      <Motion\n        v-for=\"(m, i) in props.members.slice(0, 4)\"\n        :key=\"m.name\"\n        as=\"li\"\n        :initial=\"{ opacity: 0, y: 20 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.45, delay: (i % 2) * 0.1 }\"\n        class=\"bg-card group flex flex-col overflow-hidden rounded-2xl border sm:flex-row\"\n      >\n        <div class=\"aspect-square shrink-0 overflow-hidden sm:w-48\">\n          <img\n            :src=\"m.avatar\"\n            :alt=\"m.name\"\n            class=\"size-full object-cover transition-transform duration-500 group-hover:scale-105\"\n            loading=\"lazy\"\n          />\n        </div>\n        <div class=\"flex flex-col justify-center p-6\">\n          <p class=\"text-xl font-semibold\">{{ m.name }}</p>\n          <p class=\"text-primary text-sm font-medium\">{{ m.role }}</p>\n          <p class=\"text-muted-foreground mt-1 flex items-center gap-1 text-xs\">\n            <Icon name=\"lucide:map-pin\" class=\"size-3\" />\n            {{ m.location }}\n          </p>\n          <p class=\"text-muted-foreground mt-3 text-sm\">{{ m.bio }}</p>\n          <div class=\"mt-4 flex items-center gap-3\">\n            <a\n              v-if=\"m.x\"\n              :href=\"m.x\"\n              :aria-label=\"`${m.name} on X`\"\n              class=\"text-muted-foreground hover:text-foreground transition-colors\"\n              ><Icon name=\"simple-icons:x\" class=\"size-4\"\n            /></a>\n            <a\n              v-if=\"m.linkedin\"\n              :href=\"m.linkedin\"\n              :aria-label=\"`${m.name} on LinkedIn`\"\n              class=\"text-muted-foreground hover:text-foreground transition-colors\"\n              ><Icon name=\"mdi:linkedin\" class=\"size-5\"\n            /></a>\n            <a\n              v-if=\"m.github\"\n              :href=\"m.github\"\n              :aria-label=\"`${m.name} on GitHub`\"\n              class=\"text-muted-foreground hover:text-foreground transition-colors\"\n              ><Icon name=\"mdi:github\" class=\"size-5\"\n            /></a>\n          </div>\n        </div>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; members?: Member[] }>(),\n    {\n      title: \"Leadership\",\n      description:\n        \"Experienced operators who still write code, ship designs and answer support tickets.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Team","description":"Leadership profile cards. Features: Horizontal cards with a large portrait beside a name, role, location, bio and social links, two columns on desktop","path":"Team/BlockTeam4.vue","components":["container"]},{"name":"Team 5","fileName":"BlockTeam5.vue","file":"<template>\n  <!--\n    Company stats above a portrait grid\n    Features: Heading and call to action beside four stat tiles with fancy icons, then a grid of portrait cards with name and role on a gradient\n  -->\n  <section class=\"bg-muted/40 py-16 lg:py-24\">\n    <UiContainer>\n      <div class=\"grid items-end gap-10 lg:grid-cols-2\">\n        <div>\n          <p class=\"text-primary text-sm font-semibold\">Join our team</p>\n          <h2 class=\"mt-2 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n            {{ props.title }}\n          </h2>\n          <p class=\"text-muted-foreground mt-4 text-lg\">{{ props.description }}</p>\n          <UiButton class=\"mt-6\">\n            View open positions\n            <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n          </UiButton>\n        </div>\n        <ul class=\"grid grid-cols-2 gap-4\">\n          <li\n            v-for=\"stat in props.stats\"\n            :key=\"stat.label\"\n            class=\"bg-card flex items-center gap-4 rounded-2xl border p-4\"\n          >\n            <UiFancyIcon :icon=\"stat.icon\" theme=\"light\" :color=\"stat.color\" />\n            <div>\n              <p class=\"text-2xl font-bold tracking-tight\">{{ stat.value }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ stat.label }}</p>\n            </div>\n          </li>\n        </ul>\n      </div>\n      <ul class=\"mt-14 grid grid-cols-2 gap-4 md:grid-cols-4\">\n        <li\n          v-for=\"m in props.members\"\n          :key=\"m.name\"\n          class=\"relative aspect-4/5 overflow-hidden rounded-2xl\"\n        >\n          <img :src=\"m.avatar\" :alt=\"m.name\" class=\"size-full object-cover\" loading=\"lazy\" />\n          <div class=\"absolute inset-0 bg-linear-to-t from-black/75 to-transparent to-60%\" />\n          <div class=\"absolute bottom-0 p-4 text-white\">\n            <p class=\"font-semibold\">{{ m.name }}</p>\n            <p class=\"text-sm text-white/75\">{{ m.role }}</p>\n          </div>\n        </li>\n      </ul>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      members?: Member[];\n      stats?: {\n        value: string;\n        label: string;\n        icon: string;\n        color: \"primary\" | \"gray\" | \"error\" | \"warning\" | \"success\" | \"info\";\n      }[];\n    }>(),\n    {\n      title: \"Work with talented people from around the world\",\n      description:\n        \"We are a diverse team of designers, engineers and dreamers. Remote first, mission driven and always learning.\",\n      stats: () => [\n        { value: \"48\", label: \"Team members\", icon: \"lucide:users\", color: \"info\" },\n        { value: \"19\", label: \"Countries\", icon: \"lucide:globe\", color: \"success\" },\n        { value: \"100%\", label: \"Remote\", icon: \"lucide:house\", color: \"warning\" },\n        { value: \"4.9\", label: \"Glassdoor rating\", icon: \"lucide:star\", color: \"primary\" },\n      ],\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Team","description":"Company stats above a portrait grid. Features: Heading and call to action beside four stat tiles with fancy icons, then a grid of portrait cards with name and role on a gradient","path":"Team/BlockTeam5.vue","components":["button","container","fancy-icon"]},{"name":"Team 6","fileName":"BlockTeam6.vue","file":"<template>\n  <!--\n    Team directory with department tabs\n    Features: Tabs that filter the team by department with an animated grid, a member count per tab and compact cards with role and location\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <UiTabs v-model=\"active\" class=\"mt-10\">\n      <div class=\"flex justify-center overflow-x-auto\">\n        <UiTabsList>\n          <UiTabsTrigger v-for=\"d in departments\" :key=\"d\" :value=\"d\" class=\"gap-2\">\n            {{ d }}\n            <UiBadge variant=\"secondary\" class=\"h-5 px-1.5 text-xs\">{{ count(d) }}</UiBadge>\n          </UiTabsTrigger>\n        </UiTabsList>\n      </div>\n    </UiTabs>\n    <ul class=\"mt-10 grid gap-4 sm:grid-cols-2 lg:grid-cols-4\">\n      <AnimatePresence mode=\"popLayout\">\n        <Motion\n          v-for=\"m in filtered\"\n          :key=\"m.name\"\n          as=\"li\"\n          layout\n          :initial=\"{ opacity: 0, scale: 0.95 }\"\n          :animate=\"{ opacity: 1, scale: 1 }\"\n          :exit=\"{ opacity: 0, scale: 0.95 }\"\n          :transition=\"{ duration: 0.25 }\"\n          class=\"bg-card rounded-2xl border p-5 text-center\"\n        >\n          <UiAvatar :src=\"m.avatar\" :fallback=\"m.name[0]\" class=\"mx-auto size-20\" />\n          <p class=\"mt-4 font-semibold\">{{ m.name }}</p>\n          <p class=\"text-muted-foreground text-sm\">{{ m.role }}</p>\n          <p class=\"text-muted-foreground mt-2 flex items-center justify-center gap-1 text-xs\">\n            <Icon name=\"lucide:map-pin\" class=\"size-3\" />\n            {{ m.location }}\n          </p>\n        </Motion>\n      </AnimatePresence>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; members?: Member[] }>(),\n    {\n      title: \"Find your people\",\n      description: \"Browse the team by department.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n\n  const active = ref(\"All\");\n  const departments = computed(() => [\"All\", ...new Set(props.members.map((m) => m.department))]);\n  const filtered = computed(() =>\n    active.value === \"All\"\n      ? props.members\n      : props.members.filter((m) => m.department === active.value)\n  );\n  const count = (d: string) =>\n    d === \"All\" ? props.members.length : props.members.filter((m) => m.department === d).length;\n</script>\n","category":"Team","description":"Team directory with department tabs. Features: Tabs that filter the team by department with an animated grid, a member count per tab and compact cards with role and location","path":"Team/BlockTeam6.vue","components":["avatar","badge","container","tabs"]},{"name":"Team 7","fileName":"BlockTeam7.vue","file":"<template>\n  <!--\n    Team directory list with contact buttons\n    Features: Divided list rows with avatar, name, role, department badge and location, plus an email button that appears on hover, stacked on small screens\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-4xl\">\n      <div class=\"flex flex-col justify-between gap-4 sm:flex-row sm:items-end\">\n        <div>\n          <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n            {{ props.title }}\n          </h2>\n          <p class=\"text-muted-foreground mt-3 text-lg\">{{ props.description }}</p>\n        </div>\n        <UiButton variant=\"outline\">\n          <Icon name=\"lucide:users\" class=\"size-4\" />\n          Open positions\n        </UiButton>\n      </div>\n      <ul class=\"mt-10 divide-y rounded-2xl border\">\n        <li\n          v-for=\"m in props.members\"\n          :key=\"m.name\"\n          class=\"hover:bg-muted/40 group flex flex-col gap-3 p-4 transition-colors sm:flex-row sm:items-center sm:gap-4\"\n        >\n          <div class=\"flex min-w-0 flex-1 items-center gap-4\">\n            <UiAvatar :src=\"m.avatar\" :fallback=\"m.name[0]\" class=\"size-11\" />\n            <div class=\"min-w-0\">\n              <p class=\"truncate font-semibold\">{{ m.name }}</p>\n              <p class=\"text-muted-foreground truncate text-sm\">{{ m.role }}</p>\n            </div>\n          </div>\n          <UiBadge variant=\"secondary\" class=\"w-fit\">{{ m.department }}</UiBadge>\n          <p class=\"text-muted-foreground flex items-center gap-1 text-sm sm:w-40\">\n            <Icon name=\"lucide:map-pin\" class=\"size-4 shrink-0\" />\n            {{ m.location }}\n          </p>\n          <UiButton\n            variant=\"ghost\"\n            size=\"sm\"\n            class=\"sm:opacity-0 sm:transition-opacity sm:group-hover:opacity-100 sm:focus-visible:opacity-100\"\n          >\n            <Icon name=\"lucide:mail\" class=\"size-4\" />\n            Say hello\n          </UiButton>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; members?: Member[] }>(),\n    {\n      title: \"Our directory\",\n      description: \"Everyone on the team, where they are and what they do.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Team","description":"Team directory list with contact buttons. Features: Divided list rows with avatar, name, role, department badge and location, plus an email button that appears on hover, stacked on small screens","path":"Team/BlockTeam7.vue","components":["avatar","badge","button","container"]},{"name":"Team 8","fileName":"BlockTeam8.vue","file":"<template>\n  <!--\n    Founders story with a team strip\n    Features: Two founder portraits with a short note each and signature style role, an overlapping avatar strip of the rest of the team and a hiring link\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <div class=\"mt-12 grid gap-8 md:grid-cols-2\">\n      <Motion\n        v-for=\"(m, i) in props.members.slice(0, 2)\"\n        :key=\"m.name\"\n        :initial=\"{ opacity: 0, y: 20 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.45, delay: i * 0.12 }\"\n        class=\"bg-card overflow-hidden rounded-3xl border\"\n      >\n        <div class=\"aspect-16/10 overflow-hidden\">\n          <img\n            :src=\"m.avatar\"\n            :alt=\"m.name\"\n            class=\"size-full object-cover object-top\"\n            loading=\"lazy\"\n          />\n        </div>\n        <div class=\"p-6 sm:p-8\">\n          <p class=\"text-lg leading-relaxed\">“{{ m.bio }}”</p>\n          <div class=\"mt-5 flex items-center justify-between gap-3\">\n            <div>\n              <p class=\"font-semibold\">{{ m.name }}</p>\n              <p class=\"text-muted-foreground text-sm\">{{ m.role }}</p>\n            </div>\n            <div class=\"flex items-center gap-3\">\n              <a\n                v-if=\"m.x\"\n                :href=\"m.x\"\n                :aria-label=\"`${m.name} on X`\"\n                class=\"text-muted-foreground hover:text-foreground transition-colors\"\n                ><Icon name=\"simple-icons:x\" class=\"size-4\"\n              /></a>\n              <a\n                v-if=\"m.linkedin\"\n                :href=\"m.linkedin\"\n                :aria-label=\"`${m.name} on LinkedIn`\"\n                class=\"text-muted-foreground hover:text-foreground transition-colors\"\n                ><Icon name=\"mdi:linkedin\" class=\"size-5\"\n              /></a>\n              <a\n                v-if=\"m.github\"\n                :href=\"m.github\"\n                :aria-label=\"`${m.name} on GitHub`\"\n                class=\"text-muted-foreground hover:text-foreground transition-colors\"\n                ><Icon name=\"mdi:github\" class=\"size-5\"\n              /></a>\n            </div>\n          </div>\n        </div>\n      </Motion>\n    </div>\n    <div class=\"mt-12 flex flex-col items-center gap-4 text-center\">\n      <UiAvatarGroup>\n        <UiAvatar v-for=\"m in props.members.slice(2)\" :key=\"m.name\" class=\"size-12\">\n          <UiAvatarImage :src=\"m.avatar\" :alt=\"m.name\" />\n          <UiAvatarFallback>{{ m.name[0] }}</UiAvatarFallback>\n        </UiAvatar>\n      </UiAvatarGroup>\n      <p class=\"text-muted-foreground text-sm\">and 40 more teammates across 19 countries</p>\n      <UiButton variant=\"link\">\n        See open positions\n        <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n      </UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; members?: Member[] }>(),\n    {\n      title: \"Built by two friends who wanted better tools\",\n      description: \"What started in a spare bedroom is now a team that ships every week.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Team","description":"Founders story with a team strip. Features: Two founder portraits with a short note each and signature style role, an overlapping avatar strip of the rest of the team and a hiring link","path":"Team/BlockTeam8.vue","components":["avatar","button","container"]},{"name":"Team 9","fileName":"BlockTeam9.vue","file":"<template>\n  <!--\n    Team cards that open a full profile\n    Features: Compact portrait cards that open a dialog with the full bio, location, department and social links, keyboard and screen reader friendly\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <ul class=\"mt-12 grid grid-cols-2 gap-5 md:grid-cols-4\">\n      <li v-for=\"m in props.members\" :key=\"m.name\">\n        <button\n          type=\"button\"\n          class=\"group focus-visible:ring-ring w-full rounded-2xl text-left outline-none focus-visible:ring-2\"\n          :aria-label=\"`View profile of ${m.name}`\"\n          @click=\"selected = m\"\n        >\n          <div class=\"aspect-square overflow-hidden rounded-2xl\">\n            <img\n              :src=\"m.avatar\"\n              :alt=\"m.name\"\n              class=\"size-full object-cover transition-transform duration-500 group-hover:scale-105\"\n              loading=\"lazy\"\n            />\n          </div>\n          <p class=\"mt-3 font-semibold\">{{ m.name }}</p>\n          <p class=\"text-muted-foreground text-sm\">{{ m.role }}</p>\n        </button>\n      </li>\n    </ul>\n\n    <UiDialog :open=\"!!selected\" @update:open=\"(v) => !v && (selected = null)\">\n      <UiDialogContent v-if=\"selected\" class=\"sm:max-w-md\">\n        <UiDialogHeader class=\"items-center text-center\">\n          <UiAvatar :src=\"selected.avatar\" :fallback=\"selected.name[0]\" class=\"size-24\" />\n          <UiDialogTitle class=\"mt-2\">{{ selected.name }}</UiDialogTitle>\n          <UiDialogDescription>{{ selected.role }} · {{ selected.location }}</UiDialogDescription>\n        </UiDialogHeader>\n        <p class=\"text-muted-foreground text-center text-sm\">{{ selected.bio }}</p>\n        <div class=\"flex justify-center\">\n          <UiBadge variant=\"secondary\">{{ selected.department }}</UiBadge>\n        </div>\n        <div class=\"flex items-center justify-center gap-4\">\n          <a\n            v-if=\"selected.x\"\n            :href=\"selected.x\"\n            :aria-label=\"`${selected.name} on X`\"\n            class=\"text-muted-foreground hover:text-foreground transition-colors\"\n            ><Icon name=\"simple-icons:x\" class=\"size-4\"\n          /></a>\n          <a\n            v-if=\"selected.linkedin\"\n            :href=\"selected.linkedin\"\n            :aria-label=\"`${selected.name} on LinkedIn`\"\n            class=\"text-muted-foreground hover:text-foreground transition-colors\"\n            ><Icon name=\"mdi:linkedin\" class=\"size-5\"\n          /></a>\n          <a\n            v-if=\"selected.github\"\n            :href=\"selected.github\"\n            :aria-label=\"`${selected.name} on GitHub`\"\n            class=\"text-muted-foreground hover:text-foreground transition-colors\"\n            ><Icon name=\"mdi:github\" class=\"size-5\"\n          /></a>\n        </div>\n      </UiDialogContent>\n    </UiDialog>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = {\n    name: string;\n    role: string;\n    department: string;\n    location: string;\n    bio: string;\n    avatar: string;\n    x?: string;\n    linkedin?: string;\n    github?: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; members?: Member[] }>(),\n    {\n      title: \"Click a face to learn more\",\n      description: \"Everyone has a story. Open a card to read theirs.\",\n      members: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Co-founder & CEO\",\n          department: \"Leadership\",\n          location: \"San Francisco, US\",\n          bio: \"Former product lead who has launched three companies. Obsessed with calm software.\",\n          avatar: \"https://i.pravatar.cc/400?img=47\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Liam O'Connor\",\n          role: \"Co-founder & CTO\",\n          department: \"Leadership\",\n          location: \"Dublin, IE\",\n          bio: \"Spent a decade building distributed systems before deciding they should be friendlier.\",\n          avatar: \"https://i.pravatar.cc/400?img=12\",\n          github: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Priya Nair\",\n          role: \"Head of Design\",\n          department: \"Design\",\n          location: \"Bengaluru, IN\",\n          bio: \"Leads a small team that sweats the details, from icons to onboarding.\",\n          avatar: \"https://i.pravatar.cc/400?img=45\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Noah Fischer\",\n          role: \"Staff Engineer\",\n          department: \"Engineering\",\n          location: \"Berlin, DE\",\n          bio: \"Performance nerd. If it takes more than 100ms, he has already opened a pull request.\",\n          avatar: \"https://i.pravatar.cc/400?img=53\",\n          github: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Ana Souza\",\n          role: \"Engineering Manager\",\n          department: \"Engineering\",\n          location: \"São Paulo, BR\",\n          bio: \"Coaches engineers, unblocks teams and keeps releases boring in the best way.\",\n          avatar: \"https://i.pravatar.cc/400?img=44\",\n          linkedin: \"#\",\n          github: \"#\",\n        },\n        {\n          name: \"Sam Okafor\",\n          role: \"Product Designer\",\n          department: \"Design\",\n          location: \"Lagos, NG\",\n          bio: \"Turns messy ideas into clear flows. Collects keyboards and board games.\",\n          avatar: \"https://i.pravatar.cc/400?img=32\",\n          x: \"#\",\n          linkedin: \"#\",\n        },\n        {\n          name: \"Hannah Lee\",\n          role: \"Head of Growth\",\n          department: \"Growth\",\n          location: \"Seoul, KR\",\n          bio: \"Builds the playbooks that bring the right customers through the door.\",\n          avatar: \"https://i.pravatar.cc/400?img=49\",\n          linkedin: \"#\",\n          x: \"#\",\n        },\n        {\n          name: \"Diego Alvarez\",\n          role: \"Customer Success Lead\",\n          department: \"Growth\",\n          location: \"Mexico City, MX\",\n          bio: \"First to answer, last to give up. Our customers have his number on speed dial.\",\n          avatar: \"https://i.pravatar.cc/400?img=33\",\n          linkedin: \"#\",\n        },\n      ],\n    }\n  );\n\n  const selected = ref<Member | null>(null);\n</script>\n","category":"Team","description":"Team cards that open a full profile. Features: Compact portrait cards that open a dialog with the full bio, location, department and social links, keyboard and screen reader friendly","path":"Team/BlockTeam9.vue","components":["avatar","badge","container","dialog"]},{"name":"Testimony 1","fileName":"BlockTestimony1.vue","file":"<template>\n  <!--\n    Single centered quote\n    Features: Large centered quote with a star rating, avatar, name and role that fades in on scroll\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <Motion\n      :initial=\"{ opacity: 0, y: 16 }\"\n      :while-in-view=\"{ opacity: 1, y: 0 }\"\n      :in-view-options=\"{ once: true }\"\n      :transition=\"{ duration: 0.5 }\"\n      class=\"mx-auto max-w-3xl text-center\"\n    >\n      <div class=\"flex justify-center\">\n        <UiRating\n          :model-value=\"5\"\n          size=\"sm\"\n          icon=\"mdi:star\"\n          filled-icon-class-name=\"text-amber-400\"\n        />\n      </div>\n      <blockquote\n        class=\"mt-6 text-2xl leading-snug font-medium text-balance sm:text-3xl lg:text-4xl\"\n      >\n        “{{ item.quote }}”\n      </blockquote>\n      <figcaption class=\"mt-8 flex flex-col items-center gap-3\">\n        <UiAvatar :src=\"item.avatar\" :fallback=\"item.name[0]\" class=\"size-14\" />\n        <div>\n          <p class=\"font-semibold\">{{ item.name }}</p>\n          <p class=\"text-muted-foreground text-sm\">{{ item.role }}, {{ item.company }}</p>\n        </div>\n      </figcaption>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"\",\n      description: \"\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n\n  const item = computed(() => props.items[0]!);\n</script>\n","category":"Testimony","description":"Single centered quote. Features: Large centered quote with a star rating, avatar, name and role that fades in on scroll","path":"Testimony/BlockTestimony1.vue","components":["avatar","container","rating"]},{"name":"Testimony 10","fileName":"BlockTestimony10.vue","file":"<template>\n  <!--\n    Always dark quote with avatar switcher\n    Features: Dark panel with a large quote that crossfades when you pick a customer avatar, with the selected avatar ringed and keyboard friendly tab semantics\n  -->\n  <UiContainer class=\"py-14 lg:py-20\">\n    <div\n      class=\"relative overflow-hidden rounded-3xl bg-neutral-950 px-6 py-14 text-center text-white ring-1 ring-white/15 sm:px-12 lg:py-20\"\n    >\n      <div\n        class=\"pointer-events-none absolute -top-24 left-1/2 size-96 -translate-x-1/2 rounded-full bg-indigo-500/25 blur-3xl\"\n        aria-hidden=\"true\"\n      />\n      <div class=\"relative mx-auto max-w-3xl\">\n        <Icon name=\"lucide:quote\" class=\"mx-auto size-10 text-indigo-300/70\" />\n        <div class=\"mt-6 min-h-52 sm:min-h-40\" role=\"tabpanel\" aria-live=\"polite\">\n          <AnimatePresence mode=\"wait\">\n            <Motion\n              :key=\"active\"\n              :initial=\"{ opacity: 0, y: 10 }\"\n              :animate=\"{ opacity: 1, y: 0 }\"\n              :exit=\"{ opacity: 0, y: -10 }\"\n              :transition=\"{ duration: 0.25 }\"\n            >\n              <blockquote class=\"text-2xl leading-snug font-medium text-balance sm:text-3xl\">\n                {{ current.quote }}\n              </blockquote>\n              <p class=\"mt-6 font-semibold\">{{ current.name }}</p>\n              <p class=\"text-sm text-neutral-400\">{{ current.role }}, {{ current.company }}</p>\n            </Motion>\n          </AnimatePresence>\n        </div>\n        <div role=\"tablist\" aria-label=\"Choose a customer\" class=\"mt-8 flex justify-center gap-3\">\n          <button\n            v-for=\"(t, i) in props.items.slice(0, 5)\"\n            :key=\"t.name\"\n            role=\"tab\"\n            type=\"button\"\n            :aria-selected=\"i === active\"\n            :aria-label=\"t.name\"\n            class=\"rounded-full p-0.5 ring-2 transition-all focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white\"\n            :class=\"\n              i === active ? 'ring-indigo-400' : 'opacity-60 ring-transparent hover:opacity-100'\n            \"\n            @click=\"active = i\"\n          >\n            <UiAvatar :src=\"t.avatar\" :fallback=\"t.name[0]\" class=\"size-12\" />\n          </button>\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"\",\n      description: \"\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n\n  const active = ref(0);\n  const current = computed(() => props.items[active.value]!);\n</script>\n","category":"Testimony","description":"Always dark quote with avatar switcher. Features: Dark panel with a large quote that crossfades when you pick a customer avatar, with the selected avatar ringed and keyboard friendly tab semantics","path":"Testimony/BlockTestimony10.vue","components":["avatar","container"]},{"name":"Testimony 11","fileName":"BlockTestimony11.vue","file":"<template>\n  <!--\n    Scroll snap testimonial carousel\n    Features: Horizontal scroll snap row of quote cards with previous and next buttons that scroll by one card, disabled at the ends, swipeable on touch\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"flex flex-col justify-between gap-6 sm:flex-row sm:items-end\">\n      <div class=\"max-w-xl\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-3 text-lg\">{{ props.description }}</p>\n      </div>\n      <div class=\"flex gap-2\">\n        <UiButton\n          variant=\"outline\"\n          size=\"icon\"\n          aria-label=\"Scroll left\"\n          :disabled=\"atStart\"\n          @click=\"scroll(-1)\"\n        >\n          <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n        </UiButton>\n        <UiButton\n          variant=\"outline\"\n          size=\"icon\"\n          aria-label=\"Scroll right\"\n          :disabled=\"atEnd\"\n          @click=\"scroll(1)\"\n        >\n          <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </div>\n    <ul\n      ref=\"track\"\n      class=\"-mx-4 mt-10 flex snap-x snap-mandatory scroll-px-4 [scrollbar-width:none] gap-5 overflow-x-auto px-4 pb-2 [&::-webkit-scrollbar]:hidden\"\n      @scroll.passive=\"update\"\n    >\n      <li\n        v-for=\"t in props.items\"\n        :key=\"t.name\"\n        class=\"bg-card w-[85%] shrink-0 snap-start rounded-2xl border p-6 sm:w-96\"\n      >\n        <UiRating\n          :model-value=\"5\"\n          size=\"sm\"\n          icon=\"mdi:star\"\n          filled-icon-class-name=\"text-amber-400\"\n        />\n        <blockquote class=\"mt-4 leading-relaxed\">“{{ t.quote }}”</blockquote>\n        <figcaption class=\"mt-5 flex items-center gap-3\">\n          <UiAvatar :src=\"t.avatar\" :fallback=\"t.name[0]\" />\n          <div>\n            <p class=\"text-sm font-semibold\">{{ t.name }}</p>\n            <p class=\"text-muted-foreground text-xs\">{{ t.role }}, {{ t.company }}</p>\n          </div>\n        </figcaption>\n      </li>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"Hear it from our customers\",\n      description: \"Swipe or use the arrows to read more.\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n\n  const track = ref<HTMLElement | null>(null);\n  const atStart = ref(true);\n  const atEnd = ref(false);\n\n  function update() {\n    const el = track.value;\n    if (!el) return;\n    atStart.value = el.scrollLeft <= 4;\n    atEnd.value = el.scrollLeft + el.clientWidth >= el.scrollWidth - 4;\n  }\n  function scroll(dir: number) {\n    const el = track.value;\n    if (!el) return;\n    const card = el.querySelector(\"li\");\n    el.scrollBy({ left: dir * ((card?.clientWidth ?? 360) + 20), behavior: \"smooth\" });\n  }\n  onMounted(update);\n</script>\n","category":"Testimony","description":"Scroll snap testimonial carousel. Features: Horizontal scroll snap row of quote cards with previous and next buttons that scroll by one card, disabled at the ends, swipeable on touch","path":"Testimony/BlockTestimony11.vue","components":["avatar","button","container","rating"]},{"name":"Testimony 12","fileName":"BlockTestimony12.vue","file":"<template>\n  <!--\n    Compact quote banner\n    Features: Slim full width banner with a short quote, avatar, name and a story link, built to sit between sections\n  -->\n  <UiContainer class=\"py-10\">\n    <Motion\n      :initial=\"{ opacity: 0, y: 12 }\"\n      :while-in-view=\"{ opacity: 1, y: 0 }\"\n      :in-view-options=\"{ once: true }\"\n      :transition=\"{ duration: 0.45 }\"\n      class=\"bg-muted/50 flex flex-col items-start gap-5 rounded-2xl border p-6 sm:flex-row sm:items-center sm:gap-8 sm:p-8\"\n    >\n      <UiAvatar :src=\"item.avatar\" :fallback=\"item.name[0]\" class=\"size-14 shrink-0\" />\n      <div class=\"flex-1\">\n        <blockquote class=\"text-lg leading-snug font-medium text-balance\">\n          “{{ item.quote }}”\n        </blockquote>\n        <p class=\"text-muted-foreground mt-2 text-sm\">\n          <span class=\"text-foreground font-semibold\">{{ item.name }}</span>\n          · {{ item.role }}, {{ item.company }}\n        </p>\n      </div>\n      <UiButton variant=\"outline\" class=\"shrink-0\">\n        Read story\n        <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n      </UiButton>\n    </Motion>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"\",\n      description: \"\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n\n  const item = computed(() => props.items[1]!);\n</script>\n","category":"Testimony","description":"Compact quote banner. Features: Slim full width banner with a short quote, avatar, name and a story link, built to sit between sections","path":"Testimony/BlockTestimony12.vue","components":["avatar","button","container"]},{"name":"Testimony 2","fileName":"BlockTestimony2.vue","file":"<template>\n  <!--\n    Testimonial slider with arrows and dots\n    Features: One quote at a time with previous and next buttons, dot pagination, keyboard friendly controls and an animated slide between quotes\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl text-center\">\n      <div class=\"relative min-h-72 sm:min-h-60\" aria-live=\"polite\">\n        <AnimatePresence mode=\"wait\">\n          <Motion\n            :key=\"index\"\n            :initial=\"{ opacity: 0, x: direction * 40 }\"\n            :animate=\"{ opacity: 1, x: 0 }\"\n            :exit=\"{ opacity: 0, x: direction * -40 }\"\n            :transition=\"{ duration: 0.25 }\"\n          >\n            <div class=\"flex justify-center\">\n              <UiRating\n                :model-value=\"5\"\n                size=\"sm\"\n                icon=\"mdi:star\"\n                filled-icon-class-name=\"text-amber-400\"\n              />\n            </div>\n            <blockquote class=\"mt-6 text-2xl leading-snug font-medium text-balance sm:text-3xl\">\n              “{{ current.quote }}”\n            </blockquote>\n            <figcaption class=\"mt-6 flex items-center justify-center gap-3\">\n              <UiAvatar :src=\"current.avatar\" :fallback=\"current.name[0]\" class=\"size-12\" />\n              <div class=\"text-left\">\n                <p class=\"font-semibold\">{{ current.name }}</p>\n                <p class=\"text-muted-foreground text-sm\">\n                  {{ current.role }}, {{ current.company }}\n                </p>\n              </div>\n            </figcaption>\n          </Motion>\n        </AnimatePresence>\n      </div>\n      <div class=\"mt-8 flex items-center justify-center gap-4\">\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Previous testimonial\" @click=\"go(-1)\">\n          <Icon name=\"lucide:arrow-left\" class=\"size-4\" />\n        </UiButton>\n        <div class=\"flex gap-2\">\n          <button\n            v-for=\"(it, i) in slides\"\n            :key=\"it.name\"\n            type=\"button\"\n            class=\"h-2 rounded-full transition-all\"\n            :class=\"i === index ? 'bg-primary w-6' : 'bg-muted-foreground/30 w-2'\"\n            :aria-label=\"`Show testimonial ${i + 1}`\"\n            :aria-current=\"i === index\"\n            @click=\"jump(i)\"\n          />\n        </div>\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Next testimonial\" @click=\"go(1)\">\n          <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"\",\n      description: \"\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n\n  const slides = computed(() => props.items.slice(0, 5));\n  const index = ref(0);\n  const direction = ref(1);\n  const current = computed(() => slides.value[index.value]!);\n\n  function go(step: number) {\n    direction.value = step;\n    index.value = (index.value + step + slides.value.length) % slides.value.length;\n  }\n  function jump(i: number) {\n    direction.value = i > index.value ? 1 : -1;\n    index.value = i;\n  }\n</script>\n","category":"Testimony","description":"Testimonial slider with arrows and dots. Features: One quote at a time with previous and next buttons, dot pagination, keyboard friendly controls and an animated slide between quotes","path":"Testimony/BlockTestimony2.vue","components":["avatar","button","container","rating"]},{"name":"Testimony 3","fileName":"BlockTestimony3.vue","file":"<template>\n  <!--\n    Three testimonial cards\n    Features: Heading and three quote cards with star ratings, avatars and roles that rise in one after another\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <ul class=\"mt-12 grid gap-6 md:grid-cols-3\">\n      <Motion\n        v-for=\"(t, i) in props.items.slice(0, 3)\"\n        :key=\"t.name\"\n        as=\"li\"\n        :initial=\"{ opacity: 0, y: 20 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.45, delay: i * 0.1 }\"\n      >\n        <UiCard class=\"h-full\">\n          <UiCardContent class=\"flex h-full flex-col gap-5\">\n            <UiRating\n              :model-value=\"5\"\n              size=\"sm\"\n              icon=\"mdi:star\"\n              filled-icon-class-name=\"text-amber-400\"\n            />\n            <blockquote class=\"flex-1 leading-relaxed\">“{{ t.quote }}”</blockquote>\n            <figcaption class=\"flex items-center gap-3\">\n              <UiAvatar :src=\"t.avatar\" :fallback=\"t.name[0]\" />\n              <div>\n                <p class=\"text-sm font-semibold\">{{ t.name }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ t.role }}, {{ t.company }}</p>\n              </div>\n            </figcaption>\n          </UiCardContent>\n        </UiCard>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"What our customers say\",\n      description: \"Join thousands of teams who trust us every day.\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Testimony","description":"Three testimonial cards. Features: Heading and three quote cards with star ratings, avatars and roles that rise in one after another","path":"Testimony/BlockTestimony3.vue","components":["avatar","card","container","rating"]},{"name":"Testimony 4","fileName":"BlockTestimony4.vue","file":"<template>\n  <!--\n    Wall of love masonry\n    Features: Masonry style wall of eight quote cards with different heights, avatars and handles on a muted background, collapsing to a single column on mobile\n  -->\n  <section class=\"bg-muted/40 py-16 lg:py-24\">\n    <UiContainer>\n      <div class=\"mx-auto max-w-2xl text-center\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n      </div>\n      <ul class=\"mt-12 gap-5 space-y-5 sm:columns-2 lg:columns-3\">\n        <Motion\n          v-for=\"(t, i) in props.items\"\n          :key=\"t.name\"\n          as=\"li\"\n          :initial=\"{ opacity: 0, y: 16 }\"\n          :while-in-view=\"{ opacity: 1, y: 0 }\"\n          :in-view-options=\"{ once: true }\"\n          :transition=\"{ duration: 0.4, delay: (i % 3) * 0.08 }\"\n          class=\"bg-card break-inside-avoid rounded-2xl border p-6\"\n        >\n          <blockquote class=\"leading-relaxed\">“{{ t.quote }}”</blockquote>\n          <figcaption class=\"mt-5 flex items-center gap-3\">\n            <UiAvatar :src=\"t.avatar\" :fallback=\"t.name[0]\" class=\"size-10\" />\n            <div class=\"min-w-0\">\n              <p class=\"truncate text-sm font-semibold\">{{ t.name }}</p>\n              <p class=\"text-muted-foreground truncate text-xs\">{{ t.handle }} · {{ t.company }}</p>\n            </div>\n          </figcaption>\n        </Motion>\n      </ul>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"Wall of love\",\n      description: \"Kind words from the teams who use us.\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Testimony","description":"Wall of love masonry. Features: Masonry style wall of eight quote cards with different heights, avatars and handles on a muted background, collapsing to a single column on mobile","path":"Testimony/BlockTestimony4.vue","components":["avatar","container"]},{"name":"Testimony 5","fileName":"BlockTestimony5.vue","file":"<template>\n  <!--\n    Featured quote with supporting quotes\n    Features: Large brand colored featured quote beside two smaller quote cards stacked on the right, with a star rating and avatars\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <div class=\"mt-12 grid gap-6 lg:grid-cols-5\">\n      <Motion\n        :initial=\"{ opacity: 0, y: 20 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.5 }\"\n        class=\"bg-primary text-primary-foreground relative flex flex-col justify-between gap-10 overflow-hidden rounded-3xl p-8 sm:p-10 lg:col-span-3\"\n      >\n        <div\n          class=\"bg-primary-foreground/10 pointer-events-none absolute -top-20 -right-20 size-72 rounded-full blur-3xl\"\n          aria-hidden=\"true\"\n        />\n        <Icon name=\"lucide:quote\" class=\"relative size-10 opacity-60\" />\n        <blockquote class=\"relative text-2xl leading-snug font-medium text-balance sm:text-3xl\">\n          {{ props.items[0]!.quote }}\n        </blockquote>\n        <figcaption class=\"relative flex items-center gap-3\">\n          <UiAvatar\n            :src=\"props.items[0]!.avatar\"\n            :fallback=\"props.items[0]!.name[0]\"\n            class=\"size-12\"\n          />\n          <div>\n            <p class=\"font-semibold\">{{ props.items[0]!.name }}</p>\n            <p class=\"text-primary-foreground/75 text-sm\">\n              {{ props.items[0]!.role }}, {{ props.items[0]!.company }}\n            </p>\n          </div>\n        </figcaption>\n      </Motion>\n      <div class=\"grid gap-6 lg:col-span-2\">\n        <Motion\n          v-for=\"(t, i) in props.items.slice(1, 3)\"\n          :key=\"t.name\"\n          :initial=\"{ opacity: 0, y: 20 }\"\n          :while-in-view=\"{ opacity: 1, y: 0 }\"\n          :in-view-options=\"{ once: true }\"\n          :transition=\"{ duration: 0.5, delay: 0.1 + i * 0.1 }\"\n          class=\"bg-card flex flex-col justify-between gap-6 rounded-3xl border p-6\"\n        >\n          <blockquote class=\"leading-relaxed\">“{{ t.quote }}”</blockquote>\n          <figcaption class=\"flex items-center gap-3\">\n            <UiAvatar :src=\"t.avatar\" :fallback=\"t.name[0]\" />\n            <div>\n              <p class=\"text-sm font-semibold\">{{ t.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ t.role }}, {{ t.company }}</p>\n            </div>\n          </figcaption>\n        </Motion>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"Customers who never looked back\",\n      description: \"Real words from real teams.\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Testimony","description":"Featured quote with supporting quotes. Features: Large brand colored featured quote beside two smaller quote cards stacked on the right, with a star rating and avatars","path":"Testimony/BlockTestimony5.vue","components":["avatar","container"]},{"name":"Testimony 6","fileName":"BlockTestimony6.vue","file":"<template>\n  <!--\n    Rating summary with review list\n    Features: Overall rating with a star breakdown and animated bars beside a list of written reviews with stars and avatars\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"grid gap-12 lg:grid-cols-[22rem_1fr] lg:gap-16\">\n      <div>\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-3\">{{ props.description }}</p>\n        <div class=\"mt-8 flex items-end gap-3\">\n          <p class=\"text-6xl font-bold tracking-tight\">{{ props.rating }}</p>\n          <div class=\"pb-2\">\n            <UiRating\n              :model-value=\"props.rating\"\n              icon=\"mdi:star\"\n              filled-icon-class-name=\"text-amber-400\"\n            />\n            <p class=\"text-muted-foreground mt-1 text-sm\">Based on {{ props.reviews }} reviews</p>\n          </div>\n        </div>\n        <ul class=\"mt-6 space-y-2.5\">\n          <li v-for=\"row in breakdown\" :key=\"row.stars\" class=\"flex items-center gap-3 text-sm\">\n            <span class=\"w-8 shrink-0\">{{ row.stars }} ★</span>\n            <div class=\"bg-muted h-2 flex-1 overflow-hidden rounded-full\">\n              <Motion\n                :initial=\"{ width: 0 }\"\n                :while-in-view=\"{ width: `${row.percent}%` }\"\n                :in-view-options=\"{ once: true }\"\n                :transition=\"{ duration: 0.8 }\"\n                class=\"h-full rounded-full bg-amber-400\"\n              />\n            </div>\n            <span class=\"text-muted-foreground w-9 text-right\">{{ row.percent }}%</span>\n          </li>\n        </ul>\n      </div>\n      <ul class=\"divide-y\">\n        <li v-for=\"t in props.items.slice(0, 4)\" :key=\"t.name\" class=\"py-6 first:pt-0\">\n          <div class=\"flex items-center gap-3\">\n            <UiAvatar :src=\"t.avatar\" :fallback=\"t.name[0]\" />\n            <div>\n              <p class=\"text-sm font-semibold\">{{ t.name }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ t.role }}, {{ t.company }}</p>\n            </div>\n            <div class=\"ml-auto\">\n              <UiRating\n                :model-value=\"5\"\n                size=\"sm\"\n                icon=\"mdi:star\"\n                filled-icon-class-name=\"text-amber-400\"\n              />\n            </div>\n          </div>\n          <p class=\"text-muted-foreground mt-3 leading-relaxed\">{{ t.quote }}</p>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      items?: Testimonial[];\n      rating?: number;\n      reviews?: string;\n    }>(),\n    {\n      title: \"Rated 4.9 by our customers\",\n      description: \"Honest feedback from teams of every size.\",\n      rating: 4.9,\n      reviews: \"2,458\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n\n  const breakdown = [\n    { stars: 5, percent: 88 },\n    { stars: 4, percent: 9 },\n    { stars: 3, percent: 2 },\n    { stars: 2, percent: 1 },\n    { stars: 1, percent: 0 },\n  ];\n</script>\n","category":"Testimony","description":"Rating summary with review list. Features: Overall rating with a star breakdown and animated bars beside a list of written reviews with stars and avatars","path":"Testimony/BlockTestimony6.vue","components":["avatar","container","rating"]},{"name":"Testimony 7","fileName":"BlockTestimony7.vue","file":"<template>\n  <!--\n    Vertical marquee columns\n    Features: Three columns of quote cards that scroll in alternating directions with top and bottom fades, pause on hover and stop for reduced motion\n  -->\n  <section class=\"overflow-hidden py-16 lg:py-24\">\n    <UiContainer>\n      <div class=\"mx-auto max-w-2xl text-center\">\n        <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n          {{ props.title }}\n        </h2>\n        <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n      </div>\n      <div\n        class=\"marquee mt-12 grid h-[36rem] gap-5 overflow-hidden mask-[linear-gradient(to_bottom,transparent,black_15%,black_85%,transparent)] md:grid-cols-2 lg:grid-cols-3\"\n      >\n        <div\n          v-for=\"(col, c) in columns\"\n          :key=\"c\"\n          class=\"min-h-0\"\n          :class=\"c === 2 ? 'hidden lg:block' : c === 1 ? 'hidden md:block' : ''\"\n        >\n          <ul class=\"marquee-track space-y-5\" :class=\"c === 1 ? 'marquee-reverse' : ''\">\n            <li\n              v-for=\"(t, i) in [...col, ...col, ...col, ...col]\"\n              :key=\"`${t.name}-${i}`\"\n              class=\"bg-card rounded-2xl border p-6\"\n              :aria-hidden=\"i >= col.length\"\n            >\n              <blockquote class=\"leading-relaxed\">“{{ t.quote }}”</blockquote>\n              <figcaption class=\"mt-4 flex items-center gap-3\">\n                <UiAvatar :src=\"t.avatar\" :fallback=\"t.name[0]\" class=\"size-9\" />\n                <div>\n                  <p class=\"text-sm font-semibold\">{{ t.name }}</p>\n                  <p class=\"text-muted-foreground text-xs\">{{ t.role }}, {{ t.company }}</p>\n                </div>\n              </figcaption>\n            </li>\n          </ul>\n        </div>\n      </div>\n    </UiContainer>\n  </section>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"Loved by people who ship\",\n      description: \"Scroll through what customers are saying.\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n\n  const columns = computed(() => [\n    props.items.filter((_, i) => i % 3 === 0),\n    props.items.filter((_, i) => i % 3 === 1),\n    props.items.filter((_, i) => i % 3 === 2),\n  ]);\n</script>\n\n<style scoped>\n  .marquee-track {\n    animation: marquee-up 50s linear infinite;\n  }\n  .marquee-reverse {\n    animation-direction: reverse;\n  }\n  .marquee:hover .marquee-track {\n    animation-play-state: paused;\n  }\n  @keyframes marquee-up {\n    to {\n      transform: translateY(-25%);\n    }\n  }\n  @media (prefers-reduced-motion: reduce) {\n    .marquee-track {\n      animation: none;\n    }\n  }\n</style>\n","category":"Testimony","description":"Vertical marquee columns. Features: Three columns of quote cards that scroll in alternating directions with top and bottom fades, pause on hover and stop for reduced motion","path":"Testimony/BlockTestimony7.vue","components":["avatar","container"]},{"name":"Testimony 8","fileName":"BlockTestimony8.vue","file":"<template>\n  <!--\n    Customer story with outcome stats\n    Features: Portrait beside a large quote, the company wordmark, three outcome stats and a link to the full story\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"bg-card grid overflow-hidden rounded-3xl border lg:grid-cols-[2fr_3fr]\">\n      <div class=\"relative min-h-72\">\n        <img\n          :src=\"item.avatar.replace('/120?', '/800?')\"\n          :alt=\"item.name\"\n          class=\"absolute inset-0 size-full object-cover\"\n          loading=\"lazy\"\n        />\n      </div>\n      <div class=\"flex flex-col justify-center p-8 sm:p-12\">\n        <p class=\"text-muted-foreground flex items-center gap-2 text-xl font-semibold\">\n          <Icon name=\"lucide:compass\" class=\"size-6\" />\n          {{ item.company }}\n        </p>\n        <blockquote class=\"mt-6 text-2xl leading-snug font-medium text-balance sm:text-3xl\">\n          “{{ item.quote }}”\n        </blockquote>\n        <figcaption class=\"mt-6\">\n          <p class=\"font-semibold\">{{ item.name }}</p>\n          <p class=\"text-muted-foreground text-sm\">{{ item.role }}, {{ item.company }}</p>\n        </figcaption>\n        <dl class=\"mt-8 grid grid-cols-3 gap-4 border-t pt-6\">\n          <div v-for=\"stat in props.stats\" :key=\"stat.label\" class=\"flex flex-col-reverse gap-1\">\n            <dt class=\"text-muted-foreground text-xs sm:text-sm\">{{ stat.label }}</dt>\n            <dd class=\"text-primary text-2xl font-bold tracking-tight sm:text-3xl\">\n              {{ stat.value }}\n            </dd>\n          </div>\n        </dl>\n        <UiButton variant=\"link\" class=\"mt-4 w-fit px-0\">\n          Read the full story\n          <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      items?: Testimonial[];\n      stats?: { value: string; label: string }[];\n    }>(),\n    {\n      title: \"\",\n      description: \"\",\n      stats: () => [\n        { value: \"42%\", label: \"Faster planning\" },\n        { value: \"3x\", label: \"More releases\" },\n        { value: \"-33%\", label: \"Support tickets\" },\n      ],\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n\n  const item = computed(() => props.items[0]!);\n</script>\n","category":"Testimony","description":"Customer story with outcome stats. Features: Portrait beside a large quote, the company wordmark, three outcome stats and a link to the full story","path":"Testimony/BlockTestimony8.vue","components":["button","container"]},{"name":"Testimony 9","fileName":"BlockTestimony9.vue","file":"<template>\n  <!--\n    Social post style cards\n    Features: Cards styled like social posts with an X logo, handle, post text, timestamp and like count, linking out to the original post\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <h2 class=\"text-3xl font-bold tracking-tight text-balance sm:text-4xl\">{{ props.title }}</h2>\n      <p class=\"text-muted-foreground mt-3 text-lg text-balance\">{{ props.description }}</p>\n    </div>\n    <ul class=\"mt-12 grid gap-5 md:grid-cols-2 lg:grid-cols-3\">\n      <Motion\n        v-for=\"(t, i) in props.items.slice(0, 6)\"\n        :key=\"t.name\"\n        as=\"li\"\n        :initial=\"{ opacity: 0, y: 16 }\"\n        :while-in-view=\"{ opacity: 1, y: 0 }\"\n        :in-view-options=\"{ once: true }\"\n        :transition=\"{ duration: 0.4, delay: (i % 3) * 0.08 }\"\n      >\n        <a\n          href=\"#\"\n          class=\"bg-card hover:border-primary/40 block h-full rounded-2xl border p-5 transition-colors\"\n        >\n          <div class=\"flex items-start justify-between gap-3\">\n            <div class=\"flex items-center gap-3\">\n              <UiAvatar :src=\"t.avatar\" :fallback=\"t.name[0]\" />\n              <div>\n                <p class=\"text-sm leading-tight font-semibold\">{{ t.name }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ t.handle }}</p>\n              </div>\n            </div>\n            <Icon name=\"simple-icons:x\" class=\"text-muted-foreground size-4\" />\n          </div>\n          <p class=\"mt-4 text-sm leading-relaxed\">{{ t.quote }}</p>\n          <p class=\"text-muted-foreground mt-4 flex items-center gap-4 text-xs\">\n            <span>{{ times[i] }}</span>\n            <span class=\"flex items-center gap-1\">\n              <Icon name=\"lucide:heart\" class=\"size-3.5\" />\n              {{ likes[i] }}\n            </span>\n          </p>\n        </a>\n      </Motion>\n    </ul>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Testimonial = {\n    quote: string;\n    name: string;\n    role: string;\n    company: string;\n    handle: string;\n    avatar: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{ title?: string; description?: string; items?: Testimonial[] }>(),\n    {\n      title: \"Loved on social\",\n      description: \"People are talking, and we are listening.\",\n      items: () => [\n        {\n          quote:\n            \"We replaced three tools with one and our planning meetings got shorter overnight. The team actually enjoys opening it.\",\n          name: \"Sarah Johnson\",\n          role: \"CEO\",\n          company: \"Northwind\",\n          handle: \"@sarahj\",\n          avatar: \"https://i.pravatar.cc/120?img=47\",\n        },\n        {\n          quote:\n            \"Onboarding a new engineer used to take two weeks. With the shared workspace it takes an afternoon.\",\n          name: \"Michael Chen\",\n          role: \"CTO\",\n          company: \"Vertex\",\n          handle: \"@mchen\",\n          avatar: \"https://i.pravatar.cc/120?img=12\",\n        },\n        {\n          quote:\n            \"Support volume dropped by a third in the first quarter because customers finally find answers on their own.\",\n          name: \"Emily Rodriguez\",\n          role: \"Head of Support\",\n          company: \"Lumen\",\n          handle: \"@emilyrod\",\n          avatar: \"https://i.pravatar.cc/120?img=32\",\n        },\n        {\n          quote:\n            \"The best investment we made this year. Our releases are calmer and nobody dreads Mondays anymore.\",\n          name: \"Priya Nair\",\n          role: \"VP of Engineering\",\n          company: \"Orbit\",\n          handle: \"@priya_n\",\n          avatar: \"https://i.pravatar.cc/120?img=45\",\n        },\n        {\n          quote:\n            \"Simple, powerful and reliable. Exactly what we needed for a team that grew from five to fifty.\",\n          name: \"Noah Fischer\",\n          role: \"Founder\",\n          company: \"Pulse\",\n          handle: \"@noahf\",\n          avatar: \"https://i.pravatar.cc/120?img=53\",\n        },\n        {\n          quote:\n            \"Outstanding support. I asked for a small change on Tuesday and it shipped on Wednesday.\",\n          name: \"Ana Souza\",\n          role: \"Operations Lead\",\n          company: \"Nimbus\",\n          handle: \"@anasouza\",\n          avatar: \"https://i.pravatar.cc/120?img=44\",\n        },\n        {\n          quote:\n            \"Every detail feels considered. It is rare to find software that is this fast and this friendly.\",\n          name: \"Hannah Lee\",\n          role: \"Product Manager\",\n          company: \"Quanta\",\n          handle: \"@hannahlee\",\n          avatar: \"https://i.pravatar.cc/120?img=49\",\n        },\n        {\n          quote:\n            \"We evaluated six alternatives. Nothing else came close on price, polish or the people behind it.\",\n          name: \"Diego Alvarez\",\n          role: \"Director of IT\",\n          company: \"Summit\",\n          handle: \"@diegoa\",\n          avatar: \"https://i.pravatar.cc/120?img=33\",\n        },\n      ],\n    }\n  );\n\n  const times = [\n    \"2:14 PM · Jan 8\",\n    \"9:41 AM · Jan 6\",\n    \"6:02 PM · Jan 3\",\n    \"11:30 AM · Dec 28\",\n    \"8:15 PM · Dec 21\",\n    \"1:47 PM · Dec 14\",\n  ];\n  const likes = [\"1.2K\", \"864\", \"2.4K\", \"431\", \"978\", \"1.6K\"];\n</script>\n","category":"Testimony","description":"Social post style cards. Features: Cards styled like social posts with an X logo, handle, post text, timestamp and like count, linking out to the original post","path":"Testimony/BlockTestimony9.vue","components":["avatar","container"]},{"name":"Thread 1","fileName":"BlockThread1.vue","file":"<template>\n  <!--\n    One to one chat thread\n    Features: Header with avatar and online status, message bubbles on both sides, timestamps, scroll area that stays at the latest message, working composer that sends on enter and a simulated reply\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto h-[36rem] w-full max-w-lg gap-0 py-0\">\n      <div class=\"flex items-center gap-3 border-b px-6 py-3\">\n        <UiAvatar :src=\"contact.avatar\" :fallback=\"contact.name[0]\" class=\"size-10\" />\n        <div class=\"min-w-0 flex-1\">\n          <UiCardTitle class=\"truncate text-base\">{{ contact.name }}</UiCardTitle>\n          <p class=\"flex items-center gap-1.5 text-xs text-green-600 dark:text-green-400\">\n            <span class=\"size-1.5 rounded-full bg-current\" />\n            Online\n          </p>\n        </div>\n        <UiButton\n          variant=\"ghost\"\n          size=\"icon-sm\"\n          aria-label=\"Call\"\n          @click=\"useSonner.info('Calling...')\"\n        >\n          <Icon name=\"lucide:phone\" class=\"size-4\" />\n        </UiButton>\n      </div>\n\n      <UiCardContent class=\"min-h-0 flex-1 overflow-hidden p-0\">\n        <UiMessageScrollerProvider>\n          <UiMessageScroller>\n            <UiMessageScrollerViewport>\n              <UiMessageScrollerContent class=\"gap-4 p-4\">\n                <UiMessageScrollerItem\n                  v-for=\"message in items\"\n                  :key=\"message.id\"\n                  :message-id=\"message.id\"\n                  :scroll-anchor=\"message.mine\"\n                >\n                  <UiMessage :align=\"message.mine ? 'end' : 'start'\">\n                    <UiMessageContent>\n                      <UiBubble :variant=\"message.mine ? 'default' : 'muted'\">\n                        <UiBubbleContent>{{ message.text }}</UiBubbleContent>\n                      </UiBubble>\n                      <UiMessageFooter>{{ message.time }}</UiMessageFooter>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n              </UiMessageScrollerContent>\n            </UiMessageScrollerViewport>\n            <UiMessageScrollerButton />\n          </UiMessageScroller>\n        </UiMessageScrollerProvider>\n      </UiCardContent>\n\n      <UiCardFooter class=\"border-t py-3\">\n        <form class=\"flex w-full items-center gap-2\" @submit.prevent=\"send\">\n          <UiLabel for=\"thread1-input\" class=\"sr-only\">Message</UiLabel>\n          <UiInput\n            id=\"thread1-input\"\n            v-model=\"draft\"\n            placeholder=\"Write a message\"\n            autocomplete=\"off\"\n          />\n          <UiButton type=\"submit\" size=\"icon\" :disabled=\"!draft.trim()\" aria-label=\"Send message\">\n            <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n          </UiButton>\n        </form>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Message = { id: string; text: string; mine: boolean; time: string };\n\n  const props = withDefaults(\n    defineProps<{\n      contact?: { name: string; avatar: string };\n      messages?: Message[];\n    }>(),\n    {\n      contact: () => ({ name: \"Sofia Alvarez\", avatar: \"https://i.pravatar.cc/80?img=32\" }),\n      messages: () => [\n        {\n          id: \"m1\",\n          text: \"Hey! Did you get a chance to look at the new onboarding mockups?\",\n          mine: false,\n          time: \"9:38 AM\",\n        },\n        {\n          id: \"m2\",\n          text: \"Just opened them. The checklist idea is great.\",\n          mine: true,\n          time: \"9:39 AM\",\n        },\n        {\n          id: \"m3\",\n          text: \"Glad you like it. I was worried it felt a bit long.\",\n          mine: false,\n          time: \"9:40 AM\",\n        },\n        {\n          id: \"m4\",\n          text: \"Not at all. Maybe drop the tour step on mobile?\",\n          mine: true,\n          time: \"9:41 AM\",\n        },\n      ],\n    }\n  );\n\n  const items = ref<Message[]>(props.messages.map((message) => ({ ...message })));\n  const draft = ref(\"\");\n\n  const replies = [\n    \"Makes sense, I will update it.\",\n    \"Good call, thanks!\",\n    \"Perfect. Let me know if anything else comes up.\",\n  ];\n\n  function now() {\n    return new Date().toLocaleTimeString(\"en-US\", { hour: \"numeric\", minute: \"2-digit\" });\n  }\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text) return;\n    items.value.push({ id: `m${items.value.length + 1}`, text, mine: true, time: now() });\n    draft.value = \"\";\n    setTimeout(() => {\n      items.value.push({\n        id: `m${items.value.length + 1}`,\n        text: replies[items.value.length % replies.length]!,\n        mine: false,\n        time: now(),\n      });\n    }, 900);\n  }\n</script>\n","category":"Thread","description":"One to one chat thread. Features: Header with avatar and online status, message bubbles on both sides, timestamps, scroll area that stays at the latest message, working composer that sends on enter and a simulated reply","path":"Chat/Thread/BlockThread1.vue","components":["avatar","bubble","button","card","container","input","label","message","message-scroller"]},{"name":"Thread 2","fileName":"BlockThread2.vue","file":"<template>\n  <!--\n    Group chat thread with names and avatars\n    Features: Avatar and name above the first message of each run, consecutive messages grouped into one stack, day divider, member count in the header and a message group landmark\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto h-[36rem] w-full max-w-lg gap-0 py-0\">\n      <div class=\"flex items-center gap-3 border-b px-6 py-3\">\n        <div class=\"flex -space-x-2\">\n          <UiAvatar\n            v-for=\"member in members.slice(0, 3)\"\n            :key=\"member.name\"\n            :src=\"member.avatar\"\n            :fallback=\"member.name[0]\"\n            class=\"ring-background size-8 ring-2\"\n          />\n        </div>\n        <div class=\"min-w-0 flex-1\">\n          <UiCardTitle class=\"truncate text-base\">{{ title }}</UiCardTitle>\n          <p class=\"text-muted-foreground text-xs\">{{ members.length }} members</p>\n        </div>\n      </div>\n\n      <UiCardContent class=\"min-h-0 flex-1 overflow-hidden p-0\">\n        <UiMessageScrollerProvider>\n          <UiMessageScroller>\n            <UiMessageScrollerViewport>\n              <UiMessageScrollerContent class=\"gap-5 p-4\">\n                <div class=\"text-muted-foreground flex items-center gap-3 text-xs\" role=\"separator\">\n                  <span class=\"bg-border h-px flex-1\" />\n                  Today\n                  <span class=\"bg-border h-px flex-1\" />\n                </div>\n                <UiMessageScrollerItem\n                  v-for=\"(run, index) in runs\"\n                  :key=\"index\"\n                  :message-id=\"`run-${index}`\"\n                >\n                  <UiMessage :align=\"run.mine ? 'end' : 'start'\">\n                    <UiMessageAvatar v-if=\"!run.mine\">\n                      <UiAvatar :src=\"run.author.avatar\" :fallback=\"run.author.name[0]\" />\n                    </UiMessageAvatar>\n                    <UiMessageContent>\n                      <UiMessageHeader v-if=\"!run.mine\">\n                        {{ run.author.name }}\n                        <span class=\"text-muted-foreground ml-1 text-xs font-normal\">{{\n                          run.time\n                        }}</span>\n                      </UiMessageHeader>\n                      <UiBubbleGroup>\n                        <UiBubble\n                          v-for=\"text in run.texts\"\n                          :key=\"text\"\n                          :variant=\"run.mine ? 'default' : 'muted'\"\n                        >\n                          <UiBubbleContent>{{ text }}</UiBubbleContent>\n                        </UiBubble>\n                      </UiBubbleGroup>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n              </UiMessageScrollerContent>\n            </UiMessageScrollerViewport>\n            <UiMessageScrollerButton />\n          </UiMessageScroller>\n        </UiMessageScrollerProvider>\n      </UiCardContent>\n\n      <UiCardFooter class=\"border-t py-3\">\n        <div class=\"flex w-full items-center gap-2\">\n          <UiLabel for=\"thread2-input\" class=\"sr-only\">Message the team</UiLabel>\n          <UiInput id=\"thread2-input\" placeholder=\"Message the team\" />\n          <UiButton\n            size=\"icon\"\n            aria-label=\"Send message\"\n            @click=\"useSonner.info('Wire this up to your API')\"\n          >\n            <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n          </UiButton>\n        </div>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Member = { name: string; avatar: string };\n  type Run = { author: Member; mine?: boolean; time: string; texts: string[] };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      members?: Member[];\n      runs?: Run[];\n    }>(),\n    {\n      title: \"Launch squad\",\n      members: () => [\n        { name: \"Sofia\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n        { name: \"Liam\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n        { name: \"Aisha\", avatar: \"https://i.pravatar.cc/80?img=44\" },\n        { name: \"You\", avatar: \"https://i.pravatar.cc/80?img=45\" },\n      ],\n      runs: () => [\n        {\n          author: { name: \"Sofia\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n          time: \"9:30 AM\",\n          texts: [\n            \"Morning team!\",\n            \"Launch checklist is almost done.\",\n            \"Only the pricing page is left.\",\n          ],\n        },\n        {\n          author: { name: \"Liam\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n          time: \"9:34 AM\",\n          texts: [\"I can take pricing. Do we have final copy?\"],\n        },\n        {\n          author: { name: \"You\", avatar: \"https://i.pravatar.cc/80?img=45\" },\n          mine: true,\n          time: \"9:35 AM\",\n          texts: [\"Copy is in the shared doc.\", \"Ping me if anything is unclear.\"],\n        },\n        {\n          author: { name: \"Aisha\", avatar: \"https://i.pravatar.cc/80?img=44\" },\n          time: \"9:41 AM\",\n          texts: [\"Announcement email is scheduled for 2 PM.\"],\n        },\n      ],\n    }\n  );\n</script>\n","category":"Thread","description":"Group chat thread with names and avatars. Features: Avatar and name above the first message of each run, consecutive messages grouped into one stack, day divider, member count in the header and a message group landmark","path":"Chat/Thread/BlockThread2.vue","components":["avatar","bubble","button","card","container","input","label","message","message-scroller"]},{"name":"Thread 3","fileName":"BlockThread3.vue","file":"<template>\n  <!--\n    Chat thread with images and file attachments\n    Features: Image attachments with captions, file cards with type icon and size, an upload in progress with a cancel action, attachment group layout and a composer with an attach button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto h-[44rem] w-full max-w-lg gap-0 py-0\">\n      <UiCardHeader class=\"border-b py-3\">\n        <UiCardTitle class=\"text-base\">Project files</UiCardTitle>\n        <UiCardDescription>Shared with Sofia and Liam</UiCardDescription>\n      </UiCardHeader>\n\n      <UiCardContent class=\"min-h-0 flex-1 overflow-hidden p-0\">\n        <UiMessageScrollerProvider>\n          <UiMessageScroller>\n            <UiMessageScrollerViewport>\n              <UiMessageScrollerContent class=\"gap-5 p-4\">\n                <UiMessageScrollerItem message-id=\"a1\">\n                  <UiMessage>\n                    <UiMessageAvatar\n                      ><UiAvatar src=\"https://i.pravatar.cc/80?img=32\" fallback=\"S\"\n                    /></UiMessageAvatar>\n                    <UiMessageContent>\n                      <UiBubble variant=\"muted\">\n                        <UiBubbleContent>Here are the three directions I explored.</UiBubbleContent>\n                      </UiBubble>\n                      <UiAttachmentGroup>\n                        <UiAttachment\n                          v-for=\"image in images\"\n                          :key=\"image.name\"\n                          orientation=\"vertical\"\n                        >\n                          <UiAttachmentMedia variant=\"image\">\n                            <img :src=\"image.src\" :alt=\"image.alt\" />\n                          </UiAttachmentMedia>\n                          <UiAttachmentContent>\n                            <UiAttachmentTitle>{{ image.name }}</UiAttachmentTitle>\n                            <UiAttachmentDescription>{{ image.meta }}</UiAttachmentDescription>\n                          </UiAttachmentContent>\n                        </UiAttachment>\n                      </UiAttachmentGroup>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n\n                <UiMessageScrollerItem message-id=\"a2\">\n                  <UiMessage align=\"end\">\n                    <UiMessageContent>\n                      <UiBubble>\n                        <UiBubbleContent\n                          >Love the second one. Sending the brief now.</UiBubbleContent\n                        >\n                      </UiBubble>\n                      <UiAttachment v-for=\"file in files\" :key=\"file.name\" class=\"w-full\">\n                        <UiAttachmentMedia><Icon :name=\"file.icon\" /></UiAttachmentMedia>\n                        <UiAttachmentContent>\n                          <UiAttachmentTitle>{{ file.name }}</UiAttachmentTitle>\n                          <UiAttachmentDescription>{{ file.meta }}</UiAttachmentDescription>\n                        </UiAttachmentContent>\n                        <UiAttachmentActions>\n                          <UiAttachmentAction\n                            :aria-label=\"`Download ${file.name}`\"\n                            @click=\"useSonner.success(`Downloading ${file.name}`)\"\n                          >\n                            <Icon name=\"lucide:download\" />\n                          </UiAttachmentAction>\n                        </UiAttachmentActions>\n                      </UiAttachment>\n                      <UiAttachment v-if=\"uploading\" state=\"uploading\" class=\"w-full\">\n                        <UiAttachmentMedia>\n                          <Icon name=\"lucide:loader-circle\" class=\"animate-spin\" />\n                        </UiAttachmentMedia>\n                        <UiAttachmentContent>\n                          <UiAttachmentTitle>brand-guidelines.pdf</UiAttachmentTitle>\n                          <UiAttachmentDescription\n                            >Uploading · {{ progress }}%</UiAttachmentDescription\n                          >\n                        </UiAttachmentContent>\n                        <UiAttachmentActions>\n                          <UiAttachmentAction aria-label=\"Cancel upload\" @click=\"cancel\">\n                            <Icon name=\"lucide:x\" />\n                          </UiAttachmentAction>\n                        </UiAttachmentActions>\n                      </UiAttachment>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n              </UiMessageScrollerContent>\n            </UiMessageScrollerViewport>\n          </UiMessageScroller>\n        </UiMessageScrollerProvider>\n      </UiCardContent>\n\n      <UiCardFooter class=\"border-t py-3\">\n        <div class=\"flex w-full items-center gap-2\">\n          <UiButton\n            variant=\"outline\"\n            size=\"icon\"\n            aria-label=\"Attach a file\"\n            :disabled=\"uploading\"\n            @click=\"upload\"\n          >\n            <Icon name=\"lucide:paperclip\" class=\"size-4\" />\n          </UiButton>\n          <UiLabel for=\"thread3-input\" class=\"sr-only\">Message</UiLabel>\n          <UiInput id=\"thread3-input\" placeholder=\"Write a message\" />\n        </div>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      images?: { name: string; meta: string; alt: string; src: string }[];\n      files?: { name: string; meta: string; icon: string }[];\n    }>(),\n    {\n      images: () => [\n        {\n          name: \"direction-a.jpg\",\n          meta: \"JPG · 1.2 MB\",\n          alt: \"Warm toned interior\",\n          src: \"https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=300&q=80\",\n        },\n        {\n          name: \"direction-b.jpg\",\n          meta: \"JPG · 980 KB\",\n          alt: \"Minimal desk setup\",\n          src: \"https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=300&q=80\",\n        },\n      ],\n      files: () => [\n        { name: \"project-brief.pdf\", meta: \"PDF · 2.4 MB\", icon: \"lucide:file-text\" },\n        { name: \"budget.xlsx\", meta: \"Spreadsheet · 86 KB\", icon: \"lucide:file-spreadsheet\" },\n      ],\n    }\n  );\n\n  const uploading = ref(false);\n  const progress = ref(0);\n  let timer: ReturnType<typeof setInterval> | undefined;\n\n  function upload() {\n    uploading.value = true;\n    progress.value = 0;\n    timer = setInterval(() => {\n      progress.value = Math.min(progress.value + 12, 100);\n      if (progress.value >= 100) {\n        clearInterval(timer);\n        uploading.value = false;\n        useSonner.success(\"Upload complete\");\n      }\n    }, 250);\n  }\n\n  function cancel() {\n    clearInterval(timer);\n    uploading.value = false;\n  }\n\n  onBeforeUnmount(() => clearInterval(timer));\n</script>\n","category":"Thread","description":"Chat thread with images and file attachments. Features: Image attachments with captions, file cards with type icon and size, an upload in progress with a cancel action, attachment group layout and a composer with an attach button","path":"Chat/Thread/BlockThread3.vue","components":["attachment","avatar","bubble","button","card","container","input","label","message","message-scroller"]},{"name":"Thread 4","fileName":"BlockThread4.vue","file":"<template>\n  <!--\n    Chat thread with emoji reactions\n    Features: Reaction chips under each bubble with counts, your own reactions highlighted, click a chip to toggle it, add reaction popover with quick emoji and reactions announced to screen readers\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto h-[34rem] w-full max-w-lg gap-0 py-0\">\n      <UiCardHeader class=\"border-b py-3\">\n        <UiCardTitle class=\"text-base\">Team lounge</UiCardTitle>\n        <UiCardDescription>Hover or focus a message to react</UiCardDescription>\n      </UiCardHeader>\n      <UiCardContent class=\"min-h-0 flex-1 overflow-hidden p-0\">\n        <UiMessageScrollerProvider>\n          <UiMessageScroller>\n            <UiMessageScrollerViewport>\n              <UiMessageScrollerContent class=\"gap-5 p-4\">\n                <UiMessageScrollerItem\n                  v-for=\"message in items\"\n                  :key=\"message.id\"\n                  :message-id=\"message.id\"\n                >\n                  <UiMessage :align=\"message.mine ? 'end' : 'start'\" class=\"group/msg\">\n                    <UiMessageAvatar v-if=\"!message.mine\">\n                      <UiAvatar :src=\"message.avatar\" :fallback=\"message.author[0]\" />\n                    </UiMessageAvatar>\n                    <UiMessageContent>\n                      <UiBubble\n                        :variant=\"message.mine ? 'default' : 'muted'\"\n                        :align=\"message.mine ? 'end' : 'start'\"\n                      >\n                        <UiBubbleContent>{{ message.text }}</UiBubbleContent>\n                      </UiBubble>\n                      <div\n                        class=\"flex flex-wrap items-center gap-1\"\n                        :class=\"message.mine ? 'justify-end' : ''\"\n                      >\n                        <button\n                          v-for=\"reaction in message.reactions\"\n                          :key=\"reaction.emoji\"\n                          type=\"button\"\n                          class=\"focus-visible:ring-ring/50 flex items-center gap-1 rounded-full border px-2 py-0.5 text-xs transition outline-none focus-visible:ring-[3px]\"\n                          :class=\"reaction.mine ? 'border-primary bg-primary/10' : 'hover:bg-muted'\"\n                          :aria-pressed=\"reaction.mine\"\n                          :aria-label=\"`${reaction.emoji} ${reaction.count}, ${reaction.mine ? 'remove' : 'add'} your reaction`\"\n                          @click=\"toggle(message, reaction.emoji)\"\n                        >\n                          <span aria-hidden=\"true\">{{ reaction.emoji }}</span>\n                          <span class=\"tabular-nums\">{{ reaction.count }}</span>\n                        </button>\n                        <UiPopover>\n                          <UiPopoverTrigger as-child>\n                            <UiButton\n                              variant=\"ghost\"\n                              size=\"icon-sm\"\n                              class=\"size-6 opacity-0 transition group-focus-within/msg:opacity-100 group-hover/msg:opacity-100 data-[state=open]:opacity-100\"\n                              aria-label=\"Add reaction\"\n                            >\n                              <Icon name=\"lucide:smile-plus\" class=\"size-4\" />\n                            </UiButton>\n                          </UiPopoverTrigger>\n                          <UiPopoverContent class=\"w-auto p-1\" align=\"start\">\n                            <div class=\"flex gap-0.5\">\n                              <button\n                                v-for=\"emoji in quick\"\n                                :key=\"emoji\"\n                                type=\"button\"\n                                class=\"hover:bg-muted rounded p-1.5 text-lg\"\n                                :aria-label=\"`React with ${emoji}`\"\n                                @click=\"toggle(message, emoji)\"\n                              >\n                                {{ emoji }}\n                              </button>\n                            </div>\n                          </UiPopoverContent>\n                        </UiPopover>\n                      </div>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n              </UiMessageScrollerContent>\n            </UiMessageScrollerViewport>\n          </UiMessageScroller>\n        </UiMessageScrollerProvider>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Reaction = { emoji: string; count: number; mine: boolean };\n  type Message = {\n    id: string;\n    author: string;\n    avatar: string;\n    text: string;\n    mine?: boolean;\n    reactions: Reaction[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      messages?: Message[];\n    }>(),\n    {\n      messages: () => [\n        {\n          id: \"r1\",\n          author: \"Sofia\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          text: \"We just crossed 10,000 users!\",\n          reactions: [\n            { emoji: \"🎉\", count: 5, mine: true },\n            { emoji: \"🚀\", count: 2, mine: false },\n          ],\n        },\n        {\n          id: \"r2\",\n          author: \"You\",\n          avatar: \"\",\n          mine: true,\n          text: \"Amazing work everyone. Drinks on me on Friday.\",\n          reactions: [{ emoji: \"👍\", count: 3, mine: false }],\n        },\n        {\n          id: \"r3\",\n          author: \"Liam\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          text: \"I will bring the cake.\",\n          reactions: [],\n        },\n      ],\n    }\n  );\n\n  const quick = [\"👍\", \"❤️\", \"😂\", \"🎉\", \"🚀\", \"👀\"];\n\n  const items = ref<Message[]>(\n    props.messages.map((message) => ({\n      ...message,\n      reactions: message.reactions.map((reaction) => ({ ...reaction })),\n    }))\n  );\n\n  function toggle(message: Message, emoji: string) {\n    const existing = message.reactions.find((reaction) => reaction.emoji === emoji);\n    if (!existing) {\n      message.reactions.push({ emoji, count: 1, mine: true });\n      return;\n    }\n    existing.mine = !existing.mine;\n    existing.count += existing.mine ? 1 : -1;\n    if (existing.count <= 0)\n      message.reactions = message.reactions.filter((reaction) => reaction.emoji !== emoji);\n  }\n</script>\n","category":"Thread","description":"Chat thread with emoji reactions. Features: Reaction chips under each bubble with counts, your own reactions highlighted, click a chip to toggle it, add reaction popover with quick emoji and reactions announced to screen readers","path":"Chat/Thread/BlockThread4.vue","components":["avatar","bubble","button","card","container","message","message-scroller","popover"]},{"name":"Thread 5","fileName":"BlockThread5.vue","file":"<template>\n  <!--\n    Chat thread with replies and quoted messages\n    Features: Reply button on every message, a quoted preview inside the replying bubble, a reply banner above the composer with a cancel button and sending a reply that quotes the original\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto h-[36rem] w-full max-w-lg gap-0 py-0\">\n      <UiCardHeader class=\"border-b py-3\">\n        <UiCardTitle class=\"text-base\">Roadmap discussion</UiCardTitle>\n      </UiCardHeader>\n\n      <UiCardContent class=\"min-h-0 flex-1 overflow-hidden p-0\">\n        <UiMessageScrollerProvider>\n          <UiMessageScroller>\n            <UiMessageScrollerViewport>\n              <UiMessageScrollerContent class=\"gap-5 p-4\">\n                <UiMessageScrollerItem\n                  v-for=\"message in items\"\n                  :key=\"message.id\"\n                  :message-id=\"message.id\"\n                  :scroll-anchor=\"message.mine\"\n                >\n                  <UiMessage :align=\"message.mine ? 'end' : 'start'\" class=\"group/msg\">\n                    <UiMessageContent>\n                      <UiMessageHeader v-if=\"!message.mine\">{{ message.author }}</UiMessageHeader>\n                      <UiBubble\n                        :variant=\"message.mine ? 'default' : 'muted'\"\n                        :align=\"message.mine ? 'end' : 'start'\"\n                      >\n                        <UiBubbleContent>\n                          <div\n                            v-if=\"message.quote\"\n                            class=\"mb-2 rounded-md border-l-2 border-current/40 bg-black/5 py-1 pr-2 pl-2 text-xs dark:bg-white/10\"\n                          >\n                            <p class=\"font-semibold\">{{ message.quote.author }}</p>\n                            <p class=\"line-clamp-2 opacity-80\">{{ message.quote.text }}</p>\n                          </div>\n                          {{ message.text }}\n                        </UiBubbleContent>\n                      </UiBubble>\n                      <UiMessageFooter class=\"gap-2\">\n                        {{ message.time }}\n                        <UiButton\n                          variant=\"ghost\"\n                          size=\"icon-sm\"\n                          class=\"size-6 opacity-0 transition group-focus-within/msg:opacity-100 group-hover/msg:opacity-100\"\n                          :aria-label=\"`Reply to ${message.author}`\"\n                          @click=\"replyTo = message\"\n                        >\n                          <Icon name=\"lucide:reply\" class=\"size-3.5\" />\n                        </UiButton>\n                      </UiMessageFooter>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n              </UiMessageScrollerContent>\n            </UiMessageScrollerViewport>\n            <UiMessageScrollerButton />\n          </UiMessageScroller>\n        </UiMessageScrollerProvider>\n      </UiCardContent>\n\n      <UiCardFooter class=\"flex-col items-stretch gap-2 border-t py-3\">\n        <div\n          v-if=\"replyTo\"\n          class=\"bg-muted border-primary flex items-center gap-2 rounded-md border-l-2 px-3 py-1.5 text-sm\"\n          role=\"status\"\n        >\n          <Icon name=\"lucide:reply\" class=\"text-muted-foreground size-4 shrink-0\" />\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"text-xs font-semibold\">Replying to {{ replyTo.author }}</p>\n            <p class=\"text-muted-foreground truncate text-xs\">{{ replyTo.text }}</p>\n          </div>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            class=\"size-6\"\n            aria-label=\"Cancel reply\"\n            @click=\"replyTo = undefined\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-3.5\" />\n          </UiButton>\n        </div>\n        <form class=\"flex items-center gap-2\" @submit.prevent=\"send\">\n          <UiLabel for=\"thread5-input\" class=\"sr-only\">Message</UiLabel>\n          <UiInput\n            id=\"thread5-input\"\n            v-model=\"draft\"\n            placeholder=\"Write a message\"\n            autocomplete=\"off\"\n          />\n          <UiButton type=\"submit\" size=\"icon\" :disabled=\"!draft.trim()\" aria-label=\"Send message\">\n            <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n          </UiButton>\n        </form>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Message = {\n    id: string;\n    author: string;\n    text: string;\n    time: string;\n    mine?: boolean;\n    quote?: { author: string; text: string };\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      messages?: Message[];\n    }>(),\n    {\n      messages: () => [\n        {\n          id: \"q1\",\n          author: \"Sofia\",\n          text: \"Should we ship the dark mode update before the pricing redesign?\",\n          time: \"10:02 AM\",\n        },\n        {\n          id: \"q2\",\n          author: \"Liam\",\n          text: \"I would do pricing first. It affects revenue.\",\n          time: \"10:04 AM\",\n        },\n        {\n          id: \"q3\",\n          author: \"You\",\n          mine: true,\n          text: \"Agreed. Dark mode can follow next sprint.\",\n          time: \"10:05 AM\",\n          quote: { author: \"Liam\", text: \"I would do pricing first. It affects revenue.\" },\n        },\n      ],\n    }\n  );\n\n  const items = ref<Message[]>(props.messages.map((message) => ({ ...message })));\n  const draft = ref(\"\");\n  const replyTo = ref<Message>();\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text) return;\n    items.value.push({\n      id: `q${items.value.length + 1}`,\n      author: \"You\",\n      mine: true,\n      text,\n      time: new Date().toLocaleTimeString(\"en-US\", { hour: \"numeric\", minute: \"2-digit\" }),\n      quote: replyTo.value ? { author: replyTo.value.author, text: replyTo.value.text } : undefined,\n    });\n    draft.value = \"\";\n    replyTo.value = undefined;\n  }\n</script>\n","category":"Thread","description":"Chat thread with replies and quoted messages. Features: Reply button on every message, a quoted preview inside the replying bubble, a reply banner above the composer with a cancel button and sending a reply that quotes the original","path":"Chat/Thread/BlockThread5.vue","components":["bubble","button","card","container","input","label","message","message-scroller"]},{"name":"Thread 6","fileName":"BlockThread6.vue","file":"<template>\n  <!--\n    Chat thread with a typing indicator\n    Features: Animated three dot typing bubble that respects reduced motion, a typing label for screen readers, simulated typing before each reply and a send button that is disabled while empty\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto h-[34rem] w-full max-w-lg gap-0 py-0\">\n      <div class=\"flex items-center gap-3 border-b px-6 py-3\">\n        <UiAvatar :src=\"contact.avatar\" :fallback=\"contact.name[0]\" class=\"size-10\" />\n        <div>\n          <UiCardTitle class=\"text-base\">{{ contact.name }}</UiCardTitle>\n          <p class=\"text-muted-foreground text-xs\" aria-live=\"polite\">\n            {{ typing ? \"typing…\" : \"Online\" }}\n          </p>\n        </div>\n      </div>\n\n      <UiCardContent class=\"min-h-0 flex-1 overflow-hidden p-0\">\n        <UiMessageScrollerProvider>\n          <UiMessageScroller>\n            <UiMessageScrollerViewport>\n              <UiMessageScrollerContent class=\"gap-4 p-4\">\n                <UiMessageScrollerItem\n                  v-for=\"message in items\"\n                  :key=\"message.id\"\n                  :message-id=\"message.id\"\n                  :scroll-anchor=\"message.mine\"\n                >\n                  <UiMessage :align=\"message.mine ? 'end' : 'start'\">\n                    <UiMessageContent>\n                      <UiBubble :variant=\"message.mine ? 'default' : 'muted'\">\n                        <UiBubbleContent>{{ message.text }}</UiBubbleContent>\n                      </UiBubble>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n                <UiMessageScrollerItem v-if=\"typing\" message-id=\"typing\">\n                  <UiMessage>\n                    <UiMessageContent>\n                      <UiBubble variant=\"muted\">\n                        <UiBubbleContent\n                          class=\"flex items-center gap-1 py-3\"\n                          role=\"status\"\n                          aria-label=\"Sofia is typing\"\n                        >\n                          <span\n                            v-for=\"dot in 3\"\n                            :key=\"dot\"\n                            class=\"typing-dot bg-muted-foreground size-1.5 rounded-full\"\n                            :style=\"{ animationDelay: `${(dot - 1) * 150}ms` }\"\n                          />\n                        </UiBubbleContent>\n                      </UiBubble>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n              </UiMessageScrollerContent>\n            </UiMessageScrollerViewport>\n          </UiMessageScroller>\n        </UiMessageScrollerProvider>\n      </UiCardContent>\n\n      <UiCardFooter class=\"border-t py-3\">\n        <form class=\"flex w-full items-center gap-2\" @submit.prevent=\"send\">\n          <UiLabel for=\"thread6-input\" class=\"sr-only\">Message</UiLabel>\n          <UiInput\n            id=\"thread6-input\"\n            v-model=\"draft\"\n            placeholder=\"Write a message\"\n            autocomplete=\"off\"\n          />\n          <UiButton type=\"submit\" size=\"icon\" :disabled=\"!draft.trim()\" aria-label=\"Send message\">\n            <Icon name=\"lucide:arrow-up\" class=\"size-4\" />\n          </UiButton>\n        </form>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Message = { id: string; text: string; mine?: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      contact?: { name: string; avatar: string };\n      messages?: Message[];\n    }>(),\n    {\n      contact: () => ({ name: \"Sofia Alvarez\", avatar: \"https://i.pravatar.cc/80?img=32\" }),\n      messages: () => [\n        { id: \"t1\", text: \"Are you around for a quick call?\" },\n        { id: \"t2\", text: \"Give me five minutes.\", mine: true },\n      ],\n    }\n  );\n\n  const items = ref<Message[]>(props.messages.map((message) => ({ ...message })));\n  const draft = ref(\"\");\n  const typing = ref(false);\n\n  const replies = [\"Sure, no rush.\", \"Sounds good, talk soon!\", \"Great, I will send the invite.\"];\n  const timers: ReturnType<typeof setTimeout>[] = [];\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text) return;\n    items.value.push({ id: `t${items.value.length + 1}`, text, mine: true });\n    draft.value = \"\";\n    typing.value = true;\n    timers.push(\n      setTimeout(() => {\n        typing.value = false;\n        items.value.push({\n          id: `t${items.value.length + 1}`,\n          text: replies[items.value.length % replies.length]!,\n        });\n      }, 1600)\n    );\n  }\n\n  onBeforeUnmount(() => timers.forEach(clearTimeout));\n</script>\n\n<style scoped>\n  @keyframes typing-bounce {\n    0%,\n    60%,\n    100% {\n      transform: translateY(0);\n      opacity: 0.4;\n    }\n    30% {\n      transform: translateY(-4px);\n      opacity: 1;\n    }\n  }\n\n  .typing-dot {\n    animation: typing-bounce 1.1s infinite ease-in-out;\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    .typing-dot {\n      animation: none;\n      opacity: 0.6;\n    }\n  }\n</style>\n","category":"Thread","description":"Chat thread with a typing indicator. Features: Animated three dot typing bubble that respects reduced motion, a typing label for screen readers, simulated typing before each reply and a send button that is disabled while empty","path":"Chat/Thread/BlockThread6.vue","components":["avatar","bubble","button","card","container","input","label","message","message-scroller"]},{"name":"Thread 7","fileName":"BlockThread7.vue","file":"<template>\n  <!--\n    Channel thread with system messages\n    Features: Centered system events for joins, renames and pinned messages, date separators, a new messages divider with a jump link and regular chat bubbles in between\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto h-[36rem] w-full max-w-lg gap-0 py-0\">\n      <UiCardHeader class=\"border-b py-3\">\n        <UiCardTitle class=\"flex items-center gap-1 text-base\">\n          <Icon name=\"lucide:hash\" class=\"size-4\" />\n          {{ channel }}\n        </UiCardTitle>\n        <UiCardDescription>Company wide announcements and updates</UiCardDescription>\n      </UiCardHeader>\n\n      <UiCardContent class=\"min-h-0 flex-1 overflow-hidden p-0\">\n        <UiMessageScrollerProvider>\n          <UiMessageScroller>\n            <UiMessageScrollerViewport>\n              <UiMessageScrollerContent class=\"gap-4 p-4\">\n                <UiMessageScrollerItem\n                  v-for=\"entry in entries\"\n                  :key=\"entry.id\"\n                  :message-id=\"entry.id\"\n                >\n                  <div\n                    v-if=\"entry.type === 'date'\"\n                    class=\"text-muted-foreground flex items-center gap-3 text-xs\"\n                    role=\"separator\"\n                  >\n                    <span class=\"bg-border h-px flex-1\" />\n                    {{ entry.text }}\n                    <span class=\"bg-border h-px flex-1\" />\n                  </div>\n                  <div\n                    v-else-if=\"entry.type === 'new'\"\n                    class=\"flex items-center gap-3 text-xs font-medium text-red-600 dark:text-red-400\"\n                    role=\"separator\"\n                  >\n                    <span class=\"h-px flex-1 bg-current opacity-40\" />\n                    New messages\n                    <span class=\"h-px flex-1 bg-current opacity-40\" />\n                  </div>\n                  <p\n                    v-else-if=\"entry.type === 'system'\"\n                    class=\"text-muted-foreground flex items-center justify-center gap-2 text-center text-xs\"\n                  >\n                    <Icon :name=\"entry.icon!\" class=\"size-3.5 shrink-0\" />\n                    <span\n                      ><strong class=\"text-foreground font-medium\">{{ entry.who }}</strong>\n                      {{ entry.text }}</span\n                    >\n                  </p>\n                  <UiMessage v-else>\n                    <UiMessageAvatar>\n                      <UiAvatar :src=\"entry.avatar\" :fallback=\"entry.who![0]\" />\n                    </UiMessageAvatar>\n                    <UiMessageContent>\n                      <UiMessageHeader>\n                        {{ entry.who }}\n                        <span class=\"text-muted-foreground ml-1 text-xs font-normal\">{{\n                          entry.time\n                        }}</span>\n                      </UiMessageHeader>\n                      <UiBubble variant=\"muted\">\n                        <UiBubbleContent>{{ entry.text }}</UiBubbleContent>\n                      </UiBubble>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n              </UiMessageScrollerContent>\n            </UiMessageScrollerViewport>\n            <UiMessageScrollerButton />\n          </UiMessageScroller>\n        </UiMessageScrollerProvider>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Entry = {\n    id: string;\n    type: \"date\" | \"new\" | \"system\" | \"message\";\n    text?: string;\n    who?: string;\n    avatar?: string;\n    time?: string;\n    icon?: string;\n  };\n\n  withDefaults(\n    defineProps<{\n      channel?: string;\n      entries?: Entry[];\n    }>(),\n    {\n      channel: \"announcements\",\n      entries: () => [\n        { id: \"e1\", type: \"date\", text: \"Yesterday\" },\n        {\n          id: \"e2\",\n          type: \"system\",\n          icon: \"lucide:user-plus\",\n          who: \"Aisha\",\n          text: \"joined the channel\",\n        },\n        {\n          id: \"e3\",\n          type: \"message\",\n          who: \"Maya\",\n          avatar: \"https://i.pravatar.cc/80?img=45\",\n          time: \"4:12 PM\",\n          text: \"Welcome Aisha! Glad to have you on the marketing team.\",\n        },\n        {\n          id: \"e4\",\n          type: \"system\",\n          icon: \"lucide:pencil\",\n          who: \"Maya\",\n          text: \"renamed the channel from #general-news to #announcements\",\n        },\n        { id: \"e5\", type: \"date\", text: \"Today\" },\n        { id: \"e6\", type: \"system\", icon: \"lucide:pin\", who: \"Liam\", text: \"pinned a message\" },\n        { id: \"e7\", type: \"new\" },\n        {\n          id: \"e8\",\n          type: \"message\",\n          who: \"Sofia\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          time: \"9:30 AM\",\n          text: \"Reminder: all hands meeting at 2 PM today. Agenda is in the pinned message.\",\n        },\n        {\n          id: \"e9\",\n          type: \"system\",\n          icon: \"lucide:calendar-plus\",\n          who: \"Noah\",\n          text: \"scheduled an event for 2:00 PM\",\n        },\n      ],\n    }\n  );\n</script>\n","category":"Thread","description":"Channel thread with system messages. Features: Centered system events for joins, renames and pinned messages, date separators, a new messages divider with a jump link and regular chat bubbles in between","path":"Chat/Thread/BlockThread7.vue","components":["avatar","bubble","card","container","message","message-scroller"]},{"name":"Thread 8","fileName":"BlockThread8.vue","file":"<template>\n  <!--\n    Customer support conversation\n    Features: Ticket header with status badge and assignee, customer and agent bubbles with an agent label, internal note style, quick reply buttons, resolve and reopen actions and a closed state that hides the composer\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto h-[44rem] w-full max-w-xl gap-0 py-0\">\n      <UiCardHeader class=\"border-b py-3\">\n        <div class=\"flex items-center gap-3\">\n          <UiAvatar :src=\"customer.avatar\" :fallback=\"customer.name[0]\" class=\"size-10\" />\n          <div class=\"min-w-0 flex-1\">\n            <UiCardTitle class=\"truncate text-base\">{{ customer.name }}</UiCardTitle>\n            <p class=\"text-muted-foreground truncate text-xs\">\n              {{ ticket }} · Assigned to {{ agent }}\n            </p>\n          </div>\n          <UiBadge variant=\"soft\" :color=\"resolved ? 'green' : 'amber'\" shape=\"pill\">\n            {{ resolved ? \"Resolved\" : \"Open\" }}\n          </UiBadge>\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"resolved = !resolved\">\n            {{ resolved ? \"Reopen\" : \"Resolve\" }}\n          </UiButton>\n        </div>\n      </UiCardHeader>\n\n      <UiCardContent class=\"min-h-0 flex-1 overflow-hidden p-0\">\n        <UiMessageScrollerProvider>\n          <UiMessageScroller>\n            <UiMessageScrollerViewport>\n              <UiMessageScrollerContent class=\"gap-4 p-4\">\n                <UiMessageScrollerItem\n                  v-for=\"message in items\"\n                  :key=\"message.id\"\n                  :message-id=\"message.id\"\n                  :scroll-anchor=\"message.from === 'agent'\"\n                >\n                  <UiMessage :align=\"message.from === 'customer' ? 'start' : 'end'\">\n                    <UiMessageContent>\n                      <UiMessageHeader v-if=\"message.from !== 'customer'\">\n                        {{ message.from === \"note\" ? \"Internal note\" : agent }}\n                        <UiBadge v-if=\"message.from === 'agent'\" variant=\"secondary\" class=\"ml-1\"\n                          >Agent</UiBadge\n                        >\n                      </UiMessageHeader>\n                      <UiBubble\n                        :variant=\"\n                          message.from === 'agent'\n                            ? 'default'\n                            : message.from === 'note'\n                              ? 'outline'\n                              : 'muted'\n                        \"\n                        :align=\"message.from === 'customer' ? 'start' : 'end'\"\n                      >\n                        <UiBubbleContent\n                          :class=\"\n                            message.from === 'note'\n                              ? 'border-dashed bg-amber-50 dark:bg-amber-500/10'\n                              : ''\n                          \"\n                        >\n                          {{ message.text }}\n                        </UiBubbleContent>\n                      </UiBubble>\n                      <UiMessageFooter>{{ message.time }}</UiMessageFooter>\n                    </UiMessageContent>\n                  </UiMessage>\n                </UiMessageScrollerItem>\n              </UiMessageScrollerContent>\n            </UiMessageScrollerViewport>\n            <UiMessageScrollerButton />\n          </UiMessageScroller>\n        </UiMessageScrollerProvider>\n      </UiCardContent>\n\n      <UiCardFooter v-if=\"!resolved\" class=\"flex-col items-stretch gap-2 border-t py-3\">\n        <div class=\"flex flex-wrap gap-2\">\n          <UiButton\n            v-for=\"reply in quickReplies\"\n            :key=\"reply\"\n            variant=\"outline\"\n            size=\"sm\"\n            @click=\"draft = reply\"\n          >\n            {{ reply }}\n          </UiButton>\n        </div>\n        <form class=\"flex items-center gap-2\" @submit.prevent=\"send\">\n          <UiLabel for=\"thread8-input\" class=\"sr-only\">Reply to customer</UiLabel>\n          <UiInput\n            id=\"thread8-input\"\n            v-model=\"draft\"\n            placeholder=\"Reply to the customer\"\n            autocomplete=\"off\"\n          />\n          <UiButton type=\"submit\" :disabled=\"!draft.trim()\">Send</UiButton>\n        </form>\n      </UiCardFooter>\n      <UiCardFooter\n        v-else\n        class=\"text-muted-foreground justify-center border-t py-4 text-sm\"\n        role=\"status\"\n      >\n        This conversation is resolved. Reopen it to reply.\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Message = { id: string; from: \"customer\" | \"agent\" | \"note\"; text: string; time: string };\n\n  const props = withDefaults(\n    defineProps<{\n      customer?: { name: string; avatar: string };\n      ticket?: string;\n      agent?: string;\n      messages?: Message[];\n    }>(),\n    {\n      customer: () => ({ name: \"Hannah Lee\", avatar: \"https://i.pravatar.cc/80?img=47\" }),\n      ticket: \"#4821\",\n      agent: \"Liam\",\n      messages: () => [\n        {\n          id: \"s1\",\n          from: \"customer\",\n          text: \"Hi, I was charged twice for my subscription this month.\",\n          time: \"10:12 AM\",\n        },\n        {\n          id: \"s2\",\n          from: \"agent\",\n          text: \"I am sorry about that, Hannah. Let me check your billing history.\",\n          time: \"10:14 AM\",\n        },\n        {\n          id: \"s3\",\n          from: \"note\",\n          text: \"Duplicate charge confirmed on Oct 3. Refund approved by finance.\",\n          time: \"10:16 AM\",\n        },\n        {\n          id: \"s4\",\n          from: \"agent\",\n          text: \"Found it. I have refunded the extra charge and it will show in 3 to 5 days.\",\n          time: \"10:18 AM\",\n        },\n      ],\n    }\n  );\n\n  const quickReplies = [\n    \"Thanks for reaching out!\",\n    \"Could you share a screenshot?\",\n    \"Is there anything else I can help with?\",\n  ];\n\n  const items = ref<Message[]>(props.messages.map((message) => ({ ...message })));\n  const draft = ref(\"\");\n  const resolved = ref(false);\n\n  function send() {\n    const text = draft.value.trim();\n    if (!text) return;\n    items.value.push({\n      id: `s${items.value.length + 1}`,\n      from: \"agent\",\n      text,\n      time: new Date().toLocaleTimeString(\"en-US\", { hour: \"numeric\", minute: \"2-digit\" }),\n    });\n    draft.value = \"\";\n  }\n</script>\n","category":"Thread","description":"Customer support conversation. Features: Ticket header with status badge and assignee, customer and agent bubbles with an agent label, internal note style, quick reply buttons, resolve and reopen actions and a closed state that hides the composer","path":"Chat/Thread/BlockThread8.vue","components":["avatar","badge","bubble","button","card","container","input","label","message","message-scroller"]},{"name":"Tiptap 1","fileName":"BlockTiptap1.vue","file":"<template>\n  <UiContainer class=\"py-12\">\n    <div class=\"mx-auto max-w-3xl space-y-4\">\n      <div class=\"space-y-2 text-center\">\n        <h2 class=\"text-2xl font-bold tracking-tight\">Rich Text Editor</h2>\n        <p class=\"text-muted-foreground text-sm\">\n          A simple Tiptap editor with grouped icon buttons and tooltips\n        </p>\n      </div>\n\n      <div v-if=\"editor\" class=\"bg-card rounded-lg border\">\n        <!-- Toolbar -->\n        <div class=\"bg-muted/30 flex flex-wrap items-center gap-2 border-b p-2\">\n          <!-- Text Formatting Group -->\n          <div class=\"flex items-center gap-0.5\">\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('bold')\"\n                  @click=\"editor.chain().focus().toggleBold().run()\"\n                >\n                  <Icon name=\"lucide:bold\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Bold</UiTooltipContent>\n            </UiTooltip>\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('italic')\"\n                  @click=\"editor.chain().focus().toggleItalic().run()\"\n                >\n                  <Icon name=\"lucide:italic\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Italic</UiTooltipContent>\n            </UiTooltip>\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('strike')\"\n                  @click=\"editor.chain().focus().toggleStrike().run()\"\n                >\n                  <Icon name=\"lucide:strikethrough\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Strike</UiTooltipContent>\n            </UiTooltip>\n          </div>\n\n          <UiSeparator orientation=\"vertical\" class=\"h-6\" />\n\n          <!-- Heading Group -->\n          <div class=\"flex items-center gap-0.5\">\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('heading', { level: 1 })\"\n                  @click=\"editor.chain().focus().toggleHeading({ level: 1 }).run()\"\n                >\n                  <Icon name=\"lucide:heading-1\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Heading 1</UiTooltipContent>\n            </UiTooltip>\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('heading', { level: 2 })\"\n                  @click=\"editor.chain().focus().toggleHeading({ level: 2 }).run()\"\n                >\n                  <Icon name=\"lucide:heading-2\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Heading 2</UiTooltipContent>\n            </UiTooltip>\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('heading', { level: 3 })\"\n                  @click=\"editor.chain().focus().toggleHeading({ level: 3 }).run()\"\n                >\n                  <Icon name=\"lucide:heading-3\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Heading 3</UiTooltipContent>\n            </UiTooltip>\n          </div>\n\n          <UiSeparator orientation=\"vertical\" class=\"h-6\" />\n\n          <!-- List Group -->\n          <div class=\"flex items-center gap-0.5\">\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('bulletList')\"\n                  @click=\"editor.chain().focus().toggleBulletList().run()\"\n                >\n                  <Icon name=\"lucide:list\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Bullet List</UiTooltipContent>\n            </UiTooltip>\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('orderedList')\"\n                  @click=\"editor.chain().focus().toggleOrderedList().run()\"\n                >\n                  <Icon name=\"lucide:list-ordered\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Ordered List</UiTooltipContent>\n            </UiTooltip>\n          </div>\n\n          <UiSeparator orientation=\"vertical\" class=\"h-6\" />\n\n          <!-- Block Group -->\n          <div class=\"flex items-center gap-0.5\">\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('codeBlock')\"\n                  @click=\"editor.chain().focus().toggleCodeBlock().run()\"\n                >\n                  <Icon name=\"lucide:code\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Code Block</UiTooltipContent>\n            </UiTooltip>\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiToggle\n                  size=\"sm\"\n                  :pressed=\"editor.isActive('blockquote')\"\n                  @click=\"editor.chain().focus().toggleBlockquote().run()\"\n                >\n                  <Icon name=\"lucide:quote\" class=\"size-4\" />\n                </UiToggle>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Blockquote</UiTooltipContent>\n            </UiTooltip>\n          </div>\n\n          <UiSeparator orientation=\"vertical\" class=\"h-6\" />\n\n          <!-- Actions Group -->\n          <div class=\"flex items-center gap-0.5\">\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiButton\n                  size=\"icon-sm\"\n                  variant=\"ghost\"\n                  :disabled=\"!editor.can().undo()\"\n                  @click=\"editor.chain().focus().undo().run()\"\n                >\n                  <Icon name=\"lucide:undo\" class=\"size-4\" />\n                </UiButton>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Undo</UiTooltipContent>\n            </UiTooltip>\n            <UiTooltip>\n              <UiTooltipTrigger as-child>\n                <UiButton\n                  size=\"icon-sm\"\n                  variant=\"ghost\"\n                  :disabled=\"!editor.can().redo()\"\n                  @click=\"editor.chain().focus().redo().run()\"\n                >\n                  <Icon name=\"lucide:redo\" class=\"size-4\" />\n                </UiButton>\n              </UiTooltipTrigger>\n              <UiTooltipContent>Redo</UiTooltipContent>\n            </UiTooltip>\n          </div>\n        </div>\n\n        <!-- Editor Content -->\n        <EditorContent :editor=\"editor\" class=\"prose prose-sm max-w-none p-4\" />\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import StarterKit from \"@tiptap/starter-kit\";\n  import { EditorContent, useEditor } from \"@tiptap/vue-3\";\n\n  const editor = useEditor({\n    extensions: [StarterKit],\n    content: `\n      <h2>Welcome to Tiptap</h2>\n      <p>This is a custom editor instance with <strong>grouped icon buttons</strong> and <em>tooltips</em>. Try editing this content!</p>\n      <h3>Features:</h3>\n      <ul>\n        <li>Text formatting (bold, italic, strike)</li>\n        <li>Multiple heading levels</li>\n        <li>Bullet and ordered lists</li>\n        <li>Code blocks and blockquotes</li>\n      </ul>\n      <blockquote>\n        <p>This is a blockquote. Great for highlighting important information.</p>\n      </blockquote>\n      <pre><code>// This is a code block\nconsole.log('Hello, Tiptap!');</code></pre>\n    `,\n    editorProps: {\n      attributes: {\n        class:\n          \"min-h-[300px] focus:outline-none prose-headings:font-bold prose-h1:text-3xl prose-h2:text-2xl prose-h3:text-xl prose-p:my-3 prose-ul:my-3 prose-li:my-1\",\n      },\n    },\n  });\n\n  onBeforeUnmount(() => {\n    editor.value?.destroy();\n  });\n</script>\n\n<style scoped>\n  :deep(.ProseMirror) {\n    outline: none;\n  }\n\n  :deep(.ProseMirror pre) {\n    background: hsl(var(--muted));\n    border-radius: 0.5rem;\n    color: hsl(var(--foreground));\n    font-family: \"JetBrainsMono\", monospace;\n    padding: 0.75rem 1rem;\n  }\n\n  :deep(.ProseMirror code) {\n    background: hsl(var(--muted));\n    border-radius: 0.25rem;\n    color: hsl(var(--foreground));\n    font-size: 0.9rem;\n    padding: 0.25em 0.4em;\n  }\n\n  :deep(.ProseMirror pre code) {\n    background: none;\n    color: inherit;\n    font-size: inherit;\n    padding: 0;\n  }\n\n  :deep(.ProseMirror blockquote) {\n    border-left: 3px solid hsl(var(--border));\n    padding-left: 1rem;\n    color: hsl(var(--muted-foreground));\n  }\n</style>\n","category":"Tiptap","description":null,"path":"Tiptap/BlockTiptap1.vue","components":["button","container","separator","toggle","tooltip"]},{"name":"Tiptap 2","fileName":"BlockTiptap2.vue","file":"<template>\n  <!--\n    Minimal Tiptap editor\n    Features: A bare editor with a short bar of bold, italic and link buttons, a placeholder when it is empty, a character counter that warns near the limit, a post button that is disabled when the text is empty or too long and a reset after posting\n  -->\n  <UiContainer class=\"py-12\">\n    <div class=\"mx-auto max-w-xl space-y-3\">\n      <div class=\"space-y-1\">\n        <h2 class=\"text-xl font-bold tracking-tight\">What is on your mind?</h2>\n        <p class=\"text-muted-foreground text-sm\">\n          A small editor for short posts and status updates.\n        </p>\n      </div>\n\n      <div\n        v-if=\"editor\"\n        class=\"bg-card focus-within:ring-ring/40 rounded-xl border focus-within:ring-[3px]\"\n      >\n        <div class=\"relative\">\n          <EditorContent :editor=\"editor\" class=\"px-4 pt-3\" />\n          <p\n            v-if=\"empty\"\n            class=\"text-muted-foreground pointer-events-none absolute top-3 left-4 text-sm\"\n            aria-hidden=\"true\"\n          >\n            {{ placeholder }}\n          </p>\n        </div>\n        <div class=\"flex items-center gap-1 px-2 pb-2\">\n          <UiToggle\n            size=\"sm\"\n            aria-label=\"Bold\"\n            :model-value=\"editor.isActive('bold')\"\n            @click=\"editor.chain().focus().toggleBold().run()\"\n            ><Icon name=\"lucide:bold\" class=\"size-4\"\n          /></UiToggle>\n          <UiToggle\n            size=\"sm\"\n            aria-label=\"Italic\"\n            :model-value=\"editor.isActive('italic')\"\n            @click=\"editor.chain().focus().toggleItalic().run()\"\n            ><Icon name=\"lucide:italic\" class=\"size-4\"\n          /></UiToggle>\n          <UiToggle\n            size=\"sm\"\n            aria-label=\"Link\"\n            :model-value=\"editor.isActive('link')\"\n            @click=\"toggleLink\"\n            ><Icon name=\"lucide:link\" class=\"size-4\"\n          /></UiToggle>\n          <span\n            class=\"ml-auto pr-2 text-xs tabular-nums\"\n            :class=\"\n              over\n                ? 'text-destructive font-medium'\n                : remaining <= 20\n                  ? 'text-amber-600'\n                  : 'text-muted-foreground'\n            \"\n            aria-live=\"polite\"\n            >{{ remaining }}</span\n          >\n          <UiButton size=\"sm\" :disabled=\"empty || over\" @click=\"post\">Post</UiButton>\n        </div>\n      </div>\n\n      <ul v-if=\"posts.length\" class=\"space-y-2 pt-2\" aria-label=\"Posted updates\">\n        <li\n          v-for=\"item in posts\"\n          :key=\"item.id\"\n          class=\"bg-muted/40 rounded-lg border px-4 py-3 text-sm\"\n        >\n          <!-- The HTML comes from the editor. Sanitize it on the server before you store or show it. -->\n          <div class=\"prose prose-sm dark:prose-invert max-w-none\" v-html=\"item.html\" />\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import StarterKit from \"@tiptap/starter-kit\";\n  import { EditorContent, useEditor } from \"@tiptap/vue-3\";\n\n  const props = withDefaults(\n    defineProps<{\n      limit?: number;\n      placeholder?: string;\n    }>(),\n    {\n      limit: 280,\n      placeholder: \"Share a quick update...\",\n    }\n  );\n\n  const length = ref(0);\n  const empty = ref(true);\n  const posts = ref<{ id: number; html: string }[]>([]);\n\n  const editor = useEditor({\n    extensions: [\n      StarterKit.configure({\n        heading: false,\n        codeBlock: false,\n        blockquote: false,\n        bulletList: false,\n        orderedList: false,\n        listItem: false,\n        horizontalRule: false,\n      }),\n    ],\n    content: \"\",\n    editorProps: {\n      attributes: {\n        class: \"min-h-20 focus:outline-none prose prose-sm dark:prose-invert max-w-none\",\n        \"aria-label\": \"Post content\",\n        role: \"textbox\",\n        \"aria-multiline\": \"true\",\n      },\n    },\n    onUpdate: ({ editor }) => {\n      length.value = editor.getText().length;\n      empty.value = editor.isEmpty;\n    },\n  });\n\n  const remaining = computed(() => props.limit - length.value);\n  const over = computed(() => remaining.value < 0);\n\n  function toggleLink() {\n    if (!editor.value) return;\n    if (editor.value.isActive(\"link\")) {\n      editor.value.chain().focus().unsetLink().run();\n      return;\n    }\n    const href = window.prompt(\"Link address\", \"https://\");\n    if (href) editor.value.chain().focus().setLink({ href }).run();\n  }\n\n  function post() {\n    if (!editor.value || empty.value || over.value) return;\n    posts.value.unshift({ id: posts.value.length + 1, html: editor.value.getHTML() });\n    editor.value.commands.clearContent(true);\n    editor.value.commands.unsetAllMarks();\n    length.value = 0;\n    empty.value = true;\n    useSonner.success(\"Posted\");\n  }\n\n  onBeforeUnmount(() => editor.value?.destroy());\n</script>\n","category":"Tiptap","description":"Minimal Tiptap editor. Features: A bare editor with a short bar of bold, italic and link buttons, a placeholder when it is empty, a character counter that warns near the limit, a post button that is disabled when the text is empty or too long and a reset after posting","path":"Tiptap/BlockTiptap2.vue","components":["button","container","toggle"]},{"name":"Tiptap 3","fileName":"BlockTiptap3.vue","file":"<template>\n  <!--\n    Tiptap editor with a bubble menu\n    Features: A clean writing surface with no toolbar, a floating menu that appears when you select text with bold, italic, underline, heading and link buttons, a link field inside the menu, keyboard shortcuts and a hint that explains how to use it\n  -->\n  <UiContainer class=\"py-12\">\n    <div class=\"mx-auto max-w-3xl space-y-4\">\n      <div class=\"space-y-2 text-center\">\n        <h2 class=\"text-2xl font-bold tracking-tight\">Select text to format it</h2>\n        <p class=\"text-muted-foreground text-sm\">\n          Highlight a word and a menu appears next to it. You can also use\n          <kbd class=\"bg-muted rounded border px-1.5 text-xs\">Ctrl</kbd> +\n          <kbd class=\"bg-muted rounded border px-1.5 text-xs\">B</kbd> and\n          <kbd class=\"bg-muted rounded border px-1.5 text-xs\">Ctrl</kbd> +\n          <kbd class=\"bg-muted rounded border px-1.5 text-xs\">I</kbd>.\n        </p>\n      </div>\n\n      <div v-if=\"editor\" class=\"bg-card rounded-xl border p-6\">\n        <BubbleMenu\n          :editor=\"editor\"\n          :options=\"{ placement: 'top' }\"\n          class=\"bg-popover text-popover-foreground z-50 flex items-center gap-0.5 rounded-lg border p-1 shadow-md\"\n          role=\"toolbar\"\n          aria-label=\"Text formatting\"\n        >\n          <template v-if=\"!linking\">\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Bold\"\n              :model-value=\"editor.isActive('bold')\"\n              @click=\"editor.chain().focus().toggleBold().run()\"\n              ><Icon name=\"lucide:bold\" class=\"size-4\"\n            /></UiToggle>\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Italic\"\n              :model-value=\"editor.isActive('italic')\"\n              @click=\"editor.chain().focus().toggleItalic().run()\"\n              ><Icon name=\"lucide:italic\" class=\"size-4\"\n            /></UiToggle>\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Underline\"\n              :model-value=\"editor.isActive('underline')\"\n              @click=\"editor.chain().focus().toggleUnderline().run()\"\n              ><Icon name=\"lucide:underline\" class=\"size-4\"\n            /></UiToggle>\n            <UiSeparator orientation=\"vertical\" class=\"mx-0.5 h-5\" />\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Heading\"\n              :model-value=\"editor.isActive('heading', { level: 2 })\"\n              @click=\"editor.chain().focus().toggleHeading({ level: 2 }).run()\"\n              ><Icon name=\"lucide:heading-2\" class=\"size-4\"\n            /></UiToggle>\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Quote\"\n              :model-value=\"editor.isActive('blockquote')\"\n              @click=\"editor.chain().focus().toggleBlockquote().run()\"\n              ><Icon name=\"lucide:quote\" class=\"size-4\"\n            /></UiToggle>\n            <UiSeparator orientation=\"vertical\" class=\"mx-0.5 h-5\" />\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Link\"\n              :model-value=\"editor.isActive('link')\"\n              @click=\"startLink\"\n              ><Icon name=\"lucide:link\" class=\"size-4\"\n            /></UiToggle>\n          </template>\n          <form v-else class=\"flex items-center gap-1 p-0.5\" @submit.prevent=\"applyLink\">\n            <UiInput\n              v-model=\"href\"\n              class=\"h-7 w-48 text-sm\"\n              placeholder=\"https://example.com\"\n              aria-label=\"Link address\"\n              @keydown.esc.stop=\"linking = false\"\n            />\n            <UiButton type=\"submit\" size=\"sm\" class=\"h-7\">Apply</UiButton>\n            <UiButton\n              type=\"button\"\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              class=\"size-7\"\n              aria-label=\"Remove link\"\n              @click=\"removeLink\"\n              ><Icon name=\"lucide:unlink\" class=\"size-4\"\n            /></UiButton>\n          </form>\n        </BubbleMenu>\n        <EditorContent :editor=\"editor\" />\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import StarterKit from \"@tiptap/starter-kit\";\n  import { EditorContent, useEditor } from \"@tiptap/vue-3\";\n  import { BubbleMenu } from \"@tiptap/vue-3/menus\";\n\n  const linking = ref(false);\n  const href = ref(\"\");\n\n  const editor = useEditor({\n    extensions: [StarterKit.configure({ link: { openOnClick: false } })],\n    content: `\n      <h2>A quieter editor</h2>\n      <p>Most of the time you only want to write. Select any of these words to bold them, turn the line into a heading or add a link.</p>\n      <p>The menu stays out of the way until you need it, which keeps the page calm and the text in front.</p>\n    `,\n    editorProps: {\n      attributes: {\n        class:\n          \"min-h-[240px] focus:outline-none prose prose-sm dark:prose-invert max-w-none prose-headings:font-bold prose-blockquote:text-muted-foreground\",\n        role: \"textbox\",\n        \"aria-multiline\": \"true\",\n        \"aria-label\": \"Document\",\n      },\n    },\n    onSelectionUpdate: () => {\n      linking.value = false;\n    },\n  });\n\n  function startLink() {\n    href.value = editor.value?.getAttributes(\"link\").href ?? \"\";\n    linking.value = true;\n  }\n\n  function applyLink() {\n    const value = href.value.trim();\n    if (!value) return removeLink();\n    editor.value\n      ?.chain()\n      .focus()\n      .extendMarkRange(\"link\")\n      .setLink({ href: /^https?:\\/\\//.test(value) ? value : `https://${value}` })\n      .run();\n    linking.value = false;\n  }\n\n  function removeLink() {\n    editor.value?.chain().focus().extendMarkRange(\"link\").unsetLink().run();\n    linking.value = false;\n  }\n\n  onBeforeUnmount(() => editor.value?.destroy());\n</script>\n","category":"Tiptap","description":"Tiptap editor with a bubble menu. Features: A clean writing surface with no toolbar, a floating menu that appears when you select text with bold, italic, underline, heading and link buttons, a link field inside the menu, keyboard shortcuts and a hint that explains how to use it","path":"Tiptap/BlockTiptap3.vue","components":["button","container","input","separator","toggle"]},{"name":"Tiptap 4","fileName":"BlockTiptap4.vue","file":"<template>\n  <!--\n    Comment and notes editor\n    Features: A compact card with the author, an editor that grows with its content, a small toolbar for bold, italic, code, list and link, cancel and comment buttons that are disabled until you type, a thread of earlier comments and new comments that appear at the bottom\n  -->\n  <UiContainer class=\"py-12\">\n    <div class=\"mx-auto max-w-2xl space-y-6\">\n      <h2 class=\"text-xl font-bold tracking-tight\">\n        Comments\n        <span class=\"text-muted-foreground text-base font-normal\">({{ comments.length }})</span>\n      </h2>\n\n      <ul class=\"space-y-5\" aria-live=\"polite\">\n        <li v-for=\"comment in comments\" :key=\"comment.id\" class=\"flex gap-3\">\n          <UiAvatar\n            :src=\"`https://i.pravatar.cc/80?img=${comment.avatar}`\"\n            :fallback=\"comment.who.slice(0, 1)\"\n            class=\"size-9\"\n          />\n          <div class=\"bg-muted/40 min-w-0 flex-1 rounded-xl border px-4 py-3\">\n            <div class=\"flex items-baseline gap-2\">\n              <p class=\"text-sm font-medium\">{{ comment.who }}</p>\n              <p class=\"text-muted-foreground text-xs\">{{ comment.when }}</p>\n            </div>\n            <!-- The HTML comes from the editor. Sanitize it on the server before you store or show it. -->\n            <div class=\"prose prose-sm dark:prose-invert mt-1 max-w-none\" v-html=\"comment.html\" />\n          </div>\n        </li>\n      </ul>\n\n      <div class=\"flex gap-3\">\n        <UiAvatar src=\"https://i.pravatar.cc/80?img=32\" fallback=\"Y\" class=\"size-9\" />\n        <div\n          v-if=\"editor\"\n          class=\"bg-card focus-within:ring-ring/40 min-w-0 flex-1 rounded-xl border focus-within:ring-[3px]\"\n        >\n          <div class=\"relative\">\n            <EditorContent :editor=\"editor\" class=\"px-4 pt-3\" />\n            <p\n              v-if=\"empty\"\n              class=\"text-muted-foreground pointer-events-none absolute top-3 left-4 text-sm\"\n              aria-hidden=\"true\"\n            >\n              Write a comment...\n            </p>\n          </div>\n          <div class=\"flex flex-wrap items-center gap-1 border-t px-2 py-1.5\">\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Bold\"\n              :model-value=\"editor.isActive('bold')\"\n              @click=\"editor.chain().focus().toggleBold().run()\"\n              ><Icon name=\"lucide:bold\" class=\"size-4\"\n            /></UiToggle>\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Italic\"\n              :model-value=\"editor.isActive('italic')\"\n              @click=\"editor.chain().focus().toggleItalic().run()\"\n              ><Icon name=\"lucide:italic\" class=\"size-4\"\n            /></UiToggle>\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Code\"\n              :model-value=\"editor.isActive('code')\"\n              @click=\"editor.chain().focus().toggleCode().run()\"\n              ><Icon name=\"lucide:code\" class=\"size-4\"\n            /></UiToggle>\n            <UiToggle\n              size=\"sm\"\n              aria-label=\"Bullet list\"\n              :model-value=\"editor.isActive('bulletList')\"\n              @click=\"editor.chain().focus().toggleBulletList().run()\"\n              ><Icon name=\"lucide:list\" class=\"size-4\"\n            /></UiToggle>\n            <div class=\"ml-auto flex gap-2\">\n              <UiButton variant=\"ghost\" size=\"sm\" :disabled=\"empty\" @click=\"clear\">Cancel</UiButton>\n              <UiButton size=\"sm\" :disabled=\"empty\" @click=\"submit\">Comment</UiButton>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import StarterKit from \"@tiptap/starter-kit\";\n  import { EditorContent, useEditor } from \"@tiptap/vue-3\";\n\n  type Comment = { id: number; who: string; avatar: number; when: string; html: string };\n\n  const props = withDefaults(\n    defineProps<{\n      initial?: Comment[];\n    }>(),\n    {\n      initial: () => [\n        {\n          id: 1,\n          who: \"Maya Patel\",\n          avatar: 32,\n          when: \"2 hours ago\",\n          html: \"<p>I pushed the new <strong>hero layout</strong> to staging. Can someone check it on a phone?</p>\",\n        },\n        {\n          id: 2,\n          who: \"Leo Fischer\",\n          avatar: 12,\n          when: \"1 hour ago\",\n          html: '<p>Looks good. Two small things:</p><ul><li>The button wraps at 320px</li><li>The image needs <code>loading=\"lazy\"</code></li></ul>',\n        },\n      ],\n    }\n  );\n\n  const comments = ref<Comment[]>(props.initial.map((comment) => ({ ...comment })));\n  const empty = ref(true);\n\n  const editor = useEditor({\n    extensions: [\n      StarterKit.configure({\n        heading: false,\n        codeBlock: false,\n        blockquote: false,\n        orderedList: false,\n        horizontalRule: false,\n      }),\n    ],\n    content: \"\",\n    editorProps: {\n      attributes: {\n        class:\n          \"min-h-16 max-h-60 overflow-y-auto focus:outline-none prose prose-sm dark:prose-invert max-w-none pb-2\",\n        role: \"textbox\",\n        \"aria-multiline\": \"true\",\n        \"aria-label\": \"Comment\",\n      },\n    },\n    onUpdate: ({ editor }) => {\n      empty.value = editor.isEmpty;\n    },\n  });\n\n  function clear() {\n    editor.value?.commands.clearContent(true);\n    editor.value?.commands.unsetAllMarks();\n    empty.value = true;\n  }\n\n  function submit() {\n    if (!editor.value || empty.value) return;\n    comments.value.push({\n      id: comments.value.length + 1,\n      who: \"You\",\n      avatar: 32,\n      when: \"Just now\",\n      html: editor.value.getHTML(),\n    });\n    clear();\n    useSonner.success(\"Comment added\");\n  }\n\n  onBeforeUnmount(() => editor.value?.destroy());\n</script>\n","category":"Tiptap","description":"Comment and notes editor. Features: A compact card with the author, an editor that grows with its content, a small toolbar for bold, italic, code, list and link, cancel and comment buttons that are disabled until you type, a thread of earlier comments and new comments that appear at the bottom","path":"Tiptap/BlockTiptap4.vue","components":["avatar","button","container","toggle"]},{"name":"Tiptap 5","fileName":"BlockTiptap5.vue","file":"<template>\n  <!--\n    Blog post editor\n    Features: A large title field, a toolbar with a block type select, bold, italic, underline, link, quote, code block, lists and undo and redo, an edit and preview switch, word count and reading time, a saved indicator that updates a moment after you stop typing and save draft and publish buttons\n  -->\n  <UiContainer class=\"py-12\">\n    <div class=\"mx-auto max-w-3xl space-y-4\">\n      <div class=\"flex flex-wrap items-center justify-between gap-3\">\n        <p class=\"text-muted-foreground flex items-center gap-1.5 text-sm\" aria-live=\"polite\">\n          <Icon\n            :name=\"saving ? 'lucide:loader-circle' : 'lucide:check'\"\n            class=\"size-4\"\n            :class=\"saving ? 'animate-spin motion-reduce:animate-none' : ''\"\n          />{{ status }}\n        </p>\n        <div class=\"flex gap-2\">\n          <UiButton variant=\"outline\" size=\"sm\" @click=\"useSonner.success('Draft saved')\"\n            >Save draft</UiButton\n          >\n          <UiButton size=\"sm\" :disabled=\"!title.trim() || words < 20\" @click=\"publish\"\n            >Publish</UiButton\n          >\n        </div>\n      </div>\n\n      <UiInput\n        v-model=\"title\"\n        aria-label=\"Post title\"\n        placeholder=\"Post title\"\n        class=\"h-auto border-0 px-0 text-3xl font-bold shadow-none focus-visible:ring-0 md:text-3xl\"\n      />\n\n      <UiTabs v-model=\"mode\">\n        <UiTabsList>\n          <UiTabsTrigger value=\"edit\">Edit</UiTabsTrigger>\n          <UiTabsTrigger value=\"preview\">Preview</UiTabsTrigger>\n        </UiTabsList>\n\n        <UiTabsContent value=\"edit\" force-mount :class=\"mode === 'edit' ? '' : 'hidden'\">\n          <div v-if=\"editor\" class=\"bg-card rounded-xl border\">\n            <div class=\"bg-muted/30 flex flex-wrap items-center gap-1 border-b p-2\">\n              <UiSelect\n                :model-value=\"block\"\n                @update:model-value=\"(value) => setBlock(String(value))\"\n              >\n                <UiSelectTrigger class=\"h-8 w-32\" aria-label=\"Block type\"\n                  ><UiSelectValue\n                /></UiSelectTrigger>\n                <UiSelectContent>\n                  <UiSelectItem value=\"paragraph\">Paragraph</UiSelectItem>\n                  <UiSelectItem value=\"h2\">Heading 2</UiSelectItem>\n                  <UiSelectItem value=\"h3\">Heading 3</UiSelectItem>\n                </UiSelectContent>\n              </UiSelect>\n              <UiSeparator orientation=\"vertical\" class=\"mx-1 h-5\" />\n              <UiToggle\n                size=\"sm\"\n                aria-label=\"Bold\"\n                :model-value=\"editor.isActive('bold')\"\n                @click=\"editor.chain().focus().toggleBold().run()\"\n                ><Icon name=\"lucide:bold\" class=\"size-4\"\n              /></UiToggle>\n              <UiToggle\n                size=\"sm\"\n                aria-label=\"Italic\"\n                :model-value=\"editor.isActive('italic')\"\n                @click=\"editor.chain().focus().toggleItalic().run()\"\n                ><Icon name=\"lucide:italic\" class=\"size-4\"\n              /></UiToggle>\n              <UiToggle\n                size=\"sm\"\n                aria-label=\"Underline\"\n                :model-value=\"editor.isActive('underline')\"\n                @click=\"editor.chain().focus().toggleUnderline().run()\"\n                ><Icon name=\"lucide:underline\" class=\"size-4\"\n              /></UiToggle>\n              <UiToggle\n                size=\"sm\"\n                aria-label=\"Link\"\n                :model-value=\"editor.isActive('link')\"\n                @click=\"toggleLink\"\n                ><Icon name=\"lucide:link\" class=\"size-4\"\n              /></UiToggle>\n              <UiSeparator orientation=\"vertical\" class=\"mx-1 h-5\" />\n              <UiToggle\n                size=\"sm\"\n                aria-label=\"Quote\"\n                :model-value=\"editor.isActive('blockquote')\"\n                @click=\"editor.chain().focus().toggleBlockquote().run()\"\n                ><Icon name=\"lucide:quote\" class=\"size-4\"\n              /></UiToggle>\n              <UiToggle\n                size=\"sm\"\n                aria-label=\"Code block\"\n                :model-value=\"editor.isActive('codeBlock')\"\n                @click=\"editor.chain().focus().toggleCodeBlock().run()\"\n                ><Icon name=\"lucide:code\" class=\"size-4\"\n              /></UiToggle>\n              <UiToggle\n                size=\"sm\"\n                aria-label=\"Bullet list\"\n                :model-value=\"editor.isActive('bulletList')\"\n                @click=\"editor.chain().focus().toggleBulletList().run()\"\n                ><Icon name=\"lucide:list\" class=\"size-4\"\n              /></UiToggle>\n              <UiToggle\n                size=\"sm\"\n                aria-label=\"Numbered list\"\n                :model-value=\"editor.isActive('orderedList')\"\n                @click=\"editor.chain().focus().toggleOrderedList().run()\"\n                ><Icon name=\"lucide:list-ordered\" class=\"size-4\"\n              /></UiToggle>\n              <div class=\"ml-auto flex\">\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  aria-label=\"Undo\"\n                  :disabled=\"!editor.can().undo()\"\n                  @click=\"editor.chain().focus().undo().run()\"\n                  ><Icon name=\"lucide:undo\" class=\"size-4\"\n                /></UiButton>\n                <UiButton\n                  variant=\"ghost\"\n                  size=\"icon-sm\"\n                  aria-label=\"Redo\"\n                  :disabled=\"!editor.can().redo()\"\n                  @click=\"editor.chain().focus().redo().run()\"\n                  ><Icon name=\"lucide:redo\" class=\"size-4\"\n                /></UiButton>\n              </div>\n            </div>\n            <EditorContent :editor=\"editor\" class=\"p-5\" />\n          </div>\n        </UiTabsContent>\n\n        <UiTabsContent value=\"preview\">\n          <article class=\"bg-card rounded-xl border p-6\">\n            <h1 class=\"text-3xl font-bold tracking-tight\">{{ title || \"Untitled post\" }}</h1>\n            <!-- The HTML comes from the editor. Sanitize it on the server before you store or show it. -->\n            <div class=\"prose dark:prose-invert mt-4 max-w-none\" v-html=\"html\" />\n          </article>\n        </UiTabsContent>\n      </UiTabs>\n\n      <p class=\"text-muted-foreground text-sm tabular-nums\">\n        {{ words }} {{ words === 1 ? \"word\" : \"words\" }} · {{ minutes }} min read\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import StarterKit from \"@tiptap/starter-kit\";\n  import { EditorContent, useEditor } from \"@tiptap/vue-3\";\n\n  const title = ref(\"Why we moved our docs to markdown\");\n  const mode = ref(\"edit\");\n  const words = ref(0);\n  const html = ref(\"\");\n  const block = ref(\"paragraph\");\n  const saving = ref(false);\n  const status = ref(\"All changes saved\");\n\n  const minutes = computed(() => Math.max(1, Math.ceil(words.value / 200)));\n\n  const markSaved = useDebounceFn(() => {\n    saving.value = false;\n    status.value = \"All changes saved\";\n  }, 800);\n\n  function touch() {\n    saving.value = true;\n    status.value = \"Saving...\";\n    markSaved();\n  }\n\n  const editor = useEditor({\n    extensions: [StarterKit.configure({ link: { openOnClick: false } })],\n    content: `\n      <h2>The problem</h2>\n      <p>Our docs lived in three tools. Nobody knew which one was right, and every change needed a designer to touch a layout that nobody wanted to touch.</p>\n      <h2>The change</h2>\n      <p>We moved everything to plain markdown files next to the code. Writers open a pull request, the preview builds in a minute and the docs ship with the product.</p>\n      <ul><li>One source of truth</li><li>Review like code</li><li>Search that actually works</li></ul>\n      <blockquote><p>The best docs are the ones that are easy to fix.</p></blockquote>\n    `,\n    editorProps: {\n      attributes: {\n        class:\n          \"min-h-[320px] focus:outline-none prose dark:prose-invert max-w-none prose-headings:font-bold prose-blockquote:text-muted-foreground prose-pre:bg-muted prose-pre:text-foreground\",\n        role: \"textbox\",\n        \"aria-multiline\": \"true\",\n        \"aria-label\": \"Post body\",\n      },\n    },\n    onCreate: ({ editor }) => sync(editor),\n    onUpdate: ({ editor }) => {\n      sync(editor);\n      touch();\n    },\n    onSelectionUpdate: ({ editor }) => {\n      block.value = editor.isActive(\"heading\", { level: 2 })\n        ? \"h2\"\n        : editor.isActive(\"heading\", { level: 3 })\n          ? \"h3\"\n          : \"paragraph\";\n    },\n  });\n\n  function sync(instance: NonNullable<typeof editor.value>) {\n    const text = instance.getText().trim();\n    words.value = text ? text.split(/\\s+/).length : 0;\n    html.value = instance.getHTML();\n  }\n\n  watch(title, touch);\n\n  function setBlock(value: string) {\n    const chain = editor.value?.chain().focus();\n    if (!chain) return;\n    if (value === \"paragraph\") chain.setParagraph().run();\n    else chain.setHeading({ level: value === \"h2\" ? 2 : 3 }).run();\n    block.value = value;\n  }\n\n  function toggleLink() {\n    if (!editor.value) return;\n    if (editor.value.isActive(\"link\")) {\n      editor.value.chain().focus().unsetLink().run();\n      return;\n    }\n    const href = window.prompt(\"Link address\", \"https://\");\n    if (href) editor.value.chain().focus().setLink({ href }).run();\n  }\n\n  function publish() {\n    useSonner.success(\"Post published\", { description: title.value });\n  }\n\n  onBeforeUnmount(() => editor.value?.destroy());\n</script>\n","category":"Tiptap","description":"Blog post editor. Features: A large title field, a toolbar with a block type select, bold, italic, underline, link, quote, code block, lists and undo and redo, an edit and preview switch, word count and reading time, a saved indicator that updates a moment after you stop typing and save draft and publish buttons","path":"Tiptap/BlockTiptap5.vue","components":["button","container","input","select","separator","tabs","toggle"]},{"name":"Uploads 1","fileName":"BlockUploads1.vue","file":"<template>\n  <!--\n    Dropzone with validation\n    Features: A drag and drop area built with the Dropfile component, a browse button that works with the keyboard, checks for file type, size and duplicates with a list of rejected files, a list of the chosen files with remove buttons and an upload action\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Upload documents</h1>\n      <p class=\"text-muted-foreground mt-1 text-sm\">PNG, JPG or PDF, up to {{ maxMb }} MB each.</p>\n\n      <UiDropfile\n        class=\"mt-6\"\n        title=\"Drag and drop files here\"\n        :subtext=\"`or use the button below. Up to ${maxMb} MB each.`\"\n        accept=\".png,.jpg,.jpeg,.pdf\"\n        @dropped=\"add\"\n      />\n      <div class=\"mt-3 flex items-center gap-3\">\n        <UiButton variant=\"outline\" @click=\"browse()\"\n          ><Icon name=\"lucide:folder-open\" class=\"size-4\" />Browse files</UiButton\n        >\n        <span class=\"text-muted-foreground text-sm\"\n          >{{ chosen.length }} {{ chosen.length === 1 ? \"file\" : \"files\" }} chosen</span\n        >\n      </div>\n\n      <UiAlert\n        v-if=\"rejected.length\"\n        role=\"alert\"\n        class=\"mt-4\"\n        icon=\"lucide:triangle-alert\"\n        title=\"Some files were skipped\"\n        :description=\"rejected.join(' ')\"\n      />\n\n      <ul v-if=\"chosen.length\" class=\"mt-4 divide-y rounded-xl border\" aria-live=\"polite\">\n        <li v-for=\"item in chosen\" :key=\"item.id\" class=\"flex items-center gap-3 px-4 py-3\">\n          <Icon\n            :name=\"item.file.type === 'application/pdf' ? 'lucide:file-text' : 'lucide:image'\"\n            class=\"text-muted-foreground size-5 shrink-0\"\n          />\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate text-sm font-medium\">{{ item.file.name }}</p>\n            <p class=\"text-muted-foreground text-xs\">{{ size(item.file.size) }}</p>\n          </div>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            :aria-label=\"`Remove ${item.file.name}`\"\n            @click=\"remove(item.id)\"\n            ><Icon name=\"lucide:x\" class=\"size-4\"\n          /></UiButton>\n        </li>\n      </ul>\n\n      <div class=\"mt-6 flex justify-end gap-2\">\n        <UiButton variant=\"ghost\" :disabled=\"!chosen.length\" @click=\"chosen = []\">Clear</UiButton>\n        <UiButton :disabled=\"!chosen.length\" @click=\"upload\"\n          >Upload {{ chosen.length || \"\" }}</UiButton\n        >\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      maxMb?: number;\n      types?: string[];\n    }>(),\n    {\n      maxMb: 5,\n      types: () => [\"image/png\", \"image/jpeg\", \"application/pdf\"],\n    }\n  );\n\n  const chosen = ref<{ id: string; file: File }[]>([]);\n  const rejected = ref<string[]>([]);\n\n  const {\n    open: browse,\n    onChange,\n    reset,\n  } = useFileDialog({\n    accept: \".png,.jpg,.jpeg,.pdf\",\n    multiple: true,\n  });\n  onChange((files) => {\n    if (files?.length) {\n      add(Array.from(files));\n      reset();\n    }\n  });\n\n  const size = (bytes: number) =>\n    bytes >= 1e6 ? `${(bytes / 1e6).toFixed(1)} MB` : `${Math.max(1, Math.round(bytes / 1e3))} KB`;\n\n  function add(files: File[]) {\n    const problems: string[] = [];\n    for (const file of files) {\n      if (!props.types.includes(file.type)) problems.push(`${file.name} is not a PNG, JPG or PDF.`);\n      else if (file.size > props.maxMb * 1024 * 1024)\n        problems.push(`${file.name} is larger than ${props.maxMb} MB.`);\n      else if (\n        chosen.value.some((item) => item.file.name === file.name && item.file.size === file.size)\n      )\n        problems.push(`${file.name} was already added.`);\n      else chosen.value.push({ id: `${file.name}-${file.size}-${chosen.value.length}`, file });\n    }\n    rejected.value = problems;\n  }\n\n  function remove(id: string) {\n    chosen.value = chosen.value.filter((item) => item.id !== id);\n  }\n\n  function upload() {\n    const count = chosen.value.length;\n    chosen.value = [];\n    rejected.value = [];\n    useSonner.success(`Uploaded ${count} ${count === 1 ? \"file\" : \"files\"}`);\n  }\n</script>\n","category":"Uploads","description":"Dropzone with validation. Features: A drag and drop area built with the Dropfile component, a browse button that works with the keyboard, checks for file type, size and duplicates with a list of rejected files, a list of the chosen files with remove buttons and an upload action","path":"Files/Uploads/BlockUploads1.vue","components":["alert","button","container","dropfile"]},{"name":"Uploads 2","fileName":"BlockUploads2.vue","file":"<template>\n  <!--\n    Multi file upload progress\n    Features: A queue of files with a progress bar for each one, speed and time left, pause and resume, cancel for one file or all, an overall progress bar and a done state with a clear finished button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-xl gap-0 py-0\">\n      <div class=\"flex items-center justify-between gap-3 border-b px-5 py-4\">\n        <div>\n          <h1 class=\"font-semibold\">\n            Uploading {{ files.length }} {{ files.length === 1 ? \"file\" : \"files\" }}\n          </h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n            {{ doneCount }} of {{ files.length }} complete\n          </p>\n        </div>\n        <UiButton variant=\"outline\" size=\"sm\" :disabled=\"!active\" @click=\"cancelAll\"\n          >Cancel all</UiButton\n        >\n      </div>\n      <UiProgress :model-value=\"overall\" class=\"h-1 rounded-none\" aria-label=\"Overall progress\" />\n\n      <ul class=\"divide-y\">\n        <li v-for=\"file in files\" :key=\"file.id\" class=\"px-5 py-4\">\n          <div class=\"flex items-center gap-3\">\n            <Icon :name=\"file.icon\" class=\"text-muted-foreground size-5 shrink-0\" />\n            <div class=\"min-w-0 flex-1\">\n              <p class=\"truncate text-sm font-medium\">{{ file.name }}</p>\n              <p class=\"text-muted-foreground text-xs\" aria-live=\"off\">{{ statusText(file) }}</p>\n            </div>\n            <Icon\n              v-if=\"file.status === 'done'\"\n              name=\"lucide:circle-check\"\n              class=\"size-5 text-green-500\"\n              aria-label=\"Done\"\n            />\n            <template v-else-if=\"file.status !== 'cancelled'\">\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                :aria-label=\"`${file.status === 'paused' ? 'Resume' : 'Pause'} ${file.name}`\"\n                @click=\"file.status = file.status === 'paused' ? 'uploading' : 'paused'\"\n                ><Icon\n                  :name=\"file.status === 'paused' ? 'lucide:play' : 'lucide:pause'\"\n                  class=\"size-4\"\n              /></UiButton>\n              <UiButton\n                variant=\"ghost\"\n                size=\"icon-sm\"\n                :aria-label=\"`Cancel ${file.name}`\"\n                @click=\"file.status = 'cancelled'\"\n                ><Icon name=\"lucide:x\" class=\"size-4\"\n              /></UiButton>\n            </template>\n          </div>\n          <UiProgress\n            v-if=\"file.status !== 'cancelled'\"\n            :model-value=\"file.progress\"\n            class=\"mt-3 h-1.5\"\n            :aria-label=\"`${file.name} progress`\"\n          />\n        </li>\n      </ul>\n\n      <div v-if=\"!active\" class=\"flex items-center justify-between gap-3 border-t px-5 py-3\">\n        <p class=\"text-muted-foreground text-sm\">\n          {{ doneCount }} uploaded, {{ cancelledCount }} cancelled\n        </p>\n        <UiButton size=\"sm\" variant=\"outline\" @click=\"restart\">Upload again</UiButton>\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"uploading\" | \"paused\" | \"done\" | \"cancelled\";\n  type Upload = {\n    id: string;\n    name: string;\n    icon: string;\n    mb: number;\n    /** Percent added per second. */\n    rate: number;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      uploads?: Upload[];\n      /** Speed up the simulation. */\n      speed?: number;\n    }>(),\n    {\n      speed: 1,\n      uploads: () => [\n        { id: \"u1\", name: \"Product demo.mp4\", icon: \"lucide:file-video\", mb: 84, rate: 12 },\n        { id: \"u2\", name: \"Brand guidelines.pdf\", icon: \"lucide:file-text\", mb: 6.2, rate: 26 },\n        { id: \"u3\", name: \"Team photo.jpg\", icon: \"lucide:image\", mb: 3.4, rate: 34 },\n        { id: \"u4\", name: \"Customer list.csv\", icon: \"lucide:file-spreadsheet\", mb: 0.8, rate: 55 },\n      ],\n    }\n  );\n\n  type Row = Upload & { progress: number; status: Status };\n  const fresh = () =>\n    props.uploads.map<Row>((upload, index) => ({\n      ...upload,\n      progress: index === 3 ? 100 : 0,\n      status: index === 3 ? \"done\" : \"uploading\",\n    }));\n  const files = ref<Row[]>(fresh());\n\n  const doneCount = computed(() => files.value.filter((file) => file.status === \"done\").length);\n  const cancelledCount = computed(\n    () => files.value.filter((file) => file.status === \"cancelled\").length\n  );\n  const active = computed(() =>\n    files.value.some((file) => file.status === \"uploading\" || file.status === \"paused\")\n  );\n  const overall = computed(() => {\n    const live = files.value.filter((file) => file.status !== \"cancelled\");\n    return live.length ? live.reduce((sum, file) => sum + file.progress, 0) / live.length : 0;\n  });\n\n  useIntervalFn(() => {\n    for (const file of files.value) {\n      if (file.status !== \"uploading\") continue;\n      file.progress = Math.min(100, file.progress + (file.rate * props.speed) / 5);\n      if (file.progress >= 100) file.status = \"done\";\n    }\n  }, 200);\n\n  function statusText(file: Row) {\n    if (file.status === \"done\") return `${file.mb} MB · Uploaded`;\n    if (file.status === \"cancelled\") return \"Cancelled\";\n    if (file.status === \"paused\") return `${Math.round(file.progress)}% · Paused`;\n    const left = Math.ceil((100 - file.progress) / (file.rate * props.speed));\n    return `${Math.round(file.progress)}% of ${file.mb} MB · ${left}s left`;\n  }\n\n  function cancelAll() {\n    files.value.forEach((file) => {\n      if (file.status === \"uploading\" || file.status === \"paused\") file.status = \"cancelled\";\n    });\n  }\n\n  function restart() {\n    files.value = fresh();\n  }\n</script>\n","category":"Uploads","description":"Multi file upload progress. Features: A queue of files with a progress bar for each one, speed and time left, pause and resume, cancel for one file or all, an overall progress bar and a done state with a clear finished button","path":"Files/Uploads/BlockUploads2.vue","components":["button","card","container","progress"]},{"name":"Uploads 3","fileName":"BlockUploads3.vue","file":"<template>\n  <!--\n    Avatar upload\n    Features: A round preview of the current photo, a change photo button that opens the file picker, instant preview of the chosen image, checks for type and size, remove photo and a save button, with initials as a fallback\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-md\">\n      <UiCardHeader>\n        <UiCardTitle>Profile photo</UiCardTitle>\n        <UiCardDescription>This is shown on your profile and in comments.</UiCardDescription>\n      </UiCardHeader>\n      <UiCardContent>\n        <div class=\"flex items-center gap-5\">\n          <UiAvatar :src=\"preview || undefined\" :fallback=\"initials\" class=\"size-24 text-2xl\" />\n          <div class=\"space-y-2\">\n            <div class=\"flex flex-wrap gap-2\">\n              <UiButton variant=\"outline\" size=\"sm\" @click=\"browse()\"\n                ><Icon name=\"lucide:camera\" class=\"size-4\" />{{\n                  preview ? \"Change photo\" : \"Upload photo\"\n                }}</UiButton\n              >\n              <UiButton\n                v-if=\"preview\"\n                variant=\"ghost\"\n                size=\"sm\"\n                class=\"text-destructive\"\n                @click=\"clear\"\n                >Remove</UiButton\n              >\n            </div>\n            <p class=\"text-muted-foreground text-xs\">JPG or PNG, up to {{ maxMb }} MB.</p>\n          </div>\n        </div>\n        <p v-if=\"error\" class=\"text-destructive mt-3 text-sm\" role=\"alert\">{{ error }}</p>\n        <p v-else-if=\"name\" class=\"text-muted-foreground mt-3 text-sm\" aria-live=\"polite\">\n          Selected: {{ name }}\n        </p>\n      </UiCardContent>\n      <UiCardFooter class=\"justify-end gap-2 border-t\">\n        <UiButton variant=\"outline\" :disabled=\"!dirty\" @click=\"reset\">Cancel</UiButton>\n        <UiButton :disabled=\"!dirty || !!error\" @click=\"save\">Save photo</UiButton>\n      </UiCardFooter>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      /** The photo the user has now. */\n      current?: string;\n      userName?: string;\n      maxMb?: number;\n    }>(),\n    {\n      current: \"https://i.pravatar.cc/200?img=32\",\n      userName: \"Maya Patel\",\n      maxMb: 2,\n    }\n  );\n\n  const saved = ref(props.current);\n  const preview = ref(props.current);\n  const name = ref(\"\");\n  const error = ref(\"\");\n  const objectUrl = ref(\"\");\n  let savedUrl = \"\";\n\n  const initials = computed(() =>\n    props.userName\n      .split(\" \")\n      .map((part) => part[0])\n      .join(\"\")\n      .slice(0, 2)\n  );\n  const dirty = computed(() => preview.value !== saved.value);\n\n  const {\n    open: browse,\n    onChange,\n    reset: resetDialog,\n  } = useFileDialog({ accept: \"image/png,image/jpeg\", multiple: false });\n  onChange((files) => {\n    const file = files?.[0];\n    if (!file) return;\n    resetDialog();\n    name.value = file.name;\n    if (![\"image/png\", \"image/jpeg\"].includes(file.type)) {\n      error.value = \"Choose a JPG or PNG image.\";\n      return;\n    }\n    if (file.size > props.maxMb * 1024 * 1024) {\n      error.value = `The image must be smaller than ${props.maxMb} MB.`;\n      return;\n    }\n    error.value = \"\";\n    revoke();\n    objectUrl.value = URL.createObjectURL(file);\n    preview.value = objectUrl.value;\n  });\n\n  function revoke() {\n    if (objectUrl.value) URL.revokeObjectURL(objectUrl.value);\n    objectUrl.value = \"\";\n  }\n\n  onBeforeUnmount(() => {\n    revoke();\n    if (savedUrl) URL.revokeObjectURL(savedUrl);\n  });\n\n  function clear() {\n    revoke();\n    preview.value = \"\";\n    name.value = \"\";\n    error.value = \"\";\n  }\n\n  function reset() {\n    revoke();\n    preview.value = saved.value;\n    name.value = \"\";\n    error.value = \"\";\n  }\n\n  function save() {\n    // The saved photo now owns the object URL, so it is revoked on unmount.\n    if (savedUrl && savedUrl !== objectUrl.value) URL.revokeObjectURL(savedUrl);\n    savedUrl = objectUrl.value;\n    objectUrl.value = \"\";\n    saved.value = preview.value;\n    name.value = \"\";\n    useSonner.success(\"Profile photo updated\");\n  }\n</script>\n","category":"Uploads","description":"Avatar upload. Features: A round preview of the current photo, a change photo button that opens the file picker, instant preview of the chosen image, checks for type and size, remove photo and a save button, with initials as a fallback","path":"Files/Uploads/BlockUploads3.vue","components":["avatar","button","card","container"]},{"name":"Uploads 4","fileName":"BlockUploads4.vue","file":"<template>\n  <!--\n    Image upload with preview grid\n    Features: A compact dropzone, a grid of thumbnails made from the chosen images, a cover badge on the first image with a set as cover action, remove buttons, a limit with a counter and checks for type and size\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\">Gallery</h1>\n          <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n            {{ images.length }} of {{ limit }} images\n          </p>\n        </div>\n        <UiButton :disabled=\"images.length >= limit\" @click=\"browse()\"\n          ><Icon name=\"lucide:image-plus\" class=\"size-4\" />Add images</UiButton\n        >\n      </div>\n\n      <UiDropfile\n        v-if=\"images.length < limit\"\n        class=\"mt-4\"\n        icon=\"lucide:images\"\n        title=\"Drop images here\"\n        subtext=\"JPG, PNG or WebP\"\n        accept=\"image/*\"\n        @dropped=\"add\"\n      />\n      <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\" role=\"alert\">{{ error }}</p>\n\n      <ul v-if=\"images.length\" class=\"mt-4 grid grid-cols-2 gap-3 sm:grid-cols-3\">\n        <li\n          v-for=\"(image, index) in images\"\n          :key=\"image.id\"\n          class=\"group relative overflow-hidden rounded-xl border\"\n        >\n          <img :src=\"image.url\" :alt=\"image.name\" class=\"aspect-square w-full object-cover\" />\n          <UiBadge v-if=\"index === 0\" class=\"absolute top-2 left-2\" variant=\"solid\" color=\"blue\"\n            >Cover</UiBadge\n          >\n          <div\n            class=\"absolute inset-x-0 bottom-0 flex items-center gap-1 bg-linear-to-t from-black/70 to-transparent p-2 text-white\"\n          >\n            <span class=\"min-w-0 flex-1 truncate text-xs\">{{ image.name }}</span>\n            <UiButton\n              v-if=\"index > 0\"\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              class=\"size-7 text-white hover:bg-white/20 hover:text-white\"\n              :aria-label=\"`Set ${image.name} as cover`\"\n              @click=\"makeCover(index)\"\n              ><Icon name=\"lucide:star\" class=\"size-4\"\n            /></UiButton>\n            <UiButton\n              variant=\"ghost\"\n              size=\"icon-sm\"\n              class=\"size-7 text-white hover:bg-white/20 hover:text-white\"\n              :aria-label=\"`Remove ${image.name}`\"\n              @click=\"remove(image.id)\"\n              ><Icon name=\"lucide:trash-2\" class=\"size-4\"\n            /></UiButton>\n          </div>\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Img = { id: string; name: string; url: string; owned: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      limit?: number;\n      maxMb?: number;\n      initial?: { name: string; url: string }[];\n    }>(),\n    {\n      limit: 8,\n      maxMb: 5,\n      initial: () => [\n        {\n          name: \"mountain-lake.jpg\",\n          url: \"https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=480&q=70\",\n        },\n        {\n          name: \"forest-trail.jpg\",\n          url: \"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=480&q=70\",\n        },\n        {\n          name: \"valley-view.jpg\",\n          url: \"https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=480&q=70\",\n        },\n      ],\n    }\n  );\n\n  const images = ref<Img[]>(\n    props.initial.map((item, index) => ({ id: `i${index}`, ...item, owned: false }))\n  );\n  const error = ref(\"\");\n  let counter = 0;\n\n  const { open: browse, onChange, reset } = useFileDialog({ accept: \"image/*\", multiple: true });\n  onChange((files) => {\n    if (files?.length) {\n      add(Array.from(files));\n      reset();\n    }\n  });\n\n  function add(files: File[]) {\n    const problems: string[] = [];\n    for (const file of files) {\n      if (images.value.length >= props.limit) {\n        problems.push(`Only ${props.limit} images fit. ${file.name} was skipped.`);\n        continue;\n      }\n      if (!file.type.startsWith(\"image/\")) {\n        problems.push(`${file.name} is not an image.`);\n        continue;\n      }\n      if (file.size > props.maxMb * 1024 * 1024) {\n        problems.push(`${file.name} is larger than ${props.maxMb} MB.`);\n        continue;\n      }\n      images.value.push({\n        id: `n${counter++}`,\n        name: file.name,\n        url: URL.createObjectURL(file),\n        owned: true,\n      });\n    }\n    error.value = problems.join(\" \");\n  }\n\n  function remove(id: string) {\n    const image = images.value.find((item) => item.id === id);\n    if (image?.owned) URL.revokeObjectURL(image.url);\n    images.value = images.value.filter((item) => item.id !== id);\n  }\n\n  function makeCover(index: number) {\n    const [image] = images.value.splice(index, 1);\n    if (image) images.value.unshift(image);\n  }\n\n  onBeforeUnmount(() =>\n    images.value.forEach((image) => image.owned && URL.revokeObjectURL(image.url))\n  );\n</script>\n","category":"Uploads","description":"Image upload with preview grid. Features: A compact dropzone, a grid of thumbnails made from the chosen images, a cover badge on the first image with a set as cover action, remove buttons, a limit with a counter and checks for type and size","path":"Files/Uploads/BlockUploads4.vue","components":["badge","button","container","dropfile"]},{"name":"Uploads 5","fileName":"BlockUploads5.vue","file":"<template>\n  <!--\n    Upload dialog\n    Features: A dialog with an upload tab and an import from link tab, a dropzone and a browse button, a progress bar while the file uploads, a link check, closing when the upload finishes and a list of uploaded files on the page\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex items-center justify-between gap-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Documents</h1>\n        <UiDialog v-model:open=\"open\">\n          <UiDialogTrigger as-child>\n            <UiButton><Icon name=\"lucide:upload\" class=\"size-4\" />Upload</UiButton>\n          </UiDialogTrigger>\n          <UiDialogContent class=\"sm:max-w-md\">\n            <UiDialogHeader>\n              <UiDialogTitle>Add a document</UiDialogTitle>\n              <UiDialogDescription>Upload a file or import it from a link.</UiDialogDescription>\n            </UiDialogHeader>\n            <UiTabs v-model=\"tab\">\n              <UiTabsList class=\"grid w-full grid-cols-2\">\n                <UiTabsTrigger value=\"file\">Upload</UiTabsTrigger>\n                <UiTabsTrigger value=\"link\">From link</UiTabsTrigger>\n              </UiTabsList>\n              <UiTabsContent value=\"file\" class=\"space-y-3\">\n                <template v-if=\"!current\">\n                  <UiDropfile\n                    title=\"Drag and drop a file\"\n                    subtext=\"PDF, DOCX or TXT\"\n                    accept=\".pdf,.docx,.txt\"\n                    :multiple=\"false\"\n                    @dropped=\"pick\"\n                  />\n                  <UiButton variant=\"outline\" class=\"w-full\" @click=\"browse()\"\n                    >Browse files</UiButton\n                  >\n                </template>\n                <div v-else class=\"rounded-xl border p-4\" aria-live=\"polite\">\n                  <div class=\"flex items-center gap-3\">\n                    <Icon name=\"lucide:file-text\" class=\"size-5 shrink-0\" />\n                    <p class=\"min-w-0 flex-1 truncate text-sm font-medium\">{{ current.name }}</p>\n                    <span class=\"text-muted-foreground text-xs tabular-nums\"\n                      >{{ Math.round(progress) }}%</span\n                    >\n                  </div>\n                  <UiProgress\n                    :model-value=\"progress\"\n                    class=\"mt-3 h-1.5\"\n                    aria-label=\"Upload progress\"\n                  />\n                </div>\n                <p v-if=\"fileError\" class=\"text-destructive text-sm\" role=\"alert\">\n                  {{ fileError }}\n                </p>\n              </UiTabsContent>\n              <UiTabsContent value=\"link\" class=\"space-y-3\">\n                <form class=\"space-y-3\" novalidate @submit.prevent=\"importLink\">\n                  <div class=\"space-y-2\">\n                    <UiLabel for=\"upload-link\">File link</UiLabel>\n                    <UiInput\n                      id=\"upload-link\"\n                      v-model=\"link\"\n                      type=\"url\"\n                      placeholder=\"https://example.com/report.pdf\"\n                      :aria-invalid=\"!!linkError\"\n                    />\n                    <p v-if=\"linkError\" class=\"text-destructive text-sm\">{{ linkError }}</p>\n                  </div>\n                  <UiButton type=\"submit\" class=\"w-full\">Import</UiButton>\n                </form>\n              </UiTabsContent>\n            </UiTabs>\n          </UiDialogContent>\n        </UiDialog>\n      </div>\n\n      <ul v-if=\"documents.length\" class=\"mt-6 divide-y rounded-xl border\" aria-live=\"polite\">\n        <li v-for=\"doc in documents\" :key=\"doc.id\" class=\"flex items-center gap-3 px-4 py-3\">\n          <Icon\n            :name=\"doc.from === 'link' ? 'lucide:link' : 'lucide:file-text'\"\n            class=\"text-muted-foreground size-5 shrink-0\"\n          />\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate text-sm font-medium\">{{ doc.name }}</p>\n            <p class=\"text-muted-foreground text-xs\">{{ doc.meta }}</p>\n          </div>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            :aria-label=\"`Remove ${doc.name}`\"\n            @click=\"documents = documents.filter((item) => item.id !== doc.id)\"\n            ><Icon name=\"lucide:trash-2\" class=\"size-4\"\n          /></UiButton>\n        </li>\n      </ul>\n      <p\n        v-else\n        class=\"text-muted-foreground mt-6 rounded-xl border border-dashed py-12 text-center text-sm\"\n      >\n        No documents yet.\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Doc = { id: string; name: string; meta: string; from: \"file\" | \"link\" };\n\n  const props = withDefaults(\n    defineProps<{\n      initial?: Doc[];\n      maxMb?: number;\n    }>(),\n    {\n      maxMb: 10,\n      initial: () => [\n        {\n          id: \"d0\",\n          name: \"Onboarding guide.pdf\",\n          meta: \"1.4 MB · Uploaded yesterday\",\n          from: \"file\",\n        },\n      ],\n    }\n  );\n\n  const open = ref(false);\n  const tab = ref(\"file\");\n  const documents = ref<Doc[]>(props.initial.map((doc) => ({ ...doc })));\n  const current = ref<File | null>(null);\n  const progress = ref(0);\n  const fileError = ref(\"\");\n  const link = ref(\"\");\n  const linkError = ref(\"\");\n  let counter = 0;\n\n  const {\n    open: browse,\n    onChange,\n    reset,\n  } = useFileDialog({ accept: \".pdf,.docx,.txt\", multiple: false });\n  onChange((files) => {\n    if (files?.[0]) {\n      pick([files[0]]);\n      reset();\n    }\n  });\n\n  const { pause, resume } = useIntervalFn(\n    () => {\n      progress.value = Math.min(100, progress.value + 20);\n      if (progress.value >= 100 && current.value) {\n        pause();\n        const file = current.value;\n        documents.value.unshift({\n          id: `u${counter++}`,\n          name: file.name,\n          meta: `${(file.size / 1e6).toFixed(1)} MB · Uploaded just now`,\n          from: \"file\",\n        });\n        useSonner.success(`${file.name} uploaded`);\n        setTimeout(() => (open.value = false), 300);\n      }\n    },\n    250,\n    { immediate: false }\n  );\n\n  watch(open, (value) => {\n    if (value) return;\n    pause();\n    current.value = null;\n    progress.value = 0;\n    fileError.value = \"\";\n    link.value = \"\";\n    linkError.value = \"\";\n    tab.value = \"file\";\n  });\n\n  function pick(files: File[]) {\n    const file = files[0];\n    if (!file) return;\n    const ext = file.name.split(\".\").pop()?.toLowerCase();\n    if (![\"pdf\", \"docx\", \"txt\"].includes(ext ?? \"\")) {\n      fileError.value = \"Choose a PDF, DOCX or TXT file.\";\n      return;\n    }\n    if (file.size > props.maxMb * 1024 * 1024) {\n      fileError.value = `The file must be smaller than ${props.maxMb} MB.`;\n      return;\n    }\n    fileError.value = \"\";\n    current.value = file;\n    progress.value = 0;\n    resume();\n  }\n\n  function importLink() {\n    let url: URL | null = null;\n    try {\n      url = new URL(link.value.trim());\n    } catch {\n      url = null;\n    }\n    if (!url || ![\"http:\", \"https:\"].includes(url.protocol)) {\n      linkError.value = \"Enter a link that starts with http or https.\";\n      return;\n    }\n    linkError.value = \"\";\n    documents.value.unshift({\n      id: `l${counter++}`,\n      name: url.pathname.split(\"/\").filter(Boolean).pop() || url.hostname,\n      meta: `Imported from ${url.hostname}`,\n      from: \"link\",\n    });\n    useSonner.success(\"Link imported\");\n    open.value = false;\n  }\n</script>\n","category":"Uploads","description":"Upload dialog. Features: A dialog with an upload tab and an import from link tab, a dropzone and a browse button, a progress bar while the file uploads, a link check, closing when the upload finishes and a list of uploaded files on the page","path":"Files/Uploads/BlockUploads5.vue","components":["button","container","dialog","dropfile","input","label","progress","tabs"]},{"name":"Uploads 6","fileName":"BlockUploads6.vue","file":"<template>\n  <!--\n    Failed uploads and retry\n    Features: A list of uploads with done, uploading and failed states, a clear reason for each failure, retry for network errors, replace file for files that are too large or have the wrong type, a retry all failed button and a summary alert\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl\">\n      <div class=\"flex items-center justify-between gap-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Uploads</h1>\n        <UiButton variant=\"outline\" size=\"sm\" :disabled=\"!retryable\" @click=\"retryAll\"\n          ><Icon name=\"lucide:rotate-cw\" class=\"size-4\" />Retry all failed</UiButton\n        >\n      </div>\n\n      <UiAlert\n        v-if=\"failed\"\n        role=\"status\"\n        class=\"mt-4\"\n        icon=\"lucide:triangle-alert\"\n        :title=\"`${failed} ${failed === 1 ? 'upload' : 'uploads'} failed`\"\n        description=\"Retry the ones that failed because of the network. Replace files that are too large or not supported.\"\n      />\n\n      <ul class=\"mt-4 divide-y rounded-xl border\" aria-live=\"polite\">\n        <li v-for=\"item in items\" :key=\"item.id\" class=\"flex items-center gap-3 px-4 py-3.5\">\n          <span\n            class=\"grid size-9 shrink-0 place-items-center rounded-lg\"\n            :class=\"tone[item.status]\"\n          >\n            <Icon\n              :name=\"icon[item.status]\"\n              class=\"size-4\"\n              :class=\"item.status === 'uploading' ? 'animate-spin motion-reduce:animate-none' : ''\"\n            />\n          </span>\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate text-sm font-medium\">{{ item.name }}</p>\n            <p\n              class=\"text-xs\"\n              :class=\"item.status === 'failed' ? 'text-destructive' : 'text-muted-foreground'\"\n            >\n              {{\n                item.status === \"failed\"\n                  ? reasons[item.reason!]\n                  : item.status === \"uploading\"\n                    ? \"Uploading\"\n                    : `${item.size} · Uploaded`\n              }}\n            </p>\n          </div>\n          <UiButton\n            v-if=\"item.status === 'failed' && item.reason === 'network'\"\n            variant=\"outline\"\n            size=\"sm\"\n            @click=\"retry(item)\"\n            >Retry</UiButton\n          >\n          <UiButton\n            v-else-if=\"item.status === 'failed'\"\n            variant=\"outline\"\n            size=\"sm\"\n            @click=\"replace(item)\"\n            >Replace file</UiButton\n          >\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            :aria-label=\"`Remove ${item.name}`\"\n            @click=\"remove(item.id)\"\n            ><Icon name=\"lucide:x\" class=\"size-4\"\n          /></UiButton>\n        </li>\n        <li v-if=\"!items.length\" class=\"text-muted-foreground px-4 py-10 text-center text-sm\">\n          No uploads.\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Status = \"done\" | \"uploading\" | \"failed\";\n  type Reason = \"network\" | \"size\" | \"type\";\n  type Item = { id: string; name: string; size: string; status: Status; reason?: Reason };\n\n  const props = withDefaults(\n    defineProps<{\n      uploads?: Item[];\n    }>(),\n    {\n      uploads: () => [\n        { id: \"r1\", name: \"Invoice 1042.pdf\", size: \"92 KB\", status: \"done\" },\n        { id: \"r2\", name: \"Site photos.zip\", size: \"480 MB\", status: \"failed\", reason: \"size\" },\n        {\n          id: \"r3\",\n          name: \"Contract draft.docx\",\n          size: \"240 KB\",\n          status: \"failed\",\n          reason: \"network\",\n        },\n        { id: \"r4\", name: \"Voice memo.m4a\", size: \"3.1 MB\", status: \"failed\", reason: \"type\" },\n        { id: \"r5\", name: \"Budget 2027.xlsx\", size: \"310 KB\", status: \"uploading\" },\n        { id: \"r6\", name: \"Team photo.jpg\", size: \"2.8 MB\", status: \"failed\", reason: \"network\" },\n      ],\n    }\n  );\n\n  const reasons: Record<Reason, string> = {\n    network: \"The connection dropped. Try again.\",\n    size: \"The file is larger than the 100 MB limit.\",\n    type: \"This file type is not supported.\",\n  };\n  const tone: Record<Status, string> = {\n    done: \"bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\",\n    uploading: \"bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300\",\n    failed: \"bg-red-100 text-red-700 dark:bg-red-500/20 dark:text-red-300\",\n  };\n  const icon: Record<Status, string> = {\n    done: \"lucide:check\",\n    uploading: \"lucide:loader-circle\",\n    failed: \"lucide:triangle-alert\",\n  };\n\n  const items = ref<Item[]>(props.uploads.map((item) => ({ ...item })));\n  const failed = computed(() => items.value.filter((item) => item.status === \"failed\").length);\n  const retryable = computed(() =>\n    items.value.some((item) => item.status === \"failed\" && item.reason === \"network\")\n  );\n\n  function retry(item: Item) {\n    item.status = \"uploading\";\n    item.reason = undefined;\n    setTimeout(() => (item.status = \"done\"), 1200);\n  }\n\n  function retryAll() {\n    items.value\n      .filter((item) => item.status === \"failed\" && item.reason === \"network\")\n      .forEach(retry);\n  }\n\n  function replace(item: Item) {\n    useSonner.info(`Choose a replacement for ${item.name}`);\n  }\n\n  function remove(id: string) {\n    items.value = items.value.filter((item) => item.id !== id);\n  }\n</script>\n","category":"Uploads","description":"Failed uploads and retry. Features: A list of uploads with done, uploading and failed states, a clear reason for each failure, retry for network errors, replace file for files that are too large or have the wrong type, a retry all failed button and a summary alert","path":"Files/Uploads/BlockUploads6.vue","components":["alert","button","container"]},{"name":"Waitlist 1","fileName":"BlockWaitlist1.vue","file":"<template>\n  <!--\n    Coming soon page\n    Features: Centered launch badge, headline, short feature list, email field with validation, success state with the submitted address\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-2xl text-center\">\n      <UiBadge variant=\"soft\" color=\"primary\" shape=\"pill\" class=\"gap-1.5\">\n        <span class=\"bg-primary size-1.5 rounded-full\" aria-hidden=\"true\" />{{ badge }}\n      </UiBadge>\n      <h1 class=\"mt-5 text-4xl font-bold tracking-tight lg:text-6xl\">{{ title }}</h1>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-xl text-lg\">{{ description }}</p>\n\n      <ul class=\"mt-8 flex flex-wrap justify-center gap-x-6 gap-y-2 text-sm\">\n        <li v-for=\"item in features\" :key=\"item\" class=\"flex items-center gap-2\">\n          <Icon name=\"lucide:circle-check\" class=\"text-primary size-4\" />{{ item }}\n        </li>\n      </ul>\n\n      <div v-if=\"joined\" class=\"mx-auto mt-10 max-w-md rounded-xl border p-6\" role=\"status\">\n        <span\n          class=\"mx-auto grid size-12 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n          ><Icon name=\"lucide:check\" class=\"size-6\"\n        /></span>\n        <p class=\"mt-3 text-lg font-semibold\">You are on the list</p>\n        <p class=\"text-muted-foreground mt-1 text-sm\">\n          We will email <span class=\"text-foreground font-medium\">{{ email.trim() }}</span> the\n          moment we open the doors.\n        </p>\n        <UiButton variant=\"ghost\" size=\"sm\" class=\"mt-3\" @click=\"reset\">Use another email</UiButton>\n      </div>\n\n      <form v-else class=\"mx-auto mt-10 max-w-md\" novalidate @submit.prevent=\"submit\">\n        <div class=\"flex flex-col gap-2 sm:flex-row\">\n          <UiLabel for=\"soon-email\" class=\"sr-only\">Email address</UiLabel>\n          <UiInput\n            id=\"soon-email\"\n            v-model=\"email\"\n            type=\"email\"\n            autocomplete=\"email\"\n            placeholder=\"you@example.com\"\n            class=\"h-10 flex-1\"\n            :aria-invalid=\"!!error\"\n            :aria-describedby=\"error ? 'soon-error' : undefined\"\n          />\n          <UiButton type=\"submit\" size=\"lg\">Notify me</UiButton>\n        </div>\n        <p v-if=\"error\" id=\"soon-error\" class=\"text-destructive mt-2 text-left text-sm\">\n          {{ error }}\n        </p>\n        <p v-else class=\"text-muted-foreground mt-3 text-xs\">\n          One email at launch. No spam, unsubscribe any time.\n        </p>\n      </form>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      badge?: string;\n      title?: string;\n      description?: string;\n      features?: string[];\n    }>(),\n    {\n      badge: \"Launching this winter\",\n      title: \"Something new is almost here\",\n      description:\n        \"Orbit is a calmer way to plan work across teams. We are putting the finishing touches on it.\",\n      features: () => [\"Shared planning boards\", \"Weekly digests\", \"Free for small teams\"],\n    }\n  );\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const joined = ref(false);\n\n  function submit() {\n    if (!/^\\S+@\\S+\\.\\S+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    joined.value = true;\n  }\n\n  function reset() {\n    email.value = \"\";\n    joined.value = false;\n  }\n</script>\n","category":"Waitlist","description":"Coming soon page. Features: Centered launch badge, headline, short feature list, email field with validation, success state with the submitted address","path":"Utility/Waitlist/BlockWaitlist1.vue","components":["badge","button","container","input","label"]},{"name":"Waitlist 2","fileName":"BlockWaitlist2.vue","file":"<template>\n  <!--\n    Launch countdown\n    Features: Live days, hours, minutes and seconds countdown to a launch date, launched state when it ends, email reminder form with confirmation\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl text-center\">\n      <p class=\"text-primary text-sm font-semibold tracking-wide uppercase\">{{ eyebrow }}</p>\n      <h1 class=\"mt-3 text-4xl font-bold tracking-tight lg:text-5xl\">{{ title }}</h1>\n\n      <div v-if=\"remaining > 0\" class=\"mt-10\" role=\"timer\" :aria-label=\"spoken\">\n        <div class=\"grid grid-cols-4 gap-2 sm:gap-4\" aria-hidden=\"true\">\n          <div v-for=\"unit in units\" :key=\"unit.label\" class=\"rounded-xl border p-3 sm:p-6\">\n            <p class=\"text-3xl font-bold tabular-nums sm:text-5xl\">\n              {{ String(unit.value).padStart(2, \"0\") }}\n            </p>\n            <p class=\"text-muted-foreground mt-1 text-xs tracking-wide uppercase sm:text-sm\">\n              {{ unit.label }}\n            </p>\n          </div>\n        </div>\n        <p class=\"text-muted-foreground mt-4 text-sm\">Opening {{ launchLabel }}</p>\n      </div>\n\n      <div v-else class=\"mt-10 rounded-xl border p-8\" role=\"status\">\n        <Icon name=\"lucide:party-popper\" class=\"text-primary mx-auto size-10\" />\n        <p class=\"mt-3 text-2xl font-semibold\">We are live</p>\n        <UiButton size=\"lg\" class=\"mt-4\">Open the app</UiButton>\n      </div>\n\n      <form v-if=\"remaining > 0\" class=\"mx-auto mt-10 max-w-md\" novalidate @submit.prevent=\"submit\">\n        <div v-if=\"done\" class=\"rounded-lg border p-4 text-sm\" role=\"status\">\n          <Icon name=\"lucide:bell-ring\" class=\"text-primary mr-1 inline size-4\" />\n          Reminder set. We will email {{ email.trim() }} when the countdown ends.\n        </div>\n        <template v-else>\n          <div class=\"flex flex-col gap-2 sm:flex-row\">\n            <UiLabel for=\"count-email\" class=\"sr-only\">Email address</UiLabel>\n            <UiInput\n              id=\"count-email\"\n              v-model=\"email\"\n              type=\"email\"\n              autocomplete=\"email\"\n              placeholder=\"you@example.com\"\n              class=\"h-10 flex-1\"\n              :aria-invalid=\"!!error\"\n            />\n            <UiButton type=\"submit\" size=\"lg\">Remind me</UiButton>\n          </div>\n          <p v-if=\"error\" class=\"text-destructive mt-2 text-left text-sm\">{{ error }}</p>\n        </template>\n      </form>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      eyebrow?: string;\n      title?: string;\n      launch?: string;\n      now?: string;\n    }>(),\n    {\n      eyebrow: \"Launch day\",\n      title: \"The doors open soon\",\n      launch: \"2026-11-12T16:00:00Z\",\n      now: \"2026-10-18T09:00:00Z\",\n    }\n  );\n\n  // Time is counted from the `now` prop so the demo is stable. Pass the current time in real use.\n  const started = Date.now();\n  const clock = useNow({ interval: 1000 });\n  const elapsed = computed(() => Math.floor((clock.value.getTime() - started) / 1000));\n\n  const remaining = computed(() =>\n    Math.max(\n      0,\n      Math.floor((Date.parse(props.launch) - Date.parse(props.now)) / 1000) - elapsed.value\n    )\n  );\n\n  const units = computed(() => [\n    { label: \"Days\", value: Math.floor(remaining.value / 86400) },\n    { label: \"Hours\", value: Math.floor((remaining.value % 86400) / 3600) },\n    { label: \"Minutes\", value: Math.floor((remaining.value % 3600) / 60) },\n    { label: \"Seconds\", value: remaining.value % 60 },\n  ]);\n\n  const spoken = computed(\n    () =>\n      `${units.value[0]!.value} days, ${units.value[1]!.value} hours and ${units.value[2]!.value} minutes left`\n  );\n\n  const launchLabel = computed(\n    () =>\n      new Intl.DateTimeFormat(\"en-US\", {\n        dateStyle: \"long\",\n        timeStyle: \"short\",\n        timeZone: \"UTC\",\n      }).format(new Date(props.launch)) + \" UTC\"\n  );\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const done = ref(false);\n\n  function submit() {\n    if (!/^\\S+@\\S+\\.\\S+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    done.value = true;\n  }\n</script>\n","category":"Waitlist","description":"Launch countdown. Features: Live days, hours, minutes and seconds countdown to a launch date, launched state when it ends, email reminder form with confirmation","path":"Utility/Waitlist/BlockWaitlist2.vue","components":["button","container","input","label"]},{"name":"Waitlist 3","fileName":"BlockWaitlist3.vue","file":"<template>\n  <!--\n    Early access email capture\n    Features: Split card with pitch, name and email fields, interest chips with multiple selection, role select, consent checkbox, validation and success state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto max-w-4xl gap-0 overflow-hidden py-0 md:grid md:grid-cols-2\">\n      <div class=\"bg-muted/50 flex flex-col justify-between gap-8 p-8\">\n        <div>\n          <UiBadge variant=\"soft\" color=\"primary\" shape=\"pill\">Early access</UiBadge>\n          <h2 class=\"mt-4 text-3xl font-bold tracking-tight\">{{ title }}</h2>\n          <p class=\"text-muted-foreground mt-3\">{{ description }}</p>\n        </div>\n        <ul class=\"space-y-3\">\n          <li v-for=\"perk in perks\" :key=\"perk.title\" class=\"flex gap-3\">\n            <Icon :name=\"perk.icon\" class=\"text-primary mt-0.5 size-5 shrink-0\" />\n            <span class=\"text-sm\"\n              ><span class=\"font-medium\">{{ perk.title }}</span\n              ><span class=\"text-muted-foreground\"> {{ perk.text }}</span></span\n            >\n          </li>\n        </ul>\n      </div>\n\n      <div class=\"p-8\">\n        <div v-if=\"done\" class=\"grid h-full place-content-center gap-3 text-center\" role=\"status\">\n          <span\n            class=\"mx-auto grid size-12 place-items-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300\"\n            ><Icon name=\"lucide:check\" class=\"size-6\"\n          /></span>\n          <p class=\"text-xl font-semibold\">Thanks, {{ firstName }}</p>\n          <p class=\"text-muted-foreground text-sm\">\n            We saved {{ chosen.size }} {{ chosen.size === 1 ? \"interest\" : \"interests\" }} and will\n            email {{ form.email.trim() }} when your invite is ready.\n          </p>\n          <UiButton variant=\"outline\" size=\"sm\" class=\"mx-auto\" @click=\"reset\">Start over</UiButton>\n        </div>\n\n        <form v-else class=\"grid gap-4\" novalidate @submit.prevent=\"submit\">\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"early-name\">Name</UiLabel>\n            <UiInput\n              id=\"early-name\"\n              v-model=\"form.name\"\n              autocomplete=\"name\"\n              placeholder=\"Jordan Lee\"\n              :aria-invalid=\"!!errors.name\"\n            />\n            <p v-if=\"errors.name\" class=\"text-destructive text-sm\">{{ errors.name }}</p>\n          </div>\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"early-email\">Work email</UiLabel>\n            <UiInput\n              id=\"early-email\"\n              v-model=\"form.email\"\n              type=\"email\"\n              autocomplete=\"email\"\n              placeholder=\"jordan@company.com\"\n              :aria-invalid=\"!!errors.email\"\n            />\n            <p v-if=\"errors.email\" class=\"text-destructive text-sm\">{{ errors.email }}</p>\n          </div>\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"early-role\">Your role</UiLabel>\n            <UiSelect v-model=\"form.role\">\n              <UiSelectTrigger id=\"early-role\" class=\"w-full\"><UiSelectValue /></UiSelectTrigger>\n              <UiSelectContent>\n                <UiSelectItem v-for=\"role in roles\" :key=\"role\" :value=\"role\">{{\n                  role\n                }}</UiSelectItem>\n              </UiSelectContent>\n            </UiSelect>\n          </div>\n          <fieldset class=\"grid gap-2\">\n            <legend class=\"text-sm leading-none font-medium\">What interests you?</legend>\n            <div class=\"mt-1 flex flex-wrap gap-2\">\n              <UiButton\n                v-for=\"item in interests\"\n                :key=\"item\"\n                type=\"button\"\n                size=\"xs\"\n                class=\"rounded-full\"\n                :variant=\"chosen.has(item) ? 'default' : 'outline'\"\n                :aria-pressed=\"chosen.has(item)\"\n                @click=\"toggle(item)\"\n              >\n                {{ item }}\n              </UiButton>\n            </div>\n          </fieldset>\n          <div class=\"grid gap-2\">\n            <div class=\"flex items-start gap-2\">\n              <UiCheckbox id=\"early-consent\" v-model=\"form.consent\" class=\"mt-0.5\" />\n              <UiLabel for=\"early-consent\" class=\"leading-snug font-normal\"\n                >Email me about the launch and occasional product news.</UiLabel\n              >\n            </div>\n            <p v-if=\"errors.consent\" class=\"text-destructive text-sm\">{{ errors.consent }}</p>\n          </div>\n          <UiButton type=\"submit\" size=\"lg\">Request early access</UiButton>\n        </form>\n      </div>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Perk = { icon: string; title: string; text: string };\n\n  withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      perks?: Perk[];\n      roles?: string[];\n      interests?: string[];\n    }>(),\n    {\n      title: \"Get in before everyone else\",\n      description: \"We are inviting small groups every week. Tell us a little about you.\",\n      perks: () => [\n        {\n          icon: \"lucide:key-round\",\n          title: \"Priority invite.\",\n          text: \"Skip ahead of the public list.\",\n        },\n        {\n          icon: \"lucide:badge-percent\",\n          title: \"Founding price.\",\n          text: \"Lock in 40% off for life.\",\n        },\n        {\n          icon: \"lucide:messages-square\",\n          title: \"Direct line.\",\n          text: \"Shape the roadmap with us.\",\n        },\n      ],\n      roles: () => [\"Founder\", \"Product manager\", \"Engineer\", \"Designer\", \"Other\"],\n      interests: () => [\"Planning\", \"Reporting\", \"Automation\", \"Integrations\", \"Mobile app\"],\n    }\n  );\n\n  const form = reactive({\n    name: \"\",\n    email: \"\",\n    role: \"Founder\",\n    consent: false as boolean | \"indeterminate\",\n  });\n  const errors = reactive({ name: \"\", email: \"\", consent: \"\" });\n  const chosen = ref(new Set<string>());\n  const done = ref(false);\n\n  const firstName = computed(() => form.name.trim().split(/\\s+/)[0] || \"friend\");\n\n  function toggle(item: string) {\n    const next = new Set(chosen.value);\n    if (next.has(item)) next.delete(item);\n    else next.add(item);\n    chosen.value = next;\n  }\n\n  function submit() {\n    errors.name = form.name.trim() ? \"\" : \"Enter your name.\";\n    errors.email = /^\\S+@\\S+\\.\\S+$/.test(form.email.trim()) ? \"\" : \"Enter a valid email address.\";\n    errors.consent = form.consent === true ? \"\" : \"Please accept to continue.\";\n    if (errors.name || errors.email || errors.consent) return;\n    done.value = true;\n  }\n\n  function reset() {\n    Object.assign(form, { name: \"\", email: \"\", role: \"Founder\", consent: false });\n    chosen.value = new Set();\n    done.value = false;\n  }\n</script>\n","category":"Waitlist","description":"Early access email capture. Features: Split card with pitch, name and email fields, interest chips with multiple selection, role select, consent checkbox, validation and success state","path":"Utility/Waitlist/BlockWaitlist3.vue","components":["badge","button","card","checkbox","container","input","label","select"]},{"name":"Waitlist 4","fileName":"BlockWaitlist4.vue","file":"<template>\n  <!--\n    Referral waitlist\n    Features: Join form, queue position after signing up, personal referral link with copy button, share actions, reward tiers that unlock as invites are counted\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-xl\">\n      <UiCardHeader class=\"text-center\">\n        <UiCardTitle class=\"text-2xl\">{{\n          joined ? \"You are in line\" : \"Join the waitlist\"\n        }}</UiCardTitle>\n        <UiCardDescription>\n          {{\n            joined\n              ? \"Invite friends to move up. Every signup through your link counts.\"\n              : `${total.toLocaleString(\"en-US\")} people are already waiting.`\n          }}\n        </UiCardDescription>\n      </UiCardHeader>\n\n      <UiCardContent>\n        <form v-if=\"!joined\" class=\"grid gap-3\" novalidate @submit.prevent=\"join\">\n          <UiLabel for=\"ref-email\" class=\"sr-only\">Email address</UiLabel>\n          <UiInput\n            id=\"ref-email\"\n            v-model=\"email\"\n            type=\"email\"\n            autocomplete=\"email\"\n            placeholder=\"you@example.com\"\n            class=\"h-10\"\n            :aria-invalid=\"!!error\"\n          />\n          <p v-if=\"error\" class=\"text-destructive text-sm\">{{ error }}</p>\n          <UiButton type=\"submit\" size=\"lg\">Get my spot</UiButton>\n        </form>\n\n        <div v-else class=\"grid gap-6\">\n          <div class=\"bg-muted/50 rounded-xl p-5 text-center\" role=\"status\">\n            <p class=\"text-muted-foreground text-sm\">Your position</p>\n            <p class=\"text-5xl font-bold tabular-nums\">#{{ position.toLocaleString(\"en-US\") }}</p>\n            <p class=\"text-muted-foreground mt-1 text-sm\">\n              {{ invites }} {{ invites === 1 ? \"friend\" : \"friends\" }} joined with your link\n            </p>\n          </div>\n\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"ref-link\">Your referral link</UiLabel>\n            <div class=\"flex gap-2\">\n              <UiInput id=\"ref-link\" :model-value=\"link\" readonly class=\"font-mono text-sm\" />\n              <UiButton variant=\"outline\" @click=\"copy(link)\">\n                <Icon :name=\"copied ? 'lucide:check' : 'lucide:copy'\" class=\"size-4\" />\n                {{ copied ? \"Copied\" : \"Copy\" }}\n              </UiButton>\n            </div>\n            <div class=\"flex flex-wrap gap-2\">\n              <UiButton variant=\"outline\" size=\"sm\" @click=\"shareVia('email')\"\n                ><Icon name=\"lucide:mail\" class=\"size-4\" />Email</UiButton\n              >\n              <UiButton variant=\"outline\" size=\"sm\" @click=\"shareVia('post')\"\n                ><Icon name=\"lucide:send\" class=\"size-4\" />Post</UiButton\n              >\n            </div>\n          </div>\n\n          <div>\n            <p class=\"text-sm font-medium\">Rewards</p>\n            <ul class=\"mt-3 grid gap-2\">\n              <li\n                v-for=\"tier in tiers\"\n                :key=\"tier.invites\"\n                class=\"flex items-center gap-3 rounded-lg border p-3\"\n                :class=\"invites >= tier.invites ? 'border-primary/50 bg-primary/5' : ''\"\n              >\n                <Icon\n                  :name=\"invites >= tier.invites ? 'lucide:circle-check' : 'lucide:lock'\"\n                  class=\"size-5 shrink-0\"\n                  :class=\"invites >= tier.invites ? 'text-primary' : 'text-muted-foreground'\"\n                />\n                <span class=\"min-w-0 flex-1 text-sm\">\n                  <span class=\"block font-medium\">{{ tier.reward }}</span>\n                  <span class=\"text-muted-foreground block text-xs\"\n                    >{{ tier.invites }} {{ tier.invites === 1 ? \"invite\" : \"invites\" }}</span\n                  >\n                </span>\n                <UiBadge v-if=\"invites >= tier.invites\" variant=\"soft\" color=\"primary\" size=\"sm\"\n                  >Unlocked</UiBadge\n                >\n              </li>\n            </ul>\n          </div>\n\n          <UiButton variant=\"outline\" size=\"sm\" class=\"justify-self-center\" @click=\"simulate\">\n            Simulate a friend joining\n          </UiButton>\n        </div>\n      </UiCardContent>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Tier = { invites: number; reward: string };\n\n  const props = withDefaults(\n    defineProps<{\n      total?: number;\n      baseUrl?: string;\n      tiers?: Tier[];\n    }>(),\n    {\n      total: 4280,\n      baseUrl: \"https://orbit.example.com/join\",\n      tiers: () => [\n        { invites: 1, reward: \"Skip 100 places\" },\n        { invites: 3, reward: \"Early access to the beta\" },\n        { invites: 5, reward: \"Lifetime 30% discount\" },\n      ],\n    }\n  );\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const joined = ref(false);\n  const invites = ref(0);\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  const code = computed(() => {\n    const local = email.value.trim().split(\"@\")[0] ?? \"\";\n    return (\n      local\n        .replace(/[^a-z0-9]/gi, \"\")\n        .toLowerCase()\n        .slice(0, 12) || \"friend\"\n    );\n  });\n  const link = computed(() => `${props.baseUrl}?ref=${code.value}`);\n  const position = computed(() => Math.max(1, props.total + 1 - invites.value * 100));\n\n  function join() {\n    if (!/^\\S+@\\S+\\.\\S+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    joined.value = true;\n  }\n\n  function simulate() {\n    invites.value += 1;\n  }\n\n  function shareVia(channel: \"email\" | \"post\") {\n    useSonner(channel === \"email\" ? \"Opening your email app\" : \"Opening the share dialog\", {\n      description: link.value,\n    });\n  }\n</script>\n","category":"Waitlist","description":"Referral waitlist. Features: Join form, queue position after signing up, personal referral link with copy button, share actions, reward tiers that unlock as invites are counted","path":"Utility/Waitlist/BlockWaitlist4.vue","components":["badge","button","card","container","input","label"]},{"name":"Waitlist 5","fileName":"BlockWaitlist5.vue","file":"<template>\n  <!--\n    Progress to launch\n    Features: Signup counter with progress bar towards a goal, milestones that unlock as the goal grows, join form that adds to the total, confirmation message\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto grid max-w-5xl gap-8 lg:grid-cols-2 lg:items-center\">\n      <div>\n        <h1 class=\"text-4xl font-bold tracking-tight lg:text-5xl\">{{ title }}</h1>\n        <p class=\"text-muted-foreground mt-4 text-lg\">{{ description }}</p>\n\n        <div class=\"mt-8\">\n          <div class=\"flex items-end justify-between gap-3\">\n            <p class=\"text-3xl font-bold tabular-nums\">\n              {{ count.toLocaleString(\"en-US\") }}\n              <span class=\"text-muted-foreground text-base font-normal\"\n                >of {{ goal.toLocaleString(\"en-US\") }} signups</span\n              >\n            </p>\n            <p class=\"text-sm font-medium tabular-nums\">{{ percent }}%</p>\n          </div>\n          <UiProgress :model-value=\"percent\" class=\"mt-3\" aria-label=\"Progress to launch goal\" />\n          <p class=\"text-muted-foreground mt-2 text-sm\" role=\"status\">\n            {{\n              remaining > 0\n                ? `${remaining.toLocaleString(\"en-US\")} more to open the doors`\n                : \"Goal reached. We are launching!\"\n            }}\n          </p>\n        </div>\n\n        <form v-if=\"!joined\" class=\"mt-6\" novalidate @submit.prevent=\"join\">\n          <div class=\"flex flex-col gap-2 sm:flex-row\">\n            <UiLabel for=\"goal-email\" class=\"sr-only\">Email address</UiLabel>\n            <UiInput\n              id=\"goal-email\"\n              v-model=\"email\"\n              type=\"email\"\n              autocomplete=\"email\"\n              placeholder=\"you@example.com\"\n              class=\"h-10 flex-1\"\n              :aria-invalid=\"!!error\"\n            />\n            <UiButton type=\"submit\" size=\"lg\">Count me in</UiButton>\n          </div>\n          <p v-if=\"error\" class=\"text-destructive mt-2 text-sm\">{{ error }}</p>\n        </form>\n        <p v-else class=\"mt-6 flex items-center gap-2 text-sm font-medium\" role=\"status\">\n          <Icon name=\"lucide:circle-check\" class=\"text-primary size-5\" />\n          You are number {{ count.toLocaleString(\"en-US\") }}. Thanks for helping us get there.\n        </p>\n      </div>\n\n      <UiCard>\n        <UiCardHeader>\n          <UiCardTitle>Unlocked at each milestone</UiCardTitle>\n          <UiCardDescription>Every signup moves the whole community closer.</UiCardDescription>\n        </UiCardHeader>\n        <UiCardContent>\n          <ol class=\"grid gap-3\">\n            <li\n              v-for=\"item in milestones\"\n              :key=\"item.at\"\n              class=\"flex items-start gap-3 rounded-lg border p-3\"\n              :class=\"count >= item.at ? 'border-primary/50 bg-primary/5' : ''\"\n            >\n              <Icon\n                :name=\"count >= item.at ? 'lucide:circle-check' : 'lucide:circle-dashed'\"\n                class=\"mt-0.5 size-5 shrink-0\"\n                :class=\"count >= item.at ? 'text-primary' : 'text-muted-foreground'\"\n              />\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"text-sm font-medium\">{{ item.title }}</p>\n                <p class=\"text-muted-foreground text-xs\">\n                  {{\n                    count >= item.at ? \"Unlocked\" : `At ${item.at.toLocaleString(\"en-US\")} signups`\n                  }}\n                </p>\n              </div>\n            </li>\n          </ol>\n        </UiCardContent>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Milestone = { at: number; title: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      signups?: number;\n      goal?: number;\n      milestones?: Milestone[];\n    }>(),\n    {\n      title: \"Help us reach launch\",\n      description:\n        \"We open the doors as soon as the waitlist hits its goal. Add your name to the count.\",\n      signups: 7420,\n      goal: 10000,\n      milestones: () => [\n        { at: 2500, title: \"Private beta opens to the first 500\" },\n        { at: 5000, title: \"Mobile apps join the beta\" },\n        { at: 7500, title: \"Integrations with Slack and Calendar\" },\n        { at: 10000, title: \"Public launch with a free plan\" },\n      ],\n    }\n  );\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const joined = ref(false);\n  const added = ref(0);\n\n  const count = computed(() => props.signups + added.value);\n  const percent = computed(() => Math.min(100, Math.round((count.value / props.goal) * 100)));\n  const remaining = computed(() => Math.max(0, props.goal - count.value));\n\n  function join() {\n    if (!/^\\S+@\\S+\\.\\S+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    added.value = 1;\n    joined.value = true;\n  }\n</script>\n","category":"Waitlist","description":"Progress to launch. Features: Signup counter with progress bar towards a goal, milestones that unlock as the goal grows, join form that adds to the total, confirmation message","path":"Utility/Waitlist/BlockWaitlist5.vue","components":["button","card","container","input","label","progress"]},{"name":"Waitlist 6","fileName":"BlockWaitlist6.vue","file":"<template>\n  <!--\n    Waitlist with social proof\n    Features: Overlapping avatar stack with signup count, join form, rotating testimonial with previous and next controls, trust points\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl text-center\">\n      <div class=\"flex flex-col items-center gap-3 sm:flex-row sm:justify-center\">\n        <div class=\"flex -space-x-2\" aria-hidden=\"true\">\n          <UiAvatar\n            v-for=\"person in people\"\n            :key=\"person.name\"\n            class=\"ring-background size-9 ring-2\"\n          >\n            <UiAvatarImage :src=\"person.avatar\" :alt=\"person.name\" />\n            <UiAvatarFallback>{{ person.name.slice(0, 1) }}</UiAvatarFallback>\n          </UiAvatar>\n        </div>\n        <p class=\"text-muted-foreground text-sm\">\n          Joined by\n          <span class=\"text-foreground font-semibold\">{{ count.toLocaleString(\"en-US\") }}</span>\n          people this month\n        </p>\n      </div>\n\n      <h1 class=\"mt-6 text-4xl font-bold tracking-tight lg:text-5xl\">{{ title }}</h1>\n      <p class=\"text-muted-foreground mx-auto mt-4 max-w-xl text-lg\">{{ description }}</p>\n\n      <form v-if=\"!joined\" class=\"mx-auto mt-8 max-w-md\" novalidate @submit.prevent=\"join\">\n        <div class=\"flex flex-col gap-2 sm:flex-row\">\n          <UiLabel for=\"proof-email\" class=\"sr-only\">Email address</UiLabel>\n          <UiInput\n            id=\"proof-email\"\n            v-model=\"email\"\n            type=\"email\"\n            autocomplete=\"email\"\n            placeholder=\"you@example.com\"\n            class=\"h-10 flex-1\"\n            :aria-invalid=\"!!error\"\n          />\n          <UiButton type=\"submit\" size=\"lg\">Join the waitlist</UiButton>\n        </div>\n        <p v-if=\"error\" class=\"text-destructive mt-2 text-left text-sm\">{{ error }}</p>\n      </form>\n      <p v-else class=\"mt-8 flex items-center justify-center gap-2 font-medium\" role=\"status\">\n        <Icon name=\"lucide:circle-check\" class=\"text-primary size-5\" />\n        You are on the list. Check your inbox.\n      </p>\n\n      <figure\n        class=\"bg-muted/50 mx-auto mt-12 max-w-2xl rounded-xl border p-6 text-left\"\n        aria-live=\"polite\"\n      >\n        <blockquote class=\"text-lg leading-relaxed\">“{{ quotes[current]!.text }}”</blockquote>\n        <figcaption class=\"mt-4 flex items-center justify-between gap-3\">\n          <span class=\"flex items-center gap-3\">\n            <UiAvatar class=\"size-10\">\n              <UiAvatarImage :src=\"quotes[current]!.avatar\" :alt=\"quotes[current]!.name\" />\n              <UiAvatarFallback>{{ quotes[current]!.name.slice(0, 1) }}</UiAvatarFallback>\n            </UiAvatar>\n            <span class=\"text-sm\">\n              <span class=\"block font-medium\">{{ quotes[current]!.name }}</span>\n              <span class=\"text-muted-foreground block\">{{ quotes[current]!.role }}</span>\n            </span>\n          </span>\n          <span class=\"flex items-center gap-1\">\n            <UiButton variant=\"outline\" size=\"icon-sm\" aria-label=\"Previous quote\" @click=\"step(-1)\"\n              ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n            /></UiButton>\n            <span class=\"text-muted-foreground w-10 text-center text-xs tabular-nums\"\n              >{{ current + 1 }} / {{ quotes.length }}</span\n            >\n            <UiButton variant=\"outline\" size=\"icon-sm\" aria-label=\"Next quote\" @click=\"step(1)\"\n              ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n            /></UiButton>\n          </span>\n        </figcaption>\n      </figure>\n\n      <ul class=\"text-muted-foreground mt-8 flex flex-wrap justify-center gap-x-6 gap-y-2 text-sm\">\n        <li v-for=\"point in points\" :key=\"point\" class=\"flex items-center gap-2\">\n          <Icon name=\"lucide:shield-check\" class=\"size-4\" />{{ point }}\n        </li>\n      </ul>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Person = { name: string; avatar: string };\n  type Quote = Person & { role: string; text: string };\n\n  const props = withDefaults(\n    defineProps<{\n      title?: string;\n      description?: string;\n      count?: number;\n      people?: Person[];\n      quotes?: Quote[];\n      points?: string[];\n    }>(),\n    {\n      title: \"Be first in line for Orbit\",\n      description:\n        \"Teams from small studios to large startups are already waiting for their invite.\",\n      count: 4280,\n      people: () => [\n        { name: \"Maya\", avatar: \"https://i.pravatar.cc/80?img=47\" },\n        { name: \"Leo\", avatar: \"https://i.pravatar.cc/80?img=12\" },\n        { name: \"Sana\", avatar: \"https://i.pravatar.cc/80?img=32\" },\n        { name: \"Omar\", avatar: \"https://i.pravatar.cc/80?img=15\" },\n        { name: \"Priya\", avatar: \"https://i.pravatar.cc/80?img=45\" },\n      ],\n      quotes: () => [\n        {\n          name: \"Maya Chen\",\n          role: \"Head of Product, Fernwood\",\n          avatar: \"https://i.pravatar.cc/80?img=47\",\n          text: \"The beta replaced three tools for us in the first week. I would not go back.\",\n        },\n        {\n          name: \"Leo Martins\",\n          role: \"Founder, Tilework\",\n          avatar: \"https://i.pravatar.cc/80?img=12\",\n          text: \"Planning used to take a day. With Orbit it takes the length of a coffee.\",\n        },\n        {\n          name: \"Sana Ali\",\n          role: \"Design lead, Paperboat\",\n          avatar: \"https://i.pravatar.cc/80?img=32\",\n          text: \"Finally a tool my whole team opens without being asked.\",\n        },\n      ],\n      points: () => [\"No credit card\", \"Unsubscribe any time\", \"Your email is never shared\"],\n    }\n  );\n\n  const email = ref(\"\");\n  const error = ref(\"\");\n  const joined = ref(false);\n  const current = ref(0);\n\n  function step(by: number) {\n    const total = props.quotes.length;\n    current.value = (current.value + by + total) % total;\n  }\n\n  function join() {\n    if (!/^\\S+@\\S+\\.\\S+$/.test(email.value.trim())) {\n      error.value = \"Enter a valid email address.\";\n      return;\n    }\n    error.value = \"\";\n    joined.value = true;\n  }\n</script>\n","category":"Waitlist","description":"Waitlist with social proof. Features: Overlapping avatar stack with signup count, join form, rotating testimonial with previous and next controls, trust points","path":"Utility/Waitlist/BlockWaitlist6.vue","components":["avatar","button","container","input","label"]},{"name":"Week Agenda 1","fileName":"BlockWeekAgenda1.vue","file":"<template>\n  <!--\n    Week calendar with a time grid\n    Features: Seven day grid with hour rows, events placed by start and end time, overlapping events sharing the column, a current time line on today, previous, next and today buttons and a details panel for the selected event\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-wrap items-center justify-between gap-3\">\n      <h1 class=\"text-2xl font-bold tracking-tight\" aria-live=\"polite\">{{ rangeLabel }}</h1>\n      <div class=\"flex items-center gap-2\">\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Previous week\" @click=\"shift(-7)\"\n          ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n        /></UiButton>\n        <UiButton variant=\"outline\" @click=\"goToday\">Today</UiButton>\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Next week\" @click=\"shift(7)\"\n          ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n        /></UiButton>\n      </div>\n    </div>\n\n    <div class=\"mt-6 overflow-x-auto rounded-xl border\">\n      <div class=\"min-w-[44rem]\">\n        <div\n          class=\"bg-muted/50 grid grid-cols-[3.5rem_repeat(7,minmax(0,1fr))] border-b text-center text-xs\"\n        >\n          <div />\n          <div v-for=\"day in week\" :key=\"day\" class=\"border-l py-2\">\n            <span class=\"text-muted-foreground block\">{{ weekday(day) }}</span>\n            <span\n              class=\"mt-0.5 inline-grid size-7 place-items-center rounded-full text-sm font-semibold\"\n              :class=\"day === todayIso ? 'bg-primary text-primary-foreground' : ''\"\n              >{{ Number(day.slice(8)) }}</span\n            >\n          </div>\n        </div>\n        <div class=\"grid grid-cols-[3.5rem_repeat(7,minmax(0,1fr))]\">\n          <div aria-hidden=\"true\">\n            <div\n              v-for=\"hour in hours\"\n              :key=\"hour\"\n              class=\"text-muted-foreground pt-1 pr-2 text-right text-[11px] leading-none\"\n              :style=\"{ height: `${ROW}px` }\"\n            >\n              {{ hourLabel(hour) }}\n            </div>\n          </div>\n          <div\n            v-for=\"column in columns\"\n            :key=\"column.day\"\n            class=\"relative border-l\"\n            :style=\"{ height: `${hours.length * ROW}px` }\"\n            role=\"group\"\n            :aria-label=\"longDate(column.day)\"\n          >\n            <div\n              v-for=\"hour in hours\"\n              :key=\"hour\"\n              class=\"border-b\"\n              :style=\"{ height: `${ROW}px` }\"\n              aria-hidden=\"true\"\n            />\n            <button\n              v-for=\"item in column.items\"\n              :key=\"item.event.id\"\n              type=\"button\"\n              class=\"focus-visible:ring-ring/50 absolute overflow-hidden rounded-md border-l-4 px-1.5 py-1 text-left text-[11px] leading-tight outline-none focus-visible:ring-[3px]\"\n              :class=\"[colors[item.event.color], selected?.id === item.event.id ? 'ring-2' : '']\"\n              :style=\"place(item)\"\n              :aria-pressed=\"selected?.id === item.event.id\"\n              :aria-label=\"`${item.event.title}, ${clock(item.event.start)} to ${clock(item.event.end)}`\"\n              @click=\"selected = item.event\"\n            >\n              <span class=\"block truncate font-semibold\">{{ item.event.title }}</span>\n              <span v-if=\"!item.short\" class=\"block truncate opacity-80\">{{\n                clock(item.event.start)\n              }}</span>\n            </button>\n            <div\n              v-if=\"column.day === todayIso && nowTop !== null\"\n              class=\"pointer-events-none absolute inset-x-0 z-10 flex items-center\"\n              :style=\"{ top: `${nowTop}px` }\"\n              aria-hidden=\"true\"\n            >\n              <span class=\"bg-destructive -ml-1 size-2 rounded-full\" />\n              <span class=\"bg-destructive h-px flex-1\" />\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n\n    <section class=\"mt-6 rounded-xl border p-4\" aria-live=\"polite\" aria-label=\"Selected event\">\n      <template v-if=\"selected\">\n        <div class=\"flex items-start gap-3\">\n          <span class=\"mt-1 size-3 shrink-0 rounded-full\" :class=\"dots[selected.color]\" />\n          <div class=\"min-w-0 flex-1\">\n            <h2 class=\"font-semibold\">{{ selected.title }}</h2>\n            <p class=\"text-muted-foreground text-sm\">\n              {{ longDate(selected.date) }}, {{ clock(selected.start) }} to\n              {{ clock(selected.end) }}\n            </p>\n            <p class=\"text-muted-foreground mt-1 flex items-center gap-1 text-sm\">\n              <Icon name=\"lucide:map-pin\" class=\"size-3.5\" />{{ selected.place }}\n            </p>\n          </div>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            aria-label=\"Clear selection\"\n            @click=\"selected = null\"\n            ><Icon name=\"lucide:x\" class=\"size-4\"\n          /></UiButton>\n        </div>\n      </template>\n      <p v-else class=\"text-muted-foreground text-sm\">Select an event to see its details.</p>\n    </section>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"blue\" | \"green\" | \"amber\" | \"rose\" | \"violet\";\n  type Event = {\n    id: string;\n    title: string;\n    date: string;\n    start: string;\n    end: string;\n    place: string;\n    color: Color;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      /** The current moment as `YYYY-MM-DDTHH:mm`. Pass the real time in your own app. */\n      now?: string;\n      events?: Event[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      events: () => [\n        {\n          id: \"w1\",\n          title: \"Weekly planning\",\n          date: \"2026-10-18\",\n          start: \"10:00\",\n          end: \"11:00\",\n          place: \"Meeting room 2\",\n          color: \"blue\",\n        },\n        {\n          id: \"w2\",\n          title: \"Design review\",\n          date: \"2026-10-18\",\n          start: \"14:00\",\n          end: \"15:30\",\n          place: \"Video call\",\n          color: \"violet\",\n        },\n        {\n          id: \"w3\",\n          title: \"Quick sync\",\n          date: \"2026-10-18\",\n          start: \"14:30\",\n          end: \"15:00\",\n          place: \"Video call\",\n          color: \"green\",\n        },\n        {\n          id: \"w4\",\n          title: \"Standup\",\n          date: \"2026-10-19\",\n          start: \"09:00\",\n          end: \"09:30\",\n          place: \"Video call\",\n          color: \"blue\",\n        },\n        {\n          id: \"w5\",\n          title: \"Customer interview\",\n          date: \"2026-10-19\",\n          start: \"11:00\",\n          end: \"12:30\",\n          place: \"Video call\",\n          color: \"amber\",\n        },\n        {\n          id: \"w6\",\n          title: \"1:1 with Sofia\",\n          date: \"2026-10-20\",\n          start: \"13:00\",\n          end: \"14:00\",\n          place: \"Cafe on 5th\",\n          color: \"green\",\n        },\n        {\n          id: \"w7\",\n          title: \"Workshop\",\n          date: \"2026-10-20\",\n          start: \"15:00\",\n          end: \"17:00\",\n          place: \"Boardroom\",\n          color: \"rose\",\n        },\n        {\n          id: \"w8\",\n          title: \"Standup\",\n          date: \"2026-10-21\",\n          start: \"09:00\",\n          end: \"09:30\",\n          place: \"Video call\",\n          color: \"blue\",\n        },\n        {\n          id: \"w9\",\n          title: \"Sprint planning\",\n          date: \"2026-10-21\",\n          start: \"10:00\",\n          end: \"11:30\",\n          place: \"Meeting room 1\",\n          color: \"violet\",\n        },\n        {\n          id: \"w10\",\n          title: \"Demo day\",\n          date: \"2026-10-21\",\n          start: \"16:00\",\n          end: \"17:00\",\n          place: \"Main hall\",\n          color: \"rose\",\n        },\n        {\n          id: \"w11\",\n          title: \"Lunch and learn\",\n          date: \"2026-10-22\",\n          start: \"12:00\",\n          end: \"13:00\",\n          place: \"Kitchen\",\n          color: \"amber\",\n        },\n        {\n          id: \"w12\",\n          title: \"Standup\",\n          date: \"2026-10-23\",\n          start: \"09:00\",\n          end: \"09:30\",\n          place: \"Video call\",\n          color: \"blue\",\n        },\n        {\n          id: \"w13\",\n          title: \"Retro\",\n          date: \"2026-10-23\",\n          start: \"15:00\",\n          end: \"16:00\",\n          place: \"Meeting room 2\",\n          color: \"violet\",\n        },\n      ],\n    }\n  );\n\n  const ROW = 48;\n  const FIRST_HOUR = 8;\n  const hours = Array.from({ length: 10 }, (_, index) => FIRST_HOUR + index);\n  const colors: Record<Color, string> = {\n    blue: \"border-blue-500 bg-blue-100 text-blue-900 dark:bg-blue-500/20 dark:text-blue-200\",\n    green: \"border-green-500 bg-green-100 text-green-900 dark:bg-green-500/20 dark:text-green-200\",\n    amber: \"border-amber-500 bg-amber-100 text-amber-900 dark:bg-amber-500/20 dark:text-amber-200\",\n    rose: \"border-rose-500 bg-rose-100 text-rose-900 dark:bg-rose-500/20 dark:text-rose-200\",\n    violet:\n      \"border-violet-500 bg-violet-100 text-violet-900 dark:bg-violet-500/20 dark:text-violet-200\",\n  };\n  const dots: Record<Color, string> = {\n    blue: \"bg-blue-500\",\n    green: \"bg-green-500\",\n    amber: \"bg-amber-500\",\n    rose: \"bg-rose-500\",\n    violet: \"bg-violet-500\",\n  };\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const fmt = (date: Date) => date.toISOString().slice(0, 10);\n  const addDays = (iso: string, count: number) => {\n    const date = parse(iso);\n    date.setUTCDate(date.getUTCDate() + count);\n    return fmt(date);\n  };\n  const minutes = (time: string) => Number(time.slice(0, 2)) * 60 + Number(time.slice(3, 5));\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n  const hourLabel = (hour: number) => `${hour % 12 || 12} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  const weekday = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", { weekday: \"short\", timeZone: \"UTC\" });\n  const longDate = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    });\n\n  const todayIso = computed(() => props.now.slice(0, 10));\n  const weekStart = ref(addDays(todayIso.value, -parse(todayIso.value).getUTCDay()));\n  const selected = ref<Event | null>(null);\n\n  const week = computed(() =>\n    Array.from({ length: 7 }, (_, index) => addDays(weekStart.value, index))\n  );\n  const rangeLabel = computed(() => {\n    const short = (iso: string) =>\n      parse(iso).toLocaleDateString(\"en-US\", { month: \"short\", day: \"numeric\", timeZone: \"UTC\" });\n    return `${short(week.value[0]!)} to ${short(week.value[6]!)}, ${week.value[6]!.slice(0, 4)}`;\n  });\n\n  type Placed = { event: Event; lane: number; lanes: number; short?: boolean };\n\n  /** Puts overlapping events side by side. Each cluster of overlaps shares the width. */\n  function layout(list: Event[]) {\n    const sorted = [...list].sort((a, b) => a.start.localeCompare(b.start));\n    const out: Placed[] = [];\n    let cluster: Placed[] = [];\n    let laneEnds: number[] = [];\n    let clusterEnd = 0;\n    const flush = () => {\n      cluster.forEach((item) => (item.lanes = laneEnds.length));\n      out.push(...cluster);\n      cluster = [];\n      laneEnds = [];\n      clusterEnd = 0;\n    };\n    for (const event of sorted) {\n      const from = minutes(event.start);\n      const to = minutes(event.end);\n      if (cluster.length && from >= clusterEnd) flush();\n      let lane = laneEnds.findIndex((end) => end <= from);\n      if (lane === -1) lane = laneEnds.length;\n      laneEnds[lane] = to;\n      clusterEnd = Math.max(clusterEnd, to);\n      cluster.push({ event, lane, lanes: 1, short: to - from <= 30 });\n    }\n    flush();\n    return out;\n  }\n\n  const columns = computed(() =>\n    week.value.map((day) => ({\n      day,\n      items: layout(props.events.filter((event) => event.date === day)),\n    }))\n  );\n\n  function place(item: Placed) {\n    const top = ((minutes(item.event.start) - FIRST_HOUR * 60) / 60) * ROW;\n    const height = ((minutes(item.event.end) - minutes(item.event.start)) / 60) * ROW;\n    return {\n      top: `${top + 1}px`,\n      height: `${Math.max(height - 2, 18)}px`,\n      left: `calc(${(item.lane / item.lanes) * 100}% + 2px)`,\n      width: `calc(${100 / item.lanes}% - 4px)`,\n    };\n  }\n\n  const nowTop = computed(() => {\n    const offset = minutes(props.now.slice(11, 16)) - FIRST_HOUR * 60;\n    return offset >= 0 && offset <= hours.length * 60 ? (offset / 60) * ROW : null;\n  });\n\n  function shift(step: number) {\n    weekStart.value = addDays(weekStart.value, step);\n  }\n\n  function goToday() {\n    weekStart.value = addDays(todayIso.value, -parse(todayIso.value).getUTCDay());\n  }\n</script>\n","category":"WeekAgenda","description":"Week calendar with a time grid. Features: Seven day grid with hour rows, events placed by start and end time, overlapping events sharing the column, a current time line on today, previous, next and today buttons and a details panel for the selected event","path":"Calendar/WeekAgenda/BlockWeekAgenda1.vue","components":["button","container"]},{"name":"Week Agenda 2","fileName":"BlockWeekAgenda2.vue","file":"<template>\n  <!--\n    Day view with hourly rows\n    Features: One day split into hourly rows, an all day strip, event cards with place and attendees, a working hours switch that trims the grid, a current time marker and previous and next day buttons\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-center justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\" aria-live=\"polite\">{{ title }}</h1>\n          <p class=\"text-muted-foreground text-sm\">\n            {{ dayEvents.length }} {{ dayEvents.length === 1 ? \"event\" : \"events\" }}\n          </p>\n        </div>\n        <div class=\"flex items-center gap-2\">\n          <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Previous day\" @click=\"shift(-1)\"\n            ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n          /></UiButton>\n          <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Next day\" @click=\"shift(1)\"\n            ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n          /></UiButton>\n        </div>\n      </div>\n\n      <div class=\"mt-4 flex items-center gap-2\">\n        <UiSwitch id=\"working-hours\" v-model=\"workingOnly\" />\n        <UiLabel for=\"working-hours\" class=\"text-sm\">Working hours only (9 AM to 5 PM)</UiLabel>\n      </div>\n\n      <ul v-if=\"allDay.length\" class=\"mt-4 space-y-1.5\" aria-label=\"All day\">\n        <li\n          v-for=\"event in allDay\"\n          :key=\"event.id\"\n          class=\"rounded-md px-3 py-1.5 text-sm font-medium\"\n          :class=\"colors[event.color]\"\n        >\n          {{ event.title }}<span class=\"ml-2 text-xs font-normal opacity-80\">All day</span>\n        </li>\n      </ul>\n\n      <div class=\"mt-4 overflow-hidden rounded-xl border\">\n        <div class=\"relative\" :style=\"{ height: `${hours.length * ROW}px` }\">\n          <div\n            v-for=\"(hour, index) in hours\"\n            :key=\"hour\"\n            class=\"absolute inset-x-0 flex border-b\"\n            :style=\"{ top: `${index * ROW}px`, height: `${ROW}px` }\"\n            aria-hidden=\"true\"\n          >\n            <span\n              class=\"text-muted-foreground w-16 shrink-0 pt-1 pr-3 text-right text-[11px] leading-none\"\n              >{{ hourLabel(hour) }}</span\n            >\n            <span class=\"border-l\" />\n          </div>\n          <ul class=\"absolute inset-y-0 right-2 left-[4.5rem]\" aria-label=\"Events\">\n            <li\n              v-for=\"item in placed\"\n              :key=\"item.event.id\"\n              class=\"absolute overflow-hidden rounded-md border-l-4 px-2.5 py-1.5 text-xs\"\n              :class=\"colors[item.event.color]\"\n              :style=\"item.style\"\n            >\n              <p class=\"truncate text-sm font-semibold\">\n                {{ item.event.title }}\n                <span v-if=\"item.short\" class=\"ml-1 text-xs font-normal opacity-80\">{{\n                  clock(item.event.start)\n                }}</span>\n              </p>\n              <p v-if=\"!item.short\" class=\"truncate opacity-80\">\n                {{ clock(item.event.start) }} to {{ clock(item.event.end) }}, {{ item.event.place }}\n              </p>\n              <div v-if=\"item.tall\" class=\"mt-1.5 flex -space-x-1.5\">\n                <UiAvatar\n                  v-for=\"person in item.event.people\"\n                  :key=\"person\"\n                  :src=\"`https://i.pravatar.cc/80?img=${person}`\"\n                  fallback=\"?\"\n                  class=\"ring-background size-5 ring-2\"\n                />\n              </div>\n            </li>\n          </ul>\n          <div\n            v-if=\"nowTop !== null\"\n            class=\"pointer-events-none absolute right-0 left-[4rem] z-10 flex items-center\"\n            :style=\"{ top: `${nowTop}px` }\"\n            aria-hidden=\"true\"\n          >\n            <span class=\"bg-destructive size-2 rounded-full\" />\n            <span class=\"bg-destructive h-px flex-1\" />\n          </div>\n        </div>\n      </div>\n      <p v-if=\"!dayEvents.length\" class=\"text-muted-foreground mt-4 text-center text-sm\">\n        Nothing scheduled for this day.\n      </p>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"blue\" | \"green\" | \"amber\" | \"rose\" | \"violet\";\n  type Event = {\n    id: string;\n    title: string;\n    date: string;\n    start: string;\n    end: string;\n    place: string;\n    color: Color;\n    people: number[];\n    allDay?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      /** The current moment as `YYYY-MM-DDTHH:mm`. Pass the real time in your own app. */\n      now?: string;\n      events?: Event[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      events: () => [\n        {\n          id: \"d0\",\n          title: \"Sofia is out of office\",\n          date: \"2026-10-18\",\n          start: \"00:00\",\n          end: \"23:59\",\n          place: \"\",\n          color: \"amber\",\n          people: [],\n          allDay: true,\n        },\n        {\n          id: \"d1\",\n          title: \"Weekly planning\",\n          date: \"2026-10-18\",\n          start: \"10:00\",\n          end: \"11:00\",\n          place: \"Meeting room 2\",\n          color: \"blue\",\n          people: [32, 12, 44],\n        },\n        {\n          id: \"d2\",\n          title: \"Lunch with the new hires\",\n          date: \"2026-10-18\",\n          start: \"12:00\",\n          end: \"13:00\",\n          place: \"Rooftop\",\n          color: \"green\",\n          people: [45, 33],\n        },\n        {\n          id: \"d3\",\n          title: \"Design review\",\n          date: \"2026-10-18\",\n          start: \"14:00\",\n          end: \"15:30\",\n          place: \"Video call\",\n          color: \"violet\",\n          people: [32, 45, 15],\n        },\n        {\n          id: \"d4\",\n          title: \"Inbox zero\",\n          date: \"2026-10-18\",\n          start: \"17:30\",\n          end: \"18:00\",\n          place: \"Desk\",\n          color: \"rose\",\n          people: [],\n        },\n        {\n          id: \"d5\",\n          title: \"Early run\",\n          date: \"2026-10-18\",\n          start: \"07:00\",\n          end: \"08:00\",\n          place: \"Riverside\",\n          color: \"green\",\n          people: [],\n        },\n        {\n          id: \"d6\",\n          title: \"Standup\",\n          date: \"2026-10-19\",\n          start: \"09:00\",\n          end: \"09:30\",\n          place: \"Video call\",\n          color: \"blue\",\n          people: [12, 15],\n        },\n      ],\n    }\n  );\n\n  const ROW = 56;\n  const workingOnly = ref(false);\n  const firstHour = computed(() => (workingOnly.value ? 9 : 7));\n  const lastHour = computed(() => (workingOnly.value ? 17 : 19));\n  const hours = computed(() =>\n    Array.from({ length: lastHour.value - firstHour.value }, (_, index) => firstHour.value + index)\n  );\n  const colors: Record<Color, string> = {\n    blue: \"border-blue-500 bg-blue-100 text-blue-900 dark:bg-blue-500/20 dark:text-blue-200\",\n    green: \"border-green-500 bg-green-100 text-green-900 dark:bg-green-500/20 dark:text-green-200\",\n    amber: \"border-amber-500 bg-amber-100 text-amber-900 dark:bg-amber-500/20 dark:text-amber-200\",\n    rose: \"border-rose-500 bg-rose-100 text-rose-900 dark:bg-rose-500/20 dark:text-rose-200\",\n    violet:\n      \"border-violet-500 bg-violet-100 text-violet-900 dark:bg-violet-500/20 dark:text-violet-200\",\n  };\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const fmt = (date: Date) => date.toISOString().slice(0, 10);\n  const minutes = (time: string) => Number(time.slice(0, 2)) * 60 + Number(time.slice(3, 5));\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n  const hourLabel = (hour: number) => `${hour % 12 || 12} ${hour < 12 ? \"AM\" : \"PM\"}`;\n\n  const day = ref(props.now.slice(0, 10));\n  const title = computed(() =>\n    parse(day.value).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    })\n  );\n\n  const dayEvents = computed(() => props.events.filter((event) => event.date === day.value));\n  const allDay = computed(() => dayEvents.value.filter((event) => event.allDay));\n\n  const placed = computed(() => {\n    const top = firstHour.value * 60;\n    const bottom = lastHour.value * 60;\n    return dayEvents.value\n      .filter((event) => !event.allDay)\n      .filter((event) => minutes(event.end) > top && minutes(event.start) < bottom)\n      .map((event) => {\n        const from = Math.max(minutes(event.start), top);\n        const to = Math.min(minutes(event.end), bottom);\n        const height = ((to - from) / 60) * ROW;\n        return {\n          event,\n          tall: height >= 72 && event.people.length > 0,\n          short: height < 48,\n          style: {\n            top: `${((from - top) / 60) * ROW + 2}px`,\n            height: `${Math.max(height - 4, 24)}px`,\n            left: \"0\",\n            right: \"0\",\n          },\n        };\n      });\n  });\n\n  const nowTop = computed(() => {\n    if (day.value !== props.now.slice(0, 10)) return null;\n    const offset = minutes(props.now.slice(11, 16)) - firstHour.value * 60;\n    return offset >= 0 && offset <= hours.value.length * 60 ? (offset / 60) * ROW : null;\n  });\n\n  function shift(step: number) {\n    const date = parse(day.value);\n    date.setUTCDate(date.getUTCDate() + step);\n    day.value = fmt(date);\n  }\n</script>\n","category":"WeekAgenda","description":"Day view with hourly rows. Features: One day split into hourly rows, an all day strip, event cards with place and attendees, a working hours switch that trims the grid, a current time marker and previous and next day buttons","path":"Calendar/WeekAgenda/BlockWeekAgenda2.vue","components":["avatar","button","container","label","switch"]},{"name":"Week Agenda 3","fileName":"BlockWeekAgenda3.vue","file":"<template>\n  <!--\n    Agenda list grouped by day\n    Features: Upcoming events grouped under day headings with Today and Tomorrow labels, a category filter, time range, place and category badge on each row, a join button for video calls and an empty state\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-3xl\">\n      <div class=\"flex flex-wrap items-center justify-between gap-3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">Agenda</h1>\n        <UiToggleGroup\n          :model-value=\"filter\"\n          type=\"single\"\n          variant=\"outline\"\n          aria-label=\"Filter events\"\n          @update:model-value=\"(value) => (filter = (value as Filter) || 'all')\"\n        >\n          <UiToggleGroupItem v-for=\"item in filters\" :key=\"item.value\" :value=\"item.value\">{{\n            item.label\n          }}</UiToggleGroupItem>\n        </UiToggleGroup>\n      </div>\n\n      <div v-if=\"groups.length\" class=\"mt-6 space-y-8\" aria-live=\"polite\">\n        <section v-for=\"group in groups\" :key=\"group.date\" :aria-label=\"longDate(group.date)\">\n          <h2 class=\"flex items-baseline gap-2 border-b pb-2 text-sm font-semibold\">\n            <span>{{ relative(group.date) ?? shortWeekday(group.date) }}</span>\n            <span class=\"text-muted-foreground font-normal\">{{ longDate(group.date) }}</span>\n          </h2>\n          <ul class=\"divide-y\">\n            <li v-for=\"event in group.items\" :key=\"event.id\" class=\"flex items-center gap-4 py-3\">\n              <div class=\"text-muted-foreground w-24 shrink-0 text-sm tabular-nums\">\n                <template v-if=\"event.start\">{{ clock(event.start) }}</template>\n                <template v-else>All day</template>\n                <span v-if=\"event.end\" class=\"block text-xs\">to {{ clock(event.end) }}</span>\n              </div>\n              <span class=\"h-10 w-1 shrink-0 rounded-full\" :class=\"bars[event.kind]\" />\n              <div class=\"min-w-0 flex-1\">\n                <p class=\"truncate font-medium\">{{ event.title }}</p>\n                <p class=\"text-muted-foreground flex items-center gap-1 truncate text-sm\">\n                  <Icon :name=\"event.video ? 'lucide:video' : 'lucide:map-pin'\" class=\"size-3.5\" />\n                  {{ event.place }}\n                </p>\n              </div>\n              <UiBadge\n                variant=\"soft\"\n                :color=\"badges[event.kind]\"\n                shape=\"pill\"\n                class=\"hidden sm:inline-flex\"\n                >{{ kindLabel[event.kind] }}</UiBadge\n              >\n              <UiButton\n                v-if=\"event.video\"\n                size=\"sm\"\n                variant=\"outline\"\n                :aria-label=\"`Join ${event.title}`\"\n                @click=\"useSonner.success(`Joining ${event.title}`)\"\n                >Join</UiButton\n              >\n            </li>\n          </ul>\n        </section>\n      </div>\n      <div\n        v-else\n        class=\"text-muted-foreground mt-6 rounded-xl border border-dashed py-14 text-center text-sm\"\n        aria-live=\"polite\"\n      >\n        <Icon name=\"lucide:calendar-check\" class=\"mx-auto mb-2 size-6\" />\n        No events match this filter.\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Kind = \"meeting\" | \"personal\" | \"deadline\";\n  type Filter = \"all\" | Kind;\n  type Event = {\n    id: string;\n    title: string;\n    date: string;\n    start?: string;\n    end?: string;\n    place: string;\n    kind: Kind;\n    video?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      events?: Event[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      events: () => [\n        {\n          id: \"g1\",\n          title: \"Weekly planning\",\n          date: \"2026-10-18\",\n          start: \"10:00\",\n          end: \"11:00\",\n          place: \"Meeting room 2\",\n          kind: \"meeting\",\n        },\n        {\n          id: \"g2\",\n          title: \"Design review\",\n          date: \"2026-10-18\",\n          start: \"14:00\",\n          end: \"15:30\",\n          place: \"Video call\",\n          kind: \"meeting\",\n          video: true,\n        },\n        {\n          id: \"g3\",\n          title: \"Dinner with Sofia\",\n          date: \"2026-10-18\",\n          start: \"19:30\",\n          end: \"21:00\",\n          place: \"Osteria Nova\",\n          kind: \"personal\",\n        },\n        {\n          id: \"g4\",\n          title: \"Standup\",\n          date: \"2026-10-19\",\n          start: \"09:00\",\n          end: \"09:30\",\n          place: \"Video call\",\n          kind: \"meeting\",\n          video: true,\n        },\n        {\n          id: \"g5\",\n          title: \"Submit expense report\",\n          date: \"2026-10-19\",\n          place: \"Finance portal\",\n          kind: \"deadline\",\n        },\n        {\n          id: \"g6\",\n          title: \"Customer interview\",\n          date: \"2026-10-21\",\n          start: \"11:00\",\n          end: \"12:00\",\n          place: \"Video call\",\n          kind: \"meeting\",\n          video: true,\n        },\n        {\n          id: \"g7\",\n          title: \"Dentist\",\n          date: \"2026-10-21\",\n          start: \"16:30\",\n          end: \"17:15\",\n          place: \"Smile clinic\",\n          kind: \"personal\",\n        },\n        {\n          id: \"g8\",\n          title: \"Release candidate freeze\",\n          date: \"2026-10-23\",\n          place: \"Repository\",\n          kind: \"deadline\",\n        },\n        {\n          id: \"g9\",\n          title: \"Quarterly review\",\n          date: \"2026-10-27\",\n          start: \"14:00\",\n          end: \"16:00\",\n          place: \"Boardroom\",\n          kind: \"meeting\",\n        },\n      ],\n    }\n  );\n\n  const filters: { value: Filter; label: string }[] = [\n    { value: \"all\", label: \"All\" },\n    { value: \"meeting\", label: \"Meetings\" },\n    { value: \"personal\", label: \"Personal\" },\n    { value: \"deadline\", label: \"Deadlines\" },\n  ];\n  const kindLabel: Record<Kind, string> = {\n    meeting: \"Meeting\",\n    personal: \"Personal\",\n    deadline: \"Deadline\",\n  };\n  const bars: Record<Kind, string> = {\n    meeting: \"bg-blue-500\",\n    personal: \"bg-green-500\",\n    deadline: \"bg-rose-500\",\n  };\n  const badges: Record<Kind, string> = { meeting: \"blue\", personal: \"green\", deadline: \"red\" };\n\n  const filter = ref<Filter>(\"all\");\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n  const longDate = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", { month: \"long\", day: \"numeric\", timeZone: \"UTC\" });\n  const shortWeekday = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", { weekday: \"long\", timeZone: \"UTC\" });\n\n  function relative(iso: string) {\n    const diff = Math.round((parse(iso).getTime() - parse(props.today).getTime()) / 86_400_000);\n    if (diff === 0) return \"Today\";\n    if (diff === 1) return \"Tomorrow\";\n    return null;\n  }\n\n  const groups = computed(() => {\n    const visible = props.events\n      .filter((event) => event.date >= props.today)\n      .filter((event) => filter.value === \"all\" || event.kind === filter.value)\n      .sort((a, b) => `${a.date}${a.start ?? \"\"}`.localeCompare(`${b.date}${b.start ?? \"\"}`));\n    const byDate = new Map<string, Event[]>();\n    for (const event of visible) byDate.set(event.date, [...(byDate.get(event.date) ?? []), event]);\n    return [...byDate].map(([date, items]) => ({ date, items }));\n  });\n</script>\n","category":"WeekAgenda","description":"Agenda list grouped by day. Features: Upcoming events grouped under day headings with Today and Tomorrow labels, a category filter, time range, place and category badge on each row, a join button for video calls and an empty state","path":"Calendar/WeekAgenda/BlockWeekAgenda3.vue","components":["badge","button","container","toggle-group"]},{"name":"Week Agenda 4","fileName":"BlockWeekAgenda4.vue","file":"<template>\n  <!--\n    Day timeline with free time\n    Features: Vertical timeline of one day with past, current and upcoming events, a live progress bar on the running event, free time gaps between events, a busy time summary and previous and next day buttons\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"mx-auto max-w-xl\">\n      <div class=\"flex items-start justify-between gap-3\">\n        <div>\n          <h1 class=\"text-2xl font-bold tracking-tight\" aria-live=\"polite\">{{ title }}</h1>\n          <p class=\"text-muted-foreground mt-1 text-sm\">\n            {{ items.length }} {{ items.length === 1 ? \"event\" : \"events\" }}, {{ duration(busy) }}\n            booked\n          </p>\n        </div>\n        <div class=\"flex gap-2\">\n          <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Previous day\" @click=\"shift(-1)\"\n            ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n          /></UiButton>\n          <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Next day\" @click=\"shift(1)\"\n            ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n          /></UiButton>\n        </div>\n      </div>\n\n      <ol v-if=\"items.length\" class=\"mt-8\">\n        <li v-for=\"(item, index) in items\" :key=\"item.id\" class=\"relative pb-2 pl-10\">\n          <span\n            v-if=\"index < items.length - 1\"\n            class=\"bg-border absolute top-6 bottom-0 left-[0.6875rem] w-px\"\n            aria-hidden=\"true\"\n          />\n          <span\n            class=\"absolute top-1 left-0 grid size-6 place-items-center rounded-full border-2\"\n            :class=\"\n              item.status === 'done'\n                ? 'bg-muted text-muted-foreground border-transparent'\n                : item.status === 'now'\n                  ? 'bg-primary text-primary-foreground border-primary'\n                  : 'bg-background'\n            \"\n            aria-hidden=\"true\"\n          >\n            <Icon v-if=\"item.status === 'done'\" name=\"lucide:check\" class=\"size-3.5\" />\n            <span\n              v-else-if=\"item.status === 'now'\"\n              class=\"size-2 animate-pulse rounded-full bg-current motion-reduce:animate-none\"\n            />\n          </span>\n\n          <div\n            class=\"rounded-xl border p-4\"\n            :class=\"[\n              item.status === 'done' ? 'opacity-60' : '',\n              item.status === 'now' ? 'border-primary/50 bg-primary/5' : '',\n            ]\"\n            :aria-current=\"item.status === 'now' ? 'time' : undefined\"\n          >\n            <div class=\"flex items-center gap-2\">\n              <p class=\"text-muted-foreground text-xs tabular-nums\">\n                {{ clock(item.start) }} to {{ clock(item.end) }}\n              </p>\n              <UiBadge v-if=\"item.status === 'now'\" variant=\"solid\" shape=\"pill\" color=\"blue\"\n                >Now</UiBadge\n              >\n            </div>\n            <p class=\"mt-1 font-medium\">{{ item.title }}</p>\n            <p class=\"text-muted-foreground mt-0.5 flex items-center gap-1 text-sm\">\n              <Icon name=\"lucide:map-pin\" class=\"size-3.5\" />{{ item.place }}\n            </p>\n            <div\n              v-if=\"item.status === 'now'\"\n              class=\"bg-muted mt-3 h-1.5 overflow-hidden rounded-full\"\n              role=\"progressbar\"\n              aria-label=\"Event progress\"\n              :aria-valuenow=\"item.progress\"\n              aria-valuemin=\"0\"\n              aria-valuemax=\"100\"\n            >\n              <div class=\"bg-primary h-full rounded-full\" :style=\"{ width: `${item.progress}%` }\" />\n            </div>\n          </div>\n\n          <p v-if=\"item.gap > 0\" class=\"text-muted-foreground flex items-center gap-2 py-3 text-xs\">\n            <Icon name=\"lucide:coffee\" class=\"size-3.5\" />{{ duration(item.gap) }} free\n          </p>\n        </li>\n      </ol>\n      <div\n        v-else\n        class=\"text-muted-foreground mt-8 rounded-xl border border-dashed py-14 text-center text-sm\"\n      >\n        A clear day. Nothing on the timeline.\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Event = {\n    id: string;\n    title: string;\n    date: string;\n    start: string;\n    end: string;\n    place: string;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      /** The current moment as `YYYY-MM-DDTHH:mm`. Pass the real time in your own app. */\n      now?: string;\n      events?: Event[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      events: () => [\n        {\n          id: \"t1\",\n          title: \"Morning run\",\n          date: \"2026-10-18\",\n          start: \"07:00\",\n          end: \"08:00\",\n          place: \"Riverside\",\n        },\n        {\n          id: \"t2\",\n          title: \"Standup\",\n          date: \"2026-10-18\",\n          start: \"09:00\",\n          end: \"09:30\",\n          place: \"Video call\",\n        },\n        {\n          id: \"t3\",\n          title: \"Weekly planning\",\n          date: \"2026-10-18\",\n          start: \"10:00\",\n          end: \"11:00\",\n          place: \"Meeting room 2\",\n        },\n        {\n          id: \"t4\",\n          title: \"Lunch with the new hires\",\n          date: \"2026-10-18\",\n          start: \"12:00\",\n          end: \"13:00\",\n          place: \"Rooftop\",\n        },\n        {\n          id: \"t5\",\n          title: \"Design review\",\n          date: \"2026-10-18\",\n          start: \"14:00\",\n          end: \"15:30\",\n          place: \"Video call\",\n        },\n        {\n          id: \"t6\",\n          title: \"Dinner with Sofia\",\n          date: \"2026-10-18\",\n          start: \"19:30\",\n          end: \"21:00\",\n          place: \"Osteria Nova\",\n        },\n        {\n          id: \"t7\",\n          title: \"Standup\",\n          date: \"2026-10-19\",\n          start: \"09:00\",\n          end: \"09:30\",\n          place: \"Video call\",\n        },\n      ],\n    }\n  );\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const fmt = (date: Date) => date.toISOString().slice(0, 10);\n  const minutes = (time: string) => Number(time.slice(0, 2)) * 60 + Number(time.slice(3, 5));\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n  const duration = (total: number) => {\n    const hours = Math.floor(total / 60);\n    const rest = total % 60;\n    return [hours ? `${hours}h` : \"\", rest ? `${rest}m` : \"\"].filter(Boolean).join(\" \") || \"0m\";\n  };\n\n  const day = ref(props.now.slice(0, 10));\n  const title = computed(() =>\n    parse(day.value).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    })\n  );\n\n  const items = computed(() => {\n    const list = props.events\n      .filter((event) => event.date === day.value)\n      .sort((a, b) => a.start.localeCompare(b.start));\n    const current = props.now.slice(0, 10) === day.value ? minutes(props.now.slice(11, 16)) : null;\n    return list.map((event, index) => {\n      const from = minutes(event.start);\n      const to = minutes(event.end);\n      const next = list[index + 1];\n      const status =\n        current === null || current < from ? \"upcoming\" : current >= to ? \"done\" : \"now\";\n      return {\n        ...event,\n        status: day.value < props.now.slice(0, 10) ? \"done\" : status,\n        progress: current === null ? 0 : Math.round(((current - from) / (to - from)) * 100),\n        gap: next ? Math.max(0, minutes(next.start) - to) : 0,\n      };\n    });\n  });\n\n  const busy = computed(() =>\n    items.value.reduce((sum, item) => sum + minutes(item.end) - minutes(item.start), 0)\n  );\n\n  function shift(step: number) {\n    const date = parse(day.value);\n    date.setUTCDate(date.getUTCDate() + step);\n    day.value = fmt(date);\n  }\n</script>\n","category":"WeekAgenda","description":"Day timeline with free time. Features: Vertical timeline of one day with past, current and upcoming events, a live progress bar on the running event, free time gaps between events, a busy time summary and previous and next day buttons","path":"Calendar/WeekAgenda/BlockWeekAgenda4.vue","components":["badge","button","container"]},{"name":"Week Agenda 5","fileName":"BlockWeekAgenda5.vue","file":"<template>\n  <!--\n    Upcoming events card\n    Features: Card with the next event highlighted with a countdown and a join button, a list of the following events with date chips and attendees, a today or this week switch and a reminder toggle per event\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <UiCard class=\"mx-auto w-full max-w-md gap-0 py-0\">\n      <div class=\"flex items-center justify-between gap-3 border-b px-5 py-4\">\n        <h1 class=\"font-semibold\">Upcoming</h1>\n        <UiToggleGroup\n          :model-value=\"range\"\n          type=\"single\"\n          size=\"sm\"\n          variant=\"outline\"\n          aria-label=\"Time range\"\n          @update:model-value=\"(value) => (range = (value as Range) || 'week')\"\n        >\n          <UiToggleGroupItem value=\"today\">Today</UiToggleGroupItem>\n          <UiToggleGroupItem value=\"week\">This week</UiToggleGroupItem>\n        </UiToggleGroup>\n      </div>\n\n      <div v-if=\"next\" class=\"bg-primary/5 border-b px-5 py-4\" aria-live=\"polite\">\n        <p class=\"text-primary text-xs font-semibold tracking-wide uppercase\">Up next</p>\n        <p class=\"mt-1 text-lg font-semibold\">{{ next.title }}</p>\n        <p class=\"text-muted-foreground text-sm\">\n          {{ clock(next.start) }} to {{ clock(next.end) }}, {{ next.place }}\n        </p>\n        <div class=\"mt-3 flex items-center justify-between gap-3\">\n          <span class=\"text-sm font-medium\">{{ countdown(next) }}</span>\n          <UiButton size=\"sm\" @click=\"useSonner.success(`Joining ${next.title}`)\"\n            ><Icon name=\"lucide:video\" class=\"size-4\" />Join</UiButton\n          >\n        </div>\n      </div>\n\n      <ul v-if=\"rest.length\" class=\"divide-y\">\n        <li v-for=\"event in rest\" :key=\"event.id\" class=\"flex items-center gap-3 px-5 py-3\">\n          <span\n            class=\"bg-muted flex w-11 shrink-0 flex-col items-center rounded-md py-1 text-[10px] leading-tight font-semibold uppercase\"\n          >\n            {{ monthShort(event.date) }}\n            <span class=\"text-base\">{{ Number(event.date.slice(8)) }}</span>\n          </span>\n          <div class=\"min-w-0 flex-1\">\n            <p class=\"truncate text-sm font-medium\">{{ event.title }}</p>\n            <p class=\"text-muted-foreground truncate text-xs\">\n              {{ dayLabel(event.date) }}, {{ clock(event.start) }}\n            </p>\n            <div class=\"mt-1.5 flex -space-x-1.5\">\n              <UiAvatar\n                v-for=\"person in event.people\"\n                :key=\"person\"\n                :src=\"`https://i.pravatar.cc/80?img=${person}`\"\n                fallback=\"?\"\n                class=\"ring-background size-5 ring-2\"\n              />\n            </div>\n          </div>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            :aria-label=\"`${reminders.has(event.id) ? 'Remove reminder for' : 'Remind me about'} ${event.title}`\"\n            :aria-pressed=\"reminders.has(event.id)\"\n            @click=\"toggleReminder(event.id)\"\n            ><Icon\n              :name=\"reminders.has(event.id) ? 'lucide:bell-ring' : 'lucide:bell'\"\n              class=\"size-4\"\n              :class=\"reminders.has(event.id) ? 'text-primary' : ''\"\n          /></UiButton>\n        </li>\n      </ul>\n      <p\n        v-if=\"!next\"\n        class=\"text-muted-foreground px-5 py-10 text-center text-sm\"\n        aria-live=\"polite\"\n      >\n        You have nothing coming up {{ range === \"today\" ? \"today\" : \"this week\" }}.\n      </p>\n    </UiCard>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Range = \"today\" | \"week\";\n  type Event = {\n    id: string;\n    title: string;\n    date: string;\n    start: string;\n    end: string;\n    place: string;\n    people: number[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      /** The current moment as `YYYY-MM-DDTHH:mm`. Pass the real time in your own app. */\n      now?: string;\n      events?: Event[];\n    }>(),\n    {\n      now: \"2026-10-18T10:20\",\n      events: () => [\n        {\n          id: \"u1\",\n          title: \"Weekly planning\",\n          date: \"2026-10-18\",\n          start: \"10:45\",\n          end: \"11:30\",\n          place: \"Meeting room 2\",\n          people: [32, 12, 44],\n        },\n        {\n          id: \"u2\",\n          title: \"Design review\",\n          date: \"2026-10-18\",\n          start: \"14:00\",\n          end: \"15:30\",\n          place: \"Video call\",\n          people: [32, 45],\n        },\n        {\n          id: \"u3\",\n          title: \"Customer interview\",\n          date: \"2026-10-19\",\n          start: \"11:00\",\n          end: \"12:00\",\n          place: \"Video call\",\n          people: [15],\n        },\n        {\n          id: \"u4\",\n          title: \"Sprint planning\",\n          date: \"2026-10-21\",\n          start: \"10:00\",\n          end: \"11:30\",\n          place: \"Meeting room 1\",\n          people: [12, 15, 45, 44],\n        },\n        {\n          id: \"u5\",\n          title: \"Demo day\",\n          date: \"2026-10-23\",\n          start: \"16:00\",\n          end: \"17:00\",\n          place: \"Main hall\",\n          people: [33, 32],\n        },\n        {\n          id: \"u6\",\n          title: \"Quarterly review\",\n          date: \"2026-10-27\",\n          start: \"14:00\",\n          end: \"16:00\",\n          place: \"Boardroom\",\n          people: [45, 33],\n        },\n      ],\n    }\n  );\n\n  const range = ref<Range>(\"week\");\n  const reminders = ref(new Set<string>([\"u2\"]));\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const minutes = (time: string) => Number(time.slice(0, 2)) * 60 + Number(time.slice(3, 5));\n  const clock = (time: string) => {\n    const hour = Number(time.slice(0, 2));\n    return `${hour % 12 || 12}:${time.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n  const monthShort = (iso: string) =>\n    parse(iso).toLocaleDateString(\"en-US\", { month: \"short\", timeZone: \"UTC\" });\n  const stamp = (event: Event) => `${event.date}T${event.start}`;\n\n  const visible = computed(() => {\n    const today = props.now.slice(0, 10);\n    const limit = new Date(parse(today).getTime() + 6 * 86_400_000).toISOString().slice(0, 10);\n    return props.events\n      .filter((event) => stamp(event) >= props.now.slice(0, 16))\n      .filter((event) => (range.value === \"today\" ? event.date === today : event.date <= limit))\n      .sort((a, b) => stamp(a).localeCompare(stamp(b)));\n  });\n  const next = computed(() => visible.value[0]);\n  const rest = computed(() => visible.value.slice(1));\n\n  function dayLabel(iso: string) {\n    const diff = Math.round(\n      (parse(iso).getTime() - parse(props.now.slice(0, 10)).getTime()) / 86_400_000\n    );\n    if (diff === 0) return \"Today\";\n    if (diff === 1) return \"Tomorrow\";\n    return parse(iso).toLocaleDateString(\"en-US\", { weekday: \"long\", timeZone: \"UTC\" });\n  }\n\n  function countdown(event: Event) {\n    const days = Math.round(\n      (parse(event.date).getTime() - parse(props.now.slice(0, 10)).getTime()) / 86_400_000\n    );\n    const total = days * 1440 + minutes(event.start) - minutes(props.now.slice(11, 16));\n    if (total >= 1440) return `Starts in ${Math.floor(total / 1440)} days`;\n    if (total >= 60) return `Starts in ${Math.floor(total / 60)}h ${total % 60}m`;\n    return `Starts in ${total} min`;\n  }\n\n  function toggleReminder(id: string) {\n    const next = new Set(reminders.value);\n    if (next.has(id)) next.delete(id);\n    else next.add(id);\n    reminders.value = next;\n  }\n</script>\n","category":"WeekAgenda","description":"Upcoming events card. Features: Card with the next event highlighted with a countdown and a join button, a list of the following events with date chips and attendees, a today or this week switch and a reminder toggle per event","path":"Calendar/WeekAgenda/BlockWeekAgenda5.vue","components":["avatar","button","card","container","toggle-group"]},{"name":"Week Agenda 6","fileName":"BlockWeekAgenda6.vue","file":"<template>\n  <!--\n    Team schedule with free slots\n    Features: One row per teammate with busy blocks across the working day, out of office rows, a highlighted best time to meet when everyone is free, hour labels with a current time marker and previous and next day buttons\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <div class=\"flex flex-wrap items-center justify-between gap-3\">\n      <div>\n        <h1 class=\"text-2xl font-bold tracking-tight\" aria-live=\"polite\">Team schedule</h1>\n        <p class=\"text-muted-foreground text-sm\">{{ title }}</p>\n      </div>\n      <div class=\"flex gap-2\">\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Previous day\" @click=\"shift(-1)\"\n          ><Icon name=\"lucide:chevron-left\" class=\"size-4\"\n        /></UiButton>\n        <UiButton variant=\"outline\" size=\"icon\" aria-label=\"Next day\" @click=\"shift(1)\"\n          ><Icon name=\"lucide:chevron-right\" class=\"size-4\"\n        /></UiButton>\n      </div>\n    </div>\n\n    <div class=\"mt-6 rounded-xl border p-4\" aria-live=\"polite\">\n      <p class=\"flex items-center gap-2 text-sm font-medium\">\n        <Icon name=\"lucide:sparkles\" class=\"text-primary size-4\" />Best time to meet\n      </p>\n      <div v-if=\"slots.length\" class=\"mt-3 flex flex-wrap gap-2\">\n        <UiButton\n          v-for=\"slot in slots\"\n          :key=\"slot.start\"\n          size=\"sm\"\n          :variant=\"chosen === slot.start ? 'default' : 'outline'\"\n          :aria-pressed=\"chosen === slot.start\"\n          @click=\"chosen = chosen === slot.start ? '' : slot.start\"\n          >{{ clock(slot.start) }} to {{ clock(slot.end) }}</UiButton\n        >\n      </div>\n      <p v-else class=\"text-muted-foreground mt-2 text-sm\">\n        Nobody shares a free hour on this day.\n      </p>\n    </div>\n\n    <div class=\"mt-4 overflow-x-auto rounded-xl border\">\n      <div class=\"min-w-[44rem]\">\n        <div class=\"grid grid-cols-[11rem_1fr] border-b\" aria-hidden=\"true\">\n          <div />\n          <div class=\"relative h-8\">\n            <span\n              v-for=\"hour in marks.slice(0, -1)\"\n              :key=\"hour\"\n              class=\"text-muted-foreground absolute top-2 -translate-x-1/2 text-[11px]\"\n              :style=\"{ left: `${pct(hour * 60)}%` }\"\n              >{{ hourLabel(hour) }}</span\n            >\n          </div>\n        </div>\n        <ul>\n          <li\n            v-for=\"person in rows\"\n            :key=\"person.id\"\n            class=\"grid grid-cols-[11rem_1fr] items-center border-b last:border-b-0\"\n          >\n            <div class=\"flex items-center gap-2.5 px-3 py-3\">\n              <UiAvatar\n                :src=\"`https://i.pravatar.cc/80?img=${person.avatar}`\"\n                :fallback=\"person.name.slice(0, 1)\"\n                class=\"size-8\"\n              />\n              <div class=\"min-w-0\">\n                <p class=\"truncate text-sm font-medium\">{{ person.name }}</p>\n                <p class=\"text-muted-foreground truncate text-xs\">{{ person.role }}</p>\n              </div>\n            </div>\n            <div\n              class=\"relative my-2 h-9 rounded-md\"\n              :class=\"person.out ? 'bg-muted' : 'bg-muted/40'\"\n            >\n              <span\n                v-for=\"mark in marks\"\n                :key=\"mark\"\n                class=\"bg-border/60 absolute inset-y-0 w-px\"\n                :style=\"{ left: `${pct(mark * 60)}%` }\"\n                aria-hidden=\"true\"\n              />\n              <span\n                v-if=\"chosenSlot\"\n                class=\"border-primary/60 bg-primary/10 absolute inset-y-0 rounded border border-dashed\"\n                :style=\"span(chosenSlot.start, chosenSlot.end)\"\n                aria-hidden=\"true\"\n              />\n              <p\n                v-if=\"person.out\"\n                class=\"text-muted-foreground absolute inset-0 grid place-items-center text-xs\"\n              >\n                Out of office\n              </p>\n              <span\n                v-for=\"block in person.blocks\"\n                :key=\"block.title + block.start\"\n                class=\"absolute inset-y-1 truncate rounded px-1.5 text-[11px] leading-7 font-medium\"\n                :class=\"colors[block.color]\"\n                :style=\"span(block.start, block.end)\"\n                :title=\"`${block.title}, ${clock(block.start)} to ${clock(block.end)}`\"\n                >{{ block.title }}</span\n              >\n            </div>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Color = \"blue\" | \"green\" | \"amber\" | \"rose\" | \"violet\";\n  type Block = { date: string; start: string; end: string; title: string; color: Color };\n  type Person = {\n    id: string;\n    name: string;\n    role: string;\n    avatar: number;\n    out?: string[];\n    blocks: Block[];\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      today?: string;\n      people?: Person[];\n    }>(),\n    {\n      today: \"2026-10-18\",\n      people: () => [\n        {\n          id: \"p1\",\n          name: \"Maya Patel\",\n          role: \"Product designer\",\n          avatar: 32,\n          blocks: [\n            {\n              date: \"2026-10-18\",\n              start: \"09:00\",\n              end: \"10:00\",\n              title: \"Standup and sync\",\n              color: \"blue\",\n            },\n            {\n              date: \"2026-10-18\",\n              start: \"14:00\",\n              end: \"15:00\",\n              title: \"Design review\",\n              color: \"violet\",\n            },\n            { date: \"2026-10-19\", start: \"10:00\", end: \"12:00\", title: \"Workshop\", color: \"rose\" },\n          ],\n        },\n        {\n          id: \"p2\",\n          name: \"Leo Fischer\",\n          role: \"Engineer\",\n          avatar: 12,\n          blocks: [\n            {\n              date: \"2026-10-18\",\n              start: \"09:00\",\n              end: \"10:00\",\n              title: \"Standup and sync\",\n              color: \"blue\",\n            },\n            {\n              date: \"2026-10-18\",\n              start: \"11:00\",\n              end: \"12:30\",\n              title: \"Code review\",\n              color: \"green\",\n            },\n            {\n              date: \"2026-10-18\",\n              start: \"14:00\",\n              end: \"15:00\",\n              title: \"Design review\",\n              color: \"violet\",\n            },\n            { date: \"2026-10-19\", start: \"09:00\", end: \"11:00\", title: \"Pairing\", color: \"green\" },\n          ],\n        },\n        {\n          id: \"p3\",\n          name: \"Sofia Alvarez\",\n          role: \"Product manager\",\n          avatar: 45,\n          out: [\"2026-10-19\"],\n          blocks: [\n            { date: \"2026-10-18\", start: \"09:00\", end: \"10:30\", title: \"Roadmap\", color: \"amber\" },\n            {\n              date: \"2026-10-18\",\n              start: \"14:00\",\n              end: \"16:00\",\n              title: \"Customer calls\",\n              color: \"rose\",\n            },\n          ],\n        },\n        {\n          id: \"p4\",\n          name: \"Noah Kim\",\n          role: \"Engineering manager\",\n          avatar: 15,\n          blocks: [\n            {\n              date: \"2026-10-18\",\n              start: \"09:30\",\n              end: \"11:00\",\n              title: \"Hiring loop\",\n              color: \"amber\",\n            },\n            {\n              date: \"2026-10-18\",\n              start: \"12:00\",\n              end: \"13:00\",\n              title: \"Lunch with CTO\",\n              color: \"green\",\n            },\n            { date: \"2026-10-19\", start: \"13:00\", end: \"14:00\", title: \"1:1s\", color: \"blue\" },\n          ],\n        },\n      ],\n    }\n  );\n\n  const DAY_START = 8 * 60;\n  const DAY_END = 18 * 60;\n  const marks = Array.from({ length: 11 }, (_, index) => 8 + index);\n  const colors: Record<Color, string> = {\n    blue: \"bg-blue-200 text-blue-900 dark:bg-blue-500/30 dark:text-blue-200\",\n    green: \"bg-green-200 text-green-900 dark:bg-green-500/30 dark:text-green-200\",\n    amber: \"bg-amber-200 text-amber-900 dark:bg-amber-500/30 dark:text-amber-200\",\n    rose: \"bg-rose-200 text-rose-900 dark:bg-rose-500/30 dark:text-rose-200\",\n    violet: \"bg-violet-200 text-violet-900 dark:bg-violet-500/30 dark:text-violet-200\",\n  };\n\n  const parse = (iso: string) => new Date(`${iso}T00:00:00Z`);\n  const fmt = (date: Date) => date.toISOString().slice(0, 10);\n  const minutes = (time: string) => Number(time.slice(0, 2)) * 60 + Number(time.slice(3, 5));\n  const pad = (value: number) => String(value).padStart(2, \"0\");\n  const time = (total: number) => `${pad(Math.floor(total / 60))}:${pad(total % 60)}`;\n  const clock = (value: string) => {\n    const hour = Number(value.slice(0, 2));\n    return `${hour % 12 || 12}:${value.slice(3, 5)} ${hour < 12 ? \"AM\" : \"PM\"}`;\n  };\n  const hourLabel = (hour: number) => `${hour % 12 || 12}${hour < 12 ? \"a\" : \"p\"}`;\n  const pct = (total: number) => ((total - DAY_START) / (DAY_END - DAY_START)) * 100;\n  const span = (start: string, end: string) => ({\n    left: `${pct(minutes(start))}%`,\n    width: `${pct(minutes(end)) - pct(minutes(start))}%`,\n  });\n\n  const day = ref(props.today);\n  const chosen = ref(\"\");\n  const title = computed(() =>\n    parse(day.value).toLocaleDateString(\"en-US\", {\n      weekday: \"long\",\n      month: \"long\",\n      day: \"numeric\",\n      timeZone: \"UTC\",\n    })\n  );\n\n  const rows = computed(() =>\n    props.people.map((person) => ({\n      ...person,\n      out: person.out?.includes(day.value) ?? false,\n      blocks: person.blocks.filter((block) => block.date === day.value),\n    }))\n  );\n\n  /** Free windows of an hour or more where nobody is busy or out of office. */\n  const slots = computed(() => {\n    if (rows.value.some((person) => person.out)) return [];\n    const busy = rows.value\n      .flatMap((person) => person.blocks.map((block) => [minutes(block.start), minutes(block.end)]))\n      .sort((a, b) => a[0]! - b[0]!);\n    const free: { start: string; end: string }[] = [];\n    let cursor = DAY_START + 60;\n    const limit = DAY_END - 60;\n    for (const [from, to] of busy) {\n      if (from! - cursor >= 60) free.push({ start: time(cursor), end: time(from!) });\n      cursor = Math.max(cursor, to!);\n    }\n    if (limit - cursor >= 60) free.push({ start: time(cursor), end: time(limit) });\n    return free;\n  });\n  const chosenSlot = computed(() => slots.value.find((slot) => slot.start === chosen.value));\n\n  function shift(step: number) {\n    const date = parse(day.value);\n    date.setUTCDate(date.getUTCDate() + step);\n    day.value = fmt(date);\n    chosen.value = \"\";\n  }\n</script>\n","category":"WeekAgenda","description":"Team schedule with free slots. Features: One row per teammate with busy blocks across the working day, out of office rows, a highlighted best time to meet when everyone is free, hour labels with a current time marker and previous and next day buttons","path":"Calendar/WeekAgenda/BlockWeekAgenda6.vue","components":["avatar","button","container"]},{"name":"Welcome 1","fileName":"BlockWelcome1.vue","file":"<template>\n  <!--\n    Welcome screen with quick start actions\n    Features: Friendly greeting with the user name, three quick start cards with icons, a primary action, skip for now link and a checkmark badge on completed actions\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl text-center\">\n      <span class=\"bg-primary/10 text-primary mx-auto grid size-14 place-items-center rounded-2xl\">\n        <Icon name=\"lucide:party-popper\" class=\"size-7\" />\n      </span>\n      <h1 class=\"mt-6 text-3xl font-bold tracking-tight text-balance sm:text-4xl\">\n        Welcome to {{ product }}, {{ name }}\n      </h1>\n      <p class=\"text-muted-foreground mx-auto mt-3 max-w-xl text-lg text-balance\">\n        Your workspace is ready. Pick a place to start and you will be up and running in minutes.\n      </p>\n    </div>\n\n    <ul class=\"mx-auto mt-12 grid max-w-4xl gap-4 sm:grid-cols-3\">\n      <li v-for=\"action in actions\" :key=\"action.title\">\n        <button\n          type=\"button\"\n          class=\"hover:border-primary/50 hover:bg-muted/40 focus-visible:ring-ring/50 group relative flex h-full w-full flex-col items-start rounded-xl border p-5 text-left transition outline-none focus-visible:ring-[3px]\"\n          @click=\"done.includes(action.title) ? undefined : done.push(action.title)\"\n        >\n          <span\n            class=\"bg-muted group-hover:bg-primary/10 grid size-10 place-items-center rounded-lg\"\n          >\n            <Icon :name=\"action.icon\" class=\"size-5\" />\n          </span>\n          <span class=\"mt-4 font-semibold\">{{ action.title }}</span>\n          <span class=\"text-muted-foreground mt-1 text-sm\">{{ action.description }}</span>\n          <span\n            v-if=\"done.includes(action.title)\"\n            class=\"absolute top-4 right-4 grid size-6 place-items-center rounded-full bg-green-500 text-white\"\n          >\n            <Icon name=\"lucide:check\" class=\"size-3.5\" />\n            <span class=\"sr-only\">Done</span>\n          </span>\n        </button>\n      </li>\n    </ul>\n\n    <div class=\"mt-10 flex flex-col items-center gap-3\">\n      <UiButton size=\"lg\" @click=\"useSonner.success('Taking you to your dashboard')\">\n        Go to dashboard\n        <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n      </UiButton>\n      <UiButton\n        variant=\"link\"\n        class=\"text-muted-foreground\"\n        @click=\"useSonner.info('Skipped for now')\"\n      >\n        Skip for now\n      </UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Action = { title: string; description: string; icon: string };\n\n  withDefaults(\n    defineProps<{\n      name?: string;\n      product?: string;\n      actions?: Action[];\n    }>(),\n    {\n      name: \"Maya\",\n      product: \"Acme\",\n      actions: () => [\n        {\n          title: \"Create a project\",\n          description: \"Start from a blank canvas or a template.\",\n          icon: \"lucide:folder-plus\",\n        },\n        {\n          title: \"Invite your team\",\n          description: \"Collaborate in real time with teammates.\",\n          icon: \"lucide:users\",\n        },\n        {\n          title: \"Connect a tool\",\n          description: \"Bring in data from the apps you already use.\",\n          icon: \"lucide:plug\",\n        },\n      ],\n    }\n  );\n\n  const done = ref<string[]>([]);\n</script>\n","category":"Welcome","description":"Welcome screen with quick start actions. Features: Friendly greeting with the user name, three quick start cards with icons, a primary action, skip for now link and a checkmark badge on completed actions","path":"Onboarding/Welcome/BlockWelcome1.vue","components":["button","container"]},{"name":"Welcome 2","fileName":"BlockWelcome2.vue","file":"<template>\n  <!--\n    Product tour with slides and progress dots\n    Features: One slide at a time with icon, title and text, previous and next buttons, clickable progress dots, skip tour link, finish button on the last slide and live region announcements\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-lg\">\n      <UiCard class=\"gap-0 overflow-hidden pt-0\">\n        <div\n          class=\"from-primary/15 to-primary/5 grid h-44 place-items-center bg-linear-to-br\"\n          aria-hidden=\"true\"\n        >\n          <span class=\"bg-background grid size-20 place-items-center rounded-2xl shadow-sm\">\n            <Icon :name=\"slide.icon\" class=\"text-primary size-10\" />\n          </span>\n        </div>\n        <UiCardContent class=\"py-6 text-center\">\n          <p class=\"text-muted-foreground text-xs font-medium tracking-wide uppercase\">\n            Step {{ index + 1 }} of {{ slides.length }}\n          </p>\n          <div aria-live=\"polite\">\n            <h1 class=\"mt-2 text-2xl font-bold tracking-tight\">{{ slide.title }}</h1>\n            <p class=\"text-muted-foreground mt-2 text-balance\">{{ slide.description }}</p>\n          </div>\n\n          <div class=\"mt-6 flex justify-center gap-2\" role=\"tablist\" aria-label=\"Tour progress\">\n            <button\n              v-for=\"(item, i) in slides\"\n              :key=\"item.title\"\n              type=\"button\"\n              role=\"tab\"\n              :aria-selected=\"i === index\"\n              :aria-label=\"`Go to step ${i + 1}: ${item.title}`\"\n              class=\"focus-visible:ring-ring/50 h-2 rounded-full transition-all outline-none focus-visible:ring-[3px]\"\n              :class=\"\n                i === index\n                  ? 'bg-primary w-6'\n                  : 'bg-muted-foreground/30 hover:bg-muted-foreground/50 w-2'\n              \"\n              @click=\"index = i\"\n            />\n          </div>\n        </UiCardContent>\n        <UiCardFooter class=\"justify-between gap-2\">\n          <UiButton variant=\"ghost\" @click=\"useSonner.info('Tour skipped')\">Skip tour</UiButton>\n          <div class=\"flex gap-2\">\n            <UiButton v-if=\"index > 0\" variant=\"outline\" @click=\"index--\">Back</UiButton>\n            <UiButton v-if=\"index < slides.length - 1\" @click=\"index++\">\n              Next\n              <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n            </UiButton>\n            <UiButton v-else @click=\"useSonner.success('Tour complete')\">Get started</UiButton>\n          </div>\n        </UiCardFooter>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Slide = { title: string; description: string; icon: string };\n\n  const props = withDefaults(\n    defineProps<{\n      slides?: Slide[];\n    }>(),\n    {\n      slides: () => [\n        {\n          title: \"Everything in one place\",\n          description: \"Projects, tasks and conversations live side by side so nothing gets lost.\",\n          icon: \"lucide:layout-dashboard\",\n        },\n        {\n          title: \"Work together in real time\",\n          description:\n            \"See who is online, leave comments and share updates without leaving the page.\",\n          icon: \"lucide:users-round\",\n        },\n        {\n          title: \"Automate the busywork\",\n          description: \"Set up rules once and let your workspace handle repeat tasks for you.\",\n          icon: \"lucide:wand-sparkles\",\n        },\n        {\n          title: \"Track what matters\",\n          description: \"Live dashboards show progress, blockers and trends at a glance.\",\n          icon: \"lucide:chart-no-axes-combined\",\n        },\n      ],\n    }\n  );\n\n  const index = ref(0);\n  const slide = computed(() => props.slides[index.value] ?? props.slides[0]!);\n</script>\n","category":"Welcome","description":"Product tour with slides and progress dots. Features: One slide at a time with icon, title and text, previous and next buttons, clickable progress dots, skip tour link, finish button on the last slide and live region announcements","path":"Onboarding/Welcome/BlockWelcome2.vue","components":["button","card","container"]},{"name":"Welcome 3","fileName":"BlockWelcome3.vue","file":"<template>\n  <!--\n    Role picker with selectable cards\n    Features: Radio group styled as large cards, icon and description for each role, highlighted selected card, continue button that stays disabled until a role is chosen\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl\">\n      <p class=\"text-muted-foreground text-sm font-medium\">Step 1 of 3</p>\n      <h1 class=\"mt-2 text-3xl font-bold tracking-tight\">What best describes your role?</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        We will tailor your workspace and suggestions to match.\n      </p>\n\n      <UiRadioGroup v-model=\"role\" class=\"mt-8 grid gap-3 sm:grid-cols-2\" aria-label=\"Your role\">\n        <label\n          v-for=\"option in roles\"\n          :key=\"option.value\"\n          :for=\"`role-${option.value}`\"\n          class=\"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 flex cursor-pointer items-start gap-3 rounded-xl border p-4 transition\"\n        >\n          <UiRadioGroupItem :id=\"`role-${option.value}`\" :value=\"option.value\" class=\"mt-1\" />\n          <span class=\"bg-muted grid size-10 shrink-0 place-items-center rounded-lg\">\n            <Icon :name=\"option.icon\" class=\"size-5\" />\n          </span>\n          <span>\n            <span class=\"block font-medium\">{{ option.label }}</span>\n            <span class=\"text-muted-foreground block text-sm\">{{ option.description }}</span>\n          </span>\n        </label>\n      </UiRadioGroup>\n\n      <div class=\"mt-8 flex items-center justify-between\">\n        <UiButton variant=\"ghost\" @click=\"useSonner.info('Skipped')\">Skip</UiButton>\n        <UiButton :disabled=\"!role\" @click=\"useSonner.success(`Saved role: ${role}`)\">\n          Continue\n          <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Role = { value: string; label: string; description: string; icon: string };\n\n  withDefaults(\n    defineProps<{\n      roles?: Role[];\n    }>(),\n    {\n      roles: () => [\n        {\n          value: \"founder\",\n          label: \"Founder\",\n          description: \"Running the whole show.\",\n          icon: \"lucide:rocket\",\n        },\n        {\n          value: \"engineer\",\n          label: \"Engineer\",\n          description: \"Building and shipping product.\",\n          icon: \"lucide:code-xml\",\n        },\n        {\n          value: \"designer\",\n          label: \"Designer\",\n          description: \"Crafting how it looks and feels.\",\n          icon: \"lucide:pen-tool\",\n        },\n        {\n          value: \"product\",\n          label: \"Product manager\",\n          description: \"Deciding what to build next.\",\n          icon: \"lucide:compass\",\n        },\n        {\n          value: \"marketing\",\n          label: \"Marketing\",\n          description: \"Telling the story and growing.\",\n          icon: \"lucide:megaphone\",\n        },\n        {\n          value: \"other\",\n          label: \"Something else\",\n          description: \"None of the above fits.\",\n          icon: \"lucide:sparkles\",\n        },\n      ],\n    }\n  );\n\n  const role = ref<string>();\n</script>\n","category":"Welcome","description":"Role picker with selectable cards. Features: Radio group styled as large cards, icon and description for each role, highlighted selected card, continue button that stays disabled until a role is chosen","path":"Onboarding/Welcome/BlockWelcome3.vue","components":["button","container","radio-group"]},{"name":"Welcome 4","fileName":"BlockWelcome4.vue","file":"<template>\n  <!--\n    Use case picker with multi select cards\n    Features: Checkbox cards with icons, pick as many as you like, live selected count, continue button disabled until one is chosen and a select none shortcut\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl\">\n      <p class=\"text-muted-foreground text-sm font-medium\">Step 2 of 3</p>\n      <h1 class=\"mt-2 text-3xl font-bold tracking-tight\">What do you want to get done?</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        Choose everything that applies. You can change this later.\n      </p>\n\n      <ul class=\"mt-8 grid gap-3 sm:grid-cols-2\">\n        <li v-for=\"option in options\" :key=\"option.value\">\n          <label\n            :for=\"`use-${option.value}`\"\n            class=\"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 flex h-full cursor-pointer items-start gap-3 rounded-xl border p-4 transition\"\n          >\n            <UiCheckbox\n              :id=\"`use-${option.value}`\"\n              class=\"mt-1\"\n              :model-value=\"selected.includes(option.value)\"\n              @update:model-value=\"toggle(option.value)\"\n            />\n            <span class=\"bg-muted grid size-10 shrink-0 place-items-center rounded-lg\">\n              <Icon :name=\"option.icon\" class=\"size-5\" />\n            </span>\n            <span>\n              <span class=\"block font-medium\">{{ option.label }}</span>\n              <span class=\"text-muted-foreground block text-sm\">{{ option.description }}</span>\n            </span>\n          </label>\n        </li>\n      </ul>\n\n      <div class=\"mt-8 flex flex-wrap items-center justify-between gap-3\">\n        <div class=\"flex items-center gap-3 text-sm\">\n          <span class=\"text-muted-foreground\" aria-live=\"polite\"\n            >{{ selected.length }} selected</span\n          >\n          <UiButton v-if=\"selected.length\" variant=\"link\" class=\"h-auto p-0\" @click=\"selected = []\">\n            Clear\n          </UiButton>\n        </div>\n        <UiButton :disabled=\"!selected.length\" @click=\"useSonner.success('Preferences saved')\">\n          Continue\n          <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n        </UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Option = { value: string; label: string; description: string; icon: string };\n\n  withDefaults(\n    defineProps<{\n      options?: Option[];\n    }>(),\n    {\n      options: () => [\n        {\n          value: \"projects\",\n          label: \"Manage projects\",\n          description: \"Plan work and hit deadlines.\",\n          icon: \"lucide:kanban\",\n        },\n        {\n          value: \"docs\",\n          label: \"Write docs\",\n          description: \"Capture knowledge in one place.\",\n          icon: \"lucide:file-text\",\n        },\n        {\n          value: \"crm\",\n          label: \"Track customers\",\n          description: \"Keep every conversation in view.\",\n          icon: \"lucide:contact\",\n        },\n        {\n          value: \"reports\",\n          label: \"Build reports\",\n          description: \"Share metrics with the team.\",\n          icon: \"lucide:chart-column\",\n        },\n        {\n          value: \"automation\",\n          label: \"Automate workflows\",\n          description: \"Remove repetitive steps.\",\n          icon: \"lucide:workflow\",\n        },\n        {\n          value: \"support\",\n          label: \"Support users\",\n          description: \"Answer questions faster.\",\n          icon: \"lucide:life-buoy\",\n        },\n      ],\n    }\n  );\n\n  const selected = ref<string[]>([]);\n\n  function toggle(value: string) {\n    selected.value = selected.value.includes(value)\n      ? selected.value.filter((item) => item !== value)\n      : [...selected.value, value];\n  }\n</script>\n","category":"Welcome","description":"Use case picker with multi select cards. Features: Checkbox cards with icons, pick as many as you like, live selected count, continue button disabled until one is chosen and a select none shortcut","path":"Onboarding/Welcome/BlockWelcome4.vue","components":["button","checkbox","container"]},{"name":"Welcome 5","fileName":"BlockWelcome5.vue","file":"<template>\n  <!--\n    Plan picker for a first time user\n    Features: Billing period toggle with a savings badge, three selectable plan cards with a recommended badge, feature checklists, price that follows the period and a continue button that names the plan\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-4xl text-center\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Choose how you want to start</h1>\n      <p class=\"text-muted-foreground mt-2\">You can switch plans or cancel at any time.</p>\n\n      <div class=\"mt-6 inline-flex items-center gap-3\">\n        <UiLabel for=\"yearly\" class=\"cursor-pointer\">Monthly</UiLabel>\n        <UiSwitch id=\"yearly\" v-model=\"yearly\" aria-label=\"Bill yearly\" />\n        <UiLabel for=\"yearly\" class=\"cursor-pointer\">\n          Yearly\n          <UiBadge variant=\"soft\" color=\"green\" shape=\"pill\">Save 20%</UiBadge>\n        </UiLabel>\n      </div>\n    </div>\n\n    <UiRadioGroup\n      v-model=\"selected\"\n      class=\"mx-auto mt-10 grid max-w-4xl gap-4 md:grid-cols-3\"\n      aria-label=\"Plan\"\n    >\n      <label\n        v-for=\"plan in plans\"\n        :key=\"plan.value\"\n        :for=\"`plan-${plan.value}`\"\n        class=\"has-data-[state=checked]:border-primary has-data-[state=checked]:ring-primary/30 relative flex cursor-pointer flex-col rounded-xl border p-6 transition has-data-[state=checked]:ring-4\"\n      >\n        <UiBadge v-if=\"plan.recommended\" class=\"absolute -top-2.5 left-6\">Recommended</UiBadge>\n        <span class=\"flex items-center justify-between\">\n          <span class=\"text-lg font-semibold\">{{ plan.name }}</span>\n          <UiRadioGroupItem :id=\"`plan-${plan.value}`\" :value=\"plan.value\" />\n        </span>\n        <span class=\"mt-3 flex items-baseline gap-1\">\n          <span class=\"text-3xl font-bold tabular-nums\">${{ price(plan) }}</span>\n          <span class=\"text-muted-foreground text-sm\">/ user / month</span>\n        </span>\n        <span class=\"text-muted-foreground mt-2 text-sm\">{{ plan.description }}</span>\n        <ul class=\"mt-4 space-y-2 text-sm\">\n          <li v-for=\"feature in plan.features\" :key=\"feature\" class=\"flex items-start gap-2\">\n            <Icon name=\"lucide:check\" class=\"text-primary mt-0.5 size-4 shrink-0\" />\n            {{ feature }}\n          </li>\n        </ul>\n      </label>\n    </UiRadioGroup>\n\n    <div class=\"mt-8 flex justify-center\">\n      <UiButton size=\"lg\" @click=\"useSonner.success(`Started on the ${current.name} plan`)\">\n        Continue with {{ current.name }}\n      </UiButton>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Plan = {\n    value: string;\n    name: string;\n    monthly: number;\n    description: string;\n    features: string[];\n    recommended?: boolean;\n  };\n\n  const props = withDefaults(\n    defineProps<{\n      plans?: Plan[];\n    }>(),\n    {\n      plans: () => [\n        {\n          value: \"free\",\n          name: \"Free\",\n          monthly: 0,\n          description: \"For trying things out.\",\n          features: [\"Up to 3 projects\", \"Basic reporting\", \"Community support\"],\n        },\n        {\n          value: \"pro\",\n          name: \"Pro\",\n          monthly: 12,\n          description: \"For individuals and small teams.\",\n          features: [\"Unlimited projects\", \"Advanced reporting\", \"Priority email support\"],\n          recommended: true,\n        },\n        {\n          value: \"team\",\n          name: \"Team\",\n          monthly: 24,\n          description: \"For growing companies.\",\n          features: [\"Everything in Pro\", \"SSO and audit logs\", \"Dedicated success manager\"],\n        },\n      ],\n    }\n  );\n\n  const yearly = ref(true);\n  const selected = ref(\"pro\");\n\n  function price(plan: Plan) {\n    return Math.round(plan.monthly * (yearly.value ? 0.8 : 1));\n  }\n\n  const current = computed(\n    () => props.plans.find((plan) => plan.value === selected.value) ?? props.plans[0]!\n  );\n</script>\n","category":"Welcome","description":"Plan picker for a first time user. Features: Billing period toggle with a savings badge, three selectable plan cards with a recommended badge, feature checklists, price that follows the period and a continue button that names the plan","path":"Onboarding/Welcome/BlockWelcome5.vue","components":["badge","button","container","label","radio-group","switch"]},{"name":"Welcome 6","fileName":"BlockWelcome6.vue","file":"<template>\n  <!--\n    Personalised welcome banner with setup progress\n    Features: Greeting with avatar and name, circular setup progress, the next recommended step with a call to action, quick links and a dismiss button\n  -->\n  <UiContainer class=\"py-12 lg:py-20\">\n    <section\n      v-if=\"!dismissed\"\n      class=\"from-primary/10 via-background to-background relative overflow-hidden rounded-2xl border bg-linear-to-br p-6 sm:p-8\"\n      aria-labelledby=\"welcome-heading\"\n    >\n      <UiButton\n        variant=\"ghost\"\n        size=\"icon-sm\"\n        class=\"absolute top-3 right-3\"\n        aria-label=\"Dismiss welcome banner\"\n        @click=\"dismissed = true\"\n      >\n        <Icon name=\"lucide:x\" class=\"size-4\" />\n      </UiButton>\n\n      <div class=\"flex flex-col gap-8 md:flex-row md:items-center md:justify-between\">\n        <div class=\"flex items-start gap-4\">\n          <UiAvatar :src=\"avatar\" :fallback=\"name[0]\" class=\"size-14\" />\n          <div class=\"pr-8\">\n            <h1 id=\"welcome-heading\" class=\"text-2xl font-bold tracking-tight\">\n              Welcome back, {{ name }}\n            </h1>\n            <p class=\"text-muted-foreground mt-1\">\n              You have finished {{ completed }} of {{ steps.length }} setup steps.\n            </p>\n            <div class=\"mt-5 flex flex-wrap gap-2\">\n              <UiButton @click=\"useSonner.info(`Opening: ${next?.title}`)\">\n                {{ next?.title }}\n                <Icon name=\"lucide:arrow-right\" class=\"size-4\" />\n              </UiButton>\n              <UiButton variant=\"outline\" @click=\"useSonner.info('Opening the help center')\">\n                Read the guide\n              </UiButton>\n            </div>\n          </div>\n        </div>\n\n        <div class=\"flex items-center gap-4\">\n          <UiCircularProgress\n            :current-step=\"completed\"\n            :total-steps=\"steps.length\"\n            size=\"lg\"\n            show-value\n            aria-label=\"Setup progress\"\n          />\n          <div class=\"text-sm\">\n            <p class=\"font-medium\">Setup progress</p>\n            <p class=\"text-muted-foreground\">Next up: {{ next?.title }}</p>\n          </div>\n        </div>\n      </div>\n    </section>\n    <div\n      v-else\n      class=\"flex items-center justify-between rounded-xl border border-dashed p-4 text-sm\"\n    >\n      <span class=\"text-muted-foreground\">Welcome banner dismissed.</span>\n      <UiButton variant=\"link\" class=\"h-auto p-0\" @click=\"dismissed = false\"\n        >Show it again</UiButton\n      >\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Step = { title: string; done: boolean };\n\n  const props = withDefaults(\n    defineProps<{\n      name?: string;\n      avatar?: string;\n      steps?: Step[];\n    }>(),\n    {\n      name: \"Maya\",\n      avatar: \"https://i.pravatar.cc/120?img=47\",\n      steps: () => [\n        { title: \"Create your account\", done: true },\n        { title: \"Verify your email\", done: true },\n        { title: \"Invite a teammate\", done: false },\n        { title: \"Connect your first integration\", done: false },\n        { title: \"Publish your first project\", done: false },\n      ],\n    }\n  );\n\n  const dismissed = ref(false);\n\n  const completed = computed(() => props.steps.filter((step) => step.done).length);\n  const next = computed(() => props.steps.find((step) => !step.done));\n</script>\n","category":"Welcome","description":"Personalised welcome banner with setup progress. Features: Greeting with avatar and name, circular setup progress, the next recommended step with a call to action, quick links and a dismiss button","path":"Onboarding/Welcome/BlockWelcome6.vue","components":["avatar","button","circular-progress","container"]},{"name":"Wizard 1","fileName":"BlockWizard1.vue","file":"<template>\n  <!--\n    Horizontal stepper wizard with a card per step\n    Features: Numbered stepper with check marks for finished steps, clickable finished steps, back and next buttons, a final success step and plain state so you can add validation your own way\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl\">\n      <UiStepper v-model=\"step\" class=\"mb-10\">\n        <UiStepperItem\n          v-for=\"(item, index) in steps\"\n          :key=\"item.title\"\n          :step=\"index + 1\"\n          :disabled=\"index + 1 > step\"\n          :class=\"index < steps.length - 1 ? 'flex-1' : ''\"\n        >\n          <UiStepperTrigger class=\"flex-col gap-2\">\n            <UiStepperIndicator />\n            <UiStepperTitle class=\"hidden text-xs sm:block\">{{ item.title }}</UiStepperTitle>\n          </UiStepperTrigger>\n          <UiStepperSeparator v-if=\"index < steps.length - 1\" />\n        </UiStepperItem>\n      </UiStepper>\n\n      <UiCard>\n        <UiCardHeader>\n          <UiCardTitle>{{ current.title }}</UiCardTitle>\n          <UiCardDescription>{{ current.description }}</UiCardDescription>\n        </UiCardHeader>\n        <UiCardContent class=\"grid gap-5\">\n          <template v-if=\"step === 1\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"wizard-name\">Full name</UiLabel>\n              <UiInput id=\"wizard-name\" v-model=\"form.name\" placeholder=\"Jane Doe\" />\n            </div>\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"wizard-email\">Work email</UiLabel>\n              <UiInput\n                id=\"wizard-email\"\n                v-model=\"form.email\"\n                type=\"email\"\n                placeholder=\"jane@acme.dev\"\n              />\n            </div>\n          </template>\n          <template v-else-if=\"step === 2\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"wizard-company\">Company</UiLabel>\n              <UiInput id=\"wizard-company\" v-model=\"form.company\" placeholder=\"Acme Inc.\" />\n            </div>\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"wizard-size\">Team size</UiLabel>\n              <UiNativeSelect id=\"wizard-size\" v-model=\"form.size\">\n                <option v-for=\"size in sizes\" :key=\"size\">{{ size }}</option>\n              </UiNativeSelect>\n            </div>\n          </template>\n          <template v-else-if=\"step === 3\">\n            <div class=\"flex items-center justify-between gap-4 rounded-lg border p-4\">\n              <div>\n                <UiLabel for=\"wizard-news\" class=\"font-medium\">Product updates</UiLabel>\n                <p class=\"text-muted-foreground text-sm\">Occasional news about new features.</p>\n              </div>\n              <UiSwitch id=\"wizard-news\" v-model=\"form.news\" />\n            </div>\n            <div class=\"flex items-center justify-between gap-4 rounded-lg border p-4\">\n              <div>\n                <UiLabel for=\"wizard-tips\" class=\"font-medium\">Tips and tutorials</UiLabel>\n                <p class=\"text-muted-foreground text-sm\">\n                  Short guides to get more out of the app.\n                </p>\n              </div>\n              <UiSwitch id=\"wizard-tips\" v-model=\"form.tips\" />\n            </div>\n          </template>\n          <div v-else class=\"flex flex-col items-center py-6 text-center\">\n            <span\n              class=\"grid size-14 place-items-center rounded-full bg-green-500/10 text-green-600\"\n            >\n              <Icon name=\"lucide:check\" class=\"size-7\" />\n            </span>\n            <p class=\"mt-4 text-lg font-semibold\">You are all set, {{ form.name || \"friend\" }}!</p>\n            <p class=\"text-muted-foreground mt-1 text-sm\">\n              We sent a confirmation to {{ form.email || \"your inbox\" }}.\n            </p>\n          </div>\n        </UiCardContent>\n        <UiCardFooter v-if=\"step <= steps.length\" class=\"justify-between\">\n          <UiButton variant=\"outline\" :disabled=\"step === 1\" @click=\"step--\">Back</UiButton>\n          <UiButton @click=\"step++\">\n            {{ step === steps.length ? \"Finish\" : \"Continue\" }}\n          </UiButton>\n        </UiCardFooter>\n        <UiCardFooter v-else class=\"justify-center\">\n          <UiButton variant=\"outline\" @click=\"restart\">Start over</UiButton>\n        </UiCardFooter>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const steps = [\n    { title: \"Account\", description: \"Tell us who you are.\" },\n    { title: \"Company\", description: \"A little about your team.\" },\n    { title: \"Preferences\", description: \"Choose what you hear from us.\" },\n  ];\n\n  const sizes = [\"Just me\", \"2 to 10\", \"11 to 50\", \"51 to 200\", \"201 or more\"];\n\n  const step = ref(1);\n\n  const form = reactive({\n    name: \"\",\n    email: \"\",\n    company: \"\",\n    size: sizes[1]!,\n    news: true,\n    tips: false,\n  });\n\n  const current = computed(\n    () => steps[step.value - 1] ?? { title: \"Done\", description: \"Your account is ready.\" }\n  );\n\n  function restart() {\n    Object.assign(form, {\n      name: \"\",\n      email: \"\",\n      company: \"\",\n      size: sizes[1]!,\n      news: true,\n      tips: false,\n    });\n    step.value = 1;\n  }\n</script>\n","category":"Wizard","description":"Horizontal stepper wizard with a card per step. Features: Numbered stepper with check marks for finished steps, clickable finished steps, back and next buttons, a final success step and plain state so you can add validation your own way","path":"Onboarding/Wizard/BlockWizard1.vue","components":["button","card","container","input","label","native-select","stepper","switch"]},{"name":"Wizard 2","fileName":"BlockWizard2.vue","file":"<template>\n  <!--\n    Vertical stepper wizard with titles and descriptions\n    Features: Vertical stepper on the left with a title and short description per step, content on the right, finished steps can be revisited and a progress summary under the list\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto grid max-w-4xl gap-10 md:grid-cols-[16rem_1fr]\">\n      <div>\n        <UiStepper v-model=\"step\" orientation=\"vertical\" class=\"gap-0\">\n          <UiStepperItem\n            v-for=\"(item, index) in steps\"\n            :key=\"item.title\"\n            :step=\"index + 1\"\n            :disabled=\"index + 1 > furthest\"\n            class=\"relative items-start gap-4 pb-8 last:pb-0\"\n          >\n            <UiStepperTrigger class=\"items-start gap-4 text-left\">\n              <UiStepperIndicator />\n              <span class=\"flex flex-col\">\n                <UiStepperTitle>{{ item.title }}</UiStepperTitle>\n                <UiStepperDescription>{{ item.description }}</UiStepperDescription>\n              </span>\n            </UiStepperTrigger>\n            <UiStepperSeparator\n              v-if=\"index < steps.length - 1\"\n              class=\"absolute top-7 bottom-1 left-3 m-0 -translate-x-1/2 group-data-[orientation=vertical]/stepper:h-auto\"\n            />\n          </UiStepperItem>\n        </UiStepper>\n        <p class=\"text-muted-foreground mt-8 text-sm\" aria-live=\"polite\">\n          {{ Math.round(((furthest - 1) / steps.length) * 100) }}% complete\n        </p>\n      </div>\n\n      <UiCard>\n        <UiCardHeader>\n          <UiCardTitle>{{ steps[step - 1]!.title }}</UiCardTitle>\n          <UiCardDescription>{{ steps[step - 1]!.description }}</UiCardDescription>\n        </UiCardHeader>\n        <UiCardContent class=\"grid gap-5\">\n          <template v-if=\"step === 1\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"vw-project\">Project name</UiLabel>\n              <UiInput id=\"vw-project\" v-model=\"form.project\" placeholder=\"Website redesign\" />\n            </div>\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"vw-desc\">Description</UiLabel>\n              <UiTextarea\n                id=\"vw-desc\"\n                v-model=\"form.description\"\n                :rows=\"3\"\n                placeholder=\"What are you building?\"\n              />\n            </div>\n          </template>\n          <template v-else-if=\"step === 2\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"vw-template\">Starting point</UiLabel>\n              <UiNativeSelect id=\"vw-template\" v-model=\"form.template\">\n                <option v-for=\"template in templates\" :key=\"template\">{{ template }}</option>\n              </UiNativeSelect>\n            </div>\n            <p class=\"text-muted-foreground text-sm\">\n              Templates come with sample tasks, views and automations you can delete at any time.\n            </p>\n          </template>\n          <template v-else-if=\"step === 3\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"vw-members\">Invite teammates</UiLabel>\n              <UiInput\n                id=\"vw-members\"\n                v-model=\"form.members\"\n                placeholder=\"sofia@acme.dev, liam@acme.dev\"\n              />\n              <p class=\"text-muted-foreground text-xs\">\n                Separate addresses with commas. You can skip this.\n              </p>\n            </div>\n          </template>\n          <template v-else>\n            <dl class=\"divide-y rounded-lg border text-sm\">\n              <div v-for=\"row in summary\" :key=\"row.label\" class=\"flex justify-between gap-4 p-3\">\n                <dt class=\"text-muted-foreground\">{{ row.label }}</dt>\n                <dd class=\"text-right font-medium\">{{ row.value || \"Not set\" }}</dd>\n              </div>\n            </dl>\n          </template>\n        </UiCardContent>\n        <UiCardFooter class=\"justify-between\">\n          <UiButton variant=\"outline\" :disabled=\"step === 1\" @click=\"step--\">Back</UiButton>\n          <UiButton @click=\"advance\">{{\n            step === steps.length ? \"Create project\" : \"Continue\"\n          }}</UiButton>\n        </UiCardFooter>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const steps = [\n    { title: \"Basics\", description: \"Name your project\" },\n    { title: \"Template\", description: \"Pick a starting point\" },\n    { title: \"Team\", description: \"Invite collaborators\" },\n    { title: \"Review\", description: \"Check and create\" },\n  ];\n\n  const templates = [\"Blank project\", \"Product launch\", \"Marketing campaign\", \"Sprint board\"];\n\n  const step = ref(1);\n  const furthest = ref(1);\n\n  const form = reactive({ project: \"\", description: \"\", template: templates[0]!, members: \"\" });\n\n  const summary = computed(() => [\n    { label: \"Project\", value: form.project },\n    { label: \"Description\", value: form.description },\n    { label: \"Template\", value: form.template },\n    { label: \"Teammates\", value: form.members },\n  ]);\n\n  function advance() {\n    if (step.value === steps.length) {\n      useSonner.success(\"Project created\");\n      return;\n    }\n    step.value++;\n    furthest.value = Math.max(furthest.value, step.value);\n  }\n</script>\n","category":"Wizard","description":"Vertical stepper wizard with titles and descriptions. Features: Vertical stepper on the left with a title and short description per step, content on the right, finished steps can be revisited and a progress summary under the list","path":"Onboarding/Wizard/BlockWizard2.vue","components":["button","card","container","input","label","native-select","stepper","textarea"]},{"name":"Wizard 3","fileName":"BlockWizard3.vue","file":"<template>\n  <!--\n    Full height wizard with a sidebar and progress bar\n    Features: Sidebar with brand, step list and a progress bar, finished steps marked with a check, main area with a heading and form, sticky footer actions and a stacked layout on small screens\n  -->\n  <div class=\"flex min-h-[640px] flex-col md:flex-row\">\n    <aside\n      class=\"bg-muted/40 w-full shrink-0 border-b p-6 md:w-72 md:border-r md:border-b-0 md:p-8\"\n    >\n      <div class=\"flex items-center gap-2 font-semibold\">\n        <span class=\"bg-primary text-primary-foreground grid size-7 place-items-center rounded-md\">\n          <Icon name=\"lucide:layers\" class=\"size-4\" />\n        </span>\n        {{ brand }}\n      </div>\n      <UiProgress :model-value=\"progress\" class=\"mt-6 h-1.5\" aria-label=\"Setup progress\" />\n      <p class=\"text-muted-foreground mt-2 text-xs\">Step {{ step }} of {{ steps.length }}</p>\n      <ol class=\"mt-6 hidden space-y-1 md:block\">\n        <li v-for=\"(item, index) in steps\" :key=\"item.title\">\n          <button\n            type=\"button\"\n            class=\"focus-visible:ring-ring/50 flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm transition outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-60\"\n            :class=\"index + 1 === step ? 'bg-background shadow-xs' : 'hover:bg-background/60'\"\n            :disabled=\"index + 1 > step\"\n            :aria-current=\"index + 1 === step ? 'step' : undefined\"\n            @click=\"step = index + 1\"\n          >\n            <span\n              class=\"grid size-6 shrink-0 place-items-center rounded-full border text-xs font-semibold\"\n              :class=\"index + 1 < step ? 'bg-primary text-primary-foreground border-primary' : ''\"\n            >\n              <Icon v-if=\"index + 1 < step\" name=\"lucide:check\" class=\"size-3.5\" />\n              <template v-else>{{ index + 1 }}</template>\n            </span>\n            {{ item.title }}\n          </button>\n        </li>\n      </ol>\n    </aside>\n\n    <main class=\"flex flex-1 flex-col p-6 md:p-12\">\n      <div class=\"mx-auto w-full max-w-lg flex-1\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">{{ steps[step - 1]!.heading }}</h1>\n        <p class=\"text-muted-foreground mt-1\">{{ steps[step - 1]!.hint }}</p>\n\n        <div class=\"mt-8 grid gap-5\">\n          <template v-if=\"step === 1\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"sb-name\">Workspace name</UiLabel>\n              <UiInput id=\"sb-name\" v-model=\"form.name\" placeholder=\"Acme Inc.\" />\n            </div>\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"sb-url\">Workspace URL</UiLabel>\n              <div class=\"flex\">\n                <span\n                  class=\"bg-muted text-muted-foreground flex items-center rounded-l-md border border-r-0 px-3 text-sm\"\n                >\n                  acme.app/\n                </span>\n                <UiInput\n                  id=\"sb-url\"\n                  v-model=\"form.slug\"\n                  class=\"rounded-l-none\"\n                  placeholder=\"acme\"\n                />\n              </div>\n            </div>\n          </template>\n          <template v-else-if=\"step === 2\">\n            <UiRadioGroup v-model=\"form.goal\" class=\"grid gap-3\" aria-label=\"Primary goal\">\n              <label\n                v-for=\"option in goals\"\n                :key=\"option\"\n                :for=\"`goal-${option}`\"\n                class=\"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 flex cursor-pointer items-center gap-3 rounded-lg border p-3 text-sm\"\n              >\n                <UiRadioGroupItem :id=\"`goal-${option}`\" :value=\"option\" />\n                {{ option }}\n              </label>\n            </UiRadioGroup>\n          </template>\n          <template v-else-if=\"step === 3\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"sb-invites\">Invite teammates</UiLabel>\n              <UiTextarea\n                id=\"sb-invites\"\n                v-model=\"form.invites\"\n                :rows=\"3\"\n                placeholder=\"One email per line\"\n              />\n            </div>\n          </template>\n          <template v-else>\n            <div class=\"flex flex-col items-center py-8 text-center\">\n              <span\n                class=\"grid size-14 place-items-center rounded-full bg-green-500/10 text-green-600\"\n              >\n                <Icon name=\"lucide:check\" class=\"size-7\" />\n              </span>\n              <p class=\"mt-4 text-lg font-semibold\">{{ form.name || \"Your workspace\" }} is ready</p>\n            </div>\n          </template>\n        </div>\n      </div>\n\n      <div class=\"mx-auto mt-8 flex w-full max-w-lg justify-between border-t pt-6\">\n        <UiButton variant=\"ghost\" :disabled=\"step === 1\" @click=\"step--\">Back</UiButton>\n        <UiButton v-if=\"step < steps.length\" @click=\"step++\">Continue</UiButton>\n        <UiButton v-else @click=\"useSonner.success('Welcome aboard')\">Open workspace</UiButton>\n      </div>\n    </main>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      brand?: string;\n    }>(),\n    { brand: \"Acme\" }\n  );\n\n  const steps = [\n    {\n      title: \"Workspace\",\n      heading: \"Name your workspace\",\n      hint: \"This is how your team will find you.\",\n    },\n    {\n      title: \"Goals\",\n      heading: \"What is your main goal?\",\n      hint: \"We will set up the right defaults.\",\n    },\n    { title: \"Team\", heading: \"Invite your team\", hint: \"Collaboration is better together.\" },\n    { title: \"Done\", heading: \"All done\", hint: \"Everything is ready to go.\" },\n  ];\n\n  const goals = [\n    \"Ship product faster\",\n    \"Keep customers happy\",\n    \"Organise company knowledge\",\n    \"Report on progress\",\n  ];\n\n  const step = ref(1);\n  const form = reactive({ name: \"\", slug: \"\", goal: goals[0]!, invites: \"\" });\n\n  const progress = computed(() => ((step.value - 1) / (steps.length - 1)) * 100);\n</script>\n","category":"Wizard","description":"Full height wizard with a sidebar and progress bar. Features: Sidebar with brand, step list and a progress bar, finished steps marked with a check, main area with a heading and form, sticky footer actions and a stacked layout on small screens","path":"Onboarding/Wizard/BlockWizard3.vue","components":["button","input","label","progress","radio-group","textarea"]},{"name":"Wizard 4","fileName":"BlockWizard4.vue","file":"<template>\n  <!--\n    Multi step form with validation on every step\n    Features: One vee-validate form with a yup schema per step, errors shown under each field, Continue only moves on when the step is valid, values kept when going back and a submit state on the last step\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-lg\">\n      <div class=\"mb-8\">\n        <div class=\"text-muted-foreground flex justify-between text-sm\">\n          <span>Step {{ Math.min(step, 3) }} of 3</span>\n          <span>{{ labels[Math.min(step, 3) - 1] }}</span>\n        </div>\n        <UiProgress :model-value=\"(Math.min(step, 4) - 1) * 33.3 + 33.3\" class=\"mt-2 h-1.5\" />\n      </div>\n\n      <template v-if=\"step <= 3\">\n        <h1 class=\"text-2xl font-bold tracking-tight\">{{ labels[step - 1] }}</h1>\n        <form class=\"mt-6\" novalidate @submit=\"next\">\n          <fieldset :disabled=\"isSubmitting\" class=\"grid gap-5\">\n            <template v-if=\"step === 1\">\n              <UiVeeInput required label=\"Full name\" name=\"name\" placeholder=\"Jane Doe\" />\n              <UiVeeInput\n                required\n                label=\"Email\"\n                type=\"email\"\n                name=\"email\"\n                placeholder=\"jane@acme.dev\"\n              />\n            </template>\n            <template v-else-if=\"step === 2\">\n              <UiVeeInput required label=\"Company\" name=\"company\" placeholder=\"Acme Inc.\" />\n              <UiVeeInput\n                label=\"Website\"\n                name=\"website\"\n                placeholder=\"https://acme.dev\"\n                hint=\"Optional\"\n              />\n            </template>\n            <template v-else>\n              <UiVeeTextarea\n                required\n                label=\"What do you want to achieve?\"\n                name=\"goal\"\n                :rows=\"4\"\n                hint=\"At least 10 characters.\"\n              />\n            </template>\n            <div class=\"flex justify-between\">\n              <UiButton type=\"button\" variant=\"outline\" :disabled=\"step === 1\" @click=\"step--\"\n                >Back</UiButton\n              >\n              <UiButton type=\"submit\">\n                <UiLoader v-if=\"isSubmitting\" />\n                {{ step === 3 ? \"Submit\" : \"Continue\" }}\n              </UiButton>\n            </div>\n          </fieldset>\n        </form>\n      </template>\n\n      <div v-else class=\"flex flex-col items-center py-10 text-center\">\n        <span class=\"grid size-14 place-items-center rounded-full bg-green-500/10 text-green-600\">\n          <Icon name=\"lucide:check\" class=\"size-7\" />\n        </span>\n        <h1 class=\"mt-4 text-2xl font-bold tracking-tight\">Thanks, we have it from here</h1>\n        <p class=\"text-muted-foreground mt-2\">We will email you within one business day.</p>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  import { object, string } from \"yup\";\n\n  const labels = [\"About you\", \"Your company\", \"Your goals\"];\n\n  const step = ref(1);\n\n  const schemas = [\n    object({\n      name: string().required().label(\"Full name\").min(2),\n      email: string().email().required().label(\"Email\"),\n    }),\n    object({\n      company: string().required().label(\"Company\"),\n      website: string().url().label(\"Website\"),\n    }),\n    object({ goal: string().required().label(\"Goal\").min(10) }),\n  ];\n\n  // Each step validates only its own fields, and values survive the step changing.\n  const { handleSubmit, isSubmitting } = useForm({\n    validationSchema: computed(() => schemas[Math.min(step.value, 3) - 1]),\n    keepValuesOnUnmount: true,\n  });\n\n  const next = handleSubmit(async () => {\n    if (step.value === 3) {\n      await new Promise((resolve) => setTimeout(resolve, 500));\n      useSonner.success(\"Application sent\");\n    }\n    step.value += 1;\n  });\n</script>\n","category":"Wizard","description":"Multi step form with validation on every step. Features: One vee-validate form with a yup schema per step, errors shown under each field, Continue only moves on when the step is valid, values kept when going back and a submit state on the last step","path":"Onboarding/Wizard/BlockWizard4.vue","components":["button","container","loader","progress","vee-input","vee-textarea"]},{"name":"Wizard 5","fileName":"BlockWizard5.vue","file":"<template>\n  <!--\n    Review and confirm step\n    Features: Summary cards grouped by section, an edit link on each section that jumps back, terms checkbox that gates the confirm button, confirm with a short loading state and a success message\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl\">\n      <template v-if=\"!confirmed\">\n        <p class=\"text-muted-foreground text-sm font-medium\">Final step</p>\n        <h1 class=\"mt-1 text-3xl font-bold tracking-tight\">Review your setup</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          Check everything looks right before we create your workspace.\n        </p>\n\n        <div class=\"mt-8 space-y-4\">\n          <UiCard v-for=\"section in sections\" :key=\"section.title\">\n            <UiCardHeader>\n              <UiCardTitle class=\"text-base\">{{ section.title }}</UiCardTitle>\n              <UiCardAction>\n                <UiButton variant=\"link\" size=\"sm\" class=\"h-auto p-0\" @click=\"edit(section.title)\">\n                  Edit\n                  <span class=\"sr-only\">{{ section.title }}</span>\n                </UiButton>\n              </UiCardAction>\n            </UiCardHeader>\n            <UiCardContent>\n              <dl class=\"grid gap-3 text-sm sm:grid-cols-2\">\n                <div v-for=\"row in section.rows\" :key=\"row.label\">\n                  <dt class=\"text-muted-foreground\">{{ row.label }}</dt>\n                  <dd class=\"font-medium\">{{ row.value }}</dd>\n                </div>\n              </dl>\n            </UiCardContent>\n          </UiCard>\n        </div>\n\n        <div class=\"mt-6 flex items-start gap-3\">\n          <UiCheckbox id=\"review-terms\" v-model=\"accepted\" class=\"mt-0.5\" />\n          <UiLabel for=\"review-terms\" class=\"text-sm leading-snug font-normal\">\n            I agree to the terms of service and the privacy policy.\n          </UiLabel>\n        </div>\n\n        <div class=\"mt-8 flex justify-end\">\n          <UiButton size=\"lg\" :disabled=\"!accepted || loading\" @click=\"confirm\">\n            <UiLoader v-if=\"loading\" />\n            Confirm and create\n          </UiButton>\n        </div>\n      </template>\n\n      <div v-else class=\"flex flex-col items-center py-12 text-center\" role=\"status\">\n        <span class=\"grid size-16 place-items-center rounded-full bg-green-500/10 text-green-600\">\n          <Icon name=\"lucide:check\" class=\"size-8\" />\n        </span>\n        <h1 class=\"mt-5 text-2xl font-bold tracking-tight\">Workspace created</h1>\n        <p class=\"text-muted-foreground mt-2\">Acme Inc. is ready. Welcome aboard!</p>\n        <UiButton class=\"mt-6\" variant=\"outline\" @click=\"reset\">Review again</UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Section = { title: string; rows: { label: string; value: string }[] };\n\n  withDefaults(\n    defineProps<{\n      sections?: Section[];\n    }>(),\n    {\n      sections: () => [\n        {\n          title: \"Account\",\n          rows: [\n            { label: \"Name\", value: \"Maya Chen\" },\n            { label: \"Email\", value: \"maya@acme.dev\" },\n          ],\n        },\n        {\n          title: \"Workspace\",\n          rows: [\n            { label: \"Name\", value: \"Acme Inc.\" },\n            { label: \"URL\", value: \"acme.app/acme\" },\n            { label: \"Region\", value: \"United States\" },\n            { label: \"Team size\", value: \"11 to 50\" },\n          ],\n        },\n        {\n          title: \"Plan\",\n          rows: [\n            { label: \"Plan\", value: \"Pro\" },\n            { label: \"Billing\", value: \"Yearly, $10 per user per month\" },\n          ],\n        },\n      ],\n    }\n  );\n\n  const accepted = ref(false);\n  const loading = ref(false);\n  const confirmed = ref(false);\n\n  function edit(title: string) {\n    useSonner.info(`Jump back to the ${title.toLowerCase()} step here`);\n  }\n\n  async function confirm() {\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 600));\n    loading.value = false;\n    confirmed.value = true;\n  }\n\n  function reset() {\n    confirmed.value = false;\n    accepted.value = false;\n  }\n</script>\n","category":"Wizard","description":"Review and confirm step. Features: Summary cards grouped by section, an edit link on each section that jumps back, terms checkbox that gates the confirm button, confirm with a short loading state and a success message","path":"Onboarding/Wizard/BlockWizard5.vue","components":["button","card","checkbox","container","label","loader"]},{"name":"Wizard 6","fileName":"BlockWizard6.vue","file":"<template>\n  <!--\n    Onboarding wizard inside a dialog\n    Features: Trigger button that opens a modal wizard, three steps with a progress bar, back and next buttons, skip for now, focus stays in the dialog and it resets when closed\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-md text-center\">\n      <h1 class=\"text-2xl font-bold tracking-tight\">Finish setting up</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        Open the quick setup in a dialog without leaving the page.\n      </p>\n      <UiDialog v-model:open=\"open\">\n        <UiDialogTrigger as-child>\n          <UiButton class=\"mt-6\">\n            <Icon name=\"lucide:wand-sparkles\" class=\"size-4\" />\n            Start quick setup\n          </UiButton>\n        </UiDialogTrigger>\n        <UiDialogContent class=\"sm:max-w-md\">\n          <UiDialogHeader>\n            <UiDialogTitle>{{ steps[step]!.title }}</UiDialogTitle>\n            <UiDialogDescription>{{ steps[step]!.description }}</UiDialogDescription>\n          </UiDialogHeader>\n          <UiProgress\n            :model-value=\"((step + 1) / steps.length) * 100\"\n            class=\"h-1.5\"\n            aria-label=\"Setup progress\"\n          />\n\n          <div class=\"grid gap-4 py-2\">\n            <template v-if=\"step === 0\">\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"md-name\">Your name</UiLabel>\n                <UiInput id=\"md-name\" v-model=\"form.name\" placeholder=\"Jane Doe\" />\n              </div>\n              <div class=\"grid gap-2\">\n                <UiLabel for=\"md-role\">Role</UiLabel>\n                <UiNativeSelect id=\"md-role\" v-model=\"form.role\">\n                  <option v-for=\"role in roles\" :key=\"role\">{{ role }}</option>\n                </UiNativeSelect>\n              </div>\n            </template>\n            <template v-else-if=\"step === 1\">\n              <label\n                v-for=\"option in sources\"\n                :key=\"option\"\n                :for=\"`md-${option}`\"\n                class=\"has-data-[state=checked]:border-primary flex cursor-pointer items-center gap-3 rounded-lg border p-3 text-sm\"\n              >\n                <UiCheckbox\n                  :id=\"`md-${option}`\"\n                  :model-value=\"form.sources.includes(option)\"\n                  @update:model-value=\"toggle(option)\"\n                />\n                {{ option }}\n              </label>\n            </template>\n            <template v-else>\n              <p class=\"text-sm\">\n                Thanks {{ form.name || \"there\" }}! We will tailor the app for a\n                {{ form.role.toLowerCase() }}\n                <span v-if=\"form.sources.length\">\n                  who found us through {{ form.sources.join(\", \").toLowerCase() }}</span\n                >.\n              </p>\n            </template>\n          </div>\n\n          <UiDialogFooter class=\"gap-2 sm:justify-between\">\n            <UiButton variant=\"ghost\" @click=\"open = false\">Skip for now</UiButton>\n            <div class=\"flex gap-2\">\n              <UiButton v-if=\"step > 0\" variant=\"outline\" @click=\"step--\">Back</UiButton>\n              <UiButton v-if=\"step < steps.length - 1\" @click=\"step++\">Next</UiButton>\n              <UiButton v-else @click=\"finish\">Done</UiButton>\n            </div>\n          </UiDialogFooter>\n        </UiDialogContent>\n      </UiDialog>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const steps = [\n    { title: \"About you\", description: \"Two quick questions to personalise your account.\" },\n    { title: \"How did you hear about us?\", description: \"Pick everything that applies.\" },\n    { title: \"You are ready\", description: \"Here is what we will set up.\" },\n  ];\n\n  const roles = [\"Founder\", \"Engineer\", \"Designer\", \"Product manager\", \"Marketer\"];\n  const sources = [\"Search\", \"A friend\", \"Social media\", \"A newsletter\"];\n\n  const open = ref(false);\n  const step = ref(0);\n  const form = reactive({ name: \"\", role: roles[0]!, sources: [] as string[] });\n\n  function toggle(option: string) {\n    form.sources = form.sources.includes(option)\n      ? form.sources.filter((item) => item !== option)\n      : [...form.sources, option];\n  }\n\n  function finish() {\n    open.value = false;\n    useSonner.success(\"Quick setup complete\");\n  }\n\n  // Start from the first step every time the dialog opens again.\n  watch(open, (value) => {\n    if (!value) step.value = 0;\n  });\n</script>\n","category":"Wizard","description":"Onboarding wizard inside a dialog. Features: Trigger button that opens a modal wizard, three steps with a progress bar, back and next buttons, skip for now, focus stays in the dialog and it resets when closed","path":"Onboarding/Wizard/BlockWizard6.vue","components":["button","checkbox","container","dialog","input","label","native-select","progress"]},{"name":"Workspace Setup 1","fileName":"BlockWorkspaceSetup1.vue","file":"<template>\n  <!--\n    Create a workspace form\n    Features: Workspace name that fills in the URL slug automatically, editable slug with a domain prefix, team size select, validation with helpful messages and a create button with a loading state\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-md\">\n      <div class=\"bg-primary/10 text-primary grid size-12 place-items-center rounded-xl\">\n        <Icon name=\"lucide:building-2\" class=\"size-6\" />\n      </div>\n      <h1 class=\"mt-5 text-3xl font-bold tracking-tight\">Create your workspace</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        A workspace is where your team keeps everything together.\n      </p>\n\n      <form class=\"mt-8 grid gap-5\" novalidate @submit.prevent=\"submit\">\n        <div class=\"grid gap-2\">\n          <UiLabel for=\"ws-name\">Workspace name</UiLabel>\n          <UiInput\n            id=\"ws-name\"\n            v-model=\"name\"\n            placeholder=\"Acme Inc.\"\n            :aria-invalid=\"Boolean(errors.name)\"\n            aria-describedby=\"ws-name-error\"\n          />\n          <p v-if=\"errors.name\" id=\"ws-name-error\" class=\"text-destructive text-sm\">\n            {{ errors.name }}\n          </p>\n        </div>\n\n        <div class=\"grid gap-2\">\n          <UiLabel for=\"ws-slug\">Workspace URL</UiLabel>\n          <div class=\"flex\">\n            <span\n              class=\"bg-muted text-muted-foreground flex items-center rounded-l-md border border-r-0 px-3 text-sm\"\n            >\n              {{ domain }}/\n            </span>\n            <UiInput\n              id=\"ws-slug\"\n              v-model=\"slug\"\n              class=\"rounded-l-none\"\n              placeholder=\"acme\"\n              :aria-invalid=\"Boolean(errors.slug)\"\n              aria-describedby=\"ws-slug-error\"\n              @input=\"touched = true\"\n            />\n          </div>\n          <p v-if=\"errors.slug\" id=\"ws-slug-error\" class=\"text-destructive text-sm\">\n            {{ errors.slug }}\n          </p>\n          <p v-else class=\"text-muted-foreground text-xs\">\n            Lowercase letters, numbers and dashes only.\n          </p>\n        </div>\n\n        <div class=\"grid gap-2\">\n          <UiLabel for=\"ws-size\">Team size</UiLabel>\n          <UiNativeSelect id=\"ws-size\" v-model=\"size\">\n            <option v-for=\"option in sizes\" :key=\"option\">{{ option }}</option>\n          </UiNativeSelect>\n        </div>\n\n        <UiButton type=\"submit\" size=\"lg\" :disabled=\"loading\">\n          <UiLoader v-if=\"loading\" />\n          Create workspace\n        </UiButton>\n      </form>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  withDefaults(\n    defineProps<{\n      domain?: string;\n    }>(),\n    { domain: \"acme.app\" }\n  );\n\n  const sizes = [\"Just me\", \"2 to 10\", \"11 to 50\", \"51 to 200\", \"201 or more\"];\n\n  const name = ref(\"\");\n  const slug = ref(\"\");\n  const size = ref(sizes[1]!);\n  const touched = ref(false);\n  const loading = ref(false);\n  const errors = reactive<{ name?: string; slug?: string }>({});\n\n  function slugify(value: string) {\n    return value\n      .toLowerCase()\n      .trim()\n      .replace(/[^a-z0-9]+/g, \"-\")\n      .replace(/^-+|-+$/g, \"\");\n  }\n\n  // Follow the name until the user edits the URL by hand.\n  watch(name, (value) => {\n    if (!touched.value) slug.value = slugify(value);\n  });\n\n  async function submit() {\n    errors.name = name.value.trim() ? undefined : \"Give your workspace a name.\";\n    errors.slug = /^[a-z0-9-]+$/.test(slug.value)\n      ? undefined\n      : \"Use lowercase letters, numbers and dashes.\";\n    if (errors.name || errors.slug) return;\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 600));\n    loading.value = false;\n    useSonner.success(`Created ${name.value}`);\n  }\n</script>\n","category":"WorkspaceSetup","description":"Create a workspace form. Features: Workspace name that fills in the URL slug automatically, editable slug with a domain prefix, team size select, validation with helpful messages and a create button with a loading state","path":"Onboarding/WorkspaceSetup/BlockWorkspaceSetup1.vue","components":["button","container","input","label","loader","native-select"]},{"name":"Workspace Setup 2","fileName":"BlockWorkspaceSetup2.vue","file":"<template>\n  <!--\n    Brand setup with logo upload and accent color\n    Features: Dropzone with image preview that reads the file locally, remove button, accent color swatches, a live preview card that updates as you type and a save action\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto grid max-w-4xl gap-10 md:grid-cols-2\">\n      <div>\n        <h1 class=\"text-3xl font-bold tracking-tight\">Make it yours</h1>\n        <p class=\"text-muted-foreground mt-2\">\n          Add a logo and pick an accent color for your workspace.\n        </p>\n\n        <div class=\"mt-8 grid gap-6\">\n          <div class=\"grid gap-2\">\n            <UiLabel for=\"brand-name\">Display name</UiLabel>\n            <UiInput id=\"brand-name\" v-model=\"name\" placeholder=\"Acme Inc.\" />\n          </div>\n\n          <div class=\"grid gap-2\">\n            <UiLabel>Logo</UiLabel>\n            <div v-if=\"logo\" class=\"flex items-center gap-4 rounded-lg border p-3\">\n              <img :src=\"logo\" alt=\"Logo preview\" class=\"size-14 rounded-lg object-cover\" />\n              <div class=\"min-w-0 flex-1 text-sm\">\n                <p class=\"truncate font-medium\">{{ fileName }}</p>\n                <p class=\"text-muted-foreground\">Ready to upload</p>\n              </div>\n              <UiButton variant=\"ghost\" size=\"sm\" @click=\"removeLogo\">Remove</UiButton>\n            </div>\n            <UiDropfile\n              v-else\n              :multiple=\"false\"\n              accept=\"image/*\"\n              title=\"Click to upload or drag a logo here\"\n              subtext=\"PNG, JPG or SVG, up to 2 MB\"\n              @dropped=\"onFiles\"\n            />\n          </div>\n\n          <fieldset class=\"grid gap-2\">\n            <legend class=\"text-sm leading-none font-medium\">Accent color</legend>\n            <div class=\"mt-2 flex flex-wrap gap-3\">\n              <button\n                v-for=\"color in colors\"\n                :key=\"color.value\"\n                type=\"button\"\n                class=\"focus-visible:ring-ring/50 grid size-9 place-items-center rounded-full ring-offset-2 transition outline-none focus-visible:ring-[3px]\"\n                :class=\"accent === color.value ? 'ring-offset-background ring-2' : ''\"\n                :style=\"{ backgroundColor: color.value, '--tw-ring-color': color.value }\"\n                :aria-label=\"color.label\"\n                :aria-pressed=\"accent === color.value\"\n                @click=\"accent = color.value\"\n              >\n                <Icon v-if=\"accent === color.value\" name=\"lucide:check\" class=\"size-4 text-white\" />\n              </button>\n            </div>\n          </fieldset>\n\n          <UiButton class=\"w-fit\" @click=\"useSonner.success('Brand saved')\">Save brand</UiButton>\n        </div>\n      </div>\n\n      <div>\n        <p class=\"text-muted-foreground mb-3 text-sm font-medium\">Preview</p>\n        <UiCard class=\"overflow-hidden\">\n          <div class=\"h-2\" :style=\"{ backgroundColor: accent }\" />\n          <UiCardContent class=\"flex items-center gap-3 pt-6\">\n            <img v-if=\"logo\" :src=\"logo\" alt=\"\" class=\"size-12 rounded-lg object-cover\" />\n            <span\n              v-else\n              class=\"grid size-12 place-items-center rounded-lg text-lg font-bold text-white\"\n              :style=\"{ backgroundColor: accent }\"\n            >\n              {{ (name || \"A\")[0]!.toUpperCase() }}\n            </span>\n            <div>\n              <p class=\"font-semibold\">{{ name || \"Your workspace\" }}</p>\n              <p class=\"text-muted-foreground text-sm\">3 members · Free plan</p>\n            </div>\n          </UiCardContent>\n          <UiCardFooter>\n            <span\n              class=\"inline-flex h-9 items-center rounded-md px-4 text-sm font-medium text-white\"\n              :style=\"{ backgroundColor: accent }\"\n            >\n              New project\n            </span>\n          </UiCardFooter>\n        </UiCard>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const colors = [\n    { label: \"Indigo\", value: \"#4f46e5\" },\n    { label: \"Emerald\", value: \"#059669\" },\n    { label: \"Rose\", value: \"#e11d48\" },\n    { label: \"Amber\", value: \"#d97706\" },\n    { label: \"Sky\", value: \"#0284c7\" },\n    { label: \"Slate\", value: \"#334155\" },\n  ];\n\n  const name = ref(\"Acme Inc.\");\n  const accent = ref(colors[0]!.value);\n  const logo = ref(\"\");\n  const fileName = ref(\"\");\n\n  function onFiles(files: File[]) {\n    const file = files[0];\n    if (!file || !file.type.startsWith(\"image/\")) {\n      useSonner.error(\"Please choose an image file\");\n      return;\n    }\n    if (file.size > 2 * 1024 * 1024) {\n      useSonner.error(\"That image is larger than 2 MB\");\n      return;\n    }\n    removeLogo();\n    logo.value = URL.createObjectURL(file);\n    fileName.value = file.name;\n  }\n\n  function removeLogo() {\n    if (logo.value) URL.revokeObjectURL(logo.value);\n    logo.value = \"\";\n    fileName.value = \"\";\n  }\n\n  onBeforeUnmount(removeLogo);\n</script>\n","category":"WorkspaceSetup","description":"Brand setup with logo upload and accent color. Features: Dropzone with image preview that reads the file locally, remove button, accent color swatches, a live preview card that updates as you type and a save action","path":"Onboarding/WorkspaceSetup/BlockWorkspaceSetup2.vue","components":["button","card","container","dropfile","input","label"]},{"name":"Workspace Setup 3","fileName":"BlockWorkspaceSetup3.vue","file":"<template>\n  <!--\n    Invite teammates with email chips\n    Features: Type or paste several emails, press enter or comma to add, invalid addresses flagged, per person role select, remove buttons, copy invite link and a send button with a count\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Invite your teammates</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        Work is better together. Add the people you work with.\n      </p>\n\n      <div class=\"mt-8 grid gap-2\">\n        <UiLabel for=\"invite-input\">Email addresses</UiLabel>\n        <div class=\"flex gap-2\">\n          <UiInput\n            id=\"invite-input\"\n            v-model=\"draft\"\n            type=\"email\"\n            placeholder=\"name@company.com\"\n            @keydown.enter.prevent=\"add\"\n            @keydown.,.prevent=\"add\"\n            @paste=\"onPaste\"\n          />\n          <UiButton variant=\"outline\" @click=\"add\">Add</UiButton>\n        </div>\n        <p v-if=\"error\" class=\"text-destructive text-sm\" role=\"alert\">{{ error }}</p>\n        <p v-else class=\"text-muted-foreground text-xs\">\n          Press enter or comma to add. You can paste a list too.\n        </p>\n      </div>\n\n      <ul v-if=\"invites.length\" class=\"mt-6 divide-y rounded-lg border\">\n        <li v-for=\"invite in invites\" :key=\"invite.email\" class=\"flex items-center gap-3 p-3\">\n          <UiAvatar :fallback=\"invite.email[0]!.toUpperCase()\" />\n          <span class=\"min-w-0 flex-1 truncate text-sm\">{{ invite.email }}</span>\n          <UiNativeSelect\n            v-model=\"invite.role\"\n            class=\"h-8 w-28\"\n            :aria-label=\"`Role for ${invite.email}`\"\n          >\n            <option v-for=\"role in roles\" :key=\"role\">{{ role }}</option>\n          </UiNativeSelect>\n          <UiButton\n            variant=\"ghost\"\n            size=\"icon-sm\"\n            :aria-label=\"`Remove ${invite.email}`\"\n            @click=\"remove(invite.email)\"\n          >\n            <Icon name=\"lucide:x\" class=\"size-4\" />\n          </UiButton>\n        </li>\n      </ul>\n\n      <div class=\"bg-muted/50 mt-6 flex items-center gap-3 rounded-lg border p-3 text-sm\">\n        <Icon name=\"lucide:link\" class=\"text-muted-foreground size-4 shrink-0\" />\n        <span class=\"text-muted-foreground min-w-0 flex-1 truncate\">{{ link }}</span>\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"copyLink\">{{\n          copied ? \"Copied\" : \"Copy link\"\n        }}</UiButton>\n      </div>\n\n      <div class=\"mt-8 flex items-center justify-between\">\n        <UiButton variant=\"ghost\" @click=\"useSonner.info('Skipped')\">Skip for now</UiButton>\n        <UiButton :disabled=\"!invites.length\" @click=\"send\">\n          Send {{ invites.length || \"\" }} {{ invites.length === 1 ? \"invite\" : \"invites\" }}\n        </UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const props = withDefaults(\n    defineProps<{\n      link?: string;\n    }>(),\n    { link: \"https://acme.app/join/k3x9-p2mv\" }\n  );\n\n  const roles = [\"Admin\", \"Member\", \"Viewer\"];\n  const emailPattern = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n  const draft = ref(\"\");\n  const error = ref(\"\");\n  const invites = ref<{ email: string; role: string }[]>([]);\n\n  function addEmail(raw: string) {\n    const email = raw.trim().toLowerCase();\n    if (!email) return true;\n    if (!emailPattern.test(email)) {\n      error.value = `${raw.trim()} is not a valid email address.`;\n      return false;\n    }\n    if (!invites.value.some((invite) => invite.email === email)) {\n      invites.value.push({ email, role: \"Member\" });\n    }\n    return true;\n  }\n\n  function add() {\n    error.value = \"\";\n    if (addEmail(draft.value)) draft.value = \"\";\n  }\n\n  function onPaste(event: ClipboardEvent) {\n    const text = event.clipboardData?.getData(\"text\") ?? \"\";\n    if (!/[\\s,;]/.test(text.trim())) return;\n    event.preventDefault();\n    error.value = \"\";\n    text\n      .split(/[\\s,;]+/)\n      .filter(Boolean)\n      .forEach(addEmail);\n  }\n\n  function remove(email: string) {\n    invites.value = invites.value.filter((invite) => invite.email !== email);\n  }\n\n  const { copy, copied } = useClipboard({ copiedDuring: 1500 });\n\n  function copyLink() {\n    copy(props.link);\n  }\n\n  function send() {\n    useSonner.success(\n      `Sent ${invites.value.length} ${invites.value.length === 1 ? \"invite\" : \"invites\"}`\n    );\n    invites.value = [];\n  }\n</script>\n","category":"WorkspaceSetup","description":"Invite teammates with email chips. Features: Type or paste several emails, press enter or comma to add, invalid addresses flagged, per person role select, remove buttons, copy invite link and a send button with a count","path":"Onboarding/WorkspaceSetup/BlockWorkspaceSetup3.vue","components":["avatar","button","container","input","label","native-select"]},{"name":"Workspace Setup 4","fileName":"BlockWorkspaceSetup4.vue","file":"<template>\n  <!--\n    Connect your tools grid\n    Features: Integration cards with icons and descriptions, connect and disconnect buttons with a loading state, connected badge, category filter tabs and a continue button that counts what is connected\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-4xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Connect your tools</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        Bring in the apps you already use. You can add more later.\n      </p>\n\n      <UiTabs v-model=\"category\" class=\"mt-8\">\n        <div class=\"overflow-x-auto\">\n          <UiTabsList>\n            <UiTabsTrigger v-for=\"item in categories\" :key=\"item\" :value=\"item\">{{\n              item\n            }}</UiTabsTrigger>\n          </UiTabsList>\n        </div>\n      </UiTabs>\n\n      <ul class=\"mt-6 grid gap-4 sm:grid-cols-2\">\n        <li\n          v-for=\"tool in visible\"\n          :key=\"tool.name\"\n          class=\"flex items-start gap-4 rounded-xl border p-4\"\n        >\n          <span class=\"bg-muted grid size-11 shrink-0 place-items-center rounded-lg\">\n            <Icon :name=\"tool.icon\" class=\"size-6\" />\n          </span>\n          <div class=\"min-w-0 flex-1\">\n            <div class=\"flex items-center gap-2\">\n              <p class=\"font-medium\">{{ tool.name }}</p>\n              <UiBadge\n                v-if=\"connected.includes(tool.name)\"\n                variant=\"soft\"\n                color=\"green\"\n                shape=\"pill\"\n              >\n                Connected\n              </UiBadge>\n            </div>\n            <p class=\"text-muted-foreground mt-1 text-sm\">{{ tool.description }}</p>\n          </div>\n          <UiButton\n            size=\"sm\"\n            :variant=\"connected.includes(tool.name) ? 'outline' : 'default'\"\n            :disabled=\"pending === tool.name\"\n            @click=\"toggle(tool.name)\"\n          >\n            <UiLoader v-if=\"pending === tool.name\" />\n            {{ connected.includes(tool.name) ? \"Disconnect\" : \"Connect\" }}\n            <span class=\"sr-only\">{{ tool.name }}</span>\n          </UiButton>\n        </li>\n      </ul>\n\n      <div class=\"mt-8 flex items-center justify-between\">\n        <p class=\"text-muted-foreground text-sm\" aria-live=\"polite\">\n          {{ connected.length }} connected\n        </p>\n        <UiButton @click=\"useSonner.success('Integrations saved')\">\n          {{ connected.length ? \"Continue\" : \"Skip for now\" }}\n        </UiButton>\n      </div>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  type Tool = { name: string; description: string; icon: string; category: string };\n\n  const props = withDefaults(\n    defineProps<{\n      tools?: Tool[];\n    }>(),\n    {\n      tools: () => [\n        {\n          name: \"Slack\",\n          description: \"Get updates in your channels.\",\n          icon: \"logos:slack-icon\",\n          category: \"Communication\",\n        },\n        {\n          name: \"Google Calendar\",\n          description: \"Sync deadlines and meetings.\",\n          icon: \"logos:google-calendar\",\n          category: \"Productivity\",\n        },\n        {\n          name: \"GitHub\",\n          description: \"Link pull requests to tasks.\",\n          icon: \"logos:github-icon\",\n          category: \"Developer\",\n        },\n        {\n          name: \"Notion\",\n          description: \"Embed docs and databases.\",\n          icon: \"logos:notion-icon\",\n          category: \"Productivity\",\n        },\n        {\n          name: \"Figma\",\n          description: \"Preview designs in context.\",\n          icon: \"logos:figma\",\n          category: \"Developer\",\n        },\n        {\n          name: \"Zoom\",\n          description: \"Start calls from any project.\",\n          icon: \"logos:zoom-icon\",\n          category: \"Communication\",\n        },\n      ],\n    }\n  );\n\n  const category = ref(\"All\");\n  const categories = computed(() => [\"All\", ...new Set(props.tools.map((tool) => tool.category))]);\n  const visible = computed(() =>\n    category.value === \"All\"\n      ? props.tools\n      : props.tools.filter((tool) => tool.category === category.value)\n  );\n\n  const connected = ref<string[]>([]);\n  const pending = ref(\"\");\n\n  async function toggle(name: string) {\n    pending.value = name;\n    await new Promise((resolve) => setTimeout(resolve, 500));\n    connected.value = connected.value.includes(name)\n      ? connected.value.filter((item) => item !== name)\n      : [...connected.value, name];\n    pending.value = \"\";\n  }\n</script>\n","category":"WorkspaceSetup","description":"Connect your tools grid. Features: Integration cards with icons and descriptions, connect and disconnect buttons with a loading state, connected badge, category filter tabs and a continue button that counts what is connected","path":"Onboarding/WorkspaceSetup/BlockWorkspaceSetup4.vue","components":["badge","button","container","loader","tabs"]},{"name":"Workspace Setup 5","fileName":"BlockWorkspaceSetup5.vue","file":"<template>\n  <!--\n    Import your data\n    Features: Source cards for CSV, spreadsheet and another app, a dropzone for CSV files that parses the header row, a preview table of the first rows, column mapping selects and an import button with a loading state\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-3xl\">\n      <h1 class=\"text-3xl font-bold tracking-tight\">Import your data</h1>\n      <p class=\"text-muted-foreground mt-2\">\n        Start with a CSV file. Nothing leaves your browser until you import.\n      </p>\n\n      <div v-if=\"!rows.length\" class=\"mt-8 grid gap-4\">\n        <UiDropfile\n          :multiple=\"false\"\n          accept=\".csv,text/csv\"\n          title=\"Click to upload or drag a CSV file here\"\n          subtext=\"First row should contain column names\"\n          @dropped=\"onFiles\"\n        />\n        <UiButton variant=\"outline\" class=\"w-fit\" @click=\"loadSample\">\n          <Icon name=\"lucide:file-spreadsheet\" class=\"size-4\" />\n          Use a sample file\n        </UiButton>\n      </div>\n\n      <template v-else>\n        <div\n          class=\"bg-muted/50 mt-8 flex items-center justify-between gap-3 rounded-lg border p-3 text-sm\"\n        >\n          <span class=\"flex items-center gap-2\">\n            <Icon name=\"lucide:file-spreadsheet\" class=\"size-4\" />\n            {{ fileName }} · {{ rows.length }} rows\n          </span>\n          <UiButton variant=\"ghost\" size=\"sm\" @click=\"clear\">Choose another</UiButton>\n        </div>\n\n        <h2 class=\"mt-8 font-semibold\">Match your columns</h2>\n        <div class=\"mt-3 grid gap-3 sm:grid-cols-2\">\n          <div v-for=\"field in fields\" :key=\"field\" class=\"grid gap-1.5\">\n            <UiLabel :for=\"`map-${field}`\">{{ field }}</UiLabel>\n            <UiNativeSelect :id=\"`map-${field}`\" v-model=\"mapping[field]\">\n              <option value=\"\">Do not import</option>\n              <option v-for=\"column in headers\" :key=\"column\" :value=\"column\">{{ column }}</option>\n            </UiNativeSelect>\n          </div>\n        </div>\n\n        <h2 class=\"mt-8 font-semibold\">Preview</h2>\n        <div class=\"mt-3 overflow-hidden rounded-xl border\">\n          <UiTable>\n            <UiTableHeader>\n              <UiTableRow>\n                <UiTableHead v-for=\"field in mappedFields\" :key=\"field\">{{ field }}</UiTableHead>\n              </UiTableRow>\n            </UiTableHeader>\n            <UiTableBody>\n              <UiTableRow v-for=\"(row, index) in rows.slice(0, 3)\" :key=\"index\">\n                <UiTableCell v-for=\"field in mappedFields\" :key=\"field\">\n                  {{ row[headers.indexOf(mapping[field]!)] }}\n                </UiTableCell>\n              </UiTableRow>\n              <UiTableEmpty v-if=\"!mappedFields.length\" :colspan=\"1\"\n                >Map at least one column.</UiTableEmpty\n              >\n            </UiTableBody>\n          </UiTable>\n        </div>\n\n        <div class=\"mt-8 flex justify-end\">\n          <UiButton :disabled=\"!mappedFields.length || loading\" @click=\"runImport\">\n            <UiLoader v-if=\"loading\" />\n            Import {{ rows.length }} rows\n          </UiButton>\n        </div>\n      </template>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const fields = [\"Name\", \"Email\", \"Company\"];\n  const sample = `Full name,Work email,Organisation,Notes\nHannah Lee,hannah@globex.example,Globex,VIP\nMarco Rossi,marco@initech.example,Initech,Trial\nPriya Nair,priya@umbrella.example,Umbrella Labs,\nLukas Meyer,lukas@hooli.example,Hooli,Referral`;\n\n  const fileName = ref(\"\");\n  const headers = ref<string[]>([]);\n  const rows = ref<string[][]>([]);\n  const mapping = reactive<Record<string, string>>({ Name: \"\", Email: \"\", Company: \"\" });\n  const loading = ref(false);\n\n  function parse(text: string, name: string) {\n    const lines = text.split(/\\r?\\n/).filter((line) => line.trim());\n    if (lines.length < 2) {\n      useSonner.error(\"That file needs a header row and at least one row of data\");\n      return;\n    }\n    headers.value = lines[0]!.split(\",\").map((cell) => cell.trim());\n    rows.value = lines.slice(1).map((line) => line.split(\",\").map((cell) => cell.trim()));\n    fileName.value = name;\n    // Guess a sensible mapping from the header names.\n    for (const field of fields) {\n      const guess = headers.value.find((column) =>\n        column.toLowerCase().includes(field.toLowerCase())\n      );\n      mapping[field] = guess ?? \"\";\n    }\n    mapping.Company ||= headers.value.find((column) => /org|company/i.test(column)) ?? \"\";\n  }\n\n  async function onFiles(files: File[]) {\n    const file = files[0];\n    if (!file) return;\n    parse(await file.text(), file.name);\n  }\n\n  function loadSample() {\n    parse(sample, \"contacts-sample.csv\");\n  }\n\n  function clear() {\n    rows.value = [];\n    headers.value = [];\n    fileName.value = \"\";\n  }\n\n  const mappedFields = computed(() => fields.filter((field) => mapping[field]));\n\n  async function runImport() {\n    loading.value = true;\n    await new Promise((resolve) => setTimeout(resolve, 700));\n    loading.value = false;\n    useSonner.success(`Imported ${rows.value.length} rows`);\n    clear();\n  }\n</script>\n","category":"WorkspaceSetup","description":"Import your data. Features: Source cards for CSV, spreadsheet and another app, a dropzone for CSV files that parses the header row, a preview table of the first rows, column mapping selects and an import button with a loading state","path":"Onboarding/WorkspaceSetup/BlockWorkspaceSetup5.vue","components":["button","container","dropfile","label","loader","native-select","table"]},{"name":"Workspace Setup 6","fileName":"BlockWorkspaceSetup6.vue","file":"<template>\n  <!--\n    Notification preferences for new users\n    Features: Email and in app switches grouped by topic, a digest frequency radio group, quiet hours with time inputs that only show when enabled, a save button and a recommended defaults shortcut\n  -->\n  <UiContainer class=\"py-16 lg:py-24\">\n    <div class=\"mx-auto max-w-2xl\">\n      <div class=\"flex flex-wrap items-end justify-between gap-3\">\n        <div>\n          <h1 class=\"text-3xl font-bold tracking-tight\">Stay in the loop</h1>\n          <p class=\"text-muted-foreground mt-2\">Choose how and when we should reach you.</p>\n        </div>\n        <UiButton variant=\"outline\" size=\"sm\" @click=\"useRecommended\">Use recommended</UiButton>\n      </div>\n\n      <UiCard class=\"mt-8\">\n        <UiCardHeader>\n          <UiCardTitle>Topics</UiCardTitle>\n          <UiCardDescription>Pick the channels for each kind of update.</UiCardDescription>\n        </UiCardHeader>\n        <UiCardContent>\n          <div\n            class=\"text-muted-foreground mb-2 grid grid-cols-[1fr_4rem_4rem] text-xs font-medium\"\n          >\n            <span />\n            <span class=\"text-center\">Email</span>\n            <span class=\"text-center\">In app</span>\n          </div>\n          <div class=\"divide-y\">\n            <div\n              v-for=\"topic in topics\"\n              :key=\"topic.key\"\n              class=\"grid grid-cols-[1fr_4rem_4rem] items-center py-3\"\n            >\n              <div>\n                <p class=\"text-sm font-medium\">{{ topic.label }}</p>\n                <p class=\"text-muted-foreground text-xs\">{{ topic.description }}</p>\n              </div>\n              <div class=\"flex justify-center\">\n                <UiSwitch\n                  v-model=\"prefs[topic.key]!.email\"\n                  :aria-label=\"`${topic.label} by email`\"\n                />\n              </div>\n              <div class=\"flex justify-center\">\n                <UiSwitch\n                  v-model=\"prefs[topic.key]!.app\"\n                  :aria-label=\"`${topic.label} in the app`\"\n                />\n              </div>\n            </div>\n          </div>\n        </UiCardContent>\n      </UiCard>\n\n      <UiCard class=\"mt-6\">\n        <UiCardHeader>\n          <UiCardTitle>Email digest</UiCardTitle>\n        </UiCardHeader>\n        <UiCardContent class=\"grid gap-6\">\n          <UiRadioGroup\n            v-model=\"digest\"\n            class=\"grid gap-2 sm:grid-cols-3\"\n            aria-label=\"Digest frequency\"\n          >\n            <label\n              v-for=\"option in digests\"\n              :key=\"option\"\n              :for=\"`digest-${option}`\"\n              class=\"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 flex cursor-pointer items-center gap-2 rounded-lg border p-3 text-sm\"\n            >\n              <UiRadioGroupItem :id=\"`digest-${option}`\" :value=\"option\" />\n              {{ option }}\n            </label>\n          </UiRadioGroup>\n\n          <div class=\"flex items-center justify-between gap-4\">\n            <div>\n              <UiLabel for=\"quiet\" class=\"font-medium\">Quiet hours</UiLabel>\n              <p class=\"text-muted-foreground text-sm\">Pause notifications while you rest.</p>\n            </div>\n            <UiSwitch id=\"quiet\" v-model=\"quiet\" />\n          </div>\n          <div v-if=\"quiet\" class=\"grid grid-cols-2 gap-4\">\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"quiet-from\">From</UiLabel>\n              <UiInput id=\"quiet-from\" v-model=\"from\" type=\"time\" />\n            </div>\n            <div class=\"grid gap-2\">\n              <UiLabel for=\"quiet-to\">Until</UiLabel>\n              <UiInput id=\"quiet-to\" v-model=\"to\" type=\"time\" />\n            </div>\n          </div>\n        </UiCardContent>\n        <UiCardFooter class=\"justify-end\">\n          <UiButton @click=\"useSonner.success('Preferences saved')\">Save preferences</UiButton>\n        </UiCardFooter>\n      </UiCard>\n    </div>\n  </UiContainer>\n</template>\n\n<script lang=\"ts\" setup>\n  const topics = [\n    { key: \"mentions\", label: \"Mentions\", description: \"When someone tags you.\" },\n    { key: \"assigned\", label: \"Assignments\", description: \"When work is assigned to you.\" },\n    { key: \"comments\", label: \"Comments\", description: \"Replies on things you follow.\" },\n    { key: \"product\", label: \"Product news\", description: \"New features and tips.\" },\n  ];\n\n  const digests = [\"Daily\", \"Weekly\", \"Never\"];\n\n  const prefs = reactive<Record<string, { email: boolean; app: boolean }>>({\n    mentions: { email: true, app: true },\n    assigned: { email: true, app: true },\n    comments: { email: false, app: true },\n    product: { email: false, app: false },\n  });\n\n  const digest = ref(\"Weekly\");\n  const quiet = ref(false);\n  const from = ref(\"22:00\");\n  const to = ref(\"07:00\");\n\n  function useRecommended() {\n    prefs.mentions = { email: true, app: true };\n    prefs.assigned = { email: true, app: true };\n    prefs.comments = { email: false, app: true };\n    prefs.product = { email: false, app: false };\n    digest.value = \"Weekly\";\n    quiet.value = false;\n    useSonner.info(\"Recommended settings applied\");\n  }\n</script>\n","category":"WorkspaceSetup","description":"Notification preferences for new users. Features: Email and in app switches grouped by topic, a digest frequency radio group, quiet hours with time inputs that only show when enabled, a save button and a recommended defaults shortcut","path":"Onboarding/WorkspaceSetup/BlockWorkspaceSetup6.vue","components":["button","card","container","input","label","radio-group","switch"]}]