orus-io/elm-orus-ui/1.0.1

Formerly cdevienne/elm-orus-ui. Search finds this package by either name.

OUI.Image

Image component

type Image

An image

url : String -> Src

Create an image from a URL

svg : Svg Never -> Src

Create an image from SVG node

withDescription : String -> Src -> Image

Add a description to the image

Internals

type Src

type of an Image source. It can be u URL or a Svg Icon

getDescription : Image -> String

get the description

get the src