BreezeUI is a customizable and reusable component library built with NextJS and Tailwind CSS. It provides a set of UI components that can be easily integrated into your projects, helping you build modern and responsive web applications with ease.
You can install BreezeUI via npm:
npm install breezeui
Or if you prefer yarn:
yarn add breezeui
Here's an example of how to use BreezeUI components in your project:
import React from 'react';
import { Button, Modal } from 'breezeui';
const App = () => {
const modalRef = React.useRef(null);
const handleOpenModal = () => {
modalRef.current.open();
};
const handleSave = async () => {
console.log('Saving...');
// Your save logic here
};
const handleCancel = async () => {
console.log('Cancelling...');
// Your cancel logic here
};
return (
<div className='app'>
<Button type='primary' onClick={handleOpenModal}>
Open Modal
</Button>
<Modal
ref={modalRef}
title='My Modal'
save={handleSave}
cancel={handleCancel}
size='md'
showPadding={true}
>
<p>Your modal content goes here.</p>
</Modal>
</div>
);
};
export default App;
A customizable button component with various styles and states.
<Button
type='primary'
variant='solid'
buttonType='button'
onClick={handleClick}
disabled={false}
>
Click Me
</Button>
type
: The style variant of the button. Options: 'default' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'
. Default is 'default'
.variant
: The style of the button. Options: 'solid' | 'outline'
. Default is 'solid'
.buttonType
: The type of the button element. Options: 'button' | 'submit'
. Default is 'button'
.onClick
: The function to call when the button is clicked.disabled
: Boolean to disable the button. Default is false
.A customizable modal component for displaying content in a pop-up dialog.
<Modal
ref={modalRef}
title='My Modal'
save={handleSave}
cancel={handleCancel}
size='md'
showPadding={true}
>
<p>Your modal content goes here.</p>
</Modal>
ref
: A reference to control the modal externally (open/close).children
: The content to be displayed inside the modal.save
: A function to be called when the "Save" button is clicked. Should return a promise.cancel
: A function to be called when the "Cancel" button is clicked. Should return a promise.title
: The title of the modal.size
: The size of the modal. Options: 'sm' | 'md' | 'lg' | 'xl'
. Default is 'md'
.showPadding
: Boolean to toggle padding around the modal content. Default is true
.header
: Custom header content. Overrides the title if provided.hideButtons
: Boolean to hide the Save/Cancel buttons. Default is false
.hideHeader
: Boolean to hide the header. Default is false
.We welcome contributions to BreezeUI! To contribute:
git checkout -b feature-branch
).git commit -m 'Add new feature'
).git push origin feature-branch
).If you encounter any issues or have questions, feel free to open an issue on GitHub.
BreezeUI is licensed under the MIT License. See the LICENSE file for more details.
For any inquiries, please contact [email protected].
Happy coding!