`
- : ''
- }
- ${
- separated
- ? vertical
- ? '
'
- : '
'
- : ''
- }
+ ${columns ? `
` : ''}
+ ${separated ? (vertical ? '
' : '
') : ''}
${example}
@@ -75,32 +55,17 @@ const previewHtml = (
`;
}
- example = example
- .replace(/a href="[^"]+"/g, 'a href="javascript:void(0)"')
- .replace(/action="[^"]+"/g, 'action="javascript:void(0)"');
+ example = example.replace(/a href="[^"]+"/g, 'a href="javascript:void(0)"').replace(/action="[^"]+"/g, 'action="javascript:void(0)"');
return `
Example
- ${
- plugins
- ? plugins.map(
- (plugin) =>
- ` `
- )
- : ''
- }
+ ${plugins ? plugins.map((plugin) => ` `) : ''}
-
+
${content}
- ${
- vendors
- ? ``
- : ''
- }
+ ${vendors ? `` : ''}
`;
@@ -141,9 +106,13 @@ export default function Example({
return (
- ) : null;
+ ) : ;
}
function useActiveItem(itemIds: (string | undefined)[]) {
diff --git a/site/components/TablerSponsorsBanner.tsx b/site/components/TablerSponsorsBanner.tsx
index 361b895598c6670f1f7908aa38fa6fdc8fceceb9..3b90000d5e0f639138c8ba5b431f8a8c91092a39 100644
--- a/site/components/TablerSponsorsBanner.tsx
+++ b/site/components/TablerSponsorsBanner.tsx
@@ -2,7 +2,11 @@ import { sponsorsUrl } from '@/config/site';
import clsx from 'clsx';
import Icon from './Icon';
-export default function TablerSponsorsBanner({ className }) {
+export default function TablerSponsorsBanner({
+ className
+ }: {
+ className?: string;
+}) {
return
-
+
);
}
diff --git a/site/components/TOC.tsx b/site/components/TOC.tsx
index d9f2359d9a52aa36cbf490ea02327e533bc3ff7d..0706c6a8f9ecd2d1d4f4c2e1995113ff3dd77157 100644
--- a/site/components/TOC.tsx
+++ b/site/components/TOC.tsx
@@ -31,7 +31,7 @@ export default function TOC({ toc }: TocProps) {
return mounted ? (