BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@zard/accordion
This component no longer exists. It was in @zard’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-14 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

accordion

zard/accordion
RemovedComponent

@zard publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by @zard on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.zardui.com/r/accordion.json

Source

accordion.component.tswww.zardui.com/r/accordion.json
1import {
2 type AfterContentInit,
3 ChangeDetectionStrategy,
4 Component,
5 computed,
6 contentChildren,
7 input,
8 ViewEncapsulation,
9} from '@angular/core';
10
11import type { ClassValue } from 'clsx';
12
13import { ZardAccordionItemComponent } from '@/shared/components/accordion/accordion-item.component';
14import { mergeClasses } from '@/shared/utils/merge-classes';
15
16@Component({
17 selector: 'z-accordion, [z-accordion]',
18 template: `
19 <ng-content />
20 `,
21 changeDetection: ChangeDetectionStrategy.OnPush,
22 encapsulation: ViewEncapsulation.Emulated,
23 exportAs: 'zAccordion',
24})
25export class ZardAccordionComponent implements AfterContentInit {
26 readonly items = contentChildren(ZardAccordionItemComponent);
27
28 readonly class = input<ClassValue>('');
29 readonly zType = input<'single' | 'multiple'>('single');
30 readonly zCollapsible = input<boolean>(true);
31 readonly zDefaultValue = input<string | string[]>('');
32
33 private readonly defaultValue = computed(() => {
34 const defaultValue = this.zDefaultValue();
35 if (typeof defaultValue === 'string') {
36 return defaultValue ? [defaultValue] : [];
37 } else if (this.zType() === 'single') {
38 throw new Error('Array of default values is supported only for multiple zType');
39 }
40 return defaultValue;
41 });
42
43 protected readonly classes = computed(() => mergeClasses(this.class()));
44
45 ngAfterContentInit(): void {
46 for (const item of this.items()) {
47 item.accordion = this;
48 item.isOpen.set(this.defaultValue().includes(item.zValue()));
49 }
50 }
51
52 toggleItem(selectedItem: ZardAccordionItemComponent): void {
53 if (this.zType() === 'single') {
54 this.toggleForSingleType(selectedItem);
55 } else {
56 this.toggleForMultipleType(selectedItem);
57 }
58 }
59
60 private toggleForSingleType(selectedItem: ZardAccordionItemComponent): void {
61 const isClosing = selectedItem.isOpen();
62
63 if (isClosing && !this.zCollapsible()) {
64 return;
65 }
66
67 for (const item of this.items()) {
68 const shouldBeOpen = item === selectedItem ? !item.isOpen() : false;
69 item.isOpen.set(shouldBeOpen);
70 }
71 }
72
73 private toggleForMultipleType(selectedItem: ZardAccordionItemComponent): void {
74 const isClosing = selectedItem.isOpen();
75 if (isClosing && !this.zCollapsible() && this.countOpenItems() <= 1) {
76 return;
77 }
78
79 selectedItem.isOpen.update(v => !v);
80 }
81
82 private countOpenItems(): number {
83// … truncated

Files it writes

  • accordion.component.ts
  • accordion-item.component.ts
  • accordion.variants.ts
  • accordion.imports.ts
  • index.ts

Facts

Registry
@zard
Type
registry:component
Access
Free
Files written
5
Licence
MIT
In the index
at or before 2026-08-06
Last confirmed
5 days ago

Go to the source

Docs on @zard www.zardui.com zard-ui/zardui on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex