WE

webf-native-ui

Enables the use of pre-built, high-performance Cupertino UI components in JavaScript applications for native iOS look and feel.

Install

mkdir -p .claude/skills/webf-native-ui && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4079" && unzip -o skill.zip -d .claude/skills/webf-native-ui && rm skill.zip

Installs to .claude/skills/webf-native-ui

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

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.
229 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Render native Flutter-backed UI components
  • Implement iOS-style navigation and layouts
  • Integrate native dialogs and pickers
  • Use Cupertino color and icon systems
  • Mix native components with HTML/CSS

How it works

It maps JavaScript components to native Flutter widgets, allowing UI to render with native performance while being controlled via React or Vue.

Inputs & outputs

You give it
JavaScript component props
You get back
Native Flutter widget rendering

When to use webf-native-ui

  • Building iOS-style app navigation
  • Implementing native alert dialogs
  • Creating platform-specific form layouts
  • Optimizing UI rendering performance

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:

  1. Open your Flutter project's pubspec.yaml
  2. Add the dependency:
    dependencies:
      webf_cupertino_ui: ^1.0.0
    
  3. Run: flutter pub get
  4. 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="[email protected]"
          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 FlutterCupertinoDatePicker instead of HTML input
  • Sliders → Use FlutterCupertinoSlider for 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:

  1. Check that the Flutter package is in pubspec.yaml
  2. Verify installWebFCupertinoUI() is called in main.dart
  3. Run flutter pub get
  4. 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

Next Steps

After setting up native UI:

  1. Explore components: Visit https://openwebf.com/en/ui-components to see all available components
  2. Check examples: Look at the gallery apps for React and Vue
  3. Mix with HTML/CSS: Use native UI where it makes sense, HTML/CSS elsewhere
  4. 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

When not to use it

  • Cross-platform designs
  • Custom designs ignoring platform patterns

Prerequisites

Flutter projectwebf_cupertino_ui package

Limitations

  • Optimized for iOS design language
  • Requires Flutter project configuration

How it compares

It provides native rendering performance and platform-specific design language instead of relying on DOM-based HTML/CSS styling.

Compared to similar skills

webf-native-ui side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
webf-native-ui (this skill)17moReviewIntermediate
scroll-experience1016moNo flagsIntermediate
anthropic-frontend-design126moNo flagsIntermediate
frontend-ui-engineering02moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by openwebf

View all by openwebf

webf-infinite-scrolling

openwebf

Create high-performance infinite scrolling lists with pull-to-refresh and load-more capabilities using WebFListView. Use when building feed-style UIs, product catalogs, chat messages, or any scrollable list that needs optimal performance with large datasets.

26

webf-native-plugin-dev

openwebf

Develop custom WebF native plugins based on Flutter packages. Create reusable plugins that wrap Flutter/platform capabilities as JavaScript APIs. Use when building plugins for native features like camera, payments, sensors, file access, or wrapping existing Flutter packages.

29

webf-api-compatibility

openwebf

Check Web API and CSS feature compatibility in WebF - determine what JavaScript APIs, DOM methods, CSS properties, and layout modes are supported. Use when planning features, debugging why APIs don't work, or finding alternatives for unsupported features like IndexedDB, WebGL, float layout, or CSS Grid.

16

webf-async-rendering

openwebf

Understand and work with WebF's async rendering model - handle onscreen/offscreen events and element measurements correctly. Use when getBoundingClientRect returns zeros, computed styles are incorrect, measurements fail, or elements don't layout as expected.

13

webf-native-plugins

openwebf

Install WebF native plugins to access platform capabilities like sharing, payment, camera, geolocation, and more. Use when building features that require native device APIs beyond standard web APIs.

14

webf-native-ui-dev

openwebf

Develop custom native UI libraries based on Flutter widgets for WebF. Create reusable component libraries that wrap Flutter widgets as web-accessible custom elements. Use when building UI libraries, wrapping Flutter packages, or creating native component systems.

10

You might also like

scroll-experience

davila7

Expert in building immersive scroll-driven experiences - parallax storytelling, scroll animations, interactive narratives, and cinematic web experiences. Like NY Times interactives, Apple product pages, and award-winning web experiences. Makes websites feel like experiences, not just pages. Use when: scroll animation, parallax, scroll storytelling, interactive story, cinematic website.

101142

anthropic-frontend-design

chaibuilder

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

1237

frontend-ui-engineering

charlieviettq

Build and refine web UI—component structure, responsive layout, design tokens, state, and accessibility. Use for feature UI work beyond WCAG checks alone.

00

dile-components

Polydile

Use when building or modifying UI with the Dile Components library (@dile/ui, @dile/crud, @dile/editor, @dile/utils, @dile/lib, @dile/iconlib, @dile/icons) — a framework-agnostic, Lit-based web component catalog. Trigger when installing/importing dile-* custom elements, using tags like <dile-input>,

00

zustand

lobehub

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

113434

accessibility-compliance

wshobson

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

45132

Search skills

Search the agent skills registry