Best Component to Swizzle to add LLMs Copy Page button #11445
-
I'm currently working on expanding the functionality for the llms-txt plugin I've been working on. I'm trying to replicate a style that resembles closely to Mintlfy's version, example can be seen here. A alpha version of this feature can already been seen on our site: https://developer.signalwire.com/ As of right now, we have created a separate theme a user can install to get the button to show on pages with corresponding generated md files. The theme wraps the However, i'm not the biggest fan of the header either being wrapped when the button is too close, or it potentially overlapping with the header. I personally would like to swap the component to rendering under the Header in mobile view, like how mintlify does. Any pointers on the best way to accomplish this? Is there a better component to be wrapping/ejecting to get the desired behavior? Due to how the Mintlify Desktop view: ![]() Mintlify Mobile view: ![]() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
For now I decided for the copybutton to only work with the docs plugin (will look into adding it for blogs later, and i think pages will always be manually added by user, will look into this more) The doc component i swizzled ended up being the doc breadcrumbs. Swizzling this component seems to provide one of the cleanest looks while having a minimum amount of layout shifting (depending if the button is present or not). Leaving the plugin & theme in alpha for now in case a better solutions presents itself. |
Beta Was this translation helpful? Give feedback.
Great that you found a solution that please you
We can't really recommend any "best component to swizzle" because this is subjective and related to the design you choose. At best, we can only improve how we organize our components so that it makes it easier to swizzle and customize.