vue-ribbon icon indicating copy to clipboard operation
vue-ribbon copied to clipboard

Ribbon with @click option

Open carromeu opened this issue 5 years ago • 1 comments
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?

carromeu avatar May 20 '20 17:05 carromeu

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!

ubaldop avatar May 20 '20 20:05 ubaldop