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

@feedloop/uikit

v0.0.33

Published

Feedloop UI Kit.

Downloads

129

Readme

@feedloop/uikit

Feedloop UI Kit.

This is the source code of the Feedloop UI Kit, based on Chakra UI. It contains our base Chakra UI theme, as well as components that extend from the base Chakra UI.

Usage

Prerequisites

This packages requires that you have the latest version of Chakra UI installed. Please install them first.

# yarn
yarn add @chakra-ui/react @emotion/react @emotion/styled framer-motion

# npm
npm install --save @chakra-ui/react @emotion/react @emotion/styled framer-motion

You will also need the Feedloop icon library.

# yarn
yarn add @feedloop/icon

# npm
npm install --save @feedloop/icon

(Optional) To install the brand typefaces of Qore, you can also install the Inter and Overpass typefaces. You can include them from Google Fonts, or directly from npm with the following packages:

# yarn
yarn add @fontsource/inter @fontsource/overpass

# npm
npm install --save @fontsource/inter @fontsource/overpass

Installation

Once all prerequisites above have been installed, you can now install the Feedloop UI Kit.

# yarn
yarn add @feedloop/uikit

# npm
npm install --save @feedloop/uikit

Usage

Theme provider

Before you use the Feedloop UI Kit component, you will need to apply the theme provider as well as the default global styles. Wrap your app inside the theme provider to do so.

import { FeedloopThemeProvider } from '@feedloop/uikit';

export default function MyApp({ children }) {
  return <FeedloopThemeProvider>{children}</FeedloopThemeProvider>;
}

This does not replace any built-in Chakra UI themes, rather extending on top of it. So if you use any components that rely on the default Chakra UI theme, you can still use them without any problems.

Using components

To use the components provided by Feedloop UI Kit, import them as follows:

// Example for `<Button />` component.

import * as React from 'react';
import { Button } from '@feedloop/uikit';

export default function Component() {
  return <Button>Push Me</Button>;
}

Read the Storybook for more examples. Please read the source of each component's Storybook file to learn how to use each component.

Using Chakra UI props

Most of Feedloop UI Kit's custom components extend the props of its Chakra UI counterpart. Please follow the Chakra UI docs to learn about these components.

Importing built-in Chakra UI components

Feedloop UI Kit also exports built-in Chakra UI components under the Chakra namespace. If you would rather colocate your components in one single import, you can import the Chakra namespace directly from @feedloop/uikit.

import * as React from 'react';
import { Chakra, Badge } from '@feedloop/uikit';

export function MyComponent() {
  return (
    <Chakra.Stack spacing="4">
      <Chakra.Box>Box imported from Chakra UI</Chakra.Box>
      <Chakra.HStack spacing="4">
        <Badge>badge from UI Kit</Badge>
        <Badge>badge from UI Kit</Badge>
        <Badge>badge from UI Kit</Badge>
      </Chakra.HStack>
    </Chakra.Stack>
  );
}