vue-ribbon
vue-ribbon copied to clipboard
Ribbon with @click option
trafficstars
First, congrats for this component! Its true useful.
I want use it as a ribbon to "BETA version" alert. I need to make a fork or has any exploit to make its possible?
Hi @carromeu thanks for using it :smiley:
Currently the component does only support the url property, that builds an anchor tag with href, for example:
<Ribbon
text='Hello World'
url='https://github.com/P3trur0/vue-ribbon'
fixed />
If the url sounds fine to you, it might work as a clickable ribbon.
Otherwise you have to bind the onclick event manually. Please, consider to open a PR in case you'll introduce this improvement!