FS.FluentUI 0.0.1-beta02

This is a prerelease version of FS.FluentUI.
There is a newer version of this package available.
See the version list below for details.
dotnet add package FS.FluentUI --version 0.0.1-beta02
NuGet\Install-Package FS.FluentUI -Version 0.0.1-beta02
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="FS.FluentUI" Version="0.0.1-beta02" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FS.FluentUI --version 0.0.1-beta02
#r "nuget: FS.FluentUI, 0.0.1-beta02"
#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.
// Install FS.FluentUI as a Cake Addin
#addin nuget:?package=FS.FluentUI&version=0.0.1-beta02&prerelease

// Install FS.FluentUI as a Cake Tool
#tool nuget:?package=FS.FluentUI&version=0.0.1-beta02&prerelease

FS.FluentUI

Microsoft's FluentUI V9 (React) made for F#

⚠️This repo is in beta. Some components/ functions are incomplete. Please feel free to send PR's and messages in order to get this library as close to 100% as possible!⚠️

If you don't see a component/ hook in this list.... just wait longer!

Complete Components Complete Hooks / Functions Components w/ TODO's or are unstable Hooks / Functions w/ TODO's or are unstable Needs help with Upcoming
Accordion useArrowNavigationGroup Toast useToastController bundleIcon InteractionTag
Avatar useId DatePicker createFluentIcon makeStyles TagGroup
AvatarGroup useFocusableGroup Table useHeadlessFlatTree_unstable useTableFeatures Tag
Badge partitionAvatarGroupItems VirtualizerScrollViewDynamic (Preview) Rating
CounterBadge useOverflowMenu Virtualizer (Preview) BasicList
PresenceBadge useIsOverflowItemVisible Alert (Preview) Breadcrumb
Button createTableColumn Drawer (Preview) TeachingCallout
CompoundButton useStaticVirtualizerMeasure InfoLabel (Preview) Coachmark
MenuButton useModalAttributes VirtualizerScrollView (Preview) MessageBar
SplitButton useObservedElement PeoplePicker
ToggleButton useFocusFinders Searchbox
Card useOverflowCount makeResetStyles
CardFooter Nav
CardHeader SwatchColorPicker
CardPreview ColorPicker
Checkbox TimePicker
Combobox
DataGrid
Dialog
Divider
Divider
Dropdown
Tablist
Field
FluentProvider
Image
Input
Label
Link
Menu
Overflow
Persona
Popover
Portal
ProgressBar
Radio
RadioGroup
Select
Skeleton
Slider
SpinButton
Switch
Text
Textarea
Toolbar
Tree
Tooltip

I have done my best so far to keep usage of these similar to Typescript usage in the docs. See docs for more usage examples: Microsoft Documentation: Docs

Before sending PR's, please test what you've added in the "TestGrounds".

cd src/FS.FluentUI.TestGrounds npm install npm start

Installation

Install into your Client.fsproj project using Femto (recommended)

cd ./{path to Client}

# when using femto as a global CLI tool
femto install FS.FluentUI

# when using femto as a local CLI tool
dotnet femto install FS.FluentUI

This will install the nuget package and afterwards automatically installs the required npm packages used by this binding.

Femto will detect whether you are using paket and will install the package using paket into the dependency group of the project

You can install the library manually if you want by first installing the nuget package

cd ./{path to your project}
dotnet add package FS.FluentUI

Local Project Usage

This is a work-in-progress!

To use the project locally (without nuget):

  • Clone the project
  • Add ProjectReference to your fable project
  • Add FS.FluentUI.fsproj as content
  • Open FS.FluentUI and use the components

Examples

Please see src/FS.FluentUI.TestGrounds/src/TestGrounds.fs for examples of every component


[<ReactComponent>]
let ToggleButtons () =
    let isChecked1, setIsChecked1 = React.useState true
    let isChecked2, setIsChecked2 = React.useState false
    Html.div [
        Fui.toggleButton [
            toggleButton.icon (Fui.icon.checkbox1Filled [])
            toggleButton.checked' isChecked1
            toggleButton.onClick (fun _ -> setIsChecked1 (isChecked1 |> not))
            toggleButton.text "Checked state"
        ]
        Fui.toggleButton [
            toggleButton.appearance.primary
            toggleButton.checked' isChecked2
            toggleButton.onClick (fun _ -> setIsChecked2 (isChecked2 |> not))
            toggleButton.text "Unchecked state"
        ]
        Fui.toggleButton [
            toggleButton.shape.circular
            toggleButton.disabledFocusable true
            toggleButton.text "Disabled focusable"
        ]
    ]

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

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
1.13.0 109 4/24/2024
1.12.0 122 4/1/2024
1.11.0 164 1/23/2024
1.10.0 111 1/11/2024
1.9.0 166 12/22/2023
1.8.0 155 12/3/2023
1.7.0 112 11/27/2023
1.6.0 125 11/11/2023
1.5.0 121 11/2/2023
1.4.0 94 10/30/2023
1.3.0 105 10/23/2023
1.2.0 121 10/18/2023
1.1.0 154 10/6/2023
1.0.4 119 10/6/2023
1.0.3 114 10/6/2023
1.0.2 125 10/5/2023
1.0.1 138 9/25/2023
1.0.0 125 9/25/2023
1.0.0-prerelease-003 89 9/21/2023
1.0.0-prerelease-002 104 9/18/2023
1.0.0-prerelease-001 89 9/15/2023
0.0.1-beta12 104 9/14/2023
0.0.1-beta11 107 9/12/2023
0.0.1-beta10 87 9/12/2023
0.0.1-beta09 102 9/11/2023
0.0.1-beta08 100 9/11/2023
0.0.1-beta07 104 9/8/2023
0.0.1-beta06 102 9/7/2023
0.0.1-beta05 91 9/7/2023
0.0.1-beta04 128 9/1/2023
0.0.1-beta03 92 8/31/2023
0.0.1-beta02 119 8/29/2023

- Change TargetFramework