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

Function closeIconStyle

packages/@react-spectrum/ai/src/AttachmentList.tsx:103–109  ·  view source on GitHub ↗
({size = 'M'})

Source from the content-addressed store, hash-verified

101});
102
103const closeIconStyle = ({size = 'M'}) => {
104 if (size === 'S') return iconStyle({size: 'XS'});
105 else if (size === 'M') return iconStyle({size: 'S'});
106 else if (size === 'L') return iconStyle({size: 'M'});
107 else if (size === 'XL') return iconStyle({size: 'L'});
108 else return iconStyle({size: 'S'});
109};
110
111const CloseButton = function CloseButton(props) {
112 let ref = useRef(null);

Callers 1

CloseButtonFunction · 0.85

Calls 1

iconStyleFunction · 0.90

Tested by

no test coverage detected