@voidpkg/react-ui
TypeScript icon, indicating that this package has built-in type declarations

1.2.8 • Public • Published

Welcome to VoidUI

Looking for the documentation?

https://voiddevs.org/ui

Installing VoidUI

$ yarn add @voidpkg/react-ui
# or
$ npm install --save @voidpkg/react-ui

Getting set up

To start using the components, please follow these steps:

  1. Add the content option to your tailwind.config.js file:
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./node_modules/@voidpkg/react-ui/**/*.{js,jsx,ts,tsx}",
    ... // your other content
  ],
  ... // your other config
}
  1. Wrap your application in a Provider
import { Provider } from "@voidpkg/react-ui"

const App = ({ children }) => (
  <Provider>
    {children}
  </Provider>
)
  1. Now you can start using components like so!:
import { Button } from "@voidpkg/react-ui";

const Index = () => <Button>
  ✨ Hello, world!
</Button>

Components

Accordion, Button, CodeMockup, ContextMenu, Dropdown, Highlight, Hover, HoverCard, Modal, Video, Pointer, Range, Ripple, Spinner, Switch, Tabs, Tooltip

Hooks

useSWR, useBrowser, useToast

Package Sidebar

Install

npm i @voidpkg/react-ui

Weekly Downloads

16

Version

1.2.8

License

MIT

Unpacked Size

77.3 kB

Total Files

4

Last publish

Collaborators

  • clqu