3.0.9 • Published 2 years ago
@berlitz/floating-action-button v3.0.9
Floating Action Button
Add a floating action button to your site, handles any custom onclick event when pressed.
Installation
yarn add @berlitz/floating-action-button
Props
Argument | Type | Required | Default | Example |
---|---|---|---|---|
as | string | "button" | accepts 'a', 'button' | |
href | string | |||
to | string | |||
onClick | function | () => alert('click') | ||
text | string | ✅ | ||
isHidden | bool | false |
Usage
import FloatingActionButton from '@berlitz/floating-action-button'
const MyApp = () => (
<FloatingActionButton onClick={() => alert('click')} text="Example Button" />
)
When to use this component
- Scroll to top
- Scroll to call to action
- Redirect to forms
3.0.10-test.25
2 years ago
3.0.9
3 years ago
3.0.8
3 years ago
3.0.7
3 years ago
3.0.6
3 years ago
3.0.1-alpha.63
3 years ago
3.0.5
3 years ago
3.0.4
3 years ago
3.0.3
3 years ago
3.0.2
3 years ago
3.0.1
3 years ago
3.0.0
4 years ago
2.2.2
5 years ago
2.2.1
5 years ago
2.2.0
5 years ago
2.1.6
5 years ago
2.1.5
5 years ago
2.1.4
5 years ago
2.1.3
5 years ago
2.1.2
5 years ago
2.1.1
5 years ago
2.1.0
5 years ago
2.0.7
5 years ago
2.0.6
5 years ago
2.0.5
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
2.0.0-alpha.0
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago