import clsx from "clsx"; import { type Component, createSignal } from "solid-js"; import UKIcon from "../icon/UKIcon"; import type { IconButtonColor } from "./lib/color"; import type { IconButtonShape } from "./lib/shape"; import type { IconButtonSize } from "./lib/size"; import type { IconButtonWidth } from "./lib/width"; import styles from "./UKIconButton.module.scss"; // TODO: implement smooth animations as is done with UKButton const UKIconButton: Component<{ icon: string; iconType?: "icon" | "image"; alt: string; onClick: (event: MouseEvent & { currentTarget: HTMLButtonElement; target: Element }) => void; width?: IconButtonWidth; shape?: IconButtonShape; color?: IconButtonColor; size?: IconButtonSize; class?: string; iconClass?: string; type?: "normal" | "toggle"; disabled?: boolean; }> = (props) => { const [isSelected, setIsSelected] = createSignal(false); return ( ); }; export default UKIconButton;