Measured entry

hextaui-ai-citations

accordionminimal-flat

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.

Specimen
Harness screenshot of hextaui-ai-citations at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-ai-citations at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-ai-citations at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for hextaui-ai-citations
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal35.6 KB (101.0 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for hextaui-ai-citations
Declared dependencies@radix-ui/react-collapsible
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

License
MIT
Record published
2026-08-14

Alternatives

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.