Allow automatic column widths and styling TableRoot

Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
This commit is contained in:
Gustaf Räntilä
2026-02-04 23:22:54 +01:00
committed by Johan Persson
parent 5e639d4368
commit 8c3941214d
5 changed files with 54 additions and 4 deletions
@@ -230,8 +230,20 @@ export const tablePropDefs: Record<string, PropDef> = {
values: ['ReactNode'],
description: 'Content to display when the table has no data.',
},
tableLayout: {
type: 'enum',
values: ['auto', 'fixed'],
default: 'fixed',
description:
'Set to "auto" to allow column widths to be automatically determined by the content.',
},
...classNamePropDefs,
...stylePropDefs,
styles: {
type: 'enum',
values: ['{ tableRoot }'],
description: 'Custom inline CSS styles for inner TableRoot component.',
},
};
// =============================================================================