Skip to content

fix(faceted): keep cmdk items working in Base UI installs from the registry - #1337

Open
sadmann7 wants to merge 1 commit into
mainfrom
sadman/base-faceted-item-render
Open

sadmann7 wants to merge 1 commit into
mainfrom
sadman/base-faceted-item-render

Conversation

@sadmann7

Copy link
Copy Markdown
Owner

Installing the data table or data grid from the registry into a Base UI app broke Faceted. The shadcn CLI's Base UI transform rewrites every literal asChild attribute into render, including the one Faceted passes to cmdk's Command.Item. cmdk has no render prop, so the app failed to typecheck.

  • The Base UI Faceted item passes asChild to cmdk through a spread ({...{ asChild: true }}), which the transform leaves alone. Runtime behavior is the same.
  • A new test parses every Base UI registry file and fails on any literal asChild JSX attribute, the same match the CLI's transform-aschild uses.
  • A fresh shadcn init -b base app with the data table and data grid items from this branch's registry now passes tsc. Before, it failed with Property 'render' does not exist in components/ui/faceted.tsx.

@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tablecn Ready Ready Preview Nov 29, 2026 12:19pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 95688d92 Deployed Nov 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant