react-fixed-bottom
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.101,358latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.101,358
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i react-fixed-bottom

Weekly Downloads

1,358

Version

1.0.10

License

MIT

Unpacked Size

129 kB

Total Files

25

Last publish

Collaborators

  • turo-eng
  • tagoro9
  • toolo