MCPcopy Index your code
hub / github.com/adobe/react-spectrum / Row

Function Row

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

Source from the content-addressed store, hash-verified

85}
86
87export function Row<T>({id, columns, children, ...otherProps}: RowProps<T>) {
88 let {selectionBehavior, allowsDragging} = useTableOptions();
89
90 return (
91 <AriaRow id={id} {...otherProps}>
92 {allowsDragging && (
93 <Cell>
94 <Button slot="drag" className="drag-button">
95 <GripVertical />
96 </Button>
97 </Cell>
98 )}
99 {selectionBehavior === 'toggle' && (
100 <Cell>
101 <Checkbox slot="selection" />
102 </Cell>
103 )}
104 <Collection items={columns}>{children}</Collection>
105 </AriaRow>
106 );
107}
108
109export function TableBody<T>(props: TableBodyProps<T>) {
110 return <AriaTableBody {...props} />;

Callers

nothing calls this directly

Calls 1

useTableOptionsFunction · 0.90

Tested by

no test coverage detected