@halohubio/graphql_tailwind_base
v0.1.11
Published
[![NPM](https://img.shields.io/npm/v/@halohubio/playground.svg)](https://www.npmjs.com/package/@dlarroder/playground) [![Downloads](https://img.shields.io/npm/dt/@halohubio/playground.svg)](https://www.npmjs.com/package/@dlarroder/playground)
Downloads
6
Readme
graphql_tailwind_base
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:
- Import stylesheets manually
import '@halohubio/graphql_tailwind_base/dist/styles.css'
- 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} />
}