/** * @file Inspector icon button component for minimal icon-only actions */ import * as React from "react"; import styles from "./InspectorIconButton.module.css"; export type InspectorIconButtonProps = { /** Icon element to display */ icon: React.ReactNode; /** Size variant */ size?: "default" | "small"; /** Visual variant - ghost has no background */ variant?: "default" | "ghost"; /** Whether button is in active/pressed state */ active?: boolean; /** Accessible label for the button */ "aria-label": string; } & Omit, "children">; /** * A minimal icon button for inspector panels. * Does not include layout styling - layout should be controlled externally. */ export const InspectorIconButton = React.forwardRef( ({ icon, size = "default", variant = "default", active = false, className, disabled, ...props }, ref) => { const classes = [styles.button, className].filter(Boolean).join(" "); return ( ); }, ); InspectorIconButton.displayName = "InspectorIconButton";