NoRedInk/noredink-ui/15.8.1

NOTE: the latest version is 35.9.3

Nri.Ui.Svg.V1

type Svg

Opaque type describing a non-interactable Html element.

withColor : Color -> Svg -> Svg
withLabel : String -> Svg -> Svg

Add a string aria-label property to the element.

See Using the aria-label attribute for guidelines of when and how to use this attribute.

Note that when the label is not present, aria-hidden will be added. See https://css-tricks.com/accessible-svg-icons/ for a quick summary on why.

withWidth : Px -> Svg -> Svg
withHeight : Px -> Svg -> Svg
withCss : List Style -> Svg -> Svg

Css for the SVG's container.

withNriDescription : String -> Svg -> Svg
fromHtml : Html Never -> Svg

Tag html as being an svg.

toHtml : Svg -> Html msg

Render an svg.

toRawSvg : Svg -> Svg msg

Extract an svg, dropping any attributes passed through.