A component's API (its props, events, and slots) is an interface contract with other engineers. Poor API design causes bugs, frustration, and abandonment.
Rules for World-Class Component APIs:
disabled (not isDisabled), onClick (not handleClick or performAction), and children for content.isPrimary, isSecondary, isDanger), use a single variant union: variant?: 'primary' | 'secondary' | 'danger'.<Button>Click me</Button> renders beautifully without configuring 10 props....rest onto the underlying <button> or <input>) so consumers can attach aria-* tags or test IDs.Level 4 · Component Architecture & Visual Language