A lightweight, modular UI component library for React, bundled with Rollup.
To install packifyui
, run:
npm install packifyui
After installing, import the components or utilities you need in your project.
import { YourComponent } from 'packifyui';
function App() {
return <YourComponent />;
}
export default App;
Here’s a basic example demonstrating how to use one of the components:
import { Button } from 'packifyui';
function App() {
return (
<div>
<Button label="Click Me" onClick={() => alert("Button clicked!")} />
</div>
);
}
export default App;
To build the library, use the following command:
npm run build
This will use Rollup to bundle the components into the dist/
directory.
Here’s a summary of the available components and their props:
-
label
(string) - The text displayed on the button. -
onClick
(function) - Function to execute on button click.
If the package supports customization or configuration, describe those options here.
If you would like to contribute to packifyui
, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name
). - Commit your changes (
git commit -m "Added new feature"
). - Push to the branch (
git push origin feature-name
). - Create a pull request.
This project is licensed under the ISC License.