2.1.3 • Published 3 years ago
tailt v2.1.3
tailt
⚡ ⚛️ 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.
Installation
NPM
npm i tailtYarn
yarn add tailtDocs
Supported HTML elements
aarticlebuttondivformfooterh1h2h3h4h5h6headerinputlabellimainnavpsectionspantext-areaul
Building
Installing all dependencies
yarnCompiling TypeScript
yarn tscNotes
If you find a bug or want an improvement, please create a pull request.
Made with ❤️ by @BerzanXYZ