1.0.10 • Published 3 years ago

react-fixed-bottom v1.0.10

Weekly downloads
1,315
License
MIT
Repository
github
Last release
3 years ago

react-fixed-bottom

React component to make fixed:bottom styles usable in Safari mobile.

Features

  • Set the CSS properties of the wrapped children to:
{
  position: 'fixed';
  bottom: offset;
}
  • Safari mobile user agent detection
  • Reacts to Safari mobile overflow bar display. If the bar hides a fixed bottom element, it is repositioned so it becomes visible in its expected position.

API

The component accepts two props:

  • children a single React element to reposition when the Safari overflow bar appears.
  • offset expected offset in px from the bottom of the viewport.

Contributing

Fork the main repo and submit PRs

1.0.9

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago