MCPcopy Create free account
hub / github.com/adobe/react-spectrum / TableHeaderRow

Function TableHeaderRow

packages/react-aria/stories/table/example.tsx:112–129  ·  view source on GitHub ↗
({
  item,
  state,
  children
}: {
  item: any;
  state: any;
  children: ReactNode;
})

Source from the content-addressed store, hash-verified

110});
111
112export function TableHeaderRow({
113 item,
114 state,
115 children
116}: {
117 item: any;
118 state: any;
119 children: ReactNode;
120}): JSX.Element {
121 let ref = useRef<HTMLTableRowElement | null>(null);
122 let {rowProps} = useTableHeaderRow({node: item}, state, ref);
123
124 return (
125 <tr {...rowProps} ref={ref}>
126 {children}
127 </tr>
128 );
129}
130
131export function TableColumnHeader({column, state}: {column: any; state: any}): JSX.Element {
132 let ref = useRef<HTMLTableCellElement | null>(null);

Callers

nothing calls this directly

Calls 1

useTableHeaderRowFunction · 0.90

Tested by

no test coverage detected