default
default(
__namedParameters):Element
Defined in: src/components/AppbarIconButton/AppbarIconButton.tsx:36
A reusable, icon-only button for use in Navbar and Toolbar. It accepts all
standard HTML button attributes except for children.
The alt prop is required for the icon’s alternative text.
The button’s accessible name should be provided via the standard
aria-label attribute.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
Pick<AppbarIconButtonProps, "ref"> & _ReadonlyObjectDeep<Omit<AppbarIconButtonProps, "ref">> |
Returns
Section titled “Returns”Element
Example
Section titled “Example”<AppbarButton alt="PDF Document" aria-label="Open Preview" iconSrc={src} onClick={openPreview}/>