This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shadcn:data-table): add column header component for DataTable
## what - add column header component for DataTable - sort column - ascending - descending - default (sort by it's original order) - hide column ## how - obtained from - https://github.com/shadcn-ui/ui/blob/main/apps/www/app/examples/tasks/components/data-table-column-header.tsx ## why - this will be used by DataTable to render a more advanced column header - this is opt-in - this can only be used in a `column.tsx` file - check - https://github.com/shadcn-ui/ui/blob/fb614ac2921a84b916c56e9091aa0ae8e129c565/apps/www/app/examples/tasks/components/columns.tsx#L38-L46C4 ## where - ./src/components/ui/data-table/column-header.tsx ## usage
- Loading branch information