Feliz 3.1.1

dotnet add package Feliz --version 3.1.1
                    
NuGet\Install-Package Feliz -Version 3.1.1
                    
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="Feliz" Version="3.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Feliz" Version="3.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Feliz" />
                    
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 Feliz --version 3.1.1
                    
#r "nuget: Feliz, 3.1.1"
                    
#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 Feliz@3.1.1
                    
#: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=Feliz&version=3.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Feliz&version=3.1.1
                    
Install as a Cake Tool

Feliz Nuget

A fresh retake of the React API in Fable, optimized for happiness.

Here is how it looks like:

module App

open Feliz

[<ReactComponent>]
let Counter() =
    let (count, setCount) = React.useState(0)
    Html.div [
        Html.button [
            prop.style [ style.marginRight 5 ]
            prop.onClick (fun _ -> setCount(count + 1))
            prop.text "Increment"
        ]

        Html.button [
            prop.style [ style.marginLeft 5 ]
            prop.onClick (fun _ -> setCount(count - 1))
            prop.text "Decrement"
        ]

        Html.h1 count
    ]

open Browser.Dom

let root = ReactDOM.createRoot (document.getElementById "root")
root.render (Counter())

✨ Features

  • Flexible API design: Combine the reliability of F# type safety with the flexibility to interop easily with native JavaScript.
  • Discoverable attributes with no more functions, Html attributes or CSS properties globally available so they are easy to find.
  • Proper documentation: each attribute and CSS property
  • Full React API support: Feliz aims to support the React API for building components using hooks, context and more.
  • Fully Type-safe: no more Margin of obj but instead utilizing a plethora of overloaded functions to account for the overloaded nature of CSS attributes, covering 90%+ of the CSS styles, values and properties.
  • Compatible with Femto.
  • Approximately Zero bundle size increase where everything function body is erased from the generated JavaScript unless you actually use said function.

🚀 Quick Start

# install the template (if you haven't already)
dotnet new -i Feliz.Template
# create a new Feliz project from the installed template
dotnet new feliz -n MyProject
# navigate to the created project folder
cd MyProject
# install the npm dependencies
npm install
# install .NET tools
dotnet tool restore
# start the development server
npm start

📚 Documentation

Explore the full docs at https://fable-hub.github.io/Feliz/ — packed with live examples and practical guidance. Highlights:

If anything’s unclear or you’re missing an example, please open an issue or discussion — contributions are very welcome!

⌚ Changelog

Each project in Feliz has its own changelog file in the src folder. Check them out for the latest changes!

Here is a direct link to the Feliz changelog.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (131)

Showing the top 5 NuGet packages that depend on Feliz:

Package Downloads
Feliz.Router

A router component for React and Elmish that is focused, powerful and extremely easy to use.

Feliz.UseElmish

useElmish hooks to build Elmish components as React components

Feliz.Bulma

Package Description

Feliz.UseListener

React hooks for easy event listener management.

Feliz.UseDeferred

Hooks for dead-simple data fetching with Feliz

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.1 592 12/22/2025
3.1.0 590 12/15/2025
3.0.0 1,148 12/10/2025
3.0.0-rc.16 310 12/8/2025
3.0.0-rc.15 465 12/1/2025
3.0.0-rc.14 179 11/28/2025
3.0.0-rc.13 140 11/27/2025
3.0.0-rc.12 307 11/21/2025
3.0.0-rc.11 289 11/21/2025
3.0.0-rc.10 380 11/18/2025
3.0.0-rc.9 380 11/18/2025
3.0.0-rc.8 199 11/14/2025
3.0.0-rc.5 117 11/7/2025
3.0.0-rc.4 161 11/3/2025
3.0.0-rc.3 238 10/25/2025
3.0.0-rc.2 159 10/7/2025
3.0.0-rc.1 186 10/2/2025
2.9.0 67,435 10/26/2024
2.8.0 36,598 6/22/2024
2.8.0-beta.0 3,248 12/25/2023
2.7.0 43,908 10/8/2023
2.6.0 69,511 3/21/2023
2.5.0 677 3/18/2023
2.4.1 4,588 2/23/2023
2.4.0 16,516 1/14/2023
2.3.0 26,033 12/27/2022
2.2.0 514 12/27/2022
2.1.0 507 12/27/2022
2.0.1 628 12/25/2022
2.0.0 10,503 12/25/2022
2.0.0-prerelease-003 7,214 9/16/2022
2.0.0-prerelease-002 8,541 9/1/2022
2.0.0-prerelease-001 360 8/26/2022
1.68.0 53,398 8/17/2022
1.67.0 9,369 8/5/2022
1.66.0 2,135 8/3/2022
1.65.0 30,145 7/9/2022
1.64.0 18,372 5/9/2022
1.63.0 927 5/9/2022
1.62.0 27,968 4/19/2022
1.61.0 27,364 3/12/2022
1.60.0 1,464 3/5/2022
1.59.0 13,293 2/24/2022
1.58.1 7,316 2/10/2022
1.58.0 1,400 2/3/2022
1.57.0 27,508 11/29/2021
1.56.0 4,099 11/8/2021
1.55.0 12,405 11/5/2021
1.54.0 3,875 10/24/2021
1.53.0 3,883 10/2/2021
1.52.0 10,742 9/10/2021
1.51.0 9,053 8/17/2021
1.50.0 3,052 8/8/2021
1.49.0 20,262 7/7/2021
1.48.0 665 7/7/2021
1.47.0 22,306 6/13/2021
1.46.0 2,348 6/8/2021
1.45.0 10,821 5/13/2021
1.44.0 1,971 5/3/2021
1.43.0 6,595 4/16/2021
1.42.0 1,718 4/10/2021
1.41.0 1,051 4/8/2021
1.40.1 5,255 3/30/2021
1.40.0 2,641 3/24/2021
1.39.0 690 3/24/2021
1.38.0 1,562 3/17/2021
1.37.0 5,093 3/8/2021
1.36.0 744 3/6/2021
1.35.0 1,428 2/28/2021
1.34.0 1,936 2/21/2021
1.33.1 16,988 2/21/2021
1.33.0 3,638 2/4/2021
1.32.0 18,633 12/27/2020
1.31.1 1,534 12/22/2020
1.31.0 1,059 12/22/2020
1.30.0 807 12/22/2020
1.29.0 2,296 12/15/2020
1.28.0 24,190 12/15/2020
1.27.0 855 12/13/2020
1.25.0 920 12/12/2020
1.24.0 1,331 12/10/2020
1.23.0 712 12/10/2020
1.22.1 747 12/10/2020
1.22.0 6,347 12/2/2020
1.21.0 914 12/2/2020
1.20.0 1,255 11/27/2020
1.19.0 706 11/26/2020
1.18.0 1,325 11/26/2020
1.17.0 12,876 11/15/2020
1.16.2 3,430 11/1/2020
1.16.1 832 10/30/2020
1.16.0 6,237 10/23/2020
1.15.0 1,195 10/23/2020
1.14.1 5,011 10/19/2020
1.14.0 4,875 9/19/2020
1.13.2 1,867 9/16/2020
1.13.1 14,030 9/1/2020
1.13.0 4,887 8/16/2020
1.12.1 1,503 8/10/2020
1.12.0 1,342 8/9/2020
1.11.0 2,594 8/8/2020
1.10.1 1,525 7/30/2020
1.10.0 803 7/29/2020
1.9.0 777 7/29/2020
1.8.0 836 7/29/2020
1.7.0 2,803 7/16/2020
1.6.0 9,763 7/3/2020
1.5.0 14,214 6/24/2020
1.4.0 842 6/24/2020
1.3.0 18,691 6/7/2020
1.2.0 4,497 6/4/2020
1.1.1 11,257 5/24/2020
1.1.0 5,505 5/21/2020
1.0.0 3,740 5/16/2020
0.86.0 4,753 5/9/2020
0.85.0 2,259 5/7/2020
0.84.0 944 5/4/2020
0.83.0 3,533 5/4/2020
0.82.0 868 5/3/2020
0.81.0 1,337 4/30/2020
0.80.0 881 4/28/2020
0.79.0 788 4/28/2020
0.78.0 1,772 4/27/2020
0.77.0 772 4/26/2020
0.76.0 1,712 4/26/2020
0.75.0 3,757 4/22/2020
0.74.2 5,970 4/20/2020
0.74.1 4,683 4/12/2020
0.74.0 6,734 3/29/2020
0.73.0 1,939 3/26/2020
0.72.0 6,242 3/22/2020
0.71.0 1,834 3/20/2020
0.70.0 2,725 3/17/2020
0.69.0 2,062 3/12/2020
0.68.10 6,763 12/10/2019
0.68.9 4,329 12/5/2019
0.68.8 1,780 12/5/2019
0.68.7 2,709 12/4/2019
0.68.6 1,756 12/1/2019
0.68.5 1,757 11/29/2019
0.68.3 4,338 11/27/2019
0.68.2 8,179 11/18/2019
0.68.1 1,710 11/18/2019
0.68.0 4,554 11/14/2019
0.67.2 2,623 11/13/2019
0.67.1 1,829 11/4/2019
0.67.0 2,084 11/4/2019
0.66.5 1,708 11/3/2019
0.66.4 1,471 11/3/2019
0.66.3 1,651 11/1/2019
0.66.2 1,545 11/1/2019
0.66.1 2,707 10/31/2019
0.66.0 1,842 10/30/2019
0.65.5 1,588 10/29/2019
0.65.4 1,624 10/28/2019
0.65.3 1,563 10/28/2019
0.65.2 1,368 10/27/2019
0.65.1 1,320 10/27/2019
0.65.0 1,694 10/27/2019
0.64.0 1,364 10/27/2019
0.63.0 1,796 10/22/2019
0.62.0 1,180 10/21/2019
0.61.0 1,144 10/21/2019
0.60.0 850 10/20/2019
0.59.0 1,376 10/20/2019
0.58.0 2,683 10/14/2019
0.57.2 1,409 10/12/2019
0.57.1 1,199 10/10/2019
0.57.0 1,882 10/8/2019
0.56.0 1,607 10/6/2019
0.55.0 850 10/6/2019
0.54.0 1,051 10/6/2019
0.53.0 1,350 10/5/2019
0.52.0 1,117 9/14/2019
0.51.0 840 9/14/2019
0.50.0 842 9/10/2019
0.49.0 886 9/9/2019
0.48.0 856 9/9/2019
0.47.0 1,238 8/31/2019
0.46.0 1,335 8/28/2019
0.45.0 845 8/28/2019
0.44.0 842 8/27/2019
0.42.0 891 8/26/2019
0.41.0 889 8/19/2019
0.40.0 1,478 8/13/2019
0.39.0 877 8/13/2019
0.38.0 907 8/5/2019
0.37.0 893 8/5/2019
0.36.0 926 7/31/2019
0.35.0 945 7/29/2019
0.34.0 900 7/28/2019
0.33.0 872 7/28/2019
0.32.0 899 7/28/2019
0.31.0 877 7/28/2019
0.30.0 890 7/27/2019
0.29.0 841 7/26/2019
0.28.0 855 7/26/2019
0.27.0 869 7/26/2019
0.26.0 846 7/26/2019
0.25.0 883 7/26/2019
0.24.0 838 7/25/2019
0.23.0 899 7/25/2019
0.22.0 863 7/25/2019
0.20.0 844 7/25/2019
0.19.0 866 7/25/2019
0.18.0 869 7/24/2019
0.17.0 865 7/24/2019
0.16.0 896 7/23/2019
0.15.0 847 7/22/2019
0.14.0 873 7/22/2019
0.13.0 860 7/22/2019
0.12.0 889 7/22/2019
0.11.0 808 7/22/2019
0.10.1 845 7/22/2019
0.10.0 892 7/22/2019
0.9.0 856 7/22/2019
0.8.0 858 7/22/2019
0.7.0 872 7/22/2019
0.6.0 899 7/22/2019
0.5.0 852 7/21/2019
0.4.0 831 7/21/2019
0.3.0 829 7/21/2019
0.2.0 861 7/21/2019
0.1.0 1,146 7/21/2019

### ✨ Added

- Support for the [autocorrect attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/autocorrect) (by @kerams)
- Support for `svg.key` property #698 (by @Freymaurer)