dlarroder / playground

My React component library playground

Home Page:https://playground.dalelarroder.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

playground

NPM Downloads

playground 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 playground

To use playground components, all you need to do is install the @dlarroder/playground package

$ yarn add @dlarroder/playground

# or

$ npm i @dlarroder/playground

Usage

To start using the components, please follow these steps:

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

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

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

Looking for the documentation?

You can visit the full list of components here -- https://playground.dalelarroder.com/

About

My React component library playground

https://playground.dalelarroder.com

License:MIT License


Languages

Language:TypeScript 99.0%Language:Shell 0.8%Language:CSS 0.2%