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

misc: improves to optimize DX

Open iosamuel opened this issue 2 years ago • 0 comments

This PR is to improve DX overall after several issues I have found would be greatly appreciated by any developer using this library.

For instance:

  • Arrow icons slots: this will allow developers to simply change the icon of the arrows and simply style the buttons at their preference without having to implement the whole logic of the buttons
  • Pass more props to the arrows slot: I found myself trying to implement the whole logic on the arrows and was almost impossible to implement it completely because of missing state variables needed as well as the i18n default text
  • Possibility to hide scrollbar on demand: this library is extremely powerful because of its native css usage of the scroll, giving away completely the scrollbar is not something really useful, sometimes you may want to keep the scrollbar for Desktop users so they can use the native scroll to scroll faster through items (real use case on my company)

Sorry about some changes made in the style of the code, I tried to be as tight as possible to the code style, that's why I implemented the .prettierrc configuration file, this will make it easier to contribute to the code later as well.

iosamuel avatar Jun 08 '22 01:06 iosamuel