@rhjs/fluent-web-components
TypeScript icon, indicating that this package has built-in type declarations

0.3.5 • Public • Published

@rhjs/fluent-web-components

fluent ui web component bindings for @rhjs

Usage

import { rh, reactivity } from '@rhjs/rh';
import {
  DesignSystemProvider,
  ensureFluentUILoaded,
  Button,
} from '@rhjs/fluent-web-components';

const App = () => {
  const count = reactivity.ref(1);
  return () => (
    <Button appearance="accent" onClick={() => count.value++}>
      {count}
    </Button>
  );
};

ensureFluentUILoaded()
  .then(() => {
    rh.mount(document.querySelector('#app'), App);
  })

License

MIT License.

/@rhjs/fluent-web-components/

    Package Sidebar

    Install

    npm i @rhjs/fluent-web-components

    Weekly Downloads

    0

    Version

    0.3.5

    License

    MIT

    Unpacked Size

    229 kB

    Total Files

    12

    Last publish

    Collaborators

    • luke_zhang