preline icon indicating copy to clipboard operation
preline copied to clipboard

[Website] Add JSX code snippets in component examples

Open A1X5H04 opened this issue 8 months ago • 0 comments

Summary

Add JSX code snippets along with HTML

Detailed Description

Many of the users uses react for building website, copying the html requires us to again convert it to jsx by changing class to classname (mostly the class attribute) and other HTML attributes as well, almost all of the HTML attributes are need to be camel cased to use in JSX, see here. To ease up the work, I would request to add a tab for jsx code as well along with the html code this way, we can directly copy jsx from the examples and wouldn't need to rename all the class and other attributes every time we copy and paste a component, I am looking forward to this and thank you for this wonderful library ❤️

Use Cases

In the example components tab like daisyUI or other tailwind component library as well

A1X5H04 avatar Jun 24 '24 15:06 A1X5H04