Skip to content

Add links to Feature2 widgets card and content? #366

Discussion options

You must be logged in to vote

I'm not sure sure what functionality you're aiming for exactly, but I think if you make the item card clickable then you don't need to worry about the title or text as they're also in the card so the whole thing would be clickable.

Features2 is pretty much just a wrapper for ItemGrid2 so you can either extend that or make a Features3 and ItemGrid3 if you're already using ItemGrid2 elsewhere and don't want to change it.

Add a href?: string; to the ItemGrid interface in the types file, which means you can set the href link in the same way the other props are set when you use the component.

Then in the ItemGrid2 component file you can add an tag around the card (or whichever parts you want t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by prototypa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants