react-toolbox icon indicating copy to clipboard operation
react-toolbox copied to clipboard

Allow setting id

Open pupeno opened this issue 8 years ago • 4 comments
trafficstars

Most components allow you to specify a class: http://react-toolbox.com/#/components/tabs

Can you please also allow specifying an id?

pupeno avatar Mar 24 '17 07:03 pupeno

I'm a bit curious about why you'd want this?

tobiasandersen avatar Jun 01 '17 11:06 tobiasandersen

To give them a unique name and being able to find them by that name later on. CSS, tests, etc. Sometimes I use classes, sometimes I use ids, depending what's appropriate.

pupeno avatar Jun 02 '17 05:06 pupeno

Hi there! Is this project still maintained? This is from 2017 and would be very good to have a way to uniquely identify components (for automated tests, track usage, etc).

campidelli avatar Apr 05 '20 21:04 campidelli

BTW, for anyone who might have this issue, I simply added an ID attribute to the button component and it worked. It would be good to add this to the component documentation page.

campidelli avatar Apr 05 '20 21:04 campidelli