Skip to content

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.

Parameter Type
__namedParameters Pick<AppbarIconButtonProps, "ref"> & _ReadonlyObjectDeep<Omit<AppbarIconButtonProps, "ref">>

Element

<AppbarButton
alt="PDF Document"
aria-label="Open Preview"
iconSrc={src}
onClick={openPreview}
/>