TopBarIconButton
Navigation & Chrome

TopBarIconButton

Place an icon action with an optional indicator inside a TopBar.

TopBarIconButton renders an icon action inside a TopBar. Supply an accessible name with aria-label.

Import

TSX
import { TopBarIconButton } from "@solarius/onset";

Props

TopBarIconButtonProps props
PropTypeDefaultDescription
iconReactNode—Icon inside a 24×24px button. The application supplies icon dimensions.
dotboolean—Displays a decorative 5px warning dot at the top-right corner. No accessible text is added.
aria-labelstring—Required accessible label for the icon-only button.

Example

TopBarIconButton