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

Function Row

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

Source from the content-addressed store, hash-verified

131});
132
133export function Row<T>({id, columns, children, ...otherProps}: RowProps<T>) {
134 let {selectionBehavior, allowsDragging} = useTableOptions();
135
136 return (
137 <AriaRow id={id} {...otherProps} className={rowStyles}>
138 {allowsDragging && (
139 <Cell>
140 <Button slot="drag">≡</Button>
141 </Cell>
142 )}
143 {selectionBehavior === 'toggle' && (
144 <Cell>
145 <Checkbox slot="selection" />
146 </Cell>
147 )}
148 <Collection items={columns}>{children}</Collection>
149 </AriaRow>
150 );
151}
152
153const cellStyles = tv({
154 extend: focusRing,

Callers

nothing calls this directly

Calls 1

useTableOptionsFunction · 0.90

Tested by

no test coverage detected