⚡ ⚛️ Create blazingly fast custom React components
Let's create a customized button
component.
const MyButton = tailt.button`
bg-blue-500
`
Voila! Now, use it like a component.
<MyButton>Hello</MyButton>
Let's add an onClick attribute.
<MyButton onClick={func}>Hello</MyButton>
- Tailt supports all HTML element attributes.
- So, you can add them as like as props.
The library requires TailwindCSS to be installed.
npm i tailt
yarn add tailt
a
article
button
div
form
footer
h1
h2
h3
h4
h5
h6
header
input
label
li
main
nav
p
section
span
text-area
ul
yarn
yarn tsc
If you find a bug or want an improvement, please create a pull request.
Made with ❤️ by @BerzanXYZ