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

Function CardCheckbox

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

Source from the content-addressed store, hash-verified

574}
575
576function CardCheckbox() {
577 let {size} = useContext(InternalCardContext);
578 return (
579 <div
580 className={style({
581 position: 'absolute',
582 top: '--card-spacing',
583 insetStart: '--card-spacing',
584 zIndex: 2,
585 padding: 4,
586 backgroundColor: lightDark('transparent-white-600', 'transparent-black-600'),
587 borderRadius: 'default',
588 boxShadow: 'emphasized'
589 })}>
590 <Checkbox slot="selection" excludeFromTabOrder size={size === 'XS' ? 'S' : size} />
591 </div>
592 );
593}
594
595export interface CardPreviewProps extends UnsafeStyles, DOMProps {
596 children: ReactNode;

Callers

nothing calls this directly

Calls 1

lightDarkFunction · 0.90

Tested by

no test coverage detected