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

Function SelectionIndicator

packages/@react-spectrum/s2/src/Card.tsx:561–574  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559});
560
561function SelectionIndicator() {
562 let {size, isSelected, isQuiet, isCheckboxSelection} = useContext(InternalCardContext);
563 return (
564 <div
565 className={selectionIndicator({
566 size,
567 isSelected,
568 // Add an inner stroke only for quiet cards with no checkbox to
569 // help distinguish the selected state from the preview.
570 isStrokeInner: isQuiet && !isCheckboxSelection
571 })}
572 />
573 );
574}
575
576function CardCheckbox() {
577 let {size} = useContext(InternalCardContext);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected