Skip to content

Commit 1a38c6f

Browse files
authored
Fix: Table Header does not support className Prop (#4424)
* extending style props in table header
1 parent ba727bd commit 1a38c6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-aria-components/src/Table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {BaseCollection, CollectionContext, CollectionProps, CollectionRendererCo
33
import {buildHeaderRows} from '@react-stately/table';
44
import {ButtonContext} from './Button';
55
import {CheckboxContext} from './Checkbox';
6-
import {ContextValue, defaultSlot, Provider, RenderProps, SlotProps, StyleRenderProps, useContextProps, useRenderProps} from './utils';
6+
import {ContextValue, defaultSlot, Provider, RenderProps, SlotProps, StyleProps, StyleRenderProps, useContextProps, useRenderProps} from './utils';
77
import {DisabledBehavior, DraggableCollectionState, DroppableCollectionState, Node, SelectionBehavior, SelectionMode, SortDirection, TableState, useTableState} from 'react-stately';
88
import {DragAndDropHooks, DropIndicator, DropIndicatorContext, DropIndicatorProps} from './useDragAndDrop';
99
import {DraggableItemResult, DragPreviewRenderer, DropIndicatorAria, DroppableCollectionResult, FocusScope, ListKeyboardDelegate, mergeProps, useFocusRing, useHover, useTable, useTableCell, useTableColumnHeader, useTableHeaderRow, useTableRow, useTableRowGroup, useTableSelectAllCheckbox, useTableSelectionCheckbox, useVisuallyHidden} from 'react-aria';
@@ -368,7 +368,7 @@ export function useTableOptions(): TableOptionsContextValue {
368368
return useContext(TableOptionsContext)!;
369369
}
370370

371-
export interface TableHeaderProps<T> {
371+
export interface TableHeaderProps<T> extends StyleProps {
372372
/** A list of table columns. */
373373
columns?: T[],
374374
/** A list of `Column(s)` or a function. If the latter, a list of columns must be provided using the `columns` prop. */

0 commit comments

Comments
 (0)