| title | ion-footer |
|---|
import Props from '@ionic-internal/component-api/v8/footer/props.md'; import Events from '@ionic-internal/component-api/v8/footer/events.md'; import Methods from '@ionic-internal/component-api/v8/footer/methods.md'; import Parts from '@ionic-internal/component-api/v8/footer/parts.md'; import CustomProps from '@ionic-internal/component-api/v8/footer/custom-props.mdx'; import Slots from '@ionic-internal/component-api/v8/footer/slots.md';
<title>ion-footer: Page Footer | Ionic App Footer Root Component</title>import EncapsulationPill from '@components/page/api/EncapsulationPill';
Footer is a root component of a page that aligns itself to the bottom of the page. It is recommended to be used as a wrapper for one or more toolbars, but it can be used to wrap any element. When a toolbar is used inside of a footer, the content will be adjusted so it is sized correctly, and the footer will account for any device safe areas.
import Basic from '@site/static/usage/v8/footer/basic/index.md';
Footers can match the transparency found in native iOS applications by setting the translucent property. In order to see the content scrolling behind the footer, the fullscreen property needs to be set on the content. This effect will only apply when the mode is "ios" and the device supports backdrop-filter.
import Translucent from '@site/static/usage/v8/footer/translucent/index.md';
Many native iOS applications have a fade effect on the toolbar. This can be achieved by setting the collapse property on the footer to "fade". When the content is scrolled to the end, the background and border on the footer will fade away. This effect will only apply when the mode is "ios".
import Fade from '@site/static/usage/v8/footer/fade/index.md';
A fade footer requires a scroll container to work properly. When using a virtual scrolling solution, a custom scroll target needs to be provided. Scrolling on the content needs to be disabled and the .ion-content-scroll-host class needs to be added to the element responsible for scrolling.
import CustomScrollTarget from '@site/static/usage/v8/footer/custom-scroll-target/index.md';
In "md" mode, the footer will have a box-shadow on the top. In "ios" mode, it will receive a border on the top. These can be removed by adding the .ion-no-border class to the footer.
import NoBorder from '@site/static/usage/v8/footer/no-border/index.md';