IconButton
IconButtons are buttons that contain an icon.
Import
import { IconButton } from '@nomada-sh/react-native-eyecandy';
Example
Props
ButtonBase Props
Inherits ButtonBase Props
Has the following default props:
| Prop | Default |
|---|---|
| variant | 'rounded' |
icon
| Type |
|---|
| Icon |
size
This sets the width and height of the container view.
| Type | Default |
|---|---|
| number | 56 |
iconSize
This sets the width and height of the icon. When not set, the icon will be automatically sized according to the container view.
| Type |
|---|
| number |
iconColor
The icon color will be the foreground color set with the color prop unless explicitly set.
| Type |
|---|
| string |
iconStyle
| Type |
|---|
| View Style |