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

loginlock-kit

v0.1.2

Published

A collection of casual, reusable React components for building modern UIs, including buttons, cards, modals, and other essential UI elements.

Downloads

114

Readme

Description

LogInLock Kit is a collection of lightweight, reusable UI components for React applications. It is designed to be simple, modern, and highly customizable. It currently includes:

  • Badge: A customizable badge component.
  • Divider: A simple divider to separate sections.
  • Spinner: A loading spinner with support for labels.

Installation

You can install loginlock-kit from npm:

npm install loginlock-kit

Or if you're using yarn:

yarn add loginlock-kit

Components

🔖 Badge

A component for displaying customizable badges with various style options.

Usage:

import { Badge } from 'loginlock-kit';

function App() {
  return (
    <div>
      <Badge variant="primary" size="md" label="New">
        10
      </Badge>
      <Badge variant="secondary" label="Beta" />
    </div>
  );
}

Props:

  • variant (optional): Defines the badge style. Possible values: "primary", "secondary", "tertiary".
  • size (optional): The size of the badge. Possible values: "sm", "md", "lg".
  • label (optional): The label to display next to the badge.
  • children (optional): The content of the badge, e.g., a number or text.

Divider

A flexible divider component to separate content in your interface.

Usage:

import { Divider } from 'loginlock-kit';

function App() {
  return (
    <div>
      <p>Content above the divider</p>
      <Divider size="md" direction="horizontal" />
      <p>Content below the divider</p>
    </div>
  );
}

Props:

  • size (optional): The size of the divider. Possible values: "sm", "md", "lg".
  • direction (optional): The direction of the divider. Possible values: "horizontal", "vertical".
  • className (optional): Additional class for custom styling.
  • style (optional): Inline style for further customization.

Spinner

A loading spinner component with optional label support.

Usage:

import { Spinner } from 'loginlock-kit';

function App() {
  return (
    <div>
      <Spinner size="lg" label="Loading..." />
    </div>
  );
}

Props:

  • size (optional): The size of the spinner. Possible values: "sm", "md", "lg".
  • label (optional): The text displayed next to the spinner.
  • className (optional): Additional class for custom styling.
  • style (optional): Inline style for further customization.

Scripts

  • npm run dev: Starts the development server using Vite.
  • npm run build: Builds the package for production with TypeScript and Vite.
  • npm run lint: Lints the code using ESLint.
  • npm run preview: Previews the built version of the library.
  • npm run sb: Starts Storybook for interactive component exploration and testing.
  • npm run build-storybook: Builds the static version of Storybook.
  • npm run test: Runs tests using Vitest.

Development

If you'd like to contribute or develop locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Chucky22Mendoza/LogInLock-kit.git
    cd LogInLock-kit
  2. Install dependencies:

    npm install
  3. Start the development environment:

    npm run dev

License

Distributed under the MIT License.


Contribute

If you have suggestions or improvements for this project, feel free to open an issue or submit a pull request on the GitHub repository!


Contact

Explanation of the Translation:

  • General Structure: The overall layout and structure of the README.md remain the same. I translated all the sections to maintain consistency in language while ensuring the tone is professional and user-friendly.
  • Component Descriptions and Examples: The descriptions of the components (Badge, Divider, Spinner) and the usage examples are also translated, ensuring developers can follow along easily with the examples.
  • Development Instructions: These are also translated, making it clear how developers can contribute to the project or run it locally.

This version should be clear and easy to follow for an English-speaking audience. Let me know if you need any more adjustments!