Skip to content

Conversation

@codbear
Copy link
Owner

@codbear codbear commented Feb 1, 2023

You can provide a theme to the Table component if you want to override default theme. For now only the palette can be overrided.

<Table 
  theme={{
    palette: {
      primary: '#ffffff', // The color applied to header background
      secondary: '#c7c7c7', // The color applied to row background on hover
      divider: '#000000', // The color applied to borders
      text: '#000000', // The color applied to text content
    }
  }}
/>

The color and headerTextColor props are now deprecated and should not be used anymore.

You can completely disable theming (palette only) with isThemeDisabled.

<Table isThemeDisabled />

@codbear codbear added the enhancement New feature or request label Feb 1, 2023
@codbear codbear self-assigned this Feb 1, 2023
@codbear codbear merged commit 3551e9c into main Feb 1, 2023
@codbear
Copy link
Owner Author

codbear commented Feb 1, 2023

closes #6

@codbear codbear mentioned this pull request Feb 1, 2023
@ZenaMel
Copy link

ZenaMel commented Feb 2, 2023

TY for implementing this! Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants