FloatingButton
A floating action button component for primary actions.
FloatingButton
A prominent floating action button for primary actions that can be positioned at the bottom of the screen.
Import
Features
- Fixed positioning at the bottom of the screen
- Customizable icon and label
- Navigation support via href
- Animation options for visibility
- Support for custom actions
Props
| Prop | Type | Default | Description | 
|---|---|---|---|
| icon | IconName | — | Icon to display in the button | 
| label | string | — | Text label for the button | 
| href | string | — | Navigation destination | 
| onPress | () => void | — | Custom press handler | 
| animated | boolean | false | Whether to animate visibility | 
| visible | boolean | true | Controls visibility when animated | 
| position | 'bottom-left' | 'bottom-right' | 'bottom-center' | 'bottom-right' | Button position on screen | 
| className | string | — | Additional classes for styling |