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

Function Row

starters/docs/src/Table.tsx:91–116  ·  view source on GitHub ↗
({id, columns, children, ...otherProps}: RowProps<T>)

Source from the content-addressed store, hash-verified

89}
90
91export function Row<T>({id, columns, children, ...otherProps}: RowProps<T>) {
92 let {selectionBehavior, allowsDragging} = useTableOptions();
93
94 return (
95 <AriaRow id={id} {...otherProps}>
96 {allowsDragging && (
97 <Cell>
98 <Button slot="drag" className="drag-button">
99 <GripVertical />
100 </Button>
101 </Cell>
102 )}
103 {selectionBehavior === 'toggle' && (
104 <Cell
105 ///- begin highlight -///
106 focusMode="child"
107 allowsArrowNavigation
108 ///- end highlight -///
109 >
110 <Checkbox slot="selection" />
111 </Cell>
112 )}
113 <Collection items={columns}>{children}</Collection>
114 </AriaRow>
115 );
116}
117
118export function TableBody<T>(props: TableBodyProps<T>) {
119 return <AriaTableBody {...props} />;

Callers

nothing calls this directly

Calls 1

useTableOptionsFunction · 0.90

Tested by

no test coverage detected