Accordion Anchor 1 - Anchor Links

Pro

Accordion that opens the item named in the URL hash and updates the hash as items open.

Shadcn Accordion Anchor 1 component

Component data

ID
accordion/accordion-anchor-1
Access
pro
Created
Oct 30, 2026
Type
example
Libraries
Radix UI, Base UI, React Aria

Accordion Anchor 1 component design & features

On load the accordion reads the hash and opens the matching item. Opening another item replaces the hash, and closing it removes the hash.

Hash links let support teams send a link that opens the exact answer.