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 🙏

© 2025 – Pkg Stats / Ryan Hefner

imagekit-ui-kit

v2.0.0

Published

ImageKit UI Kit

Downloads

1

Readme

UI Kit

🚀 UI Kit for ImageKit frontend projects.

Requirements

  • Node v14
  • yarn

Usage

Run the following command.

yarn add imagekit-ui-kit

Then override the theme in ChakraProvider.

import React from "react"

import {
  Alert,
  Button,
  Checkbox,
  Input,
  Link,
  Select,
  Switch,
  Tabs,
  AlertIcon,
  AlertTitle,
  AlertDescription,
  Box,
  Flex,
  Heading,
  Stack,
  ChakraProvider,
  CloseButton,
  Tab,
  TabList,
  TabPanel,
  TabPanels,
} from "@chakra-ui/react"

import { ChevronRightIcon, DeleteIcon, ExternalLinkIcon } from "@chakra-ui/icons"

import { theme, Fonts, IKReactSelect } from "imagekit-ui-kit"

console.log(theme)

const options = [
  { value: "orange", label: "Orange" },
  { value: "purple", label: "Purple" },
  { value: "red", label: "Red" },
  { value: "green", label: "Green" },
]

export default function App() {
  return (
    <ChakraProvider theme={theme}>
      {/* <Fonts> */}
      <Flex direction="column" alignItems="center" mt={8}>
        <Heading>Button</Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={4} direction="column">
            <Button>Save</Button>
            <Button isDisabled>Save</Button>
            <Button variant="outline">Add</Button>
            <Button variant="outline" isDisabled>
              Add
            </Button>
            <Button variant="solid">+Add New</Button>
            <Button variant="solid" isDisabled>
              +Add New
            </Button>
          </Stack>
        </Flex>

        <Heading as="h3" size="md" mt={8}>
          Variants
        </Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={4} direction="column">
            <Button variant="deleteCTA">
              <DeleteIcon w={21} h={21} mx="15px" />
              Delete Endpoint
            </Button>
          </Stack>
        </Flex>
      </Flex>

      <Flex direction="column" alignItems="center" mt={8}>
        <Heading>Input</Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={5} direction="column">
            <Input placeholder="Here is a sample placeholder" />
            <Input placeholder="Here is a sample placeholder" value="Some text here" onChange={() => {}} />
            <Input isInvalid placeholder="Here is a sample placeholder" value="Invalid input" onChange={() => {}} />
            <Input isDisabled placeholder="Here is a sample placeholder" value="Disabled input" onChange={() => {}} />
          </Stack>
        </Flex>
      </Flex>

      <Flex direction="column" alignItems="center" mt={8}>
        <Heading>Select</Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={5} direction="column">
            <Select placeholder="Here is a sample placeholder" />
            <Select placeholder="Here is a sample placeholder" value="Some text here" onChange={() => {}} />
            <Select isInvalid placeholder="Here is a sample placeholder" value="Invalid input" onChange={() => {}} />
            <Select isDisabled placeholder="Here is a sample placeholder" value="Disabled input" onChange={() => {}} />
          </Stack>
        </Flex>
      </Flex>

      <Flex direction="column" alignItems="center" mt={8}>
        <Heading>Checkbox</Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={4} direction="column">
            <Checkbox>Checkbox</Checkbox>
            <Checkbox isChecked>Checkbox</Checkbox>
            <Checkbox isInvalid>Checkbox</Checkbox>
            <Checkbox isDisabled>Checkbox</Checkbox>
            <Checkbox isDisabled defaultIsChecked>
              Checkbox
            </Checkbox>
          </Stack>
        </Flex>
      </Flex>

      <Flex direction="column" alignItems="center" mt={8}>
        <Heading>Tabs</Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={10} direction="row">
            <Tabs>
              <TabList>
                <Tab>Tab one</Tab>
                <Tab>Tab two</Tab>
              </TabList>

              <TabPanels>
                <TabPanel>
                  <p>one!</p>
                </TabPanel>
                <TabPanel>
                  <p>two!</p>
                </TabPanel>
              </TabPanels>
            </Tabs>
          </Stack>
        </Flex>

        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={10} direction="row">
            <Tabs orientation="vertical">
              <TabList>
                <Tab>
                  Tab one <ChevronRightIcon w="28px" h="28px" position="relative" left="180px" top="2px" />
                </Tab>
                <Tab>
                  Tab two <ChevronRightIcon w="28px" h="28px" position="relative" left="180px" top="2px" />
                </Tab>
              </TabList>

              <TabPanels>
                <TabPanel>
                  <p>one!</p>
                </TabPanel>
                <TabPanel>
                  <p>two!</p>
                </TabPanel>
              </TabPanels>
            </Tabs>
          </Stack>
        </Flex>
      </Flex>

      <Flex direction="column" alignItems="center" mt={8}>
        <Heading>Link</Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={10} direction="row">
            <Link>ImageKit</Link>
            <Link variant="disabled">ImageKit</Link>
            <Link href="https://imagekit.io" isExternal>
              ImageKit Website <ExternalLinkIcon mx="2px" />
            </Link>
          </Stack>
        </Flex>
      </Flex>

      <Flex direction="column" alignItems="center" mt={8}>
        <Heading>Switch</Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={10} direction="row">
            <Switch />
            <Switch isChecked />
          </Stack>
        </Flex>

        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={10} direction="row">
            <Switch size="lg" />
            <Switch size="lg" isChecked />
          </Stack>
        </Flex>
      </Flex>

      <Flex direction="column" alignItems="center" mt={8}>
        <Heading>Alert</Heading>

        <Heading as="h3" size="md" mt={3}>
          Solid
        </Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={4} direction="column">
            <Alert status="info" variant="solid">
              <AlertIcon />
              <AlertDescription>Alert status message here</AlertDescription>
              <CloseButton position="absolute" right="12px" top="12px" />
            </Alert>
            <Alert status="warning" variant="solid">
              <AlertIcon />
              <AlertDescription>Alert status message here</AlertDescription>
              <CloseButton position="absolute" right="12px" top="12px" />
            </Alert>
            <Alert status="success" variant="solid">
              <AlertIcon />
              <AlertDescription>Alert status message here</AlertDescription>
              <CloseButton position="absolute" right="12px" top="12px" />
            </Alert>
            <Alert status="error" variant="solid">
              <AlertIcon />
              <AlertDescription>Alert status message here</AlertDescription>
              <CloseButton position="absolute" right="12px" top="12px" />
            </Alert>
            <Alert status="info" variant="solid">
              <AlertIcon />
              <Box flex="1">
                <AlertTitle mr={2}>Title</AlertTitle>
                <AlertDescription display="block">Alert status message here</AlertDescription>
                <CloseButton position="absolute" right="12px" top="16px" />
              </Box>
            </Alert>
            <Alert status="warning" variant="solid">
              <AlertIcon />
              <Box flex="1">
                <AlertTitle mr={2}>Title</AlertTitle>
                <AlertDescription display="block">Alert status message here</AlertDescription>
                <CloseButton position="absolute" right="12px" top="16px" />
              </Box>
            </Alert>
            <Alert status="success" variant="solid">
              <AlertIcon />
              <Box flex="1">
                <AlertTitle mr={2}>Title</AlertTitle>
                <AlertDescription display="block">Alert status message here</AlertDescription>
                <CloseButton position="absolute" right="12px" top="16px" />
              </Box>
            </Alert>
            <Alert status="error" variant="solid">
              <AlertIcon />
              <Box flex="1">
                <AlertTitle mr={2}>Title</AlertTitle>
                <AlertDescription display="block">Alert status message here</AlertDescription>
                <CloseButton position="absolute" right="12px" top="16px" />
              </Box>
            </Alert>
          </Stack>
        </Flex>

        <Heading as="h3" size="md" mt={8}>
          Subtle
        </Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={2} direction="column">
            <Alert status="info">
              <AlertIcon />
              <AlertDescription>Alert status message here</AlertDescription>
              <CloseButton position="absolute" right="12px" top="12px" />
            </Alert>
            <Alert status="warning">
              <AlertIcon />
              <AlertDescription>Alert status message here</AlertDescription>
              <CloseButton position="absolute" right="12px" top="12px" />
            </Alert>
            <Alert status="success">
              <AlertIcon />
              <AlertDescription>Alert status message here</AlertDescription>
              <CloseButton position="absolute" right="12px" top="12px" />
            </Alert>
            <Alert status="error">
              <AlertIcon />
              <AlertDescription>Alert status message here</AlertDescription>
              <CloseButton position="absolute" right="12px" top="12px" />
            </Alert>
            <Alert status="info">
              <AlertIcon />
              <Box flex="1">
                <AlertTitle mr={2}>Title</AlertTitle>
                <AlertDescription display="block">Alert status message here</AlertDescription>
                <CloseButton position="absolute" right="12px" top="16px" />
              </Box>
            </Alert>
            <Alert status="warning">
              <AlertIcon />
              <Box flex="1">
                <AlertTitle mr={2}>Title</AlertTitle>
                <AlertDescription display="block">Alert status message here</AlertDescription>
                <CloseButton position="absolute" right="12px" top="16px" />
              </Box>
            </Alert>
            <Alert status="success">
              <AlertIcon />
              <Box flex="1">
                <AlertTitle mr={2}>Title</AlertTitle>
                <AlertDescription display="block">Alert status message here</AlertDescription>
                <CloseButton position="absolute" right="12px" top="16px" />
              </Box>
            </Alert>
            <Alert status="error">
              <AlertIcon />
              <Box flex="1">
                <AlertTitle mr={2}>Title</AlertTitle>
                <AlertDescription display="block">Alert status message here</AlertDescription>
                <CloseButton position="absolute" right="12px" top="16px" />
              </Box>
            </Alert>
          </Stack>
        </Flex>
      </Flex>

      <Flex direction="column" alignItems="center" mt={8}>
        <Heading>React Select</Heading>
        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={10} direction="row">
            <Box w="408px">
              <IKReactSelect options={options} />
            </Box>
          </Stack>
        </Flex>

        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={10} direction="row">
            <Box w="408px">
              <IKReactSelect options={options} menuIsOpen />
            </Box>
          </Stack>
        </Flex>

        <Flex direction="row" alignItems="center" mt={3}>
          <Stack spacing={10} direction="row">
            <Box w="408px">
              <IKReactSelect options={options} value={[options[0], options[1]]} isMulti />
            </Box>
          </Stack>
        </Flex>
      </Flex>

      <br />

      {/* </Fonts> */}
    </ChakraProvider>
  )
}

Development

Package.json Scripts

| Command | Description | | ----------- | ------------------------------------------------------------------------------------------------------------------------- | | test | Run Test Cases | | postinstall | Executes after running yarn install - Automatically Installs Types required adding a package and removes on removal | | dev | Run nodemon for development | | build | Generate dist package | | serve | Generate dist package and run index.js | | prepare | Executes with yarn install - Initialises husky hooks |