npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@mirzamitdinovs/breezeui

v0.1.6

Published

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.

Downloads

1

Readme

BreezeUI

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.

Features

  • Customizable: Easily customize the components using Tailwind CSS.
  • Reusable: Use the components across multiple projects for a consistent UI.
  • Responsive: Components are designed to work well on all screen sizes.
  • TypeScript Support: Written in TypeScript for type safety and better developer experience.

Installation

You can install BreezeUI via npm:

npm install breezeui

Or if you prefer yarn:

yarn add breezeui

Usage

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;

Available Components

Button

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.

Modal

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.

Contributing

We welcome contributions to BreezeUI! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a Pull Request.

Issues

If you encounter any issues or have questions, feel free to open an issue on GitHub.

License

BreezeUI is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any inquiries, please contact [email protected].


Happy coding!