Open amje opened 1 month ago
Playwright Test Component is ready.
Preview is ready.
@amje aria-label
props pass to React component as is, without camelCase converting?
@amje
aria-label
props pass to React component as is, without camelCase converting?
Yes, it's valid
This PR introduces an easier way to pass any extra properties to the component and deprecates
extraProps
prop:By default, extra properties extend
React.ButtonHTMLAttributes
and whenhref
property is passed they extendReact.AnchorHTMLAttributes
.PR potentially will break types because
ButtonProps
can no longer be extended in interface declaration: