Which Approach Best Prevents Prop Leakage in Styled‑Components?
Preventing Accidental Public Access Styled‑components forwards unknown props to the underlying DOM element, which can cause React warnings and unintentionally expose internal state as HTML attributes. The documented solution is the transient props convention: prefixing a prop with $ (e.g., $primary ) tells styled‑components to consume it for styling only and