Skip to content

Inject Content Script UI without Shadow Dom? #954

Closed Answered by maybebansky
maybebansky asked this question in Q&A
Discussion options

You must be logged in to vote

https://docs.plasmo.com/framework/content-scripts-ui/life-cycle#custom-root-container

export const getRootContainer = () => {
  const elem = document.createElement("div")
  document.body.appendChild(elem)
  return elem
}

const CustomButton = () => {
  return <button>findme</button>
}

export default CustomButton

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maybebansky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant