npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@openwebf/vue-cupertino-ui

v0.4.1

Published

iOS-style UI components for WebF applications. This package provides Flutter's Cupertino widgets wrapped as HTML custom elements for use in WebF.

Readme

WebF Cupertino UI

A Cupertino UI component set for WebF.

It wraps Flutter's native Cupertino widgets as HTML custom elements (e.g. <flutter-cupertino-button>), so you can build Flutter app UIs using web technologies with WebF.

React / Vue (npm) — Install & Use

These npm packages are for WebF JavaScript developers. They provide framework integrations and TypeScript types for the Cupertino custom elements rendered by Flutter.

This is not a “run in the browser” UI library. You still need a Flutter app with WebF + this Flutter package installed (see the next section).

Install

Vue:

npm install @openwebf/vue-cupertino-ui

React:

npm install @openwebf/react-cupertino-ui

React usage (from @openwebf/react-cupertino-ui)

import React, { useState } from 'react';
import {
  FlutterCupertinoButton,
  FlutterCupertinoInput,
  FlutterCupertinoSwitch,
} from '@openwebf/react-cupertino-ui';

export function App() {
  const [username, setUsername] = useState('');
  const [enabled, setEnabled] = useState(false);

  return (
    <>
      <FlutterCupertinoInput
        val={username}
        placeholder="Enter username"
        onInput={(e) => setUsername(e.detail)}
      />

      <FlutterCupertinoSwitch
        checked={enabled}
        onChange={(e) => setEnabled(e.detail)}
      />

      <FlutterCupertinoButton onClick={() => console.log({ username, enabled })}>
        Submit
      </FlutterCupertinoButton>
    </>
  );
}

Vue usage (from @openwebf/vue-cupertino-ui)

  1. Enable template type-checking for the custom elements by referencing the package types (for example in src/env.d.ts):
/// <reference types="@openwebf/vue-cupertino-ui" />
  1. Use the custom elements in your SFC templates:
<template>
  <flutter-cupertino-input
    :val="username"
    placeholder="Enter username"
    @input="(e) => (username = e.detail)"
  />

  <flutter-cupertino-switch
    :checked="enabled"
    @change="(e) => (enabled = e.detail)"
  />

  <flutter-cupertino-button @click="submit">
    Submit
  </flutter-cupertino-button>
</template>

<script setup lang="ts">
import { ref } from 'vue';

const username = ref('');
const enabled = ref(false);

function submit() {
  console.log({ username: username.value, enabled: enabled.value });
}
</script>

Flutter (WebF runtime) — Install & Use

The npm packages above only provide types/framework wrappers. The actual rendering happens inside your Flutter app via WebF + this Flutter package.

1) Add dependencies

Add webf_cupertino_ui to your pubspec.yaml:

dependencies:
  webf_cupertino_ui: ^0.4.0

This package depends on WebF (webf: ^0.24.0) and will pull it in automatically, but you can pin it explicitly if your app needs to.

2) Register the custom elements

Call installWebFCupertinoUI() before creating/loading any WebF pages:

import 'package:flutter/material.dart';
import 'package:webf_cupertino_ui/webf_cupertino_ui.dart';

void main() {
  installWebFCupertinoUI();
  runApp(const MyApp());
}

Now your WebF pages can use the Cupertino tags (e.g. <flutter-cupertino-button>) and they will render as real Flutter Cupertino widgets.

Features

  • Native Flutter Widgets: Use Flutter's native Cupertino widgets through web technologies
  • Web Framework Development: Build your Flutter app UI with Vue.js or React
  • Custom HTML Elements: Cupertino widgets exposed as HTML custom elements
  • Full Native Performance: Renders as native Flutter widgets, not web views
  • TypeScript Support: Complete type definitions for better development experience

Components & Docs

Component docs live in lib/src/*.md (React-focused):

Contributing & Testing (via webf codegen)

This repo is the source of truth for:

  • Flutter custom elements (lib/src/*.dart)
  • TypeScript typings (lib/src/*.d.ts)
  • Generated Dart bindings (lib/src/*_bindings_generated.dart, generated by webf codegen)
  • Generated npm packages (@openwebf/react-cupertino-ui, @openwebf/vue-cupertino-ui)

Typical workflow:

  1. Update or add typings in lib/src/*.d.ts
  2. Regenerate Dart bindings:
webf codegen --dart-only
  1. Generate the React/Vue npm packages (optionally add --publish-to-npm):
webf codegen --framework react --package-name @openwebf/react-cupertino-ui
webf codegen --framework vue --package-name @openwebf/vue-cupertino-ui
  1. Run tests:
flutter test

See CONTRIBUTING.md and docs/migration-rules.md for more details and conventions.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.