webf-native-ui
Setup and use WebF's Cupertino UI library to build native iOS-style UIs with pre-built components instead of crafting everything with HTML/CSS. Use when building iOS apps, adding native UI components, or improving UI performance.
Install
mkdir -p .claude/skills/webf-native-ui && curl -L -o skill.zip "https://mcp.directory/api/skills/download/4079" && unzip -o skill.zip -d .claude/skills/webf-native-ui && rm skill.zipInstalls to .claude/skills/webf-native-ui
About this skill
WebF Native UI Libraries
Instead of crafting all UIs with HTML/CSS, WebF provides pre-built native UI libraries that render as native Flutter widgets with full native performance. These components look and feel native on each platform while being controlled from your JavaScript code.
What Are Native UI Libraries?
Native UI libraries are collections of UI components that:
- Render as native Flutter widgets (not DOM elements)
- Look and feel native on each platform (iOS, Android, etc.)
- Provide better performance than HTML/CSS for complex UIs
- Use platform-specific design (Cupertino for iOS, Material for Android)
- Work with React, Vue, and vanilla JavaScript
Available Library
Cupertino UI ✅
Description: iOS-style components following Apple's Human Interface Guidelines
Platforms: iOS, macOS (optimized for iOS design)
Component Count: 30+ components
Available Components:
- Navigation & Layout: Tab, Scaffold, TabBar, TabView
- Dialogs & Sheets: Alert Dialog, Action Sheet, Modal Popup, Context Menu
- Lists: List Section, List Tile
- Forms: Form Section, Form Row, TextField, Search Field
- Pickers: Date Picker, Time Picker
- Controls: Button, Switch, Slider, Segmented Control, Checkbox, Radio
- Icons: 1000+ SF Symbols
- Colors: Cupertino color system
NPM Packages:
- React:
@openwebf/react-cupertino-ui - Vue:
@openwebf/vue-cupertino-ui
Flutter Package: webf_cupertino_ui
Documentation: https://openwebf.com/en/ui-components/cupertino
When to Use Native UI vs HTML/CSS
Use Cupertino UI When:
- ✅ Building iOS-style apps
- ✅ Need native-looking iOS forms, buttons, and controls
- ✅ Want 60fps native performance for complex UIs
- ✅ Building iOS lists, dialogs, or navigation patterns
- ✅ Need Apple's Human Interface Guidelines design language
Use HTML/CSS When:
- ✅ Building custom designs that don't follow platform patterns
- ✅ Using existing web component libraries (e.g., Tailwind CSS)
- ✅ Need maximum flexibility in styling
- ✅ Porting existing web apps
- ✅ Building cross-platform designs (not platform-specific)
Setup Instructions
Step 1: Configure Flutter Project (Optional)
If you have access to the Flutter project hosting your WebF app:
For Cupertino UI:
- Open your Flutter project's
pubspec.yaml - Add the dependency:
dependencies: webf_cupertino_ui: ^1.0.0 - Run:
flutter pub get - Initialize in your main Dart file:
import 'package:webf/webf.dart'; import 'package:webf_cupertino_ui/webf_cupertino_ui.dart'; void main() { WebFControllerManager.instance.initialize(WebFControllerManagerConfig( maxAliveInstances: 2, maxAttachedInstances: 1, )); // Install Cupertino UI components installWebFCupertinoUI(); runApp(MyApp()); }
Step 2: Install NPM Packages (JavaScript/TypeScript)
For React:
npm install @openwebf/react-cupertino-ui
For Vue:
npm install @openwebf/vue-cupertino-ui
Step 3: Using Components in Your Code
React Example:
import { FlutterCupertinoButton, FlutterCupertinoTextField } from '@openwebf/react-cupertino-ui';
export function MyComponent() {
return (
<div>
<FlutterCupertinoTextField
placeholder="Enter your name"
onChanged={(value) => console.log('Value:', value)}
/>
<FlutterCupertinoButton
variant="filled"
onClick={() => console.log('Clicked')}
>
Submit
</FlutterCupertinoButton>
</div>
);
}
Vue Example:
<template>
<div>
<FlutterCupertinoTextField
placeholder="Enter your name"
@changed="handleChange"
/>
<FlutterCupertinoButton
variant="filled"
@click="handleClick"
>
Submit
</FlutterCupertinoButton>
</div>
</template>
<script setup>
import { FlutterCupertinoTextField, FlutterCupertinoButton } from '@openwebf/vue-cupertino-ui';
const handleChange = (value) => {
console.log('Value:', value);
};
const handleClick = () => {
console.log('Clicked');
};
</script>
Component Reference
See the Native UI Component Reference for a complete list of available components and their properties.
Common Patterns
1. Building an iOS-Style Form
import {
FlutterCupertinoFormSection,
FlutterCupertinoFormRow,
FlutterCupertinoTextField,
FlutterCupertinoButton
} from '@openwebf/react-cupertino-ui';
export function ProfileForm() {
return (
<FlutterCupertinoFormSection header="Profile Information">
<FlutterCupertinoFormRow label="Name">
<FlutterCupertinoTextField placeholder="John Doe" />
</FlutterCupertinoFormRow>
<FlutterCupertinoFormRow label="Email">
<FlutterCupertinoTextField
placeholder="john@example.com"
keyboardType="email"
/>
</FlutterCupertinoFormRow>
<FlutterCupertinoButton variant="filled">
Save Changes
</FlutterCupertinoButton>
</FlutterCupertinoFormSection>
);
}
2. Building a Settings Screen
import {
FlutterCupertinoListSection,
FlutterCupertinoListTile,
FlutterCupertinoSwitch
} from '@openwebf/react-cupertino-ui';
export function SettingsScreen() {
return (
<FlutterCupertinoListSection header="Settings">
<FlutterCupertinoListTile
title="Notifications"
trailing={<FlutterCupertinoSwitch value={true} />}
/>
<FlutterCupertinoListTile
title="Dark Mode"
trailing={<FlutterCupertinoSwitch value={false} />}
/>
</FlutterCupertinoListSection>
);
}
3. Showing a Native Dialog
import { FlutterCupertinoAlertDialog } from '@openwebf/react-cupertino-ui';
export function ConfirmationDialog({ onConfirm, onCancel }) {
return (
<FlutterCupertinoAlertDialog
title="Confirm Action"
content="Are you sure you want to proceed?"
actions={[
{ label: 'Cancel', onPress: onCancel },
{ label: 'Confirm', onPress: onConfirm, isDestructive: true }
]}
/>
);
}
Best Practices
1. Mix Native UI with HTML/CSS
You don't have to use native UI everywhere. Mix and match:
// Use native components for platform-specific UIs
<FlutterCupertinoButton variant="filled">
Save
</FlutterCupertinoButton>
// Use HTML/CSS for custom layouts
<div className="custom-layout">
<h1>Custom Design</h1>
<p>This uses regular HTML/CSS</p>
</div>
2. Use Native UI for Complex Components
Native UI components handle complex interactions better:
- Date pickers → Use
FlutterCupertinoDatePickerinstead of HTML input - Sliders → Use
FlutterCupertinoSliderfor native feel - Segmented controls → Use
FlutterCupertinoSegmentedControl
3. Check Component Documentation
Always check the official documentation for component props and events:
4. Use TypeScript for Type Safety
All native UI packages include TypeScript definitions:
import type { FlutterCupertinoButtonProps } from '@openwebf/react-cupertino-ui';
const buttonProps: FlutterCupertinoButtonProps = {
variant: 'filled',
onClick: () => console.log('Clicked')
};
Troubleshooting
Issue: Components Not Rendering
Cause: Flutter package not installed or initialized
Solution:
- Check that the Flutter package is in
pubspec.yaml - Verify
installWebFCupertinoUI()is called in main.dart - Run
flutter pub get - Rebuild your Flutter app
Issue: TypeScript Errors for Components
Cause: NPM package not installed correctly
Solution:
# Reinstall the package
npm install @openwebf/react-cupertino-ui --save
# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install
Issue: Vue Components Not Found
Cause: Vue bindings need to be generated
Solution: Follow the "For Vue + Cupertino UI" steps in Step 2 above to generate Vue bindings using webf codegen.
Issue: Props Don't Match Flutter Widget
Cause: WebF automatically converts between JavaScript and Dart naming
Solution:
- JavaScript uses camelCase:
onClick,onChange,placeholder - Flutter uses camelCase too, so props map directly
- Check documentation for exact prop names
Resources
- Component Gallery: https://openwebf.com/en/ui-components
- Cupertino UI Docs: https://openwebf.com/en/ui-components/cupertino
- WebF CLI Docs: https://openwebf.com/en/docs/tools/webf-cli
- React Examples: https://github.com/openwebf/react-cupertino-gallery
- Vue Examples: https://github.com/openwebf/vue-cupertino-gallery
Next Steps
After setting up native UI:
- Explore components: Visit https://openwebf.com/en/ui-components to see all available components
- Check examples: Look at the gallery apps for React and Vue
- Mix with HTML/CSS: Use native UI where it makes sense, HTML/CSS elsewhere
- Performance: Native UI components render at 60fps with Flutter-level performance
Summary
- ✅ Native UI libraries provide pre-built, platform-specific components
- ✅ Cupertino UI for iOS-style apps (30+ components available now)
- ✅ Form UI for validated forms (available now)
- ✅ Material UI coming soon for Android-style apps
- ✅ Install Flutter packages first, then npm packages
- ✅ Mix native UI with HTML/CSS as needed
- ✅ Better performance than HTML/CSS for complex UIs
- ✅ Full React and Vue support
More by openwebf
View all skills by openwebf →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversFlyonUI is a React UI library for accessing component code, block metadata, and building workflows with conversational c
Easily connect to your Local by Flywheel WordPress databases. Effortless setup, no manual config—ideal for WordPress dev
AI-ready access to Grafana UI: full React component library—TypeScript source, MDX docs, Storybook examples, tests, and
Easily build React apps with its-just-ui, a top React UI library for custom components, Material UI styling, and Tailwin
Access Tyler Forge’s design system, React UI library, component APIs, and framework guides for seamless app development
Prompt Library saves and organizes prompts as local markdown files, creating a personal prompt library across sessions f
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.