Giter Site home page Giter Site logo

pheralb / superkey Goto Github PK

View Code? Open in Web Editor NEW
132.0 2.0 11.0 3.8 MB

๐Ÿ”ญ A beautifully command menu for React. Built with headlessUI.

Home Page: https://superkey.vercel.app

License: MIT License

JavaScript 11.95% TypeScript 87.01% CSS 1.04%
command-menu component react tailwindcss headlessui reactjs tailwind nextjs hacktoberfest turbo

superkey's Introduction

Getting Started ย ย โ€ขย ย  Examples ย ย โ€ขย ย  Contribute

Superkey Minzip Package Size GitHub releases GitHub stars GitHub issues GitHub license

๐Ÿ‘‹ Introduction

Superkey is a stylized command palette component built with React, Tailwind CSS & HeadlessUI ready to be used in your next project.

โœจ Features

  • โœ… Easy to install.
  • โœ… Support for keyboard navigation.
  • โœ… Fully customizable.
  • โœ… Fully tested, typed and reliable.

๐Ÿ‘จโ€๐Ÿš€ Getting Started

  1. Install Superkey:
# with npm:
npm install superkey @headlessui/react

# with yarn:
yarn add superkey @headlessui/react

# with pnpm:
pnpm install superkey @headlessui/react

# with ultra:
ultra install superkey @headlessui/react
  1. Add styles:
import "superkey/styles.css";
  1. Create your first command palette component:
import { useState } from "react";
import { Command, CommandInput, CommandList, CommandOption } from "superkey";

function App() {
  const [open, setOpen] = useState(false);
  return (
    <Command
      open={open}
      onClose={() => {
        setOpen(false);
      }}
    >
      <CommandInput
        onChange={(e) => {
          console.log(e.target.value);
        }}
      />
      <CommandList>
        <CommandOption value="Option 1">
          <h1>Option 1</h1>
          <p>Description</p>
        </CommandOption>
        <CommandOption value="Option 2">
          <h1>Option 2</h1>
          <p>Description</p>
        </CommandOption>
      </CommandList>
    </Command>
  );
}

๐Ÿค Contributing

  1. Fork and clone the repository:
git clone [email protected]:your-username/superkey.git
  1. Install dependencies:
npm install
# or
yarn install
# or
ultra install
# or
pnpm install
  1. Run turborepo:
npm run dev
# or
yarn dev
# or
ultra dev
# or
pnpm dev

๐Ÿ”ง Stack

  • Tailwind CSS - Rapidly build modern websites without ever leaving your HTML.
  • Headless UI - Completely unstyled, fully accessible UI components.
  • Next.js + Contentlayer - Content made easy for developers.
  • SWC - Rust-based platform for the Web.

๐Ÿ”‘ License

superkey's People

Contributors

deriancordobaperez avatar pheralb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

superkey's Issues

Module not found: Error: Can't resolve 'clsx'

I think the new version does not work, you could check it, I also tried to manually apply the changes regarding the problem of not being able to click on the sides of the modal but it is not a valid solution either, it did not change nothing, the solution I initially offered could be applied to the component Dialog and also fix it

image

the sides of the modal are not clickable

Hello everyone, recently using the library I realized that it is not possible to close the modal window by clicking on the sides, I did a pr to solve this, I hope it can be considered, thanks

image

PR: #13

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.