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

Function ListSelectionCheckbox

packages/@react-spectrum/s2/src/ListView.tsx:847–855  ·  view source on GitHub ↗
({isDisabled}: {isDisabled: boolean})

Source from the content-addressed store, hash-verified

845});
846
847function ListSelectionCheckbox({isDisabled}: {isDisabled: boolean}) {
848 let selectionContext = useSlottedContext(CheckboxContext, 'selection');
849 let isSelectionDisabled = isDisabled || !!selectionContext?.isDisabled;
850 return (
851 <div className={listCheckbox({isDisabled: isSelectionDisabled})}>
852 <Checkbox slot="selection" />
853 </div>
854 );
855}
856
857export function ListViewItem(props: ListViewItemProps): ReactNode {
858 let ref = useRef(null);

Callers

nothing calls this directly

Calls 1

useSlottedContextFunction · 0.85

Tested by

no test coverage detected