0.1.10 • Published 2 years ago

@caricati/rui v0.1.10

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

⛔️ Warning!

This library is not ready yet. Everything will be fine when version 1.0.0 is released.

RUI

This project was made in React to be lightweight and with few dependencies.

Install in your React project

First, you need to install by command line using npm or yarn:

npm install @caricati/rui --save

and then, install the <InstallRui /> in your root component:

import { InstallRui } from '@caricati/rui'
...
ReactDOM.render(
  <React.StrictMode>
    <InstallRui>
      <App />
    </InstallRui>
  </React.StrictMode>,
  document.getElementById('root'),
)

Use styled-components from rui

import { styled, useTheme } from '@caricati/rui'

const Container = styled.div`
  display: grid;
  grid-template-columns: 230px 1fr;
`

function Component() {
  const { color } = useTheme()
  ...
  return (
    <Container>
      <aside>Sidebar</aside>
      <div>Container</div>
    </Container>
  )
}
0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago