Removed inner TableRoot styling and changed automatic column sizing API

Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
This commit is contained in:
Gustaf Räntilä
2026-02-06 10:28:55 +01:00
committed by Johan Persson
parent 8c3941214d
commit a8b3395a55
5 changed files with 31 additions and 42 deletions
@@ -230,20 +230,15 @@ export const tablePropDefs: Record<string, PropDef> = {
values: ['ReactNode'],
description: 'Content to display when the table has no data.',
},
tableLayout: {
columnSizing: {
type: 'enum',
values: ['auto', 'fixed'],
default: 'fixed',
values: ['content', 'manual'],
default: 'content',
description:
'Set to "auto" to allow column widths to be automatically determined by the content.',
'Set to "manual" (or define any of the width properties on a column) to manually control column widths.',
},
...classNamePropDefs,
...stylePropDefs,
styles: {
type: 'enum',
values: ['{ tableRoot }'],
description: 'Custom inline CSS styles for inner TableRoot component.',
},
};
// =============================================================================