{title && (
- {title}
+ {parse(parseMarkdownInlineCode(title))}
)}
{parse(out)}
diff --git a/docs-ui/src/components/CodeBlock/index.tsx b/docs-ui/src/components/CodeBlock/index.tsx
index 4c0fe72960..96fdb6bea5 100644
--- a/docs-ui/src/components/CodeBlock/index.tsx
+++ b/docs-ui/src/components/CodeBlock/index.tsx
@@ -1,4 +1,5 @@
import type { BundledLanguage } from 'shiki';
+import { transformerNotationDiff } from '@shikijs/transformers';
import { codeToHtml } from 'shiki';
import { CodeBlockClient } from './client';
@@ -15,6 +16,7 @@ export async function CodeBlock({ lang = 'tsx', title, code }: CodeBlockProps) {
light: 'min-light',
dark: 'min-dark',
},
+ transformers: [transformerNotationDiff({ matchAlgorithm: 'v3' })],
});
return
;
diff --git a/docs-ui/src/components/CodeBlock/styles.module.css b/docs-ui/src/components/CodeBlock/styles.module.css
index 767982a582..d786140482 100644
--- a/docs-ui/src/components/CodeBlock/styles.module.css
+++ b/docs-ui/src/components/CodeBlock/styles.module.css
@@ -16,8 +16,18 @@
.title {
border-bottom: 1px solid var(--border);
padding: 12px 20px;
- font-size: 0.875rem;
+ font-size: 0.8125rem;
+ color: var(--primary);
+ font-family: var(--font-regular);
+ font-weight: var(--font-weight-bold);
+}
+
+.title code {
+ background-color: var(--surface-1);
+ padding: 0.2rem 0.375rem;
+ border-radius: 0.25rem;
color: var(--secondary);
+ font-size: 0.8125rem;
}
.code {
diff --git a/docs-ui/src/components/CustomTheme/customTheme.tsx b/docs-ui/src/components/CustomTheme/customTheme.tsx
index c70d59173a..ae765d7d88 100644
--- a/docs-ui/src/components/CustomTheme/customTheme.tsx
+++ b/docs-ui/src/components/CustomTheme/customTheme.tsx
@@ -6,9 +6,9 @@ import { sass } from '@codemirror/lang-sass';
import styles from './styles.module.css';
import { usePlayground } from '@/utils/playground-context';
import { AnimatePresence, motion } from 'motion/react';
-import { Icon } from '../../../../packages/ui';
import { createTheme } from '@uiw/codemirror-themes';
import { tags as t } from '@lezer/highlight';
+import { RiArrowDownSLine } from '@remixicon/react';
const defaultTheme = `:root {
--bui-bg-solid: #000;
@@ -125,7 +125,12 @@ export const CustomTheme = () => {
className={styles.buttonClose}
onClick={() => setOpen(!open)}
>
-
+
diff --git a/docs-ui/src/components/IconLibrary/IconLibrary.tsx b/docs-ui/src/components/IconLibrary/IconLibrary.tsx
deleted file mode 100644
index bad51e62bf..0000000000
--- a/docs-ui/src/components/IconLibrary/IconLibrary.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-'use client';
-
-import { Text, Icon, icons } from '../../../../packages/ui';
-import type { IconNames } from '../../../../packages/ui';
-import styles from './styles.module.css';
-
-export const IconLibrary = () => {
- const list = Object.keys(icons);
-
- return (
-