MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / ButtonProps

Interface ButtonProps

packages/ui/src/components/Button.tsx:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { ButtonHTMLAttributes, ReactNode } from 'react';
2
3export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4 variant?: 'primary' | 'secondary' | 'ghost';
5 size?: 'sm' | 'md' | 'lg';
6 children: ReactNode;
7}
8
9const variantClass: Record<NonNullable<ButtonProps['variant']>, string> = {
10 primary:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected