MCPcopy Index your code
hub / github.com/reactjs/react.dev / ButtonProps

Interface ButtonProps

src/components/Button.tsx:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13import cn from 'classnames';
14
15interface ButtonProps {
16 children: React.ReactNode;
17 onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
18 active?: boolean;
19 className?: string;
20 style?: Record<string, string>;
21}
22
23export function Button({
24 children,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected