betagouv/elm-dsfr/4.0.0

NOTE: the latest version is 5.2.0

BetaGouv.DSFR.Media

Image

img : String -> List (Attribute Never) -> ImageConfig -> Html msg

Crée une image de taille moyenne

Media.img "Image" [ src "image.png", class "w-full" ] <|
    Media.withResponsive False <|
        Media.withCaption Nothing
imgLG : String -> List (Attribute Never) -> ImageConfig -> Html msg

Crée une image de grande taille

imgSM : String -> List (Attribute Never) -> ImageConfig -> Html msg

Crée une image de petite taille

svg : String -> ImageConfig -> List (Svg msg) -> Html msg

Image décorative

decorativeImg : List (Attribute Never) -> ImageConfig -> Html msg

Crée une image décorative de taille moyenne

decorativeImgLG : List (Attribute Never) -> ImageConfig -> Html msg

Crée une image décorative de grande taille

decorativeImgSM : List (Attribute Never) -> ImageConfig -> Html msg

Crée une image décorative de petite taille

decorativeSvg : ImageConfig -> List (Svg msg) -> Html msg

Configuration

withCaption : Maybe String -> ImageConfig
withResponsive : Bool -> ImageConfig -> ImageConfig