0.1.5 • Published 10 months ago
leafer-react v0.1.5
Leafer-react
A React components library based on leafer-ui 中文
Setup
You should install the package first
npm install leafer-reactGet Started
Use it like react component
import { LeaferApp, Frame, Rect } from 'leafer-react';
function MyLeaferApp () {
return (
<LeaferApp>
<Frame fill="#f5f5f5">
<Rect width={375} height={667} fill="red" />
</Frame>
</LeaferApp>
)
}
export MyLeaferApp;More Examples
View component exampltes in useing storybook, you should clone the project from github first leafer-react
Into the project directory
cd leafer-reactInstall the package
pnpm installAnd execute the following command
pnpm run storybookMore features are coming🚧...
For more information, see the leafer-react.