Getting Started
Stepper is the kit's re-export of @arco-design/mobile-react's Stepper. Used in
booking flows (passenger count, guest count, room nights, etc.) where a free-form
number input would be too loose.
The kit re-exports it as a passthrough so consumers can keep imports inside
@appboxo/ui-kit. A designed wrapper with kit-native +/- icons and consistent sizing
is on the roadmap once we ship the kit's icon set.
import { useState } from "react"
import { Body1, Flex, Stepper } from "@appboxo/ui-kit"
import { PreviewLayout, Row, Section } from "./_section"
export function StepperDefaultPreview() {
const [travelers, setTravelers] = useState(1)
const [guests, setGuests] = useState(2)
return (
<PreviewLayout>
<Section
title="Stepper"
description="Raw Arco Mobile Stepper passthrough. Useful for quantity inputs in booking flows."
>
<Row label="Plain default">
<Stepper
defaultValue={travelers}
onChange={setTravelers}
min={1}
max={6}
/>
</Row>
<Row label="Round theme + min/max bounds">
<Flex
vertical={false}
justify="space-between"
align="center"
style={{
background: "var(--fill-1)",
borderRadius: 16,
padding: 16,
}}
>
<Body1 weight="semibold">Guests</Body1>
<Stepper
defaultValue={guests}
onChange={setGuests}
min={1}
max={4}
theme="round"
/>
</Flex>
</Row>
</Section>
</PreviewLayout>
)
}
API
The component accepts every Arco StepperProps prop verbatim. See the
Arco Mobile React Stepper docs
for the full API.
import { Stepper } from "@appboxo/ui-kit"Common props: defaultValue, value, onChange, min, max, step, disabled,
theme="round", minusButton / addButton (custom slot overrides).
Installation
pnpm add @appboxo/ui-kitBuild mini-apps with Boxo
Freedom UI Kit is the design system behind partner mini-apps shipping on the Boxo platform.
Learn more about Boxo