@dear-ui/all
v4.0.0-alpha1
Published
Base on React's UI lib. Make frontend's dev simpler and faster.
Downloads
48
Readme
@dear-ui
Base on React's UI lib. Make frontend's dev simpler and faster.
Support
- Client side render React App
- Server side render React App (like Gatsby, Next)
Getting started
yarn add @dear-ui/all @mini-code/base-func unistore
Use in project
import React from 'react';
import ReactDOM from 'react-dom';
import { ShowModal, CloseModal } from '@dear-ui/all/core/modal';
import { Button } from '@dear-ui/all/core/button';
const handleClick = (e) => {
const ModalID = ShowModal({
title: 'Overlay',
elem: e,
children: (
<div>Content</div>
)
})
// CloseModal(ModalID)
}
const App = () => (
<Button onClick={handleClick}>
Overlay
</Button>
)
ReactDOM.render(<App />, document.querySelector('#Main'));
Local dev
git clone https://github.com/minimal-studio/dear-ui
cd dear-ui
yarn
yarn docz:dev