Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
import type { ReactNode } from "react";
import { Settings01Icon } from "@/lib/hugeicons-derived";
import { HugeiconsIcon } from "@hugeicons/react";
import { cn } from "@/lib/utils";
export function AdvancedDisclosure({
open,
onOpenChange,
description = (
<>
Load-time tuning. Changes apply on the next load; Reapply reloads the
current model.
</>
),
children,
}: {
open: boolean;
onOpenChange: (open: boolean) => void;
description?: ReactNode;
children: ReactNode;
}) {
return (
<div className="mt-2 flex flex-col gap-3 border-t border-border/60 pt-4 pb-4">
<button
type="button"
onClick={() => onOpenChange(!open)}
aria-expanded={open}
className="flex items-center gap-2 rounded-full px-3 py-1.5 text-left transition-colors hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
>
<HugeiconsIcon
icon={Settings01Icon}
className="size-3.5 shrink-0 text-muted-foreground"
/>
<span className="min-w-0 flex-1 text-ui-13 font-medium leading-[1.25] tracking-nav text-foreground">
Advanced
</span>
<HugeiconsIcon
icon={ChevronDownStandardIcon}
className={cn(
"size-4 shrink-0 text-muted-foreground transition-transform",
open && "rotate-180",
)}
/>
</button>
{open && (
<div className="flex flex-col gap-3">
<p className="text-ui-11 leading-snug text-muted-foreground">
{description}
</p>
{children}
</div>
)}
</div>
);
}