Webf Native Ui logo

Webf Native Ui

OrganizationPopular
openwebf
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.

Overview

Publisheropenwebf
Repositorywebf
Skill namewebf-native-ui
Stars
2.5K
Forks
163
Bundled files
1
LicenseGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by openwebf on GitHub. Read the source before you install it.

Installation

Install the Webf Native Ui AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openwebf/webf.git /tmp/webf
mkdir -p .claude/skills
cp -r /tmp/webf/skills/webf-native-ui .claude/skills/webf-native-ui
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Webf Native Ui in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Webf Native Ui on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Webf Native Ui is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:
    yaml
    dependencies:
      webf_cupertino_ui: ^1.0.0
  3. Run: flutter pub get
  4. Initialize in your main Dart file:
    dart
    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:

bash
npm install @openwebf/react-cupertino-ui

For Vue:

bash
npm install @openwebf/vue-cupertino-ui

Step 3: Using Components in Your Code

React Example:

tsx
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:

vue
<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

tsx
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

tsx
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

tsx
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:

tsx
// 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:

tsx
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:

bash
# 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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Webf Native Ui AI skill do?

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.

Why use Webf Native Ui on TypingMind?

Because you install it once and use it with any model. Webf Native Ui is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Webf Native Ui in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/openwebf/webf/tree/main/skills/webf-native-ui. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Webf Native Ui?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Webf Native Ui?

As many as you like. As long as a model supports skills, you can use Webf Native Ui with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Webf Native Ui AI skill free?

Yes. It is published on GitHub by openwebf under the GPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇