feat: allow enable/disable code block copy button (#331)

* refactor: move codeblock to a partial component

* feat: add flags for code block copy button

* allow disable code copy button completely
* allow make the copy button always visible

* chore: run build:css
This commit is contained in:
Xin
2024-03-28 08:32:51 +01:00
committed by GitHub
parent 741a640b1a
commit d8351aa432
9 changed files with 76 additions and 59 deletions

View File

@ -87,7 +87,6 @@
"before:hx-transition-transform",
"before:hx-w-px",
"chroma",
"code-block",
"code-copy-btn",
"content",
"contrast-more:dark:hover:hx-border-gray-50",
@ -211,6 +210,9 @@
"hamburger-menu",
"hextra-card",
"hextra-cards",
"hextra-code-block",
"hextra-code-copy-btn",
"hextra-code-copy-btn-container",
"hextra-feature-card",
"hextra-filetree",
"hextra-filetree-folder",