Loading indicator
Communicate indeterminate work with a labelled, reusable loading indicator.
Default
open System
open FSharp.ViewEngine
open Acme.Components
open type Html
open type Svg
open type Datastar
let defaultLoadingIndicator = fveLoadingIndicator { _ariaLabel "Loading" }On this page
Installation
Copy this component and its required dependencies into the consumer-owned Components project.
dotnet fve add loading-indicator --config src/Acme.Components/fve.jsonNo additional JavaScript import is required.
The CLI resolves dependencies and preserves consumer-authored files. See Installation for project initialization, Tailwind, the shared runtime, and building/loading your app entry.
Usage
open System
open FSharp.ViewEngine
open Acme.Components
open type Html
open type Svg
open type Datastar
let defaultLoadingIndicator = fveLoadingIndicator { _ariaLabel "Loading" }With visible label
open System
open FSharp.ViewEngine
open Acme.Components
open type Html
open type Svg
open type Datastar
let visibleLoadingIndicator =
fveLoadingIndicator {
_ariaLabel "Refreshing items"
_size Size.Large
"Refreshing items"
}API reference
module LoadingIndicatorDsl =
val fveLoadingIndicator : ComponentElementBuilder