Back to docs
Component

Floating Action Button

Floating button with spring interactions and gradient fill.

Install

npx shadcn@latest add @native-bits/floating-action-button

Dependencies

react-native-reanimatedreact-native-linear-gradient
Try in Sandbox
actionsnavigationmobile

Props

PropTypeDefaultDescription
iconReactNode-Displayed icon
onPress() => void-Press callback
sizenumber56Diameter in px

Usage

```tsx
import { floating-action-button } from '@/components/native-bits/floating-action-button'

<FloatingActionButton icon={<PlusIcon />} onPress={openComposer} />
```

Source code

Loading...