ui icon indicating copy to clipboard operation
ui copied to clipboard

adding DataTablePagination component via cli

Open pdeva opened this issue 2 years ago • 3 comments

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?

pdeva avatar Jun 29 '23 20:06 pdeva

The section with comonent's code is missing.

image

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

Klotske avatar Jun 29 '23 20:06 Klotske

Hi @pdeva, @Klotske is right there's currently a problem with that.

For now you can copy it from here.

dan5py avatar Jun 29 '23 21:06 dan5py

I just updated this PR #768 to address this issue.

dan5py avatar Jun 29 '23 22:06 dan5py