0.1.20 • Published 3 years ago
reaktus v0.1.20
Reaktus
A component library for React, by Caktus Group 🌵
🚀 Use
- In your project, install
reaktus
usingnpm
.react
,react-dom
andstyled-components
are peer dependencies.
npm i reaktus styled-components
- 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
- Clone the repo:
git clone https://github.com/caktus/reaktus.git
- Install dependencies:
cd reaktus
npm i
- Start
styleguidist
server:
npm run start
- Open browser to
localhost:6060
🔨 Test
- Clone the repo:
git clone https://github.com/caktus/reaktus.git
- Install dependencies:
cd reaktus
npm i
- Run tests:
npm run test
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.17
3 years ago
0.1.15
3 years ago
0.1.16
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.12
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.4
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago