Closed Fahimansari closed 1 month ago
Correct me if I am wrong.
You want to create a link component that can take any form- Button, Text etc
And you want ot control the styling of that component using sx
props.
Could you eleaborate more on why you want to pass the component prop. I feel like it complicates the Link component more. if in need we could write different components with Link attributes
I need it so that I can get the styling of other components. I think getting the styling of button for a link will solve my problem
sx
props to that componentexport default LinkDemo () { return <Link href='/orgs' component={Button} onClick={() => 'I clicked'} }