Table: How to customize emptyContent #3863
Answered
by
AnYiEE
manuel-mauky
asked this question in
Q&A
Replies: 1 comment 1 reply
-
<Table
classNames={{
emptyWrapper: 'h-auto',
}}
>
<TableBody emptyContent={}></TableBody>
</Table> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
manuel-mauky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Table allows you to define
emptyContent
on the<TableBody>
component to show when no elements are available.However, the component you pass in there is rendered in a
<td>
element which has various styles assigned that you cannot customize. Especially theh-40
class is an issue in my case.I'd like to have a smaller height of the empty table but cannot find a way to achieve this.
Current result:
Goal:
Is it somehow possible to customize the classes on that
<td>
element? I've tried to put classes on the<TableBody>
but without success.Beta Was this translation helpful? Give feedback.
All reactions