Measured entry
hextaui-ai-citations
A client-side React citation list shipped as a shadcn registry component. It groups sources under collapsible citation rows, adds expandable excerpts and outbound links, and includes an empty state plus inline citation exports. It depends on Radix Collapsible, Lucide icons, Tailwind theme utilities, the shadcn cn helper, and HextaUI's Empty primitive.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 35.6 KB (101.0 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 28.46s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/blocks/ai/ai-citations.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A solid fit for shadcn-based AI interfaces: it builds, mounts, stays responsive, and presents no detected accessibility violations. The bare project fails because the local utility import is absent, so it needs a shadcn-style setup rather than working as a standalone drop-in.
Use it if
- You need a structured sources panel for AI answers with optional excerpts and source metadata.
- Your app already uses shadcn conventions, Tailwind theme tokens, and path aliases.
- You want both a full citation list and a reusable inline citation marker.
Skip it if
- You need citations embedded directly into prose with automatic reference linking or scroll targeting.
- Your design system does not use Tailwind utility classes or shadcn-style local primitives.
- You want a lightweight static bibliography without collapsible state, icons, and interactive source cards.
Install
| Declared dependencies | @radix-ui/react-collapsible |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add Radix Collapsible and Lucide React, provide equivalent Collapsible and Empty primitives, create the cn class-merging helper, configure the path aliases, and supply the Tailwind theme tokens and utilities used by the component.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/preetsuthar17/HextaUIAlternatives
Other published entries for the accordion pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neobrutalism-collapsiblebrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 22.1KB
- Bare
- pass
- Prov
- NO
- shadcn-collapsibleunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 22.1KB
- Bare
- pass
- Prov
- NO
- 8bitcn-collapsibleskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 34.3KB
- Bare
- pass
- Prov
- NO
- hextaui-collapsibleminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 34.3KB
- Bare
- pass
- Prov
- NO
- neobrutalism-accordionbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 35.7KB
- Bare
- fail
- Prov
- NO
- shadcn-accordionunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 35.8KB
- Bare
- fail
- Prov
- NO