Feliz 2.9.0

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

Feliz Nuget Build status

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

  • Consistent, lightweight formatting: no more awkward indentation using two lists for every element.
  • 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.
  • Included color list of most commonly used Html colors in the colors module.
  • Compatible with the current React DSL used in applications.
  • 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

dotnet new -i Feliz.Template
dotnet new feliz -n MyProject
cd MyProject
npm install
npm start

Documentation

Feliz has extensive documentation at https://zaid-ajaj.github.io/Feliz with live examples along side code samples, check them out and if you have any question, let us know!

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 (135)

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.Bulma

Bulma wrapper for amazing Feliz DSL

Feliz.UseListener

React hooks for easy event listener management.

Feliz.UseDeferred

Hooks for dead-simple data fetching with Feliz

Feliz.Recharts

Recharts bindings based on the Feliz API

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.9.0 18,277 10/26/2024
2.8.0 23,645 6/22/2024
2.8.0-beta.0 3,165 12/25/2023
2.7.0 36,085 10/8/2023
2.6.0 57,085 3/21/2023
2.5.0 531 3/18/2023
2.4.1 4,176 2/23/2023
2.4.0 11,998 1/14/2023
2.3.0 15,511 12/27/2022
2.2.0 359 12/27/2022
2.1.0 355 12/27/2022
2.0.1 482 12/25/2022
2.0.0 5,997 12/25/2022
2.0.0-prerelease-003 6,718 9/16/2022
2.0.0-prerelease-002 6,165 9/1/2022
2.0.0-prerelease-001 204 8/26/2022
1.68.0 49,547 8/17/2022
1.67.0 8,969 8/5/2022
1.66.0 1,963 8/3/2022
1.65.0 26,766 7/9/2022
1.64.0 17,758 5/9/2022
1.63.0 749 5/9/2022
1.62.0 26,833 4/19/2022
1.61.0 27,052 3/12/2022
1.60.0 1,302 3/5/2022
1.59.0 12,474 2/24/2022
1.58.1 7,071 2/10/2022
1.58.0 1,242 2/3/2022
1.57.0 26,280 11/29/2021
1.56.0 3,838 11/8/2021
1.55.0 12,081 11/5/2021
1.54.0 3,503 10/24/2021
1.53.0 3,696 10/2/2021
1.52.0 9,880 9/10/2021
1.51.0 8,883 8/17/2021
1.50.0 2,816 8/8/2021
1.49.0 20,104 7/7/2021
1.48.0 519 7/7/2021
1.47.0 19,883 6/13/2021
1.46.0 2,044 6/8/2021
1.45.0 10,590 5/13/2021
1.44.0 1,755 5/3/2021
1.43.0 6,161 4/16/2021
1.42.0 1,554 4/10/2021
1.41.0 862 4/8/2021
1.40.1 4,827 3/30/2021
1.40.0 2,294 3/24/2021
1.39.0 518 3/24/2021
1.38.0 1,338 3/17/2021
1.37.0 4,900 3/8/2021
1.36.0 591 3/6/2021
1.35.0 1,239 2/28/2021
1.34.0 1,724 2/21/2021
1.33.1 16,485 2/21/2021
1.33.0 3,438 2/4/2021
1.32.0 17,306 12/27/2020
1.31.1 1,284 12/22/2020
1.31.0 820 12/22/2020
1.30.0 585 12/22/2020
1.29.0 2,062 12/15/2020
1.28.0 23,731 12/15/2020
1.27.0 675 12/13/2020
1.25.0 743 12/12/2020
1.24.0 1,155 12/10/2020
1.23.0 524 12/10/2020
1.22.1 571 12/10/2020
1.22.0 5,790 12/2/2020
1.21.0 717 12/2/2020
1.20.0 1,093 11/27/2020
1.19.0 541 11/26/2020
1.18.0 1,147 11/26/2020
1.17.0 11,795 11/15/2020
1.16.2 3,123 11/1/2020
1.16.1 653 10/30/2020
1.16.0 6,066 10/23/2020
1.15.0 1,023 10/23/2020
1.14.1 4,686 10/19/2020
1.14.0 4,635 9/19/2020
1.13.2 1,626 9/16/2020
1.13.1 13,244 9/1/2020
1.13.0 4,551 8/16/2020
1.12.1 1,319 8/10/2020
1.12.0 1,126 8/9/2020
1.11.0 2,278 8/8/2020
1.10.1 1,351 7/30/2020
1.10.0 638 7/29/2020
1.9.0 611 7/29/2020
1.8.0 660 7/29/2020
1.7.0 2,546 7/16/2020
1.6.0 8,942 7/3/2020
1.5.0 13,077 6/24/2020
1.4.0 665 6/24/2020
1.3.0 17,511 6/7/2020
1.2.0 4,140 6/4/2020
1.1.1 10,629 5/24/2020
1.1.0 5,014 5/21/2020
1.0.0 3,306 5/16/2020
0.86.0 4,331 5/9/2020
0.85.0 1,991 5/7/2020
0.84.0 767 5/4/2020
0.83.0 3,186 5/4/2020
0.82.0 694 5/3/2020
0.81.0 1,107 4/30/2020
0.80.0 712 4/28/2020
0.79.0 606 4/28/2020
0.78.0 1,500 4/27/2020
0.77.0 609 4/26/2020
0.76.0 1,454 4/26/2020
0.75.0 3,388 4/22/2020
0.74.2 5,784 4/20/2020
0.74.1 4,295 4/12/2020
0.74.0 6,221 3/29/2020
0.73.0 1,678 3/26/2020
0.72.0 5,804 3/22/2020
0.71.0 1,570 3/20/2020
0.70.0 2,458 3/17/2020
0.69.0 1,780 3/12/2020
0.68.10 6,228 12/10/2019
0.68.9 3,978 12/5/2019
0.68.8 1,515 12/5/2019
0.68.7 2,364 12/4/2019
0.68.6 1,529 12/1/2019
0.68.5 1,489 11/29/2019
0.68.3 3,943 11/27/2019
0.68.2 7,263 11/18/2019
0.68.1 1,429 11/18/2019
0.68.0 4,031 11/14/2019
0.67.2 2,293 11/13/2019
0.67.1 1,583 11/4/2019
0.67.0 1,777 11/4/2019
0.66.5 1,446 11/3/2019
0.66.4 1,228 11/3/2019
0.66.3 1,416 11/1/2019
0.66.2 1,308 11/1/2019
0.66.1 2,380 10/31/2019
0.66.0 1,582 10/30/2019
0.65.5 1,347 10/29/2019
0.65.4 1,390 10/28/2019
0.65.3 1,355 10/28/2019
0.65.2 1,168 10/27/2019
0.65.1 1,089 10/27/2019
0.65.0 1,437 10/27/2019
0.64.0 1,132 10/27/2019
0.63.0 1,511 10/22/2019
0.62.0 1,020 10/21/2019
0.61.0 954 10/21/2019
0.60.0 680 10/20/2019
0.59.0 1,151 10/20/2019
0.58.0 2,341 10/14/2019
0.57.2 1,183 10/12/2019
0.57.1 990 10/10/2019
0.57.0 1,602 10/8/2019
0.56.0 1,348 10/6/2019
0.55.0 660 10/6/2019
0.54.0 866 10/6/2019
0.53.0 1,104 10/5/2019
0.52.0 924 9/14/2019
0.51.0 664 9/14/2019
0.50.0 670 9/10/2019
0.49.0 701 9/9/2019
0.48.0 685 9/9/2019
0.47.0 1,006 8/31/2019
0.46.0 1,125 8/28/2019
0.45.0 676 8/28/2019
0.44.0 649 8/27/2019
0.42.0 692 8/26/2019
0.41.0 715 8/19/2019
0.40.0 1,237 8/13/2019
0.39.0 707 8/13/2019
0.38.0 728 8/5/2019
0.37.0 705 8/5/2019
0.36.0 745 7/31/2019
0.35.0 764 7/29/2019
0.34.0 719 7/28/2019
0.33.0 692 7/28/2019
0.32.0 728 7/28/2019
0.31.0 694 7/28/2019
0.30.0 719 7/27/2019
0.29.0 672 7/26/2019
0.28.0 684 7/26/2019
0.27.0 693 7/26/2019
0.26.0 677 7/26/2019
0.25.0 703 7/26/2019
0.24.0 669 7/25/2019
0.23.0 696 7/25/2019
0.22.0 692 7/25/2019
0.20.0 671 7/25/2019
0.19.0 684 7/25/2019
0.18.0 681 7/24/2019
0.17.0 679 7/24/2019
0.16.0 715 7/23/2019
0.15.0 677 7/22/2019
0.14.0 687 7/22/2019
0.13.0 685 7/22/2019
0.12.0 704 7/22/2019
0.11.0 651 7/22/2019
0.10.1 676 7/22/2019
0.10.0 711 7/22/2019
0.9.0 677 7/22/2019
0.8.0 685 7/22/2019
0.7.0 685 7/22/2019
0.6.0 721 7/22/2019
0.5.0 684 7/21/2019
0.4.0 654 7/21/2019
0.3.0 640 7/21/2019
0.2.0 692 7/21/2019
0.1.0 822 7/21/2019

Add scrollbarColor, aria-roledescription and order style properties