Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bratelion/tw-flux
Collection of ready-made tailwind components
https://github.com/bratelion/tw-flux
Last synced: about 2 months ago
JSON representation
Collection of ready-made tailwind components
- Host: GitHub
- URL: https://github.com/bratelion/tw-flux
- Owner: Bratelion
- License: mit
- Created: 2024-06-03T09:57:32.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-17T13:34:48.000Z (7 months ago)
- Last Synced: 2024-06-18T14:21:34.182Z (7 months ago)
- Language: TypeScript
- Size: 735 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# TW-FLUX
## Table of Contents
- [Installation](#Installation)
- [Usage](#Usage)
- [Development](#Development)
- [Contributing](#Contributing)
- [License](#License)
## Overview
TW-FLUX is a collection of your favorite Tailwind CSS components. It allows for easy integration of these components into any React project, enhancing development speed and ensuring a consistent design.## Features
- Reusable Components: Pre-built, customizable components.
- Tailwind CSS: Fully styled using Tailwind CSS.
- TypeScript: Built with TypeScript for type safety.
- Easy Preview: Includes a development environment for easy preview of components.## Installation
Install the package using npm or yarn:```bash
npm install tw-flux
```or
```bash
yarn add tw-flux
```
## Usage
Import and use the components in your React project:```jsx
import React from 'react';
import { Test } from 'tw-flux';const App = () => (
Hello, TypeScript with Tailwind!
);export default App;
```## Development
Prerequisites
- Node.js
- Yarn
### Setup
Clone the repository:
```bash
git clone https://github.com/your-username/tw-flux.git
cd tw-flux
```### Install dependencies:
```bash
yarn install
```### Preview Components
To start the development server and preview the components:```bash
yarn start
```
This will start a Parcel development server and open the preview application.### Build Library
To build the library:```bash
yarn build:lib
```
This will compile the TypeScript files and output them to the dist directory.### Testing the Package
Before publishing, you can pack the library and test it in another project:```bash
yarn new:pack
```
This command generates a tarball that can be installed in another project to test.Test using:
```bash
yarn link "tw-flux"
```## Contributing
Contributions are welcome! Please follow these steps:1. Fork the repository.
2. Create a new branch for your feature or bugfix.
3. Commit your changes and push the branch.
4. Create a pull request to the main branch of the original repository.Please ensure your code follows the project's coding standards and passes all tests.
## License
This project is licensed under the [MIT License](/LICENSE.txt).