MCPcopy Create free account
hub / github.com/developmentseed/stac-react / Button

Function Button

example/src/components/buttons/index.jsx:14–20  ·  view source on GitHub ↗
({ type, className, children, onClick })

Source from the content-addressed store, hash-verified

12};
13
14export function Button({ type, className, children, onClick }) {
15 return (
16 <button type={type} className={`${className} px-2 py-1 rounded`} onClick={onClick}>
17 {children}
18 </button>
19 );
20}
21
22Button.propTypes = DefaultButtonType;
23Button.defaultProps = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected