No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.


  

CleanPlate

A headless React UI Framework

Installation

With NPM:

npm install cleanplate

With Yarn:

yarn add cleanplate

Usage

All components can be consumed by import using their respective names from cleanplate package.

Initial Setup

Import the CSS Reset and minimal cleanplate styles at top most level or root level.

import "cleanplate/dist/index.css";

Button

import { Button } from "cleanplate"; <Button variant="primary" onClick={() => {}}>Save</Button> <Button variant="secondary" onClick={() => {}}>Save</Button> <Button variant="nude" onClick={() => {}}>Save</Button> <Button variant="special" onClick={() => {}}>Save</Button>

Typography

import { Typography } from "cleanplate"; <Typography variant="h1">Hello World!</Typography> <Typography variant="h2">Hello World!</Typography> <Typography variant="h3">Hello World!</Typography> <Typography variant="h4">Hello World!</Typography> <Typography variant="h5">Hello World!</Typography> <Typography variant="h6">Hello World!</Typography> <Typography variant="p">Hello World!</Typography> <Typography variant="small">Hello World!</Typography>

Badge

import { Badge } from "cleanplate"; <Badge label="New" />

Form Controls

import { FormControl } from "cleanplate"; <FormControl.Input name="email" onChange={(e) => handleChange(e)} value={values.email} /> <FormControl.TextArea name="bio" onChange={(e) => handleChange(e)} value={values.bio} /> <FormControl.Select name="bio" onChange={(e) => handleChange(e)} options={ [ { label: "A", value: "a", }, { label: "B", value: "b", }, ] } />

Icon

import { Icon } from "cleanplate"; <Icon name="settings" size="small" color="balck">

View all the available icon names from Google Material Icons.