reaktus

0.1.20Β β€’Β PublicΒ β€’Β Published

Reaktus

A component library for React, by Caktus Group 🌡

πŸš€ Use

  1. In your project, install reaktus using npm. react, react-dom and styled-components are peer dependencies.
npm i reaktus styled-components
  1. Then import:
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
import { Button, POSITIVE, Input } from 'reaktus';

function MyForm() {
    const [email, setEmail] = useState('');
    const [password, setPassword] = useState('');

    return (
        <form>
            <Input type='email' value={email} onChange={e => setEmail(e.target.value)} label="Email" />
            <Input type='password' value={password} onChange={e => setPassword(e.target.value)} label="Password" />
            <Button variant={POSITIVE} onClick={() => alert('Not really logging in.')}>Log in!</Button>
        </form>
    )
}

ReactDOM.render(<MyForm />, document.getElementById('root'));

πŸ”₯ Develop

  1. Clone the repo:
git clone https://github.com/caktus/reaktus.git
  1. Install dependencies:
cd reaktus
npm i
  1. Start styleguidist server:
npm run start
  1. Open browser to localhost:6060

πŸ”¨ Test

  1. Clone the repo:
git clone https://github.com/caktus/reaktus.git
  1. Install dependencies:
cd reaktus
npm i
  1. Run tests:
npm run test

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.200latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.200
0.1.190
0.1.180
0.1.170
0.1.160
0.1.150
0.1.140
0.1.130
0.1.120
0.1.110
0.1.100
0.1.90
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i reaktus

Weekly Downloads

0

Version

0.1.20

License

ISC

Unpacked Size

9.53 MB

Total Files

14

Last publish

Collaborators

  • michael.ashton