Possible to add external link on pn.Card header?

I want to click on the card header and head to a new link:

import panel as pn
pn.Card(header='<a href="https://www.w3schools.com">Visit W3Schools.com!</a>')
1 Like

It seems to “work” but you will have to work on the styling :slight_smile:

import panel as pn
card1=pn.Card(
    header='<a href="https://www.w3schools.com">Visit W3Schools.com!</a>'
)
card2=pn.Card(
    header='[Visit W3Schools.com!](https://www.w3schools.com)'
)
app=pn.Column(card1, card2)
app.servable()
1 Like