accordion-01
Loading...
import {
Plus,
} from "@designali/icons"
import { cn } from "@/lib/utils"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const items = [
{
id: "01",
title: "Who am I?",
content:
"I’m Ali Imam — a designer and creative developer focused on building digital experiences that are minimal, meaningful, and timeless.",
},
{
id: "02",
title: "What do I design?",
content:
"I create clean, functional interfaces, brand systems, and digital products. My work blends simplicity with clarity and usability.",
},
{
id: "03",
title: "My design approach",
content:
"For me, design isn’t just visuals — it’s how something feels and works. I focus on clarity, detail, and storytelling in every project.",
},
{
id: "04",
title: "Beyond design",
content:
"I bridge design and development, turning ideas into interactive experiences with modern tools and technology.",
},
{
id: "05",
title: "What inspires me",
content:
"Minimalism, architecture, and everyday details. I believe great design is found in the small things we often overlook.",
},
{
id: "06",
title: "Who I work with",
content:
"I collaborate with startups, brands, and individuals who value thoughtful design and want to create lasting impact.",
},
{
id: "07",
title: "My toolkit",
content:
"Figma, Next.js, and modern frameworks are part of my process — but for me, tools always serve the idea, not the other way around.",
},
{
id: "08",
title: "Let’s connect",
content:
"You can reach me through hello@designali.com or on social platforms. I’m always open to new projects, collaborations, and conversations.",
},
]
export function Accordion01() {
return (
<div className="mx-auto flex h-full w-full max-w-xl items-center justify-center">
<Accordion defaultValue={["03"]} className="w-full">
{items.map((item) => (
<AccordionItem value={item.id} key={item.id}>
<AccordionTrigger className="[data-slot=accordion-trigger] cursor-pointer text-left duration-1000 hover:pl-3 hover:no-underline hover:[&_div.bg-primary]:bg-secondary hover:[&_svg]:rotate-90 hover:[&_svg]:text-primary [&>svg]:hidden">
<div className="flex flex-1 items-start justify-between gap-4">
<div className="flex items-center gap-3">
<h1>{item.id}</h1>
<h3 className="text-lg font-semibold md:text-xl">
{item.title}
</h3>
</div>
<div className="flex items-center bg-primary p-2 duration-500">
<Plus
className={cn(
"size-4 shrink-0 text-primary-foreground transition-transform duration-1000",
"[data-state=open]:rotate-90"
)}
/>
</div>
</div>
</AccordionTrigger>
<AccordionContent className="pr-20 pb-6 text-muted-foreground">
{item.content}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-02
Loading...
/* eslint-disable react/jsx-key */
import {
Minus,
Plus,
} from "@designali/icons"
import { cn } from "@/lib/utils"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
const items = [
{
id: "01",
title: "Who am I?",
content: [
<div
className="relative grid gap-10 pb-30 md:grid-cols-2 lg:gap-30 lg:pt-10"
key="01"
>
<div className="">
<h1 className="text-xs">
I’m Ali Imam, a designer and creative developer dedicated to
crafting digital experiences that are minimal, meaningful, and
timeless. My work blends aesthetic precision with technical
expertise, creating interfaces and products that feel intuitive and
resonate deeply with users. Inspired by the harmony of architecture
and the subtleties of human behavior, I approach every project with
curiosity and a commitment to storytelling. Whether designing a
sleek app interface or coding a responsive website, my goal is to
create experiences that leave a lasting impression while solving
real problems for users and businesses alike.
</h1>
</div>
<div className="space-y-3 pr-6 text-[8px]">
<h1 className="">RELATED SERVICES</h1>
<h1 className="">
Creative Direction, UI/UX Design, Front-End Development, Brand
Identity Design, Interaction Design, Prototyping, User Research,
Visual Storytelling, Responsive Web Design, Design Systems
</h1>
</div>
<div className="absolute right-0 bottom-0">
<Button className="h-16 cursor-pointer rounded-r-none rounded-b-none px-10 text-xs">
Reach out contact@designali.com
</Button>
</div>
</div>,
],
},
{
id: "02",
title: "What do I design?",
content: [
<div
className="relative grid gap-10 pb-30 md:grid-cols-2 lg:gap-30 lg:pt-10"
key="02"
>
<div className="">
<h1 className="text-xs">
I design clean, functional, and visually compelling interfaces,
brand systems, and digital products that prioritize usability and
clarity. From pixel-perfect mobile apps to immersive websites, my
work is rooted in simplicity, ensuring every element serves a
purpose. I create cohesive brand identities that reflect a company’s
essence and connect emotionally with audiences. My designs are not
just about aesthetics—they’re about guiding users effortlessly
through intuitive layouts, thoughtful typography, and seamless
interactions. Whether it’s a startup’s landing page or a complex
SaaS platform, I aim to deliver experiences that are both beautiful
and highly functional.
</h1>
</div>
<div className="space-y-3 pr-6 text-[8px]">
<h1 className="">RELATED SERVICES</h1>
<h1 className="">
UI/UX Design, Web Design, Mobile App Design, Brand Identity Systems,
Visual Design, Wireframing, Prototyping, Design Systems,
Iconography, Animation Design
</h1>
</div>
<div className="absolute right-0 bottom-0">
<Button className="h-16 cursor-pointer rounded-r-none rounded-b-none px-10 text-xs">
Reach out contact@designali.com
</Button>
</div>
</div>,
],
},
{
id: "03",
title: "My design approach",
content: [
<div
className="relative grid gap-10 pb-30 md:grid-cols-2 lg:gap-30 lg:pt-10"
key="03"
>
<div className="">
<h1 className="text-xs">
My design approach is holistic, blending form, function, and feeling
to create experiences that resonate. I prioritize clarity, ensuring
users grasp a design’s purpose instantly, while obsessing over
details like typography and micro-interactions to elevate the
experience. Storytelling is at the core—every project tells a
narrative that connects with its audience emotionally and
intellectually. I start by understanding user needs and business
goals, then iterate through sketches, wireframes, and prototypes,
refining based on feedback. This process ensures designs are not
only visually striking but also intuitive and purposeful, creating a
seamless bridge between user expectations and client objectives.
</h1>
</div>
<div className="space-y-3 pr-6 text-[8px]">
<h1 className="">RELATED SERVICES</h1>
<h1 className="">
User-Centered Design, Interaction Design, Prototyping, User Testing,
Design Thinking, Visual Storytelling, Information Architecture,
Accessibility Design, Feedback Integration, Iterative Design
</h1>
</div>
<div className="absolute right-0 bottom-0">
<Button className="h-16 cursor-pointer rounded-r-none rounded-b-none px-10 text-xs">
Reach out contact@designali.com
</Button>
</div>
</div>,
],
},
{
id: "04",
title: "Beyond design",
content: [
<div
className="relative grid gap-10 pb-30 md:grid-cols-2 lg:gap-30 lg:pt-10"
key="04"
>
<div className="">
<h1 className="text-xs">
As a creative developer, I go beyond designing visuals—I build
interactive, performant experiences that bring ideas to life. Using
tools like Next.js, React, and TypeScript, I code responsive
websites and applications that are as robust as they are beautiful.
My dual expertise in design and development allows me to oversee
projects from concept to deployment, ensuring a seamless transition
from prototypes to production. Whether it’s integrating APIs,
optimizing performance, or crafting smooth animations, I focus on
creating digital products that users can engage with effortlessly
across devices, delivering both technical excellence and aesthetic
finesse.
</h1>
</div>
<div className="space-y-3 pr-6 text-[8px]">
<h1 className="">RELATED SERVICES</h1>
<h1 className="">
Front-End Development, Full-Stack Development, API Integration,
Responsive Web Development, Animation Coding, Performance
Optimization, CMS Integration, JavaScript Frameworks, Web
Accessibility, Code Reviews
</h1>
</div>
<div className="absolute right-0 bottom-0">
<Button className="h-16 cursor-pointer rounded-r-none rounded-b-none px-10 text-xs">
Reach out contact@designali.com
</Button>
</div>
</div>,
],
},
{
id: "05",
title: "What inspires me",
content: [
<div
className="relative grid gap-10 pb-30 md:grid-cols-2 lg:gap-30 lg:pt-10"
key="05"
>
<div className="">
<h1 className="text-xs">
My inspiration stems from the elegance of minimalism, the structural
beauty of architecture, and the subtle details of everyday life. A
perfectly balanced building, the texture of a natural material, or
the rhythm of a bustling street can spark ideas for a user interface
or brand system. I’m also inspired by human behavior—how people
interact with technology, what frustrates them, and what brings joy.
This curiosity drives me to design with intention, creating
experiences that feel calm, intuitive, and timeless. By focusing on
the often-overlooked details, I craft designs that resonate deeply
and endure over time.
</h1>
</div>
<div className="space-y-3 pr-6 text-[8px]">
<h1 className="">RELATED SERVICES</h1>
<h1 className="">
Moodboard Creation, Visual Inspiration Curation, Environmental
Design, User Behavior Analysis, Emotional Design, Minimalist Design,
Concept Development, Design Research, Trend Analysis, Creative
Consulting
</h1>
</div>
<div className="absolute right-0 bottom-0">
<Button className="h-16 cursor-pointer rounded-r-none rounded-b-none px-10 text-xs">
Reach out contact@designali.com
</Button>
</div>
</div>,
],
},
{
id: "06",
title: "Who I work with",
content: [
<div
className="relative grid gap-10 pb-30 md:grid-cols-2 lg:gap-30 lg:pt-10"
key="06"
>
<div className="">
<h1 className="text-xs">
I partner with startups, brands, and individuals who share a passion
for thoughtful design and meaningful impact. My collaborators range
from tech entrepreneurs launching innovative products to established
companies seeking to refresh their digital presence. I thrive in
partnerships where creativity is valued, and ideas are explored
collaboratively. By deeply understanding my clients’ goals,
challenges, and audiences, I create designs that not only meet their
needs but also inspire their users. Whether it’s a bold new app or a
refined brand identity, I work with those who want to make a lasting
difference through design that’s purposeful and memorable.
</h1>
</div>
<div className="space-y-3 pr-6 text-[8px]">
<h1 className="">RELATED SERVICES</h1>
<h1 className="">
Client Collaboration, Startup Consulting, Brand Strategy,
User-Centered Design, Project Management, Stakeholder Workshops,
Creative Direction, Brand Refresh, Product Launch Design, Community
Engagement Design
</h1>
</div>
<div className="absolute right-0 bottom-0">
<Button className="h-16 cursor-pointer rounded-r-none rounded-b-none px-10 text-xs">
Reach out contact@designali.com
</Button>
</div>
</div>,
],
},
{
id: "07",
title: "My toolkit",
content: [
<div
className="relative grid gap-10 pb-30 md:grid-cols-2 lg:gap-30 lg:pt-10"
key="07"
>
<div className="">
<h1 className="text-xs">
My toolkit is a blend of design and development tools that empower
me to execute ideas with precision and efficiency. For design, I use
Figma to create wireframes, prototypes, and pixel-perfect
interfaces, enabling seamless collaboration with clients. On the
development side, I leverage Next.js, React, and TypeScript to build
fast, scalable applications. Tools like GSAP bring animations to
life, while Tailwind CSS ensures consistent, rapid styling. However,
tools are secondary to the idea—they exist to serve the vision. My
focus is on crafting solutions that align with the project’s goals,
ensuring both aesthetic excellence and technical performance in
every deliverable.
</h1>
</div>
<div className="space-y-3 pr-6 text-[8px]">
<h1 className="">RELATED SERVICES</h1>
<h1 className="">
Figma Prototyping, Next.js Development, React Development,
TypeScript Coding, Animation Design, CSS Styling, Design-to-Code
Workflow, Tool Integration, Performance Optimization, Collaborative
Design Systems
</h1>
</div>
<div className="absolute right-0 bottom-0">
<Button className="h-16 cursor-pointer rounded-r-none rounded-b-none px-10 text-xs">
Reach out contact@designali.com
</Button>
</div>
</div>,
],
},
{
id: "08",
title: "Let’s connect",
content: [
<div
className="relative grid gap-10 pb-30 md:grid-cols-2 lg:gap-30 lg:pt-10"
key="08"
>
<div className="">
<h1 className="text-xs">
I’m passionate about connecting with those who share a love for
design, technology, and creativity. Whether you’re a startup founder
with a bold vision, a brand seeking a fresh identity, or someone who
wants to explore the possibilities of design, I’m here to
collaborate. Reach me at contact@designali.com or find me on X,
LinkedIn, or Dribbble, where I share my latest work and insights.
I’m open to new projects, creative partnerships, or even a chat
about the future of digital experiences. Let’s create something
meaningful together—reach out, and let’s start the conversation.
</h1>
</div>
<div className="space-y-3 pr-6 text-[8px]">
<h1 className="">RELATED SERVICES</h1>
<h1 className="">
Creative Consulting, Project Scoping, Collaboration Workshops,
Social Media Content Creation, Portfolio Reviews, Design Mentorship,
Networking Events, Project Proposals, Client Onboarding, Idea
Brainstorming
</h1>
</div>
<div className="absolute right-0 bottom-0">
<Button className="h-16 cursor-pointer rounded-r-none rounded-b-none px-10 text-xs">
Reach out contact@designali.com
</Button>
</div>
</div>,
],
},
]
export function Accordion02() {
return (
<div className="flex h-full w-full items-center justify-center">
<Accordion defaultValue={["03"]} className="w-full border">
{items.map((item) => (
<AccordionItem value={item.id} key={item.id}>
<AccordionTrigger className="[data-slot=accordion-trigger] cursor-pointer text-left duration-500 hover:no-underline data-[state=open]:[&_svg]:rotate-180 data-[state=open]:[&_svg]:[#plus]:opacity-0 [&_svg]:[#plus]:[data-state=open]:opacity-0 [&>svg]:hidden">
<div className="flex flex-1 items-center gap-4">
<div className="relative ml-4">
<Plus
id="plus"
className={cn(
"h-6 w-6 shrink-0 transition-all duration-500",
"data-[state=closed]:opacity-100 group-aria-expanded/accordion-trigger:opacity-0",
"group-aria-expanded/accordion-trigger:rotate-180"
)}
/>
<Minus
id="minus"
className={cn(
"absolute inset-0 h-6 w-6 opacity-100 transition-all duration-500",
"hover:opacity-100 group-aria-expanded/accordion-trigger:opacity-100",
"group-aria-expanded/accordion-trigger:rotate-180"
)}
/>
</div>
<h3 className="text-lg font-semibold">{item.title}</h3>
</div>
</AccordionTrigger>
<AccordionContent className="ml-6 p-0">
{item.content}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-03
Loading...
/* eslint-disable @next/next/no-img-element */
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
const items = [
{
id: "01",
title: "Who am I?",
img: "/img/chat-1-light.jpg",
content:
"I’m Ali Imam — a multidisciplinary designer and creative developer crafting thoughtful digital experiences with purpose and precision.",
},
{
id: "02",
title: "What do I design?",
img: "/img/dashboard-1-dark.jpg",
content:
"I design intuitive interfaces, visual identities, and digital products that connect clarity with emotion — always guided by simplicity and usability.",
},
{
id: "03",
title: "My design approach",
img: "/img/hero-1.jpg",
content:
"Every project begins with understanding. I combine logic, emotion, and craft to create experiences that feel effortless and meaningful.",
},
{
id: "04",
title: "Philosophy & values",
img: "/img/hero-2.jpg",
content:
"Design should be timeless — not trendy. I value honesty in visuals, restraint in detail, and intention in every decision I make.",
},
{
id: "05",
title: "Beyond design",
img: "/img/login-1.jpg",
content:
"Outside of work, I explore photography, motion, and creative coding — all ways to see and shape the world differently.",
},
]
export function Accordion03() {
return (
<div className="mx-auto flex w-full max-w-3xl items-center justify-center border">
<Accordion defaultValue={["02"]} className="h-full w-full">
{items.map((item) => (
<AccordionItem
value={item.id}
key={item.id}
className="relative overflow-hidden"
>
<AccordionTrigger
className="group px-6 hover:no-underline [&>svg]:hidden data-[state=open]:h-40"
>
<h2 className="text-lg font-semibold md:text-xl">
{item.title}
</h2>
</AccordionTrigger>
<AccordionContent className="w-full p-0 pr-4">
<div className="flex h-full w-full flex-col md:flex-row">
{/* Content */}
<div className="flex w-full shrink-0 flex-col justify-between gap-6 p-6 md:w-80">
<p className="text-muted-foreground">
{item.content}
</p>
<Button className="w-fit">
View More
</Button>
</div>
{/* Image */}
<div className="min-h-0 flex-1 border border-b-0">
<img
src={item.img}
alt={item.title}
className="h-full w-full object-contain"
/>
</div>
</div>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-04
Loading...
/* eslint-disable react/jsx-key */
import {
Plus,
X,
} from "@designali/icons"
import { cn } from "@/lib/utils"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const items = [
{
id: "01",
title: "Who am I?",
content:
"I’m Ali Imam — a designer and creative developer focused on building digital experiences that are minimal, meaningful, and timeless.",
},
{
id: "02",
title: "What do I design?",
content:
"I create clean, functional interfaces, brand systems, and digital products. My work blends simplicity with clarity and usability.",
},
{
id: "03",
title: "My design approach",
content:
"For me, design isn’t just visuals — it’s how something feels and works. I focus on clarity, detail, and storytelling in every project.",
},
{
id: "04",
title: "Beyond design",
content:
"I bridge design and development, turning ideas into interactive experiences with modern tools and technology.",
},
{
id: "05",
title: "What inspires me",
content:
"Minimalism, architecture, and everyday details. I believe great design is found in the small things we often overlook.",
},
]
export function Accordion02() {
return (
<div className="mx-auto flex h-full w-full max-w-xl items-center justify-center">
<Accordion defaultValue={["04"]} className="w-full space-y-2">
{items.map((item) => (
<AccordionItem
value={item.id}
key={item.id}
className="border last:border-b"
>
<AccordionTrigger className="m-1 cursor-pointer bg-primary/10 px-6 text-left hover:no-underline">
<div className="flex w-full items-center justify-between gap-4">
<h3 className="text-2xl font-semibold">
{item.title}
</h3>
<div className="relative h-6 w-6 shrink-0">
<Plus
strokeWidth={2}
className="
absolute inset-0
h-6 w-6
rotate-0 opacity-100
transition-all duration-300
group-aria-expanded/accordion-trigger:rotate-45
group-aria-expanded/accordion-trigger:opacity-0
"
/>
<X
strokeWidth={2}
className="
absolute inset-0
h-6 w-6
rotate-45 opacity-0
transition-all duration-300
group-aria-expanded/accordion-trigger:rotate-0
group-aria-expanded/accordion-trigger:opacity-100
"
/>
</div>
</div>
</AccordionTrigger>
<AccordionContent className="p-6">{item.content}</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-05
Loading...
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const items = [
{
id: "1",
title: "Who am I?",
content:
"I’m Ali Imam — a designer and creative developer focused on building digital experiences that are minimal, meaningful, and timeless.",
},
{
id: "2",
title: "What do I design?",
content:
"I create clean, functional interfaces, brand systems, and digital products. My work blends simplicity with clarity and usability.",
},
{
id: "3",
title: "My design approach",
content:
"For me, design isn’t just visuals — it’s how something feels and works. I focus on clarity, detail, and storytelling in every project.",
},
{
id: "4",
title: "Beyond design",
content:
"I bridge design and development, turning ideas into interactive experiences with modern tools and technology.",
},
{
id: "5",
title: "What inspires me",
content:
"Minimalism, architecture, and everyday details. I believe great design is found in the small things we often overlook.",
},
{
id: "6",
title: "Who I work with",
content:
"I collaborate with startups, brands, and individuals who value thoughtful design and want to create lasting impact.",
},
{
id: "7",
title: "My toolkit",
content:
"Figma, Next.js, and modern frameworks are part of my process — but for me, tools always serve the idea, not the other way around.",
},
{
id: "8",
title: "Let’s connect",
content:
"You can reach me through hello@designali.com or on social platforms. I’m always open to new projects, collaborations, and conversations.",
},
]
export function PricingAccordion() {
return (
<div className="mx-auto flex h-full w-full max-w-3xl items-center justify-center">
<Accordion defaultValue={["2"]} className="w-full">
{items.map((item) => (
<AccordionItem
value={item.id}
key={item.id}
className="border-transparent"
>
<AccordionTrigger className="cursor-pointer border-0 text-foreground/20 duration-200 hover:no-underline">
<div className="flex flex-1 items-start gap-4 overflow-hidden">
<div className="border-b flex gap-6 pl-10 w-full h-9">
<p className="text-xs">{item.id}</p>
<h1
className={`font-sans font-bold relative -translate-y-1 text-3xl uppercase md:text-5xl`}
>
{item.title}
</h1>
</div>
</div>
</AccordionTrigger>
<AccordionContent className="pb-10 border-b pl-20 text-muted-foreground">
{item.content}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-06
Loading...
"use client"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
export function FAQs() {
const faqItems = [
{
id: "item-1",
question: "How fast will I receive my designs?",
answer:
"Most design requests are completed within 24–48 hours. Larger or more complex requests may take longer, but I provide daily progress updates so you always know what’s happening.",
},
{
id: "item-2",
question: "Who will be working on my designs?",
answer:
"You’ll work directly with me, Ali — the founder and sole designer. I don’t outsource or use a team, so every design is personally crafted with full attention.",
},
{
id: "item-3",
question: "What type of design work do you offer?",
answer:
"I work across all kinds of design, including branding, UI/UX, social media creatives, marketing designs, and website visuals.",
},
{
id: "item-4",
question: "Is there a limit to how many requests I can make?",
answer:
"There’s no limit on total requests. Depending on your plan, I work on a fixed number of active requests at a time. Once one is done, the next begins.",
},
{
id: "item-5",
question: "Do you offer unlimited revisions?",
answer:
"Yes. Unlimited revisions are included. I’ll keep refining the design until you’re fully satisfied.",
},
{
id: "item-6",
question: "How do you handle large or complex projects?",
answer:
"Large projects are broken into smaller tasks or phases to ensure quality, clarity, and timely delivery.",
},
{
id: "item-7",
question: "How will I receive updates on my work?",
answer:
"I share daily updates on what was completed that day, so you’re always aware of progress.",
},
{
id: "item-8",
question: "How do we communicate?",
answer:
"For smooth and fast communication, I’m available on WhatsApp. Other tools can also be used if preferred.",
},
{
id: "item-9",
question: "How do I submit design requests?",
answer:
"You can submit requests through WhatsApp, Figma, Google Docs, Notion, Trello, or Loom — whatever is easiest for you.",
},
{
id: "item-10",
question: "What if I don’t like the design?",
answer:
"That’s completely fine. We’ll revise it until it matches your vision. Feedback is a core part of the process.",
},
]
return (
<div className="border">
<Accordion defaultValue={["item-7"]} className="-mb-1 w-sm md:w-xl">
{faqItems.map((item) => (
<AccordionItem
key={item.id}
value={item.id}
className="space-y-1 border-none"
>
<AccordionTrigger className="group flex w-full justify-end py-0 hover:no-underline [&_svg]:hidden">
<div className="max-w-[80%] cursor-pointer bg-primary px-4 py-3 text-left text-base text-primary-foreground transition">
{item.question}
</div>
</AccordionTrigger>
<AccordionContent className="flex justify-start">
<div className="max-w-[80%] bg-muted px-4 py-3 text-base text-muted-foreground">
{item.answer}
</div>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-07
Loading...
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const faqs = [
{
value: "refund",
question: "Can I get a refund on a Designali template?",
answer:
"Yes. If a template or block pack isn’t right for you, email support@designali.com within 14 days for a full refund.",
},
{
value: "seats",
question: "Can I use Designali blocks in client projects?",
answer:
"Yes. Every license covers personal and client work — just don’t resell the blocks as-is.",
},
{
value: "export",
question: "Can I export designs to Figma?",
answer:
"Every template ships with production-ready Next.js code, and most include a matching Figma file.",
},
]
export function AccordionBasicFaq() {
return (
<Accordion defaultValue={["refund"]} className="w-full max-w-md">
{faqs.map((faq) => (
<AccordionItem key={faq.value} value={faq.value}>
<AccordionTrigger>
{faq.question}
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
{faq.answer}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-08
Loading...
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const sections = [
{
value: "overview",
title: "Overview",
body: "Quarterly roadmap for designali.com, covering new blocks, the icon library and the redesigned docs.",
},
{
value: "goals",
title: "Goals",
body: "Ship 60 new blocks, reach 4000+ icons in @designali/icons and keep every page above 95 on Lighthouse.",
},
{
value: "risks",
title: "Risks",
body: "Client work and product work share the same small studio team this quarter.",
},
{
value: "owners",
title: "Owners",
body: "Design & code: Ali Imam. Studio: Designali.",
},
]
export function AccordionMultipleOpen() {
return (
<div className="w-full max-w-md space-y-2">
<p className="text-xs text-muted-foreground">
Open as many sections as you like.
</p>
<Accordion
multiple
defaultValue={["overview", "goals"]}
className="border px-3"
>
{sections.map((section) => (
<AccordionItem key={section.value} value={section.value}>
<AccordionTrigger>
{section.title}
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
{section.body}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-09
Loading...
"use client"
import * as React from "react"
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
const topics = [
{
value: "install",
title: "Installing a Designali block",
body: "Copy the install command from designali.com/blocks and run it inside your Next.js project.",
},
{
value: "auth",
title: "Adding icons",
body: "Install @designali/icons and import any of the 4000+ icons by name.",
},
{
value: "deploy",
title: "Your first deploy",
body: "Push to GitHub and import the repo on Vercel — Next.js is detected automatically.",
},
{
value: "rollback",
title: "Rolling back",
body: "Open Deployments on Vercel, pick a previous build and choose Promote to production.",
},
]
export function AccordionExpandCollapseAll() {
const [open, setOpen] = React.useState<string[]>(["install"])
const allOpen = open.length === topics.length
return (
<div className="w-full max-w-md space-y-3">
<div className="flex items-center justify-between">
<p className="text-sm font-medium">Getting started with Designali</p>
<div className="flex gap-1">
<Button
size="xs"
variant="outline"
disabled={allOpen}
onClick={() => setOpen(topics.map((t) => t.value))}
>
Expand all
</Button>
<Button
size="xs"
variant="ghost"
disabled={open.length === 0}
onClick={() => setOpen([])}
>
Collapse all
</Button>
</div>
</div>
<Accordion
multiple
value={open}
onValueChange={(value) => setOpen(value as string[])}
className="border px-3"
>
{topics.map((topic) => (
<AccordionItem key={topic.value} value={topic.value}>
<AccordionTrigger>
{topic.title}
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
{topic.body}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
<p className="text-xs text-muted-foreground">
{open.length} of {topics.length} sections open
</p>
</div>
)
}
accordion-10
Loading...
import {
ChevronDown as ChevronDownIcon,
Lock as LockIcon,
Sparkles as SparklesIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
const features = [
{
value: "reports",
title: "Free blocks",
locked: false,
body: "Copy any free Designali block straight into your Next.js project.",
},
{
value: "alerts",
title: "Icons & logos",
locked: false,
body: "Use @designali/icons and @designali/logos in every project.",
},
{ value: "sso", title: "Premium templates", locked: true, body: "" },
{ value: "audit", title: "Figma source files", locked: true, body: "" },
]
export function AccordionDisabledItems() {
return (
<div className="w-full max-w-md space-y-3">
<Accordion defaultValue={["reports"]} className="border px-3">
{features.map((feature) => (
<AccordionItem
key={feature.value}
value={feature.value}
disabled={feature.locked}
>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
{feature.locked && (
<LockIcon className="size-3.5 text-muted-foreground" />
)}
{feature.title}
{feature.locked && <Badge variant="outline">Pro</Badge>}
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
{feature.body}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
<Button size="sm" className="w-full">
<SparklesIcon data-icon="inline-start" />
Upgrade to unlock
</Button>
</div>
)
}
accordion-11
Loading...
import {
ChevronDown as ChevronDownIcon,
Headphones as HeadphonesIcon,
RotateCcw as RotateCcwIcon,
ShieldCheck as ShieldCheckIcon,
Truck as TruckIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const policies = [
{
value: "shipping",
icon: TruckIcon,
title: "Delivery",
body: "Templates and blocks are available to download instantly after checkout on designali.com.",
},
{
value: "returns",
icon: RotateCcwIcon,
title: "Returns",
body: "Not the right fit? Email support@designali.com within 14 days for a full refund.",
},
{
value: "warranty",
icon: ShieldCheckIcon,
title: "Updates",
body: "Every template gets free updates as Next.js, React and Tailwind CSS evolve.",
},
{
value: "support",
icon: HeadphonesIcon,
title: "Support",
body: "Questions go straight to the Designali studio at hello@designali.com.",
},
]
export function AccordionWithLeadingIcons() {
return (
<Accordion
defaultValue={["shipping"]}
className="w-full max-w-md border px-3"
>
{policies.map((policy) => (
<AccordionItem key={policy.value} value={policy.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2.5">
<span className="flex size-7 items-center justify-center bg-muted">
<policy.icon className="size-3.5" />
</span>
{policy.title}
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="ps-9.5 text-muted-foreground">
{policy.body}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-12
Loading...
import {
ChevronDown as ChevronDownIcon,
ShoppingBag as ShoppingBagIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const lines = [
{ name: "Design Agency template", meta: "Next.js / Personal", qty: 1, price: 89 },
{ name: "Landing page blocks", meta: "Tailwind CSS", qty: 3, price: 14 },
{ name: "Designali icon pack", meta: "SVG + React", qty: 1, price: 24 },
]
export function AccordionCheckoutOrderSummary() {
const subtotal = lines.reduce((sum, line) => sum + line.qty * line.price, 0)
const shipping = 6
const total = subtotal + shipping
return (
<Accordion className="w-full max-w-sm border bg-muted/40 px-3">
<AccordionItem value="summary">
<AccordionTrigger className="items-center py-3">
<span className="flex items-center gap-2">
<ShoppingBagIcon className="size-4" />
Show order summary
</span>
<span className="ms-auto me-2 text-sm font-semibold">
${total.toFixed(2)}
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent>
<ul className="space-y-3 border-t pt-3">
{lines.map((line) => (
<li key={line.name} className="flex items-center gap-3">
<span className="relative flex size-10 shrink-0 items-center justify-center border bg-background text-[10px] text-muted-foreground">
{line.name.slice(0, 2).toUpperCase()}
<span className="absolute -end-1.5 -top-1.5 flex size-4 items-center justify-center bg-foreground text-[9px] text-background">
{line.qty}
</span>
</span>
<span className="flex-1">
<span className="block font-medium">{line.name}</span>
<span className="text-muted-foreground">{line.meta}</span>
</span>
<span>${(line.qty * line.price).toFixed(2)}</span>
</li>
))}
</ul>
<dl className="mt-3 space-y-1 border-t pt-3">
<div className="flex justify-between text-muted-foreground">
<dt>Subtotal</dt>
<dd>${subtotal.toFixed(2)}</dd>
</div>
<div className="flex justify-between text-muted-foreground">
<dt>Tax</dt>
<dd>${shipping.toFixed(2)}</dd>
</div>
<div className="flex justify-between text-sm font-semibold">
<dt>Total</dt>
<dd>${total.toFixed(2)}</dd>
</div>
</dl>
</AccordionContent>
</AccordionItem>
</Accordion>
)
}
accordion-13
Loading...
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Label } from "@/components/ui/label"
import { Switch } from "@/components/ui/switch"
const groups = [
{
value: "notifications",
title: "Notifications",
hint: "Email and push",
options: [
{ id: "mentions", label: "Client feedback on designs", on: true },
{ id: "digest", label: "Weekly Designali digest", on: false },
{ id: "push", label: "New blocks & templates", on: true },
],
},
{
value: "privacy",
title: "Privacy",
hint: "Visibility and data",
options: [
{ id: "profile", label: "Show my work on designali.com", on: false },
{ id: "status", label: "Show online status", on: true },
],
},
{
value: "appearance",
title: "Appearance",
hint: "Motion and density",
options: [
{ id: "motion", label: "Reduce motion", on: false },
{ id: "compact", label: "Compact mode", on: true },
],
},
]
export function AccordionSettingsToggles() {
return (
<Accordion
defaultValue={["notifications"]}
className="w-full max-w-md border px-3"
>
{groups.map((group) => (
<AccordionItem key={group.value} value={group.value}>
<AccordionTrigger className="items-center">
<span className="flex flex-col">
<span className="text-sm">{group.title}</span>
<span className="font-normal text-muted-foreground">
{group.hint}
</span>
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="space-y-3">
{group.options.map((option) => (
<div
key={option.id}
className="flex items-center justify-between gap-4"
>
<Label htmlFor={option.id} className="font-normal">
{option.label}
</Label>
<Switch id={option.id} defaultChecked={option.on} />
</div>
))}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-14
Loading...
import {
ChevronDown as ChevronDownIcon,
Plus as PlusIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const chapters = [
{
value: "guides",
title: "Designali docs",
sections: [
{
value: "routing",
title: "Routing",
body: "Every Designali template uses the Next.js app router — folders map to URLs.",
},
{
value: "data",
title: "Theming",
body: "Change the primary token once and every block picks up your brand colour.",
},
],
},
{
value: "reference",
title: "Components",
sections: [
{
value: "config",
title: "Icons",
body: "Import any icon from @designali/icons — over 4000 to choose from.",
},
{
value: "cli",
title: "Logos",
body: "Brand logos from @designali/logos work as React components with a size prop.",
},
],
},
]
export function AccordionNestedDocs() {
return (
<Accordion
defaultValue={["guides"]}
className="w-full max-w-md border px-3"
>
{chapters.map((chapter) => (
<AccordionItem key={chapter.value} value={chapter.value}>
<AccordionTrigger className="text-sm">
{chapter.title}
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent>
<Accordion
defaultValue={chapter.sections
.slice(0, 1)
.map((section) => section.value)}
className="border-s ps-3"
>
{chapter.sections.map((section) => (
<AccordionItem key={section.value} value={section.value}>
<AccordionTrigger className="py-2 font-normal">
{section.title}
<PlusIcon
data-slot="accordion-trigger-icon"
className="transition-transform group-aria-expanded/accordion-trigger:rotate-45"
/>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
{section.body}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-15
Loading...
import {
ChevronRight as ChevronRightIcon,
File as FileIcon,
Folder as FolderIcon,
FolderOpen as FolderOpenIcon,
FolderPlus as FolderPlusIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
const folders = [
{
value: "brand",
name: "Brand assets",
files: ["designali-logo.svg", "designali-logo-black.svg", "palette.pdf"],
},
{
value: "contracts",
name: "Client projects",
files: ["design-agency-template.fig", "proposal-designali.pdf"],
},
{
value: "research",
name: "Dalim archive",
files: ["dalim-icons.fig", "dalim-ui-notes.md", "dalim-works.pdf"],
},
]
export function AccordionFileExplorer() {
return (
<div className="w-full max-w-xs border">
<div className="flex items-center justify-between border-b px-3 py-2">
<span className="text-xs font-medium">Files</span>
<Button size="icon-xs" variant="ghost" aria-label="New folder">
<FolderPlusIcon />
</Button>
</div>
<Accordion multiple defaultValue={["brand"]} className="p-1">
{folders.map((folder) => (
<AccordionItem
key={folder.value}
value={folder.value}
className="border-none"
>
<AccordionTrigger className="items-center gap-1.5 px-2 py-1.5 font-normal hover:bg-muted hover:no-underline">
<ChevronRightIcon className="size-3.5 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-90" />
<FolderIcon className="size-4 text-muted-foreground group-aria-expanded/accordion-trigger:hidden" />
<FolderOpenIcon className="hidden size-4 text-muted-foreground group-aria-expanded/accordion-trigger:block" />
<span className="flex-1">{folder.name}</span>
<span className="text-muted-foreground">
{folder.files.length}
</span>
</AccordionTrigger>
<AccordionContent className="pb-1">
{folder.files.map((file) => (
<button
key={file}
type="button"
className="flex w-full items-center gap-1.5 py-1.5 ps-9 pe-2 text-start hover:bg-muted"
>
<FileIcon className="size-3.5 text-muted-foreground" />
<span className="truncate">{file}</span>
</button>
))}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-16
Loading...
import {
ArrowRight as ArrowRightIcon,
ChevronDown as ChevronDownIcon,
CircleCheck as CircleCheckIcon,
Circle as CircleIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
import { Progress } from "@/components/ui/progress"
import { cn } from "@/lib/utils"
const steps = [
{
value: "profile",
title: "Complete your profile",
done: true,
body: "Add your name and studio so Designali can tailor recommendations.",
},
{
value: "invite",
title: "Download your first template",
done: true,
body: "Pick a Designali template and run it locally with Next.js.",
},
{
value: "connect",
title: "Install @designali/icons",
done: false,
body: "Add 4000+ icons to your project with a single install.",
},
{
value: "board",
title: "Deploy to Vercel",
done: false,
body: "Push your project live — design se code tak.",
},
]
export function AccordionOnboardingChecklist() {
const done = steps.filter((step) => step.done).length
return (
<div className="w-full max-w-md border">
<div className="space-y-2 border-b p-3">
<div className="flex items-center justify-between text-xs">
<span className="font-medium">Set up your Designali project</span>
<span className="text-muted-foreground">
{done}/{steps.length} done
</span>
</div>
<Progress value={(done / steps.length) * 100} />
</div>
<Accordion defaultValue={["connect"]} className="px-3">
{steps.map((step) => (
<AccordionItem key={step.value} value={step.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
{step.done ? (
<CircleCheckIcon className="size-4 text-primary dark:text-primary" />
) : (
<CircleIcon className="size-4 text-muted-foreground" />
)}
<span
className={cn(
step.done && "text-muted-foreground line-through"
)}
>
{step.title}
</span>
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="space-y-2 ps-6">
<p className="text-muted-foreground">{step.body}</p>
{!step.done && (
<Button size="xs">
Start
<ArrowRightIcon data-icon="inline-end" />
</Button>
)}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-17
Loading...
import {
Check as CheckIcon,
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
const plans = [
{
value: "starter",
name: "Starter",
price: 0,
features: ["Free blocks", "@designali/icons", "Community support"],
},
{
value: "team",
name: "Team",
price: 24,
popular: true,
features: [
"All 460+ blocks",
"240+ landing pages",
"Premium templates",
"Priority support",
],
},
{
value: "scale",
name: "Scale",
price: 79,
features: [
"Everything in Team",
"Figma source files",
"Client project license",
"Direct access to Ali",
],
},
]
export function AccordionPricingPlans() {
return (
<Accordion defaultValue={["team"]} className="w-full max-w-sm space-y-2">
{plans.map((plan) => (
<AccordionItem
key={plan.value}
value={plan.value}
className="border px-3 not-last:border-b data-open:border-foreground"
>
<AccordionTrigger className="items-center py-3">
<span className="flex items-center gap-2 text-sm">
{plan.name}
{plan.popular && <Badge>Popular</Badge>}
</span>
<span className="ms-auto me-2">
<span className="text-sm font-semibold">${plan.price}</span>
<span className="font-normal text-muted-foreground">/mo</span>
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="space-y-3">
<ul className="space-y-1.5">
{plan.features.map((feature) => (
<li key={feature} className="flex items-center gap-2">
<CheckIcon className="size-3.5 text-muted-foreground" />
{feature}
</li>
))}
</ul>
<Button
size="sm"
className="w-full"
variant={plan.popular ? "default" : "outline"}
>
Choose {plan.name}
</Button>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-18
Loading...
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Badge } from "@/components/ui/badge"
const releases = [
{
value: "3.4.0",
date: "Nov 12, 2026",
changes: [
{ type: "New", text: "60 new marketing blocks on designali.com" },
{ type: "Improved", text: "Icon search on /icons is now 40% faster" },
{ type: "Fixed", text: "Dark mode tokens in the pricing blocks" },
],
},
{
value: "3.3.2",
date: "Oct 28, 2026",
changes: [
{ type: "Fixed", text: "Logo sizes in @designali/logos wordmarks" },
{ type: "Fixed", text: "Sidebar flicker in the docs on mobile" },
],
},
{
value: "3.3.0",
date: "Oct 14, 2026",
changes: [
{ type: "New", text: "Apple device mockups: iPhone, iPad and MacBook" },
{ type: "Improved", text: "Keyboard navigation in the blocks search" },
],
},
]
const tone: Record<string, "default" | "secondary" | "outline"> = {
New: "default",
Improved: "secondary",
Fixed: "outline",
}
export function AccordionChangelog() {
return (
<Accordion defaultValue={["3.4.0"]} className="w-full max-w-md border px-3">
{releases.map((release, index) => (
<AccordionItem key={release.value} value={release.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
<span className="font-sans text-sm">v{release.value}</span>
{index === 0 && <Badge variant="secondary">Latest</Badge>}
</span>
<span className="ms-auto me-2 font-normal text-muted-foreground">
{release.date}
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent>
<ul className="space-y-2">
{release.changes.map((change) => (
<li key={change.text} className="flex items-start gap-2">
<Badge variant={tone[change.type]} className="w-16">
{change.type}
</Badge>
<span>{change.text}</span>
</li>
))}
</ul>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-19
Loading...
import {
ChevronDown as ChevronDownIcon,
Package as PackageIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
const orders = [
{
value: "48213",
date: "Nov 9",
status: "Downloaded",
total: 132.5,
items: ["Design Agency template", "Landing page blocks"],
},
{
value: "47990",
date: "Oct 30",
status: "Updated",
total: 58.0,
items: ["Portfolio Simple template"],
},
{
value: "47512",
date: "Oct 2",
status: "Refunded",
total: 24.0,
items: ["Designali icon pack"],
},
]
const statusVariant: Record<string, "default" | "secondary" | "destructive"> = {
Downloaded: "default",
Updated: "secondary",
Refunded: "destructive",
}
export function AccordionOrderHistory() {
return (
<Accordion className="w-full max-w-md border px-3">
{orders.map((order) => (
<AccordionItem key={order.value} value={order.value}>
<AccordionTrigger className="items-center">
<span className="flex flex-col">
<span className="text-sm">Order #{order.value}</span>
<span className="font-normal text-muted-foreground">
Placed {order.date}
</span>
</span>
<Badge
variant={statusVariant[order.status]}
className="ms-auto me-2"
>
{order.status}
</Badge>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="space-y-3">
<ul className="space-y-1 text-muted-foreground">
{order.items.map((item) => (
<li key={item} className="flex items-center gap-2">
<PackageIcon className="size-3.5" />
{item}
</li>
))}
</ul>
<div className="flex items-center justify-between border-t pt-3">
<span className="font-medium">
Total ${order.total.toFixed(2)}
</span>
<div className="flex gap-1">
<Button size="xs" variant="outline">
Invoice
</Button>
<Button size="xs">Buy again</Button>
</div>
</div>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-20
Loading...
import {
Code as CodeIcon,
ChevronDown as ChevronDownIcon,
Figma as FigmaIcon,
Rocket as RocketIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const sizes = [
{ size: "Personal", chest: "1", length: "42" },
{ size: "Studio", chest: "5", length: "99" },
{ size: "Unlimited", chest: "∞", length: "199" },
]
export function AccordionProductDetails() {
return (
<div className="w-full max-w-sm space-y-3">
<div>
<p className="text-sm font-semibold">Design Agency template</p>
<p className="text-xs text-muted-foreground">
$42.00 · Next.js + Tailwind CSS
</p>
</div>
<Accordion multiple defaultValue={["details"]} className="border-y">
<AccordionItem value="details">
<AccordionTrigger className="tracking-wide uppercase">
Details
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
A production-ready studio website by Designali. Built with Next.js,
TypeScript and Tailwind CSS, with a matching Figma file.
</AccordionContent>
</AccordionItem>
<AccordionItem value="size">
<AccordionTrigger className="tracking-wide uppercase">
License guide
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent>
<table className="w-full text-start">
<thead className="text-muted-foreground">
<tr className="border-b">
<th className="py-1 text-start font-normal">License</th>
<th className="py-1 text-start font-normal">Projects</th>
<th className="py-1 text-start font-normal">Price ($)</th>
</tr>
</thead>
<tbody>
{sizes.map((row) => (
<tr key={row.size} className="border-b last:border-0">
<td className="py-1 font-medium">{row.size}</td>
<td className="py-1">{row.chest}</td>
<td className="py-1">{row.length}</td>
</tr>
))}
</tbody>
</table>
</AccordionContent>
</AccordionItem>
<AccordionItem value="care">
<AccordionTrigger className="tracking-wide uppercase">
Workflow
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent>
<ul className="space-y-1.5 text-muted-foreground">
<li className="flex items-center gap-2">
<FigmaIcon className="size-3.5" />
Customise the design in Figma
</li>
<li className="flex items-center gap-2">
<CodeIcon className="size-3.5" />
Edit the Next.js code
</li>
<li className="flex items-center gap-2">
<RocketIcon className="size-3.5" />
Deploy to Vercel
</li>
</ul>
</AccordionContent>
</AccordionItem>
</Accordion>
</div>
)
}
accordion-21
Loading...
"use client"
import * as React from "react"
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
import { Checkbox } from "@/components/ui/checkbox"
import { Label } from "@/components/ui/label"
const filters = [
{
value: "category",
title: "Category",
options: ["Templates", "Blocks", "Icons", "Logos"],
},
{ value: "size", title: "Stack", options: ["Next.js", "React", "Tailwind", "Figma"] },
{
value: "color",
title: "Style",
options: ["Minimal", "Bold", "Dark", "3D"],
},
]
export function AccordionFilterSidebar() {
const [selected, setSelected] = React.useState<Record<string, string[]>>({
category: ["Blocks"],
size: [],
color: [],
})
const toggle = (group: string, option: string, checked: boolean) =>
setSelected((prev) => ({
...prev,
[group]: checked
? [...(prev[group] ?? []), option]
: (prev[group] ?? []).filter((o) => o !== option),
}))
return (
<div className="w-full max-w-xs space-y-2">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">Filters</span>
<Button
size="xs"
variant="link"
onClick={() => setSelected({ category: [], size: [], color: [] })}
>
Clear all
</Button>
</div>
<Accordion
multiple
defaultValue={["category", "size"]}
className="border-y"
>
{filters.map((filter) => (
<AccordionItem key={filter.value} value={filter.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
{filter.title}
{(selected[filter.value]?.length ?? 0) > 0 && (
<Badge variant="secondary">
{selected[filter.value]?.length}
</Badge>
)}
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="space-y-2">
{filter.options.map((option) => {
const id = filter.value + "-" + option
return (
<div key={option} className="flex items-center gap-2">
<Checkbox
id={id}
checked={
selected[filter.value]?.includes(option) ?? false
}
onCheckedChange={(checked) =>
toggle(filter.value, option, checked)
}
/>
<Label htmlFor={id} className="font-normal">
{option}
</Label>
</div>
)
})}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-22
Loading...
"use client"
import * as React from "react"
import {
ChevronDown as ChevronDownIcon,
Mail as MailIcon,
MessageSquare as MessageSquareIcon,
Smartphone as SmartphoneIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Label } from "@/components/ui/label"
import {
RadioGroup,
RadioGroupItem,
} from "@/components/ui/radio-group"
const channels = [
{ value: "email", icon: MailIcon, title: "Email", current: "daily" },
{
value: "slack",
icon: MessageSquareIcon,
title: "Chat app",
current: "instant",
},
{
value: "mobile",
icon: SmartphoneIcon,
title: "Mobile push",
current: "off",
},
]
const frequencies = [
{ value: "instant", label: "Instantly" },
{ value: "daily", label: "Daily summary" },
{ value: "off", label: "Off" },
]
export function AccordionNotificationChannels() {
const [prefs, setPrefs] = React.useState<Record<string, string>>(
Object.fromEntries(channels.map((c) => [c.value, c.current]))
)
return (
<Accordion defaultValue={["email"]} className="w-full max-w-sm border px-3">
{channels.map((channel) => (
<AccordionItem key={channel.value} value={channel.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
<channel.icon className="size-4 text-muted-foreground" />
{channel.title}
</span>
<span className="ms-auto me-2 font-normal text-muted-foreground">
{frequencies.find((f) => f.value === prefs[channel.value])?.label}
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent>
<RadioGroup
value={prefs[channel.value]}
onValueChange={(value) =>
setPrefs((prev) => ({
...prev,
[channel.value]: value as string,
}))
}
className="gap-2 ps-6"
>
{frequencies.map((frequency) => {
const id = channel.value + "-" + frequency.value
return (
<div
key={frequency.value}
className="flex items-center gap-2"
>
<RadioGroupItem id={id} value={frequency.value} />
<Label htmlFor={id} className="font-normal">
{frequency.label}
</Label>
</div>
)
})}
</RadioGroup>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-23
Loading...
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { cn } from "@/lib/utils"
const endpoints = [
{
value: "list",
method: "GET",
path: "/v1/templates",
summary: "List Designali templates in your account.",
params: [
{ name: "limit", type: "integer", note: "1 to 100, default 20" },
{ name: "category", type: "string", note: "blocks, pages or templates" },
],
},
{
value: "create",
method: "POST",
path: "/v1/projects",
summary: "Create a new client project from a template.",
params: [
{ name: "template", type: "string", note: "Required template ID" },
{ name: "due_date", type: "date", note: "ISO 8601 date" },
],
},
{
value: "delete",
method: "DELETE",
path: "/v1/projects/:id",
summary: "Delete a draft project. Deployed projects cannot be deleted.",
params: [{ name: "id", type: "string", note: "Project ID in the path" }],
},
]
const methodClass: Record<string, string> = {
GET: "bg-primary/15 text-chart-3 dark:text-chart-1",
POST: "bg-primary/15 text-chart-3 dark:text-chart-1",
DELETE: "bg-destructive/15 text-destructive",
}
export function AccordionApiEndpoints() {
return (
<Accordion defaultValue={["list"]} className="w-full max-w-md border px-3">
{endpoints.map((endpoint) => (
<AccordionItem key={endpoint.value} value={endpoint.value}>
<AccordionTrigger className="items-center font-sans">
<span className="flex min-w-0 items-center gap-2">
<span
className={cn(
"w-14 shrink-0 py-0.5 text-center text-[10px] font-semibold",
methodClass[endpoint.method]
)}
>
{endpoint.method}
</span>
<span className="truncate">{endpoint.path}</span>
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="space-y-2">
<p className="text-muted-foreground">{endpoint.summary}</p>
<div className="border">
{endpoint.params.map((param) => (
<div
key={param.name}
className="grid grid-cols-[1fr_auto] gap-x-2 border-b px-2 py-1.5 last:border-0"
>
<code className="font-mono">{param.name}</code>
<span className="text-muted-foreground">{param.type}</span>
<span className="col-span-2 text-muted-foreground">
{param.note}
</span>
</div>
))}
</div>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-24
Loading...
import {
ChevronDown as ChevronDownIcon,
Wrench as WrenchIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Kbd, KbdGroup } from "@/components/ui/kbd"
const issues = [
{
value: "frozen",
title: "A Designali block won’t render",
steps: [
{ text: "Save your work with", keys: ["Ctrl", "S"] },
{ text: "Reload the window with", keys: ["Ctrl", "Shift", "R"] },
{ text: "If it persists, reinstall the block from designali.com/blocks." },
],
},
{
value: "sync",
title: "Icons are not showing",
steps: [
{ text: "Check @designali/icons is installed in package.json." },
{ text: "Open the command menu with", keys: ["Ctrl", "K"] },
{ text: "Search the icon name and copy the import again." },
],
},
]
export function AccordionTroubleshooting() {
return (
<Accordion
defaultValue={["frozen"]}
className="w-full max-w-md border px-3"
>
{issues.map((issue) => (
<AccordionItem key={issue.value} value={issue.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
<WrenchIcon className="size-3.5 text-muted-foreground" />
{issue.title}
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent>
<ol className="space-y-2">
{issue.steps.map((step, index) => (
<li key={step.text} className="flex items-start gap-2">
<span className="flex size-5 shrink-0 items-center justify-center border text-[10px]">
{index + 1}
</span>
<span className="flex flex-wrap items-center gap-1 pt-0.5">
{step.text}
{step.keys && (
<KbdGroup>
{step.keys.map((key) => (
<Kbd key={key}>{key}</Kbd>
))}
</KbdGroup>
)}
</span>
</li>
))}
</ol>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-25
Loading...
import {
ChevronDown as ChevronDownIcon,
MessageCircle as MessageCircleIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import {
Avatar,
AvatarFallback,
AvatarGroup,
} from "@/components/ui/avatar"
import { Button } from "@/components/ui/button"
const teams = [
{
value: "design",
name: "Design",
members: [
{ name: "Ali Imam", role: "Founder & design engineer" },
{ name: "Sara Khan", role: "UI/UX designer" },
{ name: "Omar Rahman", role: "Brand designer" },
],
},
{
value: "engineering",
name: "Development",
members: [
{ name: "Zaid Ahmed", role: "Next.js developer" },
{ name: "Nina Das", role: "Creative developer" },
],
},
]
const initials = (name: string) =>
name
.split(" ")
.map((part) => part[0])
.join("")
export function AccordionTeamDirectory() {
return (
<Accordion
defaultValue={["design"]}
className="w-full max-w-sm border px-3"
>
{teams.map((team) => (
<AccordionItem key={team.value} value={team.value}>
<AccordionTrigger className="items-center">
<span className="text-sm">{team.name}</span>
<AvatarGroup className="ms-auto me-2">
{team.members.map((member) => (
<Avatar key={member.name} size="sm">
<AvatarFallback>{initials(member.name)}</AvatarFallback>
</Avatar>
))}
</AvatarGroup>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="space-y-2.5">
{team.members.map((member) => (
<div key={member.name} className="flex items-center gap-2.5">
<Avatar>
<AvatarFallback>{initials(member.name)}</AvatarFallback>
</Avatar>
<div className="flex-1">
<p className="font-medium">{member.name}</p>
<p className="text-muted-foreground">{member.role}</p>
</div>
<Button
size="icon-xs"
variant="ghost"
aria-label={"Message " + member.name}
>
<MessageCircleIcon />
</Button>
</div>
))}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-26
Loading...
import {
ChevronDown as ChevronDownIcon,
Download as DownloadIcon,
Receipt as ReceiptIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
const invoices = [
{
value: "nov",
month: "November 2026",
status: "Due Dec 1",
amount: 312,
lines: [
{ label: "Designali Team plan, 12 seats", amount: 288 },
{ label: "Premium template add-on", amount: 24 },
],
},
{
value: "oct",
month: "October 2026",
status: "Paid",
amount: 288,
lines: [{ label: "Designali Team plan, 12 seats", amount: 288 }],
},
{
value: "sep",
month: "September 2026",
status: "Paid",
amount: 264,
lines: [{ label: "Designali Team plan, 11 seats", amount: 264 }],
},
]
export function AccordionBillingInvoices() {
return (
<div className="w-full max-w-md space-y-2">
<p className="text-sm font-medium">Billing history</p>
<Accordion className="border px-3">
{invoices.map((invoice) => (
<AccordionItem key={invoice.value} value={invoice.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
<ReceiptIcon className="size-4 text-muted-foreground" />
{invoice.month}
</span>
<span className="ms-auto me-2 flex items-center gap-2">
<span className="font-normal text-muted-foreground">
{invoice.status}
</span>
<span>${invoice.amount}.00</span>
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="space-y-2">
{invoice.lines.map((line) => (
<div
key={line.label}
className="flex justify-between text-muted-foreground"
>
<span>{line.label}</span>
<span>${line.amount}.00</span>
</div>
))}
<Button size="xs" variant="outline">
<DownloadIcon data-icon="inline-start" />
Download PDF
</Button>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-27
Loading...
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const questions = [
{
value: "trial",
q: "Are there free Designali blocks?",
a: "Yes. Many blocks and all icons are free to copy from designali.com — no card needed.",
},
{
value: "switch",
q: "Can I switch plans later?",
a: "Upgrade or downgrade any time from designali.com/pricing. We prorate the difference.",
},
{
value: "discount",
q: "Can I hire Designali for a custom project?",
a: "Yes. Ali and the studio take on brand, UI/UX and Next.js projects — email hello@designali.com.",
},
]
export function AccordionSeparatedCards() {
return (
<Accordion defaultValue={["switch"]} className="w-full max-w-md gap-2">
{questions.map((item) => (
<AccordionItem
key={item.value}
value={item.value}
className="border px-4 not-last:border-b data-open:bg-muted/50"
>
<AccordionTrigger className="py-3 text-sm hover:no-underline">
{item.q}
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="pb-3 text-muted-foreground">
{item.a}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-28
Loading...
import {
Minus as MinusIcon,
Plus as PlusIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const items = [
{
value: "where",
q: "How do I receive my template?",
a: "Downloads are instant — your template is in your designali.com account right after checkout.",
},
{
value: "duties",
q: "Are taxes included?",
a: "Yes, prices on designali.com/pricing include taxes at checkout, so there are no surprise fees.",
},
{
value: "track",
q: "How do I get updates?",
a: "We email you whenever a template you own gets a new version.",
},
]
export function AccordionPlusMinusIcon() {
return (
<Accordion defaultValue={["duties"]} className="w-full max-w-md">
{items.map((item) => (
<AccordionItem key={item.value} value={item.value}>
<AccordionTrigger className="items-center py-4 text-sm hover:no-underline">
{item.q}
<span className="ms-auto flex size-6 shrink-0 items-center justify-center border">
<PlusIcon className="size-3.5 group-aria-expanded/accordion-trigger:hidden" />
<MinusIcon className="hidden size-3.5 group-aria-expanded/accordion-trigger:block" />
</span>
</AccordionTrigger>
<AccordionContent className="pe-10 pb-4 text-muted-foreground">
{item.a}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-29
Loading...
import {
ChevronRight as ChevronRightIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const groups = [
{
value: "inbox",
title: "Client requests",
body: "New Designali project briefs land here and are sorted by service.",
},
{
value: "labels",
title: "Tags",
body: "Tag work as Brand, UI/UX, Web or Motion. Nested tags inherit the parent colour.",
},
{
value: "filters",
title: "Saved filters",
body: "Saved filters like “Next.js builds” appear in the sidebar and update in real time.",
},
]
export function AccordionLeadingChevron() {
return (
<Accordion defaultValue={["labels"]} className="w-full max-w-sm">
{groups.map((group) => (
<AccordionItem
key={group.value}
value={group.value}
className="border-none"
>
<AccordionTrigger className="justify-start gap-2 hover:no-underline">
<ChevronRightIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-90" />
{group.title}
</AccordionTrigger>
<AccordionContent className="ms-2 border-s ps-4 text-muted-foreground">
{group.body}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-30
Loading...
"use client"
import * as React from "react"
import {
ChevronDown as ChevronDownIcon,
Search as SearchIcon,
SearchX as SearchXIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Input } from "@/components/ui/input"
const articles = [
{
value: "reset",
q: "How do I reset my password?",
a: "Choose Forgot password on the designali.com sign-in page and follow the emailed link within 30 minutes.",
},
{
value: "2fa",
q: "How do I turn on two-factor authentication?",
a: "Go to Settings, Security, then Two-factor and scan the QR code with your authenticator app.",
},
{
value: "email",
q: "Can I change my login email?",
a: "Yes. Update it under Settings, Account. Designali sends a confirmation to both addresses.",
},
{
value: "delete",
q: "How do I delete my account?",
a: "Settings, Account, Delete account. Your downloads and data are removed after 30 days.",
},
]
export function AccordionKnowledgeBaseSearch() {
const [query, setQuery] = React.useState("")
const results = articles.filter((article) =>
article.q.toLowerCase().includes(query.trim().toLowerCase())
)
return (
<div className="w-full max-w-md space-y-3">
<div className="relative">
<SearchIcon className="pointer-events-none absolute start-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground" />
<Input
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder="Search Designali help"
className="ps-8"
/>
</div>
{results.length > 0 ? (
<Accordion className="border px-3">
{results.map((article) => (
<AccordionItem key={article.value} value={article.value}>
<AccordionTrigger>
{article.q}
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
{article.a}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
) : (
<div className="flex flex-col items-center gap-1 border border-dashed py-8 text-center">
<SearchXIcon className="size-5 text-muted-foreground" />
<p className="text-xs font-medium">
No articles match “{query}”
</p>
<p className="text-xs text-muted-foreground">
Try a different keyword or email support@designali.com.
</p>
</div>
)}
</div>
)
}
accordion-31
Loading...
import {
ChevronDown as ChevronDownIcon,
CircleCheck as CircleCheckIcon,
CirclePlay as CirclePlayIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const modules = [
{
value: "m1",
title: "Designali: design se code tak",
lessons: [
{ title: "Typography in UI design", minutes: 8, done: true },
{ title: "Brand identity basics", minutes: 12, done: true },
{ title: "Designing in Figma", minutes: 10, done: false },
],
},
{
value: "m2",
title: "From Figma to Next.js",
lessons: [
{ title: "Building blocks with Tailwind CSS", minutes: 14, done: false },
{ title: "Shipping to Vercel", minutes: 9, done: false },
],
},
]
export function AccordionCourseCurriculum() {
return (
<Accordion
multiple
defaultValue={["m1"]}
className="w-full max-w-md border"
>
{modules.map((module, index) => {
const done = module.lessons.filter((lesson) => lesson.done).length
const minutes = module.lessons.reduce(
(sum, lesson) => sum + lesson.minutes,
0
)
return (
<AccordionItem key={module.value} value={module.value}>
<AccordionTrigger className="items-center bg-muted/50 px-3 hover:no-underline">
<span className="flex flex-col">
<span className="text-muted-foreground">
Module {index + 1}
</span>
<span className="text-sm">{module.title}</span>
</span>
<span className="ms-auto me-2 font-normal text-muted-foreground">
{done}/{module.lessons.length} · {minutes} min
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="pb-0">
{module.lessons.map((lesson) => (
<div
key={lesson.title}
className="flex items-center gap-2 border-t px-3 py-2"
>
{lesson.done ? (
<CircleCheckIcon className="size-4 text-primary dark:text-primary" />
) : (
<CirclePlayIcon className="size-4 text-muted-foreground" />
)}
<span className="flex-1">{lesson.title}</span>
<span className="text-muted-foreground">
{lesson.minutes}:00
</span>
</div>
))}
</AccordionContent>
</AccordionItem>
)
})}
</Accordion>
)
}
accordion-32
Loading...
import {
ArrowUpRight as ArrowUpRightIcon,
ChevronDown as ChevronDownIcon,
MapPin as MapPinIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
const roles = [
{
value: "pd",
title: "UI/UX Designer",
team: "Design",
location: "Remote",
type: "Full-time",
summary:
"Design client websites and Designali blocks, from first sketch in Figma to polished UI.",
},
{
value: "fe",
title: "Next.js Developer",
team: "Engineering",
location: "Remote",
type: "Full-time",
summary:
"Turn Designali designs into fast, accessible Next.js and Tailwind CSS code.",
},
{
value: "cs",
title: "Motion & 3D Designer",
team: "Creative",
location: "Remote",
type: "Contract",
summary:
"Create CGI, 3D and motion work for Designali client projects and launches.",
},
]
export function AccordionJobOpenings() {
return (
<Accordion className="w-full max-w-md border-y">
{roles.map((role) => (
<AccordionItem key={role.value} value={role.value}>
<AccordionTrigger className="items-center py-3 hover:no-underline">
<span className="flex flex-col gap-0.5">
<span className="text-sm">{role.title}</span>
<span className="flex items-center gap-1 font-normal text-muted-foreground">
<MapPinIcon className="size-3" />
{role.location} · {role.team}
</span>
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="space-y-3">
<Badge variant="outline">{role.type}</Badge>
<p className="text-muted-foreground">{role.summary}</p>
<Button size="sm">
Apply for this role
<ArrowUpRightIcon data-icon="inline-end" />
</Button>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-33
Loading...
import {
CalendarDays as CalendarDaysIcon,
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const days = [
{
value: "day1",
label: "Day 1",
date: "Thu, Mar 12",
sessions: [
{ time: "09:30", title: "Design se code tak", speaker: "Ali Imam" },
{ time: "11:00", title: "Brand identity for studios", speaker: "Designali studio" },
{
time: "14:00",
title: "Workshop: CGI & motion",
speaker: "Designali studio",
},
],
},
{
value: "day2",
label: "Day 2",
date: "Fri, Mar 13",
sessions: [
{
time: "10:00",
title: "Building 460+ blocks",
speaker: "Ali Imam",
},
{ time: "15:30", title: "Closing panel", speaker: "Various speakers" },
],
},
]
export function AccordionEventAgenda() {
return (
<Accordion defaultValue={["day1"]} className="w-full max-w-md border px-3">
{days.map((day) => (
<AccordionItem key={day.value} value={day.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
<CalendarDaysIcon className="size-4 text-muted-foreground" />
<span className="text-sm">{day.label}</span>
<span className="font-normal text-muted-foreground">
{day.date}
</span>
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent>
<ol className="relative space-y-3 border-s ps-4">
{day.sessions.map((session) => (
<li key={session.title} className="relative">
<span className="absolute -start-[1.3rem] top-1 size-2 bg-foreground" />
<p className="font-sans text-muted-foreground">
{session.time}
</p>
<p className="font-medium">{session.title}</p>
<p className="text-muted-foreground">{session.speaker}</p>
</li>
))}
</ol>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-34
Loading...
"use client"
import * as React from "react"
import {
ChevronDown as ChevronDownIcon,
Shield as ShieldIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Checkbox } from "@/components/ui/checkbox"
import { Label } from "@/components/ui/label"
const resources = [
{
value: "projects",
title: "Client projects",
actions: ["View", "Create", "Edit", "Delete"],
},
{
value: "billing",
title: "Billing",
actions: ["View invoices", "Update payment method"],
},
{
value: "members",
title: "Members",
actions: ["Invite", "Change roles", "Remove"],
},
]
export function AccordionRolePermissions() {
const [granted, setGranted] = React.useState<Record<string, string[]>>({
projects: ["View", "Create", "Edit"],
billing: ["View invoices"],
members: [],
})
const toggle = (resource: string, action: string, checked: boolean) =>
setGranted((prev) => ({
...prev,
[resource]: checked
? [...(prev[resource] ?? []), action]
: (prev[resource] ?? []).filter((a) => a !== action),
}))
return (
<div className="w-full max-w-sm space-y-2">
<div className="flex items-center gap-2">
<ShieldIcon className="size-4" />
<span className="text-sm font-medium">Designali studio editor role</span>
</div>
<Accordion defaultValue={["projects"]} className="border px-3">
{resources.map((resource) => (
<AccordionItem key={resource.value} value={resource.value}>
<AccordionTrigger className="items-center">
{resource.title}
<span className="ms-auto me-2 font-normal text-muted-foreground">
{granted[resource.value]?.length ?? 0}/{resource.actions.length}
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="grid grid-cols-2 gap-2">
{resource.actions.map((action) => {
const id = resource.value + "-" + action
return (
<div key={action} className="flex items-center gap-2">
<Checkbox
id={id}
checked={
granted[resource.value]?.includes(action) ?? false
}
onCheckedChange={(checked) =>
toggle(resource.value, action, checked)
}
/>
<Label htmlFor={id} className="font-normal">
{action}
</Label>
</div>
)
})}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-35
Loading...
import {
ChevronDown as ChevronDownIcon,
CircleCheck as CircleCheckIcon,
CircleDashed as CircleDashedIcon,
CircleX as CircleXIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { cn } from "@/lib/utils"
const steps = [
{
value: "install",
title: "Install dependencies",
status: "success",
duration: "18s",
log: ["Resolving packages", "Added 1,204 packages", "Done in 17.8s"],
},
{
value: "build",
title: "Build",
status: "success",
duration: "1m 04s",
log: [
"Compiling 312 modules",
"Generated static pages for designali.com (48/48)",
"Build completed",
],
},
{
value: "test",
title: "Run tests",
status: "failed",
duration: "42s",
log: [
"PASS blocks/pricing.test.ts",
"FAIL templates/design-agency.test.ts",
"1 failed, 86 passed",
],
},
{
value: "deploy",
title: "Deploy",
status: "skipped",
duration: "-",
log: ["Skipped because a previous step failed"],
},
]
export function AccordionDeploymentLogs() {
return (
<Accordion defaultValue={["test"]} className="w-full max-w-md border">
{steps.map((step) => (
<AccordionItem key={step.value} value={step.value}>
<AccordionTrigger className="items-center px-3 hover:bg-muted/50 hover:no-underline">
<span className="flex items-center gap-2">
{step.status === "success" && (
<CircleCheckIcon className="size-4 text-primary dark:text-primary" />
)}
{step.status === "failed" && (
<CircleXIcon className="size-4 text-destructive" />
)}
{step.status === "skipped" && (
<CircleDashedIcon className="size-4 text-muted-foreground" />
)}
{step.title}
</span>
<span className="ms-auto me-2 font-sans font-normal text-muted-foreground">
{step.duration}
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="px-3">
<pre className="overflow-x-auto bg-muted p-2 font-mono text-[11px] leading-relaxed">
{step.log.map((line, index) => (
<div
key={line}
className={cn(line.startsWith("FAIL") && "text-destructive")}
>
<span className="me-3 text-muted-foreground select-none">
{index + 1}
</span>
{line}
</div>
))}
</pre>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-36
Loading...
import {
ChevronDown as ChevronDownIcon,
FileCode as FileCodeIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { cn } from "@/lib/utils"
const files = [
{
value: "price",
path: "src/pricing/template-price.ts",
added: 4,
removed: 2,
diff: [
{ type: "remove", text: "const tax = subtotal * 0.2" },
{ type: "add", text: "const tax = subtotal * rateFor(region)" },
{ type: "context", text: "return subtotal + tax" },
],
},
{
value: "region",
path: "src/pricing/region.ts",
added: 12,
removed: 0,
diff: [
{ type: "add", text: "export function rateFor(region: Region) {" },
{ type: "add", text: " return RATES[region] ?? 0" },
{ type: "add", text: "}" },
],
},
]
export function AccordionCodeReviewFiles() {
return (
<Accordion
multiple
defaultValue={["price"]}
className="w-full max-w-md gap-2"
>
{files.map((file) => (
<AccordionItem
key={file.value}
value={file.value}
className="border not-last:border-b"
>
<AccordionTrigger className="items-center bg-muted/50 px-3 font-sans hover:no-underline">
<span className="flex min-w-0 items-center gap-2">
<FileCodeIcon className="size-3.5 shrink-0 text-muted-foreground" />
<span className="truncate">{file.path}</span>
</span>
<span className="ms-auto me-2 flex gap-1.5">
<span className="text-primary dark:text-primary">
+{file.added}
</span>
<span className="text-destructive">-{file.removed}</span>
</span>
<ChevronDownIcon className="size-4 shrink-0 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="pb-0">
<pre className="overflow-x-auto font-mono text-[11px]">
{file.diff.map((line) => (
<div
key={line.text}
className={cn(
"px-3 py-0.5",
line.type === "add" && "bg-primary/10",
line.type === "remove" && "bg-destructive/10"
)}
>
<span className="me-2 text-muted-foreground select-none">
{line.type === "add"
? "+"
: line.type === "remove"
? "-"
: " "}
</span>
{line.text}
</div>
))}
</pre>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-37
Loading...
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Kbd, KbdGroup } from "@/components/ui/kbd"
const terms = [
{
value: "cancellation",
title: "Cancellation",
body: "You may cancel your Designali plan at any time. Access continues until the end of the current billing period.",
},
{
value: "liability",
title: "Limitation of liability",
body: "Designali’s total liability is limited to the fees you paid in the twelve months before the claim.",
},
{
value: "governing",
title: "Governing law",
body: "These terms are governed by the laws of the jurisdiction where Designali is registered. See designali.com/docs/legal/terms.",
},
]
export function AccordionHiddenUntilFound() {
return (
<div className="w-full max-w-md space-y-2">
<p className="flex items-center gap-1.5 text-xs text-muted-foreground">
Collapsed text stays searchable. Try
<KbdGroup>
<Kbd>Ctrl</Kbd>
<Kbd>F</Kbd>
</KbdGroup>
and search for “jurisdiction”.
</p>
<Accordion hiddenUntilFound className="border px-3">
{terms.map((term) => (
<AccordionItem key={term.value} value={term.value}>
<AccordionTrigger>
{term.title}
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
{term.body}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-38
Loading...
"use client"
import * as React from "react"
import {
Check as CheckIcon,
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
import { Input } from "@/components/ui/input"
import { cn } from "@/lib/utils"
const steps = [
{ value: "contact", title: "Contact" },
{ value: "shipping", title: "Billing address" },
{ value: "payment", title: "Payment" },
]
export function AccordionCheckoutSteps() {
const [open, setOpen] = React.useState<string[]>(["contact"])
const [completed, setCompleted] = React.useState<string[]>([])
const next = (current: string) => {
const index = steps.findIndex((s) => s.value === current)
setCompleted((prev) => (prev.includes(current) ? prev : [...prev, current]))
const following = steps[index + 1]
setOpen(following ? [following.value] : [])
}
return (
<Accordion
keepMounted
value={open}
onValueChange={(value) => setOpen(value as string[])}
className="w-full max-w-sm border px-3"
>
{steps.map((step, index) => (
<AccordionItem key={step.value} value={step.value}>
<AccordionTrigger className="items-center text-sm">
<span className="flex items-center gap-2">
<span
className={cn(
"flex size-5 items-center justify-center border text-[10px]",
completed.includes(step.value) &&
"border-foreground bg-foreground text-background"
)}
>
{completed.includes(step.value) ? (
<CheckIcon className="size-3" />
) : (
index + 1
)}
</span>
{step.title}
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="space-y-2">
{step.value === "contact" && (
<Input
type="email"
placeholder="you@example.com"
aria-label="Email"
/>
)}
{step.value === "shipping" && (
<>
<Input
placeholder="Street address"
aria-label="Street address"
/>
<div className="grid grid-cols-2 gap-2">
<Input placeholder="City" aria-label="City" />
<Input placeholder="Postcode" aria-label="Postcode" />
</div>
</>
)}
{step.value === "payment" && (
<Input
placeholder="Card number"
inputMode="numeric"
aria-label="Card number"
/>
)}
<Button
size="sm"
className="w-full"
onClick={() => next(step.value)}
>
{index === steps.length - 1 ? "Place order" : "Continue"}
</Button>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-39
Loading...
"use client"
import * as React from "react"
import {
ChevronDown as ChevronDownIcon,
ThumbsDown as ThumbsDownIcon,
ThumbsUp as ThumbsUpIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
const answers = [
{
value: "late",
q: "My template sale payout is late. What should I do?",
a: "Payouts can take up to 3 business days after the scheduled date. Check your bank details under Settings, Payouts.",
},
{
value: "fees",
q: "What fees are deducted?",
a: "Designali deducts a 2.9% processing fee plus 30 cents per sale before each payout.",
},
{
value: "currency",
q: "Can I be paid in another currency?",
a: "You can add up to three payout currencies. Conversion uses the mid-market rate on the payout date.",
},
]
export function AccordionHelpfulFeedback() {
const [votes, setVotes] = React.useState<Record<string, "up" | "down">>({})
return (
<Accordion defaultValue={["late"]} className="w-full max-w-md border px-3">
{answers.map((item) => (
<AccordionItem key={item.value} value={item.value}>
<AccordionTrigger>
{item.q}
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="space-y-3">
<p className="text-muted-foreground">{item.a}</p>
<div className="flex items-center gap-2 border-t pt-2">
{votes[item.value] ? (
<span className="text-muted-foreground">
Thanks for your feedback.
</span>
) : (
<>
<span className="text-muted-foreground">
Was this helpful?
</span>
<Button
size="icon-xs"
variant="outline"
aria-label="Yes"
onClick={() =>
setVotes((v) => ({ ...v, [item.value]: "up" }))
}
>
<ThumbsUpIcon />
</Button>
<Button
size="icon-xs"
variant="outline"
aria-label="No"
onClick={() =>
setVotes((v) => ({ ...v, [item.value]: "down" }))
}
>
<ThumbsDownIcon />
</Button>
</>
)}
</div>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-40
Loading...
"use client"
import * as React from "react"
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Skeleton } from "@/components/ui/skeleton"
const sections = [
{
value: "activity",
title: "Recent activity",
rows: [
"Ali Imam commented on Design Agency v2",
"Sara moved Icons release to Done",
"A new client joined the Designali studio",
],
},
{
value: "files",
title: "Shared files",
rows: ["designali-brand-guidelines.pdf", "client-proposal.fig"],
},
]
export function AccordionLazyLoadingPanel() {
const [loaded, setLoaded] = React.useState<string[]>([])
const load = (value: string, open: boolean) => {
if (!open || loaded.includes(value)) return
setTimeout(() => setLoaded((prev) => [...prev, value]), 1200)
}
return (
<Accordion className="w-full max-w-md border px-3">
{sections.map((section) => (
<AccordionItem
key={section.value}
value={section.value}
onOpenChange={(open) => load(section.value, open)}
>
<AccordionTrigger>
{section.title}
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent>
{loaded.includes(section.value) ? (
<ul className="space-y-2">
{section.rows.map((row) => (
<li key={row} className="text-muted-foreground">
{row}
</li>
))}
</ul>
) : (
<div className="space-y-2" aria-busy="true">
<Skeleton className="h-3 w-4/5" />
<Skeleton className="h-3 w-3/5" />
<Skeleton className="h-3 w-2/3" />
</div>
)}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-41
Loading...
import {
Archive as ArchiveIcon,
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Badge } from "@/components/ui/badge"
const groups = [
{
value: "active",
title: "Active",
projects: ["designali.com relaunch", "Icons v2", "Client brand identity"],
},
{ value: "paused", title: "Paused", projects: ["Dalim Fonts revival"] },
{ value: "archived", title: "Archived", projects: [] as string[] },
]
export function AccordionProjectGroupsEmpty() {
return (
<Accordion
multiple
defaultValue={["active", "archived"]}
className="w-full max-w-sm border px-3"
>
{groups.map((group) => (
<AccordionItem key={group.value} value={group.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
{group.title}
<Badge variant="secondary">{group.projects.length}</Badge>
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent>
{group.projects.length > 0 ? (
<ul className="space-y-1">
{group.projects.map((project) => (
<li key={project} className="flex items-center gap-2 py-1">
<span className="size-2 bg-foreground/60" />
{project}
</li>
))}
</ul>
) : (
<div className="flex flex-col items-center gap-2 border border-dashed py-5 text-center">
<ArchiveIcon className="size-4 text-muted-foreground" />
<p className="text-muted-foreground">
No archived projects yet.
</p>
</div>
)}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-42
Loading...
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
export function AccordionPropertiesInspector() {
return (
<div className="w-full max-w-60 border bg-background">
<div className="border-b px-2 py-1.5 text-[11px] font-medium">
Designali hero card
</div>
<Accordion multiple defaultValue={["layout", "fill"]}>
<AccordionItem value="layout">
<AccordionTrigger className="px-2 py-1.5 text-[11px] tracking-wide text-muted-foreground uppercase hover:no-underline">
Layout
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="size-3! transition-transform group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="grid grid-cols-2 gap-1.5 px-2">
{["X", "Y", "W", "H"].map((axis, i) => (
<label key={axis} className="flex items-center border">
<span className="w-5 text-center text-[10px] text-muted-foreground">
{axis}
</span>
<input
defaultValue={[120, 48, 320, 180][i]}
className="h-6 w-full min-w-0 bg-transparent text-[11px] outline-none"
/>
</label>
))}
</AccordionContent>
</AccordionItem>
<AccordionItem value="fill">
<AccordionTrigger className="px-2 py-1.5 text-[11px] tracking-wide text-muted-foreground uppercase hover:no-underline">
Fill
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="size-3! transition-transform group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="flex items-center gap-1.5 px-2">
<span className="size-5 border bg-linear-to-br from-primary to-primary" />
<span className="flex-1 font-sans text-[11px]">Gradient</span>
<span className="text-[11px] text-muted-foreground">100%</span>
</AccordionContent>
</AccordionItem>
<AccordionItem value="effects">
<AccordionTrigger className="px-2 py-1.5 text-[11px] tracking-wide text-muted-foreground uppercase hover:no-underline">
Effects
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="size-3! transition-transform group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="px-2 text-[11px] text-muted-foreground">
Drop shadow · 0 4 12 / 16%
</AccordionContent>
</AccordionItem>
</Accordion>
</div>
)
}
accordion-43
Loading...
import {
ArrowDown as ArrowDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const faqs = [
{
value: "1",
q: "What makes Designali different?",
a: "Designali is design se code tak — one studio that designs your brand and ships production-ready Next.js code.",
},
{
value: "2",
q: "Do you use AI in your workflow?",
a: "Yes, AI-assisted workflows speed things up — but every design and line of code is reviewed by Ali.",
},
{
value: "3",
q: "How long does setup take?",
a: "Most projects start with a short call and a Figma direction within the first week.",
},
]
export function AccordionLandingFaqLarge() {
return (
<div className="w-full max-w-lg space-y-4">
<h2 className="text-2xl font-semibold tracking-tight">
Questions, answered
</h2>
<Accordion defaultValue={["1"]} className="border-t">
{faqs.map((faq) => (
<AccordionItem key={faq.value} value={faq.value} className="border-b">
<AccordionTrigger className="items-center gap-4 py-5 text-base hover:no-underline">
<span className="font-sans text-xs text-muted-foreground">
0{faq.value}
</span>
<span className="flex-1">{faq.q}</span>
<ArrowDownIcon className="size-4 shrink-0 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="ps-9 pe-8 pb-5 text-sm text-muted-foreground">
{faq.a}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-44
Loading...
import {
ChevronDown as ChevronDownIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { cn } from "@/lib/utils"
const incidents = [
{
value: "i1",
title: "designali.com downloads slow",
date: "Nov 14",
severity: "major",
updates: [
{
time: "14:52",
label: "Resolved",
text: "Error rates are back to normal.",
},
{
time: "14:20",
label: "Monitoring",
text: "A fix has been deployed to all regions.",
},
{
time: "13:58",
label: "Investigating",
text: "Template downloads are timing out for some users.",
},
],
},
{
value: "i2",
title: "Delayed order emails",
date: "Nov 3",
severity: "minor",
updates: [
{
time: "09:40",
label: "Resolved",
text: "All order confirmation emails have been sent.",
},
{
time: "09:05",
label: "Identified",
text: "A queue worker stalled after a config change.",
},
],
},
]
export function AccordionIncidentHistory() {
return (
<Accordion defaultValue={["i1"]} className="w-full max-w-md border px-3">
{incidents.map((incident) => (
<AccordionItem key={incident.value} value={incident.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
<span
className={cn(
"size-2 rounded-full",
incident.severity === "major"
? "bg-primary"
: "bg-primary"
)}
/>
{incident.title}
</span>
<span className="ms-auto me-2 font-normal text-muted-foreground">
{incident.date}
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="space-y-2.5 ps-4">
{incident.updates.map((update) => (
<div key={update.time}>
<p>
<span className="font-medium">{update.label}</span>
<span className="text-muted-foreground">
{" "}
· {update.time} UTC
</span>
</p>
<p className="text-muted-foreground">{update.text}</p>
</div>
))}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-45
Loading...
import {
Reply as ReplyIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Avatar, AvatarFallback } from "@/components/ui/avatar"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
const threads = [
{
value: "t1",
author: "Ali Imam",
topic: "Blocks launch copy review",
unread: 2,
replies: [
{
author: "Sara Khan",
text: "Headline works. Can we shorten the subhead?",
},
{ author: "Ali Imam", text: "Updated. Take a look at v3 in Figma." },
],
},
{
value: "t2",
author: "Zaid Ahmed",
topic: "Preview deploy is down",
unread: 0,
replies: [
{
author: "Ali Imam",
text: "Redeployed on Vercel, should be back now.",
},
],
},
]
const initials = (name: string) =>
name
.split(" ")
.map((part) => part[0])
.join("")
export function AccordionChatThreads() {
return (
<Accordion defaultValue={["t1"]} className="w-full max-w-sm border">
{threads.map((thread) => (
<AccordionItem key={thread.value} value={thread.value}>
<AccordionTrigger className="items-center gap-2.5 px-3 hover:bg-muted/50 hover:no-underline">
<Avatar>
<AvatarFallback>{initials(thread.author)}</AvatarFallback>
</Avatar>
<span className="flex min-w-0 flex-1 flex-col">
<span className="truncate"># {thread.topic}</span>
<span className="font-normal text-muted-foreground">
{thread.replies.length}{" "}
{thread.replies.length === 1 ? "reply" : "replies"}
</span>
</span>
{thread.unread > 0 && <Badge>{thread.unread}</Badge>}
</AccordionTrigger>
<AccordionContent className="space-y-2 px-3">
{thread.replies.map((reply) => (
<div key={reply.text} className="flex gap-2 border-s ps-3">
<div>
<p className="font-medium">{reply.author}</p>
<p className="text-muted-foreground">{reply.text}</p>
</div>
</div>
))}
<Button size="xs" variant="ghost">
<ReplyIcon data-icon="inline-start" />
Reply in thread
</Button>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-46
Loading...
import {
ChevronDown as ChevronDownIcon,
Keyboard as KeyboardIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Kbd, KbdGroup } from "@/components/ui/kbd"
const groups = [
{
value: "general",
title: "General",
shortcuts: [
{ action: "Open command menu", keys: ["Ctrl", "K"] },
{ action: "Search blocks", keys: ["/"] },
{ action: "Show shortcuts", keys: ["?"] },
],
},
{
value: "editing",
title: "Editing",
shortcuts: [
{ action: "Bold", keys: ["Ctrl", "B"] },
{ action: "Insert link", keys: ["Ctrl", "L"] },
{ action: "Undo", keys: ["Ctrl", "Z"] },
],
},
{
value: "navigation",
title: "Navigation",
shortcuts: [
{ action: "Go to icons", keys: ["G", "I"] },
{ action: "Next item", keys: ["J"] },
],
},
]
export function AccordionKeyboardShortcuts() {
return (
<Accordion
multiple
defaultValue={["general"]}
className="w-full max-w-sm border px-3"
>
{groups.map((group) => (
<AccordionItem key={group.value} value={group.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
<KeyboardIcon className="size-4 text-muted-foreground" />
{group.title}
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="space-y-1.5">
{group.shortcuts.map((shortcut) => (
<div
key={shortcut.action}
className="flex items-center justify-between"
>
<span className="text-muted-foreground">{shortcut.action}</span>
<KbdGroup>
{shortcut.keys.map((key) => (
<Kbd key={key}>{key}</Kbd>
))}
</KbdGroup>
</div>
))}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-47
Loading...
import {
ChevronDown as ChevronDownIcon,
CircleCheck as CircleCheckIcon,
ShieldAlert as ShieldAlertIcon,
TriangleAlert as TriangleAlertIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
const checks = [
{
value: "password",
title: "Strong password",
ok: true,
body: "Your designali.com password was changed 2 months ago and is not found in known breaches.",
},
{
value: "2fa",
title: "Two-factor authentication",
ok: false,
body: "Add an authenticator app so a stolen password alone cannot unlock your account.",
action: "Enable 2FA",
},
{
value: "sessions",
title: "Active sessions",
ok: false,
body: "You are signed in on 4 devices, including one you have not used in 90 days.",
action: "Review sessions",
},
{
value: "recovery",
title: "Recovery email",
ok: true,
body: "Recovery codes will be sent to a***@designali.com.",
},
]
export function AccordionSecurityCheckup() {
const issues = checks.filter((check) => !check.ok).length
return (
<div className="w-full max-w-md border">
<div className="flex items-center gap-3 border-b p-3">
<ShieldAlertIcon className="size-5 text-primary dark:text-primary" />
<div>
<p className="text-sm font-medium">{issues} recommendations</p>
<p className="text-xs text-muted-foreground">
Fix these to keep your account safe.
</p>
</div>
</div>
<Accordion defaultValue={["2fa"]} className="px-3">
{checks.map((check) => (
<AccordionItem key={check.value} value={check.value}>
<AccordionTrigger className="items-center">
<span className="flex items-center gap-2">
{check.ok ? (
<CircleCheckIcon className="size-4 text-primary dark:text-primary" />
) : (
<TriangleAlertIcon className="size-4 text-primary dark:text-primary" />
)}
{check.title}
</span>
<ChevronDownIcon
data-slot="accordion-trigger-icon"
className="transition-transform duration-200 group-aria-expanded/accordion-trigger:rotate-180"
/>
</AccordionTrigger>
<AccordionContent className="space-y-2 ps-6">
<p className="text-muted-foreground">{check.body}</p>
{check.action && <Button size="xs">{check.action}</Button>}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
accordion-48
Loading...
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
const steps = [
{
value: "research",
title: "Research",
body: "Talk to the client, audit their brand and map the goals for the new designali build.",
},
{
value: "concept",
title: "Concept",
body: "Explore two directions in Figma and pick one with the client before any code.",
},
{
value: "build",
title: "Build",
body: "Build it in Next.js and Tailwind CSS, then ship to Vercel — design se code tak.",
},
]
export function AccordionActiveAccentBorder() {
return (
<Accordion defaultValue={["concept"]} className="w-full max-w-sm">
{steps.map((step) => (
<AccordionItem
key={step.value}
value={step.value}
className="border-s-2 border-b-0 border-s-border ps-4 transition-colors not-last:border-b-0 data-open:border-s-foreground"
>
<AccordionTrigger className="text-sm text-muted-foreground hover:no-underline aria-expanded:text-foreground">
{step.title}
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
{step.body}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
accordion-49
Loading...
import {
ChevronDown as ChevronDownIcon,
TrendingUp as TrendingUpIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Badge } from "@/components/ui/badge"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card"
const metrics = [
{
value: "revenue",
label: "Revenue",
total: "$48,210",
delta: "+12.4%",
breakdown: [
{ name: "Templates", pct: 72 },
{ name: "Blocks", pct: 20 },
{ name: "Studio services", pct: 8 },
],
},
{
value: "signups",
label: "New signups",
total: "1,382",
delta: "+4.1%",
breakdown: [
{ name: "Organic", pct: 54 },
{ name: "Referral", pct: 31 },
{ name: "Paid", pct: 15 },
],
},
]
export function AccordionInDashboardCard() {
return (
<Card className="w-full max-w-sm">
<CardHeader>
<CardTitle>designali.com this month</CardTitle>
<CardDescription>Nov 1 to Nov 15</CardDescription>
</CardHeader>
<CardContent>
<Accordion defaultValue={["revenue"]}>
{metrics.map((metric) => (
<AccordionItem key={metric.value} value={metric.value}>
<AccordionTrigger className="items-center hover:no-underline">
<span className="flex flex-col">
<span className="font-normal text-muted-foreground">
{metric.label}
</span>
<span className="text-lg font-semibold">{metric.total}</span>
</span>
<Badge variant="secondary" className="ms-auto me-2">
<TrendingUpIcon />
{metric.delta}
</Badge>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="space-y-2">
{metric.breakdown.map((row) => (
<div key={row.name} className="space-y-1">
<div className="flex justify-between">
<span className="text-muted-foreground">{row.name}</span>
<span>{row.pct}%</span>
</div>
<div className="h-1.5 bg-muted">
<div
className="h-full bg-foreground"
style={{ width: row.pct + "%" }}
/>
</div>
</div>
))}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</CardContent>
</Card>
)
}
accordion-50
Loading...
"use client"
import * as React from "react"
import {
ChevronDown as ChevronDownIcon,
CircleCheck as CircleCheckIcon,
} from "@designali/icons"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
import { Spinner } from "@/components/ui/spinner"
const sections = [
{ value: "contacts", title: "Clients", count: "2,481" },
{ value: "deals", title: "Projects", count: "318" },
{ value: "notes", title: "Notes", count: "1,067" },
]
export function AccordionFullyDisabled() {
const [syncing, setSyncing] = React.useState(true)
return (
<div className="w-full max-w-sm space-y-3">
<div className="flex items-center justify-between">
<span className="flex items-center gap-2 text-xs text-muted-foreground">
{syncing ? (
<Spinner className="size-3.5" />
) : (
<CircleCheckIcon className="size-3.5" />
)}
{syncing ? "Importing from your CRM..." : "Import complete"}
</span>
<Button
size="xs"
variant="outline"
onClick={() => setSyncing((s) => !s)}
>
{syncing ? "Finish import" : "Run again"}
</Button>
</div>
<Accordion disabled={syncing} className="border px-3">
{sections.map((section) => (
<AccordionItem key={section.value} value={section.value}>
<AccordionTrigger className="items-center">
{section.title}
<span className="ms-auto me-2 font-normal text-muted-foreground">
{section.count}
</span>
<ChevronDownIcon className="size-4 text-muted-foreground transition-transform group-aria-expanded/accordion-trigger:rotate-180" />
</AccordionTrigger>
<AccordionContent className="text-muted-foreground">
{section.count} records imported. Duplicates were merged by email
address.
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
)
}
Categories
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Card
- Carousel
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Dialog
- Drawer
- Dropdown Menu
- Field
- Hover Card
- Input
- Input OTP
- Label
- Menubar
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Skeleton
- Slider
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
