ui
ui copied to clipboard
adding DataTablePagination component via cli
The doc here mentions the DataTablePagination component. However, it seems there is no way to add it via CLI. Is it expected to copy/paste from the source of the Tasks demo?
The section with comonent's code is missing.
The problem is in the src prop instead of name in https://github.com/shadcn/ui/blob/c3377530f43baa95c9e41cce7c07b1a4db1e3ee6/apps/www/content/docs/components/data-table.mdx#L834C5-L834C5
With the recent change in check in lib/rehype-component.ts https://github.com/shadcn/ui/blob/c3377530f43baa95c9e41cce7c07b1a4db1e3ee6/apps/www/lib/rehype-component.ts#L78C9-L78C75
Hi @pdeva, @Klotske is right there's currently a problem with that.
For now you can copy it from here.
I just updated this PR #768 to address this issue.