-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] We need a new component <Table.HeadRow> #1467
Comments
Known issue, and also very annoying one. Hopefully we can get this one out in the next release, but users might not be happy since its a breaking change that puts some work on their end. In the end, its for the greater good. |
In the updated TableHead component, we will remove the hardcoded and allow passing custom elements, such as , directly as children. This will provide flexibility, enabling us to fully customize the structure of the table header. By doing this, we can add additional elements or modify the based on specific needs, making the component adaptable to various use cases. can u assign this issue to me @SutuSebastian @rluders |
TableHead Component renderHead (() => JSX.Element): A function that returns the header rows and cells for the table. This function should render the elements for the table header, along with the header cells (). The TableHead component is used to render the table header. It accepts a renderHead function that should be used to dynamically generate the header rows and cells. This allows for greater flexibility in how table headers are rendered, particularly when dealing with dynamic or complex table structures.
|
Hi, thanks for your reply @vaidikpatil5 , but I already created a PR adding a component and it also supports the flowbite theme, and the PR has already been reviewed by @rluders . Is there any reason for not implementing my changes ? |
Hey guys, any update on this issue? |
Summary
Hi, I'm trying to implement the
@tanstack/react-table
library with theTable
component, but thetr
in the<Table.Head>
component is not accessible, and is hardcoded inside the component. Can make a new component for that element please? Regards.https://github.com/themesberg/flowbite-react/blob/main/packages/ui/src/components/Table/TableHead.tsx#L29
Here is an example and the link to the library
https://tanstack.com/table/latest/docs/introduction
The text was updated successfully, but these errors were encountered: