components/icon-button
@fungi.computer/caps / components/icon-button
components/icon-button
Section titled “components/icon-button”Type Aliases
Section titled “Type Aliases”IconButtonIconSize
Section titled “IconButtonIconSize”IconButtonIconSize =
"xs"|"sm"|"md"|"lg"
Supported IconButton glyph sizes.
IconButtonProps
Section titled “IconButtonProps”IconButtonProps =
object&Omit<ButtonProps,"children"|"size">>
Props accepted by IconButton.
Type Declaration
Section titled “Type Declaration”aria-label
Section titled “aria-label”aria-label:
string
active?
Section titled “active?”
optionalactive?:boolean
icon:
ReactNode
iconSize?
Section titled “iconSize?”
optionaliconSize?:IconButtonIconSize
reveal?
Section titled “reveal?”
optionalreveal?:boolean
optionalsize?:ButtonProps["size"] |"responsive"
optionaltone?:"default"|"destructive"
Variables
Section titled “Variables”IconButton
Section titled “IconButton”
constIconButton:ForwardRefExoticComponent<object&Omit<ButtonProps,"children"|"size"> > &RefAttributes<HTMLButtonElement>>>>
A compact button for an icon control with an accessible name supplied by the caller.