Files
ersatztv/design-system/components/forms/IconButton.d.ts
T
2026-07-02 07:37:00 +02:00

21 lines
609 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import * as React from "react";
export interface IconButtonProps {
/** A 1618px stroke icon element. */
children?: React.ReactNode;
size?: "sm" | "md";
variant?: "ghost" | "solid";
/** Persistent pressed/selected state (e.g. active view toggle). */
active?: boolean;
disabled?: boolean;
/** Tooltip + aria-label — always provide one. */
title?: string;
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
style?: React.CSSProperties;
}
/**
* Square icon-only button for dense row actions and toolbars.
*/
export function IconButton(props: IconButtonProps): JSX.Element;