Skip to main content

Footer

A footer is a component that appears at the bottom of the screen.

Submit feedback
github
import { Footer } from '@uhg-abyss/mobile';
      <Footer>
      <Button variant="brand">
      Agree
      </Button>
      <Button type='outline'>
      Disagree
      </Button>
      </Footer>

      Variant

      Use the variant prop to set the variant of the footer. The footer can be 'nested' or 'sticky'.

      Direction

      Use the direction prop to set the direction of the items in the footer. The footer should house up to three buttons in its vertically staked variant and up to two button in its horizontally stacked variant.

      Use the header prop to set the header of the footer.

      Footer Props

      Prop NameTypeDefaultDescription
      childrenReact.ReactNode-The buttons to be placed inside the footer
      direction"vertical" | "horizontal"verticalThe direction the items in the footer should be laid out
      headerReact.ReactNode-Content placed at the top of the footer
      variant"nested" | "sticky"nestedThe variant of the footer

      Footer Classes

      Class NameDescription
      abyss-footer-headerFooter header wrapping element
      abyss-footer-rootFooter root element
      Table of Contents