({id, columns, children, ...otherProps}: RowProps<T>)
| 131 | }); |
| 132 | |
| 133 | export 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 | |
| 153 | const cellStyles = tv({ |
| 154 | extend: focusRing, |
nothing calls this directly
no test coverage detected