GitHub

Footer

PreviousNext

Sticky bottom action area for Layout / ResponsiveLayout. Pass a FooterProps object to Layout's `footer` slot.

Note: @appboxo/ui-kit@0.3.2 exports the FooterProps type but not the Footer component itself as a named export — Footer is consumed through Layout's footer slot, which accepts either FooterProps or any ReactNode. Examples below show the standard pattern.

Two actions

primaryButton + secondaryButton — the standard checkout / form footer.

Single action

Only primaryButton for destination screens where there's just one next step.

Usage

import { Layout } from "@appboxo/ui-kit"
 
<Layout
  navBar={{ title: "Checkout" }}
  footer={{
    primaryButton: { text: "Confirm", onClick: confirm },
    secondaryButton: { text: "Cancel", onClick: cancel },
  }}
>
  {/* content */}
</Layout>

For full control over the footer area, pass a ReactNode instead of FooterProps:

<Layout
  footer={
    <div style={{ padding: 16 }}>
      <YourCustomFooter />
    </div>
  }
>
  {/* content */}
</Layout>

Installation

pnpm add @appboxo/ui-kit

Theme tokens

--footer-padding, --footer-gap, --footer-scrollable-shadow (all required).