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

Function Cell

starters/docs/src/Table.tsx:126–141  ·  view source on GitHub ↗
(props: CellProps)

Source from the content-addressed store, hash-verified

124}
125
126export function Cell(props: CellProps) {
127 return (
128 <AriaCell {...props}>
129 {composeRenderProps(props.children, (children, {hasChildItems, isTreeColumn}) => (
130 <>
131 {isTreeColumn && hasChildItems && (
132 <Button slot="chevron">
133 <ChevronRight />
134 </Button>
135 )}
136 {children}
137 </>
138 ))}
139 </AriaCell>
140 );
141}
142
143export function TableLoadMoreItem(props: TableLoadMoreItemProps) {
144 return (

Callers

nothing calls this directly

Calls 1

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected