Skip to content

F# Functional App Development, using declarative dynamic UI

License

Notifications You must be signed in to change notification settings

abrevinci/Fabulous

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fabulous

F# Functional App Development, using declarative dynamic UI

Build Status Join the chat at https://gitter.im/fsprojects/Fabulous

Never write a ViewModel class again! Conquer the world with clean dynamic UIs!

This repository contains 3 differents libraries:

Package NuGet
Fabulous Fabulous NuGet version
Fabulous.XamarinForms Fabulous.XamarinForms NuGet version
Fabulous.StaticView.XamarinForms Fabulous.StaticView.XamarinForms NuGet version

Fabulous

This library aims to provide all the core abstractions and tools for writing your own app framework based on the "model view update" programming model and dynamic UI. It is a variation of elmish, an Elm architecture implemented in F#.

Learn more about Fabulous

Fabulous for Xamarin.Forms

This library allows you to use the ultra-simple Model-View-Update architecture to build applications for iOS, Android, Mac, WPF and more using Xamarin.Forms. It is built on Fabulous.

With Fabulous for Xamarin.Forms, you will be able to write complete applications fully in F#, like this:

type Model = { Text: string }
type Msg = ButtonClicked

let init () = { Text = "Hello Fabulous!" }

let update msg model =
    match msg with
    | ButtonClicked -> { model with Text = "Thanks for using Fabulous!" }

let view model dispatch =
    View.ContentPage(
        View.StackLayout(
            children=[
                View.Image(source = "fabulous.png")
                View.Label(text = model.Text, fontSize = 22.)
                View.Button(text = "Click me", command = (fun () -> dispatch ButtonClicked))
            ]
        )
    )

Learn more about Fabulous for Xamarin.Forms

Fabulous StaticView

This library allows you to write Xamarin.Forms apps using XAML and the Model-View-Update architecture.

It is not actively maintained.
If you wish to see more support for Fabulous.StaticView, please consider contributing.

Learn more about Fabulous StaticView

Contributing

Please contribute to this library through issue reports, pull requests, code reviews and discussion.

Credits

This library is inspired by Elmish.WPF, Elmish.Forms and elmish.

About

F# Functional App Development, using declarative dynamic UI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • F# 94.5%
  • C# 5.4%
  • Other 0.1%