Skip to content

components/icon-button

@fungi.computer/caps


@fungi.computer/caps / components/icon-button

IconButtonIconSize = "xs" | "sm" | "md" | "lg"

Supported IconButton glyph sizes.


IconButtonProps = object & Omit<ButtonProps, "children" | "size">>

Props accepted by IconButton.

aria-label: string

optional active?: boolean

icon: ReactNode

optional iconSize?: IconButtonIconSize

optional reveal?: boolean

optional size?: ButtonProps["size"] | "responsive"

optional tone?: "default" | "destructive"

const IconButton: ForwardRefExoticComponent<object & Omit<ButtonProps, "children" | "size"> > & RefAttributes<HTMLButtonElement>>>>

A compact button for an icon control with an accessible name supplied by the caller.