Serhii
Serhii
PD🧩 Plasmo Developers
Created by Daluxe on 11/2/2023 in #👟framework
How to use shadcn-ui stylings in content script?
OK, I think I found how to fix that for dynamic content like sheet or popover. Since shadcn uses radix for that you need to go to radix documentation. The problem is that the dynamic component is not mounted inside of shadow dom, but it's mounted in the body. Here is how you can fix it https://www.radix-ui.com/primitives/docs/components/dialog#custom-portal-container for sheet component.
27 replies
PD🧩 Plasmo Developers
Created by gehrig. on 8/24/2023 in #🔰newbie
How to use plasmo with a side panel?
Hey folks, As far as I understood you want to open sidepanel on extension icon click. This is the official doc: https://developer.chrome.com/docs/extensions/reference/api/sidePanel Also, I've added following to my background script: chrome.sidePanel .setPanelBehavior({ openPanelOnActionClick: true }) .catch((error) => console.error(error)); Oh, and important point, you shouldn't have popup.html file, otherwise it won't work
12 replies