Global configuration context for table styling
This type defines the shape of the configuration context provided by the TableConfigProvider. It allows setting global default class names that will be used by all TableAdapter instances within the provider's scope.
const { setDefaultClassNames } = useTableConfig();// Update global table stylingsetDefaultClassNames({ table: "min-w-full border-collapse", theadCell: "px-4 py-2 font-bold text-left",}); Copy
const { setDefaultClassNames } = useTableConfig();// Update global table stylingsetDefaultClassNames({ table: "min-w-full border-collapse", theadCell: "px-4 py-2 font-bold text-left",});
Current default class names applied to all tables within the provider's scope
Function to update the default class names
Partial class names to merge with existing defaults
Global configuration context for table styling
This type defines the shape of the configuration context provided by the TableConfigProvider. It allows setting global default class names that will be used by all TableAdapter instances within the provider's scope.
Example