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

Function Add

packages/@react-spectrum/s2/ui-icons/Add.tsx:42–58  ·  view source on GitHub ↗
(
  props: SVGProps<SVGSVGElement> & {size?: 'M' | 'L' | 'XL' | 'XS' | 'S'}
)

Source from the content-addressed store, hash-verified

40});
41
42export default function Add(
43 props: SVGProps<SVGSVGElement> & {size?: 'M' | 'L' | 'XL' | 'XS' | 'S'}
44): ReactNode {
45 let {size = 'M', ...otherProps} = props;
46 switch (size) {
47 case 'M':
48 return <Add_M {...otherProps} className={(otherProps.className || '') + styles({size})} />;
49 case 'L':
50 return <Add_L {...otherProps} className={(otherProps.className || '') + styles({size})} />;
51 case 'XL':
52 return <Add_XL {...otherProps} className={(otherProps.className || '') + styles({size})} />;
53 case 'XS':
54 return <Add_XS {...otherProps} className={(otherProps.className || '') + styles({size})} />;
55 case 'S':
56 return <Add_S {...otherProps} className={(otherProps.className || '') + styles({size})} />;
57 }
58}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected