betagouv / elm-dsfr / 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 -> Accessibility.Html msg

Lien

link : String -> CardConfig msg -> CardConfig msg

linkFull : String -> CardConfig msg -> CardConfig msg

Orientation

horizontal : Orientation

vertical : Orientation

Configuration

withArrow : Basics.Bool -> CardConfig msg -> CardConfig msg

withDescription : Maybe (Accessibility.Html msg) -> CardConfig msg -> CardConfig msg

withDetails : Maybe (Accessibility.Html msg) -> CardConfig msg -> CardConfig msg

withImage : Maybe String -> CardConfig msg -> CardConfig msg

withNoTitle : CardConfig msg -> CardConfig msg