@hawtio/react
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

Hawtio React

A Hawtio reimplementation based on TypeScript + React. This project reimplements the following Hawtio JS components in one project:

Install

NPM

npm i @hawtio/react

Yarn

yarn add @hawtio/react

Usage

// Required styles
import '@hawtio/react/dist/index.css'
import '@patternfly/react-core/dist/styles/base.css'

import { hawtio, Hawtio, registerPlugins } from '@hawtio/react'
import React from 'react'
import ReactDOM from 'react-dom/client'

// Bootstrap Hawtio
registerPlugins()
hawtio.bootstrap()

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
)
root.render(
  <React.StrictMode>
    <Hawtio />
  </React.StrictMode>
)

License

Hawtio React is licensed under the Apache 2.0 License.

Package Sidebar

Install

npm i @hawtio/react

Weekly Downloads

225

Version

1.2.3

License

Apache-2.0

Unpacked Size

4.13 MB

Total Files

9

Last publish

Collaborators

  • phantomjinx
  • gr.grzybek
  • astefanutti
  • tadayosi
  • gashcrumb
  • jamesnetherton