npm.io
0.1.11 • Published 2 years ago

@halohubio/graphql_tailwind_base

Licence
MIT
Version
0.1.11
Deps
0
Size
2.2 MB
Vulns
0
Weekly
0

graphql_tailwind_base

NPM Downloads

graphql_tailwind_base is a React component component library, as the name suggest, this will serve as my playground where I can show off some of the cool component ideas I have and will be available for the public to use via npm.

Installing graphql_tailwind_base

To use graphql_tailwind_base components, all you need to do is install the @halohubio/graphql_tailwind_base package

$ yarn add @halohubio/graphql_tailwind_base

# or

$ npm i @halohubio/graphql_tailwind_base

Usage

To start using the components, please follow these steps:

  1. Import stylesheets manually
import '@halohubio/graphql_tailwind_base/dist/styles.css'
  1. Now you can start using components like so
import { useState } from 'react'
import { Switch } from '@halohubio/graphql_tailwind_base'

function Example() {
  const [checked, setChecked] = useState(false)

  return <Switch checked={checked} onChange={setChecked} />
}