({id, columns, children, ...otherProps}: RowProps<T>)
| 85 | } |
| 86 | |
| 87 | export 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 | |
| 109 | export function TableBody<T>(props: TableBodyProps<T>) { |
| 110 | return <AriaTableBody {...props} />; |
nothing calls this directly
no test coverage detected