Skip to main content

Footer

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

github
View source code
import { Footer } from '@uhg-abyss/mobile';
      () => {
      return (
      <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 stacked variant and up to two buttons in its horizontally stacked variant.

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

      Name
      Type
      DefaultDescription
      children
      string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | null | undefined
      The buttons to be placed inside the footer
      direction
      "horizontal" | "vertical" | undefined
      'vertical'
      The direction the items in the footer should be laid out
      header
      string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | null | undefined
      Content placed at the top of the footer
      variant
      "sticky" | "nested" | undefined
      'nested'
      The variant of the footer

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