micro-frontend-react-ui
v1.0.22
Published
This react ui lib is for [micro-fronted](https://github.com/roychen3/micro-frontends) app.
Downloads
5
Readme
micro-frontend-react-ui
This react ui lib is for micro-fronted app.
Installation
node v16.15.0
npm i micro-frontend-react-ui
Usage
Button
import { Button } from 'micro-frontend-react-ui';
function Component() {
return (
<Button
primary // boolean | undefined;
>
Click Me
</Button>
);
}
StyleProvider
import { StyleProvider, Button } from 'micro-frontend-react-ui';
function Component() {
return (
<StyleProvider
theme // { colors: { primary: string } } | undefined
nonce // string | undefined
stylisPlugins // Array<StylisPlugin> | undefined
namespace // string | undefined
container // Node | undefined
speedy // boolean | undefined
prepend // boolean | undefined
insertionPoint // HTMLElement | undefined
children // ReactNode | undefined
>
<Button>Click Me</Button>
</StyleProvider>
);
}