Skip to content

roychen3/micro-frontend-react-ui

Repository files navigation

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>
  );
}

License

LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published