MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / CloseButton

Function CloseButton

src/CloseButton.js:24–39  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

22};
23
24function CloseButton(props) {
25 const { className, cssModule, variant, innerRef, ...attributes } = props;
26
27 const classes = mapToCssModules(
28 classNames(className, 'btn-close', variant && `btn-close-${variant}`),
29 );
30
31 return (
32 <button
33 ref={innerRef}
34 type="button"
35 className={classes}
36 {...{ 'aria-label': 'close', ...attributes }}
37 />
38 );
39}
40
41CloseButton.propTypes = propTypes;
42

Callers

nothing calls this directly

Calls 1

mapToCssModulesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…