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

Function ColumnContents

packages/@react-spectrum/s2/src/TableView.tsx:858–880  ·  view source on GitHub ↗
(props: ColumnContentProps)

Source from the content-addressed store, hash-verified

856 Pick<ColumnProps, 'align' | 'children'> {}
857
858function ColumnContents(props: ColumnContentProps) {
859 let {align, allowsSorting, sortDirection, children} = props;
860
861 return (
862 <div className={columnContentWrapper({align})}>
863 {allowsSorting && (
864 <Provider
865 values={[
866 [
867 IconContext,
868 {
869 styles: sortIcon({})
870 }
871 ]
872 ]}>
873 {sortDirection != null &&
874 (sortDirection === 'ascending' ? <SortUpArrow /> : <SortDownArrow />)}
875 </Provider>
876 )}
877 <span className={columnHeaderText}>{children}</span>
878 </div>
879 );
880}
881
882const resizableMenuButtonWrapper = style({
883 ...cellFocus,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected