FloatingButton
Hovering button with gradient background
(code example)
tip
This component support margin, background, color modifiers.
Usageβ
Live Editor
<FloatingButton visible={isVisible} button={{label: 'Approve', onPress: () => console.log('approved')}}}/>
Result
Loading...
APIβ
bottomMarginβ
The bottom margin of the button, or secondary button if passed
number
buttonβ
Props for the Button component
ButtonProps
buttonLayoutβ
Button layout direction: vertical or horizontal
FloatingButtonLayouts
durationβ
The duration of the button's animations (show/hide)
number
fullWidthβ
Relevant to vertical layout onlyβ
Whether the buttons get the container's full with
boolean
hideBackgroundOverlayβ
Whether to show background overlay
boolean
secondaryButtonβ
Props for the secondary Button component
ButtonProps
testIDβ
Use testID.button
for the main button or testID.secondaryButton
for the secondaryβ
The test id for e2e tests
string
visibleβ
Whether the component is visible
boolean
withoutAnimationβ
Whether to show/hide the button without animation
boolean