Skip to content

Instantly share code, notes, and snippets.

@Dzoukr
Last active April 4, 2022 17:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dzoukr/7c30c0117a4caf92bc074eadd9bd7cdb to your computer and use it in GitHub Desktop.
Save Dzoukr/7c30c0117a4caf92bc074eadd9bd7cdb to your computer and use it in GitHub Desktop.
Feliz.Bulma button (minimal example)
{
"dependencies": {
"@fortawesome/fontawesome-free": "^5.10.2"
}
}
@import "~@fortawesome/fontawesome-free/css/all.min.css";
Bulma.button [
button.isPrimary
prop.children [
Html.i [ prop.className "fas fa-user"; prop.style [ style.marginRight 5 ] ]
Html.text "Hello Feliz.Bulma"
]
]
@ajwillshire
Copy link

And similar using Fable.FontAwesome

    Bulma.button [
        button.isSuccess
        prop.style [style.fontSize 20]
        prop.children [
            Html.text number
            Fa.i [Fa.Solid.Star; Fa.PullRight] []
        ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment