chore: remove docs/theme.client

This commit is contained in:
javayhu 2025-04-12 13:24:13 +08:00
parent c0f4721d49
commit 10c7646fb1
2 changed files with 0 additions and 26 deletions

View File

@ -1,25 +0,0 @@
'use client';
import { buttonVariants } from '@/components/ui/button';
import { cn } from '@/lib/utils';
import { type ReactElement, useState } from 'react';
export function WidthTrigger(): ReactElement {
const [enabled, setEnabled] = useState(false);
return (
<button
type="button"
className={cn(buttonVariants({ variant: 'secondary' }))}
onClick={() => {
setEnabled((prev) => !prev);
}}
>
{enabled ? <style>{`:root { --fd-layout-width: 1400px; }`}</style> : null}
Trigger Width:
<span className="ms-1.5 text-fd-muted-foreground">
{enabled ? '1400px' : 'default'}
</span>
</button>
);
}

View File

@ -128,7 +128,6 @@ export default async function DocPage({
);
},
...(await import('@/content/docs/components/tabs.client')),
...(await import('@/content/docs/theme.client')),
}}
includeFumadocsComponents={true}
/>