Skip to main content
Ctrl+K
FSharp.ViewEngine · DesignFSharp.ViewEngine · Key FeaturesFSharp.ViewEngine · Quick ExampleFSharp.ViewEngine · Getting StartedCore installation · Using .NET CLICore installation · Using Paket CLICore installation · Runtime SupportCore installation · Source DebuggingCore installation · Next StepsBuild your first view · Create the viewBuild your first view · Render the viewBuild your first view · Reuse componentsBuild your first view · NextElements and attributes · ElementsElements and attributes · AttributesElements and attributes · Mixed contentElements and attributes · Generic escape hatchesComposition and control flow · Functions as componentsComposition and control flow · Conditional contentComposition and control flow · SequencesRendering · FragmentsRendering · DocumentsRendering · Application boundariesEncoding and trusted content · Encoded by defaultEncoding and trusted content · Trusted raw contentEncoding and trusted content · Trusted names and expressionsAccessibility · Prefer native HTMLAccessibility · Names and relationshipsAccessibility · ARIA coverageAccessibility · Test behaviorCustom Elements & Attributes · Trusted Content BoundariesCustom Elements & Attributes · Custom ElementsCustom Elements & Attributes · elCustom Elements & Attributes · elVoidCustom Elements & Attributes · Nested Web ComponentsCustom Elements & Attributes · Custom AttributesCustom Elements & Attributes · _attrCustom Elements & Attributes · Key-value attributeCustom Elements & Attributes · Boolean attributeCustom Elements & Attributes · Combining with Built-in AttributesCustom Elements & Attributes · Extending the Html TypeCustom Elements & Attributes · Adding Custom ElementsCustom Elements & Attributes · Adding Custom AttributesCustom Elements & Attributes · Design System ExampleCustom Elements & Attributes · Shoelace ExampleSVG · Support PolicySVG · SetupSVG · Element ReferenceSVG · Numeric and Length ValuesSVG · Icon ExampleSVG · Chart and Text ExampleSVG · Gradients, Clipping, Masking, and ReuseSVG · AccessibilitySVG · Linking and NamespacesSVG · Attribute ReferenceSVG · Unsupported SVGDatastar · SetupDatastar · Core AttributesDatastar · data-signalsDatastar · data-bindDatastar · data-computedDatastar · data-effectDatastar · data-showDatastar · data-textDatastar · data-attrDatastar · data-classDatastar · data-styleDatastar · data-initDatastar · data-onDatastar · data-on-intersectDatastar · data-on-intervalDatastar · data-on-signal-patchDatastar · data-on-signal-patch-filterDatastar · data-indicatorDatastar · data-refDatastar · data-json-signalsDatastar · data-ignoreDatastar · data-ignore-morphDatastar · data-preserve-attrDatastar · Pro AttributesDatastar · data-animateDatastar · data-custom-validityDatastar · data-match-mediaDatastar · data-on-rafDatastar · data-on-resizeDatastar · data-persistDatastar · data-query-stringDatastar · data-replace-urlDatastar · data-scroll-into-viewDatastar · data-view-transitionDatastar · Trusted ExpressionsDatastar · Content Security PolicyDatastar · Complete ExampleHTMX · SetupHTMX · Request MethodsHTMX · hx-getHTMX · hx-postHTMX · hx-putHTMX · hx-patchHTMX · hx-deleteHTMX · Request Data and ConfigurationHTMX · hx-encodingHTMX · hx-headersHTMX · hx-includeHTMX · hx-paramsHTMX · hx-requestHTMX · hx-valsHTMX · Targeting and SwappingHTMX · hx-targetHTMX · hx-selectHTMX · hx-select-oobHTMX · hx-swapHTMX · hx-swap-oobHTMX · hx-preserveHTMX · Requests in FlightHTMX · hx-indicatorHTMX · hx-disabled-eltHTMX · hx-syncHTMX · hx-validateHTMX · Triggering and InteractionHTMX · hx-triggerHTMX · hx-confirmHTMX · hx-promptHTMX · hx-onHTMX · Navigation and HistoryHTMX · hx-boostHTMX · hx-push-urlHTMX · hx-replace-urlHTMX · hx-historyHTMX · hx-history-eltHTMX · Inheritance and ProcessingHTMX · hx-disableHTMX · hx-disinheritHTMX · hx-inheritHTMX · hx-extHTMX · Generic and Deprecated AttributesHTMX · Complete ExampleAlpine.js · SetupAlpine.js · Core DirectivesAlpine.js · x-dataAlpine.js · x-initAlpine.js · x-showAlpine.js · x-bindAlpine.js · x-onAlpine.js · x-textAlpine.js · x-htmlAlpine.js · x-modelAlpine.js · x-modelableAlpine.js · x-forAlpine.js · x-transitionAlpine.js · x-effectAlpine.js · x-ignoreAlpine.js · x-refAlpine.js · x-cloakAlpine.js · x-teleportAlpine.js · x-ifAlpine.js · x-idAlpine.js · Plugin DirectivesAlpine.js · x-maskAlpine.js · x-intersectAlpine.js · x-resizeAlpine.js · x-collapseAlpine.js · x-trapAlpine.js · x-anchorAlpine.js · x-sortAlpine.js · Plugins Without Directive HelpersAlpine.js · Trusted ExpressionsAlpine.js · Complete ExampleTailwind Plus Elements · SetupTailwind Plus Elements · Shared AttributesTailwind Plus Elements · AutocompleteTailwind Plus Elements · Command PaletteTailwind Plus Elements · Copy ButtonTailwind Plus Elements · DialogTailwind Plus Elements · DisclosureTailwind Plus Elements · Dropdown MenuTailwind Plus Elements · PopoverTailwind Plus Elements · SelectTailwind Plus Elements · TabsTailwind Plus Elements · Runtime ReadinessComponents · Get startedComponents · ActionsComponents · FeedbackComponents · Data displayComponents · Form controlsComponents · NavigationComponents · OverlaysComponents · LayoutComponents · Code and diagramsComponent installation · Install the CLIComponent installation · Add componentsComponent installation · Install the build toolsComponent installation · Configure TailwindComponent installation · Import component JavaScriptComponent installation · Build and watchComponent installation · Serve and use the componentsComponent installation · Update installed componentsButton · InstallationButton · UsageButton · SizesButton · ColorsButton · VariantsButton · Uniform paddingButton · All color variantsButton · PendingButton · ChildrenButton · Icon-only variantsButton · Custom paletteButton · Primary buttonsButton · Secondary buttonsButton · Ghost buttonsButton · Native Ghost resetButton · Destructive buttonsButton · Destructive pendingButton · Disabled buttonsButton · Primary icon-onlyButton · Pending icon-onlyButton · Disabled icon-onlyButton · Datastar visibilityButton · Row actionsButton · Labels and focusButton · API referenceLink · InstallationLink · UsageLink · Text underlineLink · Inherited presentationLink · SizesLink · Uniform paddingLink · ColorsLink · VariantsLink · All color variantsLink · Icon-only variantsLink · Icon-only sizesLink · Native new-tab navigationLink · API referenceButton group · InstallationButton group · UsageButton group · Grouped actionsButton group · Native link segmentsButton group · Label and Select segmentsButton group · Custom controls and popup isolationButton group · Vertical orientationButton group · API referenceDropdown menu · InstallationDropdown menu · UsageDropdown menu · IconsDropdown menu · Keyboard hintsDropdown menu · CheckboxesDropdown menu · Radio choicesDropdown menu · Disabled itemsDropdown menu · Destructive actionDropdown menu · Outlined page actionDropdown menu · Custom native controlDropdown menu · Full context row and supporting descriptionsDropdown menu · Grouped states and refreshDropdown menu · Row actionsDropdown menu · API referenceToggle button · InstallationToggle button · UsageToggle button · PendingToggle button · DisabledToggle button · Content, sizes and variantsToggle button · API referenceToggle group · InstallationToggle group · UsageToggle group · Single selectionToggle group · Connected multiple and single-item groupsToggle group · Multiple, spaced and unavailableToggle group · SubmissionToggle group · Vertical orientationToggle group · API referenceBadge · InstallationBadge · UsageBadge · ColorsBadge · VariantsBadge · API referenceNotice · InstallationNotice · UsageNotice · ColorsNotice · VariantsNotice · Success with downloadNotice · WarningNotice · Error with recovery linkNotice · Announce an updateNotice · API referenceNotification · InstallationNotification · UsageNotification · Persistent with an actionNotification · Custom lifetimeNotification · AnnouncementsNotification · API referenceLoading indicator · InstallationLoading indicator · UsageLoading indicator · With visible labelLoading indicator · API referenceProgress · InstallationProgress · UsageProgress · IndeterminateProgress · CompleteProgress · FailedProgress · API referenceEmpty state · InstallationEmpty state · UsageEmpty state · Title onlyEmpty state · With recovery actionEmpty state · API referenceSkeleton · InstallationSkeleton · UsageSkeleton · TextSkeleton · Avatar rowSkeleton · CardSkeleton · Explicit dimensionsSkeleton · API referenceCallout · InstallationCallout · UsageCallout · API referenceIcon · InstallationIcon · UsageIcon · Heroicons familiesIcon · Brand logosIcon · Rendered-size overridesIcon · API referenceTable · InstallationTable · UsageTable · Comfortable rowsTable · Hover highlightingTable · With status valuesTable · With checkboxesTable · Scrollable rows and sticky headingsTable · Stacked on mobileTable · Sortable recordsTable · Hierarchical itemsTable · Row actionsTable · Empty stateTable · Infinite scrollTable · API referenceChart · InstallationChart · UsageChart · ColumnChart · Horizontal barChart · SankeyChart · Updating options and handling eventsChart · Empty dataChart · API referenceDescription list · InstallationDescription list · UsageDescription list · Three-column detailsDescription list · Four-column detailsDescription list · With supporting textDescription list · API referenceMetric · InstallationMetric · UsageMetric · With trend and statusMetric · With review statusMetric · Multiple metricsMetric · API referenceAvatar · InstallationAvatar · UsageAvatar · Fallbacks and sizesAvatar · ImageAvatar · Image unavailableAvatar · DecorativeAvatar · API referenceCopy and reveal · InstallationCopy and reveal · UsageCopy and reveal · Icon actionsCopy and reveal · Initially revealedCopy and reveal · API referenceDay calendar · InstallationDay calendar · UsageDay calendar · Overlapping sessionsDay calendar · Compact controlsDay calendar · Provisional time selectionDay calendar · API referenceWeek calendar · InstallationWeek calendar · UsageWeek calendar · Events and date navigationWeek calendar · Shared controls and event detailsWeek calendar · API referenceMonth calendar · InstallationMonth calendar · UsageMonth calendar · Events and date navigationMonth calendar · Compact monthMonth calendar · Single-date selectionMonth calendar · Clearable single dateMonth calendar · Current dateMonth calendar · Today shortcutMonth calendar · Date rangeMonth calendar · Bounds, unavailable dates and Monday startMonth calendar · Month and year selectorsMonth calendar · Busy availabilityMonth calendar · Read-only selectionMonth calendar · API referenceYear calendar · InstallationYear calendar · UsageYear calendar · Event indicators and date navigationYear calendar · API referenceKbd · InstallationKbd · UsageKbd · Shortcut groupKbd · API referenceSeparator · InstallationSeparator · UsageSeparator · Orientation and semanticsSeparator · API referenceCard · InstallationCard · UsageCard · Header and footerCard · With mediaCard · API referenceMessage · InstallationMessage · UsageMessage · Sender and receiverMessage · Metadata and actions without an avatarMessage · API referenceInput · InstallationInput · UsageInput · Consistent control sizesInput · With help textInput · RequiredInput · OptionalInput · Validation errorInput · Native searchInput · DisabledInput · Read-onlyInput · API referenceInput group · InstallationInput group · UsageInput group · IconInput group · SuffixInput group · Text addonsInput group · Icon and keyboard hintInput group · Addon popup keeps its own controlsInput group · Textarea header and footerInput group · Validation errorInput group · Checking with visible feedbackInput group · API referenceField · InstallationField · UsageField · Custom controlField · Responsive label and control rowsField · Semantic fieldsetField · Labels and focusField · API referenceTextarea · InstallationTextarea · UsageTextarea · Visually hidden labelTextarea · With instructionsTextarea · Validation errorTextarea · Read-onlyTextarea · DisabledTextarea · API referenceFile selection · InstallationFile selection · UsageFile selection · Multiple filesFile selection · ValidationFile selection · DisabledFile selection · API referenceTag input · InstallationTag input · UsageTag input · SubmissionTag input · ValidationTag input · PendingTag input · DisabledTag input · API referenceError summary · InstallationError summary · UsageError summary · API referenceSelect · InstallationSelect · UsageSelect · Custom items and groupsSelect · Multiple selectionSelect · Local searchSelect · Remote searchSelect · Form validationSelect · DisabledSelect · PendingSelect · API referenceTime picker · InstallationTime picker · UsageTime picker · 24-hour display and boundsTime picker · Disabled and read-onlyTime picker · API referenceDate picker · InstallationDate picker · UsageDate picker · Clearable single dateDate picker · Current dateDate picker · Today shortcutDate picker · Date rangeDate picker · Month and year selectorsDate picker · Bounds and unavailable datesDate picker · ValidationDate picker · PendingDate picker · DisabledDate picker · Read-onlyDate picker · API referenceCheckbox · InstallationCheckbox · UsageCheckbox · With help textCheckbox · IndeterminateCheckbox · Required confirmation with validationCheckbox · CheckedCheckbox · PendingCheckbox · DisabledCheckbox · API referenceSwitch · InstallationSwitch · UsageSwitch · With help textSwitch · Setting with submissionSwitch · PendingSwitch · DisabledSwitch · Validation errorSwitch · SizesSwitch · Stacked layoutSwitch · API referenceRadio group · InstallationRadio group · UsageRadio group · Option descriptionsRadio group · Horizontal orientationRadio group · Required choice with validationRadio group · PendingRadio group · DisabledRadio group · API referenceChoice cards · InstallationChoice cards · UsageChoice cards · Single choiceChoice cards · Multiple choicesChoice cards · ValidationChoice cards · API referenceField group · InstallationField group · UsageField group · Without descriptionField group · Disabled fieldsetField group · Horizontal fieldsField group · Responsive fieldsField group · API referenceBreadcrumbs · InstallationBreadcrumbs · UsageBreadcrumbs · Middle overflowBreadcrumbs · Available spaceBreadcrumbs · API referenceSide nav · InstallationSide nav · UsageSide nav · Sections and collapsible groupsSide nav · Header, context, content and footerSide nav · Nested navigation with badges and actionsSide nav · Expansion and scrollSide nav · API referenceTabs · InstallationTabs · UsageTabs · Server-owned selectionTabs · Underlined tabs with refreshTabs · Vertical, icons and disabled itemsTabs · API referencePagination · InstallationPagination · UsagePagination · Page navigationPagination · Numbers onlyPagination · Previous and next onlyPagination · API referenceCommand · InstallationCommand · UsageCommand · Groups, icons and shortcutsCommand · Contextual page linksCommand · Actions and disabled itemsCommand · Dialog paletteCommand · Empty resultsCommand · API referenceBottom navigation · InstallationBottom navigation · UsageBottom navigation · Four destinationsBottom navigation · Three destinationsBottom navigation · API referenceDialog · InstallationDialog · UsageDialog · Modal dialogDialog · Server-validated confirmationDialog · App-contained dialogDialog · Labels and focusDialog · API referenceDrawer · InstallationDrawer · UsageDrawer · NavigationDrawer · Standard detail drawerDrawer · Wide editing formDrawer · Start-side filtersDrawer · Top and bottom edgesDrawer · App-contained drawerDrawer · Labels and focusDrawer · API referenceFloating panel · InstallationFloating panel · UsageFloating panel · Minimized with restoreFloating panel · ChecklistFloating panel · API referencePopover · InstallationPopover · UsagePopover · With formPopover · Side and alignmentPopover · Custom native triggerPopover · API referenceTooltip · InstallationTooltip · UsageTooltip · Existing descriptionTooltip · Bottom placementTooltip · API referenceBrowser · InstallationBrowser · UsageBrowser · With an address barBrowser · Review controls and expansionBrowser · API referencePhone · InstallationPhone · UsagePhone · With screen contentPhone · Review controls and expansionPhone · API referenceResizable · InstallationResizable · UsageResizable · Horizontal split panelsResizable · Vertical split panelsResizable · API referenceSlide · InstallationSlide · UsageSlide · CoverSlide · API referencePresentation · InstallationPresentation · UsagePresentation · API referencePage header · InstallationPage header · UsagePage header · Title and page actionsPage header · API referenceSection header · InstallationSection header · UsageSection header · Description, actions and dividerSection header · API referenceSection · InstallationSection · UsageSection · Section spacingSection · API referenceDisclosure · InstallationDisclosure · UsageDisclosure · API referencePage top bar · InstallationPage top bar · UsagePage top bar · Full-width shell barPage top bar · API referenceCode block · InstallationCode block · Quick start with GiraffeCode block · Add syntax highlightingCode block · Optional Prism stylesheetCode block · F#Code block · PythonCode block · TypeScriptCode block · BashCode block · SQLCode block · Optional nonce CSPCode block · API referenceExample · InstallationExample · UsageExample · API referenceMermaid · InstallationMermaid · UsageMermaid · Sequence constructorsMermaid · API referenceF# API reference · InstallationF# API reference · UsageF# API reference · API referenceStandalone F# scripts · PrerequisitesStandalone F# scripts · Use the Core packageStandalone F# scripts · Install editable components into a scriptStandalone F# scripts · Compose the HTML pageStandalone F# scripts · Build and viewStandalone F# scripts · Keep source ownership explicitStandalone F# scripts · Next stepsGiraffe integration · Minimal ExampleGiraffe integration · How It WorksGiraffe integration · Title ElementsUsing signals · Bind a value and handle an actionUsing signals · Related examplesTheming · Apply a theme to a regionTheming · Override only what you needTheming · Scope CSS variables to a regionTheming · CSS-variable referenceTheming · Internal variablesTheming · Add an appearance pickerTheming · Theme APIBuild a presentation · Create a deckBuild a presentation · Compose slides with ordinary F#Build a presentation · Build and openBuild a presentation · Present in the browserBuild a presentation · Print or save as PDFBuild a presentation · Explore the complete exampleBenchmarks · Rendering performanceBenchmarks · EnvironmentBenchmarks · ReproduceExamples · Templates

SVG

FSharp.ViewEngine provides a maintained SVG 2 production subset for icons, charts, gradients, clipping, reusable symbols, text, and accessible inline graphics.

On this page

Support Policy

The Svg type intentionally covers 21 common elements rather than every SVG 2 feature. Unsupported filters, animation, metadata, and specialized elements remain available through the generic trusted-name escape hatches.

SVG-specific helpers complement the global attributes on Html. Continue using _id, _class, _style, _href, _role, and the WAI-ARIA helpers from Html.

Setup

Open both static types when building inline SVG:

open FSharp.ViewEngine
open type Html
open type Svg

The SVG text and title builders are named textElement and titleElement so opening Svg does not shadow Html.text or Html.title. useElement avoids the F# use keyword.

Element Reference

Structure and descriptions: svg, g, defs, symbol, useElement, titleElement, and desc.

Shapes: path, circle, rect, line, polyline, polygon, and ellipse.

Resources and paint: clipPath, mask, linearGradient, radialGradient, and stop.

Text: textElement and tspan.

Numeric and Length Values

Geometry and numeric presentation helpers accept integers, invariant-culture floating-point values, and—where SVG permits lengths, percentages, or lists—strings. Root width and height retain numeric Svg._width and Svg._height helpers; use the existing HTML string helpers for CSS lengths.

svg {
    Svg._width 24
    Svg._height 24.5
    Html._width "100%"
    circle { _cx "50%"; _cy "50%"; _r 7.5 }
}

Icon Example

Check icon
let checkIcon =
    svg {
        _viewBox "0 0 24 24"
        _preserveAspectRatio "xMidYMid meet"
        Svg._width 24
        Svg._height 24
        _fill "none"
        _stroke "currentColor"
        _strokeWidth 1.5
        _strokeLinecap "round"
        _strokeLinejoin "round"
        _vectorEffect "non-scaling-stroke"
        path {
            _d "M5 13l4 4L19 7"
            _pathLength 1.0
        }
    }

Chart and Text Example

Revenue chart
svg {
    _viewBox "0 0 400 200"
    _role "img"
    _ariaLabel "Revenue trend rising across five periods"
    g {
        _transform "translate(40 10)"
        rect {
            _x 0; _y 0; Svg._width 320; Svg._height 160; _rx 8
            _fill "#ffffff"; _stroke "#cbd5e1"
        }
        polygon {
            _points "0,140 80,100 160,120 240,40 320,20 320,160 0,160"
            _fill "#10b981"; _fillOpacity 0.14
        }
        line { _x1 0; _y1 160; _x2 320; _y2 160; _stroke "#94a3b8" }
        polyline {
            _points "0,140 80,100 160,120 240,40 320,20"
            _fill "none"; _stroke "#059669"; _strokeWidth 4
            _strokeLinecap "round"; _strokeLinejoin "round"
        }
        ellipse { _cx 240; _cy 40; _rx 6; _ry 6; _fill "#047857" }
        textElement {
            _x 160; _y 184; _textAnchor "middle"
            _fontFamily "sans-serif"; _fontSize "12px"; _fill "#475569"
            tspan { "Revenue" }
        }
    }
}

Gradients, Clipping, Masking, and Reuse

Gradient resources
svg {
    _viewBox "0 0 400 180"
    defs {
        linearGradient {
            _id "svg-brand-gradient"
            _x1 "0%"; _y1 "0%"; _x2 "100%"; _y2 "100%"
            stop { _offset "0%"; _stopColor "#0ea5e9" }
            stop { _offset "100%"; _stopColor "#6366f1" }
        }
        radialGradient {
            _id "svg-spotlight"
            stop { _offset "35%"; _stopColor "white" }
            stop { _offset "100%"; _stopColor "black" }
        }
        clipPath {
            _id "svg-card-clip"
            rect { _x 20; _y 20; Svg._width 360; Svg._height 140; _rx 28 }
        }
        mask {
            _id "svg-fade-mask"
            rect {
                _x 20; _y 20; Svg._width 360; Svg._height 140
                _fill "url(#svg-spotlight)"
            }
        }
        symbol {
            _id "svg-dot"
            _viewBox "0 0 10 10"
            circle { _cx 5; _cy 5; _r 5 }
        }
    }
    g {
        _clipPath "url(#svg-card-clip)"
        rect { _x 20; _y 20; Svg._width 360; Svg._height 140; _fill "url(#svg-brand-gradient)" }
        g {
            _fill "white"; _mask "url(#svg-fade-mask)"
            useElement { _href "#svg-dot"; _x 80; _y 70; Svg._width 40; Svg._height 40 }
            useElement { _href "#svg-dot"; _x 180; _y 45; Svg._width 70; Svg._height 70 }
            useElement { _href "#svg-dot"; _x 300; _y 75; Svg._width 30; Svg._height 30 }
        }
    }
}

Accessibility

For an informative graphic, give the root an image role and connect direct child titleElement and desc elements with _ariaLabelledby. SVG Accessibility API Mappings expose these children as the accessible name and description.

svg {
    _role "img"
    _ariaLabelledby "sales-title sales-description"
    titleElement { _id "sales-title"; "Quarterly sales" }
    desc {
        _id "sales-description"
        "Sales increased in each quarter."
    }
    // chart geometry
}

Hide a purely decorative SVG from assistive technology:

svg {
    _ariaHidden true
    path { _d "M5 13l4 4L19 7" }
}

Linking and Namespaces

SVG 2 uses the unnamespaced href attribute. Use Html._href with useElement and do not emit deprecated xlink:href. Add _xmlns when producing standalone SVG markup; it is optional for inline SVG parsed as HTML.

symbol { _id "check"; path { _d "M5 13l4 4L19 7" } }
useElement { _href "#check" }

Attribute Reference

Viewport and global presentation: _viewBox, _preserveAspectRatio, _xmlns, _transform, _opacity, and _vectorEffect.

Fill and stroke: _fill, _fillOpacity, _fillRule, _stroke, _strokeWidth, _strokeOpacity, _strokeLinecap, _strokeLinejoin, _strokeMiterlimit, _strokeDasharray, and _strokeDashoffset.

Geometry: _x, _y, _x1, _y1, _x2, _y2, _cx, _cy, _r, _rx, _ry, _width, _height, _d, _points, and _pathLength.

Resources: _clipRule, _clipPath, _clipPathUnits, _mask, _maskUnits, _maskContentUnits, _gradientUnits, _gradientTransform, _spreadMethod, _fx, _fy, _fr, _offset, _stopColor, and _stopOpacity.

Text: _dx, _dy, _textAnchor, _dominantBaseline, _fontFamily, _fontSize, _fontWeight, _textLength, and _lengthAdjust.

Unsupported SVG

Use Html.el for an SVG element outside the maintained production subset and Html._attr for an unsupported attribute. Names passed to both helpers are trusted markup tokens and are not validated.

svg {
    Html.el "filter" {
        _id "blur"
        Html.el "feGaussianBlur" {
            _attr ("stdDeviation", "2")
        }
    }
}