0.0.35-test.20240306 • Published 2 months ago

@horizon-msft/rhwcw v0.0.35-test.20240306

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

@horizon-msft/rhwcw

React Wrappers for Horizon Web Compoennts

This package is a collection of react wrappers for the @horizon-msft/web-components package.

Under the hood these wrappers use the @microsoft/fast-react-wrapper package, which does the heavy lifting of converting web components into react components.

Installation

npm i @horizon-msft/rfwcw --save-dev

or

yarn add -D @horizon-msft/rfwcw

Usage

Import the component into your react project and use just like any react component:

import { Badge } from "@horizon-msft/rfwcw"

const PageElement = () => (
    <Badge shape="rounded" size="large" color="danger"/>
)

Applying styles using the fluent theme methods

Also available for Angular Fluent Web Component Wrappers are the methods required for enabling styles and themes. In the root of your application styling can be enabled like this:

import { DesignToken, fabricLightTheme, setTheme } from "@horizon-msft/afwcw";

DesignToken.registerDefaultStyleTarget();

setTheme(fabricLightTheme);

// or use the base fluent theme
// setTheme(webLightTheme);

Here is a Stackblitz component implementation - Stackblitz

Current Components:

  • Accordion (placeholder)
0.0.31

3 months ago

0.0.32

3 months ago

0.0.33

3 months ago

0.0.23

3 months ago

0.0.24

3 months ago

0.0.25

3 months ago

0.0.26

3 months ago

0.0.27

3 months ago

0.0.28

3 months ago

0.0.29

3 months ago

0.0.22

3 months ago

0.0.20

4 months ago

0.0.21

4 months ago

0.0.18

4 months ago

0.0.14

4 months ago

0.0.16

4 months ago

0.0.12

5 months ago

0.0.11

5 months ago

0.0.9

7 months ago

0.0.7

7 months ago

0.0.5

7 months ago