MCPcopy Create free account
hub / github.com/code100x/plinkoo / Button

Function Button

frontend/src/components/ui/Button.tsx:1–18  ·  view source on GitHub ↗
({
  onClick,
  children,
  className,
}: {
  onClick: () => void;
  children: React.ReactNode;
  className?: string;
})

Source from the content-addressed store, hash-verified

1export const Button = ({
2 onClick,
3 children,
4 className,
5}: {
6 onClick: () => void;
7 children: React.ReactNode;
8 className?: string;
9}) => {
10 return (
11 <button
12 onClick={onClick}
13 className={`px-2 py-2 text-2xl bg-green-500 text-white font-bold rounded ${className}`}
14 >
15 {children}
16 </button>
17 );
18};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected