English | 简体中文
FlexiUI React Mobile is a Bun-based monorepo for the FlexiUI web component system. It includes:
- A reusable React + TypeScript component library
- A Vite example app for preview and manual verification
- Keep behavior and theme values aligned with Android FlexiUI exports
- Use a custom-first implementation strategy (not MD3-base-first)
- Keep all package management and scripts on Bun
- Use CSS-in-JS for component internals (
@emotion/css)
.
├─ packages/
│ └─ flexiui-react-mobile/ # Component library package
├─ example/ # React + Vite + TS preview app
└─ package.json # Workspace scripts
- Bun (recommended: latest stable)
- Node.js runtime compatible with Bun tooling
bun installStart preview app:
bun run devBuild all:
bun run buildFrom repository root:
bun run dev: run the example app (flexiui-react-mobile-example)bun run build: build library + examplebun run build:lib: build library onlybun run build:example: build example only
Path: packages/flexiui-react-mobile
Main exports:
- Root:
flexiui-react-mobile - Category subpath exports:
flexiui-react-mobile/actionsflexiui-react-mobile/contentflexiui-react-mobile/feedbackflexiui-react-mobile/formsflexiui-react-mobile/iconsflexiui-react-mobile/layoutflexiui-react-mobile/navigation
actions:FlexiButtoncontent:FlexiText,FlexiIcon,FlexiImage,FlexiItemfeedback:FlexiProgressIndicatorforms:FlexiEditText,FlexiDropdownList,FlexiAutoCompleteText,FlexiInputBox,FlexiCheckBox,FlexiRadioButton,FlexiSwitch,FlexiSlider,FlexiChiplayout: area/root layouts,FlexiLinearLayout,FlexiScroll,FlexiWindowInsetsLayoutnavigation:FlexiAppBar,FlexiAppBarLayout,FlexiTabChip,FlexiTabLayout,FlexiNavigationBar,FlexiStickyHeaderBaricons: built-in SVG icon components (React components, not external.svgfiles)
- Theme factory:
createFlexiTheme - Token exports:
flexiLightColors,flexiDarkColors,flexiHighContrastColors,flexiPresetPrimaryColors,flexiDimensions
Path: example
- Stack: React + Vite + TypeScript
- Purpose: visual preview, interaction checks, and regression verification during component development
- Update library code in
packages/flexiui-react-mobile/src - Run preview app with
bun run dev - Validate interactions in example pages
- Build with
bun run buildbefore review/release