Icon
Typed inline SVG with Heroicons artwork families, brand logos and inherited color.
Browse icons
Search all icons by name or use. Select a variant to copy its F#.
Showing 24 of 319 icons
AcademicCap
OutlineSolidMiniMicroAdjustmentsHorizontal
OutlineSolidMiniMicroAdjustmentsVertical
OutlineSolidMiniMicroArchiveBox
OutlineSolidMiniMicroArchiveBoxArrowDown
OutlineSolidMiniMicroArchiveBoxXMark
OutlineSolidMiniMicroArrowDown
OutlineSolidMiniMicroArrowDownCircle
OutlineSolidMiniMicroArrowDownLeft
OutlineSolidMiniMicroArrowDownOnSquare
OutlineSolidMiniMicroArrowDownOnSquareStack
OutlineSolidMiniMicroArrowDownRight
OutlineSolidMiniMicroArrowDownTray
OutlineSolidMiniMicroArrowLeft
OutlineSolidMiniMicroArrowLeftCircle
OutlineSolidMiniMicroArrowLeftEndOnRectangle
OutlineSolidMiniMicroArrowLeftStartOnRectangle
OutlineSolidMiniMicroArrowLongDown
OutlineSolidMiniMicroArrowLongLeft
OutlineSolidMiniMicroArrowLongRight
OutlineSolidMiniMicroArrowLongUp
OutlineSolidMiniMicroArrowPath
OutlineSolidMiniMicroArrowPathRoundedSquare
OutlineSolidMiniMicroArrowRight
OutlineSolidMiniMicro- Show more icons
Default
open System
open FSharp.ViewEngine
open Acme.Components
open type Html
open type Svg
open type Datastar
let iconExample = fveIcon { _name IconName.Cog6Tooth }On this page
Installation
Copy this component and its required dependencies into the consumer-owned Components project.
dotnet fve add icon --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 iconExample = fveIcon { _name IconName.Cog6Tooth }Heroicons families
open System
open FSharp.ViewEngine
open Acme.Components
open type Html
open type Svg
open type Datastar
let iconFamilies =
div {
_class "flex flex-wrap items-center justify-center gap-8"
for label, variant in [ "Outline · 24px", IconVariant.Outline; "Solid · 24px", IconVariant.Solid; "Mini · 20px", IconVariant.Mini; "Micro · 16px", IconVariant.Micro ] do
div {
_class "grid justify-items-center gap-3"
fveIcon { _name IconName.Cog6Tooth; _variant variant }
span { _class "text-sm"; label }
}
}Brand logos
open System
open FSharp.ViewEngine
open Acme.Components
open type Html
open type Svg
open type Datastar
let brandIcons =
div {
_class "grid gap-6"
div {
_class "flex flex-wrap items-center justify-center gap-8"
for name in [ IconName.GitHub; IconName.X; IconName.LinkedIn ] do
div {
_class "grid justify-items-center gap-3"
fveIcon { _name name }
span { _class "text-sm"; string name }
}
}
p {
_class "text-sm text-[var(--fve-muted-text)]"
"Brand artwork from "
a { _href "https://icons.getbootstrap.com/"; _class "text-[var(--fve-brand-text)] underline"; "Bootstrap Icons" }
"."
}
}Heroicons Outline and Solid use 24×24 artwork; Mini uses 20×20 and Micro 16×16. Each family has purpose-drawn paths, not just a different rendered size. Icons inherit currentColor and are decorative by default. Name an icon-only control with _ariaLabel on its Button or Link.
Rendered-size overrides
open System
open FSharp.ViewEngine
open Acme.Components
open type Html
open type Svg
open type Datastar
let iconSizes =
div {
_class "flex flex-wrap items-center justify-center gap-8"
for size, label in [ Size.ExtraSmall, "12px"; Size.Small, "16px"; Size.Medium, "20px"; Size.Large, "24px"; Size.ExtraLarge, "32px" ] do
div {
_class "grid justify-items-center gap-3"
fveIcon { _name IconName.Heart; _variant IconVariant.Solid; _size size }
span { _class "text-sm"; label }
}
}Size changes the rendered square, not the selected artwork: Extra small 12px, Small 16px, Medium 20px, Large 24px, Extra large 32px. Omit it to use the family's natural size. The bundled MIT-licensed Heroicons artwork needs no JavaScript or external request.
API reference
type IconName
type IconVariant =
| Outline
| Solid
| Mini
| Micro
module IconDsl =
val fveIcon : ComponentElementBuilder
module IconAttributes =
val Html._name.Static : value:IconName -> HtmlAttribute
val Html._variant.Static : value:IconVariant -> HtmlAttribute