JSPM

content-ui-inject

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q38004F
  • License MIT

Boost content-ui injection for better extension developer experience.

Package Exports

  • content-ui-inject

Readme

content-ui-inject

npm version npm downloads bundle JSDocs License

Boost content-ui injection for better extension developer experience.

Quick start

  1. Inject shadowRoot to content-ui
import { createShadowRootUI } from 'content-ui-injector'
const app = await createShadowRootUI({
  name: 'react-boilerplate',

  position: 'inline',
  injectAnchor: 'body',
  injectMode: 'before',
  styleOptions: {
    textContent: tailwindcssOutput,
  },
  onMount: (uiContainer) => {
    createRoot(uiContainer).render(<App />)
  },
})

app.mount()

License

MIT License © 2023-PRESENT leizhenpeng