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

@fuoco.appdev/web-components

v1.1.16

Published

Supabase UI is a React UI library.

Downloads

12

Readme

Supabase UI

Supabase UI is a React UI library.


⚠️ Development is currently being worked on in alpha branch

Supabase UI will be using tailwind css classes and dropping support for CSS modules is in the alpha branch. This UI library will exclusively need to be used with tailwind.

The Auth component will be moved over to @supabase/auth-helpers.


🚧 Supabase UI is still a work-in-progress until a major release is published.

Product hunt

View docs


Install Supabase UI

npm install @supabase/ui

Using Supabase UI

Example of importing a component

import { Button } from '@supabase/ui'

//...

return <Button>I am a Supabase UI button</Button>

It is probably advisable to use Normalize with Supabase UI for the timebeing.

Using Icons

We use Feather icon library in Supabase UI

You can use any Icon from the library as a component by prepending Icon to any Icon name, like, <IconMail>

import { IconMail } from '@supabase/ui'

//...

return <IconMail size="small" />

Using Supabase UI Auth

You can use our Auth widget straight out the box with Supabase auth including social logins.

The Auth component also includes a context component which detects whether a user is logged in or not.

Make sure to also install @supabase/supabase-js

npm install @supabase/supabase-js

You can then easily import Auth from the ui library and pass the createClient to the Auth component.

import { Auth, Typography, Button } from '@supabase/ui'
import { createClient } from '@supabase/supabase-js'

const { Text } = Typography

// Create a single supabase client for interacting with your database
const supabase = createClient(
  'https://xyzcompany.supabase.co',
  'public-anon-key',
)

const Container = (props) => {
  const { user } = Auth.useUser()
  if (user)
    return (
      <>
        <Text>Signed in: {user.email}</Text>
        <Button block onClick={() => props.supabaseClient.auth.signOut()}>
          Sign out
        </Button>
      </>
    )
  return props.children
}

export default function Home() {
  return (
    <Auth.UserContextProvider supabaseClient={supabase}>
      <Container supabaseClient={supabase}>
        <Auth providers={['facebook', 'github']} supabaseClient={supabase} />
      </Container>
    </Auth.UserContextProvider>
  )
}

Roadmap

Some of these are a work in progress - we invite anyone to submit a feature request if there is something you would like to see.

General

  • [x] Button
  • [x] Typography
  • [x] Icon
  • [x] Image (work in progress)

Data Input

  • [x] Input
  • [x] InputNumber
  • [x] Select (custom select wip)
  • [x] Checkbox
  • [x] Radio
  • [x] Toggle
  • [ ] Upload
  • [ ] Slider
  • [ ] Date picker
  • [ ] Time picker
  • [ ] Form

Layout

  • [ ] ~~Layout~~
  • [ ] ~~Grid (Flex)~~
  • [x] Divider

Display

  • [x] Card
  • [ ] Avatar
  • [x] Accordion
  • [x] Alert
  • [x] Badge
  • [x] Menu
  • [ ] Tooltips
  • [ ] Tables
  • [ ] Code block

Navigation

  • [x] Tabs
  • [ ] Breadcrumb
  • [x] Dropdown
  • [x] Menu
  • [ ] Page Header
  • [ ] Sidebar
  • [ ] Flyout menu
  • [ ] Steps

Overlay

  • [x] Modal
  • [x] Context Menu
  • [x] Drawer / SidePanel
  • [ ] Toast messages / Notification
  • [ ] Progress
  • [ ] Feeds / Timeline

Utility

  • [x] Loading
  • [x] Transition (work in progress)

Misc

  • [x] Storybook docs
  • [ ] Theming (in progress)
  • [x] Supabase Auth Elements
  • [x] Documentation website

We would be keen to hear any feedback on this project.

Feel free to submit a question or idea here