🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

react-fixed-bottom

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fixed-bottom

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

latest
Source
npmnpm
Version
1.0.10
Version published
Weekly downloads
934
-3.91%
Maintainers
3
Weekly downloads
 
Created
Source

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

Keywords

react

FAQs

Package last updated on 11 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts