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
"use client";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
import type { ComponentProps, ReactNode } from "react";
/** Icon-only transcript toolbar button; the label is the accessible name and the tooltip. */
export function IconActionButton({
label,
children,
...props
}: ComponentProps<"button"> & { label: string; children: ReactNode }) {
return (
<Tooltip>
<TooltipTrigger asChild={true}>
<button
type="button"
className="inline-flex items-center justify-center rounded-full p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
aria-label={label}
{...props}
>
{children}
</button>
</TooltipTrigger>
<TooltipContent side="top" className="tooltip-compact">
{label}
</TooltipContent>
</Tooltip>
);
}