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: Color;

Default: "on-background"

Optional: Yes


contentContainerStyle

The style of the icon's container view.

Type: PressableProps["style"];

Optional: Yes


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