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

componentes-dengel

v1.3.66

Published

=== **PARA UTILIZAR ESTE PAQUETE ES NECESARIO QUE PARA EMPEZAR CREE UN SU PROYECTO RAIZ LA CARPETA types y en dentro crear el archivo componentes-dengel.d.ts y añada el nombre de sus componentes** ```tsx declare module 'componentes-dengel' { export const

Downloads

3

Readme

BIENVENIDOS A LOS COMPONENTES DE DENGEL

=== PARA UTILIZAR ESTE PAQUETE ES NECESARIO QUE PARA EMPEZAR CREE UN SU PROYECTO RAIZ LA CARPETA types y en dentro crear el archivo componentes-dengel.d.ts y añada el nombre de sus componentes

declare module 'componentes-dengel' {
  export const HeaderMobileTypeOne: any;
  export const NavMobileTypeOne: any;

}

===

COMPONENTES NAV

  1. NavMobileTypeOne

    • openMenu: Es para abrir el menú del responsive y mejorar la accesesibilidad de el responsive mobile
    • children: Puedes agregar cualquier elemento como por ejemplo en next js Link
    <NavMobileTypeOne openMenu={openMenu}>
       
    </NavMobileTypeOne>
       

COMPONENTES HEADER

  1. HeaderMobileTypeOne

    • openMenu: Es para abrir el menú del responsive mobile

    • setOpenMenu: Obtiene el estado si es false o true de la constante openMenu

    • children: Puedes agregar cualquier elemento

    • colorHeader: No es obligatorio añadir color de fondo de tu elemento header.

    • logo: Añada elemento img o en caso de next js Image.

    <HeaderMobileTypeOne logo={<img alt="img" src="#" className='text-white'/>} colorHeader='bg-sky-800' openMenu={openMenu} setOpenMenu={()=>setOpenMenu(!openMenu)}>
    </HeaderMobileTypeOne>
  2. HeaderTwo (header principal responsive)

  • openMenu: Es para abrir el menú del responsive mobile

  • logo: Añada elemento img o en caso de next js Image.

  • colorHeader: No es obligatorio añadir color de fondo de tu elemento header.

  • setOpenMenu: Obtiene el estado si es false o true de la constante openMenu

  • children: Puedes agregar cualquier elemento

  • openMenuDesktop: Es para abrir el menú pequeño de desktop desktop 1024px, 1280px en general

  • setOpenMenuDesktop: Obtiene el estado si es false o true de la constante openMenuDesktop -navDesktopLittle: El menú pequeño de desktop -LinksNavDesktop La lista del menú pequeño. -navMobileContent Nav mobile. -colorSubNav Solo se permite color configurado en tailwindcss -linksSubNav Se permite elementos, componentes -openSubNav Abre el sub menu | booleano -setOpenSubNav Guarda booleano EJEMPLO GENERAL

    <HeaderTwo 
    navMobileContent={ <NavMobileTypeTwo 
    colorSubNav='bg-sky-600' 
    linksSubNav={<section><h2 className='text-white'>contactos</h2>

Componente questions

  • colorIconActive : Solo acepta colores en hexadecimal
  • colorIconDefault : Solo acepta colores en hexadecimal
  • colorTextoActive : Solo acepta colores configurados en tailwindcss
  • colorTextoDefault : Solo acepta colores configurados en tailwindcss
  • questions : Poner array como el siguiente ejemplo:
     const questions=[
     {
     id:1,
     question:"¿Qué caracteriza a Elon Musk?",
     state:false,
     answer:"Elon Musk es cofundador y líder de Tesla, SpaceX, Neuralink y The Boring Company. Como cofundador y director general de Tesla, Elon lidera el diseño de productos, ingeniería y fabricación de los vehículos eléctricos, productos de batería y productos"
     },
     {
     id:2,
     question:"¿Quién es Elon Musk y cuáles inventos?",
     state:false,
     answer:"En 2002, Musk fundó SpaceX, fabricante aeroespacial y empresa de servicios de transporte espacial, de la que es CEO e ingeniero jefe."
     },
     {
     id:3,
     question:"¿Cuántos idiomas habla Elon Musk?",
     state:false,
     answer:"Según sus datos, Musk genera ¡más de 22.500 dólares en un minuto! Unos 375 dólares en un segundo. En euros, gana casi 330 "
     }
     ] 
  • idd y setIdd:
const [idd,setIdd]=useState<any|undefined>({id:0,state:false});
<Question colorTextAnswer="text-black" colorIconActive="#FE9800" colorIconDefault="#A599EF" colorTextoActive="text-orange-500" colorTextoDefault="tex-black" questions={questions} idd={idd} setIdd={setIdd} />