-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat: add Table footer #1146
feat: add Table footer #1146
Conversation
Preview is ready. |
Playwright Test Component is ready. |
src/components/Table/Table.tsx
Outdated
@@ -106,6 +106,8 @@ export interface TableProps<I> extends QAProps { | |||
className?: string; | |||
/** Adds horizontal padding for edge cells. */ | |||
edgePadding?: boolean; | |||
/** Display footer inside the table container */ | |||
renderFooter?: () => React.ReactElement | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React.ReactNode
is more usable type here, it allows raw strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But now I see a deeper problem here. Users may misunderstand that this property refers to the table footer (aka tfoot element). And I don't know how avoid that problem. Maybe we should rename the property?
@@ -106,6 +106,8 @@ export interface TableProps<I> extends QAProps { | |||
className?: string; | |||
/** Adds horizontal padding for edge cells. */ | |||
edgePadding?: boolean; | |||
/** Display footer inside the table container */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update README as well
8e74677
to
aa2d309
Compare
aa2d309
to
c2367d3
Compare
No description provided.