@laracoft Yes, it could be written in Vue, but it wouldn’t then be used like your example.
If you made a Vue component then you’d put it in your page using a <floating-action-button> tag or something, passing any props to configure its appearance and behaviour (i.e. what action to perform when clicked).