A simple UI library for React web projects to use in your app.
Installation
To get started just install the packege with either yarn or npm:
yarn:
yarn add react-horcrux
npm:
npm install react-horcrux
Usage
We've tried to make usage as easy as possible, so most all (non-advanced) components are used the exact way you would use its default version in React. For example, the Button
takes an onClick
prop and the Input
takes any prop you would normally add to an input
component.
Example:
import { Button, Input } from 'react-horcrux';
export default YourComponent function({...props}) {
return(
<form>
<Input
name="house"
maxLength="222"
placeholder="Your Hogwarts House"
type="text"
required
/>
<Button
type="submit"
onClick={doSomething}
>
submit form
</Button>
</form>
);
}