Getting Started
Default
Picks mobile vs desktop layers automatically via the kit's useBreakpoint hook. Toggle the device switcher in the preview to see the mobile screen morph into a centered max-width column on desktop.
import {
Body1,
Body2,
Card,
Flex,
PrimaryButton,
ResponsiveLayout,
Title3,
Toast,
} from "@appboxo/ui-kit"
export function ResponsiveLayoutDefaultPreview() {
return (
<ResponsiveLayout
navBar={{ title: "Profile" }}
footer={<PrimaryButton text="Save" onClick={() => Toast.info("Saved")} />}
>
<Flex vertical gap={16}>
<Card>
<Flex vertical gap={6}>
<Title3>Personal details</Title3>
<Body2 color="text-3">
Adapts mobile / desktop via useBreakpoint.
</Body2>
</Flex>
</Card>
<Card>
<Body1>nurs@boxo.com</Body1>
</Card>
</Flex>
</ResponsiveLayout>
)
}
Installation
pnpm add @appboxo/ui-kitTheme tokens
--boxo-layout-mobile-padding, --boxo-layout-mobile-footer-* (all required).
Build mini-apps with Boxo
Freedom UI Kit is the design system behind partner mini-apps shipping on the Boxo platform.
Learn more about Boxo