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

xsans

v1.4.7

Published

React components with CLI for easy installation

Downloads

109

Readme

XSANS React Component Library

XSANS is a beautifully crafted React component library, built with Tailwind CSS, to help developers quickly build sleek and modern UIs. The library provides reusable components such as buttons, inputs, progress bars, and more, with built-in flexibility and customization options.

Features

  • Customizable Components: Easily customizable with Tailwind CSS classes.
  • Simple Integration: Quickly add components to your project using our CLI tool.
  • Reusable UI Elements: A growing list of reusable, responsive, and accessible components.

Installation

You can install components individually using our npx xsans CLI tool.

Install a Specific Component

To install a specific component (e.g., XButton), use the following command:

```bash npx xsans add xbutton ```

This will install the required files and dependencies for the selected component.

Install All Components

To install the entire XSANS component library, you can run:

```bash npx xsans add all ```

This will install all available components under `src/xcomponents` in your project.

Getting Started

Prerequisites

Before using the XSANS components, make sure your project is set up with Tailwind CSS. If Tailwind CSS is not yet installed, follow the Tailwind CSS installation guide.

Example Usage

Here’s how you can use a component from XSANS:

  1. After running the installation command, import the desired component in your React project.

```jsx import XButton from '@xsans/xbutton';

const MyComponent = () => { return ( Click Me ); };

export default MyComponent; ```

  1. Tailwind CSS will automatically apply styles to XSANS components based on your project's configuration. You can further customize these components using additional Tailwind classes if needed.

```jsx Submit ```

Available Components

  • XButton: Customizable button component with Tailwind CSS styling.
  • XInput: Beautiful and accessible input field for forms.
  • XProgress: A responsive progress bar component.
  • More components are coming soon!

Available Scripts

After installing components, you can run the following scripts in your project:

`npm start`

Runs the app in development mode.\ Open http://localhost:3000 to view it in your browser.

The page will reload if you make edits.\ You will also see any lint errors in the console.

`npm run build`

Builds the app for production, including all installed XSANS components. The build will be optimized for best performance and ready for deployment.

Customization

XSANS components are designed to be flexible. You can easily customize the components by extending or overriding the default Tailwind CSS classes.

Example:

```jsx Custom Button ```

Contributions

We welcome contributions! If you'd like to add a new component or improve existing ones, feel free to submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Learn More

To learn more about Tailwind CSS, visit the official Tailwind documentation.

To learn more about React, check out the React documentation. """

Saving the content to README.md

file_path = "/mnt/data/README_XSANS.md" with open(file_path, "w") as f: f.write(readme_content)

file_path

Created by Ravi Kant