micro-frontend-react-ui
TypeScript icon, indicating that this package has built-in type declarations

1.0.22 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i micro-frontend-react-ui

Weekly Downloads

2

Version

1.0.22

License

MIT

Unpacked Size

82.2 kB

Total Files

57

Last publish

Collaborators

  • roychen3