Skip to main content

Icon Button

๐Ÿ’ฌ Feedback

Import

import { IconButton } from "@react-native-material/core";

Usage

Props

icon

The element to render as the icon.

Type: React.ReactNode | ((props: { color: string; size: number }) => React.ReactNode | null) | null;

Optional: Yes


color

The color of the icon and the press effect.

Type: PaletteColor;

Default: "onBackground"

Optional: Yes


contentContainerStyle

The style of the icon's container view.

Type: PressableProps["style"];

Optional: Yes


...ViewProps, ...PressableProps, ...PressableProps