Skip to content
/ reas Public
forked from ariakit/ariakit

Minimalist and highly composable building blocks for your next React app

License

Notifications You must be signed in to change notification settings

lepepsi/reas

 
 

Repository files navigation









reas








reas

Generated with nod NPM version Build Status Coverage Status

Minimalist and highly composable building blocks built on top of React and styled-components.

Install

Yarn:

yarn add reas

npm:

npm install --save reas

Examples

Simple Popover


See and edit full source code on CodeSandbox

import React from "react";
import { render } from "react-dom";
import { InlineBlock, Button, Popover } from "reas";

const App = () => (
  <Popover.State>
    {popover => (
      <InlineBlock relative>
        <Button as={Popover.Toggle} {...popover}>Toggle</Button>
        <Popover {...popover}>
          <Popover.Arrow />
          Popover
        </Popover>
      </InlineBlock>
    )}
  </Popover.State>
);

render(<App />, document.getElementById("root"));

License

MIT © Diego Haz

About

Minimalist and highly composable building blocks for your next React app

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%