Separator
Separate related content visually while preserving the intended semantic orientation.
Default
On this page
Installation
Copy this component and its required dependencies into the consumer-owned Components project.
dotnet fve add separator --config src/Acme.Components/fve.jsonThe CLI resolves dependencies and preserves consumer-authored files. See Installation for project initialization and Tailwind source detection.
Usage
open System
open FSharp.ViewEngine
open Acme.Components
open type Html
open type Svg
open type Datastar
let defaultSeparator =
div { _class "w-full"; Separator.create () |> Separator.render }Orientation and semantics
API reference
type SeparatorOrientation =
| Horizontal
| Vertical
type SeparatorConfig
module Separator =
val create : SeparatorConfig
val withOrientation : orientation:SeparatorOrientation -> config:SeparatorConfig -> SeparatorConfig
val semantic : config:SeparatorConfig -> SeparatorConfig
val withAttributes : attributes:HtmlAttribute list -> config:SeparatorConfig -> SeparatorConfig
val render : config:SeparatorConfig -> HtmlElement