BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Pure UI/accordion-custom-indicator-demo

accordion-custom-indicator-demo

pure-ui/accordion-custom-indicator-demo
FreeExample

Pure UI publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/MusKRI/pure-ui/main/public/r/accordion-custom-indicator-demo.json

Source

src/registry/pure-ui/examples/accordion/accordion-custom-indicator-demo.tsxraw.githubusercontent.com/MusKRI/pure-ui/main/public/r/accordion-custom-indicator-demo.json
1import { Plus, ChevronDown, ChevronsDown } from "lucide-react";
2
3import {
4 Accordion,
5 AccordionPanel,
6 AccordionItem,
7 AccordionTrigger,
8} from "@/registry/pure-ui/ui/accordion";
9import { cn } from "@/lib/classes";
10
11export function AccordionCustomIndicatorDemo() {
12 return (
13 <Accordion className="w-full max-w-xl">
14 <AccordionItem value="item-1">
15 <AccordionTrigger
16 icon={({ open }) => (
17 <Plus
18 className={cn(
19 "size-4 transition-transform duration-300 ease",
20 open ? "rotate-45" : "rotate-0"
21 )}
22 />
23 )}
24 >
25 What is Base UI?
26 </AccordionTrigger>
27 <AccordionPanel className="flex flex-col gap-4 text-balance">
28 <p className="text-[15px] text-muted-foreground">
29 Base UI is a library of high-quality unstyled React components for
30 design systems and web apps.
31 </p>
32 </AccordionPanel>
33 </AccordionItem>
34 <AccordionItem value="item-2">
35 <AccordionTrigger
36 icon={({ open }) => (
37 <ChevronDown
38 className={cn(
39 "size-4 transition-transform duration-300 ease",
40 open ? "rotate-180" : "rotate-0"
41 )}
42 />
43 )}
44 >
45 How do I get started?
46 </AccordionTrigger>
47 <AccordionPanel className="flex flex-col gap-4 text-balance">
48 <p className="text-[15px] text-muted-foreground">
49 Head to the “Quick start” guide in the docs. If you’ve used unstyled
50 libraries before, you’ll feel at home.
51 </p>
52 </AccordionPanel>
53 </AccordionItem>
54 <AccordionItem value="item-3">
55 <AccordionTrigger
56 icon={({ open }) => (
57 <ChevronsDown
58 className={cn(
59 "size-4 transition-transform duration-300 ease",
60 open ? "rotate-180" : "rotate-0"
61 )}
62 />
63 )}
64 >
65 Can I use it for my project?
66 </AccordionTrigger>
67 <AccordionPanel className="flex flex-col gap-4 text-balance">
68 <p className="text-[15px] text-muted-foreground">
69 Of course! Base UI is free and open source.
70 </p>
71 </AccordionPanel>
72 </AccordionItem>
73 </Accordion>
74 );
75}

What it pulls in

Other registry items

  • accordion

Files it writes

  • src/registry/pure-ui/examples/accordion/accordion-custom-indicator-demo.tsx

Facts

Registry
Pure UI
Type
registry:example
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
today

Go to the source

pure.kam-ui.com MusKRI/pure-ui on GitHub Raw registry item This item as JSON

More from Pure UI

All 291 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordion-card-variant-demoaccordion-card-variant-demoPure UIExamplesFreeno deps
accordion-default-variant-demoaccordion-default-variant-demoPure UIExamplesFreeno deps
accordion-demoaccordion-demoPure UIExamplesFreeno deps
accordion-disabled-state-demoaccordion-disabled-state-demoPure UIExamplesFreeno deps
accordion-fade-demoaccordion-fade-demoPure UIExamplesFreeno deps
accordion-multiple-expanded-demoaccordion-multiple-expanded-demoPure UIExamplesFreeno deps
accordion-perspective-blur-demoaccordion-perspective-blur-demoPure UIExamplesFreeno deps
accordion-perspective-demoaccordion-perspective-demoPure UIExamplesFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex