typescript-prop-definition
Installation
SKILL.md
TypeScript Prop Definition
Interface Convention
Use interface for component props:
/**
* Props for the Button component
*/
interface ButtonProps {
/** Button text or content */
children: React.ReactNode;
/** Click handler */
onClick?: () => void;
/** Whether button is disabled */
disabled?: boolean;
}