You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our case we can provide this new prop in the ThemeProvider. This approach facilitates the use of a single Link in the application.
New prop
Most design systems choose to provide a new prop in the component. Rainbow and Fluent(example) call it as and Spark as element. In all the cases it can receive a react element, a function or a primitive type name.
This approach forces this prop to be used in all links used in the application.
Link component as style, not as functionality
Spectrum design system uses the Link component as a wrapper that applies styles to children. It also supports cases where the children are text but manage the click through onPress prop.
Activity