FunGoo.Widgets 0.7.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FunGoo.Widgets --version 0.7.0
                    
NuGet\Install-Package FunGoo.Widgets -Version 0.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FunGoo.Widgets" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FunGoo.Widgets" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="FunGoo.Widgets" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FunGoo.Widgets --version 0.7.0
                    
#r "nuget: FunGoo.Widgets, 0.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FunGoo.Widgets@0.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FunGoo.Widgets&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=FunGoo.Widgets&version=0.7.0
                    
Install as a Cake Tool

<p align="center"> <img src="fungoo.jpeg" alt="FunGoo" width="720"> </p>

FunGoo

F# helpers and bindings for Goo, a retained desktop UI framework rendered with Vulkan, and for Goo.Widgets, its composable widget library.

Goo is authored in G#. FunGoo is a thin layer of ease-ups for consuming it from F#, without hiding the framework:

  • Children helpers — append blobs to Container and Button in one call, from a sequence or inline.
  • Fluent setters — chain configuration on the mutable Goo surface (Window, TextEditorController, ShaderEffect).
  • Interop helpers — voption wrappers for Try* out-parameter methods, and inline conversions for Length and Color.
  • Virtual lists — F# bindings for Goo's virtualized collections over an IReadOnlyList, a sequence, or a count and indexer.
  • Widgets — generated bindings for Goo.Widgets in a separate FunGoo.Widgets package: set plain widget properties through constructor assignment, and nullable properties through optional-value setters.

Getting started

Install the packages:

dotnet add package Goo
dotnet add package FunGoo
# optional: widget bindings
dotnet add package Goo.Widgets
dotnet add package FunGoo.Widgets

Describe your UI with plain F# values:

open Goo
open FunGoo.Children

let view =
  Container(Width = Length.Percent 100, Padding = 24, Gap = 12)
    .Children(
      Text(Content = "Hello from F#", FontSize = 24),
      Button(OnClick = fun _ -> printfn "clicked")
        .Children(Text(Content = "Click me"))
    )

Compose Goo.Widgets the same way. Constructor assignment covers plain properties and callbacks, and the generated optional-value setters take nullable properties: call them with a value to set it, or with no argument to reset it to the widget default.

open Goo
open Goo.Widgets.Actions
open FunGoo.Widgets

let reset =
  ActionButton(
    Label = "Reset",
    Height = 42.0,
    OnClick = fun () -> printfn "reset"
  )
    .backgroundColor(Color.Parse("#22c55e"))
    .Build()

See samples/RaznorGoo for a complete media player: Goo widgets, adaptive state, LibVLCSharp audio, Material icons, and a custom file picker.

Building

Requires the .NET 10 SDK.

dotnet tool restore
dotnet build
dotnet run --project samples/RaznorGoo

License

MIT — see LICENSE.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.8.0 70 11/12/2026
0.7.0 81 11/10/2026
0.6.0 89 11/8/2026
0.5.0 94 11/7/2026
0.4.0 132 10/15/2026
0.3.0 137 9/10/2026

### Changed

- **Core:** **Breaking:** The Goo dependency is now 0.29.1 (was 0.28.7). Goo 0.29 removes `Goo.Tokens`, `Cell.MountSeeded`, and `Goo.Command` with `Button.Command` and `KeyBinding.Command`; apps that use those APIs must move to direct token values, `Cell.Mount`, and `OnClick` or `Action`. `Window.Post` now returns `bool`. Apps gain callback ownership fixes, so an input callback rebuilds the cell that made the content, and headless render support. The generated FunGoo setter, children, and interop surface is unchanged, so no FunGoo call site must change.
- **Widgets:** The Goo.Widgets dependency is now 0.21.0 (was 0.19.8). Widgets gain theme depth shadows, a `TextField` handle for focus control, ComboBox popup padding, and crisp WindowChrome caption icons. The generated FunGoo.Widgets binding surface is unchanged, so no FunGoo.Widgets call site must change.
- **Samples:** RaznorGoo moves to Goo 0.29.1.