Bottom navigation
Navigate primary mobile destinations from a compact bottom bar.
Default
open System
open FSharp.ViewEngine
open Acme.Components
open type Html
open type Svg
open type Datastar
let defaultBottomNavigation =
fveBottomNavigation {
_id "default-bottom-navigation"
_ariaLabel "Default primary navigation"
fveBottomNavigationItem {
_href "/components"
"Home"
}
fveBottomNavigationItem {
_href "/components/table"
"Items"
}
}On this page
Installation
Copy this component and its required dependencies into the consumer-owned Components project.
dotnet fve add bottom-navigation --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 defaultBottomNavigation =
fveBottomNavigation {
_id "default-bottom-navigation"
_ariaLabel "Default primary navigation"
fveBottomNavigationItem {
_href "/components"
"Home"
}
fveBottomNavigationItem {
_href "/components/table"
"Items"
}
}API reference
module BottomNavigationDsl =
val fveBottomNavigation : ComponentElementBuilder
val fveBottomNavigationItem : ComponentElementBuilder
val fveBottomNavigationItemLeading : ComponentElementBuilder