betagouv/elm-dsfr/5.1.1

NOTE: the latest version is 5.2.0

BetaGouv.DSFR.Card

Carte

card : String -> Orientation -> CardConfig msg

Crée une carte

Card.card "titre" Card.vertical
    |> Card.link "/url"
    |> Card.withArrow False
    |> Card.withNoTitle
    |> Card.withDescription (Just (text description))
    |> Card.view
view : CardConfig msg -> Html msg

Lien

linkFull : String -> CardConfig msg -> CardConfig msg

Orientation

horizontal : Orientation
vertical : Orientation

Configuration

withArrow : Bool -> CardConfig msg -> CardConfig msg
withDescription : Maybe (Html msg) -> CardConfig msg -> CardConfig msg
withDetails : Maybe (Html msg) -> CardConfig msg -> CardConfig msg
withImage : Maybe String -> CardConfig msg -> CardConfig msg
withNoTitle : CardConfig msg -> CardConfig msg