Skip to content
API reference

components/icon-button

Import
import * as api from "@fungi.computer/caps/components/icon-button";
Kind Export Description
type alias IconButtonIconSize Supported IconButton glyph sizes.
type alias IconButtonProps Props accepted by IconButton.
constant IconButton A compact button for an icon control with an accessible name supplied by the caller.

IconButtonIconSizetype alias

Section titled “IconButtonIconSize”
Signature
type IconButtonIconSize = "xs" | "sm" | "md" | "lg";

Supported IconButton glyph sizes.


IconButtonPropstype alias

Section titled “IconButtonProps”
Signature
type IconButtonProps = object & Omit<ButtonProps, "children" | "size">;

Props accepted by IconButton.

Name Type
aria-label string
active? boolean
icon ReactNode
iconSize? IconButtonIconSize
reveal? boolean
size? ButtonProps["size"] | "responsive"
tone? "default" | "destructive"

IconButtonconstant

Section titled “IconButton”
Signature
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.