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

chikara-ui

v1.3.1

Published

Components React with UI cute

Downloads

11

Readme

👋 Welcome to Chikara UI

About the library Chikara UI

Chikara UI is a library for get automatically the font color. Also you can get some design about this library, where you can customize all.

NOTE: Chikara UI work in Next Js App Router. We are working for more compatibilities.

⚙ How Install

npm i chikara-ui

🤓 Using the library

Input

The properties for Input, for example is: label: Text of label of component name: Name attribute of tag type: It is the type of input bgColor: It is for add background-color. You need add the background-color onChange: You can add the event onChange textAlign: Change the align of text, by default is to left

import {Input} from 'chikara-ui';

export default function Home() {
  return (
    <>
      <Input type="text" label={"myText"} bgColor={"darkblue"}/>
    </>
  );
}

Title

The properties for Title is: text: Text of label of component bgColor: It is for add background-color. You need add the background-color className: You can add the className id: You can add the id

import {Title} from 'chikara-ui';

export default function Home() {
  return (
    <>
      <Title bgColor="#000" text="Hola como estas?" />
    </>
  );
}

Button

The properties for Button is: text: Text of label of component bgColor: It is for add background-color. You need add the background-color className: You can add the className id: You can add the id

import {Button} from 'chikara-ui';

export default function Home() {
  return (
    <>
      <Button bgColor="darkblue">Click here</Button>
    </>
  );
}

Dropdown

The properties for Dropdown is: name: name of component bgColor: It is for add background-color. You need add the background-color className: You can add the className id: You can add the id borderRadius: It is the border radius of component

import {Dropdown} from 'chikara-ui';

export default function Home() {
  return (
    <>
      <Dropdown bgColor="white" name={"drp"} borderRadius="10px">
        <option>Select your number</option>
        <option>1</option>
        <option>2</option>
        <option>3</option>
      </Dropdown>
    </>
  );
}

Divider

The properties for Divider is: width: width of component style: set your style of component className: You can add the className id: You can add the id

import {Divider} from 'chikara-ui';

export default function Home() {
  return (
    <>
      <Divider width="30%"/>
    </>
  );
}

Sketch (P5)

The properties for Sketch is: sketch: code for P5, it is a code normal, using the property "p" style: set your style of component className: You can add the className id: You can add the id

import {Sketch} from 'chikara-ui/P5';

export default function Home() {
  return (
    <>
    <Sketch sketch={
        (p)=>{
          p.setup = () => {
            p.createCanvas(500, 500);
          }
        
          p.draw = () => {
            p.background("#e9e2d7")
            p.circle(120, 120, 90);
            p.rect(120, 120, 120,12);
          }
        }} />
    </>
  );
}

Modal

The properties for Modal is: isOpen: it is a boolean, it is for do visible or hide the modal autoScroll: it is a boolean, it is for when you use the component Main className: You can add the className id: You can add the id

import { useState } from "react"

import { Input, Button, Divider, Modal, ModalContainer, ModalHeader, ModalBody, ModalFooter, Main } from 'chikara-ui';

export default function Home() {

  const [isOpen, setIsOpen] = useState(false);

  return (
    <Main>
      Click here for more information
      <Button bgColor="rgb(12,99,99)" onClick={() => setIsOpen(true)}>Open Modal</Button>
      <Modal isOpen={isOpen} autoScroll={true}>
        <ModalContainer onClick={() => setIsOpen(false)}>

          <ModalHeader>My Header</ModalHeader>
          <Divider />

          <ModalBody>
            <Input type="text" label={"Nombre"} bgColor={"red"} />
            <Input type="text" label={"Apellido"} bgColor={"red"} />
            <Input type="number" label={"Edad"} bgColor={"red"} />
            <Input type="email" label={"Email"} bgColor={"red"} />
            <Input type="password" label={"Contraseña"} bgColor={"red"} />
          </ModalBody>

          <ModalFooter>
            <Button bgColor="rgba(255,0,0,0.4)" onClick={() => setIsOpen(false)}>Close</Button>
            <Button bgColor="rgba(0,205,0,0.4)" onClick={() => setIsOpen(false)}>Save</Button>
          </ModalFooter>

        </ModalContainer>
      </Modal>
    </Main>
  );
}

Main

The properties for Main is: className: You can add the className id: You can add the id

import { Main } from 'chikara-ui';

export default function Home() {

  return (
    <Main>
      Click here for more information
    </Main>
  );
}

Dialog

The properties for Dialog is: title: It is the title of header text: It is the title of body lan: It is the language of button onClose: It is of function for close the dialog bgColor: It is for add background-color. You need add the background-color

import { useState } from "react"

import { Button, Dialog, Main } from '../../../chikara-ui/index';

export default function Home() {

  const [isOpen, setIsOpen] = useState(false);
  const [isOpenDialog, setIsOpenDialog] = useState(false);

  return (
    <Main>
      <Button bgColor="white" onClick={()=>{setIsOpenDialog(true)}}>Open Dialog</Button>

      <Dialog isOpen={isOpenDialog} 
        text={"Estas teniendo un problema con el  servidor, revise su conexion"}   title="header" 
        lan="es" 
        bgColor="white" 
        onClose={()=>{setIsOpenDialog(false)}} 
      />
    </Main>
  );
}

📝 Version 1.3.0

Improve adding color custom on font text for:

Input

Title

Dropdown

Button

ModalContainer

Improve Naural Network

Add component Dialog

📝 Version 1.2.0

Improve the Input adding new property

NOTE: Sketch P5 have a minor bug, we are working for fix this one.

📝 Version 1.1.9

Add follow components:

Modal

ModalContainer

ModalHeader

ModalBody

ModalFooter

Main

Improve the Input component style

Improve the Divider component style

NOTE: Sketch P5 have a minor bug, we are working for fix this one.

📝 Version 1.1.8

Update Documentation

📝 Version 1.1.7

Update Documentation

📝 Version 1.1.6

Add follow components:

Divider

Sketch (P5)

Improve the component style

📝 Version 1.1.5

Improve the component style

📝 Version 1.1.4

Improve the component style

📝 Version 1.1.3

Improve the component style

📝 Version 1.1.2

Adding Button Component

📝 Version 1.1.0

Improve the component Dropdown Style

📝 Version 1.0.9

Adding components Title, Dropdown and Image

📝 Version 1.0.8

In this version, only i add Input, but in the lastest version i am going to add another tags with an improve style.

📝 Version 1.0.7

Improve Naural Network

📝 Version 1.0.6

Adding Naural Network

📝 Version 1.0.5

Improve component Input

📝 Version 1.0.4

Adding component Input