MCPcopy Create free account
hub / github.com/developerway/example-react-project / Button

Function Button

packages/core/button/index.tsx:11–18  ·  view source on GitHub ↗
({ children, onClick, iconBefore }: ButtonProps)

Source from the content-addressed store, hash-verified

9}>;
10
11export const Button = ({ children, onClick, iconBefore }: ButtonProps) => {
12 return (
13 <button onClick={onClick} css={buttonCss}>
14 {iconBefore && <span css={iconCss}>{iconBefore}</span>}
15 <span css={containerCss}>{children}</span>
16 </button>
17 );
18};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected