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

volatilui

v1.0.43

Published

A simple UI library for React

Downloads

2,578

Readme

Volatil UI

A simple UI library for React.

Installation

npm i volatilui

Use

BUTTON

📋 PARAMETERS

className, style, onClick, color_fondo, color_text, children

Example:

<Button 
    className={ css.boton } 
    style={ marginTop: "10px" } 
    color_fondo="cyan"
    color_text="black"
/>

INPUT

📋 PARAMETERS

onChange, style, className, label, value, type, accept="image/png, image/jpeg", disabled

Example:

<Input 
    onChange={ getValue }
    className={ css.boton } 
    style={ marginTop: "10px" } 
    label="Mail"
    value="[email protected]"
    type="text" // "text", "number", "file"
    accept="image/png, image/jpeg"
    disabled
/>

SELECT

📋 PARAMETERS

className, style, children, label

Example:

<Select className={ css.theselect } style={ zIndex: "9" } label="Choose the best">
    <option value="empty">...</option>
    <option value="Cristiano Ronaldo">Cristiano Ronaldo</option>
    <option value="Leonel Messi">Leonel Messi</option>
    <option value="Ronaldinho">Ronaldinho</option>
    <option value="Marcelo Salas">Marcelo Salas</option>
</Select>

TEXTAREA

📋 PARAMETERS

className, style, label, value, type, disabled, placeholder

Example:

<Input 
    className={ css.email } 
    style={ borderTop: "10px" } 
    label="Mail" 
    type="mail"
    placeholder="[email protected]" 
    disabled="false" 
/>

CHECKBOX

📋 PARAMETERS

className, style, label, checked, disabled

Example:

<Checkbox label="Marcelo Salas" checked />
<Checkbox label="Marcelo Diaz" />
<Checkbox label="Johnny Herrera" disabled />
<Checkbox label="Eduardo Vargas" disabled checked />

RADIO

📋 PARAMETERS

className, style, labels, color_check, color_text

Example:

<Radio
    className="theradio"
    style={{ border: "1px solid #bbb" }}
    labels={[ "Golf", "Futbol", "MMA", "Padel", "Tenis" ]}
    color_text="blue"
    color_check="blue"
/>

MODAL

📋 PARAMETERS

classBg, classContent, styleBg, styleContent, children, visible, trigger

Example:

"use client";
import { useState } from "react"

export default function Test() {
    const [ modalVisible, setmodalVisible ] = useState( false );
    
    const toggleModal = () => {
        setmodalVisible( !modalVisible );
    }
    
    <Modal visible={ modalVisible } trigger={ toggleModal }>
        <h2>Random title</h2>
        <p>ingredients:</p>
        <ul>
            <li>2 apples</li>
            <li>1 banana</li>
            <li>1lt milk</li>
            <li>nuts</li>
        </ul>
    </Modal>
    <Button onClick={ toggleModal }>Deploy Modal</Button>
}

ACCORDION

📋 PARAMETERS

className, style

Example:

<Accordion>
    <Accordion.Section>
        <Accordion.Title>Is it accessible? <Svg icono="faq_arrow_down" color="#bbb" /></Accordion.Title>
        <Accordion.Content>
            <p>Yes. It adheres to the WAI-ARIA design pattern.</p>
            <p>Yes. It adheres to the WAI-ARIA design pattern.</p>
            <p>Yes. It adheres to the WAI-ARIA design pattern.</p>
        </Accordion.Content>
    </Accordion.Section>
    
    <Accordion.Section>
        <Accordion.Title>Is it customizable? <Svg icono="faq_arrow_down" color="#bbb" /></Accordion.Title>
        <Accordion.Content>
            <p>Yes. You can customize it with your own styles.</p>
        </Accordion.Content>
    </Accordion.Section>
    
    <Accordion.Section>
        <Accordion.Title>Is it responsive? <Svg icono="faq_arrow_down" color="#bbb" /></Accordion.Title>
        <Accordion.Content>
            <p>Yes. It's responsive by default, but you can disable it if you prefer.</p>
        </Accordion.Content>
    </Accordion.Section>
    
    <Accordion.Section>
        <Accordion.Title>Is it styled? <Svg icono="faq_arrow_down" color="#bbb" /></Accordion.Title>
        <Accordion.Content>
            <p>Yes. It comes with default styles that match the other components' aesthetic.</p>
        </Accordion.Content>
    </Accordion.Section>
    
    <Accordion.Section>
        <Accordion.Title>Is it animated? <Svg icono="faq_arrow_down" color="#bbb" /></Accordion.Title>
        <Accordion.Content>
            <p>Yes. It's animated by default, but you can disable it if you prefer.</p>
        </Accordion.Content>
    </Accordion.Section>
</Accordion>