This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Content

type Text msg = Text (List (Dom.Node msg))

A type to contain text content

type Icon msg = Icon (List (Dom.Node msg))

A type to contain icon font character content

type Media msg = Media (List (Dom.Node msg))

A type to contain basic media content (image, video, audio)

type Source msg = Source (List (Dom.Node msg))

A type to contain embedded content from an external source (e.g., an SVG file)

type Graphic msg = Png (Media msg) | Svg (Source msg) | Glyph (Icon msg)

A type that may contain a PNG image, an SVG source file, or a font icon character

module Content exposing
  ( Text(..), Icon(..), Media(..), Source(..), Graphic(..) )

{-|

@docs Text, Icon, Media, Source, Graphic

-}

import Dom

{-| A type to contain text content
-}
type Text msg
  = Text (List (Dom.Node msg))


{-| A type to contain icon font character content
-}
type Icon msg
  = Icon (List (Dom.Node msg))


{-| A type to contain basic media content (image, video, audio)
-}
type Media msg
  = Media (List (Dom.Node msg))


{-| A type to contain embedded content from an external source (e.g., an SVG
file)
-}
type Source msg
  = Source (List (Dom.Node msg))


{-| A type that may contain a PNG image, an SVG source file, or a font icon
character
-}
type Graphic msg
  = Png (Media msg)
  | Svg (Source msg)
  | Glyph (Icon msg)