Ray 6d7a0ed93b fix(docs): replace <ComponentsList /> in copy-page and markdown output
The <ComponentsList /> tag on /docs/components was emitted as-is by
the Copy Page button and the /llm/[slug] markdown endpoint because
getComponentsList() walked components.children for pages directly.
After #9304 restructured the folder into components/radix/ and
components/base/ subfolders, the filter always returned [] and the
tag was replaced with an empty string (or, in the copy-page case,
never replaced at all).

- Reuse getPagesFromFolder() from lib/page-tree so the walker stays
  in sync with the on-screen ComponentsList React component.
- Match the existing llms.txt format: flat absolute URLs (the
  /docs/components/:name -> /docs/components/radix/:name redirect in
  next.config.mjs is the canonical form) plus the frontmatter
  description pulled via source.getPage() on each page.
- Export replaceComponentsList() and call it from
  docs/[[...slug]]/page.tsx so the Copy Page button goes through the
  same replacement path as processMdxForLLMs.
2026-04-08 11:50:07 -04:00
fix
2026-03-04 11:57:54 +04:00
2025-12-12 21:01:44 +04:00
2026-04-07 17:48:58 +00:00
2023-04-19 15:01:29 +04:00
fix
2026-04-07 21:24:14 +04:00
2023-01-24 19:51:29 +04:00
2023-01-24 19:51:29 +04:00
2026-03-26 14:36:00 +04:00
2023-10-19 21:12:17 +04:00
2025-01-14 10:50:19 +04:00
fix
2026-03-10 13:25:21 +04:00
2025-10-29 20:50:55 +04:00
2023-01-27 16:02:33 +04:00
2026-02-08 14:45:55 +00:00
2023-01-24 19:51:29 +04:00
2026-03-26 14:36:00 +04:00

shadcn/ui

A set of beautifully designed components that you can customize, extend, and build on. Start here then make it your own. Open Source. Open Code. Use this to build your own component library.

hero

Documentation

Visit https://ui.shadcn.com/docs to view the documentation.

Contributing

Please read the contributing guide.

License

Licensed under the MIT license.

Description
Languages
TypeScript 89.4%
MDX 7%
CSS 3.5%
JavaScript 0.1%