BaseIconButton

The BaseIconButton component that provides a customizable icon button with ripple effect and theming support.

Usage

Props

PropTypeDefaultDescription
IconComponentReact.ElementTypeundefinedThe icon component to render (automatically themed with size/color).
iconReactNodeundefinedA pre-rendered icon element (e.g. from external icon libraries).
sizenumbertheme.iconSizes.mdThe size of the icon (applied to IconComponent).
colorstringtheme.colors.textThe color of the icon (applied to IconComponent).
onTap() => voidrequiredThe function to call when the button is tapped.
styleStyleProp<ViewStyle>undefinedOptional custom styles for the icon container.

On this page