Button
Button component that is based on react native Button
component.
Import
import { Button } from 'react-native-ficus-ui';
Usage
Default
EDITABLE EXAMPLE
Button sizes
EDITABLE EXAMPLE
Round
EDITABLE EXAMPLE
Variants
EDITABLE EXAMPLE
Prefix and suffix
EDITABLE EXAMPLE
Props
Extends every Box
props and react native Button
component.
https://reactnative.dev/docs/button#props (opens in a new tab)
colorScheme
The colorScheme property, will define background color and overlay color.
Type | Required | Default |
---|---|---|
string | Yes | blue |
size
The size property, will define the size of the button.
Type | Required | Default |
---|---|---|
string | Yes | 'md' |
full
The full property, if true, then the button takes all the width.
Type | Required | Default |
---|---|---|
boolean | No | false |
isRound
The isRound property, if true, then the button will have a borderRadius
fully round.
Type | Required | Default |
---|---|---|
boolean | No | false |